1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3499],{76276:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/register",function(){return r(15755)}])},49384:function(e,t){"use strict";t.Z={src:"/_next/static/media/auth.0b33f9f1.png",height:1920,width:1260,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAICAMAAAAGL8UJAAAANlBMVEUHBCXx8vEcGFxXVnUVElFPTmOLiZMjIW3+/v0WE1+WlJwPDSkqKEzg4OFqaXhpaHdhYHrX2NYaEskdAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAALElEQVR4nD3BxQEAIAwEsKtRwfdflh8J0t0T6syKcUQMO4guVkRMWLVq6PgeGlsA7+oT/asAAAAASUVORK5CYII=",blurWidth:5,blurHeight:8}},15755:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return Z},default:function(){return register}});var n,i,o=r(85893),s=r(31046),a=r(6459),c=r(88329),l=r(68029),d=r(90092),p=r(38491),h=r(12553),u=r(54506),f=r(30980),m=r(82206),x=r(4296),g=r(89342),y=r(48899),b=r(57556),v=r(41664),w=r.n(v),A=r(49384),_=r(98273),j=r(17047),C=r(67294),S=r(81872),R=r(5434),O=r(79352),L=r(4394),k=r(49573),I=r(45697),E=r.n(I),T=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var P=function(e){function ReCAPTCHA(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(_assertThisInitialized(t)),t.handleErrored=t.handleErrored.bind(_assertThisInitialized(t)),t.handleChange=t.handleChange.bind(_assertThisInitialized(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(_assertThisInitialized(t)),t}ReCAPTCHA.prototype=Object.create(e.prototype),ReCAPTCHA.prototype.constructor=ReCAPTCHA,_setPrototypeOf(ReCAPTCHA,e);var t=ReCAPTCHA.prototype;return t.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},t.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},t.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},t.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},t.executeAsync=function(){var e=this;return new Promise(function(t,r){e.executionResolve=t,e.executionReject=r,e.execute()})},t.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},t.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},t.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},t.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},t.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},t.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=e(t,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},t.componentDidMount=function(){this.explicitRender()},t.componentDidUpdate=function(){this.explicitRender()},t.handleRecaptchaRef=function(e){this.captcha=e},t.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated,function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,T));return C.createElement("div",_extends({},t,{ref:this.handleRecaptchaRef}))},ReCAPTCHA}(C.Component);P.displayName="ReCAPTCHA",P.propTypes={sitekey:E().string.isRequired,onChange:E().func,grecaptcha:E().object,theme:E().oneOf(["dark","light"]),type:E().oneOf(["image","audio"]),tabindex:E().number,onExpired:E().func,onErrored:E().func,size:E().oneOf(["compact","normal","invisible"]),stoken:E().string,hl:E().string,badge:E().oneOf(["bottomright","bottomleft","inline"]),isolated:E().bool}
1,P.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var z=r(8679),W=r.n(z);function async_script_loader_extends(){return(async_script_loader_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var U={},N=0,F="onloadcallback";function getOptions(){return"undefined"!=typeof window&&window.recaptchaOptions||{}}var D=(n=function(){var e=getOptions(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+F+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+F+"&render=explicit"},i=(i={callbackName:F,globalName:"grecaptcha",attributes:getOptions().nonce?{nonce:getOptions().nonce}:{}})||{},function(e){var t=e.displayName||e.name||"Component",r=function(t){function AsyncScriptLoader(e,r){var n;return(n=t.call(this,e,r)||this).state={},n.__scriptURL="",n}AsyncScriptLoader.prototype=Object.create(t.prototype),AsyncScriptLoader.prototype.constructor=AsyncScriptLoader,AsyncScriptLoader.__proto__=t;var r=AsyncScriptLoader.prototype;return r.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+N++),this.__scriptLoaderID},r.setupScriptURL=function(){return this.__scriptURL="function"==typeof n?n():n,this.__scriptURL},r.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)})},r.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=U[this.__scriptURL];if(!e||!e.loaded)throw Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[i.callbackName]},r.componentDidMount=function(){var e=this,t=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),n=i,o=n.globalName,s=n.callbackName,a=n.scriptId;if(o&&void 0!==window[o]&&(U[t]={loaded:!0,observers:{}}),U[t]){var c=U[t];if(c&&(c.loaded||c.errored)){this.asyncScriptLoaderHandleLoad(c);return}c.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)};return}var l={};l[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},U[t]={loaded:!1,observers:l};var d=document.createElement("script");for(var p in d.src=t,d.async=!0,i.attributes)d.setAttribute(p,i.attributes[p]);a&&(d.id=a);var callObserverFuncAndRemoveObserver=function(e){if(U[t]){var r=U[t].observers;for(var n in r)e(r[n])&&delete r[n]}};s&&"undefined"!=typeof window&&(window[s]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),d.onload=function(){var e=U[t];e&&(e.loaded=!0,callObserverFuncAndRemoveObserver(function(t){return!s&&(t(e),!0)}))},d.onerror=function(){var e=U[t];e&&(e.errored=!0,callObserverFuncAndRemoveObserver(function(t){return t(e),!0}))},document.body.appendChild(d)},r.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===i.removeOnUnmount)for(var t=document.getElementsByTagName("script"),r=0;r<t.length;r+=1)t[r].src.indexOf(e)>-1&&t[r].parentNode&&t[r].parentNode.removeChild(t[r]);var n=U[e];n&&(delete n.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===i.removeOnUnmount&&delete U[e])},r.render=function(){var t=i.globalName,r=this.props,n=(r.asyncScriptOnLoad,r.forwardedRef),o=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}(r,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(o[t]=void 0!==window[t]?window[t]:void 0),o.ref=n,(0,C.createElement)(e,o)},AsyncScriptLoader}(C.Component),o=(0,C.forwardRef)(function(e,t){return(0,C.createElement)(r,async_script_loader_extends({},e,{forwardedRef:t}))});return o.displayName="AsyncScriptLoader("+t+")",o.propTypes={asyncScriptOnLoad:E().func},W()(o,e)})(P),H=r(87066),q=r(11163),G=r(23234),V=r(41014);let SignUpComoponent=()=>{let e=(0,q.useRouter)(),[t,r]=(0,C.useState)(!1),{t:n}=(0,k.$G)("auth"),i=b.I8.currentUser,{createUser:v,handleRegisterGoogle:I,logout:E}=(0,L.q)(),T=(0,s.ff)("navy.700","white"),P="gray.500",z=(0,s.ff)("navy.700","gray.500"),W=(0,s.ff)("brand.500","white"),U=(0,s.ff)("brand.500","brand.400"),N=(0,s.ff)("gray.200","whiteAlpha.200"),F=(0,s.ff)({color:"gray.500",fontWeight:"500"},{color:"whiteAlpha.600",fontWeight:"500"}),[V,Z]=C.useState(!1),[B,J]=(0,C.useState)({}),[M,X]=(0,C.useState)({}),[K,Y]=(0,C.useState)(null),[Q,$]=(0,C.useState)(!1),ee=(0,a.p)(),handleClick=()=>Z(!V),handleRegister=async()=>{var t,n,i,o,s;let a={};if(B.email?(t=B.email,/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)||(a.email="ã¡ã¼ã«ã®å½¢å¼ãã確ãããã ãã")):a.email="ã¡ã¼ã«ãå
¥åãã¦ãã ããã",B.password||(a.password="ãã¹ã¯ã¼ããå
¥åãã¦ãã ããã"),B.confirmPassword||(a.confirmPassword="ãã¹ã¯ã¼ããå
¥åãã¦ãã ããã"),B.confirmPassword&&B.password&&B.confirmPassword!=B.password&&(a.confirmPassword="Not the same as password"),Object.keys(a).length>0){X(a);return}if(!K){ee({title:"reCAPTCHAã確èªãã¦ãã ãã",description:"reCAPTCHAã確èªãã¦ãã ãã",status:"error",duration:9e3,isClosable:!0});return}try{$(!0),r(!0);let t=await (0,G.Nr)(b.I8,B.email);if(t.includes("password"))await H.Z.post("/api/user/verify/send-verify-email",{email:B.email,password:B.password}),ee({title:"Success",description:"ã¢ã«ã¦ã³ãã使ããã¾ãã",status:"success",duration:9e3,isClosable:!0});else{let e=await v(B.email,B.password);e&&(await (0,G.w7)(b.I8),await H.Z.post("/api/user/verify/send-verify-email",{email:e.email,password:B.password}),ee({title:"Success",description:"ã¢ã«ã¦ã³ãã使ããã¾ãã",status:"success",duration:9e3,isClosable:!0}))}let n="/register/success?email=".concat(B.email);e.push(n)}catch(e){(null==e?void 0:null===(i=e.response)||void 0===i?void 0:null===(n=i.data)||void 0===n?void 0:n.message)==="User already verify email"?ee({title:"Error",description:"ãã®ã¡ã¼ã«ã¢ãã¬ã¹ã¯æ¢ã«ä½¿ç¨ããã¦ãã¾ã",status:"error",duration:9e3,isClosable:!0}):(null==e||null===(s=e.response)||void 0===s||null===(o=s.data)||void 0===o||o.message,ee({title:"Error",description:"ã¨ã©ã¼ãçºçãã¾ãããããä¸åº¦ã試ããã ããã",status:"error",duration:9e3,isClosable:!0}))}finally{$(!1)}};return(0,C.useEffect)(()=>{(null==i?void 0:i.uid)&&!t&&e.push("/article/list")}
1,[i]),(0,o.jsx)(j.Z,{illustrationBackground:null===A.Z||void 0===A.Z?void 0:A.Z.src,children:(0,o.jsxs)(c.k,{w:"100%",maxW:"max-content",mx:{base:"auto",lg:"0px"},me:"auto",h:"100%",justifyContent:"center",mb:{base:"30px",md:"60px"},px:{base:"25px",md:"0px"},mt:{base:"40px",md:"8vh"},flexDirection:"column",children:[(0,o.jsxs)(l.x,{me:"auto",children:[(0,o.jsx)(d.x,{fontWeight:"700",color:T,fontSize:{base:"34px",lg:"36px"},mb:"10px",children:n("register")}),(0,o.jsx)(d.x,{mb:"36px",ms:"4px",color:P,fontWeight:"500",fontSize:"sm",children:n("accountCreation")})]}),(0,o.jsxs)(c.k,{zIndex:"2",direction:"column",w:{base:"100%",md:"420px"},maxW:"100%",background:"transparent",borderRadius:"15px",mx:{base:"auto",lg:"unset"},me:"auto",mb:{base:"20px",md:"auto"},children:[(0,o.jsxs)(p.z,{variant:"transparent",border:"1px solid",borderColor:N,borderRadius:"14px",ms:"auto",mb:"30px",fontSize:"sm",w:{base:"100%"},h:"54px",onClick:()=>{I("/article/list")},children:[(0,o.jsx)(h.J,{as:S.JM8,w:"20px",h:"20px",me:"10px"}),n("continueWithGoogle")]}),(0,o.jsxs)(c.k,{align:"center",mb:"25px",children:[(0,o.jsx)(_.q,{}),(0,o.jsx)(d.x,{color:P,fontWeight:"500",fontSize:"sm",mx:"14px",children:n("or")}),(0,o.jsx)(_.q,{})]}),(0,o.jsxs)(u.NI,{children:[(0,o.jsxs)(f.l,{cursor:"pointer",display:"flex",ms:"4px",htmlFor:"email",fontSize:"sm",fontWeight:"500",color:T,mb:"8px",children:[n("email")," ",(0,o.jsx)(d.x,{color:U,children:"*"})]}),(0,o.jsx)(m.I,{isRequired:!0,id:"email",variant:"auth",fontSize:"sm",type:"email",borderColor:N,placeholder:n("email_placeholder"),mb:"24px",size:"lg",_placeholder:{placeholderColor:F},h:"54px",fontWeight:"500",onChange:e=>{X(e=>({...e,email:""})),J(t=>({...t,email:e.target.value}))}}),(0,o.jsx)(f.l,{cursor:"pointer",fontSize:"sm",fontWeight:"500",htmlFor:"pass",color:"red.600",marginTop:"-15px",display:"flex",children:(0,o.jsx)(d.x,{color:"red.500",children:M.email})}),(0,o.jsxs)(f.l,{cursor:"pointer",ms:"4px",fontSize:"sm",fontWeight:"500",htmlFor:"pass",color:T,display:"flex",children:[n("password"),(0,o.jsx)(d.x,{color:U,children:"*"})]}),(0,o.jsxs)(x.B,{size:"md",children:[(0,o.jsx)(m.I,{isRequired:!0,variant:"auth",id:"pass",fontSize:"sm",placeholder:n("password_placeholder"),mb:"24px",size:"lg",h:"54px",borderColor:N,fontWeight:"500",_placeholder:{placeholderColor:F},type:V?"text":"password",onChange:e=>{X(e=>({...e,password:""})),J(t=>({...t,password:e.target.value}))}}),(0,o.jsx)(g.x,{display:"flex",alignItems:"center",mt:"4px",children:(0,o.jsx)(h.J,{color:P,_hover:{cursor:"pointer"},as:V?O.nO8:R.WCS,onClick:handleClick})})]}),(0,o.jsx)(f.l,{cursor:"pointer",fontSize:"sm",fontWeight:"500",htmlFor:"pass",color:"red.600",marginTop:"-15px",display:"flex",children:(0,o.jsx)(d.x,{color:"red.500",children:M.password})}),(0,o.jsxs)(f.l,{cursor:"pointer",htmlFor:"confirm",ms:"4px",fontSize:"sm",fontWeight:"500",borderColor:N,color:T,display:"flex",children:[n("confirmPassword")," ",(0,o.jsx)(d.x,{color:U,children:"*"})]}),(0,o.jsxs)(x.B,{size:"md",children:[(0,o.jsx)(m.I,{isRequired:!0,variant:"auth",fontSize:"sm",placeholder:n("confirmPassword_placeholder"),id:"confirm",mb:"24px",size:"lg",borderColor:N,h:"54px",fontWeight:"500",_placeholder:{placeholderColor:F},type:V?"text":"password",onChange:e=>{X(e=>({...e,confirmPassword:""})),J(t=>({...t,confirmPassword:e.target.value}))}}),(0,o.jsx)(g.x,{display:"flex",alignItems:"center",mt:"4px",children:(0,o.jsx)(h.J,{color:P,_hover:{cursor:"pointer"},as:V?O.nO8:R.WCS,onClick:handleClick})})]}),(0,o.jsx)(f.l,{cursor:"pointer",fontSize:"sm",fontWeight:"500",htmlFor:"pass",color:"red.600",marginTop:"-15px",display:"flex",children:(0,o.jsx)(d.x,{color:"red.500",children:M.confirmPassword})}),(0,o.jsxs)(d.x,{fontSize:"xs",my:"10px",children:["ä¼å¡ç»é²ã«ã¯",(0,o.jsx)(w(),{href:"/terms",passHref:!0,children:(0,o.jsxs)(d.x,{textDecor:"underline",as:"span",className:"",children:[" ","å©ç¨è¦ç´"]})}),"ã¨",(0,o.jsx)(w(),{href:"/privacy",passHref:!0,children:(0,o.jsx)(d.x,{textDecor:"underline",as:"span",className:"",children:"ãã©ã¤ãã·ã¼ããªã·ã¼"})}),"ã¸ã®åæãå¿
è¦ã§ãã"]}),(0,o.jsx)(x.B,{my:"10px",justifyContent:"center",children:(0,o.jsx)(D,{className:"capcha-wrapper",sitekey:"6Le-mgYqAAAAAFg04_AmEMCxY_7sigS9lvzkUkWm",onCh
1ange:e=>{Y(e)}})}),(0,o.jsx)(p.z,{disabled:!!K,variant:"primary",py:"20px",px:"16px",fontSize:"sm",borderRadius:"45px",mt:{base:"20px",md:"0px"},w:"100%",h:"54px",mb:"24px",onClick:()=>{handleRegister()},children:Q?(0,o.jsx)(y.$,{}):n("register")})]}),(0,o.jsxs)(c.k,{justifyContent:"center",alignItems:"start",maxW:"100%",mt:"0px",children:[(0,o.jsxs)(d.x,{color:z,fontWeight:"500",fontSize:"sm",children:[n("alreadyHaveAccount")," "]}),(0,o.jsx)(w(),{href:"/sign-in",passHref:!0,children:(0,o.jsx)(l.x,{py:"0px",lineHeight:"120%",children:(0,o.jsx)(d.x,{color:W,fontSize:"sm",as:"span",ms:"5px",fontWeight:"600",children:n("login")})})})]})]})]})})};var Z=!0,register=function(){return(0,o.jsx)(V.Z,{children:(0,o.jsx)(SignUpComoponent,{})})}},41014:function(e,t,r){"use strict";var n=r(85893),i=r(5152),o=r.n(i),s=r(67294);let NoSsr=e=>(0,n.jsx)(s.Fragment,{children:e.children});t.Z=o()(()=>Promise.resolve(NoSsr),{ssr:!1})},17047:function(e,t,r){"use strict";r.d(t,{Z:function(){return DefaultAuthLayout}});var n=r(85893),i=r(88329),o=r(68029),s=r(31046);function Footer(){return(0,s.ff)("gray.500","white"),(0,n.jsx)(i.k,{zIndex:"3",flexDirection:{base:"column",lg:"row"},alignItems:"center",justifyContent:"space-between",px:{base:"30px",md:"0px"},pb:"30px"})}function DefaultAuthLayout(e){let{children:t,illustrationBackground:r}=e;return(0,n.jsx)(i.k,{position:"relative",h:"max-content",children:(0,n.jsxs)(i.k,{h:{sm:"initial",md:"unset",lg:"100vh",xl:"97vh"},w:"100%",maxW:{md:"66%",lg:"1313px"},mx:"auto",pt:{sm:"50px",md:"0px"},px:{lg:"30px",xl:"0px"},ps:{xl:"70px"},justifyContent:"start",direction:"column",children:[t,(0,n.jsx)(o.x,{display:{base:"none",md:"block"},h:"100%",minH:"100vh",w:{lg:"50vw","2xl":"44vw"},position:"absolute",right:"0px",children:(0,n.jsx)(i.k,{bg:"url(".concat(r,")"),justify:"center",align:"end",w:"100%",h:"100%",bgSize:"cover",bgPosition:"50%",position:"absolute"})}),(0,n.jsx)(Footer,{})]})})}},98273:function(e,t,r){"use strict";r.d(t,{q:function(){return HSeparator}});var n=r(85893),i=r(31046),o=r(88329);let HSeparator=e=>{let t=(0,i.ff)("gray.200","whiteAlpha.300"),{variant:r,...s}=e;return(0,n.jsx)(o.k,{h:"1px",w:"100%",bg:t,...s})}},4394:function(e,t,r){"use strict";r.d(t,{q:function(){return managerAuth}});var n=r(57556),i=r(56433),o=r(23234),s=r(90109),a=r(11163),c=r(9473);let managerAuth=()=>{let e=(0,a.useRouter)(),t=(0,c.I0)(),updateOnfirebase=async e=>{try{let t=(0,s.JU)(n.RZ,"users",e.uid),r=await (0,s.QT)(t);if(void 0===r.data())try{await (0,s.pl)(t,{informationUser:e})}catch(e){console.log("error set data ")}else try{await (0,s.r7)(t,{informationUser:e})}catch(e){console.log(e)}}catch(e){console.log(e)}};async function logout(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/sign-in";await (0,o.w7)(n.I8),r&&(t({type:i.xL,data:0}),t({type:i.AX,data:null}),e.push(r))}return{handleLoginGoogle:function(t){let r=new o.hJ;r.addScope("https://www.googleapis.com/auth/userinfo.profile"),r.addScope("https://www.googleapis.com/auth/userinfo.email"),r.setCustomParameters({prompt:"select_account"}),(0,o.rh)(n.I8,r).then(async r=>{let{user:n}=r,i=n.providerData[0].email;await updateOnfirebase({uid:n.uid,email:i,photoURL:n.photoURL,displayName:n.displayName,phoneNumber:n.phoneNumber,createdAt:new Date().getTime(),updatedAt:new Date().getTime()}),e.push(t)}).catch(e=>{console.log(e)})},handleRegisterGoogle:function(t){let r=new o.hJ;r.setCustomParameters({prompt:"select_account"}),r.addScope("https://www.googleapis.com/auth/userinfo.profile"),r.addScope("https://www.googleapis.com/auth/userinfo.email"),(0,o.rh)(n.I8,r).then(async r=>{let n=r.user,i=n.providerData[0].email;await updateOnfirebase({uid:n.uid,email:i,photoURL:n.photoURL,createdAt:new Date().getTime(),updatedAt:new Date().getTime()}),e.push(t)}).catch(e=>{console.log(e)})},createUser:async function(e,t){let r=await (0,o.Xb)(n.I8,e,t);if(r.user){let e=r.user;return await updateOnfirebase({uid:e.uid,email:e.email,photoURL:e.photoURL,createdAt:new Date().getTime(),updatedAt:new Date().getTime()}),e}return null},handleLogin:async function(t,r,i){return await (0,o.e5)(n.I8,t,r).then(async t=>{console.log(t);let{user:r}=t;if(!r.emailVerified)return alert("We have sent an activation email to your email address."),logout(""),"";e.push(i)}).catch(e=>e.code)},logout,handleLoginauthen:async function(e,t,r){return await (0,o.e5)(n.I8,e,t).then(e=>e).catch(e=>e.code)},updateOnfirebase}}},92703:function(e,t,r){"use strict";var n=r(50414);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,t,r,i,o,s){if
1(s!==n){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},45697:function(e,t,r){e.exports=r(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},function(e){e.O(0,[1228,5937,994,1664,4055,7066,6540,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.