1import{a}from"./rive.PN7Xg6vG.js";import"./hoisted.BrY82i_E.js";import"./RivePhone.astro_astro_type_script_index_0_lang.BtKh3F3I.js";import"./PageTransitions.astro_astro_type_script_index_1_lang.Ce4DpoRT.js";import"./homeAnimations.Bchvcg-S.js";import"./hoisted.BFBnpgy9.js";import"./SolInit.astro_astro_type_script_index_0_lang.CjUxUHy8.js";import"./InfluencerSlider.astro_astro_type_script_index_0_lang.DrJXcFL-.js";import"./_commonjsHelpers.Cpj98o6Y.js";import"./index.CL_bl1i1.js";function c(){const t=document.querySelectorAll(".hero-platform-icons .platform-icon"),s=document.getElementById("voice-phone-container");if(!s||t.length===0)return;const e=s.querySelector(".rive-phone-canvas");e&&(e.__platformSwitcherInit||(e.__platformSwitcherInit=!0,t.forEach(n=>{n.addEventListener("click",()=>{if(n.classList.contains("active"))return;t.forEach(r=>r.classList.remove("active")),n.classList.add("active");const o=n.dataset.riv;if(!o)return;const i=e.__riveInstance;i&&i.cleanup&&(i.cleanup(),e.__riveInstance=null);const l=e.getBoundingClientRect(),v=window.devicePixelRatio||1;e.width=l.width*v,e.height=l.height*v;const d=new a.Rive({src:o,canvas:e,autoplay:!0,stateMachines:"State Machine 1",fit:a.Fit.Cover,alignment:a.Alignment.Center,onLoad:()=>{d.resizeDrawingSurfaceToCanvas(),console.log(`[Voice Notes] Switched to: ${o}`)},onLoadError:r=>{console.error("[Voice Notes] Failed to load animation:",r)}});e.__riveInstance=d,e.dataset.rivSrc=o})}),console.log("[Voice Notes] Platform switcher initialized")))}c();document.addEventListener("barba:after",()=>{const t=document.querySelector("#voice-phone-container .rive-phone-canvas");t&&(t.__platformSwitcherInit=!1),c()});window.addEventListener("barba:afterEnter",()=>{const t=document.querySelector("#voice-phone-container .rive-phone-canvas");t&&(t.__platformSwitcherInit=!1),c()});
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.