1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[65],{37265:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/signin",function(){return t(54972)}])},54972:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return w},default:function(){return E}});var i=t(85893),o=t(33299),r=t(41664),s=t.n(r),a=t(25675),l=t.n(a),c=t(26703),d=t.n(c),x=t(67294),g=t(55678);t(37677);var p=t(11163),u=t(42579);let f=(0,x.createContext)({email:"",setEmail:e=>null,confirmationCode:"",setConfirmationCode:e=>null,codeSent:!1,setCodeSent:e=>null,providers:{},setProviders:e=>null});function m(){return(0,x.useContext)(f)}function h(e){let[n,t]=(0,x.useState)(""),[o,r]=(0,x.useState)(""),[s,a]=(0,x.useState)(!1),[l,c]=(0,x.useState)(e.providers||{});return(0,x.useEffect)(()=>{let e=window.location.hostname;(0,u.C8)(e)&&c({})},[]),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(f.Provider,{value:{email:n,setEmail:e=>{t((e||"").trim().toLowerCase())},confirmationCode:o,setConfirmationCode:r,codeSent:s,setCodeSent:a,providers:l,setProviders:c},children:e.children})})}var y=t(9008),b=t.n(y),j=t(35092),v=t(11079);let _=e=>{let{callbackUrl:n}=e,{email:t,confirmationCode:o,setConfirmationCode:r}=m(),{userLanguage:s}=(0,j.bN)(),a=(0,p.useRouter)();return(0,i.jsxs)("div",{style:{display:"flex",justifyContent:"center",flexWrap:"wrap"},children:[(0,i.jsx)("p",{style:{margin:"0 0 24px 0",textAlign:"center",width:"100%",fontFamily:'"Inter", sans-serif',fontSize:"14px",color:"#6B7280",lineHeight:1.5},children:"pt"===s?"Um c\xf3digo de confirma\xe7\xe3o foi enviado para ".concat(t,". Por favor, insira-o abaixo."):"A confirmation code has been sent to ".concat(t,". Please enter it below.")}),(0,i.jsx)("input",{style:{fontSize:16,width:"100%",padding:"16px 20px",textAlign:"left",border:"2px solid #E5E7EB",borderRadius:"12px",backgroundColor:"#fff",color:"#111827",fontFamily:'"Inter", sans-serif',transition:"all 0.2s ease",outline:"none",marginBottom:"16px"},onFocus:e=>{e.target.style.borderColor="#0141E3",e.target.style.boxShadow="0 0 0 3px rgba(1, 65, 227, 0.1)"},onBlur:e=>{e.target.style.borderColor="#E5E7EB",e.target.style.boxShadow="none"},placeholder:"pt"===s?"C\xf3digo de confirma\xe7\xe3o":"Confirmation code",id:"c
1onfirmation-code",onChange:e=>r(e.target.value),type:"text"}),(0,i.jsx)("button",{className:d()["sign-in-button"],onClick:()=>a.push("/api/auth/callback/email?email=".concat(encodeURIComponent(t),"&token=").concat(o,"&callbackUrl=").concat(encodeURIComponent(n),"\n ")),children:(0,i.jsx)(j.xv,{tid:"signin_confirm"})})]})},C=e=>{let{callbackUrl:n}=e,{providers:t,email:r,setEmail:s,setCodeSent:a}=m(),{userLanguage:c}=(0,j.bN)(),x=async(e,t)=>{var i;null==e||null===(i=e.preventDefault)||void 0===i||i.call(e),console.log("[auth/signin] user is trying to sign in with providerId",t);let s=await (0,o.signIn)(t,"email"===t?{callbackUrl:n,email:r,redirect:!1}:{callbackUrl:n});"email"===t&&s.error?g.Am.error("An error occurred. Please try again.",{hideProgressBar:!0,position:"bottom-center",autoClose:5e3,closeOnClick:!0}):"email"!==t||s.error||a(!0)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(b(),{children:[(0,i.jsx)("title",{children:"pt"===c?"NodeLand | Entrar":"NodeLand | Sign In"}),(0,i.jsx)("meta",{name:"description",content:"pt"===c?"Entre para come\xe7ar a conectar ideias.":"Sign in to start connecting ideas."}),(0,i.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,i.jsx)("meta",{name:"description",content:"NodeLand Authentication"})]}),(0,i.jsx)("h3",{style:{letterSpacing:"1.3",lineHeight:"2",fontSize:"2rem",fontWeight:"500",fontFamily:'"Bricolage Grotesque", sans-serif',color:"#333"}}),Object.keys(t).length>0&&Object.values(t).filter(e=>{var n,t;let i=(null==e?void 0:null===(n=e.name)||void 0===n?void 0:n.toLowerCase())==="credentials",o=(null==e?void 0:null===(t=e.name)||void 0===t?void 0:t.toLowerCase())==="mail";return!i&&!o}).map(e=>{var n;return(0,i.jsx)("div",{children:(0,i.jsxs)("button",{onClick:async n=>await x(void 0,e.id),className:d()["sign-in-button"],children:[(0,i.jsx)(l(),{alt:"".concat(e.name," logo"),src:"/icons/".concat(null===(n=e.name)||void 0===n?void 0:n.toLowerCase(),".png"),width:32,height:32}),"pt"===c?"Continuar com ".concat(e.name):"Continue with ".concat(e.name)]})},e.name)}),Object.keys(t).length>0&&(0,i.jsxs)("div",{style:{margin:30,display:"flex",justifyContent:"center",alignItems:"center",fontSize:14},children:[(0,i.jsx)("div",{style:{width:"80px",height:1,backgroundColor:"#aaa",margin:10}}),"pt"===c?(0,i.jsx)("p",{children:"OU"}):(0,i.jsx)("p",{children:"OR"}),(0,i.jsx)("div",{style:{width:"80px",height:1,backgroundColor:"#aaa",margin:10}})]}),(0,i.jsxs)("form",{onSubmit:async e=>await x(e,"email"),children:[(0,i.jsx)("input",{style:{fontSize:16,width:"100%",padding:"16px 20px",marginTop:"8px",marginBottom:"16px",textAlign:"left",border:"2px solid #E5E7EB",borderRadius:"12px",backgroundColor:"#fff",fontFamily:'"Inter", sans-serif',color:"#111827",transition:"all 0.2s ease",outline:"none"},onFocus:e=>{e.target.style.borderColor="#0141E3",e.target.style.boxShadow="0 0 0 3px rgba(1, 65, 227, 0.1)"},onBlur:e=>{e.target.style.borderColor="#E5E7EB",e.target.style.boxShadow="none"},placeholder:"pt"===c?"Endere\xe7o de e-mail":"Email address",id:"email",type:"email",name:"email",value:r,onChange:e=>s(e.target.value)}),(0,i.jsx)("button",{type:"submit",className:d()["sign-in-button"],disabled:!r||r.length<5,style:{opacity:!r||r.length<5?.6:1,cursor:!r||r.length<5?"not-allowed":"pointer"},children:"pt"===c?"Continuar":"Continue"})]})]})};function S(){let e=(0,v.d)(),{codeSent:n}=m(),t=(0,p.useRouter)(),[o,r]=(0,x.useState)(""),[a,l]=(0,x.useState)(t.query.callbackUrl);return((0,x.useEffect)(()=>{r(window.location.origin)},[]),(0,x.useEffect)(()=>{let e=Object.keys(t.query).filter(e=>"callbackUrl"!==e).map(e=>"".concat(e,"=").concat(t.query[e])).join("&");console.log("formattedQueryParams",e);let n=o+t.query.callbackUrl||"/".concat(t.locale,"/maps");if(e){let t=n.includes("?")?"&":"?";l(n+t+e)}else l(n)},[t.query,o]),e)?(0,i.jsxs)("div",{style:{background:"#fff",height:"100vh",padding:"40px 24px",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.15)"},children:[(0,i.jsxs)("div",{style:{textAlign:"center",marginBottom:"32px"},children:[(0,i.jsx)("div",{style:{fontSize:"48px",marginBottom:"16
1px"},children:"\uD83E\uDDE0"}),(0,i.jsx)("h2",{style:{fontFamily:'"Bricolage Grotesque", sans-serif',fontSize:"24px",fontWeight:"600",margin:"0 0 8px 0",color:"#111827"},children:(0,i.jsx)(j.xv,{tid:"signin_title"})})]}),!n&&(0,i.jsx)(C,{callbackUrl:a}),n&&(0,i.jsx)(_,{callbackUrl:a}),(0,i.jsxs)("div",{style:{marginTop:"20px",fontSize:"11px",color:"#9CA3AF",textAlign:"center",fontFamily:'"Inter", sans-serif',lineHeight:1.4},children:[(0,i.jsx)(j.xv,{tid:"signin_by_signing_in_you_agree_to_our"}),(0,i.jsx)("br",{}),(0,i.jsx)("a",{href:"/privacy-policy.html",style:{color:"#0141E3",textDecoration:"none"},children:(0,i.jsx)(j.xv,{tid:"signin_privacy_policy"})})," ",(0,i.jsx)(j.xv,{tid:"signin_and"})," ",(0,i.jsx)("a",{href:"/terms-of-service.html",style:{color:"#0141E3",textDecoration:"none"},children:(0,i.jsx)(j.xv,{tid:"signin_terms_of_service"})})]})]}):(0,i.jsxs)("div",{style:{display:"flex",minHeight:"100vh"},children:[(0,i.jsxs)("div",{style:{flex:1,background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",display:"flex",alignItems:"center",justifyContent:"center",padding:"80px 60px",position:"relative",overflow:"hidden"},children:[(0,i.jsx)("div",{style:{position:"absolute",top:"-50%",left:"-50%",width:"200%",height:"200%",background:"radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px)",backgroundSize:"50px 50px",animation:"float 20s ease-in-out infinite",opacity:.3}}),(0,i.jsxs)("div",{style:{maxWidth:"480px",zIndex:1,color:"#fff"},children:[(0,i.jsxs)("div",{style:{marginBottom:"48px"},children:[(0,i.jsx)("div",{style:{fontSize:"64px",marginBottom:"24px"},children:"\uD83E\uDDE0"}),(0,i.jsx)("h1",{style:{fontFamily:'"Bricolage Grotesque", sans-serif',fontSize:"42px",fontWeight:"700",margin:"0 0 16px 0",lineHeight:"1.2",letterSpacing:"-0.02em"},children:(0,i.jsx)(j.xv,{tid:"mind_maps_home_page_section_0_title"})}),(0,i.jsx)("p",{style:{fontFamily:'"Inter", sans-serif',fontSize:"18px",color:"rgba(255,255,255,0.9)",lineHeight:"1.6",margin:"0 0 32px 0"},children:(0,i.jsx)(j.xv,{tid:"signin_description"})})]}),(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0px"},children:[{icon:"\uD83C\uDFAF",text:(0,i.jsx)(j.xv,{tid:"signin_benefit_1"})},{icon:"\uD83D\uDCC4",text:(0,i.jsx)(j.xv,{tid:"signin_benefit_2"})},{icon:"\uD83E\uDD1D",text:(0,i.jsx)(j.xv,{tid:"signin_benefit_3"})}].map((e,n)=>(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"16px",padding:"10px 0"},children:[(0,i.jsx)("div",{style:{fontSize:"24px",width:"48px",height:"48px",background:"rgba(255,255,255,0.2)",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",backdropFilter:"blur(10px)"},children:e.icon}),(0,i.jsx)("span",{style:{fontFamily:'"Inter", sans-serif',fontSize:"16px",fontWeight:"500",color:"rgba(255,255,255,0.95)"},children:e.text})]},n))}),(0,i.jsxs)("div",{style:{marginTop:"32px",padding:"20px",background:"rgba(255,255,255,0.08)",borderRadius:"16px",backdropFilter:"blur(10px)",border:"1px solid rgba(255,255,255,0.1)"},children:[(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"8px"},children:[(0,i.jsx)("div",{style:{fontSize:"20px"},children:"â¨"}),(0,i.jsx)("span",{style:{fontFamily:'"Inter", sans-serif',fontSize:"14px",color:"rgba(255,255,255,0.9)",fontWeight:"600"},children:(0,i.jsx)(j.xv,{tid:"pricing_invite_signin_premium_benefits"})})]}),(0,i.jsx)(s(),{href:"/pricing",style:{color:"rgba(255,255,255,0.8)",textDecoration:"underline",fontSize:"13px",fontFamily:'"Inter", sans-serif',transition:"color 0.2s ease"},onMouseEnter:e=>{e.target.style.color="rgba(255,255,255,1)"},onMouseLeave:e=>{e.target.style.color="rgba(255,255,255,0.8)"},children:(0,i.jsx)(j.xv,{tid:"pricing_invite_signin_learn_more"})})]})]})]}),(0,i.jsx)("div",{style:{flex:1,background:"#FAFBFC",display:"flex",alignItems:"center",justifyContent:"center",padding:"40px"},children:(0,i.jsxs)("div",{style:{background:"#fff",borderRadius:"24px",padding:"48px 40px",width:"100%",maxWidth:"420px",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.08)",border:"1px solid rgba(0, 0, 0, 0.06)"},children:[(0,i.jsx)("div",{style:{textAlign:"center",marginBottom:"32px"},children:(0,i.jsx)("h2",{style:{fontFamily:'"Bricolage Grotesque", sans-serif',fontSize:"28px",fontWeight:"600",margin:"0 0 8px 0",color:"#111827"},children:(0,i.jsx)(j.xv,{tid:"signin_title"})})}),!n&&(0,i.jsx)(C,{callbackUrl:a}),n&&(0,i.jsx)(_,{callbackUrl:a}),(0,i.jsxs)("div",{style:{marginTop:"24px",fontSize:"12px",color:"#9
1CA3AF",textAlign:"center",fontFamily:'"Inter", sans-serif',lineHeight:1.5},children:[(0,i.jsx)(j.xv,{tid:"signin_by_signing_in_you_agree_to_our"}),(0,i.jsx)("br",{}),(0,i.jsx)("a",{href:"/privacy-policy.html",style:{color:"#0141E3",textDecoration:"none"},children:(0,i.jsx)(j.xv,{tid:"signin_privacy_policy"})})," ",(0,i.jsx)(j.xv,{tid:"signin_and"})," ",(0,i.jsx)("a",{href:"/terms-of-service.html",style:{color:"#0141E3",textDecoration:"none"},children:(0,i.jsx)(j.xv,{tid:"signin_terms_of_service"})})]})]})})]})}var w=!0,E=e=>{let{providers:n}=e;return(0,v.d)(),(0,i.jsx)("div",{className:"document-wrapper",children:(0,i.jsx)(h,{providers:n,children:(0,i.jsx)(S,{})})})}},26703:function(e){e.exports={container:"Signin_container__wguMt",card:"Signin_card___6Mp8","sign-in-button":"Signin_sign-in-button__EUDgT","logo-text":"Signin_logo-text__EQe8a"}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=37265)}),_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.