1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="d273f44e-c700-fee6-be4d-c701b75017bb")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,381384,673664,427001,e=>{"use strict";let t;var r=e.i(271645);let s=r.createContext(!1);s.Provider,e.s(["useIsRestoring",0,()=>r.useContext(s)],381384),e.i(843476);let a=r.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}));e.s(["useQueryErrorResetBoundary",0,()=>r.useContext(a)],673664);var i=e.i(619273);e.s(["ensurePreventErrorBoundaryRetry",0,(e,t,r)=>{let s=r?.state.error&&"function"==typeof e.throwOnError?(0,i.shouldThrowError)(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||s)&&!t.isReset()&&(e.retryOnMount=!1)},"getHasError",0,({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(a&&void 0===e.data||(0,i.shouldThrowError)(r,[e.error,s])),"useClearResetErrorBoundary",0,e=>{r.useEffect(()=>{e.clearReset()},[e])}],427001)},254440,e=>{"use strict";e.s(["defaultThrowOnError",0,(e,t)=>void 0===t.state.data,"ensureSuspenseTimers",0,e=>{if(e.suspense){let t=e=>"static"===e?e:Math.max(e??1e3,1e3),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>t(r(...e)):t(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}},"fetchOptimistic",0,(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()}),"shouldSuspend",0,(e,t)=>e?.suspense&&t.isPending])},469637,869230,e=>{"use strict";var t=e.i(912598),r=e.i(381384),s=e.i(673664),a=e.i(427001),i=e.i(254440),n=e.i(271645),o=e.i(619273),l=e.i(540143);e.s(["useBaseQuery",0,function(e,u,c){let h=(0,r.useIsRestoring)(),d=(0,s.useQueryErrorResetBoundary)(),p=(0,t.useQueryClient)(c),m=p.defaultQueryOptions(e),g=p.getQueryCache().get(m.queryHash),y=!1!==e.subscribed;m._optimisticResults=h?"isRestoring":y?"optimistic":void 0,(0,i.ensureSuspenseTimers)(m),(0,a.ensurePreventErrorBoundaryRetry)(m,d,g),(0,a.useClearResetErrorBoundary)(d);let[f]=n.useState(()=>new u(p,m)),v=f.getOptimisticResult(m),x=!h&&y;if(n.useSyncExternalStore(n.useCallback(e=>{let t=x?f.subscribe(l.notifyManager.batchCalls(e)):o.noop;return f.updateResult(),t},[f,x]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),n.useEffect(()=>{f.setOptions(m)},[m,f]),(0,i.shouldSuspend)(m,v))throw(0,i.fetchOptimistic)(m,f,d);if((0,a.getHasError)({result:v,errorResetBoundary:d,throwOnError:m.throwOnError,query:g,suspense:m.suspense}))throw v.error;return m.notifyOnChangeProps?v:f.trackResult(v)}],469637);var u=e.i(180166),c=e.i(273911),h=e.i(915823),d=e.i(175555),p=e.i(286491),m=class extends h.Subscribable{#e;#t=void 0;#r=void 0;#s=void 0;#a;#i;#n;#o;#l;#u;#c;#h;#d;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#n=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#t.addObserver(this),g(this.#t,this.options)?this.#m():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return y(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return y(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#f(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,o.resolveQueryValue)(this.options.enabled,this.#t))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#v(),this.#t.setOptions(this.options),t._defaulted&&!(0,o.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});let s=this.hasListeners();s&&f(this.#t,r,this.options,t)&&this.#m(),this.updateResult(),s&&(this.#t!==r||(0,o.resolveQueryValue)(this.options.enabled,this.#t)!==(0,o.resolveQueryValue)(t.enabled,this.#t)||(0,o.resolveQueryValue)(this.options.staleTime,this.#t)!==(0,o.resolveQueryValue)(t.staleTime,this.#t))&&this.#x();let a=this.#b();s&&(this.#t!==r||(0,o.resolveQueryValue)(this.options.enabled,this.#t)!==(0,o.resolveQueryValue)(t.enabled,this.#t)||a!==this.#d)&&this.#R(a)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return(0,o.shallowEqualObjects)(this.getCurrentResult(),r)||(this.#s=r,this.#i=this.options,this.#a=this.#t.state),r}getCurrentResult(){return this.#s}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),Reflect.get(e,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t,r=this.#e.defaultQueryOptions(e),s=this.#e.getQueryCache().build(this.#e,r),a=()=>{},i=new Promise(e=>{t=e,a=this.#e.getQueryCache().subscribe(t=>{"updated"===t.type&&t.query.queryHash===s.queryHash&&void 0!==s.state.data&&(a(),e(this.createResult(s,r)))})});return Promise.race([s.fetch().then(()=>{let e=this.createResult(s,r);return t?.(e),e}).finally(()=>{a()}),i])}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#m(e){this.#v();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(o.noop)),t}#S(e){return!(0,c.isServer)()&&!1!==(0,o.resolveQueryValue)(this.options.enabled,this.#t)&&(0,o.isValidTimeout)(e)}#x(){this.#y();let e=(0,o.resolveQueryValue)(this.options.staleTime,this.#t);if(this.#s.isStale||!this.#S(e))return;let t=(0,o.timeUntilStale)(this.#s.dataUpdatedAt,e)+1;this.#c=u.timeoutManager.setTimeout(()=>{this.#s.isStale||this.updateResult()},t)}#b(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#R(e){this.#f(),this.#d=e,0!==this.#d&&this.#S(this.#d)&&(this.#h=u.timeoutManager.setInterval(()=>
2{(this.options.refetchIntervalInBackground||d.focusManager.isFocused())&&this.#m()},this.#d))}#g(){this.#x(),this.#R(this.#b())}#y(){void 0!==this.#c&&(u.timeoutManager.clearTimeout(this.#c),this.#c=void 0)}#f(){void 0!==this.#h&&(u.timeoutManager.clearInterval(this.#h),this.#h=void 0)}createResult(e,t){let r,s=this.#t,a=this.options,i=this.#s,n=this.#a,l=this.#i,u=e!==s?e.state:this.#r,{state:c}=e,h={...c},d=!1;if(t._optimisticResults){let r=this.hasListeners(),i=!r&&g(e,t),n=r&&f(e,s,t,a);(i||n)&&(h={...h,...(0,p.fetchState)(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(h.fetchStatus="idle")}let{error:m,errorUpdatedAt:y,status:x}=h;r=h.data;let b=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===x){let e;i?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(e=i.data,b=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,void 0!==e&&(x="success",r=(0,o.replaceData)(i?.data,e,t),d=!0)}if(t.select&&void 0!==r&&!b)if(i&&r===n?.data&&t.select===this.#o)r=this.#l;else try{this.#o=t.select,r=t.select(r),r=(0,o.replaceData)(i?.data,r,t),this.#l=r,this.#n=null}catch(e){this.#n=e}else void 0===r&&(this.#n=null);this.#n&&(m=this.#n,r=this.#l,y=Date.now(),x="error",d=!1);let R="fetching"===h.fetchStatus,S="pending"===x,O="error"===x,w=S&&R,_=void 0!==r;return{status:x,fetchStatus:h.fetchStatus,isPending:S,isSuccess:"success"===x,isError:O,isInitialLoading:w,isLoading:w,data:r,dataUpdatedAt:h.dataUpdatedAt,error:m,errorUpdatedAt:y,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:R,isRefetching:R&&!S,isLoadingError:O&&!_,isPaused:"paused"===h.fetchStatus,isPlaceholderData:d,isRefetchError:O&&_,isStale:v(e,t),refetch:this.refetch,isEnabled:!1!==(0,o.resolveQueryValue)(t.enabled,e)}}updateResult(){let e=this.#s,t=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#i=this.options,void 0!==this.#a.data&&(this.#u=this.#t),(0,o.shallowEqualObjects)(t,e))return;this.#s=t;let r=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#p.size)return!0;let s=new Set(r??this.#p);return this.options.throwOnError&&s.add("error"),Object.keys(this.#s).some(t=>this.#s[t]!==e[t]&&s.has(t))})();l.notifyManager.batch(()=>{r&&this.listeners.forEach(e=>{e(this.#s)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}#v(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}};function g(e,t){return!1!==(0,o.resolveQueryValue)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==(0,o.resolveQueryValue)(t.retryOnMount,e))||void 0!==e.state.data&&y(e,t,t.refetchOnMount)}function y(e,t,r){if(!1!==(0,o.resolveQueryValue)(t.enabled,e)&&"static"!==(0,o.resolveQueryValue)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&v(e,t)}return!1}function f(e,t,r,s){return(e!==t||!1===(0,o.resolveQueryValue)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&v(e,r)}function v(e,t){return!1!==(0,o.resolveQueryValue)(t.enabled,e)&&e.isStaleByTime((0,o.resolveQueryValue)(t.staleTime,e))}e.s(["QueryObserver",0,m],869230)},266027,e=>{"use strict";var t=e.i(469637),r=e.i(869230);e.s(["useQuery",0,function(e,s){return(0,t.useBaseQuery)(e,r.QueryObserver,s)}])},154452,e=>{"use strict";var t=e.i(254440),r=e.i(469637),s=e.i(869230);e.s(["useSuspenseQuery",0,function(e,a){return(0,r.useBaseQuery)({...e,enabled:!0,suspense:!0,throwOnError:t.defaultThrowOnError,placeholderData:void 0},s.QueryObserver,a)}])},191476,e=>{"use strict";let{Axios:t,AxiosError:r,CanceledError:s,isCancel:a,CancelToken:i,VERSION:n,all:o,Cancel:l,isAxiosError:u,spread:c,toFormData:h,AxiosHeaders:d,HttpStatusCode:p,formToJSON:m,getAdapter
2:g,mergeConfig:y,create:f}=e.i(581949).default;e.s(["AxiosError",0,r,"HttpStatusCode",0,p])},716327,26495,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",0,t],26495),e.s(["ChevronDown",0,t],716327)},77071,e=>{"use strict";let t=(0,e.i(456420).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],77071)},863763,e=>{"use strict";var t=e.i(843476);let r=(0,e.i(456420).default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]);var s=e.i(948148),a=e.i(618566),i=e.i(485290),n=e.i(54707),o=e.i(327857),l=e.i(520133),u=e.i(704626),c=e.i(689664),h=e.i(716327),d=e.i(77071),p=e.i(271645),m=e.i(116361);let g=({orgSlug:e,events:r,currentEventId:a,currentEventName:i})=>{let n=(0,s.useTranslations)(),o=(0,l.usePathname)(),[g,y]=(0,p.useState)(!1),f=t=>`${u.Paths.MANAGE_ORG}/${e}${u.Paths.EVENT}/${t}`,v=a?f(a):void 0,x=v&&o.startsWith(v)?o.slice(v.length):"";return(0,t.jsxs)(m.DropdownContainer,{isOpen:g,onClose:()=>y(!1),placement:"bottom-start",offsetNumber:4,children:[(0,t.jsxs)("button",{onClick:()=>y(!g),className:"flex items-center gap-2 rounded-md px-2 py-1 text-gray-100 hover:bg-gray-700/50",children:[(0,t.jsx)("span",{className:"font-medium",children:i}),(0,t.jsx)(h.ChevronDown,{size:14,className:"shrink-0 text-gray-400"})]}),(0,t.jsxs)("div",{className:"w-72 border border-gray-700 bg-gray-800",children:[(0,t.jsxs)("div",{className:"scrollbar-hide max-h-[280px] overflow-y-auto py-1",children:[r.map(e=>(0,t.jsx)(l.Link,{href:`${f(e.id)}${x}`,onClick:()=>y(!1),children:(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2.5 text-sm text-gray-300 hover:bg-gray-700 hover:text-white",children:[(0,t.jsx)("div",{className:"w-4 shrink-0",children:e.id===a&&(0,t.jsx)(c.Check,{size:14,className:"text-emerald-400"})}),(0,t.jsx)("span",{className:"truncate",children:e.title})]})},e.id)),0===r.length&&(0,t.jsx)("div",{className:"px-3 py-4 text-center text-sm text-gray-500",children:n("manage.organization.empty_event")})]}),(0,t.jsx)("div",{className:"border-t border-gray-700 py-1",children:(0,t.jsx)(l.Link,{href:`${u.Paths.MANAGE_ORG}/${e}${u.Paths.EVENT}/new`,onClick:()=>y(!1),children:(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2.5 text-sm text-gray-400 hover:bg-gray-700 hover:text-white",children:[(0,t.jsx)(d.Plus,{size:14}),(0,t.jsx)("span",{children:n("manage.organization.event_register")})]})})})]})]})};var y=e.i(583296),f=e.i(246681),v=e.i(63490),x=e.i(871762);let b=()=>{let e=(0,s.useTranslations)(),r=(0,n.useUser)(),a=(0,x.useClearUserState)(),[i,o]=(0,p.useState)(!1),[c,h]=(0,p.useState)(!1),d=[{label:e("manage.header.my_account"),path:u.Paths.MY_ACCOUNT},{label:e("manage.header.logout"),path:void 0,action:()=>h(!0)}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.DropdownContainer,{isOpen:i,onClose:()=>o(!1),offsetNumber:{mainAxis:8,crossAxis:20},children:[(0,t.jsx)("button",{onClick:()=>o(!i),className:"rounded-md p-2 text-gray-300 hover:bg-gray-700/50 hover:text-white","aria-label":"User menu",children:(0,t.jsx)(y.UserCircle2,{size:20})}),(0,t.jsxs)("div",{className:"w-56 border border-gray-700 bg-gray-800",children:[(0,t.jsxs)("div",{className:"border-b border-gray-700 px-4 py-3",children:[(0,t.jsx)("div",{className:"text-xs tracking-wider text-gray-400 uppercase",children:e("manage.header.my")}),(0,t.jsx)("div",{className:"mt-0.5 truncate text-sm font-medium text-gray-100",children:r?.email})]}),(0,t.jsx)("div",{className:"py-2",children:d.map((e,r)=>e.path?(0,t.jsx)(l.Link,{href:e.path,children:(0,t.jsx)("button",{className:"w-full px-4 py-2.5 text-left text-sm text-gray-300 hover:bg-gray-700 hover:text-white",onClick:()=>o(!1),children:e.label})},r):(0,t.jsx)("button",{onClick:()=>{e.action?.(),o(!1)},className:"w-full px-4 py-2.5 text-left text-sm text-gray-300 hover:bg-gray-700 hover:text-white",children:e.label},r))})]})]}),(0,t.jsx)(f.ModalAlert,{isOpen:c,onClose:()=>h(!1),description:e("manage.header.logout_confirm"),confirmText:e("manage.header.logout"),onConfirm:async()=>{h(!1),await v.UserService.logout(),a()}
2,isCancel:!0,color:"gray"})]})},R=({organizations:e,currentOrgSlug:r,currentOrgName:a})=>{let i=(0,s.useTranslations)(),[n,o]=(0,p.useState)(!1);return(0,t.jsxs)(m.DropdownContainer,{isOpen:n,onClose:()=>o(!1),placement:"bottom-start",offsetNumber:4,children:[(0,t.jsxs)("button",{onClick:()=>o(!n),className:"flex items-center gap-2 rounded-md px-2 py-1 text-gray-100 hover:bg-gray-700/50",children:[(0,t.jsx)("span",{className:"font-medium",children:a}),(0,t.jsx)(h.ChevronDown,{size:14,className:"shrink-0 text-gray-400"})]}),(0,t.jsxs)("div",{className:"w-64 border border-gray-700 bg-gray-800",children:[(0,t.jsx)("div",{className:"scrollbar-hide max-h-[240px] overflow-y-auto py-1",children:e.map(e=>(0,t.jsx)(l.Link,{href:`${u.Paths.MANAGE_ORG}/${e.slug}`,onClick:()=>o(!1),children:(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2.5 text-sm text-gray-300 hover:bg-gray-700 hover:text-white",children:[(0,t.jsx)("div",{className:"w-4 shrink-0",children:e.slug===r&&(0,t.jsx)(c.Check,{size:14,className:"text-emerald-400"})}),(0,t.jsx)("span",{className:"truncate",children:e.name})]})},e.id))}),(0,t.jsxs)("div",{className:"border-t border-gray-700 py-1",children:[(0,t.jsx)(l.Link,{href:u.Paths.MANAGE_ORGANIZATIONS,onClick:()=>o(!1),children:(0,t.jsx)("div",{className:"px-3 py-2.5 text-sm text-gray-400 hover:bg-gray-700 hover:text-white",children:i("manage.organizations.all_organizations")})}),(0,t.jsx)(l.Link,{href:u.Paths.MANAGE_ORG_NEW,onClick:()=>o(!1),children:(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2.5 text-sm text-gray-400 hover:bg-gray-700 hover:text-white",children:[(0,t.jsx)(d.Plus,{size:14}),(0,t.jsx)("span",{children:i("manage.organizations.create")})]})})]})]})]})};var S=e.i(901279),O=e.i(503486);let w=()=>{let e=(0,s.useTranslations)(),{signinPath:r}=(0,O.useSignin)();return(0,t.jsxs)(l.Link,{href:r,className:"flex items-center gap-1 rounded-md px-2 py-2 text-gray-300 transition-all duration-200 hover:bg-gray-700/50 hover:text-white md:px-3",children:[(0,t.jsx)(S.User,{size:20}),(0,t.jsx)("span",{className:"hidden text-sm font-medium md:block",children:e("manage.header.login")})]})};e.s(["Header",0,()=>{let e=(0,s.useTranslations)(),c=(0,n.useUser)(),h=(0,a.useParams)(),d=h.orgSlug?.toString(),p=h.eventId?.toString(),{data:m}=(0,i.useOrganizationsQueryNonSuspense)(c?.id||"",{enabled:!!c&&!!d}),y=m?.map(e=>e.organization)??[],f=m?.find(e=>e.organization.slug===d),v=f?.events??[],x=v.find(e=>e.id===p),S=d?"t":e("common.app_name_en_brand"),O=d?`${u.Paths.MANAGE_ORG}/${d}`:u.Paths.MANAGE_ORGANIZATIONS;return(0,t.jsx)("header",{className:"z-floating sticky top-0 bg-linear-to-r from-gray-900 to-gray-800",children:(0,t.jsx)("div",{className:"h-16 overflow-x-auto border-b border-gray-800 px-4",children:(0,t.jsxs)("div",{className:"flex h-full items-center justify-between gap-2",children:[(0,t.jsxs)("nav",{className:"flex items-center whitespace-nowrap",children:[(0,t.jsxs)(l.Link,{href:O,className:(0,o.cn)("mr-2",!d&&"flex flex-col"),children:[(0,t.jsx)("div",{className:(0,o.cn)("font-black tracking-tight text-white",d?"text-2xl leading-none":"text-xl leading-none"),children:S}),!d&&(0,t.jsx)("span",{className:"text-lg leading-none font-light text-white",children:e("common.app_name_business")})]}),d&&f&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"mx-1 text-gray-500",children:"/"}),(0,t.jsx)(R,{organizations:y,currentOrgSlug:d,currentOrgName:f.organization.name})]}),d&&p&&x&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"mx-1 text-gray-500",children:"/"}),(0,t.jsx)(g,{orgSlug:d,events:v,currentEventId:p,currentEventName:x.title})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(l.Link,{href:u.Paths.HOME,className:"rounded-md p-2 text-gray-300 hover:bg-gray-700/50 hover:text-white","aria-label":"Go to main site",children:(0,t.jsx)(r,{size:20})}),c?(0,t.jsx)(b,{}):(0,t.jsx)(w,{})]})]})})})}],863763)},948805,e=>{"use strict";class t{static fromSupabaseOrganization(e){return{id:e.id,slug:e.slug,name:e.name}}static fromSupabaseOrganizationWithRole(e,r,s){return{...t.fromSupabaseOrganization(e),role:r,permissions:s}}static fromSupabaseOrganizationWithFollow(e){return{...t.fromSupabaseOrganization(e),isFollowing:e.is_following}}static fromSupabaseOrgFollower(e){return{userId:e.user_id,name:e.name,eventCount:e.event_c
2ount,createdAt:new Date(e.created_at)}}static fromSupabaseOrganizer(e,t){return{id:e.id,organizationId:e.organization_id,userId:e.user_id,email:t.email,name:{firstName:t.first_name,lastName:t.last_name},role:e.role,permissions:e.permissions}}}e.s(["OrganizationMapper",0,t])},843636,e=>{"use strict";e.s(["VenueMapper",0,class{static fromSupabaseVenue(e){return{id:e.id,address:e.address,region:e.region,city:e.city,postcode:e.postcode??void 0,latitude:e.latitude,longitude:e.longitude,addressEn:e.address_en??void 0,addressJa:e.address_ja??void 0,placeName:e.place_name??void 0,placeNameEn:e.place_name_en??void 0,placeNameJa:e.place_name_ja??void 0,kakaoPlaceId:e.kakao_place_id??void 0,kakaoPlaceUrl:e.kakao_place_url??void 0,phone:e.phone??void 0,googlePlaceId:e.google_place_id??void 0,googlePlaceUrl:e.google_place_url??void 0}}static fromEventVenueToInput(e){return{address:e.address,region:e.region,city:e.city,postcode:e.postcode,latitude:e.latitude,longitude:e.longitude,addressEn:e.addressEn,addressJa:e.addressJa,placeName:e.placeName,placeNameEn:e.placeNameEn,placeNameJa:e.placeNameJa,kakaoPlaceId:e.kakaoPlaceId,kakaoPlaceUrl:e.kakaoPlaceUrl,phone:e.phone,googlePlaceId:e.googlePlaceId,googlePlaceUrl:e.googlePlaceUrl}}}])},107104,509807,e=>{"use strict";var t=e.i(547837),r=e.i(843636),s=e.i(266463);class a{static fromSupabaseEvent(e){return{eventId:e.id,maxOwnerTickets:e.max_owner_tickets??void 0,allowTicketCancel:e.allow_ticket_cancel,cancelCutoffDays:e.cancel_cutoff_days??void 0,cancelCutoffTime:e.cancel_cutoff_time?s.TimeUtil.toTime(e.cancel_cutoff_time):void 0,allowTicketTransfer:e.allow_ticket_transfer,transferCutoffDays:e.transfer_cutoff_days??void 0,transferCutoffTime:e.transfer_cutoff_time?s.TimeUtil.toTime(e.transfer_cutoff_time):void 0,displayTicketCount:e.display_ticket_count,externalUrl:e.external_url??void 0}}}e.s(["EventSettingsMapper",0,a],509807),e.s(["EventMapper",0,class{static fromSupabaseEvent(e,t){return{...this.fromSupabaseEventMeta(e),...this.fromSupabaseEventLocation(e,t),description:{html:e.description,mode:e.description_mode},settings:a.fromSupabaseEvent(e)}}static fromSupabaseEventMetaWithLocation(e,t){return{...this.fromSupabaseEventMeta(e),...this.fromSupabaseEventLocation(e,t)}}static fromSupabaseEventMeta(e){return{id:e.id,organizationId:e.organization_id??void 0,title:e.title,imageUrl:e.image_url,startDate:new Date(e.start_date),endDate:new Date(e.end_date),status:e.status,createdAt:new Date(e.created_at)}}static fromSupabaseEventLocation(e,r){return e.location_type===t.LocationType.OFFLINE&&r?{locationType:t.LocationType.OFFLINE,venue:this.fromSupabaseVenueToEventVenue(r,e.venue_detail)}:{locationType:t.LocationType.ONLINE,onlineUrl:e.online_url??void 0}}static fromSupabaseVenueToEventVenue(e,t){return{...r.VenueMapper.fromSupabaseVenue(e),placeDetail:t??void 0}}}],107104)},181077,e=>{"use strict";var t=e.i(191476);class r extends t.AxiosError{digest;constructor(e,t,r){super(e),this.name="ApiError",this.status=t,this.digest=t.toString(),this.code=r}}e.s(["ApiError",0,r])},385097,e=>{"use strict";var t=e.i(191476),r=e.i(948805),s=e.i(107104),a=e.i(181077),i=e.i(250113),n=e.i(839767);e.s(["ManageOrgService",0,class{static async fetchOrganizations(e){let t=(0,n.createSupabaseForClient)(),{data:a,error:i}=await t.from("organizers").select(` 3 role, permissions, 4 organizations (*, 5 events (id, organization_id, title, image_url, start_date, end_date, status, created_at)) 6 `).eq("user_id",e);if(i)throw i;return 0===a.length?[]:a.sort((e,t)=>new Date(t.organizations.created_at).getTime()-new Date(e.organizations.created_at).getTime()).map(e=>({organization:r.OrganizationMapper.fromSupabaseOrganizationWithRole(e.organizations,e.role,e.permissions),events:e.organizations.events.sort((e,t)=>new Date(t.start_date).getTime()-new Date(e.start_date).getTime()).map(e=>s.EventMapper.fromSupabaseEventMeta(e))}))}static async fetchOrganization(e,i){let o=(0,n.createSupabaseForClient)(),{data:l,error:u}=await o.from("organizers").select(` 7 role, permissions, 8 organizations!inner (*, 9 events (id, organization_id, title, image_url, start_date, end_date, status, created_at)) 10 `).eq("organizations.slug",i).eq("user_id",e).single();if(u)throw new a.ApiError("Organization does not belong to this user",t.HttpStatusCode.NotFound);return{organization:r.OrganizationMapper.fromSupabaseOrganizationWithRole(l.organizations,l.role,l.permissions),events:l.organizations.events.sort((e,t)=>
10new Date(t.start_date).getTime()-new Date(e.start_date).getTime()).map(e=>s.EventMapper.fromSupabaseEventMeta(e))}}static async createOrganization(e){return{organizationSlug:(await i.apiClient.post("/organizations-create",{name:e})).data.slug}}static async updateOrganization(e,t){await i.apiClient.put(`/organizations-update/${e}`,{name:t.name,slug:t.slug})}static async deleteOrganization(e){await i.apiClient.delete(`/organizations-delete/${e}`)}}])},485290,e=>{"use strict";var t=e.i(266027),r=e.i(154452),s=e.i(385097),a=e.i(381832);e.s(["useOrganizationQuery",0,function(e,t,i){return(0,r.useSuspenseQuery)({queryKey:a.queryKeys.manage.organizations.detail(e,t),queryFn:()=>s.ManageOrgService.fetchOrganization(e,t),...i})},"useOrganizationQueryNonSuspense",0,function(e,r,i){return(0,t.useQuery)({queryKey:a.queryKeys.manage.organizations.detail(e,r),queryFn:()=>s.ManageOrgService.fetchOrganization(e,r),...i})},"useOrganizationsQueryNonSuspense",0,function(e,r){return(0,t.useQuery)({queryKey:a.queryKeys.manage.organizations.all(e),queryFn:()=>s.ManageOrgService.fetchOrganizations(e),...r})}])},381832,e=>{"use strict";e.s(["queryKeys",0,{followStatus:(e,t,r)=>["follow-status",e,t,r],manage:{organizations:{all:e=>["all-organizations",e],detail:(e,t)=>["organization",e,t],organizers:e=>["organizers",e],webhooks:e=>["webhooks",e]},event:{detail:e=>["manage","events",e],sales:e=>["manage-sales",e],formQuestions:e=>["form-questions",e],links:e=>["event-links",e],entryDashboard:e=>["entry-dashboard",e],messages:e=>["event-messages",e],settlement:e=>["settlement",e]}}}])},266463,e=>{"use strict";e.s(["TimeUtil",0,class{static toTime(e){let[t=0,r=0,s=0]=e.split(":").map(Number);return{hour:t,minute:r,second:s}}static toTimeString(e){let{hour:t,minute:r}=e;return[t,r].map(e=>String(e).padStart(2,"0")).join(":")}}])}]); 11 12//# debugId=d273f44e-c700-fee6-be4d-c701b75017bb
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.