PageSourceSearch

https://www.tickeri.com/_next/static/chunks/5200-3f1e74ec49ad3049.js

js tickeri.com collected 2026-09-25 15:17:56 UTC 10,222 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="c4e2160d-f55c-44de-a89e-a489976b6abf",e._sentryDebugIdIdentifier="sentry-dbid-c4e2160d-f55c-44de-a89e-a489976b6abf")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5200],{24869:(e,a,s)=>{s.d(a,{A:()=>i});var l=s(37876),r=s(15039),t=s.n(r);let i=(0,s(14232).forwardRef)((e,a)=>{let{name:s,label:r,placeholder:i,description:o,error:n,defaultValue:d,type:c="text",required:m,readOnly:u=!1,id:h,...p}=e;return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"block",children:[r&&"hidden"!==c&&(0,l.jsxs)("label",{htmlFor:s,className:"block pb-1 text-xs font-semibold uppercase tracking-wide text-gray-700",children:[r,m?(0,l.jsx)("span",{className:"mx-1 inline-block text-gray-500",children:"*"}):null]}),(0,l.jsx)("input",{id:h,className:t()("block w-full appearance-none rounded-xl border p-4 text-base leading-tight text-gray-700 outline-none focus:border-gray-500 focus:bg-white focus:outline-none",u?"cursor-default bg-gray-100":"bg-white",n?"border-red focus:border-red":"border-gray-200"),readOnly:u,name:s,defaultValue:d,type:c,placeholder:i,...p,ref:a}),n&&(0,l.jsx)("p",{className:"text-xs italic text-red",children:n})]}),o&&(0,l.jsx)("p",{className:"text-xs italic text-gray-600",children:o})]})})},75200:(e,a,s)=>{s.d(a,{H:()=>j});var l=s(37876),r=s(88992),t=s(89099),i=s(14232),o=s(62002),n=s(99764),d=s(2692),c=s(48230),m=s.n(c),u=s(5132),h=s(24869),p=s(84886),x=s(56539),g=s(74364),f=s(69543),v=s(2313);let b=e=>{let{title:a,description:s,icon:r}=e;return(0,l.jsxs)("div",{className:"flex items-center gap-4",children:[(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsx)("div",{children:(0,l.jsx)(x.In,{name:r,size:"xl"})})}),(0,l.jsxs)("div",{children:[(0,l.jsx)(u.o5,{type:"heading",size:"xs",as:"div",color:"red",children:a}),(0,l.jsx)(u.o5,{type:"base",size:"md",as:"div",children:s})]})]})},y=e=>{var a,s,n;let{onAcceptTerms:d}=e,{t:c}=(0,o.Bd)(),{currentUser:m}=(0,f.As)(),x=(0,t.useRouter)(),[y,{loading:j}]=(0,v.zi9)(),N=(0,i.useRef)(!1),[w,k]=(0,i.useState)(!1),{data:A}=(0,v.ONi)({fetchPolicy:"cache-and-network"}),{register:q,reset:T,handleSubmit:_,formState:{errors:z}}=(0,r.mN)({});(0,i.useEffect)(()=>{if(A){var e,a,s;T({firstName:null===(e=A.me)||void 0===e?void 0:e.firstName,lastName:null===(a=A.me)||void 0===a?void 0:a.lastName,phoneNumber:null===(s=A.me)||void 0===s?void 0:s.phoneNumber})}},[A,T]);let E=async e=>{let{firstName:a,lastName:s,phoneNumber:l}=e;if(!j&&!N.current){N.current=!0,k(!0);try{var r;let e=await y({variables:{input:{agreedToTerms:!0,firstName:a||"",lastName:s||"",phoneNumber:l||""}},refetchQueries:["Me"]});if(null===(r=e.data)||void 0===r?void 0:r.becomeEventOrganizer){if(await (null==m?void 0:m.getIdToken(!0)),d){d();return}await x.push("/promoter",void 0,{locale:"en"})}}finally{N.current=!1,k(!1)}}};return(0,l.jsxs)("div",{className:"flex flex-1 flex-col gap-3",children:[(0,l.jsx)(u.o5,{type:"heading",size:"lg",as:"h2",children:c("page.sell.modal.title")}),(0,l.jsx)(u.o5,{type:"base",size:"xl",as:"h2",children:c("page.sell.modal.subtitle")}),(0,l.jsxs)("div",{className:"m-4 mx-6 flex flex-col gap-6",children:[(0,l.jsx)(b,{title:c("page.sell.modal.item.0.title"),description:c("page.sell.modal.item.0.description"),icon:"noresale_rounded"}),(0,l.jsx)(b,{title:c("page.sell.modal.item.1.title"),description:c("page.sell.modal.item.1.subtitle"),icon:"eo_rounded"})]}),(0,l.jsxs)("section",{children:[(0,l.jsx)("h3",{className:"mb-1 block text-xs font-semibold uppercase tracking-wide text-gray-700",children:c("page.sell.modal.terms-of-service")}),(0,l.jsx)("div",{className:"rounded-xl bg-gray-100 py-3",children:(0,l.jsx)("div",{className:"max-h-[300px] overflow-y-auto rounded-xl",children:(0,l.jsx)(g.TermsContent,{})})})]}),(0,l.jsxs)("form",{className:"items flex flex-col items-stretch justify-between gap-4",onSubmit:_(E),children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,l.jsx)(h.A,{...q("firstName",{required:c("account.first-name.required-message").toString()}),id:"firstName",label:c("account.first-name.label").toString(),required:!0,error:null===(a=z.firstName)||void 0===a?void 0:a.message}),(0,l.jsx)(h.A,{...q("lastName",{required:c("account.last-name.required-message").toString()}),id:"lastName",label:c("account.last-name.label").toString(),required:!0,error:null===(s=z.lastName)||void 0===s?void 0:s.message})]}),(0,l.jsx)(h.A,{id:"phone",type:"tel",label:c("account.phone.label"),required:!0,...q("phoneNumber",{required:c("auth.register.ph
1one.error.required")}),error:null===(n=z.phoneNumber)||void 0===n?void 0:n.message}),(0,l.jsx)(h.A,{name:"date",id:"date",label:"Agreement Date",readOnly:!0,disabled:!0,defaultValue:new Date().toLocaleDateString()}),(0,l.jsx)("div",{className:"mt-3 flex h-full flex-1 flex-col items-stretch justify-stretch",children:(0,l.jsx)(p.$,{variant:"primary",type:"submit",loading:j||w,children:c("page.sell.modal.cta")})})]})]})},j=e=>{var a,s,c,g,b,j;let{defaultState:N=!1,onClose:w,predefinedEmail:k,onAcceptTerms:A}=e,{t:q}=(0,o.Bd)(),T=(0,t.useRouter)(),{currentUser:_,signInWithCustomToken:z}=(0,f.As)(),[E,S]=(0,i.useState)(!_),[F,{data:I,loading:P}]=(0,v.Ekm)(),C=(0,i.useRef)(!1),{register:D,handleSubmit:O,formState:{errors:R},setError:L}=(0,r.mN)(),U=async e=>{var a,s,l,r,t;let{firstName:i,lastName:o,email:n,password:d,confirmPassword:c,phone:m}=e;if(d!==c){L("confirmPassword",{type:"manual",message:q("auth.register.password.error.do-not-match")});return}if(!P&&!C.current)try{C.current=!0;let e=await F({variables:{input:{firstName:i,lastName:o,email:n,password:d,phoneNumber:m}}}).catch(e=>{throw console.error("Error: "),e});(null==e?void 0:null===(s=e.data)||void 0===s?void 0:null===(a=s.createNewUser)||void 0===a?void 0:a.token)?(await z(null===(r=e.data)||void 0===r?void 0:null===(l=r.createNewUser)||void 0===l?void 0:l.token),S(!1)):console.error("Error: No Token on EO Creation",null==I?void 0:I.createNewUser)}catch(e){console.log("catch",e),(null==e?void 0:null===(t=e.message)||void 0===t?void 0:t.includes("already in use"))?(console.error("Error: Email already in use",e),L("email",{type:"manual",message:"An account with this email already exists. Please try to log in."})):L("email",{type:"manual",message:"There was an error creating your account. Please try again."})}finally{C.current=!1}};return(0,l.jsx)(n.e,{show:N,as:i.Fragment,children:(0,l.jsxs)(d.lG,{as:"div",className:"relative z-[100]",onClose:w,children:[(0,l.jsx)(n._,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,l.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-75 transition-opacity"})}),(0,l.jsx)("div",{className:"fixed inset-0 z-10 overflow-y-auto",children:(0,l.jsx)("div",{className:"flex min-h-full items-center justify-center p-1 sm:p-0",children:(0,l.jsx)(n._,{as:i.Fragment,enter:"ease-out duration-300 delay-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,l.jsxs)(d.Lj,{className:"relative m-2 max-w-2xl transform overflow-hidden rounded-lg bg-white p-6 px-4 pb-4 pt-10 text-left shadow-xl transition-all md:w-2/3",children:[(0,l.jsx)("div",{className:"absolute right-0 top-0 pr-4 pt-4",children:(0,l.jsxs)("button",{type:"button",className:"rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-0",onClick:()=>w(),children:[(0,l.jsx)("span",{className:"sr-only",children:"Close"}),(0,l.jsx)(x.In,{name:"x",size:"sm",color:"black"})]})}),E?(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"mx-4 mt-3 sm:mt-5",children:(0,l.jsxs)("div",{className:"mt-2",children:[(0,l.jsx)("div",{className:"my-2",children:(0,l.jsx)(u.o5,{type:"heading",size:"lg",as:"h2",children:q("page.sell.modal.register-title")})}),(0,l.jsx)("div",{className:"my-2",children:(0,l.jsx)(u.o5,{type:"base",size:"xl",as:"h2",children:q("page.sell.modal.register-subtitle")})}),(0,l.jsxs)("form",{onSubmit:O(U),className:"flex flex-col gap-3",children:[(0,l.jsx)(h.A,{id:"firstName",label:q("auth.register.firstName.label"),...D("firstName"),error:null===(a=R.firstName)||void 0===a?void 0:a.message}),(0,l.jsx)(h.A,{id:"lastName",label:q("auth.register.lastName.label"),...D("lastName"),error:null===(s=R.lastName)||void 0===s?void 0:s.message}),(0,l.jsx)(h.A,{id:"email",label:q("page.auth.login.email.label"),type:"email",error:null===(c=R.email)||void 0===c?void 0:c.message,disabled:!!k,...D("email",{required:q("auth.login.input.email.error.required"),value:k,pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}
1$/i,message:q("auth.register.email.error.invalid")}})}),(0,l.jsx)(h.A,{id:"password",label:q("auth.login.input.password.label"),type:"password",error:null===(g=R.password)||void 0===g?void 0:g.message,...D("password",{required:q("auth.login.input.password.error.required"),minLength:{value:6,message:q("auth.register.password.error.length")}})}),(0,l.jsx)(h.A,{id:"confirmPassword",label:q("auth.register.password-confirm.label"),type:"password",...D("confirmPassword"),error:null===(b=R.confirmPassword)||void 0===b?void 0:b.message}),(0,l.jsx)(h.A,{id:"phone",type:"tel",label:q("auth.register.phone.label"),...D("phone",{required:q("auth.register.phone.error.required")}),error:null===(j=R.phone)||void 0===j?void 0:j.message}),(0,l.jsxs)("p",{className:"my-3 flex gap-2 text-sm text-gray-500",children:[(0,l.jsx)("span",{children:q("page.sell.modal.login-cta-description")}),(0,l.jsx)(m(),{className:"font-semibold text-red",href:{pathname:"/login",query:{redirect:T.asPath}},children:q("page.sell.modal.login-cta")})]}),(0,l.jsx)(p.$,{variant:"pill",type:"submit",loading:P,children:q("page.sell.modal.register-cta")})]})]})})}):(0,l.jsx)(y,{onAcceptTerms:A})]})})})})]})})}}}]);

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.