1console.log(`Windward v${windward.version}`);const waitForEl=function(selector,callback){if(jQuery(selector).length){callback(jQuery(selector))}else{setTimeout(function(){waitForEl(selector,callback)},100)}};function protectDreamdataDataLayerPush(){if(!document.querySelector('.c-form-hubspot')||!window.dataLayer||typeof window.dataLayer.push!=='function'){return} 2const wrappedPush=window.dataLayer.push;if(wrappedPush.windwardCircularJsonGuard){return} 3function isCircularJsonError(error){const message=error&&error.message?String(error.message):'';return/circular|cyclic/i.test(message)} 4function stringifyWithCircularFallback(originalStringify,context,value,replacer,space){try{return originalStringify.call(context,value,replacer,space)}catch(error){if(!isCircularJsonError(error)){throw error} 5const seen=new WeakSet();return originalStringify.call(context,value,function(key,currentValue){if(typeof replacer==='function'){currentValue=replacer.call(this,key,currentValue)} 6if(typeof Node!=='undefined'&¤tValue instanceof Node){return `[DOM ${currentValue.nodeName || 'Node'}]`} 7if(currentValue&&typeof currentValue==='object'){if(seen.has(currentValue)){return'[Circular]'} 8seen.add(currentValue)} 9return currentValue},space)}} 10function guardedDataLayerPush(){const originalStringify=JSON.stringify;JSON.stringify=function(value,replacer,space){return stringifyWithCircularFallback(originalStringify,this,value,replacer,space)};try{return wrappedPush.apply(this,arguments)}finally{JSON.stringify=originalStringify}} 11guardedDataLayerPush.windwardCircularJsonGuard=!0;guardedDataLayerPush.windwardWrappedPush=wrappedPush;window.dataLayer.push=guardedDataLayerPush} 12protectDreamdataDataLayerPush();const dreamdataDataLayerGuardTimer=window.setInterval(protectDreamdataDataLayerPush,250);window.setTimeout(()=>window.clearInterval(dreamdataDataLayerGuardTimer),120000);document.addEventListener('pointerdown',protectDreamdataDataLayerPush,!0);document.addEventListener('submit',protectDreamdataDataLayerPush,!0);function addHubSpotFormStyles(){if(window.hbsptStylesLoaded){return} 13let styles=['/wp-content/plugins/windward/assets/css/hs-forms.css?ver=1.2.4','/wp-content/themes/airfleet-optimized/dist/styles/blockTextLogosForm.css?ver=1717735661',];styles.forEach((url)=>{const link=document.createElement('link');link.rel='stylesheet';link.href=url;document.body.appendChild(link)});window.hbsptStylesLoaded=!0;waitForEl('.hbspt-form',($forms)=>{$forms.addClass('ww-hs-form ww-broken-css-hs-form')});console.log('â HubSpot forms styles loaded')} 14window.hbsptScriptLoading=!1;window.hbsptStylesLoaded=!1;window.hbspt={forms:{create:function(options){console.log('â³ Wait HubSpot forms create');waitHBSPTforms(options)},}};if(document.querySelector('[data-rocket-src="//js.hsforms.net/forms/embed/v2.js"]')){addHubSpotFormStyles()} 15window.windwardHubspotFormQueue=[];window.windwardHubspotFormReadyToLoad=!1;window.windwardHubspotFormObserverStarted=!1;function scheduleHubSpotForm(options){if(!window.windwardHubspotFormQueue.some((item)=>item.formId===options.formId)){window.windwardHubspotFormQueue.push(options)} 16if(window.windwardHubspotFormObserverStarted){return} 17window.windwardHubspotFormObserverStarted=!0;const forms=document.querySelectorAll('.ww-hs-form, .c-form-hubspot');let observer=null;let idleTimer=null;function startForms(){if(window.windwardHubspotFormReadyToLoad){return} 18window.windwardHubspotFormReadyToLoad=!0;if(observer){observer.disconnect()} 19if(idleTimer){clearTimeout(idleTimer)} 20const queue=window.windwardHubspotFormQueue.splice(0);queue.forEach((formOptions)=>waitHBSPTforms(formOptions))} 21if('IntersectionObserver' in window){observer=new IntersectionObserver((entries)=>{if(entries.some((entry)=>entry.isIntersecting)){startForms()}},{rootMargin:'600px 0px'});forms.forEach((form)=>observer.observe(form))} 22function startFromFormInteraction(event){if(event.target.closest&&event.target.closest('.ww-hs-form, .c-form-hubspot')){startForms()}} 23document.addEventListener('pointerdown',startFromFormInteraction,{passive:!0});document.addEventListener('focusin',startFromFormInteraction);window.addEventListener('load',()=>{idleTimer=setTimeout(startForms,15000)},{once:!0})} 24function waitHBSPTforms(options){console.log(`${window.hbspt.forms.create.length === 1 ? 'ð' : 'â ' } HubSpot forms scripts ${window.hbspt.forms.create.length === 1 ? 'loading' : 'loaded' }`);if(window.hbspt.forms.create.length===1&&!window.windwardHubspotFormReadyToLoad){scheduleHubSpotForm(options);return} 25if(document.querySelector('[src="//js.hsforms.net/forms/embed/v2.js"]')){addHubSpotFormStyles()} 26if(window.hbspt.forms.create.length===1){if(!window.hbsptScriptLoading){window.hbsptScriptLoading=!0;let script=document.createElement('script');script.async=!0;script.src='https://js.hsforms.net/forms/v2.js?ver=1.2.4';document.body.appendChild(script)} 27setTimeout(()=>{waitHBSPTforms(options)},100)}else{addHubSpotFormStyles();const hsScripts=document.querySelectorAll('.ww-hs-form script');if(hsScripts.length){console.log('â HubSpot forms inline script found');
27hsScripts.forEach((script)=>{if(script.innerText.includes(options.formId)){let str='<script>hbspt.forms.create({';Object.keys(options).forEach((key)=>{str+=`${key}: "${options[key]}",`});str+='});</script>';let range=document.createRange();let documentFragment=range.createContextualFragment(str);script.closest('div').appendChild(documentFragment)}})} 28const cFormHubspot=document.querySelectorAll('.c-form-hubspot');if(cFormHubspot.length){console.log('â HubSpot forms initialized');waitForEl('.hbspt-form',($forms)=>{$forms.addClass('ww-hs-form ww-broken-css-hs-form')});cFormHubspot.forEach((div)=>{if(div.dataset.formId===options.formId){window.hbspt.forms.create(options)}})}}} 29document.addEventListener('DOMContentLoaded',()=>{let hubspotForm=document.querySelector('.c-form-hubspot');if(hubspotForm){let hubSpotScriptsLoaded=!1;function loadHubSpotScripts(){if(!hubSpotScriptsLoaded){hubSpotScriptsLoaded=!0;const script=document.createElement('script');script.src=`${windward.assets}/dist/componentFormHubspot.js?v=2.240526.9`;script.async=!0;document.body.appendChild(script)} 30document.removeEventListener('scroll',loadHubSpotScripts);document.removeEventListener('mousemove',loadHubSpotScripts);document.removeEventListener('touchstart',loadHubSpotScripts);document.removeEventListener('click',loadHubSpotScripts)} 31function startHubSpotForms(){const hubSpotFormsObserver=new IntersectionObserver((entries,observer)=>{entries.forEach((form)=>{if(form.isIntersecting){if(!hubSpotScriptsLoaded){loadHubSpotScripts()} 32hubSpotFormsObserver.unobserve(form.target)}})});hubSpotFormsObserver.observe(hubspotForm)} 33startHubSpotForms();document.addEventListener('scroll',loadHubSpotScripts);document.addEventListener('mousemove',loadHubSpotScripts);document.addEventListener('touchstart',loadHubSpotScripts);document.addEventListener('click',loadHubSpotScripts)} 34if(document.querySelector('[src="//js.hsforms.net/forms/embed/v2.js"]')){addHubSpotFormStyles()}});document.addEventListener('DOMContentLoaded',()=>{const lazyLottie=document.querySelectorAll('dotlottie-player');function waitLottie(){if(typeof lazyLottie[0].play==='function'){startUpLottiePLayers()}else{setTimeout(()=>{waitLottie()},100)}} 35function loadLottieScripts(){window.removeEventListener('scroll',loadLottieScripts);document.removeEventListener('mousemove',loadLottieScripts);document.removeEventListener('touchstart',loadLottieScripts);document.removeEventListener('click',loadLottieScripts);const script=document.createElement('script');script.src=`${windward.assets}/dist/componentLottie.js`;script.async=!0;document.body.appendChild(script);waitLottie()} 36function startUpLottiePLayers(event){const lazyLottieObserver=new IntersectionObserver((entries,observer)=>{entries.forEach((player)=>{if(player.isIntersecting){player.target.load(player.target.dataset.src);player.target.closest('.c-media').classList.add('lottie-loaded');lazyLottieObserver.unobserve(player.target)}})});lazyLottie.forEach((lazyVideo)=>{lazyLottieObserver.observe(lazyVideo)})} 37if(lazyLottie.length){window.addEventListener('scroll',loadLottieScripts);document.addEventListener('mousemove',loadLottieScripts);document.addEventListener('touchstart',loadLottieScripts);document.addEventListener('click',loadLottieScripts)}});function pauseVideoInPupup(target){let modal=target.classList.contains('c-modal')?target:target.closest('.c-modal');if(modal){const iframe=modal.querySelector('iframe');if(iframe){iframe.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}','*')}}}(()=>{document.addEventListener('DOMContentLoaded',()=>{const dismissModal=document.querySelectorAll('[data-dismiss="modal"]');if(!dismissModal.length){return} 38dismissModal.forEach((dismiss)=>{dismiss.addEventListener('click',(event)=>{pauseVideoInPupup(event.target)})})})})();(()=>{const cModals=document.querySelectorAll('.c-modal');if(!cModals.length){return} 39cModals.forEach((modal)=>{modal.addEventListener('click',(event)=>{pauseVideoInPupup(event.target)})})})()
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.