"use strict";function GSEL_ajax_load(e,t=null,l=null){let s=e.currentTarget;if(s||(s=e.target),l&&(s=l),void 0!==s.classList&&s.classList.contains("loaded"))return;let n="";if(""==(n=t||parseInt(n=s.getAttribute("class").match(/load-block-([0-9]+)/)[1])))return;var a=document.getElementsByClassName("gs-ajax-load-block-"+n);for(let o=0;o<a.length;o++)a[o].classList.add("gspreloader");let i=new XMLHttpRequest;i.open("POST",gsreusablevars.ajax_url,!0),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),i.responseType="json",i.onload=function(){if(this.status>=200&&this.status<400){let e=this.response.data;void 0!==s.classList&&s.classList.add("loaded");for(let t=0;t<a.length;t++){let l=a[t];if(l.classList.remove("gspreloader"),l.classList.contains("loaded"))continue;l.insertAdjacentHTML("beforeend",e),l.classList.add("loaded");let n=l.getElementsByClassName("gs-gsap-wrap");if(n.length>0)for(let o=0;o<n.length;o++)GSinit(n[o]);let i=l.querySelectorAll("[data-gsapinit]");if(i.length>0&&"undefined"!=typeof GSinit)for(let r=0;r<i.length;r++)GSinit(i[r]);let c=l.getElementsByClassName("gs-prlx-mouse");if(c.length>0&&"undefined"!=typeof GSmousemoveinit)for(let f=0;f<c.length;f++)GSmousemoveinit(c[f]);let d=l.getElementsByClassName("gs-flip-wrap");if(d.length>0&&"undefined"!=typeof GSFlipinit)for(let g=0;g<d.length;g++)GSFlipinit(d[g]);let u=l.getElementsByClassName("gs-sequencer-wrap");if(u.length>0&&"undefined"!=typeof GSSeqinit)for(let p=0;p<u.length;p++){let m=u[p],h=JSON.parse(m.getAttribute("data-images"));h.length>0&&(h.forEach(e=>{GSpreloadImage(e)}),GSSeqinit(m))}let y=l.getElementsByClassName("gs-reveal-wrap");if(y.length>0&&"undefined"!=typeof GSrevealinit)for(let $=0;$<y.length;$++)GSrevealinit(y[$]);let E=l.getElementsByClassName("gspb-flipfilters");if(E.length>0)for(let L=0;L<E.length;L++){let b=E[L],v=b.querySelector(".gspb-checkbox-filter-all"),k=gsap.utils.toArray(b.querySelectorAll(".gspb-checkbox-filter-item")),w=gsap.utils.toArray(b.querySelectorAll(".gs-flipfilter"));k.forEach(e=>e.addEventListener("click",function(e){GSFlipFilters(w,k,v)})),v.addEventListener("click",function(e){k.forEach(e=>e.checked=v.checked),GSFlipFilters(w,k,v)})}"undefined"!=typeof ScrollTrigger&&ScrollTrigger.refresh(),"function"==typeof GSPBSlidingPanelInit&&GSPBSlidingPanelInit(l),"function"==typeof gsInitTabs&&gsInitTabs(".gspb-tabs",l),"function"==typeof GSPB_Swiper_Init&&GSPB_Swiper_Init(l),"function"==typeof GS_Videos_Init&&GS_Videos_Init(l),"function"==typeof GSPB_Toggler_Init&&GSPB_Toggler_Init(l),"function"==typeof GSPB_quantityInput&&GSPB_quantityInput(l)}}},i.onerror=function(){},i.send("action=gspb_el_reusable_load&security="+gsreusablevars.reusablenonce+"&post_id="+n)}window.onload=function(){let e=document.getElementsByClassName("gs-el-onhover");for(let t=0;t<e.length;t++){let l=e[t];document.documentElement.clientWidth>1024?l.addEventListener("mouseenter",function(e){GSEL_ajax_load(e)}):l.addEventListener("click",function(e){if(l.classList.contains("loaded")&&l.classList.contains("wp-block-navigation-item")){l.classList.toggle("megamenuloaded");let t=l.getAttribute("class").match(/load-block-([0-9]+)/)[1];t=parseInt(t);let s=document.getElementsByClassName("gs-ajax-load-block-"+t);for(let n=0;n<s.length;n++)s[n].classList.toggle("megamenuloaded")}else GSEL_ajax_load(e)})}let s=document.getElementsByClassName("gs-el-onclick");for(let n=0;n<s.length;n++)s[n].addEventListener("click",function(e){GSEL_ajax_load(e)})};const gsELLoadonviewObserves=document.getElementsByClassName("gs-el-onview");let gselobserver=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&GSEL_ajax_load(e)})});for(let itemobserve of gsELLoadonviewObserves)gselobserver.observe(itemobserve);