1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[616],{7805:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/signup",function(){return t(3698)}])},5053:function(e,s,t){"use strict";t.d(s,{C:function(){return r}});var a=t(5893),l=t(7536);let r=e=>{let{onSubmit:s,isLogin:t=!1}=e,{handleSubmit:r,register:i,formState:{errors:n}}=(0,l.cI)();return(0,a.jsxs)("form",{className:"grid w-full gap-4 sm:gap-6",onSubmit:r(s),children:[!t&&(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("label",{className:"pb-2 text-sm text-[#5B6B86] ",children:["æ°å",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)("input",{className:"rounded-lg border-1 border-gray-200 p-3 ".concat(n.name&&" border-red-500"),type:"text",...i("name",{required:!0})}),(0,a.jsx)("span",{className:"pt-1 text-sm",children:n.name&&(0,a.jsx)("span",{className:"pt-1 text-red-500",children:"ååãå
¥åãã¦ãã ãã"})})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("label",{className:"pb-2 text-sm text-[#5B6B86]",children:["ã¡ã¼ã«ã¢ãã¬ã¹",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)("input",{className:"rounded-lg border-1 border-gray-200 p-3 ".concat(n.email&&" border-red-500 "),type:"email",...i("email",{required:!0,pattern:/^[a-zA-Z0-9._+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/})}),(0,a.jsx)("span",{className:"pt-1 text-sm",children:n.email&&(0,a.jsx)("span",{className:"pt-1 text-red-500",children:"ã¡ã¼ã«ã¢ãã¬ã¹ãå
¥åãã¦ãã ãã"})})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("label",{className:"pb-2 text-sm text-[#5B6B86]",children:["ãã¹ã¯ã¼ã",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)("input",{className:"rounded-lg border-1 border-gray-200 p-3 ".concat(n.password&&" border-red-500"),type:"password",...i("password",{required:!0})}),(0,a.jsx)("span",{className:"pt-1 text-sm",children:n.password&&(0,a.jsx)("span",{className:" text-red-500",children:"ãã¹ã¯ã¼ããå
¥åãã¦ãã ãã"})})]}),(0,a.jsx)("button",{className:"mt-3 w-full rounded-lg bg-[#FF6B35] py-3 font-medium text-white transition-all duration-200 hover:bg-[#E55A2B] active:scale-[0.98] sm:mt-4",onClick:r(s),children:t?"ãã°ã¤ã³":"ã¡ã¼ã«ã¢ãã¬ã¹ã§ç»é²"})]})}},3698:function(e,s,t){"use strict";t.r(s);var a=t(5893),l=t(5675),r=t.n(l),i=t(1664),n=t.n(i),d=t(1163),c=t(7294),o=t(5053),m=t(9577),x=t(5050),u=t(6088),p=t(1039),h=t(940),f=t(1222);s.default=()=>{let e=(0,h.h)(),s=(0,d.useRouter)(),{toast:t}=(0,x.pm)(),l=(0,u.Eu)(),i=(0,p.a)(),[b,N]=(0,c.useState)(null);(0,c.useEffect)(()=>{l.user&&b&&s.push(b)},[l.user,b,s]);let g=async s=>{try{let a=await i.createAccount(s.email,s.password);if(a){var t;let r=await a.getIdToken();await e.post("/register",{name:s.name,email:s.email,idToken:r}),l.setUser({uid:a.uid,email:null!==(t=a.email)&&void 0!==t?t:"",emailVerified:a.emailVerified,name:s.name}),console.log(a),v(),N("/?isEmailVerification=true")}}catch(e){y(),console.log(e)}},j=async()=>{try{let s=await i.loginWithGoogle(),r=await s.getIdToken();if(await e.post("/register",{name:s.displayName,email:s.email,idToken:r}),s){var t,a;l.setUser({uid:s.uid,email:null!==(t=s.email)&&void 0!==t?t:"",emailVerified:s.emailVerified,name:null!==(a=s.displayName)&&void 0!==a?a:""}),v(),N("/")}}catch(e){if(e instanceof f.oY){v(),w(s);return}y(),console.log(e)}},w=e=>{let s=e.asPath.substring(e.asPath.indexOf("redirectUrl=")+12);e.push(e.query.redirectUrl?s:"/")},v=()=>{t({title:"ä¼å¡ç»é²ãå®äºãã¾ããã",duration:3e3,className:"bg-green-100 border-none"})},y=()=>{t({title:"ä¼å¡ç»é²ã«å¤±æãã¾ããã",duration:3e3,className:"bg-red-100 border-none"})};return(0,a.jsxs)("div",{className:"min-h-screen bg-[#FFFBF6]",children:[(0,a.jsx)(m.h4,{}),(0,a.jsxs)("div",{className:"mx-auto w-full px-5 py-16 sm:max-w-[600px]",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"pb-6 text-center text-2xl font-bold sm:pb-12 sm:text-[32px]",children:"æ°è¦ä¼å¡ç»é²"}),(0,a.jsx)(o.C,{onSubmit:g}),(0,a.jsx)("div",{className:"py-5 text-center text-sm text-[#8292AA]",children:"ã¾ãã¯"}),(0,a.jsxs)("button",{className:"relative w-full rounded-lg border-1 border-[#C8CED9] bg-white py-3 text-center font-bold",onClick:j,children:[(0,a.jsx)(r(),{alt:"",className:"absolute left-4 top-1/2 -translate-y-1/2",height:27,src:"/images/google-icon.png",width:27}),(0,a.jsx)("p",{children:"Googleã¢ã«ã¦ã³ãã§ç»é²"})]})]}),(0,a.jsx)("div",{className:"pt-6 text-center",children:(0,a.jsx)(n(),{className:"mx-auto text-sm font-medium text-blue-600 underline",href:"/login",children:"ãã°ã¤ã³ã®æ¹ã¯ãã¡ã"})})]}),(0,a.jsx)(m.$_,{})]})}},1163:function(e,s,t){e.exports=t(3035)}},function(e){e.O(0,[664,675,226,301,577,888,774,179],function(){return e(e.s=7805)}),_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.