![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /proc/thread-self/cwd/wp-content/plugins/uicore-framework/assets/js/elements/ |
uicoreJsonp([30],{287:function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();window.addEventListener("DOMContentLoaded",function(){var e=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,elementorModules.frontend.handlers.Base),r(t,[{key:"triggerGalleryInEditor",value:function(){jQuery(".woocommerce-product-gallery").each(function(){jQuery(this).trigger("wc-product-gallery-before-init",[this,wc_single_product_params]),jQuery(this).wc_product_gallery(wc_single_product_params),jQuery(this).trigger("wc-product-gallery-after-init",[this,wc_single_product_params])}),jQuery(".woocommerce-product-gallery__image").css("pointer-events","none")}},{key:"bindEvents",value:function(){this.triggerGalleryInEditor()}},{key:"onElementChange",value:function(e){["gallery_style","post_id"].includes(e)&&this.triggerGalleryInEditor()}}]),t}();jQuery(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/uicore-woo-product-gallery.default",function(t){elementorFrontend.elementsHandler.addHandler(e,{$element:t})})})})}},[287]);