PageSourceSearch

https://veramenditx.com/wp-content/plugins/smarttouch/common/build/view.js?ver=1780435968

js veramenditx.com collected 2026-10-08 08:37:29 UTC 92,604 bytes, 1 lines download raw bytes

1(()=>{"use strict";const t=window.lodash,e={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let s;const i=new Uint8Array(16),a=[];for(let t=0;t<256;++t)a.push((t+256).toString(16).slice(1));function o(t,e,o){const r=(t=t||{}).random??t.rng?.()??function(){if(!s){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");s=crypto.getRandomValues.bind(crypto)}return s(i)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){if((o=o||0)<0||o+16>e.length)throw new RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`);for(let t=0;t<16;++t)e[o+t]=r[t];return e}return function(t,e=0){return(a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]).toLowerCase()}(r)}const r=function(t,s,i){return!e.randomUUID||s||t?o(t,s,i):e.randomUUID()},l=(t,e)=>{const{display:s}=e,i={},a=JSON.parse(LZUTF8.decompress(t.dataset.googlemap,{inputEncoding:"Base64"}));t.removeAttribute("data-googlemap"),t.style.setProperty("--ratio",sti.disp(a,"ratio",s)+"%"),(async()=>{const{Map:o}=await google.maps.importLibrary("maps"),{AdvancedMarkerView:r}=await google.maps.importLibrary("marker"),l=new o(t.querySelector(".st-googlemap"),{isFractionalZoomEnabled:!0,center:sti.disp(a,"center",s),zoom:sti.disp(a,"zoom",s),tilt:a.tilt?45:0,disableDefaultUI:!0,gestureHandling:"cooperative",mapTypeId:a.type,maxZoom:17,minZoom:null});l.el=t.querySelector(".st-googlemap"),l.clearInfoWindows=()=>{for(const[t,e]of Object.entries(i))e.InfoWindow.close();return!0},t.map=l,a.traffic&&new google.maps.TrafficLayer({map:l}),a.transit&&new google.maps.TransitLayer({map:l});let d=sti.disp(a,"bounds",s);if(d){d=new google.maps.LatLngBounds(d);
1const e=d.getSouthWest();let i=d.getNorthEast().lng()-e.lng();i<0&&(i+=360),l.setOptions({minZoom:Math.log(360*t.querySelector(".st-googlemap").offsetWidth/i/256)/Math.LN2}),l.setRestriction({latLngBounds:sti.disp(a,"bounds",s)})}for(const[t,e]of Object.entries(a.ui))l.setOptions({[t+"Control"]:!0});const p=[{elementType:"labels",featureType:"all",stylers:[{visibility:"off"}]}];for(const[t,e]of Object.entries(a.labels))p.push({elementType:"labels",featureType:t.replace("__","."),stylers:[{visibility:"on"}]});for(const[t,e]of Object.entries(a.fill))"labels"==t?p.push({elementType:"labels.text.fill",stylers:[{color:e}]}):p.push({elementType:"geometry.fill",featureType:t.replace("__","."),stylers:[{color:e}]});for(const[t,e]of Object.entries(a.stroke))"labels"==t?p.push({elementType:"labels.text.stroke",stylers:[{color:e}]}):p.push({elementType:"geometry.stroke",featureType:t.replace("__","."),stylers:[{color:e}]});if(l.setOptions({styles:p}),l.getInfoWindow=(t,i)=>{const a=mapMarkers[t];let o=mapInfoWindows[a.infoWindow];if(o||(o=mapInfoWindows.default),!o)return a.place.name;let r=(new DOMParser).parseFromString(o.body,"text/html").body;r.innerHTML=r.innerHTML.replace(/https?:\/\/\{\{/g,"{{");for(const[t,e]of Object.entries(o.atts))if("place"===e){if(a.place[t])switch(t){case"image":case"gallery":break;default:r.innerHTML=r.innerHTML.replaceAll("{{place:"+t+"}}",a.place[t])}}else if(a.atts[t])switch(e){case"text":r.innerHTML=r.innerHTML.replaceAll("{{text:"+t+"}}",a.atts[t]);break;case"image":r.querySelectorAll(".use-variable-image-"+t).forEach(e=>{e.classList.remove("use-variable-image-"+t);const s=JSON.parse(LZUTF8.decompress(e.firstChild.dataset.img,{inputEncoding:"Base64"}));s.desktop.src=a.atts[t],delete s.tablet.src,delete s.mobile.src,e.firstChild.dataset.img=LZUTF8.compress(JSON.stringify(s),{outputEncoding:"Base64"})});break;case"slideshow":r.querySelectorAll(".use-variable-slideshow-"+t).forEach(e=>{e.classList.remove("use-variable-slideshow-"+t);const s=JSON.parse(LZUTF8.decompress(e.dataset.slideshow,{inputEncoding:"Base64"}));s.meta=a.atts[t].meta,s.slides=a.atts[t].slides,e.dataset.slideshow=LZUTF8.compress(JSON.stringify(s),{outputEncoding:"Base64"})})}r.querySelectorAll('[class*="use-variable"]').forEach(t=>t.remove());const l=r.innerHTML.match(/\{\{[^\}]+?\}\}/g);l&&l.map(t=>{r.innerHTML=r.innerHTML.replaceAll(t,"")});const{base:n}=e;return r=c(r,s),n.querySelector("#editor")&&r.querySelectorAll("a").forEach(t=>t.addEventListener("click",e=>{alert("Link Opens: "+t.getAttribute("href")),e.stopImmediatePropagation(),e.preventDefault(),e.stopPropagation()})),r.querySelectorAll(".map-close").forEach(t=>t.addEventListener("click",()=>i.close())),r.firstChild},a.categories.forEach(t=>{stiRefs[t]||(stiRefs[t]={type:"mapCategory",markers:{}})}),a.markers.forEach(t=>{var e;const s=mapMarkers[t];if(!s)return;let o={icon:{}};s.category&&mapCategories[s.category]&&(o=mapCategories[s.category]);let r=s.icon?.src?s.icon:o.icon?.src?o.icon:{src:"https://maps.gstatic.com/mapfiles/api-3/images/spotlight-poi3.png"};s.location&&(s.icon?.src&&(s.icon.url=s.icon.src),r.src&&(r.url=r.src),r.x>-1&&r.y>-1&&(r.anchor=new google.maps.Point(r.x,r.y)),i[t]=new google.maps.Marker({map:l,icon:r,position:s.location}),stiRefs[t]||(console.debug({Reference:t,Marker:s.place.name,lat:i[t].getPosition().lat(),lng:i[t].getPosition().lng(),icon:r}),stiRefs[t]={type:"mapMarker",marker:i[t]},s.category&&(stiRefs[s.category].markers[t]=i[t])),i[t].InfoWindow=new google.maps.InfoWindow({map:l,zIndex:parseInt(null!==(e=s.zindex)&&void 0!==e?e:0)}),i[t].InfoWindow.setContent(l.getInfoWindow(t,i[t].InfoWindow)),i[t].InfoWindow.close(),i[t].addListener("mouseover",e=>{a.clearInfoWindows&&l.clearInfoWindows(),i[t].InfoWindow.open({anchor:i[t],shouldFocus:!1})}),s.infoWindowOpen&&i[t].InfoWindow.open({anchor:i[t],shouldFocus:!1}),a.filter&&a.filter.length&&(i[t].setMap(null),a.filter.forEach(e=>{console.debug({filter:e}),e==s.category&&i[t].setMap(l)})))}),a.categories.forEach(t=>{console.debug({Reference:t,Category:mapCategories[t]?.label})}),a.overlays.forEach(t=>{class e extends google.maps.OverlayView{bounds;image;constructor(e,s){super(),this.bounds=e,this.img=document.createElement("img"),this.img.style.width="100%",this.img.style.height="100%",this.img.style.position="absolute",this.img.src=s,this.img.style.rotate=t.rotate+"deg",this.div=document.createElement("div"),this.div.style.position="absolute",this.div.appendChild(this.img),this.setMap(l)}onAdd(){this.getPanes().overlayLayer.appendChild(this.div)}draw(){const t=this.getProjection();if(!t)return;
1const e=t.fromLatLngToDivPixel(this.bounds.getSouthWest()),s=t.fromLatLngToDivPixel(this.bounds.getNorthEast());this.div.style.left=e.x+"px",this.div.style.top=s.y+"px",this.div.style.width=s.x-e.x+"px",this.div.style.height=e.y-s.y+"px"}onRemove=()=>{this.div.parentNode.removeChild(this.div),this.div=null}}new e(new google.maps.LatLngBounds(new google.maps.LatLng(t.s,t.w),new google.maps.LatLng(t.n,t.e)),t.src,l)}),a.categoriesLayout){const e=document.createElement("div");e.className="st-categories",e.labels={},a.categories.forEach(t=>{mapCategories[t]&&(e.labels[t]=document.createElement("label"),e.labels[t].className=n("category",mapCategories[t].label),e.labels[t].innerHTML=mapCategories[t].label,a.filter&&(a.filter.forEach(s=>{t==s&&e.labels[t].classList.add("st-active")}),e.labels[t].addEventListener("click",s=>{"selected"==a.categoryVisibility&&(a.filter=[t]),a.categoryVisibility||(a.filter.indexOf(t)>-1?a.filter.splice(a.filter.indexOf(t),1):a.filter.push(t));for(const[t,s]of Object.entries(e.labels))s.classList.remove("st-active");a.filter.length?(a.markers.forEach(t=>{i[t].setMap(null)}),a.filter.forEach(t=>{for(const[s,i]of Object.entries(e.labels))s==t&&i.classList.add("st-active");a.markers.forEach(e=>{mapMarkers[e].category==t&&i[e].setMap(l)})})):a.markers.forEach(t=>{i[t].setMap(l)})})),e.appendChild(e.labels[t]))}),t.appendChild(e)}})()};new DOMParser,sessionStorage.removeItem("popup-atts");const n=(t,e)=>t+"-"+e.toLowerCase().replace(" ","-").replace(/[^a-z0-9-]/g,e),d=(t,e,s,i)=>{!e.startsWith("border")||e.startsWith("border-radius")||/[^\s]+?\s[^\s]+?\s[^\s]+?/.test(s)||(s=!1),s?(i&&(s="var("+i+s+")"),t.style.setProperty("--block-"+e,s)):t.style.removeProperty("--block-"+e)},c=(e,s=!1)=>{const i={base:e,display:s,els:[],srcs:[],loadimg:t=>{const e=t.dataset.loadimg,s=t.dataset.alt,a={svg:"currentColor",desktop:{src:t.dataset.loadimg},tablet:{},mobile:{}};if(t.removeAttribute("data-loadimg"),e&&"undefined"!=e&&void 0!==e)if(e.endsWith(".svg"))sti.svg(t,a);else{const a=getComputedStyle(t),o=parseInt(a.width),r=parseInt(a.paddingBottom),l=document.createElement("img");l.loading="lazy",s&&(l.alt=s),i.els.push({el:t,img:l}),i.srcs.push({src:e,w:o,h:r})}},loadsrc:t=>{const e=t.dataset.loadsrc;if(!e||"undefined"==e||void 0===e)return;t.removeAttribute("data-loadsrc");const s=getComputedStyle(t),a=parseInt(s.width),o=parseInt(s.height);t.loading="lazy",i.els.push({el:t}),i.srcs.push({src:e,w:a,h:o})}};return e.querySelectorAll("[data-settings]").forEach(t=>((t,e)=>{const{base:s,display:i}=e,a=JSON.parse(LZUTF8.decompress(t.dataset.settings,{inputEncoding:"Base64"}));t.removeAttribute("data-settings"),d(t,"display",sti.disp(a,"display"),i),d(t,"align-block",sti.disp(a,"alignBlock"),i),d(t,"align-block",sti.disp(a,"alignBlock",i)),d(t,"align-text",sti.disp(a,"alignText",i)),d(t,"hide-overflow",sti.disp(a,"hideOverflow",i)?"true":""),d(t,"hide-br",sti.disp(a,"hidebr",i)?"true":""),d(t,"empty",sti.disp(a,"empty",i)?"true":""),d(t,"padding-top",sti.disp(a,"paddingTop",i)),d(t,"padding-right",sti.disp(a,"paddingRight",i)),d(t,"padding-bottom",sti.disp(a,"paddingBottom",i)),d(t,"padding-left",sti.disp(a,"paddingLeft",i)),d(t,"margin-top",sti.disp(a,"marginTop",i)),d(t,"margin-right",sti.disp(a,"marginRight",i)),d(t,"margin-bottom",sti.disp(a,"marginBottom",i)),d(t,"margin-left",sti.disp(a,"marginLeft",i)),d(t,"border-top",sti.disp(a,"borderTop",i)),d(t,"border-right",sti.disp(a,"borderRight",i)),d(t,"border-bottom",sti.disp(a,"borderBottom",i)),d(t,"border-left",sti.disp(a,"borderLeft",i)),d(t,"border-radius-top-left",sti.disp(a,"borderRadiusTopLeft",i)),d(t,"border-radius-top-right",sti.disp(a,"borderRadiusTopRight",i)),d(t,"border-radius-bottom-left",sti.disp(a,"borderRadiusBottomLeft",i)),d(t,"border-radius-bottom-right",sti.disp(a,"borderRadiusBottomRight",i)),d(t,"position",sti.disp(a,"position",i)),d(t,"z-index",sti.disp(a,"zIndex",i)),d(t,"top",sti.disp(a,"top",i)),d(t,"bottom",sti.disp(a,"bottom",i)),d(t,"left",sti.disp(a,"left",i)),d(t,"right",sti.disp(a,"right",i)),d(t,"width",sti.disp(a,"width",i)),d(t,"height",sti.disp(a,"height",i)),d(t,"max-width",sti.disp(a,"maxWidth",i)),d(t,"max-height",sti.disp(a,"maxHeight",i)),d(t,"translate-x",sti.disp(a,"translateX",i)),d(t,"translate-y",sti.disp(a,"translateY",i)),d(t,"clip-path",sti.disp(a,"clipPath",i)),d(t,"scale",sti.disp(a,"scale",i)),d(t,"rotate",sti.disp(a,"rotate",i)),d(t,"shadow-x",sti.disp(a,"shadowX",i)),d(t,"shadow-y",sti.disp(a,"shadowY",i)),d(t,"shadow-size",sti.disp(a,"shadowSize",i)),d(t,"shadow-color",sti.disp(a,"shadowColor",i)),d(t,"opacity",sti.disp(a,"opacity",i)),d(t,"gap",sti.disp(a,"gap",i)),t.classList.contains("wp-block-smarttouch-button")||(d(t,"font-family",sti.disp(a,"fontFamily",i),"--wp--preset--font-family--"),d(t,"font-size",sti.disp(a,"fontSize",i),"--wp--preset--font-size--"),d(t,"font-weight",sti.disp(a,"fontWeight",i)),d(t,"line-height",sti.disp(a,"fontHeight",i)),d(t,"letter-spacing",sti.disp(a,"fontSpacing",i)),d(t,"text-transform",sti.disp(a,"fontTransform",i)))})(t,i)),e.querySelectorAll("[data-icon]").forEach(t=>(t=>{const e=JSON.parse(LZUTF8.decompress(t.dataset.icon,{inputEncoding:"Base64"}));t.removeAttribute("data-icon");const{src:s}=e;if(void 0===s)return;const i="currentColor";if(s.endsWith(".svg"))fetch(s).then(t=>t.text()).then(e=>{let s=document.adoptNode(parser.parseFromString(e,"image/svg+xml").documentElement);s.removeAttribute("width"),s.removeAttribute("height"),i&&(s.style.fill=i,s.querySelectorAll("style").forEach(t=>{t.innerHTML=t.innerHTML.replace(/fill.?:.*?;/gi,"fill: "+i+";"),t.innerHTML=t.innerHTML.replace(/stroke.?:.*?;/gi,"stroke: "+i+";"),t.innerHTML=t.innerHTML.replace(/stroke.?:.*?none.?;/gi,""),t.innerHTML=t.innerHTML.replace(/stroke.?:.*?;/gi,"stroke: "+i+";")}),s.querySelectorAll("[style]").forEach(t=>{t.style.fill&&"none"!=t.style.fill&&(t.style.fill=i),t.style.stroke&&"none"!=t.style.fill&&(t.style.stroke=i)}),s.querySelectorAll("[fill]").forEach(t=>{"none"!=t.getAttribute("fill")&&t.setAttribute("fill",i)}),s.querySelectorAll("[stroke]").forEach(t=>{"none"!=t.getAttribute("stroke")&&t.setAttribute("stroke",i)})),t.appendChild(s)});else{let e=document.createElement("img");e.loading="lazy",e.src=s,t.appendChild(e)}})(t)),e.querySelectorAll("[data-form]").forEach(t=>(t=>{const e=JSON.parse(LZUTF8.decompress(t.dataset.form,{inputEncoding:"Base64"}));t.removeAttribute("data-form"),t.replaceChildren(smarttouch.createForm({clientID:e.clientID,formID:e.formID,return:!0,labels:e.labels,placeholders:e.placeholders,disclaimer:e.disclaimer,fields:e.fields,textUpdates:e.textUpdates,submit:e.submit,recaptchaBadge:e.recaptchaBadge}))})(t)),e.querySelectorAll("[data-st-block]").forEach(t=>((t,e)=>{const{display:s}=e,i=JSON.parse(LZUTF8.decompress(t.dataset.stBlock,{inputEncoding:"Base64"})),a=t.dataset.type;if(t.removeAttribute("data-st-block"),t.removeAttribute("data-type"),t.style.alignSelf=sti.disp(i,"alignSelf",s),t.style.justifySelf=sti.disp(i,"justifySelf",s),t.style.width=sti.disp(i,"width",s),t.style.height=sti.disp(i,"height",s),"flex"==a){t.style.order=sti.disp(i,"order",s),"desktop"==s&&(t.style.order=0);const e=sti.disp(i,"flex",s);"object"==typeof e?"defined"==e.type?t.style.flex=e.grow+" "+e.shrink+" "+e.basis:t.style.flex=e.type:t.style.flex=e}if("grid"==a){const e=sti.disp(i,"gridFlow",s),a=sti.disp(i,"colStart",s),o=sti.disp(i,"colSpan",s),r=sti.disp(i,"rowStart",s),l=sti.disp(i,"rowSpan",s);"auto"==e&&(t.style.gridRowStart="span "+l,t.style.gridColumnStart="span "+o),"absolute"==e&&(t.style.gridArea=r+"/"+a+"/"+(parseInt(r)+parseInt(l))+"/"+(parseInt(a)+parseInt(o)))}sti.disp(i,"visible",s)||(t.style.display="none"),t.firstElementChild.classList.add("st-loaded")})(t,i)),e.querySelectorAll("[data-flex]").forEach(t=>((t,e)=>{const{display:s}=e,i=JSON.parse(LZUTF8.decompress(t.dataset.flex,{inputEncoding:"Base64"}));t.removeAttribute("data-flex"),t.firstChild.style.flexDirection=sti.disp(i,"flexDirection",s),t.firstChild.style.flexWrap=sti.disp(i,"flexWrap",s),t.firstChild.style.gap=sti.disp(i,"verticalGap",s)+" "+sti.disp(i,"horizontalGap",s),t.firstChild.style.alignItems=sti.disp(i,"alignItems",s),t.firstChild.style.justifyItems=sti.disp(i,"justifyItems",s),t.firstChild.style.alignContent=sti.disp(i,"alignContent",s),t.firstChild.style.justifyContent=sti.disp(i,"justifyContent",s),t.firstElementChild.classList.add("st-loaded")})(t,i)),e.querySelectorAll("[data-iframe]").forEach(t=>((t,e)=>{const{display:s}=e,i=JSON.parse(LZUTF8.decompress(t.dataset.iframe,{inputEncoding:"Base64"})),a=t.querySelector("iframe");t.removeAttribute("data-iframe"),t.style.setProperty("--ratio",sti.disp(i,"ratio",s)+"%");
1const o=new URLSearchParams(document.location.search),r=new URL(a.src,window.location.origin),l=new URLSearchParams(r.search);o.forEach((t,e)=>{l.set(e,t)}),r.search=l.toString(),a.src=r.toString(),t.classList.add("st-loaded")})(t,i)),e.querySelectorAll("[data-video]").forEach(t=>((t,e)=>{const{display:s}=e,i=r(),a=JSON.parse(LZUTF8.decompress(t.dataset.video,{inputEncoding:"Base64"}));if(t.removeAttribute("data-video"),a.html=a.html.replace("<iframe",'<iframe allowTransparency="true"'),"vimeo"==a.type){let e=[];a.background&&(e.push("background=1"),t.classList.add("is-background")),a.muted&&(e.push("muted=1"),t.classList.add("is-muted")),a.autoplay&&(e.push("autoplay=1"),t.classList.add("is-autoplay")),a.html=a.html.replace("?app_id=","?"+e.join("&")+"&app_id=")}if("youtube"==a.type&&(a.html=a.html.replace("feature=oembed","feature=oembed&playsinline=1&modestbranding=1&enablejsapi=1&loop=1&wmode=transparent&playlist="+a.id)),t.style.setProperty("--ratio",sti.disp(a,"ratio",s)+"%"),t.querySelector(".videoContainer").innerHTML=a.html,t.querySelector("iframe").id=i,"vimeo"==a.type&&(t.vimeo=new Vimeo.Player(t.querySelector("iframe")),a.muteControl)){const e=document.createElement("div");e.innerHTML='\n\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M6 7l8-5v20l-8-5v-10zm-6 10h4v-10h-4v10zm20.264-13.264l-1.497 1.497c1.847 1.783 2.983 4.157 2.983 6.767 0 2.61-1.135 4.984-2.983 6.766l1.498 1.498c2.305-2.153 3.735-5.055 3.735-8.264s-1.43-6.11-3.736-8.264zm-.489 8.264c0-2.084-.915-3.967-2.384-5.391l-1.503 1.503c1.011 1.049 1.637 2.401 1.637 3.888 0 1.488-.623 2.841-1.634 3.891l1.503 1.503c1.468-1.424 2.381-3.309 2.381-5.394z"/></svg>\n\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19 7.358v15.642l-8-5v-.785l8-9.857zm3-6.094l-1.548-1.264-3.446 4.247-6.006 3.753v3.646l-2 2.464v-6.11h-4v10h.843l-3.843 4.736 1.548 1.264 18.452-22.736z"/></svg>\n\t\t\t',e.classList.add("muted","muteControl"),e.addEventListener("click",()=>{t.vimeo.getVolume().then(s=>{s?(e.classList.add("muted"),t.vimeo.setVolume(0)):(e.classList.remove("muted"),t.vimeo.setVolume(1))})}),t.appendChild(e)}"youtube"==a.type&&setTimeout(()=>t.youtube=new YT.Player(i),100),"wistia"==a.type&&(window._wq=window._wq||[],_wq.push({id:i,onReady:e=>{t.wistia=e}})),setTimeout(()=>t.classList.add("st-loaded"),100);const o=t.querySelector(".overlay");o&&o.addEventListener("click",()=>{t.classList.add("st-loading"),t.vimeo&&t.vimeo.play(),t.youtube&&t.youtube.playVideo(),t.wistia&&t.wistia.play(),t.classList.add("st-active"),t.classList.remove("st-loading")})})(t,i)),e.querySelectorAll("[data-grid]").forEach(t=>((t,e)=>{const{display:s}=e,i=JSON.parse(LZUTF8.decompress(t.dataset.grid,{inputEncoding:"Base64"}));t.removeAttribute("data-grid"),t.firstElementChild.classList.add("size-"+sti.disp(i,"size",s)),t.firstElementChild.style.setProperty("--alignItems",sti.disp(i,"alignItems",s)),t.firstElementChild.style.setProperty("--justifyItems",sti.disp(i,"justifyItems",s)),t.firstElementChild.style.setProperty("--alignContent",sti.disp(i,"alignContent",s)),t.firstElementChild.style.setProperty("--justifyContent",sti.disp(i,"justifyContent",s)),t.firstElementChild.style.setProperty("--gap",sti.disp(i,"rowGap",s)+" "+sti.disp(i,"columnGap",s)),t.firstElementChild.style.setProperty("--ratio",sti.disp(i,"ratio",s)+"%"),t.firstElementChild.style.setProperty("--columns",sti.disp(i,"columns",s).join(" ")),t.firstElementChild.style.setProperty("--rows",sti.disp(i,"rows",s).join(" ")),t.firstElementChild.style.setProperty("--flow",sti.disp(i,"flow",s)),t.firstElementChild.classList.add("st-loaded")})(t,i)),e.querySelectorAll("[data-panels]").forEach(t=>((t,e)=>{const{display:s}=e,i=JSON.parse(LZUTF8.decompress(t.dataset.panels,{inputEncoding:"Base64"}));t.removeAttribute("data-panels"),t.classList.add("switcher-"+sti.disp(i,"switcher",s)),t.classList.add("attachment-"+sti.disp(i,"attachment",s)),t.style.setProperty("--iconWidth",sti.disp(i,"iconWidth",s)?sti.disp(i,"iconWidth",s)+"px":null),t.style.setProperty("--iconHeight",sti.disp(i,"iconHeight",s)?sti.disp(i,"iconHeight",s)+"px":null),t.style.setProperty("--justify",sti.disp(i,"justify",s)),t.style.setProperty("--tabWidth",sti.disp(i,"tabWidth",s)),t.style.setProperty("--gap",""!==sti.disp(i,"gap",s)?sti.disp(i,"gap",s)+"px":null),t.style.setProperty("--rounding",""!==sti.disp(i,"rounding",s)?sti.disp(i,"rounding",s)+"px":null),t.style.setProperty("--border",""!==sti.disp(i,"border",s)?sti.disp(i,"border",s)+"px":null),t.style.setProperty("--panelRounding",""!==sti.disp(i,"panelRounding",s)?sti.disp(i,"panelRounding",s)+"px":null),t.style.setProperty("--panelBorder",""!==sti.disp(i,"panelBorder",s)?sti.disp(i,"panelBorder",s)+"px":null),t.style.setProperty("--panelBorderColor",""!==sti.disp(i,"panelBorderColor",s)?sti.disp(i,"panelBorderColor",s):null),t.style.setProperty("--padding",sti.disp(i,"paddingTop",s)+"px "+sti.disp(i,"paddingRight",s)+"px "+sti.disp(i,"paddingBottom",s)+"px "+sti.disp(i,"paddingLeft",s)+"px"),t.style.setProperty("--panelPadding",sti.disp(i,"panelPaddingTop",s)+"px "+sti.disp(i,"panelPaddingRight",s)+"px "+sti.disp(i,"panelPaddingBottom",s)+"px "+sti.disp(i,"panelPaddingLeft",s)+"px"),t.style.setProperty("--contentAlign",sti.disp(i,"contentAlign",s)),t.style.setProperty("--contentJustify",sti.disp(i,"contentJustify",s)),t.style.setProperty("--textAlign",sti.disp(i,"textAlign",s)),t.style.setProperty("--panel",sti.disp(i,"panel",s)?sti.disp(i,"panel",s):null),t.style.setProperty("--color",sti.disp(i,"color",s)?sti.disp(i,"color",s):null),t.style.setProperty("--colorHover",sti.disp(i,"colorHover",s)?sti.disp(i,"colorHover",s):null),t.style.setProperty("--colorActive",sti.disp(i,"colorActive",s)?sti.disp(i,"colorActive",s):null),t.style.setProperty("--background",sti.disp(i,"background",s)?sti.disp(i,"background",s):null),t.style.setProperty("--backgroundHover",sti.disp(i,"backgroundHover",s)?sti.disp(i,"backgroundHover",s):null),t.style.setProperty("--backgroundActive",sti.disp(i,"backgroundActive",s)?sti.disp(i,"backgroundActive",s):null),t.style.setProperty("--borderColor",sti.disp(i,"borderColor",s)?sti.disp(i,"borderColor",s):null),t.style.setProperty("--borderHover",sti.disp(i,"borderHover",s)?sti.disp(i,"borderHover",s):null),t.style.setProperty("--borderActive",sti.disp(i,"borderActive",s)?sti.disp(i,"borderActive",s):null),t.style.setProperty("--transitionIn",sti.disp(i,"transitionIn",s)?sti.disp(i,"transitionIn",s):null),t.style.setProperty("--transitionOut",sti.disp(i,"transitionOut",s)?sti.disp(i,"transitionOut",s):null),t.classList.add("justify-"+sti.disp(i,"justify",s)),t.classList.add("contentAlign-"+sti.disp(i,"contentAlign",s)),t.classList.add("contentJustify-"+sti.disp(i,"contentJustify",s));let a=t.querySelectorAll(".smarttouch-tab"),o=t.querySelectorAll(".type-panel");
1if(t.querySelector(".smarttouch-tab").classList.add("st-active"),t.querySelector(".type-panel").classList.add("st-active"),t.classList.contains("switcher-slideshow")&&(t.classList.add("swiper"),t.querySelector(".smarttouch-panels").classList.add("swiper-wrapper"),o.forEach(t=>t.classList.add("swiper-slide")),t.swiper=new Swiper(t,{loop:!0,autoHeight:!0,speed:1e3,createElements:!0,navigation:!0,allowTouchMove:!1}),t.querySelectorAll(".slide-to-next").forEach(e=>{e.addEventListener("click",()=>{t.swiper.slideNext()})})),t.classList.contains("switcher-accordion")){let e=[];a.forEach((t,s)=>{e[s]=document.createElement("div"),e[s].className="smarttouch-expanding",e[s].appendChild(o[s]),t.after(e[s])}),t.querySelector(".smarttouch-panels").remove(),o=t.querySelectorAll(".type-panel"),a.forEach((t,e)=>{o[e].resizeObserver=new ResizeObserver(t=>{for(const s of t)o[e].parentNode.style.height=s.target.getBoundingClientRect().height+"px"}),e||(o[e].parentNode.classList.add("st-active"),o[e].resizeObserver.observe(o[e])),t.onclick=()=>{t.classList.contains("st-active")||(a.forEach((t,e)=>{t.classList.contains("st-active")&&(t.classList.remove("st-active"),o[e].resizeObserver.unobserve(o[e]),o[e].parentNode.style.height=0,o[e].parentNode.classList.remove("st-active"),o[e].style.setProperty("animation","none"),o[e].offsetWidth,o[e].style.removeProperty("animation"))}),o[e].resizeObserver.observe(o[e]),t.classList.add("st-active"),o[e].parentNode.classList.add("st-active"),o[e].style.setProperty("animation","none"),o[e].offsetWidth,o[e].style.removeProperty("animation"))}})}else{if(t.classList.contains("switcher-dropdown")){const e=t.querySelector(".smarttouch-tabs");e.style.height=e.querySelector(".st-active").getBoundingClientRect().height+"px",e.onclick=()=>{e.classList.toggle("st-active"),setTimeout(()=>{if(e.classList.contains("st-active")){let t=0;e.childNodes.forEach(e=>{t+=e.getBoundingClientRect().height}),gsap.to(e,{duration:.5,height:t})}else{let t=e.querySelector(".st-active").getBoundingClientRect().height+"px";gsap.to(e,{duration:.5,height:t})}},5)}}a.forEach((t,e)=>{o[e].resizeObserver=new ResizeObserver(s=>{for(const i of s)o[e].parentNode.style.height=Math.max(t.parentNode.getBoundingClientRect().height,i.target.getBoundingClientRect().height)+"px"}),e||(o[e].classList.add("st-active"),o[e].resizeObserver.observe(o[e])),t.onclick=()=>{t.classList.contains("st-active")||(a.forEach((t,e)=>{t.classList.contains("st-active")&&(o[e].resizeObserver.unobserve(o[e]),t.classList.remove("st-active"),o[e].classList.remove("st-active"),o[e].firstElementChild.style.setProperty("animation","none"),o[e].firstChild.offsetWidth,o[e].firstChild.style.removeProperty("animation"))}),o[e].resizeObserver.observe(o[e]),t.classList.add("st-active"),o[e].classList.add("st-active"),o[e].firstElementChild.style.setProperty("animation","none"),o[e].firstChild.offsetWidth,o[e].firstChild.style.removeProperty("animation"))}})}t.firstElementChild.classList.add("st-loaded")})(t,i)),e.querySelectorAll("[data-slide]").forEach(t=>((t,e)=>{const{display:s}=e,i=JSON.parse(LZUTF8.decompress(t.dataset.slide,{inputEncoding:"Base64"}));t.removeAttribute("data-slide"),t.style.setProperty("--scale",sti.disp(i,"scale",s)),t.style.setProperty("--fit",sti.disp(i,"fit",s)),t.style.setProperty("--focalx",100*sti.disp(i,"focalx",s)+"%"),t.style.setProperty("--focaly",100*sti.disp(i,"focaly",s)+"%")})(t,i)),e.querySelectorAll("[data-slideshow]").forEach(e=>((e,s)=>{const{display:i}=s,a=s?.loadimg||(()=>{}),o=s?.loadsrc||(()=>{}),r=JSON.parse(LZUTF8.decompress(e.dataset.slideshow,{inputEncoding:"Base64"}));e.removeAttribute("data-slideshow"),e.style.setProperty("--ratio",sti.disp(r,"ratio",i)+"%"),e.style.setProperty("--navGap",sti.disp(r,"navGap",i)),e.style.setProperty("--pageGap",sti.disp(r,"pageGap",i)),e.style.setProperty("--navOffset",sti.disp(r,"navOffset",i)),e.style.setProperty("--navOffsetY",sti.disp(r,"navOffsetY",i)),e.style.setProperty("--pageOffset",sti.disp(r,"pageOffset",i)),e.style.setProperty("--pageOffsetY",sti.disp(r,"pageOffsetY",i)),e.style.setProperty("--navColor",sti.disp(r,"color",i)),e.style.setProperty("--navColorHover",sti.disp(r,"colorHover",i)),e.style.setProperty("--navShadow",sti.disp(r,"shadow",i)),e.style.setProperty("--navWidth",sti.disp(r,"navWidth",i)),e.style.setProperty("--navHeight",sti.disp(r,"navHeight",i)),e.style.setProperty("--navPosition",sti.disp(r,"navPosition",i)),e.style.setProperty("--navOrientation",sti.disp(r,"navOrientation",i)),e.style.setProperty("--navAlign",sti.disp(r,"navAlign",i)),e.style.setProperty("--navJustify",sti.disp(r,"navJustify",i)),e.style.setProperty("--pagePosition",sti.disp(r,"pagePosition",i)),e.style.setProperty("--pageOrientation",sti.disp(r,"pageOrientation",i)),e.style.setProperty("--pageAlign",sti.disp(r,"pageAlign",i)),e.style.setProperty("--pageSize",sti.disp(r,"pageSize",i)),e.classList.add("navPosition-"+sti.disp(r,"navPosition",i)),e.classList.add("navOrientation-"+sti.disp(r,"navOrientation",i)),e.classList.add("navAlign-"+sti.disp(r,"navAlign",i)),e.classList.add("navJustify-"+sti.disp(r,"navJustify",i)),e.classList.add("pagePosition-"+sti.disp(r,"pagePosition",i)),e.classList.add("pageOrientation-"+sti.disp(r,"pageOrientation",i)),e.classList.add("pageAlign-"+sti.disp(r,"pageAlign",i));const l=sti.disp(r,"thumbnailsEnabled",i),n=document.createElement("div");n.innerHTML='<div class="swiper"><div class="swiper-wrapper"></div></div></div>';const d=n.querySelector(".swiper-wrapper");if(l){n.className="swiper-thumbnails",e.style.setProperty("--thumbn
1ailGap",sti.disp(r,"thumbnailsGap",i)),e.style.setProperty("--thumbnailWidth",sti.disp(r,"thumbnailsWidth",i)),e.style.setProperty("--thumbnailHeight",sti.disp(r,"thumbnailsHeight",i)),n.style.setProperty("--opacity",sti.disp(r,"thumbnailsOpacity",i)),n.style.setProperty("--opacityActive",sti.disp(r,"thumbnailsOpacityActive",i)),n.style.setProperty("--border",sti.disp(r,"thumbnailsBorder",i)),n.style.setProperty("--borderActive",sti.disp(r,"thumbnailsBorderActive",i)),n.style.setProperty("--borderWidth",sti.disp(r,"thumbnailsBorderWidth",i)),e.classList.add("has-thumbnails"),e.classList.add("thumbnails-"+sti.disp(r,"thumbnailsPosition",i));let t="";e.querySelectorAll(".swiper-slide-media img").forEach(e=>{t+='<div class="swiper-slide"><div class="swiper-thumb"><img loading="lazy" data-loadsrc="'+(e.dataset.loadsrc?e.dataset.loadsrc:e.src)+'"></div></div>'}),d.innerHTML=t,e.querySelector(".smarttouch-slideshow").append(n)}e.querySelector(".swiper-wrapper");const c='<div class="st-icon" data-loadimg="'+r.navIcon+'"></div>';if("hidden"!=r.swiper.navPosition){const t=document.createElement("div");t.className="swiper-buttons",t.innerHTML='<div class="swiper-button-prev'+(r.navIcon?" has-icon":"")+'">'+c+'</div><div class="swiper-button-next'+(r.navIcon?" has-icon":"")+'">'+c+"</div>",e.querySelector(".swiper-main").appendChild(t)}if("hidden"!=r.swiper.pagePosition){const t=document.createElement("div");t.className="swiper-pagination",e.querySelector(".swiper-main").appendChild(t)}e.querySelector(".slide-overlays")&&e.querySelector(".slide-overlays").remove();const p=(0,t.merge)({...r.swiper},{effect:sti.disp(r,"effect",i),slidesPerView:sti.disp(r,"slidesPerView",i),spaceBetween:sti.disp(r,"spaceBetween",i),direction:sti.disp(r,"direction",i),coverflowEffect:{depth:sti.disp(r,"coverflowEffectDepth",i),rotate:sti.disp(r,"coverflowEffectRotate",i),scale:sti.disp(r,"coverflowEffectScale",i),slideShadows:sti.disp(r,"coverflowEffectSlideShadows",i)},cardsEffect:{slideOffset:sti.disp(r,"cardsEffectPerSlideOffset",i),perSlideRotate:sti.disp(r,"cardsEffectPerSlideRotate",i),rotate:sti.disp(r,"cardsEffectRotate",i),slideShadows:sti.disp(r,"cardsEffectSlideShadows",i)},sti:{effect:sti.disp(r,"stiEffect",i),strength:sti.disp(r,"stiStrength",i)}},{pagination:{el:e.querySelector(".swiper-main .swiper-pagination"),clickable:!0},navigation:{nextEl:e.querySelector(".swiper-main .swiper-button-next"),prevEl:e.querySelector(".swiper-main .swiper-button-prev")},centeredSlides:!0,allowTouchMove:!0,slideToClickedSlide:!0,watchSlidesProgress:!0,keyboard:{enabled:!0},on:{afterInit:t=>{e.querySelectorAll("[data-loadimg]").forEach(t=>a(t)),e.querySelectorAll("[data-loadsrc]").forEach(t=>o(t))},transitionEnd:t=>{t.slides.length&&(t.slides[t.realIndex]?.vimeo&&t.slides[t.realIndex].vimeo.play(),t.slides[t.realIndex]?.youtube&&t.slides[t.realIndex].youtube.playVideo(),t.slides[t.realIndex]?.wistia&&t.slides[t.realIndex].wistia.play(),t.slides[t.realIndex]?.querySelector(".playpause")&&t.slides[t.realIndex].querySelector(".playpause").classList.add("active"))},slideChange:t=>{t.slides.forEach(e=>{e.vimeo&&e.vimeo.pause(),e.youtube&&e.youtube.pauseVideo(),e.wistia&&e.wistia.pause(),t.slides[t.realIndex]?.querySelector(".playpause")&&t.slides[t.realIndex].querySelector(".playpause").classList.remove("active")});const s=e.querySelector(".swiper-thumbnails .swiper");s&&sti.disp(r,"thumbnailsEnabled",i)&&s.swiper.slideToLoop(t.realIndex,t.params.speed)},init:t=>{const s=e.querySelector(".swiper-main .swiper-slide-active .swiper-slide-media img"),i=e.querySelector(".swiper-main .swiper-wrapper");s&&"vertical"==t.params.direction&&(i.style.setProperty("height",s.height*t.params.slidesPerView+"px"),t.slides.forEach(t=>{t.style.setProperty("height",s.height+"px")})),t.slides.forEach(t=>{const e=t.querySelector('.st-video iframe[src*="vimeo"]');if(e){const s=new Vimeo.Player(e);s.on("play",()=>{t.classList.add("video-loaded")}),s.setVolume(0);const i=t.querySelector(".playpause"),a=t.querySelector(".muteunmute");i&&a&&(s.pause(),setTimeout(()=>{s.play(),i.classList.add("active")},parseInt(t.querySelector(".st-video").dataset.delay)||0),i.classList.add("active"),i.addEventListener("click",()=>{s.getPaused().then(t=>{t?(i.classList.add("active"),s.play()):(i.classList.remove("active"),s.pause())})}),a.addEventListener("click",()=>{s.getVolume().then(t=>{t?(a.classList.remove("active"),s.setVolume(0)):(a.classList.add("active"),s.setVolume(1))})}))}})},touchStart:function(t,e){if(t.params.sti.effect)for(let e=0;e<t.slides.length;e++){let s=t.slides[e],i=s.querySelector(".swiper-slide-media");s.style.transition="",i.style.transition=""}},setTransition:function(t,e){if(t.params.sti.effect)for(let s=0;s<t.slides.length;s++){let i=t.slides[s],a=i.querySelector(".swiper-slide-media");i.style.transition=e+"ms",a.style.transition=e+"ms"}},progress:(t,e)=>{for(let e=0;e<t.slides.length;e++){const s=t.slides[e].progress,i=t.slides[e].querySelector(".swiper-slide-media");switch(t.params.sti.effect){case"parallax":const e=s*(t.width*t.params.sti.strength);gsap.set(i,{x:e,scale:1});break;case"zoom":gsap.set(i,{x:0,scale:1+Math.abs(s)*t.params.sti.strength});break;default:gsap.set(i,{scale:1,x:0})}}}}});p.loop&&p.slidesPerView&&p.slidesPerView>1&&e.querySelectorAll(".swiper-slide").length.length<3+Math.ceil(p.slidesPerView)&&
1(p.loop=!1),setTimeout(()=>{if(l){const t=new Swiper(e.querySelector(".swiper-thumbnails .swiper"),{slidesPerView:"auto",loop:!1,spaceBetween:parseInt(sti.disp(r,"thumbnailsSpacing",i)),direction:["outside-top","outside-bottom","inside-top","inside-bottom"].includes(sti.disp(r,"thumbnailsPosition",i))?"horizontal":"vertical",centeredSlides:!0,centeredSlidesBounds:!0,allowTouchMove:!0,slideToClickedSlide:!0,keyboard:{enabled:!0}});p.thumbs={swiper:t,multipleActiveThumbs:!1};const s=new Swiper(e.querySelector(".swiper-main .swiper"),p);p.slidesPerView>1&&p.loop&&window.requestAnimationFrame(()=>{s.slideNext(0,!1),p.slidesPerView>3&&s.slideNext(0,!1),p.slidesPerView>5&&s.slideNext(0,!1),p.slidesPerView<3&&s.slidePrev(0,!1)})}else{const t=new Swiper(e.querySelector(".swiper-main .swiper"),p);p.slidesPerView>1&&p.loop&&window.requestAnimationFrame(()=>{t.slideNext(0,!1),p.slidesPerView>3&&t.slideNext(0,!1),p.slidesPerView>5&&t.slideNext(0,!1),p.slidesPerView<3&&t.slidePrev(0,!1)})}e.classList.add("st-loaded")},10)})(e,i)),e.querySelectorAll("[data-googlemap]").forEach(t=>l(t,i)),e.querySelectorAll("[data-group]").forEach(t=>((t,e)=>{const{display:s}=e,i=JSON.parse(LZUTF8.decompress(t.dataset.group,{inputEncoding:"Base64"}));t.removeAttribute("data-group"),t.style.setProperty("--justifyContent",sti.disp(i,"justify",s)),t.style.setProperty("--alignContent",sti.disp(i,"align",s)),t.style.setProperty("--lineSpacing",sti.disp(i,"lineSpacing",s)?sti.disp(i,"lineSpacing",s):null),t.style.setProperty("--bg","url("+sti.disp(i,"bg",s)+")"),t.style.setProperty("--attach",sti.disp(i,"attach",s)),t.style.setProperty("--fit",sti.disp(i,"fit",s)),t.style.setProperty("--repeat",sti.disp(i,"repeat",s)),t.style.setProperty("--x",100*sti.disp(i,"x",s)+"%"),t.style.setProperty("--y",100*sti.disp(i,"y",s)+"%"),t.style.setProperty("--bgOverlay",sti.disp(i,"bgOverlay",s)),t.style.setProperty("--bgBlendMode",sti.disp(i,"bgBlendMode",s));const a=e=>{let s=(window.scrollY+window.innerHeight-t.offsetTop)/(window.innerHeight+t.offsetHeight);s<0&&(s=0),s>1&&(s=1),t.style.setProperty("--y",100*s+"%")};sti.disp(i,"attach",s).includes("parallax")&&(t.classList.add(sti.disp(i,"attach",s)),"parallax"==sti.disp(i,"attach",s)?(console.log("set to local"),t.style.setProperty("--attach","local")):t.style.setProperty("--attach","fixed"),window.addEventListener("scroll",a),window.addEventListener("touchmove",a))})(t,i)),e.querySelectorAll("[data-content]").forEach(t=>((t,e)=>{const{display:s}=e,i=JSON.parse(LZUTF8.decompress(t.dataset.content,{inputEncoding:"Base64"}));t.removeAttribute("data-content"),t.style.setProperty("--justifyContent",sti.disp(i,"justify",s)),t.style.setProperty("--alignContent",sti.disp(i,"align",s)),t.style.setProperty("--lineSpacing",sti.disp(i,"lineSpacing",s)?sti.disp(i,"lineSpacing",s):null)})(t,i)),e.querySelectorAll("[data-cover]").forEach(t=>((t,e)=>{const{display:s}=e,i=JSON.parse(LZUTF8.decompress(t.dataset.cover,{inputEncoding:"Base64"}));t.removeAttribute("data-cover");const a=sti.disp(i,"src",s);sti.disp(i,"fit",s),sti.disp(i,"ratio",s),t.style.setProperty("--ratio",sti.disp(i,"ratio",s)+"%"),t.style.setProperty("--coverRatio",Math.max(sti.disp(i,"coverRatio",s),sti.disp(i,"ratio",s))+"%"),t.style.setProperty("--strength",sti.disp(i,"strength",s)+"%"),t.style.setProperty("--scale",sti.disp(i,"scale",s)),t.style.setProperty("--focalx",100*sti.disp(i,"focalx",s)+"%"),t.style.setProperty("--focaly",100*sti.disp(i,"focaly",s)+"%"),t.style.setProperty("--opacity",i.opacity);const o=t.querySelector(".bg");if(a.endsWith(".svg"))sti.svg(o,i);else{const e=getComputedStyle(t),r=parseInt(e.width),l=parseInt(e.paddingBottom),n=document.createElement("img");n.loading="lazy",fetch("/wp-json/smarttouch/image?s="+encodeURIComponent(a)+"&w="+Math.ceil(r*sti.disp(i,"scale",s))+"&h="+l*sti.disp(i,"scale",s)).then(t=>t.json()).then(t=>{n.src=t.optimized?t.optimized:t.original}).catch(()=>{n.src=a}),o.appendChild(n)}if(i.type){const e=o.offsetHeight-t.offsetHeight,a=-e*sti.disp(i,"focaly",s);switch(i.type){case"top":gsap.set(o.firstChild,{top:a}),t.scrolltrigger=ScrollTrigger.create({trigger:t,start:"top top",end:"bottom top",onUpdate:t=>{gsap.set(o.firstChild,{y:t.progress*e})}});break;case"bottom":gsap.set(o.firstChild,{top:a}),t.scrolltrigger=ScrollTrigger.create({trigger:t,start:"top bottom",end:"bottom bottom",onUpdate:t=>{gsap.set(o.firstChild,{y:(1-t.progress)*e*-1})}});break;case"fixed":const s={position:"fixed",top:0,left:0,height:"100%",padding:0};gsap.set(o.firstChild,s),gsap.set(o,{height:"100%",padding:0});break;default:gsap.set(o.firstChild,{top:a}),t.scrolltrigger=ScrollTrigger.create({trigger:t,start:"top bottom",end:"bottom top",invali
1dateOnResize:!0,onUpdate:t=>{gsap.set(o.firstChild,{y:-e+t.progress*e*2})}})}}})(t,i)),e.querySelectorAll("[data-carousel]").forEach(t=>((t,e)=>{const{display:s}=e,i=JSON.parse(LZUTF8.decompress(t.dataset.carousel,{inputEncoding:"Base64"}));t.removeAttribute("data-carousel"),s&&"desktop"!=s&&(i[s].ratio&&t.setAttribute("ratio",sti.disp(i,"ratio",s)),i[s].gap&&t.setAttribute("gap",sti.disp(i,"gap",s)),i[s].columns&&t.setAttribute("columns",sti.disp(i,"columns",s)),i[s].step&&t.setAttribute("step",sti.disp(i,"step",s)),i[s].speed&&t.setAttribute("speed",sti.disp(i,"speed",s)),i[s].padding&&t.setAttribute("padding",sti.disp(i,"padding",s)),i[s].fit&&t.setAttribute("fit",sti.disp(i,"fit",s))),i.arrowWidth&&t.style.setProperty("--arrow-width",i.arrowWidth),i.arrowStroke&&t.style.setProperty("--arrow-stroke-size",i.arrowStroke),i.arrowOffset&&t.style.setProperty("--arrow-offset",i.arrowOffset),i.arrowColor&&t.style.setProperty("--arrow-bg",i.arrowColor),i.arrowColorHover&&t.style.setProperty("--arrow-bg-hover",i.arrowColorHover),i.arrowStrokeColor&&t.style.setProperty("--arrow-stroke",i.arrowStrokeColor),i.arrowStrokeColorHover&&t.style.setProperty("--arrow-stroke-hover",i.arrowStrokeColorHover);const a=t.querySelectorAll("figure.wp-block-smarttouch-carouselphoto[data-photo]"),o={slides:[],meta:{},swiper:{loop:a.length>3,speed:500},desktop:{ratio:56.25,navGap:"10px",pageGap:"10px",navOffset:"0px",navOffsetY:"0px",pageOffset:"30px",pageOffsetY:"0px",navWidth:"40px",navHeight:"40px",navPosition:"outside",navOrientation:"row",navAlign:"center",navJustify:"space-between",pagePosition:"outside",pageOrientation:"row",pageAlign:"end",pageSize:"8px",color:"#ffffffA0",colorHover:"#ffffff",shadow:"#00000000",effect:"coverflow",slidesPerView:1.3,spaceBetween:0,coverflowEffectDepth:200,coverflowEffectRotate:25,coverflowEffectScale:1,coverflowEffectSlideShadows:!0,cardsEffectPerSlideOffset:20,cardsEffectPerSlideRotate:10,cardsEffectRotate:!0,cardsEffectSlideShadows:!0,direction:"horizontal",stiEffect:"",stiStrength:.5,thumbnailsEnabled:!1,thumbnailsPosition:"outside-bottom",thumbnailsGap:"10px",thumbnailsSpacing:"10px",thumbnailsWidth:"140px",thumbnailsHeight:"80px",thumbnailsOpacity:.5,thumbnailsOpacityActive:1,thumbnailsBorder:"#ffffff00",thumbnailsBorderActive:"#ffffffff",thumbnailsBorderWidth:"2px"},mobile:{effect:"slide",slidesPerView:1,pagePosition:"hidden",pageSize:"2px",navPosition:"inside",navAlign:"flex-end",navJustify:"center",navWidth:"30px",navHeight:"35px",navOffset:"30px",navOffsetY:"70px"}},r=[],l=Math.ceil(t.clientWidth/sti.disp(i,"columns",s));a.forEach((t,e)=>{const a=JSON.parse(LZUTF8.decompress(t.dataset.photo,{inputEncoding:"Base64"}));t.removeAttribute("data-photo"),t.style.setProperty("--fit",sti.disp(i,"fit",s)),t.style.setProperty("--focalx",100*sti.disp(a,"focalx",s)+"%"),t.style.setProperty("--focaly",100*sti.disp(a,"focaly",s)+"%"),t.style.setProperty("--scale",sti.disp(a,"scale",s)),o.slides.push(e),o.meta[e]={src:a.src,alt:a.alt,title:a.title,caption:a.caption,video:a.video};const n=t.querySelector("img");n&&n.dataset.src&&r.push({src:n.dataset.src,w:Math.ceil(l*sti.disp(a,"scale",s)),h:Math.ceil(l*sti.disp(a,"scale",s)/100*sti.disp(i,"ratio",s))})}),r.length&&fetch("/wp-json/smarttouch/image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(t=>t.json()).then(e=>{e.forEach((e,s)=>{t.querySelectorAll('[data-src="'+r[s].src+'"]').forEach(t=>{t.src=e.optimized?e.optimized:e.original,t.removeAttribute("data-src")})})}),sti.disp(i,"clicktoexpand",s)?(t.classList.add("clicktoexpand"),a.forEach((t,e)=>{t.removeAttribute("data-popup"),t.removeAttribute("data-atts"),t.onclick=t=>{const s=document.createElement("div");s.innerHTML='\n                   <div class="smarttouch-popup standard-popup" style="background:rgba(0,0,0,0.75)">\n                       <div class="smarttouch-content"></div>\n                       <div class="smarttouch-close"></div>\n                   </div>\n               ';const i=s.querySelector(".smarttouch-popup"),r=s.querySelector(".smarttouch-content"),l=document.createElement("div"),n=document.createElement("div");let d=(window.innerHeight-80)/.5625;if(l.style.setProperty("max-width",1.1*d+"px"),l.style.setProperty("margin","0 auto"),a.length<3)l.style.setProperty("max-width",d+"px"),l.style.setProperty("margin","0 auto"),o.meta[e].video?.html?(n.className="st-video",n.style.setProperty("--ratio",o.meta[e].video.ratio),n.innerHTML=o.meta[e].video.html):(l.className="wp-block-smarttouch-image",n.className="smarttouch-image",o.meta[e].desktop.ratio=56.25,o.meta[e].desktop.fit="contain",o.meta[e].desktop.focalx="50%",o.meta[e].desktop.focaly="50%",o.meta[e].tablet=o.meta[e].mobile={},n.setAttribute("data-img",LZUTF8.compress(JSON.stringify(o.meta[e]),{outputEncoding:"Base64"}))),l.appendChild(n);else{const t=document.createElement("div");t.className="wp-block-smarttouch-slideshow",n.className="smarttouch-slideshow",n.innerHTML='\n\t\t\t\t\t\t\t<div class="st-main"><div class="swiper-main">\n\t\t\t\t\t\t\t\t<div class="swiper">\n\t\t\t\t\t\t\t\t\t\t<div class="swiper-wrapper">\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="slide-overlays"></div>\n\t\t\t\t\t\t\t</div></div>\n\t\t\t\t\t\t';const s=n.querySelector(".swiper-wrapper");for(const[t,e]of Object.entries(o.meta)){const t=document.createElement("div");t.className="swiper-slide";let i="";if(e.video?.html){const t=e.video;i='<div class="swiper-slide-media'+(t.background?" video-background":"")+'">';let s=t.html.replace("<iframe",'<iframe allowTransparency="true"');"youtube"==t.type&&(s=s.replace("feature=oembed","feature=oembed&playsinline=1&modestbranding=1&enablejsapi=1&loop=1&wmode=transparent&playlist="+t.id)),t.background?("vimeo"==t.type&&(s=s.replace(/src="([^"]+)"/,'src="$1&background=1&auto
1pause=0&transparent=0"')),"youtube"==t.type&&(s=s.replace("feature=oembed","feature=oembed&rel=0&controls=0&autoplay=true")),"wistia"==t.type&&(s=s.replace(/src\=\"(.*?)\"/,'src="$1?controlsVisibleOnLoad=false&wmode=transparent&autoplay=true&volume=0"'))):"vimeo"==t.type&&(s=s.replace(/src="([^"]+)"/,'src="$1&byline=0&pip=0&playsinline=1&transparent=0&loop=1"')),i+=`<div class="st-video" style="--ratio:${t.ratio};`,t.background&&(i+="pointer-events: none;"),i+=`">${s}</div>`,i+="</div>"}else i=`<div class="swiper-slide-media">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading="lazy" src="${e.src}" alt="${e.alt}" />\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="swiper-lazy-preloader"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>`;t.innerHTML=i,s.appendChild(t)}o.swiper.initialSlide=e,t.setAttribute("data-slideshow",LZUTF8.compress(JSON.stringify(o),{outputEncoding:"Base64"})),l.appendChild(t),t.appendChild(n)}r.appendChild(l),r.appendChild(l);const c=t=>{i.classList.remove("active");let e=getComputedStyle(i).getPropertyValue("transition-duration");e=e.includes("ms")?parseInt(e):Math.round(1e3*parseFloat(e)),setTimeout(()=>{i.remove()},e)};r.addEventListener("click",t=>t.stopPropagation()),i.addEventListener("click",c),i.querySelector(".smarttouch-close").addEventListener("click",c);let p=document.querySelector(".wp-site-blocks");p||(p=document.body),p.appendChild(i),setTimeout(()=>{i.classList.add("active")},1)}})):t.classList.remove("clicktoexpand")})(t,i)),e.querySelectorAll("[data-photogallery]").forEach(t=>((t,e)=>{const{display:s}=e,i=JSON.parse(LZUTF8.decompress(t.dataset.photogallery,{inputEncoding:"Base64"})),a=t.querySelector(".st-contain");t.removeAttribute("data-photogallery");const o=t.dataset.action;t.removeAttribute("data-action"),t.style.setProperty("--ratio",sti.disp(i,"ratio",s)+"%"),t.style.setProperty("--aspect-ratio",100/sti.disp(i,"ratio",s)),t.style.setProperty("--gap",sti.disp(i,"gap",s)),t.style.setProperty("--columns",sti.disp(i,"columns",s));let r=t.querySelectorAll(".wp-block-smarttouch-photo");const l=parseInt(sti.disp(i,"showmore",s));if(l&&r.length>l){t.classList.add("st-showmore-"+l);const e=document.createElement("div");e.className="st-showmore",e.innerHTML="<span>Show More</span>",e.querySelector("span").addEventListener("click",()=>{t.classList.add("st-expanded"),e.remove()}),t.appendChild(e)}r.forEach((t,e)=>{const s=t.dataset.fit;s&&t.style.setProperty("--fit",s)}),"none"!=o&&r.forEach((t,e)=>{let i=[];if("gallery"==o){t.photo=JSON.parse(LZUTF8.decompress(t.dataset.photo,{inputEncoding:"Base64"}));const e=sti.disp(t.photo,"fit",s),i=sti.disp(t.photo,"focalx",s),a=sti.disp(t.photo,"focaly",s),o=sti.disp(t.photo,"scale",s);"cover"!==e&&t.style.setProperty("--fit",e),.5!==i&&t.style.setProperty("--focalx",100*i+"%"),.5!==a&&t.style.setProperty("--focaly",100*a+"%"),1!==o&&t.style.setProperty("--scale",o),t.removeAttribute("data-photo")}"album"==o&&(i=JSON.parse(LZUTF8.decompress(t.dataset.photos,{inputEncoding:"Base64"})),t.removeAttribute("data-photos")),t.onclick=t=>{const l={slides:[],meta:{},swiper:{loop:r.length>3,speed:500},desktop:{ratio:56.25,navGap:"10px",pageGap:"10px",navOffset:"0px",navOffsetY:"0px",pageOffset:"30px",pageOffsetY:"0px",navWidth:"40px",navHeight:"40px",navPosition:"outside",navOrientation:"row",navAlign:"center",navJustify:"space-between",pagePosition:"outside",pageOrientation:"row",pageAlign:"end",pageSize:"8px",color:"#ffffffA0",colorHover:"#ffffff",shadow:"#00000000",effect:"coverflow",slidesPerView:1.3,spaceBetween:0,coverflowEffectDepth:200,coverflowEffectRotate:25,coverflowEffectScale:1,coverflowEffectSlideShadows:!1,cardsEffectPerSlideOffset:20,cardsEffectPerSlideRotate:10,cardsEffectRotate:!0,cardsEffectSlideShadows:!1,direction:"horizontal",stiEffect:"",stiStrength:.5,thumbnailsEnabled:!1,thumbnailsPosition:"outside-bottom",thumbnailsGap:"10px",thumbnailsSpacing:"10px",thumbnailsWidth:"140px",thumbnailsHeight:"80px",thumbnailsOpacity:.5,thumbnailsOpacityActive:1,thumbnailsBorder:"#ffffff00",thumbnailsBorderActive:"#ffffffff",thumbnailsBorderWidth:"2px"},mobile:{effect:"slide",slidesPerView:1,pagePosition:"hidden",pageSize:"2px",navPosition:"inside",navAlign:"flex-end",navJustify:"center",n
1avWidth:"30px",navHeight:"35px",navOffset:"30px",navOffsetY:"70px"}};"gallery"==o?r.forEach((t,e)=>{const i=t.photo;t.style.setProperty("--fit",sti.disp(i,"fit",s)),t.style.setProperty("--focalx",100*sti.disp(i,"focalx",s)+"%"),t.style.setProperty("--focaly",100*sti.disp(i,"focaly",s)+"%"),t.style.setProperty("--scale",sti.disp(i,"scale",s)),l.slides.push(e),l.meta[e]={src:i.src,alt:i.alt,title:i.title,caption:i.caption,video:i.video}}):"album"==o&&i.forEach((t,e)=>{l.slides.push(e),l.meta[e]={src:t,alt:"",title:"",caption:e+1+" of "+i.length,video:{}}});const n=document.createElement("div");n.innerHTML='\n                   <div class="smarttouch-popup standard-popup" style="background:rgba(0,0,0,0.75)">\n                       <div class="smarttouch-content"></div>\n                       <div class="smarttouch-close"></div>\n                   </div>\n               ';const d=n.querySelector(".smarttouch-popup"),c=n.querySelector(".smarttouch-content"),p=document.createElement("div"),m=document.createElement("div");let u=(window.innerHeight-80)/.5625;if(p.style.setProperty("max-width",1.1*u+"px"),p.style.setProperty("margin","0 auto"),1==l.slides.length)p.style.setProperty("max-width",u+"px"),p.style.setProperty("margin","0 auto"),l.meta[0].video?.html?(m.className="st-video",m.style.setProperty("--ratio",l.meta[0].video.ratio),m.innerHTML=l.meta[0].video.html):(p.className="wp-block-smarttouch-image",m.className="smarttouch-image",l.meta[0].desktop={src:l.meta[0].src,ratio:56.25,fit:"contain",focalx:"50%",focaly:"50%"},l.meta[0].tablet=l.meta[0].mobile={},m.setAttribute("data-img",LZUTF8.compress(JSON.stringify(l.meta[0]),{outputEncoding:"Base64"}))),p.appendChild(m);else{l.swiper.loop=l.slides.length>3;const t=document.createElement("div");t.className="wp-block-smarttouch-slideshow",m.className="smarttouch-slideshow",a&&m.classList.add("st-contain"),m.innerHTML='\n\t\t\t\t\t\t\t<div class="st-main"><div class="swiper-main">\n\t\t\t\t\t\t\t\t<div class="swiper">\n\t\t\t\t\t\t\t\t\t\t<div class="swiper-wrapper">\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="slide-overlays"></div>\n\t\t\t\t\t\t\t</div></div>\n\t\t\t\t\t\t';const s=m.querySelector(".swiper-wrapper");for(const[t,e]of Object.entries(l.meta)){const t=document.createElement("div");t.className="swiper-slide";let i="";if(e.video?.html){const t=e.video;i='<div class="swiper-slide-media'+(t.background?" video-background":"")+'">';let s=t.html.replace("<iframe",'<iframe allowTransparency="true"');"youtube"==t.type&&(s=s.replace("feature=oembed","feature=oembed&playsinline=1&modestbranding=1&enablejsapi=1&loop=1&wmode=transparent&playlist="+t.id)),t.background?("vimeo"==t.type&&(s=s.replace(/src="([^"]+)"/,'src="$1&background=1&autopause=0&transparent=0"')),"youtube"==t.type&&(s=s.replace("feature=oembed","feature=oembed&rel=0&controls=0&autoplay=true")),"wistia"==t.type&&(s=s.replace(/src\=\"(.*?)\"/,'src="$1?controlsVisibleOnLoad=false&wmode=transparent&autoplay=true&volume=0"'))):"vimeo"==t.type&&(s=s.replace(/src="([^"]+)"/,'src="$1&byline=0&pip=0&playsinline=1&transparent=0&loop=1"')),i+=`<div class="st-video" style="--ratio:${t.ratio};`,t.background&&(i+="pointer-events: none;"),i+=`">${s}</div>`,i+="</div>"}else i=`<div class="swiper-slide-media">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading="lazy" src="${e.src}" alt="${e.alt}" />\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="swiper-lazy-preloader"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>`;t.innerHTML=i,s.appendChild(t)}l.swiper.initialSlide=e,t.setAttribute("data-slideshow",LZUTF8.compress(JSON.stringify(l),{outputEncoding:"Base64"})),p.appendChild(t),t.appendChild(m)}c.appendChild(p),c.appendChild(p);const f=t=>{d.classList.remove("active");let e=getComputedStyle(d).getPropertyValue("transition-duration");e=e.includes("ms")?parseInt(e):Math.round(1e3*parseFloat(e)),setTimeout(()=>{d.remove()},e)};c.addEventListener("click",t=>t.stopPropagation()),d.addEventListener("click",f),d.querySelector(".smarttouch-close").addEventListener("click",f);let h=document.querySelector(".wp-site-blocks");h||(h=document.body),h.appendChild(d),setTimeout(()=>{d.classList.add("active")},1)}})})(t,i)),e.querySelectorAll("[data-gallery]").forEach(t=>((t,e)=>{const{display:s}=e,i=JSON.parse(LZUTF8.decompress(t.dataset.gallery,{inputEncoding:"Base64"}));t.removeAttribute("data-gallery"),t.style.setProperty("--ratio",sti.disp(i,"ratio",s)+"%"),t.style.setProperty("--aspect-ratio",100/sti.disp(i,"ratio",s)),t.style.setProperty("--hgap",sti.disp(i,"hgap",s)),t.style.setProperty("--vgap",sti.disp(i,"vgap",s)),t.albums={};const a=t.querySelector(".smarttouch-gallery"),o=document.createElement("div");o.className="st-container",a.appendChild(o);const r=document.createElement("div");r.classList.add("st-albums","st-active","layout-"+sti.disp(i,"layout",s)),r.style.setProperty("--columns",sti.disp(i,"columns",s)),o.appendChild(r);const l=e=>{if(t.tabs&&(t.querySelectorAll(".st-album-tabs label").forEach(t=>t.classList.remove("st-active")),t.tabs[e].classList.add("st-active")),t.albums[e].dataset.a=e,1==t.albums[e].children.length)n(e,0);else{for(const t of o.children)t.classList.remove("st-active");t.albums[e].classList.add("st-active");const s=window.getComputedStyle(t.albums[e]).getPropertyValue("height");o.style.setProperty("height",s)}},n=(e,s)=>{for(const t of o.children)t.classList.remove("st-active");t.albums[e].galleries[s].classList.add("st-active"),t.albums[e].galleries[s].dataset.a=e,t.albums[e].galleries[s].dataset.g=s;const i=window.getComputedStyle(t.albums[e].galleries[s]).getPropertyValue("height");o.style.setProperty("height",i)},d=(t,e,a=!1)=>{const o=document.createElement("div");return o.classList.add("st-photo","st-photo-"+t,i.meta[t].video?.html?"has-video":null),o.style.setProperty("--focalx",100*sti.disp(i.meta[t],"focalx",s)+"%"),o.style.setProperty("--focaly",100*sti.disp(i.meta[t],"focaly",s)+"%"),o.style.setProperty("--scale",sti.disp(i.meta[t],"scale",s)),o.style.setProperty("--fit",sti.disp(i.meta[t],"fit",s)),o.innerHTML=`\n                <div class="st-image" data-loadimg="${i.meta[t].desktop.src}
1" data-alt="${i.meta[t].alt}"></div>\n                <div class="st-caption">${a||i.meta[t].caption}</div>\n            `,i.meta[t].video?.html&&(o.innerHTML=o.innerHTML+'<div class="st-play"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm-3 17v-10l9 5.146-9 4.854z"/></svg></div>'),o.onclick=e,o};r.innerHTML="",t.classList.add("cols-"+sti.disp(i,"columns",s)),i.albums.forEach((e,a)=>{const c=e.galleries[0];if(!c)return;const p=c.photos[0];p&&(r.appendChild(d(p,t=>l(a),e.label)),t.albums[a]=document.createElement("div"),t.albums[a].classList.add("st-galleries","layout-"+sti.disp(e,"layout",s),"cols-"+sti.disp(e,"columns",s)),t.albums[a].style.setProperty("--columns",sti.disp(e,"columns",s)),t.albums[a].galleries={},e.galleries.forEach((e,r)=>{const l=e.photos[0];l&&(t.albums[a].appendChild(d(l,t=>n(a,r),e.label)),t.albums[a].galleries[r]=document.createElement("div"),t.albums[a].galleries[r].classList.add("st-photos","layout-"+sti.disp(e,"layout",s),"cols-"+sti.disp(e,"columns",s)),t.albums[a].galleries[r].style.setProperty("--columns",sti.disp(e,"columns",s)),e.photos.forEach((s,o)=>{if(e.click)t.albums[a].galleries[r].appendChild(d(s,t=>{const a=document.createElement("div");a.innerHTML='\n                                <div class="smarttouch-popup standard-popup" style="background:rgba(0,0,0,0.75)">\n                                    <div class="smarttouch-content"></div>\n                                    <div class="smarttouch-close"></div>\n                                </div>\n                            ';const r=a.querySelector(".smarttouch-popup"),l=a.querySelector(".smarttouch-content"),n=document.createElement("div"),d=document.createElement("div");let c=(window.innerHeight-80)/.5625;switch(e.click){case"single":n.style.setProperty("max-width",c+"px"),n.style.setProperty("margin","0 auto"),i.meta[s].video?.html?(d.className="st-video",d.style.setProperty("--ratio",i.meta[s].video.ratio),d.innerHTML=i.meta[s].video.html):(n.className="wp-block-smarttouch-image",d.className="smarttouch-image",i.meta[s].desktop.ratio=56.25,i.meta[s].desktop.fit="contain",i.meta[s].desktop.focalx="50%",i.meta[s].desktop.focaly="50%",i.meta[s].tablet=i.meta[s].mobile={},d.setAttribute("data-img",LZUTF8.compress(JSON.stringify(i.meta[s]),{outputEncoding:"Base64"}))),n.appendChild(d),l.appendChild(n);break;case"slideshow":n.style.setProperty("max-width",1.1*c+"px"),n.style.setProperty("margin","0 auto");const t=document.createElement("div");t.className="wp-block-smarttouch-slideshow",d.className="smarttouch-slideshow",d.innerHTML='\n                                        <div class="st-main"><div class="swiper-main">\n                                            <div class="swiper">\n                                                <div class="swiper-wrapper">\n                                                </div>\n                                            </div>\n                                            <div class="slide-overlays"></div>\n                                        </div></div>\n                                    ';const a=d.querySelector(".swiper-wrapper");e.photos.forEach(t=>{const e=document.createElement("div");e.className="swiper-slide";let s="";if(i.meta[t].video?.html){const e=i.meta[t].video;s='<div class="swiper-slide-media'+(e.background?" video-background":"")+'">';let a=e.html.replace("<iframe",'<iframe allowTransparency="true"');"youtube"==e.type&&(a=a.replace("feature=oembed","feature=oembed&playsinline=1&modestbranding=1&enablejsapi=1&loop=1&wmode=transparent&playlist="+e.id)),e.background?("vimeo"==e.type&&(a=a.replace(/src="([^"]+)"/,'src="$1&background=1&autopause=0&transparent=0"')),"youtube"==e.type&&(a=a.replace("feature=oembed","feature=oembed&rel=0&controls=0&autoplay=true")),"wistia"==e.type&&(a=a.replace(/src\=\"(.*?)\"/,'src="$1?controlsVisibleOnLoad=false&wmode=transparent&autoplay=true&volume=0"'))):"vimeo"==e.type&&(a=a.replace(/src="([^"]+)"/,'src="$1&byline=0&pip=0&playsinline=1&transparent=0&loop=1"')),s+=`<div class="st-video" style="--ratio:${e.ratio};`,e.background&&(s+="pointer-events: none;"),s+=`">${a}
1</div>\n                                            </div>`}else s=`<div class="swiper-slide-media">\n                                                <img loading="lazy" src="${i.meta[t].desktop.src}" alt="${i.meta[t].alt}" />\n                                                <div class="swiper-lazy-preloader"></div>\n                                            </div>`;e.innerHTML=s,a.appendChild(e)}),e.meta=i.meta,e.slides=e.photos,e.swiper={loop:!0,speed:500,initialSlide:o},e.desktop={ratio:56.25,navGap:"10px",pageGap:"10px",navOffset:"0px",navOffsetY:"0px",pageOffset:"30px",pageOffsetY:"0px",navWidth:"40px",navHeight:"40px",navPosition:"outside",navOrientation:"row",navAlign:"center",navJustify:"space-between",pagePosition:"outside",pageOrientation:"row",pageAlign:"end",pageSize:"8px",color:"#ffffffA0",colorHover:"#ffffff",shadow:"#00000000",effect:"coverflow",slidesPerView:1.3,spaceBetween:0,coverflowEffectDepth:200,coverflowEffectRotate:25,coverflowEffectScale:1,coverflowEffectSlideShadows:!0,cardsEffectPerSlideOffset:20,cardsEffectPerSlideRotate:10,cardsEffectRotate:!0,cardsEffectSlideShadows:!0,direction:"horizontal",stiEffect:"",stiStrength:.5,thumbnailsEnabled:!1,thumbnailsPosition:"outside-bottom",thumbnailsGap:"10px",thumbnailsSpacing:"10px",thumbnailsWidth:"140px",thumbnailsHeight:"80px",thumbnailsOpacity:.5,thumbnailsOpacityActive:1,thumbnailsBorder:"#ffffff00",thumbnailsBorderActive:"#ffffffff",thumbnailsBorderWidth:"2px"},e.mobile={effect:"slide",slidesPerView:1,pagePosition:"hidden",pageSize:"2px",navPosition:"inside",navAlign:"flex-end",navJustify:"center",navWidth:"30px",navHeight:"35px",navOffset:"30px",navOffsetY:"70px"},t.setAttribute("data-slideshow",LZUTF8.compress(JSON.stringify(e),{outputEncoding:"Base64"})),n.appendChild(t),t.appendChild(d),l.appendChild(n)}l.appendChild(n);const p=t=>{r.classList.remove("active");let e=getComputedStyle(r).getPropertyValue("transition-duration");e=e.includes("ms")?parseInt(e):Math.round(1e3*parseFloat(e)),setTimeout(()=>{r.remove()},e)};l.addEventListener("click",t=>t.stopPropagation()),r.addEventListener("click",p),r.querySelector(".smarttouch-close").addEventListener("click",p);let m=document.querySelector(".wp-site-blocks");m||(m=document.body),m.appendChild(r),setTimeout(()=>{r.classList.add("active")},1)}));else{const e=d(s,t=>{});e.style.cursor="default",t.albums[a].galleries[r].appendChild(e)}}),o.appendChild(t.albums[a].galleries[r]))}),o.appendChild(t.albums[a]))});const c=window.getComputedStyle(r).getPropertyValue("height");if(o.style.setProperty("height",c),i.albumTabs){const e=document.createElement("div");e.className="st-album-tabs",t.tabs={}
1,i.albums.forEach((s,i)=>{t.tabs[i]=document.createElement("label"),t.tabs[i].classList.add("album-"+s.label.toLowerCase().replace(" ","-").replace(/[^0-9a-z-]/g,"")),t.tabs[i].innerHTML=s.label,t.tabs[i].addEventListener("click",t=>l(i)),e.appendChild(t.tabs[i])}),a.appendChild(e),l(0)}1==i.albums.length&&l(0),t.querySelectorAll(".layout-marquee").forEach(t=>{let e=sti.disp(i,"speed",s)||10;void 0!==t.dataset.a&&(e=sti.disp(i.albums[t.dataset.a],"speed",s)),void 0!==t.dataset.g&&(e=sti.disp(i.albums[t.dataset.a].galleries[t.dataset.g],"speed",s)),t.children.forEach(e=>{const s=e.cloneNode(!0);s.onclick=e.onclick,t.appendChild(s)});const a=t.scrollWidth/2,o=gsap.to(t,{duration:e,ease:"linear",repeat:!0,onStart:()=>{t.scrollTo(0,0)},onUpdate:()=>{const e=o.progress()*a;t.scrollTo(e,0)},onComplete:()=>{o.restart()}})}),t.querySelectorAll(".layout-marquee-reverse").forEach(t=>{let e=sti.disp(i,"speed",s)||10;void 0!==t.dataset.a&&(e=sti.disp(i.albums[t.dataset.a],"speed",s)),void 0!==t.dataset.g&&(e=sti.disp(i.albums[t.dataset.a].galleries[t.dataset.g],"speed",s)),t.children.forEach(e=>{const s=e.cloneNode(!0);s.onclick=e.onclick,t.appendChild(s)});const a=t.scrollWidth/2,o=gsap.to(t,{duration:e,ease:"linear",repeat:!0,onStart:()=>{t.scrollTo(a,0)},onUpdate:()=>{const e=o.progress()*a;t.scrollTo(a-e,0)},onComplete:()=>{o.restart()}})})})(t,i)),e.querySelectorAll("[data-socialicons]").forEach(t=>((t,e)=>{const{display:s}=e,i=JSON.parse(LZUTF8.decompress(t.dataset.socialicons,{inputEncoding:"Base64"}));t.removeAttribute("data-socialicons"),t.style.setProperty("--orientation",sti.disp(i,"orientation",s)),t.style.setProperty("--size",sti.disp(i,"size",s)),t.style.setProperty("--gap",sti.disp(i,"gap",s)),t.style.setProperty("--justify",sti.disp(i,"justify",s)),fetch("/wp-json/smarttouch/socials").then(t=>t.json()).then(e=>{let s="";e.facebook&&(s+=`<a href="${e.facebook}" aria-label="Follow us on Facebook" target="_blank" data-sttrack="Click Through" data-stlabel="Facebook Icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm3 8h-1.35c-.538 0-.65.221-.65.778v1.222h2l-.209 2h-1.791v7h-3v-7h-2v-2h2v-2.308c0-1.769.931-2.692 3.029-2.692h1.971v3z" /></svg></a>`),e.instagram&&(s+=`<a href="${e.instagram}" aria-label="Follow us on Instagram" target="_blank" data-sttrack="Click Through" data-stlabel="Instagram Icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M14.829 6.302c-.738-.034-.96-.04-2.829-.04s-2.09.007-2.828.04c-1.899.087-2.783.986-2.87 2.87-.033.738-.041.959-.041 2.828s.008 2.09.041 2.829c.087 1.879.967 2.783 2.87 2.87.737.033.959.041 2.828.041 1.87 0 2.091-.007 2.829-.041 1.899-.086 2.782-.988 2.87-2.87.033-.738.04-.96.04-2.829s-.007-2.09-.04-2.828c-.088-1.883-.973-2.783-2.87-2.87zm-2.829 9.293c-1.985 0-3.595-1.609-3.595-3.595 0-1.985 1.61-3.594 3.595-3.594s3.595 1.609 3.595 3.594c0 1.985-1.61 3.595-3.595 3.595zm3.737-6.491c-.464 0-.84-.376-.84-.84 0-.464.376-.84.84-.84.464 0 .84.376.84.84 0 .463-.376.84-.84.84zm-1.404 2.896c0 1.289-1.045 2.333-2.333 2.333s-2.333-1.044-2.333-2.333c0-1.289 1.045-2.333 2.333-2.333s2.333 1.044 2.333 2.333zm-2.333-12c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm6.958 14.886c-.115 2.545-1.532 3.955-4.071 4.072-.747.034-.986.042-2.887.042s-2.139-.008-2.886-.042c-2.544-.117-3.955-1.529-4.072-4.072-.034-.746-.042-.985-.042-2.886 0-1.901.008-2.139.042-2.886.117-2.544 1.529-3.955 4.072-4.071.747-.035.985-.043 2.886-.043s2.14.008 2.887.043c2.545.117 3.957 1.532 4.071 4.071.034.747.042.985.042 2.886 0 1.901-.008 2.14-.042 2.886z" /></svg></a>`),e.linkedin&&(s+=`<a href="${e.linkedin}" aria-label="Follow us on LinkedIn" target="_blank" data-sttrack="Click Through" data-stlabel="LinkedIn Icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm-2 16h-2v-6h2v6zm-1-6.891c-.607 0-1.1-.496-1.1-1.109 0-.612.492-1.109 1.1-1.109s1.1.497 1.1 1.109c0 .613-.493 1.109-1.1 1.109zm8 6.891h-1.998v-2.861c0-1.881-2.002-1.722-2.002 0v2.861h-2v-6h2v1.093c.872-1.616 4-1.736 4 1.548v3.359z" /></svg></a>`),e.x&&(s+=`<a href="${e.x}" aria-label="Follow us on X" target="_blank" data-sttrack="Click Through" data-stlabel="X Icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 74 74"><circle fill="currentColor" cx="37" cy="37" r="35.9" /><path d="M41.2,33.6l16.4-19l-3.9,0L39.5,31.1L28.1,14.5l-13.1,0l17.2,25L15,59.5l3.9,0l15-17.4l12,17.4l13.1,0 L41.2,33.6L41.2,33.6z M35.9,39.7l-1.7-2.5L20.3,17.5l6,0l11.2,16l1.7,2.5l14.5,20.8l-6,0L35.9,39.7L35.9,39.7z" /></svg></a>`),e.youtube&&(s+=`<a href="${e.youtube}" aria-label="Follow us on YouTube" target="_blank" data-sttrack="Click Through" data-stlabel="YouTube Icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1<path fill="currentColor" d="M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm4.441 16.892c-2.102.144-6.784.144-8.883 0-2.276-.156-2.541-1.27-2.558-4.892.017-3.629.285-4.736 2.558-4.892 2.099-.144 6.782-.144 8.883 0 2.277.156 2.541 1.27 2.559 4.892-.018 3.629-.285 4.736-2.559 4.892zm-6.441-7.234l4.917 2.338-4.917 2.346v-4.684z" /></svg></a>`),e.pinterest&&(s+=`<a href="${e.pinterest}" aria-label="Follow us on Pinterest" target="_blank" data-sttrack="Click Through" data-stlabel="Pinterest Icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M12 0c-6.627 0-12 5.372-12 12 0 5.084 3.163 9.426 7.627 11.174-.105-.949-.2-2.405.042-3.441.218-.937 1.407-5.965 1.407-5.965s-.359-.719-.359-1.782c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.69 0 1.029-.655 2.568-.994 3.995-.283 1.194.599 2.169 1.777 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738.098.119.112.224.083.345l-.333 1.36c-.053.22-.174.267-.402.161-1.499-.698-2.436-2.889-2.436-4.649 0-3.785 2.75-7.262 7.929-7.262 4.163 0 7.398 2.967 7.398 6.931 0 4.136-2.607 7.464-6.227 7.464-1.216 0-2.359-.631-2.75-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146 1.124.347 2.317.535 3.554.535 6.627 0 12-5.373 12-12 0-6.628-5.373-12-12-12z" fill-rule="evenodd" clip-rule="evenodd"/></svg></a>`),e.houzz&&(s+=`<a href="${e.houzz}" aria-label="Follow us on Houzz" target="_blank" data-sttrack="Click Through" data-stlabel="Houzz Icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M10 6.675L10 2 3 2 3 22 11 22 11 16.6 13 16.6 13 22 21 22 21 10.275z"></path></svg></a>`),e.yelp&&(s+=`<a href="${e.yelp}" aria-label="Follow us on Yelp" target="_blank" data-sttrack="Click Through" data-stlabel="Yelp Icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 228.097 228.097" xml:space="preserve"><path fill="currentColor" d="M173.22 68.06c8.204 6.784 30.709 25.392 27.042 38.455-1.696 5.867-8.434 7.746-13.43 9.579a247.917 247.917 0 0 1-35.339 9.9c-9.717 1.971-30.48 6.279-26.63-10.909 1.512-6.646 6.875-12.284 11.184-17.28 8.846-10.404 17.876-21.405 28.555-29.93.871-.688 1.925-.871 2.842-.733 1.788-.732 3.942-.64 5.776.918zM161.119 205.197c-7.196-5.821-12.284-14.942-16.684-22.917-4.309-7.7-11.092-17.876-12.238-26.813-2.337-18.38 24.292-7.333 31.947-4.675 10.175 3.575 37.447 7.517 34.422 23.421-2.521 12.971-18.151 28.784-31.213 30.801-.137.046-.321 0-.504 0l-.137.137c-.367.183-.779.413-1.192.596-1.559.826-3.071.505-4.401-.55zM101.58 157.896c14.484-6.004 15.813 10.175 15.721 19.984-.137 11.688-.504 23.421-1.375 35.063-.321 4.721-.137 10.405-4.629 13.384-5.546 3.667-16.225.779-21.955-1.008a2.793 2.793 0 0 0-.55-.229c-12.054-2.108-26.767-7.654-28.188-18.792-.138-1.283.367-2.429 1.146-3.3a19.33 19.33 0 0 1 1.146-1.925c1.788-2.475 3.85-4.675 5.913-6.921a187.832 187.832 0 0 1 11.229-14.988c5.775-6.967 12.879-17.693 21.542-21.268zM103.689 107.661c-21.13-17.371-41.71-44.276-52.344-69.164-8.113-18.93 12.513-30.48 28.417-35.705 21.451-7.059 29.976-.917 32.13 20.534a536.663 536.663 0 0 1 2.475 55.643c-.046 7.838 2.154 20.488-2.429 27.547.733 2.888-3.621 4.95-6.096 2.979-.367-.275-.733-.642-1.146-.963a4.415 4.415 0 0 1-1.007-.871zM101.397 134.566c1.696 7.517-3.621 10.542-9.854 13.384-11.092 4.996-22.734 8.984-34.422 12.284-6.784 1.879-17.188 6.371-23.742 1.375-4.95-3.758-5.271-11.596-5.729-17.28-1.008-12.696.917-42.993 18.517-44.276 8.617-.596 19.388 7.104 26.447 11.138 9.396 5.409 19.48 11.596 26.492 20.076 1.053.595 1.924 1.649 2.291 3.299z"/></svg></a>`),t.firstChild.innerHTML=s})})(t,i)),e.querySelectorAll("[data-img]").forEach(t=>((t,e)=>{const{display:s}=e,i=JSON.parse(LZUTF8.decompress(t.dataset.img,{inputEncoding:"Base64"}));t.removeAttribute("data-img");const a=sti.disp(i,"src",s),o=(sti.disp(i,"fit",s),sti.disp(i,"ratio",s));let r=t.parentNode;if(r.classList.contains("wp-block-smarttouch-image")||(r=t),o?r.style.setProperty("--height","0"):r.style.setProperty("--height","100%"),r.style.setProperty("--ratio",o+"%"),r.style.setProperty("--aspect-ratio",100/o),r.style.setProperty("--rounding",sti.disp(i,"rounding",s)),r.style.setProperty("--scale",sti.disp(i,"scale",s)),r.style.setProperty("--focalx",100*sti.disp(i,"focalx",s)+"%"),r.style.setProperty("--focaly",100*sti.disp(i,"focaly",s)+"%"),r.style.setProperty("--fit",sti.disp(i,"fit",s)),a.endsWith(".svg"))sti.svg(t,i);else{const o=parseInt(t.offsetWidth),r=parseInt(t.offsetHeight),l=document.createElement("img");l.loading="lazy",l.alt=i.alt||i.title||"",e&&(e.els.push({el:t,img:l}),e.srcs.push({src:a,w:Math.ceil(o*sti.disp(i,"scale",s)),h:Math.ceil(r*sti.disp(i,"scale",s))}))}})(t,i)),e.querySelectorAll("[data-loadimg]").forEach(t=>i.loadimg(t)),e.querySelectorAll("[data-loadsrc]").forEach(t=>i.loadsrc(t)),i.srcs.length&&fetch("/wp-json/smarttouch/image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i.srcs)}).then(t=>t.json()).then(t=>{t.forEach((t,e)=>{i.els[e].img?(i.els[e].img.src=t.optimized?t.optimized:t.original,i.els[e].el.
1innerHTML="",i.els[e].el.appendChild(i.els[e].img)):i.els[e].el.src=t.optimized?t.optimized:t.original,i.els[e].el.classList.add("st-loaded")})}),e.querySelectorAll("[data-hide-if-empty]").forEach(t=>{t.getAttribute("data-hide-if-empty")||(t.style.display="none")}),e.querySelectorAll("[data-toggle-parent]").forEach(t=>{const e=t.getAttribute("data-toggle-parent");t.removeAttribute("data-toggle-parent"),t.addEventListener("click",s=>{const i=t.getAttribute("rel");for(const e of t.parentElement.children)e.classList.remove("st-active");t.classList.add("st-active"),document.querySelectorAll(e+"> [rel]").forEach(t=>t.classList.remove("st-active")),document.querySelector(e+'> [rel="'+i+'"]').classList.add("st-active")})}),e.deactivateEl=!1,e.reactivateEl=!1,e.clearInfoWindows=!1,e.querySelectorAll("[data-ref]").forEach(t=>{const s=t.dataset.ref.split(/, ?/);if(t.removeAttribute("data-ref"),t.classList.contains("type-panel")){const e=Array.from(t.parentNode.children).indexOf(t),s=t.classList.contains("ref-default");t=t.parentNode.previousSibling.children[e],s&&setTimeout(()=>t.click(),100)}t.addEventListener("click",i=>{t.parentRef||(t.parentRef=r()),t.classList.add("st-active"),e.clearInfoWindows&&e.clearInfoWindows();let a=!1;s.forEach(s=>{if(e.deactivateEl&&t.parentRef!=e.deactivateEl.parentRef&&(e.deactivateEl.classList.remove("st-active"),e.deactivateEl=!1),t.parentNode.children.forEach(t=>t.classList.remove("st-active")),t.classList.add("st-active"),s.startsWith(".")||s.startsWith("#")){const i=document.querySelector(s);i.parentRef=t.parentRef,i.querySelectorAll("div").forEach(e=>{e.parentRef=t.parentRef,e.classList.contains("ref-default")&&setTimeout(()=>e.click(),100)}),i.parentNode.children.forEach(t=>t.classList.remove("st-active")),i.classList.add("st-active"),e.deactivateEl=i}else if(stiRefs[s])switch(stiRefs[s].type){case"mapCategory":const t=stiRefs[s].markers;for(const[s,i]of Object.entries(t))a||(a=i.map.clearInfoWindows(),e.clearInfoWindows=i.map.clearInfoWindows),i.InfoWindow.open({anchor:i,shouldFocus:!1});break;case"mapMarker":const i=stiRefs[s].marker;a||(a=i.map.clearInfoWindows(),e.clearInfoWindows=i.map.clearInfoWindows),i.InfoWindow.open({anchor:i,shouldFocus:!1})}})})}),e.querySelectorAll("[data-filterby]").forEach(t=>{"function"!=typeof t.updateFilters&&(t.updateFilters=e=>{const s={};document.querySelectorAll('[data-filterfor="'+t.dataset.filterby+'"]').forEach(t=>{t.value&&(s[t.name]={type:"value",value:t.value}),t.selected&&(s[t.name]={type:"selected",selected:t.selected}),t.min&&(s[t.name]={type:"range",min:t.min,max:t.max})}),"function"==typeof Flip&&(Flip.isFlipping(t)&&Flip.stop(t),Flip.isFlipping(t.children)&&Flip.stop(t.children),t.state=Flip.getState(t),t.itemstate=Flip.getState(t.children));const i=new URL(window.location.href);for(const[t,e]of Object.entries(s))if(i.searchParams.has(t))switch(e.type){case"value":i.searchParams.set(t,e.value);break;case"range":i.searchParams.set(t,e.min+","+e.max);break;case"selected":i.searchParams.set(t,e.selected.join(","))}Array.from(t.children).forEach(t=>{t.classList.remove("filtered");for(const[e,i]of Object.entries(s))if(t.dataset[e]||t.dataset[e+"Min"]||t.dataset[e+"Max"])switch(i.type){case"value":break;case"range":let s,a;t.dataset[e+"Min"]&&(s=parseFloat(t.dataset[e+"Min"])),t.dataset[e+"Max"]&&(a=parseFloat(t.dataset[e+"Max"])),t.dataset[e]&&(s=a=parseFloat(t.dataset[e])),void 0!==s&&void 0!==a&&(i.min>a||i.max<s)&&t.classList.add("filtered");break;case"selected":i.selected.length&&!i.selected.includes(t.dataset[e])&&t.classList.add("filtered")}}),e||"function"!=typeof Flip||(Flip.from(t.state,{duration:.5,ease:"power1.inOut"}),Flip.from(t.itemstate,{duration:.5,scale:!0,absolute:".filtered",ease:"power1.inOut",onEnter:t=>gsap.fromTo(t,{opacity:0,scale:0},{opacity:1,scale:1,duration:.5}),onLeave:t=>gsap.to(t,{opacity:0,scale:0,duration:.5})}));const a=t.querySelectorAll("& > :not(.filtered)").length;document.querySelectorAll('[data-resultsfor="'+t.dataset.filterby+'"]').forEach(t=>{t.innerHTML=a}
1),document.querySelectorAll(".filter-results-"+t.dataset.filterby).forEach(t=>{t.setAttribute("data-results",a)})},t.updateFilters(!0))}),e.querySelectorAll("[data-popup]").forEach(e=>{const s=e.dataset.popup,i=e.dataset.params?"?"+e.dataset.params:"";let a={};e.dataset.atts&&(a=JSON.parse(LZUTF8.decompress(e.dataset.atts,{inputEncoding:"Base64"})));let o=sessionStorage.getItem("popup-atts")?JSON.parse(sessionStorage.getItem("popup-atts")):[];o.length&&(a={...o[o.length-1],...a});let r=document.querySelector(".wp-site-blocks");r||(r=document.body),e.removeAttribute("data-popup"),e.removeAttribute("data-atts"),a.slides&&(a.photos=a.slides),e.addEventListener("click",l=>{if(l.stopPropagation(),!e.clicked){if(e.clicked=!0,setTimeout(()=>e.clicked=!1,1e3),o.push(a),sessionStorage.setItem("popup-atts",JSON.stringify(o)),"video"==s){if(!a.html)return;const t=document.createElement("div");t.innerHTML='\n                    <div class="smarttouch-popup standard-popup is-video" style="background:rgba(0,0,0,0.75)">\n                        <div class="smarttouch-content"><div class="st-video"></div></div>\n                        <div class="smarttouch-close"></div>\n                    </div>\n                ';const e=t.querySelector(".smarttouch-popup"),s=t.querySelector(".st-video");s.innerHTML=a.html,s.querySelector("iframe").src+="&autoplay=1",s.style.setProperty("--ratio",a.ratio.replace("%","vw")),s.style.setProperty("--ratioReverse",100/(parseFloat(a.ratio)/100)+"vh");const i=t=>{o.pop(),sessionStorage.setItem("popup-atts",JSON.stringify(o)),e.classList.remove("active");let s=getComputedStyle(e).getPropertyValue("transition-duration");s=s.includes("ms")?parseInt(s):Math.round(1e3*parseFloat(s)),setTimeout(()=>{e.remove()},s)};return s.addEventListener("click",t=>t.stopPropagation()),e.addEventListener("click",i),e.querySelector(".smarttouch-close").addEventListener("click",i),r.appendChild(e),void setTimeout(()=>{e.classList.add("active")},1)}if("gallery"==s){if(!a.photos&&a.slides&&(a.photos=a.slides),!a.photos||!a.photos.length)return;const e=document.createElement("div");e.innerHTML='\n                    <div class="smarttouch-popup standard-popup" style="background:rgba(0,0,0,0.75)">\n                        <div class="smarttouch-content"></div>\n                        <div class="smarttouch-close"></div>\n                    </div>\n                ';const s=e.querySelector(".smarttouch-popup"),i=e.querySelector(".smarttouch-content"),l=document.createElement("div"),d=document.createElement("div");let c=(window.innerHeight-80)/.5625;if(1==a.photos.length){l.style.setProperty("max-width",c+"px"),l.style.setProperty("margin","0 auto"),l.className="wp-block-smarttouch-image",d.className="smarttouch-image";const t=a.photos[0];a.meta[t].desktop.scale=1,a.meta[t].desktop.ratio=56.25,a.meta[t].desktop.fit="contain",a.meta[t].desktop.focalx=.5,a.meta[t].desktop.focaly=.5,a.meta[t].tablet=a.meta[t].mobile={},a.meta[t].mobile.ratio=150,d.setAttribute("data-img",LZUTF8.compress(JSON.stringify(a.meta[t]),{outputEncoding:"Base64"})),l.appendChild(d),i.appendChild(l)}else{var n;let e={};e.meta=a.meta,e.slides=a.photos;let s="";l.style.setProperty("max-width",1.1*c+"px"),l.style.setProperty("margin","0 auto");const o=document.createElement("div");o.className="wp-block-smarttouch-slideshow",d.className="smarttouch-slideshow",d.innerHTML=`\n                        <div class="st-main"><div class="swiper-main">\n                            <div class="swiper">\n                                <div class="swiper-wrapper">\n\t\t\t\t\t\t\t\t\t\t  \t${s}\n                                </div>\n                            </div>\n                            <div class="slide-overlays"></div>\n                        </div></div>\n                    `;const r=d.querySelector(".swiper-wrapper");e.slides.forEach(t=>{const s=document.createElement("div");s.className="swiper-slide";let i="";if(e.meta[t].video?.html){const s=e.meta[t].video;i='<div class="swiper-slide-media'+(s.background?" video-background":"")+'">';let a=s.html.replace("<iframe",'<iframe allowTransparency="true"');"youtube"==s.type&&(a=a.replace("feature=oembed","feature=oembed&playsinline=1&modestbranding=1&enablejsapi=1&loop=1&wmode=transparent&playlist="+s.id)),s.background?("vimeo"==s.type&&(a=a.replace(/src="([^"]+)"/,'src="$1&background=1&auto
1pause=0&transparent=0"')),"youtube"==s.type&&(a=a.replace("feature=oembed","feature=oembed&rel=0&controls=0&autoplay=true")),"wistia"==s.type&&(a=a.replace(/src\=\"(.*?)\"/,'src="$1?controlsVisibleOnLoad=false&wmode=transparent&autoplay=true&volume=0"'))):"vimeo"==s.type&&(a=a.replace(/src="([^"]+)"/,'src="$1&byline=0&pip=0&playsinline=1&transparent=0&loop=1"')),i+=`<div class="st-video" style="--ratio:${s.ratio};`,s.background&&(i+="pointer-events: none;"),i+=`">${a}</div>\n                                            </div>`}else i=`<div class="swiper-slide-media">\n                                                <img loading="lazy" src="${e.meta[t].desktop.src}" alt="${e.meta[t].alt}" />\n                                                <div class="swiper-lazy-preloader"></div>\n                                            </div>`;s.innerHTML=i,r.appendChild(s)}),(0,t.map)(e.meta,(t,e)=>{t.desktop.scale=1,t.desktop.focalx=.5,t.desktop.focaly=.5,t.tablet=t.mobile={}}),e.swiper={loop:e.slides.length>3,speed:500,initialSlide:null!==(n=a.initialSlide)&&void 0!==n?n:0},e.desktop={ratio:56.25,navGap:"10px",pageGap:"10px",navOffset:"0px",navOffsetY:"0px",pageOffset:"30px",pageOffsetY:"0px",navWidth:"40px",navHeight:"40px",navPosition:"outside",navOrientation:"row",navAlign:"center",navJustify:"space-between",pagePosition:"outside",pageOrientation:"row",pageAlign:"end",pageSize:"8px",color:"#ffffffA0",colorHover:"#ffffff",shadow:"#00000000",effect:"coverflow",slidesPerView:1.3,spaceBetween:0,coverflowEffectDepth:200,coverflowEffectRotate:25,coverflowEffectScale:1,coverflowEffectSlideShadows:!0,cardsEffectPerSlideOffset:20,cardsEffectPerSlideRotate:10,cardsEffectRotate:!0,cardsEffectSlideShadows:!0,direction:"horizontal",stiEffect:"",stiStrength:.5,thumbnailsEnabled:!1,thumbnailsPosition:"outside-bottom",thumbnailsGap:"10px",thumbnailsSpacing:"10px",thumbnailsWidth:"140px",thumbnailsHeight:"80px",thumbnailsOpacity:.5,thumbnailsOpacityActive:1,thumbnailsBorder:"#ffffff00",thumbnailsBorderActive:"#ffffffff",thumbnailsBorderWidth:"2px"},e.mobile={effect:"slide",slidesPerView:1,navPosition:"inside",navAlign:"flex-end",navJustify:"center",navWidth:"30px",navHeight:"35px",navOffset:"20px",navOffsetY:"50px",pagination:!1},o.setAttribute("data-slideshow",LZUTF8.compress(JSON.stringify(e),{outputEncoding:"Base64"})),l.appendChild(o),o.appendChild(d),i.appendChild(l)}i.appendChild(l);const p=t=>{o.pop(),sessionStorage.setItem("popup-atts",JSON.stringify(o)),s.classList.remove("active");let e=getComputedStyle(s).getPropertyValue("transition-duration");e=e.includes("ms")?parseInt(e):Math.round(1e3*parseFloat(e)),setTimeout(()=>{s.remove()},e)};return i.addEventListener("click",t=>t.stopPropagation()),s.addEventListener("click",p),s.querySelector(".smarttouch-close").addEventListener("click",p),r.appendChild(s),void setTimeout(()=>{s.classList.add("active")},1)}if("iframe"==s){if(!a.url)return;const t=document.createElement("div");t.innerHTML='\n                    <div class="smarttouch-popup standard-popup" style="background:rgba(0,0,0,0.75)">\n                        <div class="smarttouch-content smarttouch-iframe"><iframe></iframe></div>\n                        <div class="smarttouch-close"></div>\n                    </div>\n                ';const e=t.querySelector(".smarttouch-popup"),s=t.querySelector(".smarttouch-content");t.querySelector("iframe").src=a.url.value;const i=t=>{e.classList.remove("active");let s=getComputedStyle(e).getPropertyValue("transition-duration");s=s.includes("ms")?parseInt(s):Math.round(1e3*parseFloat(s)),setTimeout(()=>{e.remove()},s)};return s.addEventListener("click",t=>t.stopPropagation()),e.addEventListener("click",i),e.querySelector(".smarttouch-close").addEventListener("click",i),r.appendChild(e),void setTimeout(()=>{e.classList.add("active")},1)}fetch("/wp-json/smarttouch/popup/"+s+i,{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).then(t=>t.json()).then(e=>{[...e.html.matchAll(/\{\{exists:([a-zA-Z0-9]*)\}\}/g)].forEach(t=>{a[t[1]]&&a[t[1]].value?e.html=e.html.replaceAll(t[0],"true"):e.html=e.html.replaceAll(t[0],"")});for(const s in a)switch(a[s].type){case"text":e.html=e.html.replaceAll("{{"+a[s].type+":"+s+"}}",a[s].value||"");break;case"image":if(!a[s].value?.src)break;e.html=e.html.replaceAll("{{"+a[s].type+":"+s+"}}",`<img src="${a[s].value.src}" alt="${a[s].value.alt}" />`||"");break;case"gallery":let i={swiper:{loop:!0,speed:500},desktop:{ratio:56.25,navGap:"10px",pageGap:"10px",navOffset:"0px",navOffsetY:"0px",pageOffset:"0px",pageOffsetY:"0px",navWidth:"40px",navHeight:"40px",navPosition:"inside",navOrientation:"row",navAlign:"center",n
1avJustify:"space-between",pagePosition:"inside",pageOrientation:"row",pageAlign:"end",pageSize:"10px",color:"#ffffffA0",colorHover:"#ffffffff",shadow:"#00000000",effect:"slide",slidesPerView:1,spaceBetween:0,coverflowEffectDepth:200,coverflowEffectRotate:25,coverflowEffectScale:1,coverflowEffectSlideShadows:!0,cardsEffectPerSlideOffset:20,cardsEffectPerSlideRotate:10,cardsEffectRotate:!0,cardsEffectSlideShadows:!0,direction:"horizontal",stiEffect:"",stiStrength:.5,thumbnailsEnabled:!1,thumbnailsPosition:"outside-bottom",thumbnailsGap:"10px",thumbnailsSpacing:"10px",thumbnailsWidth:"140px",thumbnailsHeight:"80px",thumbnailsOpacity:.5,thumbnailsOpacityActive:1,thumbnailsBorder:"#ffffff00",thumbnailsBorderActive:"#ffffffff",thumbnailsBorderWidth:"2px"},mobile:{navWidth:"30px",navHeight:"35px"}};i=(0,t.merge)(i,a[s].value);let o="";i.slides.forEach(t=>{const e=i.meta[t],s=e.desktop.src;delete e.desktop.src;const a=LZUTF8.compress(JSON.stringify(e),{outputEncoding:"Base64"});o+=`\n\t\t\t\t\t\t\t\t\t<div class="wp-block-smarttouch-slide swiper-slide">
1\n\t\t\t\t\t\t\t\t\t\t<div class="swiper-slide-media" data-slide="${a}">\n\t\t\t\t\t\t\t\t\t\t\t<img loading="lazy" data-loadsrc="${s}" alt=""/>\n\t\t\t\t\t\t\t\t\t\t\t<div class="swiper-lazy-preloader"></div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t`}),e.html=e.html.replaceAll("{{"+a[s].type+":"+s+"}}",'\n\t\t\t\t\t\t\t\t\t<div class="wp-block-smarttouch-slideshow alignfull" data-slideshow="'+LZUTF8.compress(JSON.stringify(i),{outputEncoding:"Base64"})+`">\n\t\t\t\t\t\t\t\t\t\t<div class="smarttouch-slideshow">\n\t\t\t\t\t\t\t\t\t\t\t<div class="st-main">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="swiper-main">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="swiper">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="swiper-wrapper">${o}</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>`)}e.html=e.html.replace(/\{\{.*?\:.*?\}\}/g,"");let s=document.createElement("div");s.innerHTML=e.html;const i=[];s.querySelectorAll("script").forEach(t=>{const e=document.createElement("script");e.innerHTML=t.innerHTML,i.push(e),t.remove()});const r=s.querySelector(".smarttouch-popup"),l=s.querySelector(".smarttouch-popup > div");document.body.appendChild(r),i.forEach(t=>document.body.appendChild(t));const n=t=>{o.pop(),sessionStorage.setItem("popup-atts",JSON.stringify(o)),r.classList.remove("active");let e=getComputedStyle(r).getPropertyValue("transition-duration");e=e.includes("ms")?parseInt(e):Math.round(1e3*parseFloat(e)),setTimeout(()=>{r.remove()},e)};r.addEventListener("click",n),l.addEventListener("click",t=>t.stopPropagation()),l.querySelector(".block-close")?.addEventListener("click",n),setTimeout(()=>{if(window.jQuery){var t=jQuery(l).find("form.frm-fluent-form");t.length&&(console.log("Reinitializing Fluent Forms in popup..."),jQuery.each(t,function(t,e){jQuery(e).trigger("reInitExtras"),jQuery(document).trigger("ff_reinit",[e])}))}r.classList.add("active")},100)})}})}),e.querySelectorAll("[data-interactivemap]").forEach(t=>{const e="map_"+r();t.querySelector(".leaflet").setAttribute("id",e);const i=JSON.parse(LZUTF8.decompress(t.dataset.interactivemap,{inputEncoding:"Base64"}));let a=!1;if(t.removeAttribute("data-interactivemap"),t.style.setProperty("--ratio",Math.round(1/sti.disp(i,"ratio",s)*1e4)/100),t.style.setProperty("--focalx",100*sti.disp(i,"focalx",s)+"%"),t.style.setProperty("--focaly",100*sti.disp(i,"focaly",s)+"%"),t.style.setProperty("--fit",sti.disp(i,"fit",s)),t.style.setProperty("--scale",sti.disp(i,"scale",s)),t.style.setProperty("--color",sti.disp(i,"color",s)),sti.disp(i,"osrc",s)){const e=document.createElement("div");e.className="overlay",e.innerHTML='<img data-loadsrc="'+sti.disp(i,"osrc",s)+'" alt="Interactive Map" />',t.appendChild(e),a=!0,e.addEventListener("click",s=>{e.style.pointerEvents="none",t.map&&t.map.flyTo(t.center,t.wantedZoom-.1,{animate:!0,duration:2}),gsap.to(e.firstChild,{opacity:0,scale:1,duration:1}),gsap.to(e,{opacity:0,duration:2,onComplete:()=>{t.map.setMaxBounds(t.bounds),t.map.setMinZoom(Math.max(0,t.wantedZoom-1)),e.remove()}})})}i.map&&fetch("/wp-json/smarttouch-posttypes/stim_maps",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}).then(t=>t.json()).then(({m:s,lots:i,details:o,styles:r})=>{if(s&&L){if(t.bounds=new L.LatLngBounds(L.latLng(s.placement.south,s.placement.west),L.latLng(s.placement.north,s.placement.east)),t.center=t.bounds.getCenter(),t.map=L.map(e,{minZoom:0,maxZoom:19,center:t.center,rotate:!!s.rotate,rotateControl:!1,bearing:s.rotate,zoom:a?10:15,zoomSnap:.1,zoomDelta:.1,attributionControl:!1}),t.wantedZoom=t.map.getBoundsZoom(t.bounds,!1),a||(t.map.setMaxBounds(t.bounds),t.map.setMinZoom(Math.max(0,t.wantedZoom-1)),t.map.setView(t.center,t.wantedZoom-.1)),L.tileLayer("https://{s}.smarttouchinteractive.com/stim/satellite/{z}/{x}/{y}.webp",{className:"satellite",tileSize:256,maxZoom:19,subdomains:["cdnproxy1","cdnproxy2","cdnproxy3","cdnproxy4","cdnproxy5"]}).addTo(t.map),s.vectormap){const e=(new DOMParser).parseFromString(s.vectormap,"image/svg+xml").documentElement;L.svgOverlay(e,t.bounds).addTo(t.map)}if(r.length){const t=document.createElement("style");t.innerHTML="#"+e+" "+r.join("\n#"+e+" "),t.innerHTML=t.innerHTML.replaceAll("#"+e+" svg.shape",'.imap-details[data-map="'+e+'"] svg.shape'),document.head.appendChild(t)}document.querySelectorAll("#"+e+' g[data-name="Lots"] > *[data-name]').forEach(function(t){t.addEventListener("click",function(s){var a=t.getAttribute("data-postid");
1a&&i.forEach(t=>{t.details&&t.post_id==a&&fetch("/wp-json/smarttouch-posttypes/stim_lot",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({lot:t,details:o})}).then(t=>t.json()).then(t=>{const s=document.createElement("div");s.innerHTML=`\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="smarttouch-popup standard-popup" style="background:rgba(0,0,0,0.75);">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="smarttouch-content imap-details">${t.html}</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="smarttouch-close"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t`;const i=s.querySelector(".smarttouch-popup"),a=s.querySelector(".imap-details");a.setAttribute("data-map",e),a.addEventListener("click",t=>t.stopPropagation());const o=t=>{i.classList.remove("active");let e=getComputedStyle(i).getPropertyValue("transition-duration");e=e.includes("ms")?parseInt(e):Math.round(1e3*parseFloat(e)),setTimeout(()=>{i.remove()},e)};i.addEventListener("click",o),i.querySelector(".smarttouch-close").addEventListener("click",o);let r=document.querySelector(".wp-site-blocks");r||(r=document.body),r.appendChild(i),setTimeout(()=>{i.classList.add("active")},1),i.querySelectorAll("svg.shape").forEach(t=>{const e=t.querySelector("path");if(!e)return;const s=e.getBBox(),i=parseFloat(window.getComputedStyle(e).strokeWidth);s.x=Math.round(s.x-i),s.y=Math.round(s.y-i),s.width=Math.ceil(s.width+2*i),s.height=Math.ceil(s.height+2*i),e.style.strokeWidth=i/2+"px",t.setAttribute("viewBox",`${s.x} ${s.y} ${s.width} ${s.height}`)})})})})})}})}),e};window.location.hash&&(()=>{let t=document.querySelector(".wp-site-blocks > header");t||(t={offsetHeight:0});let e=document.querySelector(window.location.hash);if(!e)return;const s=e.closest(".is-style-section");s&&(e=s);let i=!1;const a=()=>{if(i)return;if(!globalThis.enableScrollJump)return;const a=window.getComputedStyle(e),o=e.getBoundingClientRect(),r=parseInt(a.marginTop)||0,l=parseInt(a.paddingTop)||0,n=t.offsetHeight+(s&&l||r),d=window.scrollY+parseInt(o.top)-n;Math.abs(window.scrollY-d)>1&&window.scrollTo({top:d,behavior:"instant"})},o=()=>{i=!0,clearInterval(r),window.removeEventListener("wheel",o),window.removeEventListener("touchstart",o),window.removeEventListener("keydown",o)};window.addEventListener("wheel",o,{passive:!0}),window.addEventListener("touchstart",o,{passive:!0}),window.addEventListener("keydown",o,{passive:!0});const r=setInterval(a,50);a(),setTimeout(()=>{o()},5e3)})(),new MutationObserver((t,e)=>{for(const e of t)c(document)}).observe(document.body,{childList:!0,subtree:!0})})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.