PageSourceSearch

https://www.arrowfilms.com/ssr-assets/HeaderFooter.astro_astro_type_script_index_0_lang.FzIjyod3.js

js arrowfilms.com collected 2026-10-02 03:29:37 UTC 5,310 bytes, 1 lines download raw bytes

1import{basketStore as v}from"./basket.B_utnBWZ.js";import{clearCustomerStore as L,customerStore as A}from"./customer.Dd9GizDu.js";import{a as k}from"./index.B2hcZX86.js";import{p as x}from"./pathPrefix.D-vnlp8T.js";import"./index.D2p_Bu1Q.js";import"./basket.DtFICkLE.js";import"./trackingHelpers.BfHonhIc.js";import"./clientFetchApi.CG5VfCYs.js";import"./preload-helper.BlTxHScW.js";import"./index.DtsRjIc2.js";import"./index.BSdFiPHn.js";import"./_commonjsHelpers.CqkleIqs.js";import"./imageOptimization.BhY-BxPI.js";async function B(e,r){const{pathPrefix:o,pathBasedRouting:i}=x.get(),s=i?`/${o}/api/commerce?operation=Logout`:"/api/commerce?operation=Logout";try{await fetch(s,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-Horizon-Client":"altitude-storefront-ingenuity"},body:JSON.stringify({variables:{},horizonApq:!1,application:"account"})})}catch(l){console.error("Logout request failed:",l)}L(),document.cookie=`${r}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; domain=${e};`,window.location.reload()}let h;A.listen(e=>{(h===void 0||e.customerName!==h)&&(I(e),h=e.customerName)});v.subscribe(e=>{T(e.count)});function I(e){const r=document.getElementById("greet-customer"),o=document.getElementById("account-trigger-logged-out"),i=document.getElementById("account-trigger-logged-in"),s=document.getElementById("logged-in-menu"),l=document.getElementById("logged-out-menu"),a=e.customerName!==null;!s||!l||(s.classList.toggle("visible-toggle",a),l.classList.toggle("visible-toggle",!a),o&&i&&(a?(o.style.display="none",o.setAttribute("aria-hidden","true"),o.setAttribute("tabindex","-1"),i.style.display="flex",i.setAttribute("aria-hidden","false"),i.removeAttribute("tabindex")):(o.style.display="flex",o.setAttribute("aria-hidden","false"),o.removeAttribute("tabindex"),i.style.display="none",i.setAttribute("aria-hidden","true"),i.setAttribute("tabindex","-1"))),e.customerName&&r&&(r.innerText=e.customerName.split(" ")[0]||""))}function T(e){const r=document.getElementById("basket-count"),o=document.getElementById("header-basket");if(!r)return!1;r.classList.remove("hidden"),r.classList.add("flex");const i=Number(e)||0;if(i>99?r.innerText="99+":r.innerText=i.toString(),o)if(i===0)o.setAttribute("aria-label",window.altitude.lang.basket.arialabel||"View Basket");else{const s=i===1?"product":"products";o.setAttribute("aria-label",`${window.altitude.lang.basket.arialabel||"View Basket"}, ${i} ${s} added`)}}const c=document.getElementById("account-flyout"),d=document.getElementById("account-a11y-btn");if(c&&d){let e=function(t){const n=s(c),u=n[0],m=n[n.length-1];if(t.key==="Escape"){t.preventDefault(),o();return}t.key==="Tab"&&k(t,u,m)},r=function(){c.classList.add("visible-toggle"),d.setAttribute("aria-expanded","true");const t=s(c);t.length&&t[0].focus()},o=function(){c.classList.remove("visible-toggle"),d.setAttribute("aria-expanded","false"),d.focus()},i=function(){d.getAttribute("aria-expanded")==="true"?o():r()};const s=t=>Array.from(t.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')).filter(n=>!n.hasAttribute("disabled")&&!n.getAttribute("aria-hidden")&&n.offsetParent!==null);d.addEventListener("click",i),c.addEventListener("keydown",e);const l=document.querySelectorAll(".account-trigger"),a=document.getElementById("customer-account");l.length&&a&&l.forEach(t=>{t.addEventListener("click",n=>{if(window.innerWidth<1024)n.preventDefault(),a.classList.toggle("mobile-open");else if(t.getAttribute("data-logged-in")==="true")window.location.href=t.getAttribute("data-account-href")||"/account/";else{const m=t.getAttribute("data-login-href"),E=window.location.pathname+window.location.search,b=new URL(m,window.location.origin);b.searchParams.set("returnTo",E),window.location.href=b.pathname+b.search}})});const p=document.querySelector('#logged-out-menu a[href*="returnTo"]');if(p){const t=window.location.pathname+window.location.search,n=new URL(p.href,window.location.origin);n.searchParams.set("returnTo",t),p.href=n.pathname+n.search}document.addEventListener("click",t=>{const n=t.target,u=Array.from(l).some(m=>m.contains(n));if(a?.classList.contains("mobile-open")&&!c.contains(n)&&!u){t.preventDefault(),t.stopPropagation(),a.classList.remove("mobile-open");return}!c.contains(n)&&!d.contains(n)&&!u&&c.classList.contains("visible-toggle")&&o()}),window.addEventListener("resize",()=>{window.innerWidth>=1024&&a?.classList.contains("mobile-open")&&a.classList.remove("mobile-open")})}let f=null,g=null;function w(){const e=document.getElementById("onetrust-pc-sdk");
1!e||g||(g=new MutationObserver(()=>{e.style.display==="none"&&f&&(f.focus(),f=null,g?.disconnect(),g=null)}),g.observe(e,{attributes:!0,attributeFilter:["style"]}))}document.querySelectorAll(".cookie-settings").forEach(e=>{e.addEventListener("click",r=>{if(r.preventDefault(),window.Didomi?.preferences?.show){window.Didomi.preferences.show();return}f=document.activeElement,window.addEventListener("OneTrustPCLoaded",w,{once:!0}),w(),window.Optanon?.ToggleInfoDisplay?.()})});const y=document.getElementById("logout-button");y&&y.addEventListener("click",()=>{const e=document.documentElement.getAttribute("data-logout-host"),r=document.documentElement.getAttribute("data-logout-opaque");B(e,r)});

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.