1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8295],{14038:e=>{e.exports={form:"login_form__zP3_Z",passwordContainer:"login_passwordContainer__Ts_mO",rememberMe:"login_rememberMe__rLNwz",loading:"login_loading__4OmuH",branding:"login_branding__sL2Jp",extras:"login_extras__LMey7",wrapper:"login_wrapper__tgfVZ",developmentWarning:"login_developmentWarning__mfSJZ",showPassword:"login_showPassword__3TC2Z"}},22533:(e,n,r)=>{"use strict";r.d(n,{A:()=>i});var s=r(75038);r(76430);var o=r(43746),a=r.n(o);let t={blue:a().blue,green:a().green,red:a().red,yellow:a().yellow,orange:a().orange},i=({color:e,header:n,content:r,list:o})=>{let i=e?t[e]:"";return(0,s.jsxs)("div",{className:`${a().message} ${i}`,children:[n&&(0,s.jsx)("div",{className:a().header,children:n}),r&&(0,s.jsx)("p",{className:a().content,children:r}),o&&(0,s.jsx)("ul",{children:o.map((e,n)=>(0,s.jsx)("li",{children:e},n))})]})}},34471:(e,n,r)=>{"use strict";r.r(n),r.d(n,{default:()=>v});var s=r(75038),o=r(76430),a=r(22533),t=r(98381),i=r(88398),l=r.n(i),d=r(32071),c=r(22335),m=r(3957),_=r(56771),g=r(68835),u=r(69133),p=r(34719),h=r(92910),w=r(40120),x=r(14168),f=r(26975),j=r(14038),b=r.n(j);let v=()=>{let e=(0,t.useRouter)(),[n,r]=(0,o.useState)(!1),[i,j]=(0,o.useState)(""),[v,A]=(0,o.useState)(""),[y,N]=(0,o.useState)(""),[C,k]=(0,o.useState)(!0),[O,S]=(0,o.useState)(!1);return(0,s.jsxs)(p.A,{className:b().wrapper,title:"Archidekt login",noAds:!0,children:[(0,s.jsx)(l(),{children:(0,s.jsx)("link",{rel:"canonical",href:`${d.Ay.rootUrl}/login`})}),(0,s.jsxs)("div",{className:b().branding,children:[(0,s.jsx)(x.A,{name:"archidekt"}),"Archidekt ",d.Ay.runningOnPrivateServer&&"development"," login"]}),d.Ay.runningOnPrivateServer&&(0,s.jsx)("div",{className:b().developmentWarning,children:(0,s.jsx)(h.A,{href:"https://archidekt.com",children:(0,s.jsxs)("button",{children:[(0,s.jsx)("span",{children:"This is the Archidekt beta website"}),(0,s.jsx)("span",{children:"Click here to go to Archidekt.com"})]})})}),(0,s.jsxs)("form",{className:b().form,onSubmit:n=>{n.preventDefault(),r(!0),j(""),m.A.login(v,y,C).then(n=>{let r=Number(n.user.patreonAccount?.pledge?.level)>=c.qw.COMMON,s=Number(n.user.patreonAccount?.pledge?.level)>=c.qw.UNCOMMON,o=n.user.profile.roles.includes(c.gg.TESTER)||s;if(!r&&window.$adManagementConfig?.web?.identityOptIn&&window.$adManagementConfig.web.identityOptIn({email:n.user.uniqueId}),d.Ay.runningOnPrivateServer&&!o)return e.push("/connect-patreon");if(e.query.redirectTo?.toLocaleString().toLowerCase().includes("javascript")){window.location="/";return}if(e.query.redirectTo?.toLocaleString().includes("/cardImport")){window.location=`/cardImport?c=${encodeURIComponent(e.query.redirectTo.replace("/cardImport?c=",""))}`;return}if(e.query.redirectTo){let n=`${e.query.redirectTo}`.replace("//","/");window.location=decodeURIComponent(n)}else window.location="/"}).catch(e=>{if(console.error(e),r(!1),!e.non_field_errors)return j("Unable to login with the provided credentials.");"E-mail is not verified."===e.non_field_errors[0]?j(e.non_field_errors[0]+" For your convenience, a new confirmation email has been sent."):j(e.non_field_errors[0])})},method:"post",name:"archidekt-login-form",children:[(0,s.jsx)(_.A,{name:"username",header:"Username",placeholder:"Username or Email",onChange:A,focusOnMount:!0,inlineHeader:!0,autocomplete:"username",type:"text",uncontrolledInput:!0}),(0,s.jsxs)("div",{className:b().passwordContainer,children:[(0,s.jsx)(_.A,{header:"Password",name:"password",type:O?"text":"password",placeholder:"Password",onChange:N,inlineHeader:!0,autocomplete:"current-password",uncontrolledInput:!0}),(0,s.jsx)("button",{type:"button",className:b().showPassword,onClick:()=>S(!O),tabIndex:-1,children:(0,s.jsx)(w.A,{name:O?"eye slash":"eye"})})]}),(0,s.jsx)(g.A,{disabled:n,type:"submit",color:"green",children:n?(0,s.jsxs)("span",{className:b().loading,children:[(0,s.jsx)(u.A,{size:"xSmall"}),"Checking info!"]}):"Login"})]}),i&&(0,s.jsx)(a.A,{color:"red",header:"Login failed",content:i}),(0,s.jsx)(f.A,{label:"Remember Me",className:b().rememberMe,onChange:()=>k(!C),checked:C}),(0,s.jsxs)("div",{className:b().extras,children:[(0,s.jsx)("span",{children:"Forgot your password?"}),(0,s.jsx)(h.A,{href:"/forgot-password",children:"Reset password"})]})]})}},43746:e=>{e.exports={message:"message_message__OOkpZ",header:"message_header__2aitY",content:"message_content__5g5XJ",red:"message_red__gfBEF",green:"message_green__tGO0d",blue:"message_blue__aA_ek",orange:"message_orange__QRQVf",yellow:"message_yellow__zwm8o"}},66883:(e,n,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return r(34471)}])}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=66883)),_N_E=e.O()}]); 2//# sourceMappingURL=login-ad54bf325aecc3f8.js.map
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.