1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[495],{76276:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/register",function(){return a(42642)}])},42642:function(e,s,a){"use strict";a.r(s),a.d(s,{default:function(){return k}});var t=a(85893),l=a(67294),r=a(87536),n=a(56312),i=a(88446),o=a(39332),c=a(61108),d=a(94933),m=a(36316),u=a(9589),x=a(56953),h=a(45977),g=a(11607),b=a(34464),p=a(19769),y=a(19709);let f=(e,s)=>{if(!e)return{success:!1,error:"Mobile number is required"};try{let a=(0,y.S)(e,s);if(!a)return{success:!1,error:"Invalid mobile number format"};if(!a.isValid())return{success:!1,error:"Invalid number of digits"};let t=a.nationalNumber||"";if(t.length<6||t.length>15)return{success:!1,error:"Phone number length must be between 6 and 15 digits"};return{success:!0,error:""}}catch(e){return{success:!1,error:"Invalid mobile number"}}};var v=a(86501),j=a(8971);let w=e=>{let{options:s,value:a,onChange:l,placeholder:r,disabled:n,loading:i,error:o}=e;return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("select",{value:a,onChange:l,disabled:n||i,className:"w-full border rounded-lg px-4 py-3 focus:ring-2 focus:ring-blue-500 focus:border-blue-500 outline-none transition appearance-none pr-10 ".concat(o?"border-red-500":"border-gray-300"," ").concat(n?"bg-gray-100 cursor-not-allowed":""),children:[(0,t.jsx)("option",{value:-1,children:r}),s.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,t.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none",children:i?(0,t.jsx)(m.Z,{className:"w-5 h-5 text-gray-400 animate-spin"}):(0,t.jsx)(j.Z,{className:"w-5 h-5 text-gray-400"})}),o&&(0,t.jsxs)("p",{className:"text-red-500 text-sm mt-1 flex items-center",children:[(0,t.jsx)(c.Z,{className:"w-4 h-4 mr-1"}),o]})]})},N=async e=>{try{let a=await i.Z.post("/user/isusernameExist",{username:e});if(!1===a.data.status){var s;return{available:!1,message:"Username is already taken",suggestions:(null===(s=a.data.suggestions)||void 0===s?void 0:s.length)?a.data.suggestions:_(e)}}return{available:!0,message:"Username is available",suggestions:[]}}catch(s){return{available:!1,message:"Error checking username. Please try again.",suggestions:_(e)}}},_=e=>{let s=Math.floor(1e3*Math.random()),a=new Date().getFullYear(),t=a.toString().slice(-2);return["".concat(e).concat(s),"".concat(e,"_").concat(s),"".concat(e).concat(t),"The_".concat(e),"".concat(e,"_official"),"".concat(e).concat(a)]};var Z=a(92106);let C=Z.Ry({title:Z.Z_().nonempty("Please select a title"),name:Z.Z_().min(2,"Full name is required"),user_name:Z.Z_().min(3,"Username must be at least 3 characters"),password:Z.Z_().min(6,"Password must be at least 6 characters"),confirm_password:Z.Z_().min(6,"Confirm your password"),email:Z.Z_().email("Invalid email address"),mobile:Z.Z_().min(8,"Enter a valid mobile number"),country:Z.Rx().min(1,"Please select a country"),state:Z.Rx().min(1,"Please select a state"),city:Z.Rx().min(1,"Please select a city"),phoneCode:Z.Z_().nonempty("Phone code required"),agree_terms:Z.O7().refine(e=>!0===e,{message:"You must agree to the terms"})}).refine(e=>e.password===e.confirm_password,{message:"Passwords do not match",path:["confirm_password"]});function S(){var e,s,a,y;let[j,_]=(0,l.useState)(!1),Z=(0,o.useRouter)(),[S,k]=(0,l.useState)({available:null,message:"",suggestions:[],checking:!1}),[P,E]=(0,l.useState)(!1),[M,T]=(0,l.useState)(!1),[I,D]=(0,l.useState)([]),[F,V]=(0,l.useState)([]),[O,R]=(0,l.useState)([]),[U,L]=(0,l.useState)(!1),[q,K]=(0,l.useState)(!1),[A,X]=(0,l.useState)(!1),[Y,B]=(0,l.useState)({code:96,name:"India",alphaCode:"in"}),[J,Q]=(0,l.useState)({code:-1,name:""}),[$,z]=(0,l.useState)({code:-1,name:""}),[G,H]=(0,l.useState)("91"),[W,ee]=(0,l.useState)(["","","",""]),[es,ea]=(0,l.useState)(!1),[et,el]=(0,l.useState)(!1),er=(0,l.useRef)([]),[en,ei]=(0,l.useState)(-1),{register:eo,handleSubmit:ec,watch:ed,setValue:em,setError:eu,clearErrors:ex,formState:{errors:eh}}=(0,r.cI)({resolver:(0,n.F)(C),defaultValues:{country:96,state:-1,city:-1,phoneCode:"91"}});(0,l.useEffect)(()=>{let e=async()=>{L(!0);try{let e=await i.Z.post("/world_country/getworld_country",{page_enabled:"n",page:1,limit:250,sortDetails:{sort
1Key:"name",sortType:1},searchDetails:[]});if(e.data&&e.data.data){let s=e.data.data.map(e=>({value:e.id,label:e.name,phoneCode:e.phonecode,alphaCode:e.code}));D(s)}}catch(e){console.error("Error fetching countries:",e)}finally{L(!1)}};e()},[]),(0,l.useEffect)(()=>{let e=async()=>{if(Y.code>0){K(!0),V([]),em("state",-1),em("city",-1),Q({code:-1,name:""}),z({code:-1,name:""});try{let e=await i.Z.post("world_state/getworld_state",{page_enabled:"n",page:1,limit:100,sortDetails:{sortKey:"name",sortType:1},searchDetails:[{basicSearchKey:"country_id",basicSearchValue:Y.code,basicSearchType:"number"}]});if(e.data&&e.data.data){let s=e.data.data.map(e=>({value:e.id,label:e.name}));V(s)}}catch(e){console.error("Error fetching states:",e)}finally{K(!1)}}};e()},[Y.code,em]),(0,l.useEffect)(()=>{let e=async()=>{if(J.code>0){X(!0),R([]),em("city",-1),z({code:-1,name:""});try{let e=await i.Z.post("/world_city/getworld_city",{page_enabled:"n",page:1,limit:500,sortDetails:{sortKey:"name",sortType:1},searchDetails:[{basicSearchKey:"state_id",basicSearchValue:J.code,basicSearchType:"number"}],searchDetailsAnd:[],searchQuery:""});if(e.data&&e.data.data){let s=e.data.data.map(e=>({value:e.id,label:e.name}));R(s)}}catch(e){console.error("Error fetching cities:",e)}finally{X(!1)}}};e()},[J.code,em]);let eg=async()=>{let e=ed("user_name");if(e&&e.length>=3){k(e=>({...e,checking:!0}));let s=await N(e);k({...s,checking:!1}),s.available?ex("user_name"):eu("user_name",{type:"manual",message:"Username is already taken"})}},eb=async e=>{k(e=>({...e,checking:!0}));let s=await N(e.user_name);if(k({...s,checking:!1}),!s.available){eu("user_name",{type:"manual",message:"Username is already taken"});return}_(!0);let a={...e,email_v:1,mobile_v:!0===et?2:-1,country_name:Y.name,countrycode:G,country_id:Y.code,state_id:J.code,state_name:J.name,city_id:$.code,city_name:$.name,email_noLoginId:1111,email_noLoginOtp:1111,mobile_noLoginId:en,mobile_noLoginOtp:Number(W.join("")),isForeignUser:"91"===G?0:1};try{let e=await i.Z.post("/user/register",a);200===e.status?(v.ZP.success("Registration successful! \uD83C\uDF89"),Z.push("/")):v.ZP.error(e.data.message||"Registration failed!")}catch(e){console.error("Register error:",e),v.ZP.error(e.response.data.message||"Something went wrong. Please try again.")}finally{_(!1)}},ep=(e,s)=>{var a,t;if(!/^\d?$/.test(e))return;let l=[...W];l[s]=e,ee(l),e&&s<3&&(null===(a=er.current[s+1])||void 0===a||a.focus()),!e&&s>0&&(null===(t=er.current[s-1])||void 0===t||t.focus())},ey=async()=>{var e,s,a,t,l,r;try{let l=ed("mobile"),r=W.join("");if(4!==r.length){eu("mobile",{type:"manual",message:"Enter 4-digit OTP"});return}let n=await i.Z.post("/user/verifyMobileNoLogin",{mobile:l,otp:Number(r)});(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.isVerified)?(el(!0),ei(null==n?void 0:null===(s=n.data)||void 0===s?void 0:null===(a=s.data)||void 0===a?void 0:a.id)):eu("mobile",{type:"manual",message:(null===(t=n.data)||void 0===t?void 0:t.message)||"Invalid OTP"})}catch(e){eu("mobile",{type:"manual",message:(null===(l=e.response)||void 0===l?void 0:null===(r=l.data)||void 0===r?void 0:r.message)||"OTP verification failed"})}};return(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br px-4 py-8",children:(0,t.jsxs)("div",{className:"w-full max-w-2xl p-8 bg-white rounded-2xl shadow-xl",children:[(0,t.jsxs)("div",{className:"text-center mb-8",children:[(0,t.jsx)("h2",{className:"text-3xl font-bold text-gray-800",children:"Create an Account"}),(0,t.jsx)("p",{className:"text-gray-600 mt-2",children:"Join our community and start your journey"})]}),(0,t.jsxs)("form",{onSubmit:ec(eb),className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium mb-2 text-gray-700",children:"Title"}),(0,t.jsxs)("select",{...eo("title"),className:"w-full border border-gray-300 rounded-lg px-4 py-3 focus:ring-2 focus:ring-blue-500 focus:border-blue-500 outline-none transition",children:[(0,t.jsx)("option",{value:"",disabled:!0,children:"Select a title"}),(0,t.jsx)("option",{value:"Dr.",children:"Dr."}),(0,t.jsx)("option",{value:"Prof.",children:"Prof."}),(0,t.jsx)("option",{value:"Master.",children:"Master."}),(0,t.jsx)("option",{value:"Mrs.",children:"Mrs."}),(0,t.jsx)("option",{value:"Mr.",children:"Mr."}),(0,t.jsx)("option",{value:"Ms.",children:"Ms."}),(0,t.jsx)("option",{value:"M/s.",children:"M/s."})]}),eh.title&&(0,t.jsxs)("p",{className:"text-red-500 text-sm mt-1 flex items-center",children:[(0,t.jsx)(c.Z,{className:"w-4 h-4 mr-1"}),eh.title.message]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium mb-2 text-gray-700",children:"Full Name"}),(0,t.jsxs)("div",{className:"flex items-center border border-gray-300 rounded-lg px-3 py-2 focus-within:ring-2 focus-within:ring-blue-500 focus-within:border-blue-500 transition",children:[(0,t.jsx)(d.Z,{className:"w-5 h-5 text-gray-400 mr-2"}),(0,t.jsx)("input",{type:"text",...eo("name"),className:"w-full outline-none",placeholder:"Enter your full name"})]}),eh.name&&(0,t.jsxs)("p",{className:"text-red-500 text-sm mt-1 flex items-center",children:[(0,t.jsx)(c.Z,{className:"w-4 h-4 mr-1"}),eh.name.message]})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"relative mb-1",children:[(0,t.jsx)("label",{className:"block text-sm font-medium mb-2 text-gray-700",children:"Username"}),(0,t.jsxs)("div",{className:"flex items-center border border-gray-300 rounded-lg px-3 py-2 focus-within:ring-2 focus-within:ring-blue-500 focus-within:border-blue-500 transition",children:[(0,t.jsx)(d.Z,{className:"w-5 h-5 text-gray-400 mr-2"}),(0,t.jsx)("input",{type:"text",...eo("user_name"),onBlur:eg,className:"w-full outline-none",placeholder:"Choose a username"}),S.checking&&(0,t.jsx)(m.Z,{className:"w-5 h-5 text-blue-500 animate-spin"}),S.available&&!S.checking&&(0,t.jsx)(u.Z,{className:"w-5 h-5 text-green-500"}),!1===S.available&&!S.checking&&(0,t.jsx)(c.Z,{className:"w-5 h-5 text-red-500"})]})]}),eh.user_name&&(0,t.jsxs)("p",{className:"text-red-500 text-sm mt-1 flex items-center",children:[(0,t.jsx)(c.Z,{className:"w-4 h-4 mr-1"}),eh.user_name.message]}),S.message&&!eh.user_name&&(0,t.jsx)("div",{className:"col-span-2",children:(0,t.jsxs)("p",{className:"text-sm flex items-center ".concat(S.available?"text-green-600":"text-red-600"),children:[S.available?(0,t.jsx)(u.Z,{className:"w-4 h-4 mr-1"}):(0,t.jsx)(c.Z,{className:"w-4 h-4 mr-1"}),S.message]})}),!S.available&&(null===(e=S.suggestions)||void 0===e?void 0:e.length)>0&&(0,t.jsxs)("div",{className:"col-span-2 mt-2 p-3 bg-blue-50 rounded-lg",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Try one of these available usernames:"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:S.suggestions.map((e,s)=>(0,t.jsx)("span",{className:"cursor-pointer px-3 py-1 bg-white border border-blue-200 text-blue-600 rounded-full text-sm hover:bg-blue-100 transition",onClick:async()=>{em("user_name",e),ex("user_name"),k({available:null,message:"",suggestions:[],checking:!0});let s=await N(e);k(s)},children:e},s))})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium mb-2 text-gray-700",children:"Email"}),(0,t.jsxs)("div",{className:"flex items-center border border-gray-300 rounded-lg px-3 py-2 focus-within:ring-2 focus-within:ring-blue-500 focus-within:border-blue-500 transition",children:[(0,t.jsx)(x.Z,{className:"w-5 h-5 text-gray-400 mr-2"}),(0,t.jsx)("input",{type:"email",...eo("email"),className:"w-full outline-none",placeholder:"Enter your email",onChange:async e=>{let s=e.target.value.trim();if(/\S+@\S+\.\S+/.test(s))ex("email");
1else{eu("email",{type:"manual",message:"Email is not valid"});return}try{var a;let e=await i.Z.post("/user/isUserEmailExist",{email:s});(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.status)!==!0?eu("email",{type:"manual",message:"Email is already taken"}):ex("email")}catch(e){console.error(e)}}})]}),eh.email&&(0,t.jsxs)("p",{className:"text-red-500 text-sm mt-1 flex items-center",children:[(0,t.jsx)(c.Z,{className:"w-4 h-4 mr-1"}),eh.email.message]})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("label",{className:"block text-sm font-medium mb-2 text-gray-700",children:"Password"}),(0,t.jsxs)("div",{className:"flex items-center border border-gray-300 rounded-lg px-3 py-2 focus-within:ring-2 focus-within:ring-blue-500 focus-within:border-blue-500 transition",children:[(0,t.jsx)(h.Z,{className:"w-5 h-5 text-gray-400 mr-2"}),(0,t.jsx)("input",{type:P?"text":"password",...eo("password"),className:"w-full outline-none",placeholder:"Create a password"}),(0,t.jsx)("button",{type:"button",className:"text-gray-400 hover:text-gray-600",onClick:()=>E(!P),children:P?(0,t.jsx)(g.Z,{className:"w-5 h-5"}):(0,t.jsx)(b.Z,{className:"w-5 h-5"})})]}),eh.password&&(0,t.jsxs)("p",{className:"text-red-500 text-sm mt-1 flex items-center",children:[(0,t.jsx)(c.Z,{className:"w-4 h-4 mr-1"}),eh.password.message]})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("label",{className:"block text-sm font-medium mb-2 text-gray-700",children:"Confirm Password"}),(0,t.jsxs)("div",{className:"flex items-center border border-gray-300 rounded-lg px-3 py-2 focus-within:ring-2 focus-within:ring-blue-500 focus-within:border-blue-500 transition",children:[(0,t.jsx)(h.Z,{className:"w-5 h-5 text-gray-400 mr-2"}),(0,t.jsx)("input",{type:M?"text":"password",...eo("confirm_password"),className:"w-full outline-none",placeholder:"Confirm your password"}),(0,t.jsx)("button",{type:"button",className:"text-gray-400 hover:text-gray-600",onClick:()=>T(!M),children:M?(0,t.jsx)(g.Z,{className:"w-5 h-5"}):(0,t.jsx)(b.Z,{className:"w-5 h-5"})})]}),eh.confirm_password&&(0,t.jsxs)("p",{className:"text-red-500 text-sm mt-1 flex items-center",children:[(0,t.jsx)(c.Z,{className:"w-4 h-4 mr-1"}),eh.confirm_password.message]})]}),(0,t.jsxs)("div",{className:"col-span-2",children:[(0,t.jsx)("label",{className:"block text-sm font-medium mb-2 text-gray-700",children:"Mobile Number"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("div",{className:"w-1/4",children:(0,t.jsxs)("div",{className:"flex items-center justify-center border border-gray-300 rounded-lg px-3 py-2 bg-gray-50 h-full",children:[(0,t.jsxs)("span",{className:"text-gray-700 flex items-center",children:[Y.code>0?(0,t.jsx)("img",{src:"https://flagcdn.com/w20/".concat(String(Y.alphaCode).toLowerCase(),".png"),alt:String(Y.alphaCode),className:"w-5 h-5 mr-1 rounded-sm"}):(0,t.jsx)("span",{className:"w-5 h-5 mr-1 bg-gray-200 rounded-sm"}),G?"+".concat(G):"--"]}),(0,t.jsx)("input",{type:"hidden",...eo("phoneCode"),value:G})]})}),(0,t.jsxs)("div",{className:"w-3/4 flex gap-2",children:[(0,t.jsxs)("div",{className:"flex-1 flex items-center border border-gray-300 rounded-lg px-3 py-2 focus-within:ring-2 focus-within:ring-blue-500 focus-within:border-blue-500 transition",children:[(0,t.jsx)(p.Z,{className:"w-5 h-5 text-gray-400 mr-2"}),(0,t.jsx)("input",{type:"tel",...eo("mobile",{required:"Mobile number is required",onChange:e=>{var s;let a=e.target.value,t=f("+".concat(G).concat(a),(null==Y?void 0:null===(s=Y.alphaCode)||void 0===s?void 0:s.toUpperCase())||"IN");t.success?ex("mobile"):eu("mobile",{type:"manual",message:t.error})}}),className:"w-full outline-none",placeholder:"Enter your mobile number",disabled:et})]}),!et&&96==Y.code&&(0,t.jsx)("button",{type:"button",className:"bg-blue-500 text-white px-3 py-2 rounded-lg text-sm",onClick:async()=>{var e,s,a;try{let s=ed("mobile");if(!s){eu("mobile",{type:"manual",message:"Enter mobile first"});return}let a=await i.Z.post("/user/isUserMobileExist",{countrycode:G,mobile:s});if((null==a?void 0:null===(e=a.data)||void 0===e?void 0:e.status)===!1){eu("mobile",{type:"manual",message:"This mobile number is already registered."});return}await i.Z.post("/user/sendVerifyMobileNoLogin",{countrycode:G,mobile:s}),ea(!0)}catch(e){eu("mobile",{type:"manual",message:(null===(s=e.response)||void 0===s?void 0:null===(a=s.data)||void 0===a?void 0:a.message)||"Failed to send OTP"})}},children:"Send OTP"})]})]}),eh.mobile&&(0,t.jsxs)("p",{className:"text-red-500 text-sm mt-1 flex items-center",children:[(0,t.jsx)(c.Z,{className:"w-4 h-4 mr-1"}),eh.mobile.message]}),es&&!et&&(0,t.jsxs)("div",{className:"mt-3",children:[(0,t.jsx)("div",{className:"flex gap-2 justify-center",children:W.map((e,s)=>(0,t.jsx)("input",{ref:e=>er.current[s]=e,type:"text",value:e,maxLength:1,onChange:e=>ep(e.target.value,s),className:"w-12 h-12 text-center border border-gray-300 rounded-lg text-lg"},s))}),(0,t.jsx)("button",{type:"button",onClick:ey,className:"mt-3 w-full bg-green-600 text-white py-2 rounded-lg",children:"Verify OTP"})]}),et&&(0,t.jsx)("p",{className:"text-green-600 text-sm mt-2",children:"â
Mobile number verified successfully"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium mb-2 text-gray-700",children:"Country"}),(0,t.jsx)(w,{options:I,value:Y.code,onChange:e=>{let s=parseInt(e.target.value),a=I.find(e=>e.value===s);a&&(B({code:s,name:a.label,alphaCode:a.alphaCode}),em("country",s,{shouldValidate:!0}),Q({code:-1,name:""}),z({code:-1,name:""}),em("state",-1,{shouldValidate:!0}),em("city",-1,{shouldValidate:!0}),H(a.phoneCode),em("phoneCode",a.phoneCode))},placeholder:"Select a country",loading:U,error:null===(s=eh.country)||void 0===s?void 0:s.message,disabled:et})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium mb-2 text-gray-700",children:"State"}),(0,t.jsx)(w,{options:F,value:J.code,onChange:e=>{let s=parseInt(e.target.value),a=F.find(e=>e.value===s);a&&(Q({code:s,name:a.label}),em("state",s,{shouldValidate:!0}))},placeholder:Y.code>0?"Select a state":"First select a country",disabled:Y.code<=0,loading:q,error:null===(a=eh.state)||void 0===a?void 0:a.message})]}),(0,t.jsxs)("div",{className:"col-span-1",children:[(0,t.jsx)("label",{className:"block text-sm font-medium mb-2 text-gray-700",children:"City"}),(0,t.jsx)(w,{options:O,value:$.code,onChange:e=>{let s=parseInt(e.target.value),a=O.find(e=>e.value===s);
1a&&(z({code:s,name:a.label}),em("city",s,{shouldValidate:!0}))},placeholder:J.code>0?"Select a city":"First select a state",disabled:J.code<=0,loading:A,error:null===(y=eh.city)||void 0===y?void 0:y.message})]}),(0,t.jsxs)("div",{className:"col-span-2 flex items-start space-x-3 mt-2",children:[(0,t.jsx)("input",{type:"checkbox",...eo("agree_terms"),className:"w-4 h-4 mt-1",id:"agree_terms"}),(0,t.jsxs)("label",{htmlFor:"agree_terms",className:"text-sm text-gray-700",children:["I agree to the"," ",(0,t.jsx)("span",{className:"text-blue-600 cursor-pointer hover:underline",children:"Terms & Conditions"})," ","and"," ",(0,t.jsx)("span",{className:"text-blue-600 cursor-pointer hover:underline",children:"Privacy Policy"})]})]}),eh.agree_terms&&(0,t.jsxs)("p",{className:"col-span-2 text-red-500 text-sm mt-1 flex items-center",children:[(0,t.jsx)(c.Z,{className:"w-4 h-4 mr-1"}),eh.agree_terms.message]}),(0,t.jsxs)("div",{className:"col-span-2 mt-4",children:[(0,t.jsx)("button",{type:"submit",disabled:j,className:"w-full bg-blue-600 text-white py-3 rounded-lg hover:bg-blue-700 transition disabled:opacity-50 font-medium flex items-center justify-center",children:j?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Z,{className:"w-5 h-5 animate-spin mr-2"}),"Registering..."]}):"Create Account"}),(0,t.jsxs)("p",{className:"text-center text-gray-600 text-sm mt-4",children:["Already have an account?"," ",(0,t.jsx)("span",{className:"text-blue-600 cursor-pointer hover:underline font-medium",onClick:()=>Z.push("/login"),children:"Sign in"})]})]})]})]})})}var k=()=>(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:(0,t.jsx)("div",{className:"w-full max-w-2xl",children:(0,t.jsx)(S,{})})})})}},function(e){e.O(0,[8587,3318,9774,2888,179],function(){return e(e.s=76276)}),_N_E=e.O()}]);
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.