1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,87140,e=>{"use strict";var t=e.i(1076);let n=t.forwardRef(function({title:e,titleId:n,...r},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))});e.s(["ArrowTopRightOnSquareIcon",0,n],87140)},86105,e=>{"use strict";var t=e.i(1076);let n=t.forwardRef(function({title:e,titleId:n,...r},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))});e.s(["QuestionMarkCircleIcon",0,n],86105)},71332,e=>{"use strict";var t=e.i(1076);let n=t.forwardRef(function({title:e,titleId:n,...r},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 6v.75m0 3v.75m0 3v.75m0 3V18m-9-5.25h5.25M7.5 15h3M3.375 5.25c-.621 0-1.125.504-1.125 1.125v3.026a2.999 2.999 0 0 1 0 5.198v3.026c0 .621.504 1.125 1.125 1.125h17.25c.621 0 1.125-.504 1.125-1.125v-3.026a2.999 2.999 0 0 1 0-5.198V6.375c0-.621-.504-1.125-1.125-1.125H3.375Z"}))});e.s(["TicketIcon",0,n],71332)},32056,e=>{"use strict";var t=e.i(1076);let n=t.forwardRef(function({title:e,titleId:n,...r},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"}))});e.s(["UserIcon",0,n],32056)},36917,e=>{"use strict";var t=e.i(1076);let n=t.forwardRef(function({title:e,titleId:n,...r},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{fillRule:"evenodd",d:"M4.755 10.059a7.5 7.5 0 0 1 12.548-3.364l1.903 1.903h-3.183a.75.75 0 1 0 0 1.5h4.992a.75.75 0 0 0 .75-.75V4.356a.75.75 0 0 0-1.5 0v3.18l-1.9-1.9A9 9 0 0 0 3.306 9.67a.75.75 0 1 0 1.45.388Zm15.408 3.352a.75.75 0 0 0-.919.53 7.5 7.5 0 0 1-12.548 3.364l-1.902-1.903h3.183a.75.75 0 0 0 0-1.5H2.984a.75.75 0 0 0-.75.75v4.992a.75.75 0 0 0 1.5 0v-3.18l1.9 1.9a9 9 0 0 0 15.059-4.035.75.75 0 0 0-.53-.918Z",clipRule:"evenodd"}))});e.s(["ArrowPathIcon",0,n],36917)},99923,e=>{"use strict";var t=e.i(1076);let n=t.forwardRef(function({title:e,titleId:n,...r},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{fillRule:"evenodd",d:"M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z",clipRule:"evenodd"}))});e.s(["ChevronDownIcon",0,n],99923)},47550,e=>{"use strict";var t=e.i(1076);let n=t.forwardRef(function({title:e,titleId:n,...r},s){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
1currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))});e.s(["XMarkIcon",0,n],47550)},82175,e=>{"use strict";var t=e.i(92630);function n(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let r=n(0,t.useTranslations);n(0,t.useFormatter),e.s(["useTranslations",0,r])},52590,(e,t,n)=>{t.exports=e.r(1956)},84845,45831,20544,e=>{"use strict";var t=e.i(645),n=e.i(1076),r=e.i(82175),s=e.i(36917),o=e.i(99923),a=e.i(87140),i=e.i(86105),l=e.i(71332),c=e.i(32056),u=e.i(55600),d=e.i(83235),f=e.i(38695),m=e.i(30158),h=e.i(99405),p=e.i(2027);let v=n.forwardRef(function({title:e,titleId:t,...r},s){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 3.75 9.375v-4.5ZM3.75 14.625c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5a1.125 1.125 0 0 1-1.125-1.125v-4.5ZM13.5 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 13.5 9.375v-4.5Z"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 6.75h.75v.75h-.75v-.75ZM6.75 16.5h.75v.75h-.75v-.75ZM16.5 6.75h.75v.75h-.75v-.75ZM13.5 13.5h.75v.75h-.75v-.75ZM13.5 19.5h.75v.75h-.75v-.75ZM19.5 13.5h.75v.75h-.75v-.75ZM19.5 19.5h.75v.75h-.75v-.75ZM16.5 16.5h.75v.75h-.75v-.75Z"}))});var g=e.i(47133);function x(e){if("string"!=typeof e)return null;let t=e.trim();return""===t?null:t}function w(e){return e&&"object"==typeof e&&!Array.isArray(e)?e:null}function b(e){var t;let n=w(e);if(!n)return null;let r=x(n.id);if(!r)return null;let s=w(n.pass_bucket),o=x(n.name);return{id:r,name:"Unnamed Pass"===o?null:o,passBucketName:s?x(s.name):null,isMembership:s?.is_membership===!0,barcodeHidden:s?.hide_barcode_from_users===!0,isActive:!0===n.is_active,eventBucketId:(t=n.event_bucket)&&"object"==typeof t?x(t.id):x(t),hiddenInList:s?.hide_from_users===!0}}let E=[],k={status:"idle",passes:E},y=new Set,j=0;function L(e){if(e.status!==k.status||e.passes!==k.passes)for(let t of(k=e,y))t()}function N(e){return y.add(e),()=>{y.delete(e)}}function _(){return k}let S={status:"idle",passes:E};function P(){return S}let C="people/self/passes";function T(){let e;if("loading"===k.status||"ready"===k.status)return;let t=window.Eventive;if(!function(e){if(!e||"function"!=typeof e.request)return!1;try{return!0===e.isLoggedIn()}catch{return!1}}(t))return void L({status:"error",passes:E});let n="string"==typeof(e=window.TENANT?.event_bucket??window.EVENTIVE_CONFIG?.event_bucket)&&""!==e?e:null;if(!n)return void L({status:"error",passes:E});let r=j+=1;L({status:"loading",passes:E}),t.request({method:"GET",endpoint:C,authenticatePerson:!0}).then(e=>{var t;if(r!==j)return;let s=function(e){if(Array.isArray(e))return e;let t=w(e);return t&&Array.isArray(t.passes)?t.passes:null}(e);if(!s){L({status:"error",passes:E}),console.warn("[eventive-passes] unrecognised reply shape from",C);return}let o=(t=s.map(b).filter(e=>null!==e),t.filter(e=>e.isActive&&e.eventBucketId===n&&!e.hiddenInList).map(({id:e,name:t,passBucketName:n,isMembership:r,barcodeHidden:s})=>({id:e,name:t,passBucketName:n,isMembership:r,barcodeHidden:s})));L({status:"ready",passes:o.length>0?o:E})},e=>{r===j&&(L({status:"error",passes:E}),console.warn("[eventive-passes] could not read the visitorâs passes:",e))})}e.s(["clearEventivePasses",0,function(){("idle"!==k.status||k.passes!==E)&&(j+=1,L({status:"idle",passes:E}))}
1,"getEventivePassesSnapshot",0,_,"getServerEventivePassesSnapshot",0,P,"loadEventivePasses",0,T,"subscribeToEventivePasses",0,N],45831);let I=null,R=new Set;function A(){for(let e of R)e()}function M(e){return R.add(e),()=>{R.delete(e)}}function O(e){I?.id!==e.id&&(I=e,A())}e.s(["closeEventivePass",0,function(){null!==I&&(I=null,A())},"showEventivePass",0,O,"useShownEventivePass",0,function(){return(0,n.useSyncExternalStore)(M,()=>I,()=>null)}],20544);let V={chip:{heading:"font-mono text-tiny uppercase tracking-[0.05em] opacity-70",row:"px-2 py-1 text-tiny gap-1.5",icon:"size-3.5",note:"text-tiny"},row:{heading:"font-mono text-tiny uppercase tracking-[0.05em] opacity-70",row:"px-3 py-3 text-xs gap-2",icon:"size-4",note:"text-xs"}};function $({pass:e,scale:n}){let s=(0,r.useTranslations)("eventivePasses"),o=V[n],a=e.name??e.passBucketName??s("unnamed");return(0,t.jsxs)("li",{children:[(0,t.jsxs)("button",{type:"button",onClick:()=>O(e),className:`press-safe flex w-full items-center border-2 border-theme-dark bg-theme-light shadow-ink-sm font-mono font-bold uppercase tracking-[0.05em] leading-[1.4] hover:translate-x-[1px] hover:translate-y-[1px] hover:shadow-none transition-[translate,box-shadow] duration-100 ease-out ${o.row}`,children:[(0,t.jsx)(v,{className:`${o.icon} shrink-0`,"aria-hidden":"true"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-left normal-case",children:a}),(0,t.jsx)("span",{className:"shrink-0 opacity-60",children:s("show")})]}),e.name&&e.passBucketName&&(0,t.jsx)("p",{className:`mt-0.5 px-1 ${o.note} opacity-60`,children:e.passBucketName})]})}function B({scale:e="chip",demoPasses:o,demoStatus:i}){let l,c=(0,r.useTranslations)("eventivePasses"),u={status:(l=(0,n.useSyncExternalStore)(N,_,P)).status,passes:l.passes,load:T},d=V[e],f=i??(o?"ready":u.status),m=o??u.passes;return(0,t.jsxs)("div",{className:"flex flex-col gap-2 border-t-2 border-theme-dark pt-2",children:[(0,t.jsx)("p",{className:d.heading,children:c("heading")}),"loading"===f&&(0,t.jsxs)("p",{className:`flex items-center gap-1.5 ${d.note} opacity-70`,"aria-live":"polite","aria-busy":"true",children:[(0,t.jsx)(s.ArrowPathIcon,{className:"size-3 shrink-0 animate-spin","aria-hidden":"true"}),(0,t.jsx)("span",{children:c("loading")})]}),"ready"===f&&m.length>0&&(0,t.jsx)("ul",{className:"flex flex-col gap-1.5",children:m.map(n=>(0,t.jsx)($,{pass:n,scale:e},n.id))}),"ready"===f&&0===m.length&&(0,t.jsx)("p",{className:`${d.note} opacity-70`,children:c("empty")}),"error"===f&&(0,t.jsxs)("div",{className:`flex flex-col items-start gap-1.5 ${d.note}`,children:[(0,t.jsx)("p",{className:"opacity-70",children:c("error")}),(0,t.jsx)("button",{type:"button",onClick:u.load,className:"underline underline-offset-2 opacity-75 hover:opacity-100",children:c("retry")})]}),g.EVENTIVE_BASE_URL&&(0,t.jsxs)("a",{href:`${g.EVENTIVE_BASE_URL}/passes`,target:"_blank",rel:"noreferrer noopener",className:`flex items-center gap-1.5 ${d.note} underline underline-offset-2 opacity-75 hover:opacity-100`,children:[(0,t.jsx)("span",{children:c("openOnEventive")}),(0,t.jsx)(a.ArrowTopRightOnSquareIcon,{className:"size-3.5 shrink-0","aria-hidden":"true"})]})]})}function U({treatment:e,demo:s,demoForm:o="logged-out",demoPersonName:a}){let i=(0,r.useTranslations)("eventiveLogin"),l=i("login"),c=i("logout");return((0,n.useEffect)(()=>{s||(0,d.rebuildEventiveWidgets)()},[s]),s)?(0,t.jsx)("div",{className:`eventive-login--${e}`,"data-eventive-login-demo":"",children:"logged-out"===o?(0,t.jsx)("a",{href:"#login",rel:"nofollow noreferrer",children:l}):(0,t.jsxs)("span",{children:[(0,t.jsxs)("span",{className:"Eventive--LoginWidget--LoginDescription",children:["Logged in as ",a,"."]}),(0,t.jsx)("a",{href:"#logout",children:c})]})}):(0,t.jsx)("div",{className:`eventive-login eventive-login--${e}`,"data-login-label":l,"data-logout-label":c})}let D={chip:{root:"relative group inline-block",summary:"inline-flex items-center gap-1 px-1.5 py-1 font-mono text-tiny font-bold uppercase tracking-[0.05em] leading-[1.4] whitespace-nowrap border-b-2 border-dotted border-theme-dark/50 hover:border-solid hover:border-theme-dark hover:bg-theme-yellow transition-colors duration-100 ease-in-out cursor-pointer select-none list-none [&::-webkit-details-marker]:hidden",chevron:"size-3",panel:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-64 p-3 bg-theme-light border-2 border-theme-dark shadow-ink flex flex-col items-start gap-2",stub:"inline-flex items-center gap-1.5 px-1.5 py-1 font-mono text-tiny font-bold uppercase tracking-[0.05em] leading-[1.4] whitespace-nowrap border-b-2 border-dotted border-theme-dark/30 opacity-60"},row:{root:"group",summary:"flex w-full items-center justify-center gap-2 px-3 py-3 bg-theme-light border-2 border-theme-dark shadow-ink-sm font-mono text-xs font-bold uppercase tracking-[0.05em] leading-[1.4] cursor-pointer select-none list-none [&::-webkit-details-marker]:hidden active:translate-x-[1px] active:translate-y-[1px] active:shadow-none transition-[translate,box-shadow] duration-100 ease-out",chevron:"size-3.5",panel:"mt-2 p-3 bg-theme-light border-2 border-theme-dark flex flex-col items-start gap-2",stub:"flex w-full items-center justify-center gap-2 px-3 py-3 bg-theme-light border-2 border-theme-dark/40 font-mono text-xs font-bold uppercase tracking-[0.05em] leading-[1.4] opacity-60"},teaser:{root:"group",summary:"inline-flex items-center gap-1 font-mono text-tiny font-bold uppercase tracking-[0.05em] leading-[1.4] border-b-2 border-theme-dark hover:bg-theme-light transition-colors duration-100 ease-in-out cursor-pointer select-none list-none [&::-webkit-details-marker]:hidden",chevron:"size-3",panel:"mt-2 p-3 bg-theme-light border-2 border-theme-dark shadow-ink-sm flex flex-col items-start gap-2",stub:"inline-flex items-center gap-1.5 font-mono text-tiny font-bold uppercase tracking-[0.05em] leading-[1.4] border-b-2 border-theme-dark/30 opacity-60"}};function z({treatment:e}){let n=(0,r.useTranslations)("eventiveLogin");return(0,t.jsxs)("span",{className:D[e].stub,"aria-live":"polite","aria-busy":"true",children:[(0,t.jsx)(s.ArrowPathIcon,{className:"size-3 shrink-0 animate-spin","aria-hidden":"true"}),(0,t.jsx)("span",{children:n("opening")})]})}function Z(){let e=(0,r.useTranslations)("eventiveLogin"),[s,o]=(0,n.use
1State)(!1),a=(0,n.useId)();return(0,t.jsxs)("span",{className:"relative hidden md:inline-flex",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:[(0,t.jsx)("button",{type:"button","aria-label":e("helpLabel"),"aria-describedby":s?a:void 0,onFocus:()=>o(!0),onBlur:()=>o(!1),onClick:()=>o(e=>!e),onKeyDown:e=>{"Escape"===e.key&&o(!1)},className:"inline-flex items-center justify-center p-0.5 cursor-help text-theme-dark/50 hover:text-theme-dark focus-visible:text-theme-dark transition-colors duration-100 ease-in-out",children:(0,t.jsx)(i.QuestionMarkCircleIcon,{className:"size-4","aria-hidden":"true"})}),s&&(0,t.jsx)("span",{id:a,role:"tooltip",className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-64 p-3 bg-theme-dark text-theme-light border-2 border-theme-dark shadow-ink text-xs leading-snug pointer-events-none",children:e("helpBody")})]})}function q({treatment:e,defaultOpen:s=!1}){let i=(0,r.useTranslations)("eventiveLogin"),l=(0,r.useTranslations)("eventivePasses"),{cookieConsent:c,setConsent:u}=(0,f.useCookieConsent)(),d=D[e],v=(0,n.useRef)(null);return(0,m.useCloseOnOutsideClick)(v,!s),(0,t.jsxs)("details",{ref:v,className:d.root,open:s||void 0,children:[(0,t.jsxs)("summary",{className:d.summary,children:[(0,t.jsx)("span",{children:i("login")}),(0,t.jsx)(o.ChevronDownIcon,{className:`shrink-0 transition-transform duration-100 group-open:rotate-180 ${d.chevron}`,"aria-hidden":"true"})]}),(0,t.jsxs)("div",{className:d.panel,children:[(0,t.jsx)("p",{className:"text-xs opacity-75",children:i("consentMessage")}),(0,t.jsx)("button",{type:"button",onClick:()=>{u({...c,functional:!0,necessary:!0}),(0,h.requestEventiveLogin)()},className:"btn-s btn-accept whitespace-nowrap",children:i("allowAndLogin")}),g.EVENTIVE_BASE_URL&&(0,t.jsxs)("a",{href:`${g.EVENTIVE_BASE_URL}/passes`,target:"_blank",rel:"noreferrer noopener",className:"flex items-center gap-1.5 text-xs underline underline-offset-2 opacity-75 hover:opacity-100",children:[(0,t.jsx)("span",{children:l("openOnEventive")}),(0,t.jsx)(a.ArrowTopRightOnSquareIcon,{className:"size-3.5 shrink-0","aria-hidden":"true"})]}),(0,t.jsx)(p.ManageCookiesLink,{className:"text-xs underline underline-offset-2 opacity-75 hover:opacity-100"})]})]})}function F({touch:e=!1}){let n=(0,r.useTranslations)("eventiveLogin");return(0,t.jsxs)(u.Link,{href:"/passes",className:`press-safe flex w-full items-center justify-center gap-1.5 bg-theme-orange border-2 border-theme-dark shadow-ink-sm font-mono font-bold uppercase tracking-[0.05em] leading-[1.4] hover:translate-x-[1px] hover:translate-y-[1px] hover:shadow-none transition-[translate,box-shadow] duration-100 ease-out ${e?"px-3 py-3 text-xs":"px-2 py-1 text-tiny"}`,children:[(0,t.jsx)(l.TicketIcon,{className:e?"size-4 shrink-0":"size-3.5 shrink-0","aria-hidden":"true"}),(0,t.jsx)("span",{children:n("buyMorePasses")})]})}function W({personName:e,chevronClass:n}){let s=(0,r.useTranslations)("eventiveLogin");return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.UserIcon,{className:"size-3.5 shrink-0","aria-hidden":"true"}),(0,t.jsx)("span",{className:"truncate",children:e||s("account")}),(0,t.jsx)(o.ChevronDownIcon,{className:`shrink-0 transition-transform duration-100 group-open:rotate-180 ${n}`,"aria-hidden":"true"})]})}e.s(["EventiveLoginChip",0,function({state:e,defaultOpen:s=!1,demo:o=!1,demoPasses:a}){let i=(0,r.useTranslations)("eventiveLogin"),l=(0,h.useEventiveLoginPending)(),c=(0,n.useRef)(null);return((0,m.useCloseOnOutsideClick)(c,!s),"absent"===e.status)?l?(0,t.jsx)(z,{treatment:"chip"}):null:"blocked"===e.status?(0,t.jsxs)("div",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)(q,{treatment:"chip",defaultOpen:s}),(0,t.jsx)(Z,{})]}):"logged-out"===e.status?(0,t.jsxs)("div",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)(U,{treatment:"chip",demo:o,demoForm:"logged-out"}),(0,t.jsx)(Z,{})]}):(0,t.jsxs)("details",{ref:c,className:"relative group",open:s||void 0,onToggle:e=>{!a&&e.currentTarget.open&&T()},children:[(0,t.jsx)("summary",{className:"press-safe flex items-center gap-1.5 px-2 py-1 max-w-52 bg-theme-light border-2 border-theme-dark shadow-ink-sm font-mono text-tiny font-bold uppercase tracking-[0.05em] leading-[1.4] cursor-pointer select-none list-none [&::-webkit-details-marker]:hidden hover:translate-x-[1px] hover:translate-y-[1px] hover:shadow-none transition-[translate,box-shadow] duration-100 ease-out",children:(0,t.jsx)(W,{personName:e.personName,chevronClass:"size-3"})}),(0,t.jsxs)("div",{className:"absolute right-0 top-[calc(100%+0.5rem)] z-50 w-72 max-h-[calc(100dvh-5.5rem)] overflow-y-auto overscroll-contain p-3 bg-theme-light border-2 border-theme-dark shadow-ink flex flex-col gap-2",children:[(0,t.jsx)("p",{className:"font-mono text-tiny uppercase tracking-[0.05em] opacity-70",children:i("signedIn")}),(0,t.jsx)(B,{scale:"chip",demoPasses:a}),(0,t.jsx)(F,{}),(0,t.jsx)(U,{treatment:"chip",demo:o,demoForm:"logged-in",demoPersonName:e.personName})]})]})},"EventiveLoginRow",0,function({state:e,defaultOpen:s=!1,demo:o=!1,demoPasses:a}){let i=(0,r.useTranslations)("eventiveLogin"),l=(0,h.useEventiveLoginPending)(),c=(0,n.useRef)(null);return((0,m.useCloseOnOutsideClick)(c,!s),"absent"===e.status)?l?(0,t.jsx)(z,{treatment:"row"}):null:"blocked"===e.status?(0,t.jsx)(q,{treatment:"row",defaultOpen:s}):"logged-out"===e.status?(0,t.jsx)(U,{treatment:"row",demo:o,demoForm:"logged-out"}):(0,t.jsxs)("details",{ref:c,className:"group",open:s||void 0,onToggle:e=>{!a&&e.currentTarget.open&&T()},children:[(0,t.jsx)("summary",{className:"flex w-full items-center gap-2 px-3 py-3 bg-theme-light border-2 border-theme-dark shadow-ink-sm font-mono text-xs font-bold uppercase tracking-[0.05em] leading-[1.4] cursor-pointer select-none list-none [&::-webkit-details-marker]:hidden",children:(0,t.jsx)(W,{personName:e.personName,chevronClass:"size-3.5 ml-auto"})}),(0,t.jsxs)("div",{className:"mt-2 p-3 bg-theme-light border-2 border-theme-dark flex flex-col gap-2",children:[(0,t.jsx)("p",{className:"font-mono text-tiny uppercase tracking-[0.05em] opacity-70",children:i("signedIn")}),(0,t.jsx)(B,{scale:"row",demoPasses:a}),(0,t.jsx)(F,{touch:!0}),(0,t.jsx)(U,{treatment:"row",demo:o,demoForm:"logged-in",demoPersonName:e.personName})]})]})},"EventiveLoginSlot",0,function({state:e={status:"logged-out"},demo:n}){let r=(0,h.useEventiveLoginPending)();return"absent"===e.status?r?(0,t.jsx)(z,{treatment:"teaser"}):null:"blocked"===e.status?(0,t.jsx)(q,{treatment:"teaser"}):(0,t.jsx)(U,{treatment:"teaser",demo:n})}],84845)},2027,e=>{"use strict";var t=e.i(645),n=e.i(82175),r=e.i(18267);e.s(["ManageCookiesLink",0,function({className:e}){let s=(0,n.useTranslations)();return(0,t.jsx)("button",{type:"button",onClick:r.openCookieBanner,className:["cursor-pointer",e??""].join(" "),children:s("cookies.manage")})}])},30158,e=>{"use strict";var t=e.i(1076);e.s(["useCloseOnOutsideClick",0,function(e,n=!0){(0,t.useEffect)(()=>
1{if(!n)return;let t=t=>{let n=e.current;!n?.open||t.target instanceof Node&&n.contains(t.target)||(n.open=!1)},r=t=>{let n=e.current;"Escape"===t.key&&n?.open&&(n.open=!1,n.querySelector("summary")?.focus())};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),document.addEventListener("keydown",r),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t),document.removeEventListener("keydown",r)}},[e,n])}])},18267,e=>{"use strict";var t=e.i(1076);let n=!1,r=new Set;function s(){r.forEach(e=>e())}function o(e){return r.add(e),()=>r.delete(e)}e.s(["closeCookieBanner",0,function(){n&&(n=!1,s())},"openCookieBanner",0,function(){n||(n=!0,s())},"useCookieBannerRequest",0,function(){return(0,t.useSyncExternalStore)(o,()=>n,()=>!1)}])},38695,e=>{"use strict";var t=e.i(1076);let n="has-made-choice",r="cookie-consent",s={analytics:!1,marketing:!1,functional:!1,necessary:!0};function o(e){if("u"<typeof document)return null;let t=document.cookie.split("; ").find(t=>t.startsWith(`${e}=`));return t?decodeURIComponent(t.slice(e.length+1)):null}function a(e,t){document.cookie=`${e}=${encodeURIComponent(t)}; max-age=31536000; path=/; SameSite=Lax`}let i={hasConsented:!1,consent:s,hydrated:!1},l=!1,c=new Set;function u(e){return c.add(e),()=>c.delete(e)}function d(){return!function(){if(l||"u"<typeof document)return;l=!0;let e=o(n),t=o(r),a=s;if(t)try{a={...s,...JSON.parse(t)}}catch{}i={hasConsented:"true"===e,consent:a,hydrated:!0}}(),i}let f={hasConsented:!0,consent:s,hydrated:!1};function m(){return f}function h(e){i={hasConsented:!0,consent:e,hydrated:!0},a(n,"true"),a(r,JSON.stringify(e)),c.forEach(e=>e())}function p(){if("u"<typeof document)return;let e=e=>{let t="Thu, 01 Jan 1970 00:00:00 UTC",n=window.location.hostname,r=n.split(".").slice(-2).join(".");document.cookie=`${e}=; expires=${t}; path=/;`,document.cookie=`${e}=; expires=${t}; path=/; domain=${n};`,document.cookie=`${e}=; expires=${t}; path=/; domain=.${r};`};i.consent.analytics||(["_ga","_gat","_gid"].forEach(e),document.cookie.split(";").forEach(t=>{let n=t.split("=")[0]?.trim();n&&n.startsWith("_ga_")&&e(n)}),delete window.gtag,window.dataLayer=[]),i.consent.marketing||(["_fbp","_fbc","fr"].forEach(e),delete window.fbq,delete window._fbq),i.consent.functional||["__stripe_mid","__stripe_sid"].forEach(e)}e.s(["cleanupServices",0,p,"setConsent",0,h,"useCookieConsent",0,function(){let e=(0,t.useSyncExternalStore)(u,d,m),n=(0,t.useCallback)(t=>e.consent[t]??!1,[e]);return{hasConsented:e.hasConsented,cookieConsent:e.consent,isHydrated:e.hydrated,setConsent:h,isAccepted:n,cleanupServices:p}}])},99405,e=>{"use strict";var t=e.i(1076);let n=!1,r=null,s=0,o=new Set;function a(){o.forEach(e=>e())}function i(e){return o.add(e),()=>o.delete(e)}function l(){r&&clearTimeout(r),r=null,n&&(n=!1,a())}e.s(["requestEventiveLogin",0,function(){n||(n=!0,s=Date.now()+12e3,a(),function e(){if(r=null,!n)return;let t=document.querySelector('.eventive-login a[href="#login"]');if(t){t.click(),l();return}document.querySelector('.eventive-login a[href="#logout"]')||Date.now()>=s?l():r=setTimeout(e,100)}())},"useEventiveLoginPending",0,function(){return(0,t.useSyncExternalStore)(i,()=>n,()=>!1)}])},61808,e=>{"use strict";e.i(96864);var t=e.i(1076),n=e.i(47133),r=e.i(38695),s=e.i(83235);let o={status:"absent"},a={status:"blocked"},i={status:"logged-out"},l=o,c={state:o,mocked:!1},u=new Set;function d(e,t){return e.status===t.status&&("logged-in"!==e.status||"logged-in"!==t.status||e.personName===t.personName)}function f(){let e=l;if(!d(c.state,e)||!1!==c.mocked)for(let t of(c={state:e,mocked:!1},u))t()}function m(e){return u.add(e),()=>{u.delete(e)}}function h(){return c}let p={state:o,mocked:!1};function v(){return p}let g=0,x=null,w=null,b=0;function E(e){d(l,e)||(b+=1,l=e,f())}async function k(e,t){let n=null;
1try{n=await e.getPersonDetails()}catch{return}if(t!==b||"logged-in"!==l.status)return;let r=function(e){if(!e||"object"!=typeof e)return"";let t=e=>"string"==typeof e?e.trim():"",n=[t(e.first_name),t(e.last_name)].filter(Boolean).join(" ");return t(e.full_name)||t(e.name)||n||t(e.email)}(n);r&&(l={status:"logged-in",personName:r},f())}function y(){let e=window.Eventive;if(!e)return void E(o);let t=!1;try{t=!0===e.isLoggedIn()}catch{E(o);return}t?"logged-in"!==l.status&&(E({status:"logged-in",personName:""}),k(e,b)):E(i)}e.s(["clearMockEventiveLoginState",0,function(){},"setMockEventiveLoginState",0,function(e){},"useEventiveLoginState",0,function(){let{isAccepted:e,isHydrated:i}=(0,r.useCookieConsent)(),l=!!(n.EVENTIVE_LOGIN&&n.EVENTIVE_LOADER_URL),c=l&&i&&e("functional");(0,t.useEffect)(()=>{},[]),(0,t.useEffect)(()=>{if(c)return 1===(g+=1)&&((0,s.loadEventive)(),x=(0,s.onEventiveReady)(()=>{y(),w=setInterval(y,1e3)})),()=>{(g-=1)>0||(x?.(),x=null,w&&clearInterval(w),w=null,E(o))}},[c]);let{state:u,mocked:d}=(0,t.useSyncExternalStore)(m,h,v);return d?u:l?i&&!e("functional")?a:u:o}])},89079,64930,e=>{"use strict";var t=e.i(645),n=e.i(1076),r=e.i(61808);function s(e,t){return`${e}:${t}`}let o={event:"events",film:"films"},a={events:{add:[],remove:[]},films:{add:[],remove:[]}};function i(){let e=window.TENANT?.event_bucket??window.EVENTIVE_CONFIG?.event_bucket;return"string"==typeof e&&""!==e?e:null}async function l(e,t){var n;let r,o,a;return r="wishlist"in(n=await e.request({method:"GET",endpoint:`event_buckets/${t}/wishlist`,authenticatePerson:!0})??{})&&n.wishlist&&"object"==typeof n.wishlist?n.wishlist:n,o=new Set,(a=(e,t)=>{if(Array.isArray(t))for(let n of t)"string"==typeof n&&""!==n&&o.add(s(e,n))})("event",r.events),a("film",r.films),o}async function c(e,t,n){await e.request({method:"POST",endpoint:`event_buckets/${t}/wishlist`,authenticatePerson:!0,json:{wishlist:function(e){let t={events:[],films:[]};for(let n of e){let e=n.indexOf(":"),r=o[n.slice(0,e)];r&&t[r].push(n.slice(e+1))}return t}(n),_diff:a,event_bucket:t}})}let u=new Set,d=new Set,f=new Map,m="local",h=0,p=Promise.resolve(),v=new Set,g={ids:u,status:"local",pending:u};function x(){for(let e of(g={ids:function(){let e=new Set(d);for(let[t,n]of f)n?e.add(t):e.delete(t);return e}(),status:m,pending:f.size>0?new Set(f.keys()):u},v))e()}function w(e){return v.add(e),()=>{v.delete(e)}}function b(){return g}let E={ids:u,status:"local",pending:u};function k(){return E}function y(e){if(!e||"function"!=typeof e.request)return!1;try{return!0===e.isLoggedIn()}catch{return!1}}function j(){let e=h+=1;d=new Set,f.clear();try{window.localStorage.removeItem("eventive-wishlist_v2"),window.localStorage.removeItem("faf:favorites")}catch{}let t=window.Eventive;if(!y(t)){m="local",x();return}let n=i();if(!n){m="error",x();return}m="loading",x();let r=l(t,n).then(t=>{e===h&&(d=t,m="ready",x())},t=>{e===h&&(m="error",x(),console.warn("[favorites] could not read the Eventive wishlist:",t))});p=p.then(()=>r)}function L(){h+=1,d=new Set,f.clear(),m="local",x()}async function N(e,t,n){try{let r=window.Eventive,s=i();if(!y(r)||!s)throw Error("Eventive session unavailable");let o=await l(r,s);if(n!==h)return;let a=new Set(o);if(t?a.add(e):a.delete(e),await c(r,s,a),n!==h)return;d=a,"ready"!==m&&(m="ready")}catch(e){if(n!==h)return;console.warn("[favorites] could not write the Eventive wishlist:",e)}finally{n===h&&f.get(e)===t&&f.delete(e),n===h&&x()}}function _(e){if("error"===m)return;let t=!g.ids.has(e);if("local"===m){t?d.add(e):d.delete(e),x();return}f.set(e,t),x();let n=h;p=p.then(()=>N(e,t,n))}e.s(["endFavoritesSession",0,L,"favoriteId",0,s,"getFavoritesSnapshot",0,b,"getServerFavoritesSnapshot",0,k,"startFavoritesSession",0,j,"subscribeToFavorites",0,w,"toggleFavorite",0,_],64930);let S=(0,n.createContext)(null);e.s(["FavoritesProvider",0,function({children:e}){let s="logged-in"===(0,r.useEventiveLoginState)().status;(0,n.useEffect)(()=>{if(s)return j(),L},[s]);let o=(0,n.useSyncExternalStore)(w,b,k),a=(0,n.useMemo)(()=>({savedIds:o.ids,status:o.status,isSaved:e=>o.ids.has(e),isPending:e=>o.pending.has(e),toggle:_}),[o]);return(0,t.jsx)(S.Provider,{value:a,children:e})},"useFavorites",0,function(){let e=(0,n.useContext)(S);if(!e)throw Error("useFavorites must be used inside a <FavoritesProvi
1der>");return e}],89079)},47133,e=>{"use strict";var t=e.i(96864);let n="https://faf2026.eventive.org/loader.js",r=new URL(n).origin,s="false"!==t.default.env.NEXT_PUBLIC_EVENTIVE_DIGITAL_PLAYER;e.s(["DIRECTUS_ASSETS_URL",0,"https://cdn.animationfestival.no/assets/","DIRECTUS_URL",0,"https://directus.animationfestival.no","EVENTIVE_BASE_URL",0,r,"EVENTIVE_DIGITAL_PLAYER",0,s,"EVENTIVE_EVENT_CHECKOUT",0,!0,"EVENTIVE_LOADER_URL",0,n,"EVENTIVE_LOGIN",0,!0,"GA_MEASUREMENT_ID",0,"G-6Y7MCNXL4Y","META_PIXEL_ID",0,"218134523189975","STRIPE_LOADER_URL",0,"https://js.stripe.com/v3/"])},83235,e=>{"use strict";var t=e.i(47133);function n(e,t){if(document.querySelector(`script[data-key="${t}"]`))return;let n=document.createElement("script");n.src=e,n.defer=!0,n.dataset.key=t,document.head.appendChild(n)}let r=!1;e.s(["loadEventive",0,function(){t.EVENTIVE_LOADER_URL&&(r||(r=!0,window.addEventListener("unhandledrejection",e=>{let t=e.reason;null===t||"object"!=typeof t||t instanceof Error||"string"!=typeof t.code||"string"!=typeof t.message||(e.preventDefault(),console.debug("[eventive] suppressed unhandled rejection from widget:",t))})),n(t.EVENTIVE_LOADER_URL,"eventive-loader"))},"loadStripe",0,function(){t.STRIPE_LOADER_URL&&n(t.STRIPE_LOADER_URL,"stripe-loader")},"onEventiveReady",0,function(e){let t=!1,n=null,r=Date.now()+15e3,s=()=>{if(t)return;let o=window.Eventive;o?o.on("ready",()=>{t||e()}):Date.now()>r||(n=setTimeout(s,250))};return s(),()=>{t=!0,n&&clearTimeout(n)}},"rebuildEventiveWidgets",0,function(){window.Eventive?.rebuild()}])},55600,e=>{"use strict";var t=e.i(52590),n=e.i(1076),r=e.i(92630),s=n["use".trim()],o=e.i(44652),a=e.i(48661),i=e.i(24928),l=e.i(645),c=e.i(25968);let{Link:u,redirect:d,permanentRedirect:f,usePathname:m,useRouter:h,getPathname:p}=function(e){let{Link:u,config:d,getPathname:f,...m}=function(e,r){var c,u,d;let f={...c=r||{},localePrefix:"object"==typeof(d=c.localePrefix)?d:{mode:d||"always"},localeCookie:!!((u=c.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof u&&u},localeDetection:c.localeDetection??!0,alternateLinks:c.alternateLinks??!0},m=f.pathnames,h=(0,n.forwardRef)(function({href:t,locale:n,...r},i){let c,u;"object"==typeof t?(c=t.pathname,u=t.params):c=t;let d=(0,o.isLocalizableHref)(t),h=e(),v=(0,o.isPromise)(h)?s(h):h,g=d?p({locale:n||v,href:null==m?c:{pathname:c,params:u},forcePrefix:null!=n||void 0}):c;return(0,l.jsx)(a.default,{ref:i,href:"object"==typeof t?{...t,pathname:g}:g,locale:n,localeCookie:f.localeCookie,...r})});function p(e){let t,{forcePrefix:n,href:r,locale:s}=e;return null==m?"object"==typeof r?(t=r.pathname,r.query&&(t+=(0,i.serializeSearchParams)(r.query))):t=r:t=(0,i.compileLocalizedPathname)({locale:s,...(0,i.normalizeNameOrNameWithParams)(r),pathnames:f.pathnames}),(0,i.applyPathnamePrefix)(t,s,f,n)}function v(e){return function(t,...n){return e(p(t),...n)}}return{config:f,Link:h,redirect:v(t.redirect),permanentRedirect:v(t.permanentRedirect),getPathname:p}}(r.useLocale,e);return{...m,Link:u,usePathname:function(){let e,s,a=(e=(0,t.usePathname)(),s=(0,r.useLocale)(),(0,n.useMemo)(()=>{if(!e)return e;let t=e,n=(0,o.getLocalePrefix)(s,d.localePrefix);if((0,o.hasPathnamePrefixed)(n,e))t=(0,o.unprefixPathname)(e,n);else if("never"!==d.localePrefix.mode&&d.localePrefix.prefixes){let n=(0,o.getLocaleAsPrefix)(s);(0,o.hasPathnamePrefixed)(n,e)&&(t=(0,o.unprefixPathname)(e,n))}return t},[d.localePrefix,s,e])),l=(0,r.useLocale)();return(0,n.useMemo)(()=>a&&d.pathnames?(0,i.getRoute)(l,a,d.pathnames):a,[l,a])},useRouter:function(){let e=(0,t.useRouter)(),s=(0,r.useLocale)(),o=(0,t.usePathname)();return(0,n.useMemo)(()=>{function t(e){return function(t,n){let{locale:r,...a}=n||{},i=[f({href:t,locale:r||s,forcePrefix:null!=r||void 0})];Object.keys(a).length>0&&i.push(a),(0,c.default)(d.localeCookie,o,s,r),e(...i)}}return{...e,push:t(e.push),replace:t(e.replace),prefetch:t(e.prefetch)}},[s,o,e])},getPathname:f}}({locales:["en","no"],defaultLocale:"en",localePrefix:"as-needed"});e.s(["Link",0,u,"usePathname",0,m,"useRouter",0,h],55600)}]);
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.