5 lines
11 KiB
JavaScript
5 lines
11 KiB
JavaScript
/*!
|
|
* Creative Elements - live Theme & Page Builder
|
|
* Copyright 2019-2022 WebshopWorks.com & Elementor.com
|
|
*/
|
|
!function(n){var o={};function r(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=n,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=199)}({19:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(5)),r=i(n(6)),n=i(n(20));function i(e){return e&&e.__esModule?e:{default:e}}t.default=window.elementorModules={Module:o.default,ViewModule:r.default,utils:{Masonry:n.default}}},199:function(e,t,n){"use strict";var o=r(n(19)),n=r(n(200));function r(e){return e&&e.__esModule?e:{default:e}}o.default.common={views:{modal:{Layout:n.default}}}},20:function(e,t,n){"use strict";var n=n(6),n=(n=n)&&n.__esModule?n:{default:n};e.exports=n.default.extend({getDefaultSettings:function(){return{container:null,items:null,columnsCount:3,verticalSpaceBetween:30}},getDefaultElements:function(){return{$container:jQuery(this.getSettings("container")),$items:jQuery(this.getSettings("items"))}},run:function(){var r=[],i=this.elements.$container.position().top,a=this.getSettings(),l=a.columnsCount;i+=parseInt(this.elements.$container.css("margin-top"),10),this.elements.$items.each(function(e){var t=Math.floor(e/l),n=jQuery(this),o=n[0].getBoundingClientRect().height+a.verticalSpaceBetween;t?(e=n.position().top-i-r[t=e%l],e-=parseInt(n.css("margin-top"),10),n.css("margin-top",(e*=-1)+"px"),r[t]+=o):r.push(o)})}})},200:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e};function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=u(n(201)),a=u(n(202)),l=u(n(203));function u(e){return e&&e.__esModule?e:{default:e}}n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(n,[{key:"el",value:function(){return this.getModal().getElements("widget")}},{key:"regions",value:function(){return{modalHeader:".dialog-header",modalContent:".dialog-lightbox-content",modalLoading:".dialog-lightbox-loading"}}},{key:"initialize",value:function(){this.modalHeader.show(new i.default(this.getHeaderOptions()))}},{key:"getModal",value:function(){return this.modal||this.initModal(),this.modal}},{key:"initModal",value:function(){var e={className:"elementor-templates-modal",closeButton:!1,draggable:!1,hide:{onOutsideClick:!1}};jQuery.extend(!0,e,this.getModalOptions()),this.modal=elementorCommon.dialogsManager.createWidget("lightbox",e),this.modal.getElements("message").append(this.modal.addElement("content"),this.modal.addElement("loading")),e.draggable&&this.draggableModal()}},{key:"showModal",value:function(){this.getModal().show()}},{key:"hideModal",value:function(){this.getModal().hide()}},{key:"draggableModal",value:function(){var e=this.getModal().getElements("widgetContent");e.draggable({containment:"parent",stop:function(){e.height("")}}),e.css("position","absolute")}},{key:"getModalOptions",value:function(){return{}}},{key:"getLogoOptions",value:function(){return{}}},{key:"getHeaderOptions",value:function(){return{closeType:"normal"}}},{key:"getHeaderView",value:function(){return this.modalHeader.currentView}},{key:"showLoadingView",value:function(){this.modalLoading.show(new l.default),this.modalLoading.$el.show(),this.modalContent.$el.hide()}},{key:"hideLoadingView",value:function(){this.modalContent.$el.show(),this.modalLoading.$el.hide()}},{key:"showLogo",value:function(){this.getHeaderView().logoArea.show(new a.default(this.getLogoOptions()))}}]),n}(Marionette.LayoutView);t.default=n},201:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e};function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(n,[{key:"className",value:function(){return"elementor-templates-modal__header"}},{key:"getTemplate",value:function(){return"#tmpl-elementor-templates-modal__header"}},{key:"regions",value:function(){return{logoArea:".elementor-templates-modal__header__logo-area",tools:"#elementor-template-library-header-tools",menuArea:".elementor-templates-modal__header__menu-area"}}},{key:"ui",value:function(){return{closeModal:".elementor-templates-modal__header__close"}}},{key:"events",value:function(){return{"click @ui.closeModal":"onCloseModalClick"}}},{key:"templateHelpers",value:function(){return{closeType:this.getOption("closeType")}}},{key:"onCloseModalClick",value:function(){this._parent._parent._parent.hideModal()}}]),n}(Marionette.LayoutView);t.default=i},202:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e};function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(n,[{key:"getTemplate",value:function(){return"#tmpl-elementor-templates-modal__header__logo"}},{key:"className",value:function(){return"elementor-templates-modal__header__logo"}},{key:"events",value:function(){return{click:"onClick"}}},{key:"templateHelpers",value:function(){return{title:this.getOption("title")}}},{key:"onClick",value:function(){var e=this.getOption("click");e&&e()}}]),n}(Marionette.ItemView);t.default=i},203:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e};function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(n,[{key:"id",value:function(){return"elementor-template-library-loading"}},{key:"getTemplate",value:function(){return"#tmpl-elementor-template-library-loading"}}]),n}(Marionette.ItemView);t.default=i},5:function(e,t,n){"use strict";function i(){var r=jQuery,e=arguments,i=this,o={},a=void 0;this.getItems=function(e,t){var n;return t?(n=(t=t.split(".")).splice(0,1),t.length?e[n]?this.getItems(e[n],t.join(".")):void 0:e[n]):e},this.getSettings=function(e){return this.getItems(a,e)},this.setSettings=function(e,t,n){if(n=n||a,"object"===(void 0===e?"undefined":l(e)))return r.extend(n,e),i;var e=e.split("."),o=e.splice(0,1);return e.length?(n[o]||(n[o]={}),i.setSettings(e.join("."),t,n[o])):(n[o]=t,i)},this.forceMethodImplementation=function(e){e=e.callee.name;throw new ReferenceError("The method "+e+" must to be implemented in the inheritor child.")},this.on=function(e,t){return"object"===(void 0===e?"undefined":l(e))?r.each(e,function(e){i.on(e,this)}):e.split(" ").forEach(function(e){o[e]||(o[e]=[]),o[e].push(t)}),i},this.off=function(e,t){return o[e]&&(t?-1!==(t=o[e].indexOf(t))&&delete o[e][t]:delete o[e]),i},this.trigger=function(e){var t="on"+e[0].toUpperCase()+e.slice(1),n=Array.prototype.slice.call(arguments,1),t=(i[t]&&i[t].apply(i,n),o[e]);return t&&r.each(t,function(e,t){t.apply(i,n)}),i},i.__construct.apply(i,e),r.each(i,function(e){var t=i[e];"function"==typeof t&&(i[e]=function(){return t.apply(i,arguments)})}),a=i.getDefaultSettings(),(e=e[0])&&r.extend(!0,a,e),i.trigger("init")}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};i.prototype.__construct=function(){},i.prototype.getDefaultSettings=function(){return{}},i.extendsCount=0,i.extend=function(e){function t(){return o.apply(this,arguments)}var n=jQuery,o=this,r=(n.extend(t,o),(t.prototype=Object.create(n.extend({},o.prototype,e))).constructor=t,++i.extendsCount);return t.prototype.getConstructorID=function(){return r},t.__super__=o.prototype,t},e.exports=i},6:function(e,t,n){"use strict";var n=n(5),n=(n=n)&&n.__esModule?n:{default:n};e.exports=n.default.extend({elements:null,getDefaultElements:function(){return{}},bindEvents:function(){},onInit:function(){this.initElements(),this.bindEvents()},initElements:function(){this.elements=this.getDefaultElements()}})}}); |