1var module_179161542567=function(){!function(){const g=((w=window).__scriptCache=w.__scriptCache||new Map,w);var w;window.__loadScriptOnce=function(src){if(g.__scriptCache.has(src))return g.__scriptCache.get(src);const p=new Promise((resolve,reject)=>{const s=document.createElement("script");s.src=src,s.async=!0,s.onload=()=>resolve(),s.onerror=reject,document.head.appendChild(s)});return g.__scriptCache.set(src,p),p},window.__idle=function(fn,timeout=1500){return"requestIdleCallback"in window?requestIdleCallback(fn,{timeout:timeout}):setTimeout(fn,0)},window.__io=function(el,cb,rootMargin="200px"){if(!("IntersectionObserver"in window))return cb(),{disconnect(){}};const io=new IntersectionObserver(entries=>{entries.some(e=>e.isIntersecting)&&(cb(),io.disconnect())},{rootMargin:rootMargin});return io.observe(el),io},window.__rafThrottle=function(fn){let ticking=!1;return function(...args){ticking||(ticking=!0,requestAnimationFrame(()=>{ticking=!1,fn.apply(this,args)}))}}}();class StandardContent{#instance="";#urlParams={};#textareaMaxLength=500;constructor(options){options.instance&&(this.#instance=options.instance)}Init(){window.hdnz?.Utilities||console.warn("StandardContent requires hdnz.Utilities"),window.hdnz?.Overlay||console.warn("StandardContent requires hdnz.Overlay"),window.hdnz?.Modal||console.warn("StandardContent requires hdnz.Modal"),this.#urlParams=hdnz?.Utilities?.GetUrlVars?.()||{},__idle(()=>{this.StandardContentSetup(),this.#maybeInitCarouselsLazy()},1200)}#maybeInitCarouselsLazy(){const root=document.getElementById(this.#instance);if(!root)return;const columns=root.querySelectorAll(".js-carousel-row-column-item");columns.length&&columns.forEach(col=>{__io(col,()=>this.#initSingleCarouselColumn(col))})}#initSingleCarouselColumn(swiperColumn){const colId=swiperColumn.dataset.id;if(!colId)return;const swiperEl=swiperColumn.querySelector(`#${colId}-swiper`);if(!swiperEl)return;const swiperId=swiperEl.id,{direction:direction,paginationeffect:paginationeffect,itemsize:itemsize,autoplay:autoplay,interval:interval,showarrows:showarrows}=swiperEl.dataset,deviceDependentCSSMode=hdnz.Utilities.IsiOS();let loopSlides="scrollbar"!==paginationeffect;if(swiperEl.querySelectorAll(".carousel__list-image-item").length<=1)return;const opts={direction:direction,cssMode:!1,loop:loopSlides,slidesPerView:1,spaceBetween:8,centeredSlides:!1,mousewheel:!1,keyboard:!0,grabCursor:!0,scrollbar:{el:".js-swiper-scrollbar",draggable:!0},pagination:{el:`#${swiperId} .js-pagination`,clickable:"true"===String(showarrows)||"true"===showarrows,dynamicBullets:"dynamic_pagination"===paginationeffect,type:"bullets"},navigation:{nextEl:`#${swiperId} .js-arrow-next`,prevEl:`#${swiperId} .js-arrow-prev`},breakpoints:{120:{cssMode:deviceDependentCSSMode,direction:"horizontal"},468:{cssMode:!1},868:{direction:direction}},observer:!0,observeParents:!0,updateOnWindowResize:!0};hdnz.Utilities?.ToBool?.(autoplay)&&(opts.autoplay={delay:parseInt(interval||"0",10)||3e3}),requestAnimationFrame(()=>{const swiper=new Swiper(`#${swiperId}`,opts);if(swiperColumn.querySelectorAll(".js-arrow-next, .js-arrow-prev,.swiper-pagination-bullet").forEach(el=>el.removeAttribute("tabindex")),"ResizeObserver"in window){const throttledUpdate=__rafThrottle(()=>swiper.update());new ResizeObserver(throttledUpdate).observe(swiperEl)}else{const onResize=__rafThrottle(()=>swiper.update());window.addEventListener("resize",onResize)}})}StandardContentSetup(){const root=document.getElementById(this.#instance);if(!root)return;root.querySelectorAll("form").forEach(form=>{const formId=form.id||form.getAttribute("data-form-id")||"";this.AddCharacterCountToTextArea(formId,form),this.CheckForUploadFields(formId,form),this.CheckForUTM(formId,form)});root.querySelectorAll(".custom-video__target-container").forEach(container=>{const{src:src,type:type,id:id}=container.dataset;src&&type&&id&&__io(container,()=>{"youtube"===type?this.#RenderYoutubeVideo(src,id):"vimeo"===type&&this.#RenderVimeoVideo(src,id)})})}#RenderYoutubeVideo(src,id){const videoIdMatch=src.match(/(?:youtube\.com\/(?:[^/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?/\s]{11})/);if(!videoIdMatch)return void console.error("Invalid YouTube URL");const videoId=videoIdMatch[1],containerId=`custom-video__target-inner-${id}`;if(!document.getElementById(containerId))return void console.error("YouTube container not found:",containerId);(window.YT?.Player?Promise.resolve():(window.__ytReadyPromise||(window.__ytReadyPromise=new Promise(resolve=>{window.onYouTubeIframeAPIReady=()=>resolve(),__loadScriptOnce("https://www.youtube.com/iframe_api")})),window.__ytReadyPromise)).then(()=>{new YT.Player(containerId,{height:"400",width:"100%",videoId:videoId,playerVars:{playsinline:1}})})}
1#RenderVimeoVideo(videoLink,id){const videoIdMatch=videoLink.match(/(?:vimeo\.com\/|video\/)(\d+)/);if(!videoIdMatch)return void console.error("Invalid Vimeo URL");const videoId=videoIdMatch[1],containerId=`custom-video__target-inner-${id}`,container=document.getElementById(containerId);if(!container)return void console.error("Container not found for ID:",id);(window.Vimeo?.Player?Promise.resolve():__loadScriptOnce("https://player.vimeo.com/api/player.js")).then(()=>{new Vimeo.Player(container,{id:videoId,width:container.offsetWidth})})}CheckForUploadFields(formId,formEl){const scope=this.#getFormScope(formId,formEl);if(!scope)return;scope.querySelectorAll("input[type='file']").forEach(field=>{const lbl=scope.querySelector(`label[for='${field.id}']`);lbl&&lbl.setAttribute("data-before","Choose file..."),field.addEventListener("change",function(){const filename=(this.value||"").split("\\").pop(),label=scope.querySelector(`label[for='${this.id}']`);label&&label.setAttribute("data-before",filename||"Choose file...")})})}CheckForUTM(formId,formEl){const scope=this.#getFormScope(formId,formEl);if(!scope)return;const params=this.#urlParams&&Object.keys(this.#urlParams).length?this.#urlParams:hdnz?.Utilities?.GetUrlVars?.()||{};Object.keys(params).length&&["utm_source","utm_medium","utm_campaign","utm_term","utm_content"].forEach(name=>{const val=params[name];if(null==val)return;const input=scope.querySelector(`input[name='${name}']`);input&&(input.value=val)})}AddCharacterCountToTextArea(formId,formEl){const scope=this.#getFormScope(formId,formEl);if(!scope)return;scope.querySelectorAll("textarea.hs-input").forEach(field=>{field.maxLength=this.#textareaMaxLength;const update=()=>this.UpdateTextAreaCharaterCount(field);field.addEventListener("input",update),field.addEventListener("focus",update),field.addEventListener("blur",function(){const wrap=field.closest(".input");wrap&&wrap.classList.remove("character-counter")})})}UpdateTextAreaCharaterCount(field){const wrap=field.closest(".input");if(!wrap)return;wrap.classList.add("character-counter");const counterText=`${field.value.length}/${this.#textareaMaxLength} chars.`;wrap.setAttribute("countercontent",counterText)}#getFormScope(formId,formEl){if(formEl)return formEl;const root=document.getElementById(this.#instance);return root&&(root.querySelector(`form[data-form-id='${formId}']`)||root.querySelector(`#${formId}`))||null}}DomReady(()=>{Array.from(document.querySelectorAll('[id^="StandardContent_"]')).forEach(obj=>{const options={instance:obj.id};window.hdnz=window.hdnz||{},window.hdnz[options.instance]||(window.hdnz[options.instance]=new StandardContent(options),window.hdnz[options.instance].Init())})})}(); 2//# sourceURL=https://43976934.fs1.hubspotusercontent-ap1.net/hubfs/43976934/hub_generated/module_assets/1/179161542567/1780363265579/module_content-master.js
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.