<!-- Slider Pro from Will-Myers.com --> <script> /** * Minified by jsDelivr using Terser v5.39.0. * Original file: /gh/willmyerscode/[email protected]/sectionSlider.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ class WMSectionSlider{static emitEvent(e,t={},i=document){if(!e)return;let n=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:t});return i.dispatchEvent(n)}constructor(e,t){this.el=e,this.initEl=this.el.querySelector('[data-wm-plugin="section-slider"]'),this.settings=t,this.activeSection=null,this.init()}init(){this.setHeaderHeightVariable(),this.initSwiper(),this.bindEvents()}bindEvents(){this.addResizeEventListener(),this.addDOMContentLoadedEventListener(),this.addSlideChangeEventListener(),this.addAfterInitEventListener(),this.addFuncHeaderColorThemeMatch(),this.addFuncSliderColorThemeMatch()}addResizeEventListener(){window.addEventListener("resize",(()=>{this.setHeaderHeightVariable()}))}addDOMContentLoadedEventListener(){}addLoadEventListener(){}addAfterInitEventListener(){this.settings.restartBackgroundVideos?this.addFuncRestartBackgroundVideos():this.settings.pauseInactiveBackgroundVideos&&this.addFuncPauseInactiveBackgroundVideos(),this.addFuncRandomizeSlides()}addSlideChangeEventListener(){this.swiper.on("activeIndexChange",(()=>{this.activeSection=this.swiper.slides[this.swiper.activeIndex].querySelector(".page-section"),WMSectionSlider.emitEvent("wmSectionSlider:slideChange",{container:this.el,activeSection:this.activeSection})}))}setHeaderHeightVariable(){const e=document.getElementById("header");if(e){const t=e.offsetHeight;this.el.style.setProperty("--header-height",`${t}px`)}}addFuncPauseInactiveBackgroundVideos(){const e=this.el;let t;const i=async e=>{try{await e.play()}catch(e){"AbortError"!==e.name&&console.error("Error playing video:",e)}},n=async()=>{clearTimeout(t),t=setTimeout((async()=>{const e=this.swiper.slides,t=this.swiper.activeIndex;for(let n=0;n<e.length;n++){const s=e[n].querySelector(".sqs-video-background-native video");s&&(n===t?await i(s):s.pause())}}),50)};this.swiper.on("realIndexChange",n);e.querySelectorAll('.section-border [data-controller="VideoBackgroundNative"]').forEach((e=>{const t=new MutationObserver((async e=>{for(const i of e)if("childList"===i.type){const e=i.addedNodes[0];if(e&&e.matches(".sqs-video-background-native video")){n(),t.disconnect();break}}}));t.observe(e,{childList:!0,subtree:!0})})),n()}addFuncRestartBackgroundVideos(){this.swiper.on("realIndexChange",(()=>{this.swiper.slides.forEach(((e,t)=>{const i=e.querySelector(".sqs-video-background-native video");i&&t===this.swiper.activeIndex&&(i.currentTime=0,i.play())}))})),this.swiper.on("transitionEnd",(()=>{this.swiper.slides.forEach(((e,t)=>{const i=e.querySelector(".sqs-video-background-native video");i&&(t===this.swiper.activeIndex||(i.pause(),i.currentTime=0))}))}))}addFuncRandomizeSlides(){if(!this.initEl.dataset.randomize)return;const e=this.swiper.slides.length,t=Math.floor(Math.random()*e);this.swiper.slideTo(t)}addFuncHeaderColorThemeMatch(){const e=this.el.matches("#sections > *:first-child"),t="true"===window.Static?.SQUARESPACE_CONTEXT?.tweakJSON["tweak-fixed-header"];e&&this.settings.headerColorThemeMatch&&!t&&this.swiper.on("activeIndexChange",(()=>{const e=this.activeSection.dataset.sectionTheme,t=document.getElementById("header");t&&(t.dataset.sectionTheme=e)}))}addFuncSliderColorThemeMatch(){this.settings.colorThemeMatch&&this.swiper.on("activeIndexChange",(()=>{const e=this.activeSection.dataset.sectionTheme;this.swiper.el.dataset.sectionTheme=e}))}initSwiper(){const e=this.initEl.dataset,t=/iPad|iPhone|iPod/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,i=o(e.effect)||"slide",n=e.iosFallbackEffect||this.settings.coverflow?.iosFallbackEffect,s=t&&"coverflow"===i&&n?n:i;function o(e){if("true"===e)return!0;if("false"===e)return!1;const t=parseFloat(e);return isNaN(t)||t.toString()!==e?e:t}this.swiper=new Swiper(this.el,{speed:e.transitionSpeed||400,navigation:{nextEl:this.el.querySelector(".navigation-button-next"),prevEl:this.el.querySelector(".navigation-button-prev")},loop:!e.loop||o(e.loop),rewind:o(e.rewind)||!1,autoplay:function(e,t){const i=o(e.autoplayTimer),n=!e.loop||o(e.loop),s=!n;if(!i)return!1;return{delay:i,stopOnLastSlide:s,disableOnInteraction:o(e.autoplayDisableOnInteraction)||t.autoplayDisableOnInteraction||!1}}(e,this.settings),autoHeight:!e.fixedHeight||!o(e.fixedHeight),crossFade:!1,coverflowEffect:function(e,t,i){if("coverflow"!==i)return!1;return{depth:t.coverflow?.depth??100,rotate:t.coverflow?.rotate??50,scale:t.coverflow?.scale??.9,slideShadows:t.coverflow?.slideShadows??!0}}(0,this.settings,s),effect:s,pagination:function(e,t,i){return{el:e.el.querySelector(".swiper-pagination"),clickable:o(t.paginationClickable)||!0,dynamicBullets:o(t.dynamicBullets)||!1,renderBullet:i[o(t.renderBullet)]||((e,t)=>'<span class="numbered-bullet '+t+'">'+(e+1)+"</span>")}}(this,e,this.settings),slidesPerView:o(e.slidesPerView)||1,centeredSlides:o(e.centeredSlides)||!1,spaceBetween:e.spaceBetween||0,breakpoints:{0:{slidesPerView:o(e.mobileSlidesPerView)||1,centeredSlides:!!e.centeredSlides&&(1!==o(e.mobileSlidesPerView)&&o(e.centeredSlides)),spaceBetween:o(e.mobileSpaceBetween)||o(e.spaceBetween)||0},767:{slidesPerView:o(e.tabletSlidesPerView)||o(e.slidesPerView)||1,centeredSlides:!!e.centeredSlides&&(1!==o(e.tabletSlidesPerView)&&o(e.centeredSlides)),spaceBetween:o(e.tabletSpaceBetween)||o(e.spaceBetween)||0},1024:{slidesPerView:o(e.slidesPerView)||1,centeredSlides:!!e.centeredSlides&&(1!==o(e.slidesPerView)&&o(e.centeredSlides)),spaceBetween:o(e.spaceBetween)||0}}})}_parseAttributeValue(e){if("true"===e)return!0;if("false"===e)return!1;const t=parseFloat(e);return isNaN(t)||t.toString()!==e?e:t}}!function(){class e{static deepMerger(...e){function t(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function i(e,n){for(let[s,o]of Object.entries(n)){let n=t(o);"object"===n||"array"===n?(void 0===e[s]&&(e[s]="object"===n?{}:[]),i(e[s],o)):e[s]=o}}if(0===e.length)return{};let n={};return e.forEach((e=>{i(n,e)})),n}static emitEvent(e,t={},i=document){if(!e)return;let n=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:t});return i.dispatchEvent(n)}static parseAttributeValue(e){if("true"===e)return!0;if("false"===e)return!1;const t=parseFloat(e);return isNaN(t)||t.toString()!==e?e:t}}class t{static siteBundleSelector='script[src*="https://static1.squarespace.com/static/vta"]';static async reloadSiteBundle(){const e=document.querySelector(t.siteBundleSelector);await t.loadScript(e.src)}static async fromElements(e){const i=new Set,n=[];e.forEach((e=>{if(e.querySelectorAll("script").forEach((e=>{e.src?i.add(e.src):e.src||"application/json"===e.type||n.push(e.textContent||e.innerText)})),e.querySelector(".sqs-video-background-native")||e.querySelector(".page-section.user-items-list-section")||e.querySelector(".page-section.gallery-section")||e.querySelector(".background-fx-canvas")){const e=document.querySelector(t.siteBundleSelector);i.add(e.src)}})),await Promise.all(Array.from(i).map((e=>this.loadScript(e)))),n.forEach((e=>{this.executeInlineScript(e)}))}static loadScript(e,i=!0){return new Promise(((n,s)=>{document.querySelector(t.siteBundleSelector)&&document.querySelector(t.siteBundleSelector).remove();const o=document.createElement("script");o.id="reloaded",o.src=e,o.async=i,o.onload=n,o.onerror=s,document.body.appendChild(o)}))}static executeInlineScript(e){try{new Function(e)()}catch(e){console.error("Error executing inline script:",e)}}static async duplicateRootCssRule(){if(!document.querySelector("style#wm-root-theme-duplicate"))try{const e=await fetch("/site.css"),t=await e.text(),i=t.split("}").map((e=>e.trim()+"}")).filter((e=>e.startsWith(":root")));if(i.length<2)return void console.error("Second :root rule not found");const n=i[1].replace(":root",'[data-section-theme="white"]'),s=document.createElement("style");s.textContent+=n,s.dataset.description="Duplicated of the :root Color Theme styles",s.id="wm-root-theme-duplicate",document.head.prepend(s)}catch(e){console.error("Error fetching or duplicated :root CSS rule",e)}}static loadShapeBlocks(e){if(!document.querySelector("style#wm-shape-block-styles"))for(let i of e)if(i.querySelector('[data-definition-name="website.components.shape"]')){t();break}function t(){const e=document.createElement("style");e.id="wm-shape-block-styles",e.type="text/css",e.appendChild(document.createTextNode('\n .sqs-block[data-definition-name="website.components.shape"] svg.sqs-shape {\n fill: var(--shape-block-background-color);\n stroke: var(--shape-block-stroke-color);\n }\n .sqs-block[data-definition-name="website.components.shape"] .sqs-shape-rectangle {\n background: var(--shape-block-background-color);\n border-color: var(--shape-block-stroke-color);\n }\n .sqs-block[data-definition-name="website.components.shape"] .sqs-block-content,\n .sqs-block[data-definition-name="website.components.shape"] .sqs-block-alignment-wrapper {\n height: 100%;\n }\n .sqs-block[data-definition-name="website.components.shape"] .sqs-block-alignment-wrapper {\n display: flex;\n }\n .sqs-block[data-definition-name="website.components.shape"] .sqs-shape {\n display: block;\n position: absolute;\n overflow: visible;\n }\n .sqs-block[data-definition-name="website.components.shape"] .sqs-shape-block-container {\n position: relative;\n color: var(--shape-block-dropshadow-color);\n }')),document.head.appendChild(e)}}}function i(){document.querySelectorAll(".wm-section-slider").forEach((e=>{e.swiper?.destroy(),e.outerHTML=e.querySelector(".swiper-wrapper").innerHTML})),document.querySelectorAll(".swiper-slide").forEach((e=>{e.outerHTML=e.innerHTML})),t.reloadSiteBundle()}function n(){const e=new MutationObserver((t=>{t.forEach((t=>{if("class"===t.attributeName){document.body.classList.contains("sqs-edit-mode-active")&&(i(),e?.disconnect())}}))}));e.observe(document.body,{attributes:!0})}async function s(){let i=document.querySelectorAll('[data-wm-plugin="section-slider"]:not([data-loading-state])');if(!i.length)return;const n=window[o].settings;t.duplicateRootCssRule(),i.forEach((t=>{if(t.closest("section.wm-section-slider")||t.closest("body.sqs-edit-mode-active"))return;t.setAttribute("data-loading-state","initializing");const i=function(t,i){const n=t.closest(".page-section"),s=t.dataset.slides||3,o=!t.dataset.pagination||e.parseAttributeValue(t.dataset.pagination),a=!t.dataset.navigation||e.parseAttributeValue(t.dataset.navigation),r=!!t.dataset.static&&e.parseAttributeValue(t.dataset.static),c=t.id,d=n.dataset.sectionTheme,l=window.Static?.SQUARESPACE_CONTEXT?.tweakJSON;n.insertAdjacentHTML("beforebegin",`<section \n data-section-theme="${d}"\n data-header-transparent="${l&&l["tweak-transparent-header"]}"\n class="swiper page-section wm-section-slider"${c?` id="${c}"`:""}>\n <div class="swiper-wrapper">\n </div>\n ${o&&"inline"!==a?'<div class="swiper-pagination"></div>':""}\n ${a&&"inline"!==a?`<div class="navigation-wrapper">\n <div class="navigation-button-prev">\n <button>\n <div class="swiper-button-background"></div>\n ${i.prevIcon}\n </button>\n </div>\n <div class="navigation-button-next">\n <button>\n <div class="swiper-button-background"></div>\n ${i.nextIcon}\n </button>\n </div>\n </div>`:""}\n ${"inline"===a&&"inline"===o?`<div class="inline-navigation-wrapper">\n <div class="navigation-button-prev">\n <button>\n <div class="swiper-button-background"></div>\n ${i.prevIcon}\n </button>\n </div>\n <div class="swiper-pagination"></div>\n <div class="navigation-button-next">\n <button>\n <div class="swiper-button-background"></div>\n ${i.nextIcon}\n </button>\n </div>\n </div>`:""}\n </section>`);const u=n.previousElementSibling,p=u.querySelector(".swiper-wrapper");let h=n;for(let e=0;e<s&&h;e++){if(0==e&&"background"==r)u.dataset.static="background",h.classList.add("static-slide"),u.appendChild(h);else if(0==e&&"content"===r)u.dataset.static="content",h.classList.add("static-slide"),u.prepend(h);else{const e=document.createElement("div");e.classList.add("swiper-slide"),e.appendChild(h),p.appendChild(e)}h=u.nextElementSibling}return u}(t,n);t.wmSectionSlider=new WMSectionSlider(i,n),t.setAttribute("data-loading-state","initialized"),window[o].items.push(i)})),e.emitEvent(`${o}:ready`)}const o="wmSectionSlider",a={pauseInactiveBackgroundVideos:!0,restartBackgroundVideos:!1,headerColorThemeMatch:!0,colorThemeMatch:!1,autoplayDisableOnInteraction:!1,prevIcon:'<svg class="user-items-list-carousel__arrow-icon" viewBox="0 0 44 18" xmlns="http://www.w3.org/2000/svg">\n <path class="user-items-list-carousel__arrow-icon-foreground user-items-list-carousel__arrow-icon-path" d="M9.90649 16.96L2.1221 9.17556L9.9065 1.39116"></path>\n <path class="user-items-list-carousel__arrow-icon-foreground user-items-list-carousel__arrow-icon-path" d="M42.8633 9.18125L3.37868 9.18125"></path>\n </svg>',nextIcon:'\n <svg class="user-items-list-carousel__arrow-icon" viewBox="0 0 44 18" xmlns="http://www.w3.org/2000/svg">\n <path class="user-items-list-carousel__arrow-icon-foreground user-items-list-carousel__arrow-icon-path" d="M34.1477 1.39111L41.9321 9.17551L34.1477 16.9599"></path>\n <path class="user-items-list-carousel__arrow-icon-foreground user-items-list-carousel__arrow-icon-path" d="M1.19088 9.16982H40.6755"></path>\n </svg>',coverflow:{depth:100,rotate:50,scale:.9,slideShadows:!0,iosFallbackEffect:!1}},r=window.wmSectionSliderSettings||{};window[o]={init:()=>{s(),function(){const e=window[o].items;for(let i of e)(i.querySelector(".sqs-video-background-native")||i.querySelector(".page-section.user-items-list-section")||i.querySelector(".page-section.gallery-section")||i.querySelector(".background-fx-canvas"))&&t.reloadSiteBundle()}()},items:[]},window[o].settings=e.deepMerger({},a,r),window[o].scriptLoader=t,window[o].utilities=e,window[o].deconstruct=i,document.ready?(window[o].init(),window.self!==window.top&&n()):window.addEventListener("DOMContentLoaded",(()=>{window[o].init(),window.self!==window.top&&n()}))}(); //# sourceMappingURL=/sm/1bd3e8e889a27a350c9905ea8802b537a647333bb7f59c3b56f9b6256676adf9.map </script>