PageSourceSearch

https://www.awin.com/assets/product-release-autumn-2026.k4TvIbP0.js

js awin.com collected 2026-09-24 08:24:20 UTC 4,547 bytes, 1 lines download raw bytes

1import{c as n}from"./index.CislQVYa.js";import{S as u,b as r,d}from"./page.js";d.registerPlugin(r);const h="advertisers",o="features";function a(){return new URLSearchParams(window.location.search).get(o)==="publishers"?"publishers":h}function c(e){e&&requestAnimationFrame(()=>{e.scrollIntoView({behavior:"smooth",block:"start"})})}function m(e){const t=e.target;return{feature_name:t.closest("[data-feature-name]")?.dataset.featureName??"",element_label:t.dataset.label}}function f(){return{features:a(),ctaClickCount:0,sectionSwitchCountSession:0,navToggleTrigger:null,handleResize:null,resizeTimer:null,timelineSplide:null,updateSearchParam(e){const t=new URL(window.location.href);t.searchParams.get(o)!==e&&(t.searchParams.set(o,e),window.history.replaceState(null,"",t))},removeHash(){window.history.replaceState(null,"",window.location.pathname+window.location.search)},scrollToRoot(){c(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(()=>{r.refresh(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{c(document.querySelector(e))})})}))},navToggle(){this.navToggleTrigger?.kill(),this.navToggleTrigger=r.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("SR - Autumn 2026 - Section Viewed",{section_name:e,section_switch_count_session:this.sectionSwitchCountSession},!1),this.$nextTick(()=>{const t=this.$root.querySelector(`[data-features="${e}"]`),i=()=>{this.featureSplides(),requestAnimationFrame(()=>{this.navToggle(),this.scrollToRoot()})};if(!t){requestAnimationFrame(()=>requestAnimationFrame(i));return}let s=!1;const l=()=>{s||(s=!0,i())};t.addEventListener("transitionend",l,{once:!0}),setTimeout(l,500)}))},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),i=new u(e,{mediaQuery:"min",gap:40,drag:!0,flickPower:400,flickMaxPages:1,arrows:!1,speed:400,easing:"cubic-bezier(0.25, 1, 0.5, 1)",touchAngle:30,waitForTransition:!1,releaseWheel:!0,fixedWidth:200,breakpoints:{...t===2&&{440:{drag:!1,perPage:2,fixedWidth:null}},...t===3&&{768:{drag:!1,perPage:3,fixedWidth:null}}}});i.mount(),i.refresh(),e.splideInstance=i})},resizeFeatureSplides(e=n()){document.querySelectorAll("[data-feature-id] .splide").forEach(t=>{if(t.closest('[style*="display: none"]'))return;const i=t.splideInstance;!i||i.state.is(5)||(i.options={padding:e})})},timelineSplideInit(){this.timelineSplide=new u(this.$refs.timeline,{mediaQuery:"min",gap:"var(--slide-gap)",padding:n(),perPage:2,pagination:!0,fixedWidth:200}).mount()},amplitudeCtaClicked(e){const i=e.currentTarget?.href??"",s=m(e);i.startsWith("https://app.awin.com/")?(this.ctaClickCount++,this.$track.event("SR - Autumn 2026 - UI CTA Clicked",{feature_type:this.features,...s,cta_click_count_session:this.ctaClickCount},!1)):i.startsWith("https://demo.awin.com/")&&this.$track.event("SR - Autumn 2026 - Demo Clicked",{feature_type:this.features,...s},!1)},init(){const e=this.$root;this.updateSearchParam(this.features),this.featureSplides(),this.handlePopstate=()=>{this.features=a()},window.addEventListener("popstate",this.handlePopstate),this.$nextTick(()=>{this.navToggle(),this.scrollToHash()}),this.$track.event("SR - Autumn 2026 - Page Viewed",{feature_type:this.features},!1),this.$track.outboundEvent(e,"SR - Autumn 2026 - Outbound Link Clicked",!1),this.$watch("features",(t,
1i)=>{}),window.addEventListener("popstate",()=>{this.features=a()}),this.timelineSplideInit(),this.handleResize=()=>{clearTimeout(this.resizeTimer??void 0),this.resizeTimer=setTimeout(()=>{const t=n();this.timelineSplide?.options&&(this.timelineSplide.options={padding:t})},100)},window.addEventListener("resize",this.handleResize)},destroy(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("popstate",this.handlePopstate),clearTimeout(this.resizeTimer??void 0),this.navToggleTrigger?.kill(),this.timelineSplide?.destroy()}}}export{f 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.