1import{TransitionStartEvent,TransitionEndEvent,EnterAnimationStartEvent}from"@mockly/events";import Swup from"swup";class PageTransition{constructor(){this.init()}init(){this.swup=new Swup({containers:["#main"]}),this.swup.hooks.on("visit:start",()=>{window.dispatchEvent(new TransitionStartEvent)}),this.swup.hooks.on("visit:end",()=>{window.dispatchEvent(new TransitionEndEvent);const embeddedForms=document.querySelectorAll(".pxFormGenerator"),headScripts=Array.from(document.head.querySelectorAll("script")).map(script=>script.src),formBuilderScripts=window.hulkFormBuilder?.assets;Object.values(formBuilderScripts)?.forEach(script=>{const isJavascript=script.endsWith(".js");if(!headScripts.some(s=>s===script))if(isJavascript){const newScript=document.createElement("script");newScript.src=script,document.head.appendChild(newScript),newScript.onload=()=>{window.hasOwnProperty("RenderFormById")&&embeddedForms?.forEach(form=>{window.RenderFormById(form.id)})}}else{const newLink=document.createElement("link");newLink.rel="stylesheet",newLink.href=script,document.head.appendChild(newLink)}}),headScripts?.forEach(script=>{if(script?.includes("form-builder")){const newScript=document.createElement("script");newScript.src=script,document.head.appendChild(newScript)}})}),this.swup.hooks.on("animation:in:start",()=>{window.dispatchEvent(new EnterAnimationStartEvent)})}}const pageTransition=new PageTransition;export default pageTransition; 2//# sourceMappingURL=/cdn/shop/t/35/assets/page-transition.js.map?v=78108988399529374581772755047
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.