!function(){"use strict";var t={n:function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},d:function(e,n){for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},e=window.jQuery,n=t.n(e),i=window.ctFrontend;(0,i.registerDynamicChunk)("blocksy_ext_woo_extra_advanced_reviews_lightbox",{mount:function(t,{event:e}){const i=t.closest(".ct-review-images"),r=i.querySelectorAll("img"),o=Array.from(r).map(function(t){return t.src}).indexOf(t.querySelector("img").src);!function(t,e,i=null){if(t.closest(".elementor-section-wrap"))return;const r=document.querySelector(".pswp"),o=t;let c=[...e.querySelectorAll(".ct-media-container")];if(c=c.map(function(t){const e=t.querySelector("img");return{mediaContainer:t,img:e,src:e.closest(".ct-media-container[data-src]")&&(e.closest(".ct-media-container[data-src]").dataset.src||e.closest(".ct-media-container[data-src]").href)||e.src,w:(e.closest("[data-width]")?e.closest("[data-width]").dataset.width:e.width)||e.width,h:(e.closest("[data-height]")?e.closest("[data-height]").dataset.height:e.width)||e.width,title:e.getAttribute("data-caption")}}),1!==c.length||!c[0].img||!c[0].img.closest("a")||c[0].img.closest("a").getAttribute("data-src")){var a=n().extend({index:0===i?0:i||n()(o).index(),addCaptionHTMLFn:function(t,e){return t.title?(e.children[0].textContent=t.title,!0):(e.children[0].textContent="",!1)}},{shareEl:!1,fullscreenEl:!0,closeOnScroll:!1,history:!1,showHideOpacity:!1,hideAnimationDuration:0,showAnimationDuration:0});new PhotoSwipe(r,PhotoSwipeUI_Default,c,a).init()}}(t,i,o)}})}();