Submit
Path:
~
/
home
/
getwphos
/
public_html
/
BenjaminMarc2023
/
wp-content
/
plugins
/
elementor
/
assets
/
js
/
File Content:
new-template.js
/*! elementor - v3.17.0 - 08-11-2023 */ /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "../assets/dev/js/admin/new-template/behaviors/lock-pro.js": /*!*****************************************************************!*\ !*** ../assets/dev/js/admin/new-template/behaviors/lock-pro.js ***! \*****************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { "use strict"; var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; 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 LockPro = /*#__PURE__*/function () { function LockPro(elements) { (0, _classCallCheck2.default)(this, LockPro); this.elements = elements; } (0, _createClass2.default)(LockPro, [{ key: "bindEvents", value: function bindEvents() { var _this$elements = this.elements, form = _this$elements.form, templateType = _this$elements.templateType; form.addEventListener('submit', this.onFormSubmit.bind(this)); templateType.addEventListener('change', this.onTemplateTypeChange.bind(this)); // Force checking on render, to make sure that default values are also checked. this.onTemplateTypeChange(); } }, { key: "onFormSubmit", value: function onFormSubmit(e) { var lockOptions = this.getCurrentLockOptions(); if (lockOptions.is_locked) { e.preventDefault(); } } }, { key: "onTemplateTypeChange", value: function onTemplateTypeChange() { var lockOptions = this.getCurrentLockOptions(); if (lockOptions.is_locked) { this.lock(lockOptions); } else { this.unlock(); } } }, { key: "getCurrentLockOptions", value: function getCurrentLockOptions() { var templateType = this.elements.templateType, currentOption = templateType.options[templateType.selectedIndex]; return JSON.parse(currentOption.dataset.lock || '{}'); } }, { key: "lock", value: function lock(lockOptions) { this.showLockBadge(lockOptions.badge); this.showLockButton(lockOptions.button); this.hideSubmitButton(); } }, { key: "unlock", value: function unlock() { this.hideLockBadge(); this.hideLockButton(); this.showSubmitButton(); } }, { key: "showLockBadge", value: function showLockBadge(badgeConfig) { var _this$elements2 = this.elements, lockBadge = _this$elements2.lockBadge, lockBadgeText = _this$elements2.lockBadgeText, lockBadgeIcon = _this$elements2.lockBadgeIcon; lockBadgeText.innerText = badgeConfig.text; lockBadgeIcon.className = badgeConfig.icon; lockBadge.classList.remove('e-hidden'); } }, { key: "hideLockBadge", value: function hideLockBadge() { this.elements.lockBadge.classList.add('e-hidden'); } }, { key: "showLockButton", value: function showLockButton(buttonConfig) { var lockButton = this.elements.lockButton; lockButton.href = this.replaceLockLinkPlaceholders(buttonConfig.url); lockButton.innerText = buttonConfig.text; lockButton.classList.remove('e-hidden'); } }, { key: "hideLockButton", value: function hideLockButton() { this.elements.lockButton.classList.add('e-hidden'); } }, { key: "showSubmitButton", value: function showSubmitButton() { this.elements.submitButton.classList.remove('e-hidden'); } }, { key: "hideSubmitButton", value: function hideSubmitButton() { this.elements.submitButton.classList.add('e-hidden'); } }, { key: "replaceLockLinkPlaceholders", value: function replaceLockLinkPlaceholders(link) { return link.replace(/%%utm_source%%/g, 'wp-add-new').replace(/%%utm_medium%%/g, 'wp-dash'); } }]); return LockPro; }(); exports["default"] = LockPro; /***/ }), /***/ "../assets/dev/js/admin/new-template/layout.js": /*!*****************************************************!*\ !*** ../assets/dev/js/admin/new-template/layout.js ***! \*****************************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { "use strict"; /* 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 _lockPro = _interopRequireDefault(__webpack_require__(/*! ./behaviors/lock-pro */ "../assets/dev/js/admin/new-template/behaviors/lock-pro.js")); var NewTemplateView = __webpack_require__(/*! elementor-admin/new-template/view */ "../assets/dev/js/admin/new-template/view.js"); module.exports = elementorModules.common.views.modal.Layout.extend({ getModalOptions: function getModalOptions() { return { id: 'elementor-new-template-modal' }; }, getLogoOptions: function getLogoOptions() { return { title: __('New Template', 'elementor') }; }, initialize: function initialize() { elementorModules.common.views.modal.Layout.prototype.initialize.apply(this, arguments); var lookupControlIdPrefix = 'elementor-new-template__form__'; var templateTypeSelectId = "".concat(lookupControlIdPrefix, "template-type"); this.showLogo(); this.showContentView(); this.initElements(); this.lockProBehavior = new _lockPro.default(this.elements); this.lockProBehavior.bindEvents(); var dynamicControlsVisibilityListener = function dynamicControlsVisibilityListener() { elementorAdmin.templateControls.setDynamicControlsVisibility(lookupControlIdPrefix, elementor_new_template_form_controls); }; this.getModal().onShow = function () { dynamicControlsVisibilityListener(); document.getElementById(templateTypeSelectId).addEventListener('change', dynamicControlsVisibilityListener); }; this.getModal().onHide = function () { document.getElementById(templateTypeSelectId).removeEventListener('change', dynamicControlsVisibilityListener); }; }, initElements: function initElements() { var container = this.$el[0], root = '#elementor-new-template__form'; this.elements = { form: container.querySelector(root), submitButton: container.querySelector("".concat(root, "__submit")), lockButton: container.querySelector("".concat(root, "__lock_button")), templateType: container.querySelector("".concat(root, "__template-type")), lockBadge: container.querySelector("".concat(root, "__template-type-badge")), lockBadgeText: container.querySelector("".concat(root, "__template-type-badge__text")), lockBadgeIcon: container.querySelector("".concat(root, "__template-type-badge__icon")) }; }, showContentView: function showContentView() { this.modalContent.show(new NewTemplateView()); } }); /***/ }), /***/ "../assets/dev/js/admin/new-template/view.js": /*!***************************************************!*\ !*** ../assets/dev/js/admin/new-template/view.js ***! \***************************************************/ /***/ ((module) => { "use strict"; module.exports = Marionette.ItemView.extend({ id: 'elementor-new-template-dialog-content', template: '#tmpl-elementor-new-template', ui: {}, events: {}, onRender: function onRender() {} }); /***/ }), /***/ "@wordpress/i18n": /*!**************************!*\ !*** external "wp.i18n" ***! \**************************/ /***/ ((module) => { "use strict"; module.exports = wp.i18n; /***/ }), /***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": /*!****************************************************************!*\ !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! \****************************************************************/ /***/ ((module) => { function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { 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(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } module.exports = _createClass, 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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } 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(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } 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(arg) { var key = toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } 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(obj) { "@babel/helpers - typeof"; return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj); } module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; /***/ }) /******/ }); /************************************************************************/ /******/ // 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; /******/ } /******/ /************************************************************************/ var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be in strict mode. (() => { "use strict"; /*!***********************************************************!*\ !*** ../assets/dev/js/admin/new-template/new-template.js ***! \***********************************************************/ var NewTemplateLayout = __webpack_require__(/*! elementor-admin/new-template/layout */ "../assets/dev/js/admin/new-template/layout.js"); var NewTemplateModule = elementorModules.ViewModule.extend({ getDefaultSettings: function getDefaultSettings() { return { selectors: { addButton: '.page-title-action:first, #elementor-template-library-add-new' } }; }, getDefaultElements: function getDefaultElements() { var selectors = this.getSettings('selectors'); return { $addButton: jQuery(selectors.addButton) }; }, bindEvents: function bindEvents() { this.elements.$addButton.on('click', this.onAddButtonClick); elementorCommon.elements.$window.on('hashchange', this.showModalByHash.bind(this)); }, showModalByHash: function showModalByHash() { if ('#add_new' === location.hash) { this.layout.showModal(); location.hash = ''; } }, onInit: function onInit() { elementorModules.ViewModule.prototype.onInit.apply(this, arguments); this.layout = new NewTemplateLayout(); this.showModalByHash(); }, onAddButtonClick: function onAddButtonClick(event) { event.preventDefault(); this.layout.showModal(); } }); jQuery(function () { window.elementorNewTemplate = new NewTemplateModule(); }); })(); /******/ })() ; //# sourceMappingURL=new-template.js.map
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
packages
---
0755
040b7af5d80abfa2be44.bundle.js
15855 bytes
0644
081ef1d595d61b745bca.bundle.min.js
42405 bytes
0644
081ef1d595d61b745bca.bundle.min.js.LICENSE.txt
487 bytes
0644
08fb6203eac56d9441a9.bundle.min.js
5498 bytes
0644
1bef795bdeaafc779b19.bundle.min.js
59816 bytes
0644
46e544e5863270fc32f2.bundle.js
11383 bytes
0644
4fdaa70e951ad90db2f2.bundle.min.js
13604 bytes
0644
6ed74dd3befaff90b65c.bundle.js
45012 bytes
0644
79d91b3af4aa6bc1c967.bundle.min.js
23227 bytes
0644
906cf49fecec599e1a67.bundle.min.js
27495 bytes
0644
a493d490206d9432cc8b.bundle.js
16343 bytes
0644
a730ee9caa710006b307.bundle.js
272042 bytes
0644
ab59172d5784d868ebd9.bundle.min.js
5802 bytes
0644
accordion.8799675460c73eb48972.bundle.min.js
3743 bytes
0644
accordion.c16b88b2e8a0c50189bc.bundle.js
7529 bytes
0644
admin-feedback.js
4640 bytes
0644
admin-feedback.min.js
1976 bytes
0644
admin-modules.js
42199 bytes
0644
admin-modules.min.js
18006 bytes
0644
admin-modules.min.js.LICENSE.txt
149 bytes
0644
admin-top-bar.js
65790 bytes
0644
admin-top-bar.min.js
10789 bytes
0644
admin.js
113498 bytes
0644
admin.min.js
51826 bytes
0644
admin.min.js.LICENSE.txt
149 bytes
0644
ai-admin.js
1568894 bytes
0644
ai-admin.min.js
434310 bytes
0644
ai-admin.min.js.LICENSE.txt
511 bytes
0644
ai-layout.js
380213 bytes
0644
ai-layout.min.js
141787 bytes
0644
ai-layout.min.js.LICENSE.txt
149 bytes
0644
ai.js
1588576 bytes
0644
ai.min.js
442663 bytes
0644
ai.min.js.LICENSE.txt
511 bytes
0644
alert.c3c6a3fdf4745bd26b7f.bundle.js
1140 bytes
0644
alert.cbc2a0fee74ee3ed0419.bundle.min.js
624 bytes
0644
announcements-app.js
103355 bytes
0644
announcements-app.min.js
27377 bytes
0644
announcements-app.min.js.LICENSE.txt
149 bytes
0644
app-loader.js
265903 bytes
0644
app-loader.min.js
92186 bytes
0644
app-packages.js
363091 bytes
0644
app-packages.min.js
124144 bytes
0644
app-packages.min.js.LICENSE.txt
149 bytes
0644
app.js
814066 bytes
0644
app.min.js
297510 bytes
0644
app.min.js.LICENSE.txt
637 bytes
0644
be69c0d71c69e96d6a96.bundle.min.js
4130 bytes
0644
beta-tester.js
23185 bytes
0644
beta-tester.min.js
9448 bytes
0644
c1dd514ac8d43fbb6919.bundle.js
83215 bytes
0644
common-modules.js
301395 bytes
0644
common-modules.min.js
105377 bytes
0644
common.js
427998 bytes
0644
common.min.js
159745 bytes
0644
common.min.js.LICENSE.txt
149 bytes
0644
container-converter.js
55283 bytes
0644
container-converter.min.js
19301 bytes
0644
container.284c9bf9b36eadd05080.bundle.min.js
9508 bytes
0644
container.dfea7c883442d5ae61c8.bundle.js
17759 bytes
0644
counter.02cef29c589e742d4c8c.bundle.min.js
912 bytes
0644
counter.3f74a246dff765f39aea.bundle.js
1628 bytes
0644
d3bdd130eb38d3b07f85.bundle.js
71523 bytes
0644
dev-tools.js
24536 bytes
0644
dev-tools.min.js
7689 bytes
0644
e8a7573e654d921656ab.bundle.js
27370 bytes
0644
editor-document.js
75504 bytes
0644
editor-document.min.js
27133 bytes
0644
editor-environment-v2.js
670 bytes
0644
editor-environment-v2.min.js
246 bytes
0644
editor-loader-v1.js
402 bytes
0644
editor-loader-v1.min.js
88 bytes
0644
editor-loader-v2.js
890 bytes
0644
editor-loader-v2.min.js
443 bytes
0644
editor-modules.js
124633 bytes
0644
editor-modules.min.js
52409 bytes
0644
editor-modules.min.js.LICENSE.txt
149 bytes
0644
editor.js
2696683 bytes
0644
editor.min.js
1116587 bytes
0644
editor.min.js.LICENSE.txt
149 bytes
0644
elementor-admin-bar.js
19805 bytes
0644
elementor-admin-bar.min.js
7543 bytes
0644
f9b37afff6a65f7b9541.bundle.js
64563 bytes
0644
frontend-modules.js
180187 bytes
0644
frontend-modules.min.js
60151 bytes
0644
frontend.js
103835 bytes
0644
frontend.min.js
40436 bytes
0644
gutenberg.js
6652 bytes
0644
gutenberg.min.js
3423 bytes
0644
image-carousel.4455c6362492d9067512.bundle.min.js
432 bytes
0644
image-carousel.9399f19d95d7300cbc2e.bundle.js
929 bytes
0644
import-export-admin.js
15573 bytes
0644
import-export-admin.min.js
6328 bytes
0644
kit-elements-defaults-editor.js
92670 bytes
0644
kit-elements-defaults-editor.min.js
36320 bytes
0644
kit-elements-defaults-editor.min.js.LICENSE.txt
149 bytes
0644
kit-library.26f1573ff46203710889.bundle.min.js
89867 bytes
0644
kit-library.b4cf9f541e44f7bbc972.bundle.js
230996 bytes
0644
lightbox.1b6e05e0607040eb8929.bundle.min.js
30263 bytes
0644
lightbox.c35dbfc7181d730b570c.bundle.js
52905 bytes
0644
nested-accordion.js
29998 bytes
0644
nested-accordion.min.js
12654 bytes
0644
nested-accordion.min.js.LICENSE.txt
149 bytes
0644
nested-elements.js
21035 bytes
0644
nested-elements.min.js
6403 bytes
0644
nested-tabs.js
29958 bytes
0644
nested-tabs.min.js
12649 bytes
0644
nested-tabs.min.js.LICENSE.txt
149 bytes
0644
new-template.js
15880 bytes
0644
new-template.min.js
6841 bytes
0644
notes.js
26295 bytes
0644
notes.min.js
9750 bytes
0644
onboarding.c7161864bbc938281940.bundle.min.js
52723 bytes
0644
onboarding.d1f3b86a6e269191f707.bundle.js
120314 bytes
0644
preloaded-modules.js
79101 bytes
0644
preloaded-modules.min.js
41954 bytes
0644
progress.553d43a5b3903206bedc.bundle.js
1239 bytes
0644
progress.ca55d33bb06cee4e6f02.bundle.min.js
655 bytes
0644
responsive-bar.js
26758 bytes
0644
responsive-bar.min.js
11998 bytes
0644
styleguide-app-initiator.js
34488 bytes
0644
styleguide-app-initiator.min.js
14022 bytes
0644
styleguide-app-initiator.min.js.LICENSE.txt
149 bytes
0644
styleguide.js
104256 bytes
0644
styleguide.min.js
46879 bytes
0644
tabs.520bc2ed4560c561029e.bundle.js
7456 bytes
0644
tabs.c2af5be7f9cb3cdcf3d5.bundle.min.js
3705 bytes
0644
text-editor.2c35aafbe5bf0e127950.bundle.min.js
1360 bytes
0644
text-editor.2f2f7e0ea1e16387a004.bundle.js
2800 bytes
0644
text-path.b50b3e74488a4e302613.bundle.min.js
3255 bytes
0644
text-path.bfa8a1f6fcf6c803aaa9.bundle.js
8100 bytes
0644
toggle.31881477c45ff5cf9d4d.bundle.min.js
3770 bytes
0644
toggle.d79746a764407a0828ee.bundle.js
7560 bytes
0644
video.bb330f394f46f2666bc1.bundle.js
6724 bytes
0644
video.fea4f8dfdf17262f23e8.bundle.min.js
3324 bytes
0644
web-cli.js
512832 bytes
0644
web-cli.min.js
179035 bytes
0644
web-cli.min.js.LICENSE.txt
149 bytes
0644
webpack.runtime.js
15505 bytes
0644
webpack.runtime.min.js
4997 bytes
0644
wp-audio.75f0ced143febb8cd31a.bundle.min.js
349 bytes
0644
wp-audio.b8efdc046bc9df72a075.bundle.js
781 bytes
0644
N4ST4R_ID | Naxtarrr