(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9566],{16684:function(e,t,r){Promise.resolve().then(r.bind(r,37381)),Promise.resolve().then(r.bind(r,77052)),Promise.resolve().then(r.bind(r,18550))},28471:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});let a=(0,r(92033).Z)("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},28600:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});let a=(0,r(92033).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},5250:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});let a=(0,r(92033).Z)("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]])},31550:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});let a=(0,r(92033).Z)("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},41550:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});let a=(0,r(92033).Z)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},85448:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});let a=(0,r(92033).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},74066:function(e,t,r){"use strict";r.d(t,{b:function(){return x}});var a=r(43728),s=r(28600),n=r(85448),o=r(28471),l=r(41550),i=r(87411),d=r(71251),c=r(66192);let u=(0,d.j)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{error:"border-red-400 text-red-600 [&>svg]:text-red-600 bg-red-50",default:"bg-background text-foreground",success:"border-green-400 text-green-600 [&>svg]:text-green-600 bg-green-50",warning:"border-yellow-400 text-yellow-600 [&>svg]:text-yellow-600 bg-yellow-50",destructive:"border-destructive/50 text-destructive [&>svg]:text-destructive",info:"border-0 bg-blue-50 text-primary-blue [&>svg]:text-primary-blue"}},defaultVariants:{variant:"default"}}),f=i.forwardRef((e,t)=>{let{className:r,variant:s,...n}=e;return(0,a.jsx)("div",{ref:t,role:"alert",className:(0,c.cn)(u({variant:s}),r),...n})});f.displayName="Alert";let m=i.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h5",{ref:t,className:(0,c.cn)("mb-1 font-medium leading-none tracking-tight",r),...s})});m.displayName="AlertTitle";let p=i.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,c.cn)("text-sm [&_p]:leading-relaxed",r),...s})});p.displayName="AlertDescription";let x=e=>{let{allignment:t="center",title:r,message:d,type:u="default",className:x,customIcon:g}=e,y=(0,i.useMemo)(()=>{switch(u){case"success":return(0,a.jsx)(s.Z,{className:"w-5 h-5 p-0.5 text-white bg-green-600 rounded-full"});case"error":return(0,a.jsx)(n.Z,{className:"w-5 h-5 p-0.5 text-white bg-red-600 rounded-full"});case"warning":return(0,a.jsx)(o.Z,{className:"w-5 h-5 p-0.5 text-white bg-yellow-600 rounded-full"});case"info":return(0,a.jsx)(l.Z,{className:"w-5 h-5 p-0.5 text-primary-blue"})}},[u]);return(0,a.jsxs)(f,{className:(0,c.cn)("flex px-2 py-2.5 space-x-2 rounded-md","center"===t&&"items-center","start"===t&&"items-start","end"===t&&"items-end"),variant:u,children:[(0,a.jsx)("div",{children:null!=g?g:y}),(0,a.jsxs)("div",{children:[r&&(0,a.jsx)(m,{className:"font-semibold font-gotham",children:r}),"string"==typeof d?(0,a.jsx)(p,{className:x,children:d}):d]})]})}},15017:function(e,t,r){"use strict";r.d(t,{I:function(){return c}});var a=r(43728),s=r(87411),n=r(89),o=r(15228),l=r(47195),i=r(57654),d=r(66192);let c=e=>{let{control:t,name:r,placeholder:c,label:u,required:f=!1,className:m,type:p,disabled:x,hint:g,isVerified:y=!1,...h}=e,[b,v]=(0,s.useState)(!1);return(0,a.jsx)(o.Wi,{...h,control:t,name:r,render:e=>{let{field:t}=e;return(0,a.jsxs)(o.xJ,{children:[(0,a.jsxs)("div",{className:(0,d.cn)("border-2  pt-2 rounded-md",m,b?"border-primary-blue":"border-gray-200",x?"bg-gray-100":"bg-white"),children:[(0,a.jsxs)(i._,{className:"px-3 text-sm text-primary-blue",children:[u," ",f&&(0,a.jsx)("span",{children:" *"})]}),(0,a.jsx)(o.NI,{children:(0,a.jsx)(l.I,{className:(0,d.cn)(x?"bg-gray-100":""),type:p,placeholder:c,...t,onBlur:()=>v(!1),onFocus:e=>{v(!0),"number"==p&&e.target.addEventListener("wheel",function(e){e.preventDefault()},{passive:!1})},disabled:x})})]}),"email"===p&&y&&(0,a.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,a.jsx)(n.YJ,{}),(0,a.jsx)("p",{className:"text-xs leading-tight text-green-600",children:"Email verified success"})]}),g&&(0,a.jsx)("p",{className:"text-xs leading-tight text-gray-500",dangerouslySetInnerHTML:{__html:g}}),(0,a.jsx)(o.zG,{})]})}})}},67441:function(e,t,r){"use strict";r.d(t,{u:function(){return b}});var a={};r.r(a),r.d(a,{Dialog:function(){return c},DialogContent:function(){return p},DialogDescription:function(){return h},DialogFooter:function(){return g},DialogHeader:function(){return x},DialogTitle:function(){return y},DialogTrigger:function(){return u}});var s=r(43728),n=r(87411),o=r(84319),l=r(44028),i=r(85448),d=r(66192);let c=l.fC,u=l.xz,f=e=>{let{...t}=e;return(0,s.jsx)(l.h_,{...t})};f.displayName=l.h_.displayName;let m=n.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(l.aV,{ref:t,className:(0,d.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 overflow-y-auto py-16 grid place-items-center",r),...a})});m.displayName=l.aV.displayName;let p=n.forwardRef((e,t)=>{let{className:r,children:a,withOutClose:n=!1,inlineClose:o=!1,...c}=e;return(0,s.jsx)(f,{children:(0,s.jsx)(m,{children:(0,s.jsxs)(l.VY,{ref:t,className:(0,d.cn)("z-50 grid w-full max-w-lg gap-4 bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg md:w-full relative",r),...c,children:[a,!n&&(0,s.jsxs)(l.x8,{className:(0,d.cn)("absolute rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground bg-blue-100 p-1",o?"right-6 top-5":"right-4 top-4"),children:[(0,s.jsx)(i.Z,{className:"w-5 h-5 text-primary-blue"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})})})});p.displayName=l.VY.displayName;let x=e=>{let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,d.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...r})};x.displayName="DialogHeader";let g=e=>{let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,d.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};g.displayName="DialogFooter";let y=n.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(l.Dx,{ref:t,className:(0,d.cn)("text-lg font-semibold leading-none tracking-tight",r),...a})});y.displayName=l.Dx.displayName;let h=n.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(l.dk,{ref:t,className:(0,d.cn)("text-sm text-muted-foreground",r),...a})});h.displayName=l.dk.displayName;let b=e=>{let{open:t,setOpen:r,children:l,className:i,title:c,withOutClose:u=!0,inlineClose:f=!1,withScroll:m=!1}=e,p=(0,n.useMemo)(()=>m?a:o,[m]);return(0,s.jsx)(p.Dialog,{open:t,onOpenChange:r,children:(0,s.jsxs)(p.DialogContent,{className:(0,d.cn)("w-10/12 mx-auto sm:max-w-[425px] rounded",i),withOutClose:u,inlineClose:f,children:[c&&(0,s.jsx)(p.DialogHeader,{className:"text-left",children:(0,s.jsx)(p.DialogTitle,{className:(0,d.cn)("mb-3 text-primary",f?"font-medium":"font-bold"),children:c})}),l]})})}},84319:function(e,t,r){"use strict";r.r(t),r.d(t,{Dialog:function(){return i},DialogClose:function(){return u},DialogContent:function(){return m},DialogDescription:function(){return y},DialogFooter:function(){return x},DialogHeader:function(){return p},DialogOverlay:function(){return f},DialogPortal:function(){return c},DialogTitle:function(){return g},DialogTrigger:function(){return d}});var a=r(43728),s=r(44028),n=r(85448),o=r(87411),l=r(66192);let i=s.fC,d=s.xz,c=s.h_,u=s.x8,f=o.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.aV,{ref:t,className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 overflow-y-auto py-8 grid place-items-center",r),...n})});f.displayName=s.aV.displayName;let m=o.forwardRef((e,t)=>{let{className:r,children:o,withOutClose:i=!1,inlineClose:d=!1,...u}=e;return(0,a.jsxs)(c,{children:[(0,a.jsx)(f,{}),(0,a.jsxs)(s.VY,{ref:t,className:(0,l.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-lg",r),...u,children:[o,!i&&(0,a.jsxs)(s.x8,{className:(0,l.cn)("absolute  rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",d?"right-6 top-6":"right-4 top-4"),children:[(0,a.jsx)(n.Z,{className:"w-4 h-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});m.displayName=s.VY.displayName;let p=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...r})};p.displayName="DialogHeader";let x=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};x.displayName="DialogFooter";let g=o.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.Dx,{ref:t,className:(0,l.cn)("text-lg font-semibold leading-none tracking-tight",r),...n})});g.displayName=s.Dx.displayName;let y=o.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.dk,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",r),...n})});y.displayName=s.dk.displayName},15228:function(e,t,r){"use strict";r.d(t,{NI:function(){return g},Wi:function(){return f},l0:function(){return c},xJ:function(){return x},zG:function(){return y}});var a=r(43728),s=r(66989),n=r(87411),o=r(86650),l=r(57654),i=r(66192),d=r(89);let c=o.RV,u=n.createContext({}),f=e=>{let{...t}=e;return(0,a.jsx)(u.Provider,{value:{name:t.name},children:(0,a.jsx)(o.Qr,{...t})})},m=()=>{let e=n.useContext(u),t=n.useContext(p),{getFieldState:r,formState:a}=(0,o.Gc)(),s=r(e.name,a);if(!e)throw Error("useFormField should be used within <FormField>");let{id:l}=t;return{id:l,name:e.name,formItemId:"".concat(l,"-form-item"),formDescriptionId:"".concat(l,"-form-item-description"),formMessageId:"".concat(l,"-form-item-message"),...s}},p=n.createContext({}),x=n.forwardRef((e,t)=>{let{className:r,...s}=e,o=n.useId();return(0,a.jsx)(p.Provider,{value:{id:o},children:(0,a.jsx)("div",{ref:t,className:(0,i.cn)("space-y-2",r),...s})})});x.displayName="FormItem",n.forwardRef((e,t)=>{let{className:r,...s}=e,{error:n,formItemId:o}=m();return(0,a.jsx)(l._,{ref:t,className:(0,i.cn)(n&&"text-destructive",r),htmlFor:o,...s})}).displayName="FormLabel";let g=n.forwardRef((e,t)=>{let{...r}=e,{error:n,formItemId:o,formDescriptionId:l,formMessageId:i}=m();return(0,a.jsx)(s.g7,{ref:t,id:o,"aria-describedby":n?"".concat(l," ").concat(i):"".concat(l),"aria-invalid":!!n,...r})});g.displayName="FormControl",n.forwardRef((e,t)=>{let{className:r,...s}=e,{formDescriptionId:n}=m();return(0,a.jsx)("p",{ref:t,id:n,className:(0,i.cn)("text-sm text-muted-foreground",r),...s})}).displayName="FormDescription";let y=n.forwardRef((e,t)=>{let{className:r,children:s,...n}=e,{error:o,formMessageId:l}=m(),c=o?String(null==o?void 0:o.message):s;return c?(0,a.jsxs)("p",{ref:t,id:l,className:(0,i.cn)("text-sm flex space-x-2 items-center font-medium text-destructive",r),...n,children:[(0,a.jsx)(d.cS,{}),(0,a.jsx)("span",{children:c})]}):null});y.displayName="FormMessage"},47195:function(e,t,r){"use strict";r.d(t,{I:function(){return i}});var a=r(43728),s=r(31550),n=r(5250),o=r(87411),l=r(66192);let i=o.forwardRef((e,t)=>{let{className:r,type:i,...d}=e,[c,u]=o.useState("text"),[f,m]=o.useState(!1),p=f?s.Z:n.Z;return o.useEffect(()=>{"password"===i?u(f?"text":"password"):u(i||"text")},[f,i]),(0,a.jsxs)("div",{className:"relative w-full",children:[(0,a.jsx)("input",{type:c,className:(0,l.cn)("flex w-full outline-none rounded-md border border-none bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 file:text-primary-blue file:cursor-pointer",r),ref:t,...d}),"password"===i&&(0,a.jsx)(p,{className:"absolute top-0 w-5 h-5 cursor-pointer right-3",onClick:()=>m(!f)})]})});i.displayName="Input"},57654:function(e,t,r){"use strict";r.d(t,{_:function(){return d}});var a=r(43728),s=r(58083),n=r(71251),o=r(87411),l=r(66192);let i=(0,n.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=o.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.f,{ref:t,className:(0,l.cn)(i(),r),...n})});d.displayName=s.f.displayName},95658:function(e,t,r){"use strict";r.d(t,{Am:function(){return u},pm:function(){return f}});var a=r(87411);let s=0,n=new Map,o=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?o(r):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},i=[],d={toasts:[]};function c(e){d=l(d,e),i.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=a.useState(d);return a.useEffect(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},17715:function(e,t,r){"use strict";r.d(t,{E:function(){return l}});var a=r(43728),s=r(74066),n=r(77236),o=r(66192);let l=e=>{let{children:t,title:r,className:l,successAlert:i}=e;return(0,a.jsxs)(n.Z,{className:(0,o.cn)("max-w-xl mx-auto border border-gray-300 bg-white px-8 py-10 flex flex-col space-y-6 rounded",l),children:[r&&(0,a.jsx)("h3",{className:"text-2xl font-semibold text-tosca font-gotham",children:r}),i&&(0,a.jsx)(s.b,{type:"success",message:"Email Verification Successful! Please complete your profile details.",className:"text-xs"}),t]})}},37381:function(e,t,r){"use strict";r.r(t),r.d(t,{RegisterForm:function(){return N}});var a=r(43728),s=r(62684),n=r(83038);let o=(0,r(92033).Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var l=r(40789),i=r(64360),d=r(87411),c=r(86650),u=r(15017),f=r(89),m=r(67441),p=r(55431),x=r(15228),g=r(95658),y=r(66192),h=r(17715),b=r(60316);let v="",w=b.Ry({email:b.Z_().nonempty({message:"Email is required"}).email({message:"Invalid email"}),password:b.Z_().nonempty({message:"Password is required"}).min(6,{message:"Password must be at least 6 characters"}).refine(e=>(v=e,!0)),confirm_password:b.Z_().nonempty({message:"Confirm password is required"}).min(6,{message:"Password must be at least 6 characters"}).refine(e=>e===v,{message:"Password not match"})}),j={email:"",password:"",confirm_password:""},N=()=>{var e;let t=(0,i.useRouter)(),r=(0,i.useSearchParams)(),{toast:b}=(0,g.pm)(),[v,N]=(0,d.useState)(!1),[D,k]=(0,d.useState)(!1),R=["Speaker","customlink"].some(e=>{var t;return(null===(t=r.get("role"))||void 0===t?void 0:t.toLowerCase())===e.toLowerCase()}),C=(null===(e=r.get("role"))||void 0===e?void 0:e.toLowerCase())==="speaker",I=(0,c.cI)({resolver:(0,n.F)(w),defaultValues:j}),_=async e=>{N(!0);let a={username:e.email,email:e.email,password:e.password};await s.Z.post(R?"/auth/local/register-no-confirmation":"/auth/local/register",a).then(a=>{let{status:s}=a;if(200==s){if(N(!1),R){let a={token:btoa(JSON.stringify({email:e.email,password:e.password,role:r.get("role")}))},s=new URLSearchParams(a).toString();b({title:"Register Success!",description:"Redirecting to login page."}),t.push("/login?".concat(s))}else t.push("/register/success")}}).catch(e=>{var t,r,a;N(!1),(null==e?void 0:null===(a=e.response)||void 0===a?void 0:null===(r=a.data)||void 0===r?void 0:null===(t=r.error)||void 0===t?void 0:t.message)=="Email or Username are already taken"?k(!0):b({title:"Register Failed!",description:"Something went wrong. Please try again.",variant:"destructive"})})};return(0,d.useEffect)(()=>{r.get("role")&&!R&&t.push("/register")},[r,t]),(0,a.jsxs)(d.Fragment,{children:[(0,a.jsx)(h.E,{title:"Create Account",children:(0,a.jsx)(x.l0,{...I,children:(0,a.jsxs)("form",{onSubmit:I.handleSubmit(_),className:"w-full space-y-6",children:[(0,a.jsx)(u.I,{type:"email",name:"email",label:"Email",required:!0,...I}),(0,a.jsx)(u.I,{type:"password",name:"password",label:"Password",required:!0,...I}),(0,a.jsx)(u.I,{type:"password",name:"confirm_password",label:"Confirm Password",required:!0,...I}),(0,a.jsxs)("div",{children:[(0,a.jsx)(p.z,{className:(0,y.cn)("w-full h-auto py-4 rounded-full",C?"bg-secondary-yellow hover:bg-yellow-600 text-gray-900":"bg-primary-blue hover:bg-secondary-blue"),type:"submit",disabled:v,children:v?(0,a.jsx)(f.gb,{}):"Create"}),C&&(0,a.jsxs)("div",{className:"mt-2",children:[(0,a.jsxs)("div",{className:"self-stretch px-2 py-2.5 justify-start items-start gap-2 flex p-2 border border-yellow-400 rounded-md bg-yellow-50 mb-6",children:[(0,a.jsx)(o,{className:"w-3.5 h-3.5 text-yellow-600"}),(0,a.jsx)("div",{className:"inline-flex flex-col items-start justify-center gap-1 grow shrink basis-0",children:(0,a.jsx)("div",{className:"self-stretch text-xs leading-none text-center text-yellow-600",children:"If you haven't created an account yet, click “Create” to get started."})})]}),(0,a.jsx)(p.z,{type:"button",url:"/login?role=Speaker",className:"w-full h-auto py-[18px] text-4xl font-bold rounded-full bg-primary-blue hover:bg-secondary-blue",disabled:v,children:"LOGIN"}),(0,a.jsxs)("div",{className:"self-stretch px-2 py-2.5 justify-start items-start gap-2 flex p-2 border border-yellow-400 rounded-md bg-yellow-50 mt-2",children:[(0,a.jsx)(o,{className:"w-3.5 h-3.5 text-yellow-600"}),(0,a.jsx)("div",{className:"inline-flex flex-col items-start justify-center gap-1 grow shrink basis-0",children:(0,a.jsx)("div",{className:"self-stretch text-xs leading-none text-center text-yellow-600",children:"If you already have an account, please proceed to click login."})})]})]})]})]})})}),(0,a.jsxs)(m.u,{open:D,setOpen:k,className:"flex flex-col",children:[(0,a.jsx)(f.sz,{}),(0,a.jsx)("p",{className:"text-xl font-bold",children:"Account is Registered"}),(0,a.jsx)("p",{children:"Email address used is already registered. Please log in to your account."}),(0,a.jsx)(l.default,{href:"/login",children:(0,a.jsx)(p.z,{className:"w-full h-auto py-4 rounded-full bg-primary-blue hover:bg-secondary-blue",children:"Login"})}),(0,a.jsx)(p.z,{className:"w-full h-auto py-4 bg-blue-100 rounded-full hover:bg-blue-300 text-primary-blue",onClick:()=>k(!1),children:"Cancel"})]})]})}},44028:function(e,t,r){"use strict";r.d(t,{Dx:function(){return er},VY:function(){return et},aV:function(){return ee},dk:function(){return ea},fC:function(){return K},h_:function(){return $},x8:function(){return es},xz:function(){return Q}});var a=r(87411),s=r(6696),n=r(68930),o=r(66782),l=r(65354),i=r(85169),d=r(87417),c=r(85863),u=r(67433),f=r(57667),m=r(60555),p=r(27717),x=r(56026),g=r(42651),y=r(66989),h=r(43728),b="Dialog",[v,w]=(0,o.b)(b),[j,N]=v(b),D=e=>{let{__scopeDialog:t,children:r,open:s,defaultOpen:n,onOpenChange:o,modal:d=!0}=e,c=a.useRef(null),u=a.useRef(null),[f=!1,m]=(0,i.T)({prop:s,defaultProp:n,onChange:o});return(0,h.jsx)(j,{scope:t,triggerRef:c,contentRef:u,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),open:f,onOpenChange:m,onOpenToggle:a.useCallback(()=>m(e=>!e),[m]),modal:d,children:r})};D.displayName=b;var k="DialogTrigger",R=a.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,o=N(k,r),l=(0,n.e)(t,o.triggerRef);return(0,h.jsx)(m.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Y(o.open),...a,ref:l,onClick:(0,s.M)(e.onClick,o.onOpenToggle)})});R.displayName=k;var C="DialogPortal",[I,_]=v(C,{forceMount:void 0}),S=e=>{let{__scopeDialog:t,forceMount:r,children:s,container:n}=e,o=N(C,t);return(0,h.jsx)(I,{scope:t,forceMount:r,children:a.Children.map(s,e=>(0,h.jsx)(f.z,{present:r||o.open,children:(0,h.jsx)(u.h,{asChild:!0,container:n,children:e})}))})};S.displayName=C;var E="DialogOverlay",M=a.forwardRef((e,t)=>{let r=_(E,e.__scopeDialog),{forceMount:a=r.forceMount,...s}=e,n=N(E,e.__scopeDialog);return n.modal?(0,h.jsx)(f.z,{present:a||n.open,children:(0,h.jsx)(O,{...s,ref:t})}):null});M.displayName=E;var O=a.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,s=N(E,r);return(0,h.jsx)(x.Z,{as:y.g7,allowPinchZoom:!0,shards:[s.contentRef],children:(0,h.jsx)(m.WV.div,{"data-state":Y(s.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),T="DialogContent",F=a.forwardRef((e,t)=>{let r=_(T,e.__scopeDialog),{forceMount:a=r.forceMount,...s}=e,n=N(T,e.__scopeDialog);return(0,h.jsx)(f.z,{present:a||n.open,children:n.modal?(0,h.jsx)(A,{...s,ref:t}):(0,h.jsx)(Z,{...s,ref:t})})});F.displayName=T;var A=a.forwardRef((e,t)=>{let r=N(T,e.__scopeDialog),o=a.useRef(null),l=(0,n.e)(t,r.contentRef,o);return a.useEffect(()=>{let e=o.current;if(e)return(0,g.Ry)(e)},[]),(0,h.jsx)(P,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,s.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,s.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,s.M)(e.onFocusOutside,e=>e.preventDefault())})}),Z=a.forwardRef((e,t)=>{let r=N(T,e.__scopeDialog),s=a.useRef(!1),n=a.useRef(!1);return(0,h.jsx)(P,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,o;null===(a=e.onCloseAutoFocus)||void 0===a||a.call(e,t),t.defaultPrevented||(s.current||null===(o=r.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),s.current=!1,n.current=!1},onInteractOutside:t=>{var a,o;null===(a=e.onInteractOutside)||void 0===a||a.call(e,t),t.defaultPrevented||(s.current=!0,"pointerdown"!==t.detail.originalEvent.type||(n.current=!0));let l=t.target;(null===(o=r.triggerRef.current)||void 0===o?void 0:o.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&n.current&&t.preventDefault()}})}),P=a.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:l,...i}=e,u=N(T,r),f=a.useRef(null),m=(0,n.e)(t,f);return(0,p.EW)(),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(c.M,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:o,onUnmountAutoFocus:l,children:(0,h.jsx)(d.XB,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":Y(u.open),...i,ref:m,onDismiss:()=>u.onOpenChange(!1)})}),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(J,{titleId:u.titleId}),(0,h.jsx)(X,{contentRef:f,descriptionId:u.descriptionId})]})]})}),z="DialogTitle",V=a.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,s=N(z,r);return(0,h.jsx)(m.WV.h2,{id:s.titleId,...a,ref:t})});V.displayName=z;var W="DialogDescription",L=a.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,s=N(W,r);return(0,h.jsx)(m.WV.p,{id:s.descriptionId,...a,ref:t})});L.displayName=W;var q="DialogClose",H=a.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,n=N(q,r);return(0,h.jsx)(m.WV.button,{type:"button",...a,ref:t,onClick:(0,s.M)(e.onClick,()=>n.onOpenChange(!1))})});function Y(e){return e?"open":"closed"}H.displayName=q;var G="DialogTitleWarning",[U,B]=(0,o.k)(G,{contentName:T,titleName:z,docsSlug:"dialog"}),J=e=>{let{titleId:t}=e,r=B(G),s="`".concat(r.contentName,"` requires a `").concat(r.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(r.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(r.docsSlug);return a.useEffect(()=>{t&&!document.getElementById(t)&&console.error(s)},[s,t]),null},X=e=>{let{contentRef:t,descriptionId:r}=e,s=B("DialogDescriptionWarning"),n="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(s.contentName,"}.");return a.useEffect(()=>{var e;let a=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");r&&a&&!document.getElementById(r)&&console.warn(n)},[n,t,r]),null},K=D,Q=R,$=S,ee=M,et=F,er=V,ea=L,es=H}},function(e){e.O(0,[7695,9599,4594,4954,1536,9896,4076,1395,8416,6938,8023,7234,89,6463,3154,8191,1744],function(){return e(e.s=16684)}),_N_E=e.O()}]);