PATH:
home
/
centosnipponia
/
public_html
/
nipponiacar
/
wp-content
/
plugins
/
elementor-pro
/
assets
/
js
/*! elementor-pro - v4.0.0 - 28-04-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=b07282a36331e8a0c35e.bundle.js.map
[+]
..
[+]
notes
[+]
packages
[-] search-form.9abeafeecde90cf7e0f4.bundle.min.js
[edit]
[-] progress-tracker.7b160888e308c5f64701.bundle.min.js
[edit]
[-] woocommerce-checkout-page.8391e03a51a57a42528a.bundle.min.js
[edit]
[-] woocommerce-menu-cart.d64f5409c5ae5e079f89.bundle.js
[edit]
[-] ajax-pagination.dfa3a82618d618a6a6bf.bundle.js
[edit]
[-] table-of-contents.485ffc086d8923139868.bundle.min.js
[edit]
[-] nested-carousel-editor.30f07a4ca0162c2af3fb.bundle.min.js
[edit]
[-] display-conditions.min.js
[edit]
[-] page-transitions.min.js
[edit]
[-] load-more.862f17c31e360ff1934e.bundle.js
[edit]
[-] floating-bars-var-2.a7a076850ecbe78bb8c7.bundle.js
[edit]
[-] page-transitions.js
[edit]
[-] hotspot.1555f80c1d14215e6b69.bundle.js
[edit]
[-] gallery.cca2358f59857ce6f62f.bundle.min.js
[edit]
[-] b07282a36331e8a0c35e.bundle.js
[edit]
[-] form-submission-admin.min.js
[edit]
[-] jszip.vendor.ee0ba61191fa34e6bbe2.bundle.min.js
[edit]
[-] frontend.min.js
[edit]
[-] preview.js
[edit]
[-] lottie.4cf7a751c39c2d5e59f3.bundle.js
[edit]
[-] woocommerce-my-account.9a2312ed0688c67a0cb5.bundle.js
[edit]
[-] search.eb99cbb2b336e50a443a.bundle.js
[edit]
[-] taxonomy-filter.77f346809c2657dd250a.bundle.js
[edit]
[-] share-buttons.b99b5ff11c944a3a8ea9.bundle.min.js
[edit]
[-] contact-buttons.e1605c5cfaccbff3c14b.bundle.min.js
[edit]
[-] off-canvas-editor.9a4eb354fc664c85a496.bundle.js
[edit]
[-] jszip.vendor.4627e880b5d487f49e7a.bundle.js
[edit]
[-] gallery.1f2d6260aa05f94aca68.bundle.js
[edit]
[-] loop-carousel.5eddbaa4e0c79c44c5c1.bundle.js
[edit]
[-] carousel.f93681c60a8355c99044.bundle.js
[edit]
[-] mega-menu.857df1cf3198ae47b617.bundle.min.js
[edit]
[-] nested-carousel-editor.d0c65ae2ec3f418e3b3f.bundle.js
[edit]
[-] admin.min.js
[edit]
[-] product-add-to-cart.7dd001c520feddf0ce5a.bundle.js
[edit]
[-] elements-handlers.js
[edit]
[-] interactions-pro.min.js
[edit]
[-] woocommerce-purchase-summary.f27e4afffb08961d9bd6.bundle.js
[edit]
[-] popup.467433314d83de8c86ec.bundle.js
[edit]
[-] code-highlight.872070dcb83100cdc6a7.bundle.js
[edit]
[-] bd4b7d0b3467c3b749da.bundle.min.js.LICENSE.txt
[edit]
[-] custom-code.js
[edit]
[-] posts.844727d8428792223d2f.bundle.min.js
[edit]
[-] media-carousel.1eb08e97c13152575144.bundle.js
[edit]
[-] off-canvas.82d118980fb5aa03c82b.bundle.min.js
[edit]
[-] contact-buttons-var-10.11bf4233106e1245bd61.bundle.min.js
[edit]
[-] popup.61d4fcab8891b2e07802.bundle.min.js
[edit]
[-] video-playlist.d7d184236c3e54fc0c27.bundle.js
[edit]
[-] portfolio.d389311c484631ccbb99.bundle.js
[edit]
[-] loop-carousel.881847b13e8fe1f8bfc2.bundle.min.js
[edit]
[-] animated-headline.248bbeadaf74dd446e7d.bundle.js
[edit]
[-] e8fec410b4ec8b8ad5e5.bundle.js
[edit]
[-] interactions-pro.js
[edit]
[-] nav-menu.393f7e8d1eb984d695bc.bundle.js
[edit]
[-] countdown.05b148ca20af32fc8e9f.bundle.min.js
[edit]
[-] editor-interactions-pro.js
[edit]
[-] off-canvas.c6c9ad84eff54adcd9f3.bundle.js
[edit]
[-] paypal-button.5c63e4c8f36fb06aff31.bundle.min.js
[edit]
[-] archive-posts.0b71f7023819e3872142.bundle.min.js
[edit]
[-] ajax-pagination.505018eb312c83998279.bundle.min.js
[edit]
[-] webpack-pro.runtime.js
[edit]
[-] custom-code.min.js
[edit]
[-] form.cfd61a9174be80f835c6.bundle.min.js
[edit]
[-] menu-title-keyboard-handler.b3891112675eb0b0c4d5.bundle.min.js
[edit]
[-] stripe-button.ff670b274b64f1097386.bundle.js
[edit]
[-] bd4b7d0b3467c3b749da.bundle.min.js
[edit]
[-] floating-bars-var-3.c5d9c759b0475977fd76.bundle.js
[edit]
[-] woocommerce-notices.181b8701c45ec5374829.bundle.min.js
[edit]
[-] table-of-contents.8496840ef16d1ad4138f.bundle.js
[edit]
[-] nested-carousel.659b0373371215e60dab.bundle.min.js
[edit]
[-] slides.8e9b74f1b31471377df8.bundle.min.js
[edit]
[-] app.js
[edit]
[-] share-buttons.c76474949213ab8d37c0.bundle.js
[edit]
[-] woocommerce-my-account.ab469f426496c628ac6c.bundle.min.js
[edit]
[-] woocommerce-checkout-page.1e854a92527f7870a712.bundle.js
[edit]
[-] slides.aefbc8effd03bc1b7881.bundle.js
[edit]
[-] animated-headline.bc08854fb1e1a80434b2.bundle.min.js
[edit]
[-] search.f239247b514b4d0e8743.bundle.min.js
[edit]
[-] loop-filter-editor.e5be4d8fdcb9e22b57f7.bundle.js
[edit]
[-] webpack-pro.runtime.min.js
[edit]
[-] mega-menu-editor.7a18763e360ce7e0eacc.bundle.js
[edit]
[-] 38a015cfd4402fcba18c.bundle.js
[edit]
[-] code-highlight.38ec4828db8d33cccbe9.bundle.min.js
[edit]
[-] video-playlist.d48e1a11007fe8c248f8.bundle.min.js
[edit]
[-] posts.b01cefd7be5b5933ef48.bundle.js
[edit]
[-] media-carousel.87c2cf115553a2c4f709.bundle.min.js
[edit]
[-] editor.min.js
[edit]
[-] floating-bars-var-3.e9e9c0ea3c6fb0e51c58.bundle.min.js
[edit]
[-] stripe-button.b7e32b5d713d60752c7e.bundle.min.js
[edit]
[-] product-add-to-cart.a4f88a0c19e95b3912b6.bundle.min.js
[edit]
[-] display-conditions.js
[edit]
[-] mega-menu-stretch-content.65ac3ff61cbda73d513e.bundle.js
[edit]
[-] archive-posts.d82fc1f6376a91acb912.bundle.js
[edit]
[-] frontend.js
[edit]
[-] jszip.vendor.ee0ba61191fa34e6bbe2.bundle.min.js.LICENSE.txt
[edit]
[-] woocommerce-cart.9131ef5e40333f8066dd.bundle.min.js
[edit]
[-] paypal-button.557bf338d556d8411f0e.bundle.js
[edit]
[-] mega-menu-editor.2c998fb188047136dde3.bundle.min.js
[edit]
[-] lottie.55ad84218daed1323133.bundle.min.js
[edit]
[-] elements-handlers.min.js
[edit]
[-] form.333cc493ca6159f7ee0e.bundle.js
[edit]
[-] admin.js
[edit]
[-] woocommerce-menu-cart.33fbf47b819947e7a2a7.bundle.min.js
[edit]
[-] menu-title-keyboard-handler.000fb4658b703c6ebe56.bundle.js
[edit]
[-] social.de5cec83bf689b2f1f01.bundle.min.js
[edit]
[-] loop-filter-editor.66aa1bfab17d9f314834.bundle.min.js
[edit]
[-] screenshot.js
[edit]
[-] taxonomy-filter.6526351a1205655def47.bundle.min.js
[edit]
[-] contact-buttons.0f9a28de84eecdb341e1.bundle.js
[edit]
[-] editor-interactions-pro.min.js
[edit]
[-] load-more.7c4417f8a727b79f546f.bundle.min.js
[edit]
[-] mega-menu-stretch-content.7ed04741ba7d5a80c556.bundle.min.js
[edit]
[-] screenshot.min.js
[edit]
[-] nested-carousel.925fbc1c35869d1767d5.bundle.js
[edit]
[-] woocommerce-purchase-summary.118e54b95a68f0ad8c09.bundle.min.js
[edit]
[-] carousel.e2af910b095554625156.bundle.min.js
[edit]
[-] off-canvas-editor.ff99e117444b8e4b9d09.bundle.min.js
[edit]
[-] preview.min.js
[edit]
[-] countdown.7bd51efbed8eaac97b16.bundle.js
[edit]
[-] b24baa04ab276a4dc8a2.bundle.min.js
[edit]
[-] woocommerce-notices.a2feb6e26254257dbe93.bundle.js
[edit]
[-] hotspot.737497535441dc0bc037.bundle.min.js
[edit]
[-] woocommerce-cart.b85d04bc7b7a472432cf.bundle.js
[edit]
[-] form-submission-admin.js
[edit]
[-] loop.8f668e18a5d491cc01b7.bundle.js
[edit]
[-] progress-tracker.26b12b208974a26b52d0.bundle.js
[edit]
[-] floating-bars-var-2.5287acd8570f1ce2dde3.bundle.min.js
[edit]
[-] loop.1594a1df76e87a11eda2.bundle.min.js
[edit]
[-] mega-menu.9c175c27b10a1a51ffad.bundle.js
[edit]
[-] nav-menu.3afa8f5eb1fef7c22561.bundle.min.js
[edit]
[-] editor.js
[edit]
[-] app.min.js
[edit]
[-] contact-buttons-var-10.6caef1cb29200dd63f5a.bundle.js
[edit]
[-] social.b8ce24160d1e761ca0a6.bundle.js
[edit]
[-] search-form.2fe57bcace4909ad8f6a.bundle.js
[edit]
[-] portfolio.3d0e387cc28c07bae511.bundle.min.js
[edit]
[-] .htaccess.disabled
[edit]