!function(){"use strict";var t={};function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function r(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return e(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,{a:r}),r},t.d=function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var n=window.jQuery,o=t.n(n),i=window.ctFrontend;(0,i.registerDynamicChunk)("blocksy_ext_woo_extra_advanced_reviews_lightbox",{mount:function(t,e){e.event;var n=t.closest(".ct-review-images"),i=n.querySelectorAll("img"),a=Array.from(i).map((function(t){return t.src})).indexOf(t.querySelector("img").src);!function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t.closest(".elementor-section-wrap")){var i=document.querySelector(".pswp"),a=t,c=r(e.querySelectorAll(".ct-media-container"));if(1!==(c=c.map((function(t){var e=t.querySelector("img");return{mediaContainer:t,img:e,src:e.closest("[data-src]")&&(e.closest("[data-src]").dataset.src||e.closest("[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")}}))).length||!c[0].img||!c[0].img.closest("a")||c[0].img.closest("a").getAttribute("data-src")){var l=o().extend({index:0===n?0:n||o()(a).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(i,PhotoSwipeUI_Default,c,l).init()}}}(t,n,a)}})}();