| @@ -1,4 +1,5 @@ | ||
| 1 | +/*! elementor - v3.32.0 - 08-09-2025 */ | |
| 1 | 2 | /******/ (() => { // webpackBootstrap |
| 2 | 3 | /******/ var __webpack_modules__ = ({ |
| 3 | 4 | |
| 4 | 5 | /***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": |
| @@ -208,32 +209,23 @@ | ||
| 208 | 209 | this.revertButton = document.getElementById('elementor-import-export__revert_kit'); |
| 209 | 210 | if (this.revertButton) { |
| 210 | 211 | this.revertButton.addEventListener('click', this.onRevertButtonClick.bind(this)); |
| 211 | 212 | this.maybeAddRevertBtnMargin(); |
| 212 | - this.maybeScrollToRevertButton(); | |
| 213 | 213 | } |
| 214 | 214 | this.maybeShowReferrerKitDialog(); |
| 215 | 215 | } |
| 216 | + | |
| 217 | + /** | |
| 218 | + * Add bottom margin to revert btn if referred from Kit library | |
| 219 | + */ | |
| 216 | 220 | return (0, _createClass2.default)(Admin, [{ |
| 217 | - key: "shouldScrollToRevert", | |
| 218 | - value: function shouldScrollToRevert() { | |
| 219 | - var urlParams = new URLSearchParams(window.location.search); | |
| 220 | - return !!urlParams.get('scroll_to_revert'); | |
| 221 | - } | |
| 222 | - }, { | |
| 223 | 221 | key: "maybeAddRevertBtnMargin", |
| 224 | 222 | value: function maybeAddRevertBtnMargin() { |
| 225 | - if (!this.shouldScrollToRevert()) { | |
| 223 | + var referrerKitId = new URLSearchParams(this.revertButton.href).get('referrer_kit'); | |
| 224 | + if (!referrerKitId) { | |
| 226 | 225 | return; |
| 227 | 226 | } |
| 228 | 227 | this.revertButton.style.marginBottom = this.calculateMargin(); |
| 229 | - } | |
| 230 | - }, { | |
| 231 | - key: "maybeScrollToRevertButton", | |
| 232 | - value: function maybeScrollToRevertButton() { | |
| 233 | - if (!this.shouldScrollToRevert()) { | |
| 234 | - return; | |
| 235 | - } | |
| 236 | 228 | this.scrollToBottom(); |
| 237 | 229 | } |
| 238 | 230 | |
| 239 | 231 | /** |