| @@ -1,7 +1,19 @@ | ||
| 1 | +/*! elementor - v3.30.0 - 07-07-2025 */ | |
| 1 | 2 | /******/ (() => { // webpackBootstrap |
| 2 | 3 | /******/ var __webpack_modules__ = ({ |
| 3 | 4 | |
| 5 | +/***/ "@wordpress/i18n": | |
| 6 | +/*!**************************!*\ | |
| 7 | + !*** external "wp.i18n" ***! | |
| 8 | + \**************************/ | |
| 9 | +/***/ ((module) => { | |
| 10 | + | |
| 11 | +"use strict"; | |
| 12 | +module.exports = wp.i18n; | |
| 13 | + | |
| 14 | +/***/ }), | |
| 15 | + | |
| 4 | 16 | /***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": |
| 5 | 17 | /*!****************************************************************!*\ |
| 6 | 18 | !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! |
| 7 | 19 | \****************************************************************/ |
| @@ -123,19 +135,8 @@ | ||
| 123 | 135 | }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); |
| 124 | 136 | } |
| 125 | 137 | module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 126 | 138 | |
| 127 | -/***/ }), | |
| 128 | - | |
| 129 | -/***/ "@wordpress/i18n": | |
| 130 | -/*!**************************!*\ | |
| 131 | - !*** external "wp.i18n" ***! | |
| 132 | - \**************************/ | |
| 133 | -/***/ ((module) => { | |
| 134 | - | |
| 135 | -"use strict"; | |
| 136 | -module.exports = wp.i18n; | |
| 137 | - | |
| 138 | 139 | /***/ }) |
| 139 | 140 | |
| 140 | 141 | /******/ }); |
| 141 | 142 | /************************************************************************/ |
| @@ -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 | /** |