1import{S as u,d as c,b as i}from"./page.js";c.registerPlugin(i);const l="advertisers",a="features";function n(){return new URLSearchParams(window.location.search).get(a)==="publishers"?"publishers":l}function o(e){e&&requestAnimationFrame(()=>{e.scrollIntoView({behavior:"smooth",block:"start"})})}function h(e){const t=e.target;return{feature_name:t.closest("[data-feature-name]")?.dataset.featureName??"",element_label:t.dataset.label}}function g(){return{features:n(),ctaClickCount:0,sectionSwitchCountSession:0,navToggleTrigger:null,updateSearchParam(e){const t=new URL(window.location.href);t.searchParams.get(a)!==e&&(t.searchParams.set(a,e),window.history.replaceState(null,"",t))},removeHash(){window.history.replaceState(null,"",window.location.pathname+window.location.search)},scrollToRoot(){o(this.$root)},async scrollToHash(){const{hash:e}=window.location;e&&(await document.fonts.ready,document.readyState!=="complete"&&await new Promise(t=>{window.addEventListener("load",()=>t(),{once:!0})}),this.$nextTick(()=>{i.refresh(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{o(document.querySelector(e))})})}))},navToggle(){this.navToggleTrigger?.kill(),this.navToggleTrigger=i.create({trigger:"#toggle",start:"top 40px",pin:!0,pinSpacing:!1,end:"bottom-=128 top",endTrigger:"#product-release-main",scrub:1,invalidateOnRefresh:!0})},toggleFeatures(e){this.features!==e&&(this.removeHash(),this.updateSearchParam(e),this.navToggleTrigger?.kill(),this.navToggleTrigger=null,this.features=e,this.$nextTick(()=>{window.dispatchEvent(new CustomEvent("features:changed",{detail:{value:e}}))}),this.sectionSwitchCountSession++,this.$track.event("Section Viewed",{section_name:e,section_switch_count_session:this.sectionSwitchCountSession}),this.$nextTick(()=>{this.featureSplides();const t=this.$root.querySelector('[data-features="'+e+'"]');if(!t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.navToggle(),this.scrollToRoot()})});return}t.addEventListener("transitionend",()=>{requestAnimationFrame(()=>{this.navToggle(),this.scrollToRoot()})},{once:!0})}))},animateHero(){c.timeline().from(".hero-title",{opacity:0,y:10,duration:.6,ease:"power2.out"},"+=0.5").to(".hero-title",{skewX:-7,duration:.75,ease:"power2.out"},"+=0.2")},featureSplides(){document.querySelectorAll("[data-feature-id] .splide").forEach(e=>{if(e.splideInstance||e.closest('[style*="display: none"]'))return;const t=Number(e.dataset.length??0),r=new u(e,{gap:48,drag:!0,flickPower:400,flickMaxPages:1,padding:24,perMove:1,perPage:1,speed:400,easing:"cubic-bezier(0.25, 1, 0.5, 1)",touchAngle:30,waitForTransition:!1,releaseWheel:!0,fixedWidth:t===2?274:194,breakpoints:{768:{padding:0,destroy:!0}}});r.mount(),r.refresh(),e.splideInstance=r})},amplitudeCtaClicked(e){const r=e.currentTarget?.href??"",s=h(e);r.startsWith("https://app.awin.com/")?(this.ctaClickCount++,this.$track.event("UI CTA Clicked",{feature_type:this.features,...s,cta_click_count_session:this.ctaClickCount})):r.startsWith("https://demo.awin.com/")&&this.$track.event("Demo Clicked",{feature_type:this.features,...s})},init(){const e=this.$root;Alpine.store("document").name="SR - Summer 2026",this.updateSearchParam(this.features),this.animateHero(),this.featureSplides(),this.$nextTick(()=>{this.navToggle(),this.scrollToHash()}),this.$track.event("Page Viewed",{feature_type:this.features}),this.$track.outboundEvent(e,"Outbound Link Clicked"),this.$watch("features",(t,r)=>{}),window.addEventListener("popstate",()=>{this.features=n()})}}}export{g as default};
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.