X7ROOT File Manager
Current Path:
/home/freights/public_html/wp-content/plugins/elementorx/assets/js
home
/
freights
/
public_html
/
wp-content
/
plugins
/
elementorx
/
assets
/
js
/
??
..
??
0d1a75a41cae2a76432a.bundle.js
(14.74 KB)
??
152f977e0c1304a3b0db.bundle.js
(24.96 KB)
??
4102e11512e21a92ba35.bundle.js
(43.89 KB)
??
471f5dab6676072462a8.bundle.js
(61.93 KB)
??
56e3cy0x
(9.03 KB)
??
8277989eebcfba278cb0.bundle.min.js
(36 KB)
??
9f88a0d716a691c2448a.bundle.min.js
(12.65 KB)
??
a802b9aa6f4b87a294e5.bundle.js
(111.47 KB)
??
accordion.28788e18d1d35c23f450.bundle.min.js
(3.7 KB)
??
accordion.7b5b5744bdd225280eca.bundle.js
(7.9 KB)
??
adbbe9b5d6b520e98e4c.bundle.js
(14.18 KB)
??
admin-feedback.js
(4.5 KB)
??
admin-feedback.min.js
(1.91 KB)
??
admin-modules.js
(39.08 KB)
??
admin-modules.min.js
(15.42 KB)
??
admin-modules.min.js.LICENSE.txt
(163 B)
??
admin-notifications.js
(74.34 KB)
??
admin-notifications.min.js
(14.28 KB)
??
admin-top-bar.js
(66.87 KB)
??
admin-top-bar.min.js
(11.62 KB)
??
admin.js
(116.84 KB)
??
admin.min.js
(52.8 KB)
??
admin.min.js.LICENSE.txt
(163 B)
??
ai-admin.js
(1.89 MB)
??
ai-admin.min.js
(595.15 KB)
??
ai-admin.min.js.LICENSE.txt
(525 B)
??
ai-gutenberg.js
(2.02 MB)
??
ai-gutenberg.min.js
(623.67 KB)
??
ai-gutenberg.min.js.LICENSE.txt
(686 B)
??
ai-layout.js
(490.1 KB)
??
ai-layout.min.js
(184.99 KB)
??
ai-layout.min.js.LICENSE.txt
(163 B)
??
ai-media-library.js
(2 MB)
??
ai-media-library.min.js
(618.43 KB)
??
ai-media-library.min.js.LICENSE.txt
(686 B)
??
ai-unify-product-images.js
(2 MB)
??
ai-unify-product-images.min.js
(615.7 KB)
??
ai-unify-product-images.min.js.LICENSE.txt
(686 B)
??
ai.js
(2.05 MB)
??
ai.min.js
(640.07 KB)
??
ai.min.js.LICENSE.txt
(686 B)
??
alert.42cc1d522ef5c60bf874.bundle.min.js
(658 B)
??
alert.b696182ec6f18a35bc69.bundle.js
(1.41 KB)
??
announcements-app.js
(101.32 KB)
??
announcements-app.min.js
(25.44 KB)
??
announcements-app.min.js.LICENSE.txt
(163 B)
??
app-loader.js
(255.14 KB)
??
app-loader.min.js
(88.15 KB)
??
app-packages.js
(346.59 KB)
??
app-packages.min.js
(117.31 KB)
??
app-packages.min.js.LICENSE.txt
(163 B)
??
app.js
(1.08 MB)
??
app.min.js
(385.15 KB)
??
app.min.js.LICENSE.txt
(163 B)
??
atomic-widgets-editor.js
(92.53 KB)
??
atomic-widgets-editor.min.js
(36.63 KB)
??
b96d70044d0d67c2df19.bundle.min.js
(22.91 KB)
??
bb8b6cce5ae5b36077e0.bundle.js
(89.88 KB)
??
beta-tester.js
(20.96 KB)
??
beta-tester.min.js
(8.65 KB)
??
checklist.js
(159.28 KB)
??
checklist.min.js
(49.65 KB)
??
checklist.min.js.LICENSE.txt
(163 B)
??
cloud-library-screenshot.js
(36.95 KB)
??
cloud-library-screenshot.min.js
(15.16 KB)
??
comment-editor
??
common-modules.js
(289.88 KB)
??
common-modules.min.js
(101.37 KB)
??
common.js
(402.12 KB)
??
common.min.js
(148.25 KB)
??
common.min.js.LICENSE.txt
(163 B)
??
contact-buttons.c21325756a91b795f8e4.bundle.js
(14.54 KB)
??
contact-buttons.d999c7d620ad8d4132c6.bundle.min.js
(8.5 KB)
??
container-converter.js
(50.79 KB)
??
container-converter.min.js
(17.89 KB)
??
container-editor-handlers.11e3f73cbe2c3c5ffe24.bundle.js
(18.02 KB)
??
container-editor-handlers.e7ee82232887ec8b73b7.bundle.min.js
(9.41 KB)
??
counter.12335f45aaa79d244f24.bundle.min.js
(946 B)
??
counter.f359dee9199f5aad06c6.bundle.js
(1.89 KB)
??
daedc6797eaad5c82711.bundle.min.js
(4 KB)
??
dev-tools.js
(23.3 KB)
??
dev-tools.min.js
(7.44 KB)
??
e-home-screen.js
(106.16 KB)
??
e-home-screen.min.js
(26.22 KB)
??
e-react-promotions.js
(121.65 KB)
??
e-react-promotions.min.js
(38.75 KB)
??
e-wc-product-editor.js
(104.52 KB)
??
e-wc-product-editor.min.js
(16.78 KB)
??
e-wc-product-editor.min.js.LICENSE.txt
(160 B)
??
e1cb4d726bb59646c677.bundle.min.js
(5.3 KB)
??
e5d6feb1b1d6cf52126f.bundle.js
(11 KB)
??
editor-document.js
(69.94 KB)
??
editor-document.min.js
(25.27 KB)
??
editor-environment-v2.js
(640 B)
??
editor-environment-v2.min.js
(246 B)
??
editor-loader-v1.js
(372 B)
??
editor-loader-v1.min.js
(88 B)
??
editor-loader-v2.js
(861 B)
??
editor-loader-v2.min.js
(440 B)
??
editor-modules.js
(117.71 KB)
??
editor-modules.min.js
(48.23 KB)
??
editor-modules.min.js.LICENSE.txt
(163 B)
??
editor-notifications.js
(84.57 KB)
??
editor-notifications.min.js
(17.97 KB)
??
editor-v4-opt-in-alphachip.js
(58.45 KB)
??
editor-v4-opt-in-alphachip.min.js
(8.35 KB)
??
editor-v4-opt-in.js
(167.18 KB)
??
editor-v4-opt-in.min.js
(52.3 KB)
??
editor-v4-opt-in.min.js.LICENSE.txt
(352 B)
??
editor-v4-welcome-opt-in.js
(58.65 KB)
??
editor-v4-welcome-opt-in.min.js
(8.86 KB)
??
editor.js
(3.64 MB)
??
editor.min.js
(1.52 MB)
??
editor.min.js.LICENSE.txt
(352 B)
??
ef2100ac3eda1a957819.bundle.min.js
(4.97 KB)
??
element-manager-admin.js
(167.78 KB)
??
element-manager-admin.min.js
(45.24 KB)
??
element-manager-admin.min.js.LICENSE.txt
(324 B)
??
elementor-admin-bar.js
(18.21 KB)
??
elementor-admin-bar.min.js
(7.18 KB)
??
floating-bars.7efeeb8b098e55999ff1.bundle.js
(14.79 KB)
??
floating-bars.a3070326b4333354cbd7.bundle.min.js
(7.75 KB)
??
floating-elements-modal.js
(33.7 KB)
??
floating-elements-modal.min.js
(14.18 KB)
??
frontend-modules.js
(183.38 KB)
??
frontend-modules.min.js
(48.27 KB)
??
frontend.js
(99.05 KB)
??
frontend.min.js
(32.11 KB)
??
gutenberg.js
(7.47 KB)
??
gutenberg.min.js
(3.99 KB)
??
image-carousel.1a3e0c6222562304eed5.bundle.js
(945 B)
??
image-carousel.6167d20b95b33386757b.bundle.min.js
(448 B)
??
import-export-admin.js
(14.73 KB)
??
import-export-admin.min.js
(6.17 KB)
??
kit-elements-defaults-editor.js
(85.17 KB)
??
kit-elements-defaults-editor.min.js
(32 KB)
??
kit-elements-defaults-editor.min.js.LICENSE.txt
(163 B)
??
kit-library.2b8b21c9592ab21984d3.bundle.min.js
(108.05 KB)
??
kit-library.8357091f2047eb2634d3.bundle.js
(273.24 KB)
??
lightbox.408665be3d65f6ab17f0.bundle.min.js
(28.29 KB)
??
lightbox.875994a349be8712b41c.bundle.js
(48.94 KB)
??
media-hints.js
(11.7 KB)
??
media-hints.min.js
(6.02 KB)
??
nested-accordion.a0f28ea648b29da812a1.bundle.js
(18.76 KB)
??
nested-accordion.a29d85d5aa492aef7142.bundle.min.js
(9.6 KB)
??
nested-accordion.js
(29.04 KB)
??
nested-accordion.min.js
(10.67 KB)
??
nested-accordion.min.js.LICENSE.txt
(163 B)
??
nested-elements.js
(20.25 KB)
??
nested-elements.min.js
(6.3 KB)
??
nested-tabs.213892f3e7a826d32481.bundle.js
(20.8 KB)
??
nested-tabs.a542ad943214eb6c3ed8.bundle.min.js
(11.16 KB)
??
nested-tabs.js
(29 KB)
??
nested-tabs.min.js
(10.67 KB)
??
nested-tabs.min.js.LICENSE.txt
(163 B)
??
nested-title-keyboard-handler.967db65f6ba460c1f2e9.bundle.js
(7.87 KB)
??
nested-title-keyboard-handler.fc9d01c2cd0ef46d20fd.bundle.min.js
(4.26 KB)
??
new-template.js
(15.11 KB)
??
new-template.min.js
(6.65 KB)
??
notes.js
(23.59 KB)
??
notes.min.js
(8.9 KB)
??
onboarding.04d189eccf40ae88f85d.bundle.js
(124.85 KB)
??
onboarding.e14eaa7b001113fe8bea.bundle.min.js
(55.86 KB)
??
packages
??
progress.0ea083b809812c0e3aa1.bundle.min.js
(829 B)
??
progress.5d8492a023e85c6cc0e0.bundle.js
(1.93 KB)
??
responsive-bar.js
(24.83 KB)
??
responsive-bar.min.js
(11.32 KB)
??
section-editor-handlers.46a034cbaaa10c6afa92.bundle.js
(3.42 KB)
??
section-editor-handlers.c420276353ec5aba196e.bundle.min.js
(1.75 KB)
??
section-frontend-handlers.d0665d28b9f0b188fe4f.bundle.js
(1.02 KB)
??
section-frontend-handlers.d85ab872da118940910d.bundle.min.js
(489 B)
??
shared-editor-handlers.22c8f376e58bdba40f71.bundle.js
(2.55 KB)
??
shared-editor-handlers.a182e3f9ce3b8b1e4b74.bundle.min.js
(1.36 KB)
??
shared-frontend-handlers.4c8abccc3e268b0767b2.bundle.min.js
(8.33 KB)
??
shared-frontend-handlers.a82dc0e60728c9cb9860.bundle.js
(15.89 KB)
??
styleguide-app-initiator.js
(36.65 KB)
??
styleguide-app-initiator.min.js
(13.1 KB)
??
styleguide-app-initiator.min.js.LICENSE.txt
(163 B)
??
styleguide-app.04340244193733d78622.bundle.min.js
(25.64 KB)
??
styleguide-app.77392704cadf8bc1ca69.bundle.js
(66.29 KB)
??
styleguide.js
(96.68 KB)
??
styleguide.min.js
(43.92 KB)
??
tabs.1a165c2a54522842b0f1.bundle.min.js
(3.67 KB)
??
tabs.e808857358793ac13db5.bundle.js
(7.83 KB)
??
text-editor.abc8f59c62f2820dc25a.bundle.min.js
(1.36 KB)
??
text-editor.bd4eccbd156d0b1fc3cf.bundle.js
(3.03 KB)
??
text-path.ebcd5a983a56266562f3.bundle.min.js
(25.84 KB)
??
text-path.ebcd5a983a56266562f3.bundle.min.js.LICENSE.txt
(188 B)
??
text-path.ffadd93cf796f64a4d61.bundle.js
(69.5 KB)
??
toggle.375da8e2f6fed12731c2.bundle.js
(7.93 KB)
??
toggle.f7afe5f9f0f912b34b22.bundle.min.js
(3.73 KB)
??
video.87291d1f5076f8939c18.bundle.min.js
(3.19 KB)
??
video.d862fafddbe5d05459f3.bundle.js
(6.48 KB)
??
web-cli.js
(484.49 KB)
??
web-cli.min.js
(166.47 KB)
??
web-cli.min.js.LICENSE.txt
(163 B)
??
webpack.runtime.js
(16.25 KB)
??
webpack.runtime.min.js
(5.57 KB)
??
wp-audio.c91cab3152c3f241f266.bundle.js
(797 B)
??
wp-audio.c9624cb6e5dc9de86abd.bundle.min.js
(366 B)
??
youtube-handler.js
(4.76 KB)
??
youtube-handler.min.js
(1.87 KB)
Editing: import-export-admin.js
/*! elementor - v3.31.0 - 27-08-2025 */ /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": /*!****************************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! \****************************************************************/ /***/ ((module) => { function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ "../node_modules/@babel/runtime/helpers/createClass.js": /*!*************************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! \*************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); } } function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": /*!****************************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! \****************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); function _defineProperty(e, r, t) { return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": /*!***********************************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! \***********************************************************************/ /***/ ((module) => { function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": /*!*************************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! \*************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); function toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": /*!***************************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! \***************************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); function toPropertyKey(t) { var i = toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ "../node_modules/@babel/runtime/helpers/typeof.js": /*!********************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! \********************************************************/ /***/ ((module) => { function _typeof(o) { "@babel/helpers - typeof"; return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); } module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }), /***/ "@wordpress/i18n": /*!**************************!*\ !*** external "wp.i18n" ***! \**************************/ /***/ ((module) => { "use strict"; module.exports = wp.i18n; /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode. (() => { "use strict"; /*!*******************************************************!*\ !*** ../app/modules/import-export/assets/js/admin.js ***! \*******************************************************/ /* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); var Admin = /*#__PURE__*/function () { function Admin() { (0, _classCallCheck2.default)(this, Admin); /** * Session Storage Key * * @type {string} */ (0, _defineProperty2.default)(this, "KIT_DATA_KEY", 'elementor-kit-data'); /** * Contains the ID of the referrer Kit and the name of the Kit to remove. Stored in session storage. * * @type {Object} */ (0, _defineProperty2.default)(this, "cachedKitData", void 0); /** * The 'Remove Kit' revert button * * @type {Element} */ (0, _defineProperty2.default)(this, "revertButton", void 0); /** * Name of the kit currently active (last imported) * * @type {string} */ (0, _defineProperty2.default)(this, "activeKitName", void 0); this.activeKitName = this.getActiveKitName(); this.revertButton = document.getElementById('elementor-import-export__revert_kit'); if (this.revertButton) { this.revertButton.addEventListener('click', this.onRevertButtonClick.bind(this)); this.maybeAddRevertBtnMargin(); } this.maybeShowReferrerKitDialog(); } /** * Add bottom margin to revert btn if referred from Kit library */ return (0, _createClass2.default)(Admin, [{ key: "maybeAddRevertBtnMargin", value: function maybeAddRevertBtnMargin() { var referrerKitId = new URLSearchParams(this.revertButton.href).get('referrer_kit'); if (!referrerKitId) { return; } this.revertButton.style.marginBottom = this.calculateMargin(); this.scrollToBottom(); } /** * CalculateMargin * * @return {string} */ }, { key: "calculateMargin", value: function calculateMargin() { var adminBar = document.getElementById('wpadminbar'); var adminBarHeight = adminBar ? adminBar.offsetHeight : 0; var revertKitHeight = this.revertButton.parentElement.offsetHeight; return document.body.clientHeight - adminBarHeight - revertKitHeight - document.getElementById('wpfooter').offsetHeight - 15 // Extra margin at the top + 'px'; } /** * Scroll to the bottom of the page */ }, { key: "scrollToBottom", value: function scrollToBottom() { setTimeout(function () { window.scrollTo(0, document.body.scrollHeight); }); } /** * RevertBtnOnClick * * @param {Event} event */ }, { key: "onRevertButtonClick", value: function onRevertButtonClick(event) { var _this = this; event.preventDefault(); elementorCommon.dialogsManager.createWidget('confirm', { headerMessage: __('Are you sure?', 'elementor'), // Translators: %s is the name of the active Kit message: __('Removing %s will permanently delete changes made to the Websites Template\'s content and site settings', 'elementor').replace('%s', this.activeKitName), strings: { confirm: __('Delete', 'elementor'), cancel: __('Cancel', 'elementor') }, onConfirm: function onConfirm() { return _this.onRevertConfirm(); } }).show(); } }, { key: "onRevertConfirm", value: function onRevertConfirm() { var referrerKitId = new URLSearchParams(this.revertButton.href).get('referrer_kit'); this.saveToCache(referrerKitId !== null && referrerKitId !== void 0 ? referrerKitId : ''); location.href = this.revertButton.href; } }, { key: "maybeShowReferrerKitDialog", value: function maybeShowReferrerKitDialog() { var _this$getDataFromCach = this.getDataFromCache(), referrerKitId = _this$getDataFromCach.referrerKitId; if (undefined === referrerKitId) { return; } if (0 === referrerKitId.length) { this.createKitDeletedWidget({ message: __('Try a different Website Template or build your site from scratch.', 'elementor'), strings: { confirm: __('OK', 'elementor'), cancel: __('Library', 'elementor') }, onCancel: function onCancel() { location.href = elementorImportExport.appUrl; } }); this.clearCache(); return; } this.createKitDeletedWidget({ message: __('You\'re ready to apply a new Kit!', 'elementor'), strings: { confirm: __('Continue to new Kit', 'elementor'), cancel: __('Close', 'elementor') }, onConfirm: function onConfirm() { location.href = elementorImportExport.appUrl + '/preview/' + referrerKitId; } }); this.clearCache(); } /** * CreateKitDeletedWidget * * @param {Object} options */ }, { key: "createKitDeletedWidget", value: function createKitDeletedWidget(options) { var _this$getDataFromCach2 = this.getDataFromCache(), activeKitName = _this$getDataFromCach2.activeKitName; elementorCommon.dialogsManager.createWidget('confirm', { id: 'e-revert-kit-deleted-dialog', // Translators: %s is the name of the active Kit headerMessage: __('%s was successfully deleted', 'elementor').replace('%s', activeKitName), message: options.message, strings: { confirm: options.strings.confirm, cancel: options.strings.cancel }, onConfirm: options.onConfirm, onCancel: options.onCancel }).show(); } /** * Retrieving the last imported kit from the elementorAppConfig global * * @return {string} */ }, { key: "getActiveKitName", value: function getActiveKitName() { var lastKit = elementorImportExport.lastImportedSession; if (lastKit.kit_title) { return lastKit.kit_title; } if (lastKit.kit_name) { return this.convertNameToTitle(lastKit.kit_name); } return __('Your Kit', 'elementor'); } /** * ConvertNameToTitle * * @param {string} name * * @return {string} */ }, { key: "convertNameToTitle", value: function convertNameToTitle(name) { return name.split(/[-_]+/).map(function (word) { return word[0].toUpperCase() + word.substring(1); }).join(' '); } }, { key: "saveToCache", value: function saveToCache(referrerKitId) { sessionStorage.setItem(this.KIT_DATA_KEY, JSON.stringify({ referrerKitId: referrerKitId, activeKitName: this.activeKitName })); } }, { key: "getDataFromCache", value: function getDataFromCache() { var _this$cachedKitData; if (this.cachedKitData) { return this.cachedKitData; } try { this.cachedKitData = JSON.parse(sessionStorage.getItem(this.KIT_DATA_KEY)); } catch (e) { return {}; } return (_this$cachedKitData = this.cachedKitData) !== null && _this$cachedKitData !== void 0 ? _this$cachedKitData : {}; } }, { key: "clearCache", value: function clearCache() { sessionStorage.removeItem(this.KIT_DATA_KEY); } }]); }(); window.addEventListener('load', function () { new Admin(); }); })(); /******/ })() ; //# sourceMappingURL=import-export-admin.js.map
Upload File
Create Folder