3 lines
50 KiB
JavaScript
3 lines
50 KiB
JavaScript
|
/*! elementor - v3.18.0 - 20-12-2023 */
|
||
|
/*! For license information please see admin.min.js.LICENSE.txt */
|
||
|
(()=>{var e={15511:e=>{"use strict";e.exports=elementorModules.ViewModule.extend({getDefaultSettings:function getDefaultSettings(){return{selectors:{modeSelect:".elementor_maintenance_mode_mode select",maintenanceModeTable:"#tab-maintenance_mode table",maintenanceModeDescriptions:".elementor-maintenance-mode-description",excludeModeSelect:".elementor_maintenance_mode_exclude_mode select",excludeRolesArea:".elementor_maintenance_mode_exclude_roles",templateSelect:".elementor_maintenance_mode_template_id select",editTemplateButton:".elementor-edit-template",maintenanceModeError:".elementor-maintenance-mode-error"},classes:{isEnabled:"elementor-maintenance-mode-is-enabled"}}},getDefaultElements:function getDefaultElements(){var e={},t=this.getSettings("selectors");return e.$modeSelect=jQuery(t.modeSelect),e.$maintenanceModeTable=e.$modeSelect.parents(t.maintenanceModeTable),e.$excludeModeSelect=e.$maintenanceModeTable.find(t.excludeModeSelect),e.$excludeRolesArea=e.$maintenanceModeTable.find(t.excludeRolesArea),e.$templateSelect=e.$maintenanceModeTable.find(t.templateSelect),e.$editTemplateButton=e.$maintenanceModeTable.find(t.editTemplateButton),e.$maintenanceModeDescriptions=e.$maintenanceModeTable.find(t.maintenanceModeDescriptions),e.$maintenanceModeError=e.$maintenanceModeTable.find(t.maintenanceModeError),e},handleModeSelectChange:function handleModeSelectChange(){var e=this.getSettings(),t=this.elements;t.$maintenanceModeTable.toggleClass(e.classes.isEnabled,!!t.$modeSelect.val()),t.$maintenanceModeDescriptions.hide(),t.$maintenanceModeDescriptions.filter('[data-value="'+t.$modeSelect.val()+'"]').show()},handleExcludeModeSelectChange:function handleExcludeModeSelectChange(){var e=this.elements;e.$excludeRolesArea.toggle("custom"===e.$excludeModeSelect.val())},handleTemplateSelectChange:function handleTemplateSelectChange(){var e=this.elements,t=e.$templateSelect.val();if(!t)return e.$editTemplateButton.hide(),void e.$maintenanceModeError.show();var n=elementorAdmin.config.home_url+"?p="+t+"&elementor";e.$editTemplateButton.prop("href",n).show(),e.$maintenanceModeError.hide()},bindEvents:function bindEvents(){var e=this.elements;e.$modeSelect.on("change",this.handleModeSelectChange.bind(this)),e.$excludeModeSelect.on("change",this.handleExcludeModeSelectChange.bind(this)),e.$templateSelect.on("change",this.handleTemplateSelectChange.bind(this))},onAdminInit:function onAdminInit(){this.handleModeSelectChange(),this.handleExcludeModeSelectChange(),this.handleTemplateSelectChange()},onInit:function onInit(){elementorModules.ViewModule.prototype.onInit.apply(this,arguments),elementorCommon.elements.$window.on("elementor/admin/init",this.onAdminInit)}})},75389:(e,t,n)=>{"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(78983)),a=r(n(42081)),i=r(n(51121)),s=r(n(58724)),l=r(n(71173)),u=r(n(74910));function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function _createSuperInternal(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var c=function(e){(0,s.default)(MenuHandler,e);var t=_createSuper(MenuHandler);function MenuHandler(){return(0,o.default)(this,MenuHandler),t.apply(this,arguments)}return(0,a.default)(MenuHandler,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{selectors:{currentSubmenuItems:"#adminmenu .current"}}}},{key:"getDefaultElements",value:function getDefaultElements(){var e=this.getSettings();return{$currentSubmenuItems:jQuery(e.selectors.currentSubmenuItems),$adminPageMenuLink:jQuery('a[href="'.concat(e.path,'"]'))}}},{key:"highlightSubMenuItem",value:function highlightSubMenuItem(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||this.e
|