PageSourceSearch

https://zurich.tech/_build/assets/registration-B-LbWE4r.js

js zurich.tech collected 2026-10-10 02:24:28 UTC 4,106 bytes, 1 lines download raw bytes

1import{a8 as N,J as B,e as t,m as o,S as u,D as g,K as c,H as n,a6 as k,a7 as O,L as Z,M as q,F as J,G as d,p as K}from"./site-BCoO7TA2.js";import{u as j,V as z,R as I}from"./status-CzG4iWT8.js";import{P as Q}from"./checkin-CWdpuZMk.js";import{F as U}from"./feedback-DNvnHLNc.js";import{u as W}from"./queries-BtYmsPy5.js";import{i as y}from"./conditions-a1kdkuEp.js";import{C as h}from"./card-CKqXliD8.js";import{p as X,b as Y}from"./api-DYGBSnSs.js";import{D as C,b as l,P as ee}from"./page-QsPRi5Lr.js";import{S as te}from"./seo-CsHCCDYE.js";import{F as re}from"./form-DC9r6cAw.js";import{e as ne}from"./errors-_oTcgDzD.js";/* empty css                */import"./arrow-BmITpzc3.js";import"./venue-C1ZVqCFt.js";import"./preload-helper-ug3pwPZ1.js";import"./maplibre-gl-worker-CEtC9_G8.js";import"./filter-pills-CkHc8OIE.js";import"./toolbar-DeIhfsxM.js";/* empty css                      */import"./edit-BC_wQon8.js";import"./query-3Fkuem1O.js";import"./createAsync-Dt8DBKwY.js";var ae=d("<p role=status>"),ie=d("<a class=button href=/events>View events"),le=d("<p>"),se=d("<button class=button>"),oe=d('<div class="listing-layout registration-layout"><div class=editor-column><!$><!/><!$><!/><!$><!/></div><div class=editor-column><!$><!/><!$><!/>');function Le(){const[i]=N(),[r,{refetch:$}]=B(()=>typeof i.token=="string"?i.token:void 0,async e=>await X().query(Y.events.registrations.get,{token:e})),{cancel:w,error:x,isPending:f}=j(()=>String(i.token),async()=>{await $()});W(()=>!!r.latest&&r.latest.eventStatus==="scheduled"&&y(r.latest),$);const p=()=>r.error?void 0:r();return[t(te,{get title(){return o(()=>!!p()?.title)()?`Registration: ${p().title}`:"Registration"},description:"Manage your event registration."}),t(ee,{get children(){return t(u,{get when(){return p()},get fallback(){return t(h,{title:"Registration",heading:"h1",get children(){return[(()=>{var e=g(ae);return n(e,(()=>{var m=o(()=>!!r.loading);return()=>m()?"Loading…":o(()=>!!r.error)()?ne(r.error,"Could not load registration."):i.token?"This link is invalid. Open the latest link from your registration email.":"Open the link from your registration email."})()),e})(),g(ie)]}})},children:e=>(()=>{var m=g(oe),s=m.firstChild,R=s.firstChild,[_,D]=c(R.nextSibling),P=_.nextSibling,[S,E]=c(P.nextSibling),F=S.nextSibling,[L,T]=c(F.nextSibling),v=s.nextSibling,M=v.firstChild,[b,V]=c(M.nextSibling),A=b.nextSibling,[G,H]=c(A.nextSibling);return n(s,t(h,{get title(){return e().title},get titleHref(){return`/events/${e().slug}`},heading:"h1",get children(){return[t(u,{get when(){return e().summary},get children(){var a=g(le);return n(a,()=>e().summary),a}}),t(C,{get children(){return[t(l,{label:"Date",get value(){return new Date(e().startsAt).toLocaleDateString("en-GB",{timeZone:k,day:"numeric",month:"long",year:"numeric"})}}),t(l,{label:"Time",get value(){return`${new Date(e().startsAt).toLocaleTimeString("en-GB",{timeZone:k,hour:"2-digit",minute:"2-digit"})} · Zurich time`}}),t(u,{get when(){return e().location},get children(){return t(l,{label:"Venue",get value(){return e().location}})}})]}})]}}),_,D),n(s,t(z,{get venue(){return e().venue}}),S,E),n(s,t(U,{get token(){return String(i.token)}}),L,T),n(v,t(h,{title:"Registration",get children(){return[t(C,{get children(){return[t(l,{label:"Status",get value(){return t(I,{get status(){return e().status},get isCancelled(){return e().eventStatus==="cancelled"},get isTentative(){return y(e())}})}}),t(l,{label:"Name",get value(){return e().name}}),t(l,{label:"Email",get value(){return e().email}})]}}),t(u,{get when(){return o(()=>e().eventStatus!=="cancelled"&&e().startsAt>Date.now()&&e().status!=="cancelled")()&&e().status!=="declined"},get children(){var a=g(se);return O(a,"click",w,!0),n(a,()=>f()?"Cancelling…":"Cancel registration"),Z(()=>q(a,"disabled",f())),J(),a}}),t(re,{get error(){return x()}})]}}),b,V),n(v,t(u,{get when(){return o(()=>e().status==="going"&&e().eventStatus!=="cancelled")()&&e().eventStatus!=="draft"},get children(){return t(Q,{get token(){return String(i.token)}})}}),G,H),m})()})}})]}K(["click"]);export{Le 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.