PageSourceSearch

https://www.arrowvideo.com/ssr-assets/CookiePreferencesModal.B8EeCnwD.js

js arrowvideo.com collected 2026-09-24 18:28:22 UTC 5,944 bytes, 1 lines download raw bytes

1import{j as o}from"./jsx-runtime.D_zvdyIk.js";import{c as V}from"./compiler-runtime.B6qBK_-V.js";import{r as U}from"./index.BFIXnisK.js";import"./index.CMF_dOlt.js";import"./_commonjsHelpers.CqkleIqs.js";function Q(a){const e=V.c(26),{data:E}=a,{cookieOptions:p}=E;let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=[{name:"FunctionalCookies",value:!0},{name:"AnalyticsCookies",value:!0},{name:"TargetingCookies",value:!0}],e[0]=u):u=e[0];const[c,f]=U.useState(u),{i18n:s,lang:r}=window?.altitude;let x;e[1]===Symbol.for("react.memo_cache_sentinel")?(x={FunctionalCookies:"C0003",AnalyticsCookies:"C0002",TargetingCookies:"C0004"},e[1]=x):x=e[1];const P=x;let h;e[2]!==c?(h=()=>{const t=document.cookie.split("; ").find(K);if(t){const n=decodeURIComponent(t.split("=")[1]);f(c.map(l=>({...l,value:n.includes(P[l.name])})))}},e[2]=c,e[3]=h):h=e[3];let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=[],e[4]=k):k=e[4],U.useEffect(h,k);let b;e[5]!==c?(b=(t,n)=>{f(c.map(l=>l.name===t?{...l,value:n}:l))},e[5]=c,e[6]=b):b=e[6];const R=b;let w;e[7]===Symbol.for("react.memo_cache_sentinel")?(w=()=>{f(t=>{const n=[];t.forEach(i=>{i?.value&&n.push(P[i?.name])});const l=864e5*(window.tenantConfig?.cookieExpiryDays||365);document.cookie=n.length?`CookieConsent=${encodeURIComponent(`,${n},`)}; path=/; secure; expires=${new Date(new Date().getTime()+l).toUTCString()}; domain=${window.__HOST__}`:`CookieConsent=null; path=/; secure; expires=${new Date(new Date().getTime()+l).toUTCString()}; domain=${window.__HOST__}`,window.components.modal.close();const A=[];return t.forEach(i=>{A.push(`${i.name}=${i.value}`)}),window.Tracker.handlers.cookieSet(A.join(",")),t})},e[7]=w):w=e[7];const B=w;let y;e[8]===Symbol.for("react.memo_cache_sentinel")?(y=()=>{f(t=>{const n=t.map(z),l=[];n.forEach(i=>{i?.value&&l.push(P[i?.name])});const A=864e5*(window.tenantConfig?.cookieExpiryDays||365);return document.cookie=`CookieConsent=${encodeURIComponent(`,${l},`)}; path=/; secure; expires=${new Date(new Date().getTime()+A).toUTCString()}; domain=${window.__HOST__}`,window.components.modal.close(),window.Tracker.handlers.cookieModalAccepted(),n})},e[8]=y):y=e[8];const M=y;let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{f(I)},e[9]=g):g=e[9];const O=g;let C;e[10]===Symbol.for("react.memo_cache_sentinel")?(C=window.tenantConfig||{},e[10]=C):C=e[10];const H=C.application?.content?.cookiePolicy||"#";let _;e[11]===Symbol.for("react.memo_cache_sentinel")?(_=o.jsx("div",{className:"p-4 text-xl font-bold lg:p-6",children:s(()=>r.cookieBanner?.modal.intro.title)||"Set preferences"}),e[11]=_):_=e[11];let j;e[12]===Symbol.for("react.memo_cache_sentinel")?(j=o.jsx("p",{children:s(()=>r.cookieBanner?.modal.intro.body)||"You can manage your cookie preferences by clicking on the category headings, but blocking certain cookies may affect your site experience and available services due to our commitment to respecting your privacy."}),e[12]=j):j=e[12];let S;e[13]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx("button",{className:"mt-2 block w-full bg-black px-5 py-3 text-center text-white","aria-label":"Accept all cookies",onClick:M,children:s(()=>r.cookieBanner?.modal.intro.buttontext)||"That's OK"}),e[13]=S):S=e[13];let v;e[14]===Symbol.for("react.memo_cache_sentinel")?(v=o.jsxs("div",{className:"flex flex-col items-start justify-start gap-4",children:[j,o.jsxs("div",{className:"flex w-full flex-col gap-3 md:flex-row",children:[S,o.jsx("a",{href:H,className:"mt-2 block w-full border bg-white px-5 py-3 text-center","aria-label":"View Cookie policy",children:s(()=>r.cookieBanner?.modal.intro.secondarybuttontext)||"Cookie Policy"})]})]}),e[14]=v):v=e[14];let N;e[15]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsx("h2",{className:"mb-3 text-lg font-bold",children:s(()=>r.cookieBanner?.modal.consent.title)||"Manage Consent Preferences"}),e[15]=N):N=e[15];let m;e[16]!==p||e[17]!==c||e[18]!==R?(m=p&&p.map(t=>o.jsxs("div",{className:"py-3",children:[o.jsxs("div",{className:"flex justify-between pb-2",children:[o.jsx("p",{className:"text-base",children:t?.title}),t?.toggle?o.jsx("input",{"data-cookiename":t?.cookieName,"aria-label":`${t.cookieName}`,type:"checkbox",className:"toggle toggle-black z-20",checked:c.find(n=>n.name===t.cookieName)?.value,onChange:n=>R(t.cookieName,n.target.checked)}):o.jsx("span",{className:"text-gray-500",children:"Always Active"})]}),o.jsx("p",{className:"text-sm text-gray-500",children:t?.description})]},t.cookieName)),e[16]=p,e[17]=c,e[18]=R,e[19]=m):m=e[19];let d;e[20]!==m?(d=o.jsx("div",{className:"divide-y border px-3",children:m}),e[20]=m,e[21]=d):d=e[21];let T;e[22]===Symbol.for("react.memo_cache_sentinel")?(T=o.jsx("button",{type:"button","aria-label":"Reject All Cookies",className:"mt-2 block w-full border bg-white px-5 py-3",onClick:O,children:s(()=>r.cookieBanner?.modal.consent.secondarybuttontext)||"Reject All"}),e[22]=T):T=e[22];let $;e[23]===Symbol.for("react.memo_cache_sentinel")?($=o.jsxs("div",{className:"my-6 flex w-full flex-col gap-3 md:flex-row",children:[T,o.jsx("button",{className:"mt-2 block w-full bg-black px-5 py-3 text-center text-white","aria-label":"Set Preferences",onClick:B,children:s(()=>r.cookieBanner?.modal.consent.buttontext)||"Set Preferences"})]}),e[23]=$):$=e[23];let D;return e[24]!==d?(D=o.jsxs("div",{className:"h-full flex-grow overflow-auto px-4 pb-6 lg:px-6 lg:pb-20",children:[_,v,o.jsxs("div",{className:"my-6",children:[N,d,$]})]}),e[24]=d,e[25]=D):D=e[25],D}function I(a){const e=a.map(F),E=864e5*(window.tenantConfig?.cookieExpiryDays||365);return document.cookie=`CookieConsent=null; path=/; secure; expires=${new Date(new Date().getTime()+E).toUTCString()}; domain=${window.__HOST__}`,window.components.modal.close(),window.Tracker.handlers.cookieModalRejected(),e}function F(a){return{...a,value:!1}}function z(a){return{...a,value:!0}}
1function K(a){return a.startsWith("CookieConsent=")}export{Q 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.