Files
wyczarujprezent.pl/modules/leoelements/assets/js/new-template.min.js
2024-10-28 22:14:22 +01:00

8 lines
2.5 KiB
JavaScript

/**
* @Website: leotheme.com - prestashop template provider
* @author Leotheme <leotheme@gmail.com>
* @copyright Leotheme
* @description:
*/
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=452)}({452:function(e,t,n){"use strict";var o=n(453),i=elementorModules.ViewModule.extend({getDefaultSettings:function(){return{selectors:{addButton:".page-title-action:first, #elementor-template-library-add-new"}}},getDefaultElements:function(){var e=this.getSettings("selectors");return{$addButton:jQuery(e.addButton)}},bindEvents:function(){this.elements.$addButton.on("click",this.onAddButtonClick),elementorCommon.elements.$window.on("hashchange",this.showModalByHash.bind(this))},showModalByHash:function(){"#add_new"===location.hash&&(this.layout.showModal(),location.hash="")},onInit:function(){elementorModules.ViewModule.prototype.onInit.apply(this,arguments),this.layout=new o,this.showModalByHash()},onAddButtonClick:function(e){e.preventDefault(),this.layout.showModal()}});jQuery(function(){window.elementorNewTemplate=new i})},453:function(e,t,n){"use strict";var o=n(454);e.exports=elementorModules.common.views.modal.Layout.extend({getModalOptions:function(){return{id:"elementor-new-template-modal"}},getLogoOptions:function(){return{title:elementorAdmin.translate("new_template")}},initialize:function(){elementorModules.common.views.modal.Layout.prototype.initialize.apply(this,arguments),this.showLogo(),this.showContentView()},showContentView:function(){this.modalContent.show(new o)}})},454:function(e,t,n){"use strict";e.exports=Marionette.ItemView.extend({id:"elementor-new-template-dialog-content",template:"#tmpl-elementor-new-template",ui:{},events:{},onRender:function(){}})}});