PATH:
home
/
lab2454c
/
argowells.com
/
wp-content
/
plugins
/
elementor-pro
/
assets
/
js
/*! elementor-pro - v3.35.0 - 02-02-2026 */ "use strict"; (self["webpackChunkelementor_pro"] = self["webpackChunkelementor_pro"] || []).push([["modules_query-control_assets_js_editor_template-query-control_js"],{ /***/ "../modules/query-control/assets/js/editor/template-query-control.js": /*!***************************************************************************!*\ !*** ../modules/query-control/assets/js/editor/template-query-control.js ***! \***************************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { /* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; 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 _queryControl = _interopRequireDefault(__webpack_require__(/*! ./query-control */ "../modules/query-control/assets/js/editor/query-control.js")); class TemplateQueryControl extends _queryControl.default { ui() { return { ...super.ui(), newButton: 'button[data-action="new"]', editButton: 'button[data-action="edit"]' }; } events() { return { ...super.events(), 'click @ui.newButton': 'onNewButtonClicked', 'click @ui.editButton': 'onEditButtonClicked' }; } onRender(...args) { super.onRender(...args); this.toggleButtons(this.getControlValue()); } onBaseInputChange(...args) { super.onBaseInputChange(...args); this.toggleButtons(this.getInputValue(args[0].currentTarget)); } toggleButtons(templateID) { if (!templateID) { this.showNewTemplateButton(); } else { this.showEditTemplateButton(); } } showNewTemplateButton() { const newButton = this.ui?.newButton?.get(0), editButton = this.ui?.editButton?.get(0); if (newButton) { newButton.style.display = 'block'; } if (editButton) { editButton.style.display = 'none'; } } showEditTemplateButton() { const newButton = this.ui.newButton.get(0), editButton = this.ui.editButton.get(0); if (newButton) { newButton.style.display = 'none'; } if (editButton) { editButton.style.display = 'block'; } } async onNewButtonClicked() { this.createTemplate(); } /** * This function is used to create a new template via the REST API. * We first show a confirm dialog so the user knows that the current document will be saved while creating * and editing a new template. If the user chooses to cancel the process will not continue, * and if confirmed the new template is created and the Editor switched to this newly created template. * * @since 3.8.0 * * @return {void} */ createTemplate() { if (!this.confirmSaveBeforeTemplateCreateDialog) { this.confirmSaveBeforeTemplateCreateDialog = elementorCommon.dialogsManager.createWidget('confirm', { id: 'e-confirm-save-before-template-create', headerMessage: __('Save Changes', 'elementor-pro'), message: __('Would you like to save the changes you\'ve made?', 'elementor-pro'), position: { my: 'center center', at: 'center center' }, strings: { confirm: __('Save', 'elementor-pro'), cancel: __('Discard', 'elementor-pro') }, onConfirm: async () => { await this.onConfirmCreateTemplate(); } }); } this.confirmSaveBeforeTemplateCreateDialog.show(); } async onConfirmCreateTemplate() { $e.internal('panel/state-loading'); const templateID = await this.createAndSetTemplate(); this.afterAction('new', templateID); $e.internal('panel/state-ready'); } async createAndSetTemplate() { const controlId = this.model.get('name'), newTemplateType = this.options.container.controls[controlId].actions.new.document_config.type, newTemplateSource = this.getTemplateSourceTypeValue(), newTemplate = await $e.data.create('library/templates', { type: newTemplateType, page_settings: { source: newTemplateSource } }), templateID = parseInt(newTemplate.data.template_id); this.setValue(templateID); return templateID; } getTemplateSourceTypeValue() { if ('repeater' === this.options?.container?.args?.type) { return this.options.container.renderer.args.settings.attributes._skin || undefined; } return this.options.container.controls._skin ? this.options.container.panel.getControlView('_skin').getControlValue() : undefined; } /** * Function to switch the Editor when a user clicks to create a new template or edit the chosen template. * * @since 3.8.0 * * @param {string|number} id * * @return {Promise<void>} */ async switchDocument(id) { // Await $e.run( 'document/save/update', { force: true } ); await $e.run('editor/documents/switch', { id: parseInt(id), mode: 'save' }); const document = elementor.documents.getCurrent(); if (document.config.container_attributes && document.config.container_attributes.class) { document.$element.addClass(document.config.container_attributes.class); } } async onEditButtonClicked() { this.afterAction('edit', this.getControlValue()); } getSelect2Placeholder() { return { id: '', text: __('Start typing its name', 'elementor-pro') }; } async afterAction(context, templateID) { const action = 'new' === context ? this.ui.newButton[0].getAttribute('data-after-action') : this.ui.editButton[0].getAttribute('data-after-action'); if ('switch_document' === action) { await this.switchDocument(templateID); } else { window.open(this.getThemeBuilderURL(templateID), '_blank'); } } getThemeBuilderURL(templateID) { return `${elementor.config.admin_url}post.php?post=${templateID}&action=elementor`; } } exports["default"] = TemplateQueryControl; /***/ }) }]); //# sourceMappingURL=36c2990924ec9596ffad.bundle.js.map
[+]
..
[-] frontend.min.js
[edit]
[-] ajax-pagination.2390838f542f1a8d5ed4.bundle.js
[edit]
[-] interactions-pro.js
[edit]
[-] jszip.vendor.eba4ace24dcc63eadac0.bundle.min.js
[edit]
[-] elements-handlers.js
[edit]
[-] editor.js
[edit]
[-] progress-tracker.8cccdda9737c272489fc.bundle.min.js
[edit]
[-] screenshot.min.js
[edit]
[-] archive-posts.16a93245d08246e5e540.bundle.min.js
[edit]
[-] mega-menu-stretch-content.480e081cebe071d683e8.bundle.min.js
[edit]
[-] elements-handlers.min.js
[edit]
[-] nested-carousel-editor.0df35e0e1a284d4bd18b.bundle.js
[edit]
[-] social.d71d263bd937f0906192.bundle.min.js
[edit]
[-] woocommerce-checkout-page.48b0561b8ee895da5af5.bundle.js
[edit]
[-] search.5d88e65c03029f91931d.bundle.min.js
[edit]
[-] code-highlight.7121ad6fca6bf899bbb5.bundle.js
[edit]
[-] form-submission-admin.js
[edit]
[-] frontend.js
[edit]
[-] floating-bars-var-3.cdf99fd0b063a0032d53.bundle.min.js
[edit]
[-] form-submission-admin.min.js
[edit]
[-] off-canvas-editor.9d374fa1254f9efc259e.bundle.min.js
[edit]
[-] gallery.ac8ddd9e62465c5cdb2d.bundle.js
[edit]
[-] contact-buttons-var-10.16cf733dc3d3b250fef4.bundle.min.js
[edit]
[-] hotspot.5e711b7707a884acf3f1.bundle.js
[edit]
[-] e8eba20060a4b0fa29dc.bundle.js
[edit]
[-] contact-buttons.23b3f042ed41cf9221f4.bundle.js
[edit]
[-] posts.aec59265318492b89cb5.bundle.min.js
[edit]
[-] slides.bcd16bbde90338846bd7.bundle.js
[edit]
[-] woocommerce-purchase-summary.2ebf26dca7d446fdd128.bundle.js
[edit]
[-] menu-title-keyboard-handler.f0362773c21105d2c65c.bundle.min.js
[edit]
[-] admin.js
[edit]
[-] preview.min.js
[edit]
[-] search-form.b7065999d77832a1b764.bundle.min.js
[edit]
[-] interactions-pro.min.js
[edit]
[-] woocommerce-menu-cart.54f2e75f6769dce707e2.bundle.min.js
[edit]
[-] nav-menu.8521a0597c50611efdc6.bundle.min.js
[edit]
[-] slides.c0029640cbdb48199471.bundle.min.js
[edit]
[-] share-buttons.fda49c1691f4a352c7ef.bundle.js
[edit]
[-] display-conditions.js
[edit]
[-] webpack-pro.runtime.min.js
[edit]
[-] app.min.js
[edit]
[-] app.js
[edit]
[-] animated-headline.32baaa2ad2ea939224d5.bundle.js
[edit]
[-] product-add-to-cart.c32f5d5e404511d68720.bundle.min.js
[edit]
[-] loop-filter-editor.46a4c013b80a381a50c9.bundle.js
[edit]
[-] contact-buttons-var-10.44dafff87cd10dfffc68.bundle.js
[edit]
[-] gallery.06be1c07b9901f53d709.bundle.min.js
[edit]
[+]
packages
[-] load-more.8b46f464e573feab5dd7.bundle.min.js
[edit]
[-] stripe-button.49130d6eecb5ebc8afbd.bundle.min.js
[edit]
[-] page-transitions.min.js
[edit]
[+]
notes
[-] search.1a4ea982239b5f5db501.bundle.js
[edit]
[-] ajax-pagination.2090b5f4906bcda1dcc2.bundle.min.js
[edit]
[-] off-canvas.137463f629e2b7cbaf02.bundle.min.js
[edit]
[-] 8b11be0d97d58e135d30.bundle.js
[edit]
[-] nested-carousel-editor.6d7500036d0766bbe2fc.bundle.min.js
[edit]
[-] nested-carousel.db797a097fdc5532ef4a.bundle.min.js
[edit]
[-] carousel.3620fca501cb18163600.bundle.min.js
[edit]
[-] carousel.298f1fc9c115422aad0e.bundle.js
[edit]
[-] taxonomy-filter.f3f2746a00fed7447ff5.bundle.js
[edit]
[-] editor.min.js
[edit]
[-] table-of-contents.6ac58abccb098fb35213.bundle.js
[edit]
[-] mega-menu.595ee0dffef2bd038c6b.bundle.js
[edit]
[-] media-carousel.8f7b71d582be9d9410fe.bundle.js
[edit]
[-] display-conditions.min.js
[edit]
[-] custom-code.js
[edit]
[-] posts.e99f84b83c36d4568ffe.bundle.js
[edit]
[-] d241154d3774d66da9eb.bundle.min.js
[edit]
[-] 0726b2d81686a5392236.bundle.min.js
[edit]
[-] floating-bars-var-3.ce31fbd73759a9439cbf.bundle.js
[edit]
[-] loop-carousel.122d0b9321a9edad91b0.bundle.js
[edit]
[-] portfolio.5727b56368be256d0893.bundle.js
[edit]
[-] portfolio.4cd5da34009c30cb5d70.bundle.min.js
[edit]
[-] video-playlist.7140c18aeaebfda82118.bundle.js
[edit]
[-] hotspot.5033ed75928eff79cb95.bundle.min.js
[edit]
[-] progress-tracker.fd1d31a26340ed74e10a.bundle.js
[edit]
[-] woocommerce-notices.c1b466cde2ea03db7d6e.bundle.js
[edit]
[-] contact-buttons.99a987d66bcc2ade0ee6.bundle.min.js
[edit]
[-] code-highlight.b9addbc842a50347c9ab.bundle.min.js
[edit]
[-] off-canvas.ff4d0ebaaec46fc178b2.bundle.js
[edit]
[-] popup.f7b15b2ca565b152bf98.bundle.min.js
[edit]
[-] product-add-to-cart.0c33bb82cd57e51665f9.bundle.js
[edit]
[-] mega-menu.82093824ddb3f5531ab4.bundle.min.js
[edit]
[-] webpack-pro.runtime.js
[edit]
[-] woocommerce-purchase-summary.88a2d8ca449739e34f9f.bundle.min.js
[edit]
[-] nav-menu.fd37f05286fae9cd6d0c.bundle.js
[edit]
[-] table-of-contents.3be1ab725f562d10dd86.bundle.min.js
[edit]
[-] animated-headline.c009d6fa482515df23f8.bundle.min.js
[edit]
[-] lottie.824e2adeeca89f4297c7.bundle.js
[edit]
[-] off-canvas-editor.d30e3b4fb19101e5ff36.bundle.js
[edit]
[-] form.151b991a4cbdda620c22.bundle.js
[edit]
[-] stripe-button.cb4b1cf19f1c46430f76.bundle.js
[edit]
[-] woocommerce-my-account.7c01b4a03ae07847db06.bundle.js
[edit]
[-] woocommerce-menu-cart.a0d098b5b49cb56bf258.bundle.js
[edit]
[-] media-carousel.8d26e5df1a1527329fde.bundle.min.js
[edit]
[-] social.83aec5578e50a413de57.bundle.js
[edit]
[-] woocommerce-cart.480d117b95956d1f28a5.bundle.min.js
[edit]
[-] screenshot.js
[edit]
[-] jszip.vendor.a3c65615c1de5560962d.bundle.js
[edit]
[-] floating-bars-var-2.75c36e8b0bacbac6105e.bundle.min.js
[edit]
[-] load-more.f5ecc1c66872d0bd2d17.bundle.js
[edit]
[-] form.71055747203b48a65a24.bundle.min.js
[edit]
[-] loop.89cc81d2188312a17a17.bundle.min.js
[edit]
[-] mega-menu-editor.be91c0f96af4174d83d0.bundle.js
[edit]
[-] loop.43307e757bd5a39f14cd.bundle.js
[edit]
[-] editor-interactions-pro.js
[edit]
[-] woocommerce-my-account.d54826f355f9822b0ec0.bundle.min.js
[edit]
[-] mega-menu-editor.da6571bb00aaa3092eab.bundle.min.js
[edit]
[-] preview.js
[edit]
[-] archive-posts.6e398ddd4a81a78bcea3.bundle.js
[edit]
[-] 36c2990924ec9596ffad.bundle.js
[edit]
[-] popup.996738ad83c089bcc0b9.bundle.js
[edit]
[-] paypal-button.f4f64e46173f50701949.bundle.min.js
[edit]
[-] countdown.6e87ca40d36793d92aea.bundle.js
[edit]
[-] paypal-button.55ffb013a3fe565f55a5.bundle.js
[edit]
[-] share-buttons.63d984f8c96d1e053bc0.bundle.min.js
[edit]
[-] menu-title-keyboard-handler.efa6d39b4096f1de6f4d.bundle.js
[edit]
[-] 0726b2d81686a5392236.bundle.min.js.LICENSE.txt
[edit]
[-] admin.min.js
[edit]
[-] jszip.vendor.eba4ace24dcc63eadac0.bundle.min.js.LICENSE.txt
[edit]
[-] woocommerce-notices.00f9132bbbd683277a27.bundle.min.js
[edit]
[-] woocommerce-cart.3e38c78b18f28be95e9d.bundle.js
[edit]
[-] page-transitions.js
[edit]
[-] custom-code.min.js
[edit]
[-] loop-carousel.cd9a95b2e4dd2a239b81.bundle.min.js
[edit]
[-] search-form.8941aba5c12cdb05fb7c.bundle.js
[edit]
[-] loop-filter-editor.be7377d717e2499f4676.bundle.min.js
[edit]
[-] nested-carousel.ce414a51f188ccf670ee.bundle.js
[edit]
[-] countdown.0e9e688751d29d07a8d3.bundle.min.js
[edit]
[-] editor-interactions-pro.min.js
[edit]
[-] floating-bars-var-2.fa9c6b6e6aaeb43504f2.bundle.js
[edit]
[-] mega-menu-stretch-content.0d76e4a3b7bf65ff6f9b.bundle.js
[edit]
[-] lottie.a287ccfe024bea61e651.bundle.min.js
[edit]
[-] video-playlist.909c41acbc73cb741e9d.bundle.min.js
[edit]
[-] taxonomy-filter.a32526f3e4a201b5fce1.bundle.min.js
[edit]
[-] woocommerce-checkout-page.6ba1f1f2aa99210fa1cf.bundle.min.js
[edit]