PageSourceSearch

https://app.navattic.com/_next/static/chunks/pages/auth/login-dec58c15189d9ed2.js

js navattic.com collected 2026-09-24 08:28:28 UTC 30,215 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0fc65a91-d1e1-5128-af1e-86f1b349bfcf")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4384],{1497:(e,t,a)=>{"use strict";a.d(t,{y:()=>r});var s=a(6029),n=a(95632);function r(e){let{white:t=!1,height:a="25px",className:r,...i}=e;return(0,s.jsx)("svg",{...i,height:a,viewBox:"0 0 221 41",className:(0,n.cn)(r,t&&"text-white"),children:(0,s.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,s.jsxs)("g",{fill:"currentColor",fillRule:"nonzero",children:[(0,s.jsx)("path",{d:"M68.384374,11.2934631 C68.4500579,11.8776107 68.49932,12.5347669 68.5321619,13.2649513 L68.5621814,14.0350648 C68.5750102,14.4343818 68.5814245,14.7861598 68.5814245,15.0904033 L68.7292124,15.0904033 C69.0247897,14.4738031 69.4270971,13.8977773 69.9361468,13.3623088 C70.4451966,12.8268402 71.0281318,12.3562839 71.6849702,11.9506259 C72.3418085,11.5449679 73.0643199,11.2285593 73.8525259,11.0013908 C74.6407319,10.7742223 75.4617675,10.6606398 76.3156574,10.6606398 C77.8263859,10.6606398 79.123622,10.912144 80.2074051,11.4151599 C81.2911882,11.9181759 82.1943279,12.5915581 82.9168497,13.4353268 C83.6393722,14.2790955 84.1730448,15.2688863 84.5178852,16.4047288 C84.8627255,17.5405712 85.0351428,18.7575271 85.0351428,20.0556328 L85.0351428,34.3671766 L80.4044556,34.3671766 L80.4044556,21.5646732 C80.4044556,20.6235465 80.3305623,19.7311122 80.1827738,18.8873435 C80.0349852,18.0435748 79.7640414,17.2971752 79.3699404,16.6481224 C78.9758374,15.9990695 78.4339537,15.479835 77.7442736,15.0904033 C77.0545935,14.7009716 76.1678747,14.5062587 75.0840916,14.5062587 C73.2449443,14.5062587 71.7424491,15.195867 70.576561,16.5751043 C69.410673,17.9543416 68.8277377,19.7960014 68.8277377,22.1001391 L68.8277377,34.3671766 L64.1970505,34.3671766 L64.1970505,16.2586926 C64.1970505,15.6420924 64.1806298,14.8470146 64.1477879,13.8734353 C64.114946,12.8998561 64.0656838,12.039874 64,11.2934631 L68.384374,11.2934631 Z M105.429871,19.4228095 C105.429871,17.7028194 104.904409,16.4290723 103.853467,15.6015299 C102.802526,14.7739875 101.406765,14.3602225 99.6661437,14.3602225 C98.352467,14.3602225 97.1127033,14.6117267 95.9468152,15.1147427 C94.780927,15.6177587 93.8038947,16.2586887 93.0156887,17.0375522 L90.5525573,14.1168289 C91.7020245,
313.0458917 93.105995,12.2021356 94.7645121,11.5855355 C96.4230291,10.9689353 98.2046765,10.6606398 100.109507,10.6606398 C101.784445,10.6606398 103.237678,10.8959179 104.46925,11.3664812 C105.700822,11.8370445 106.710696,12.4779746 107.498902,13.2892907 C108.287108,14.1006068 108.878255,15.0579453 109.272356,16.1613352 C109.666459,17.264725 109.863508,18.449235 109.863508,19.7148818 L109.863508,29.7913769 C109.863508,30.5702403 109.888139,31.3896573 109.937402,32.2496523 C109.986665,33.1096473 110.076979,33.8154817 110.208346,34.3671766 L106.021023,34.3671766 C105.758288,33.2637868 105.626922,32.1604135 105.626922,31.0570236 L105.479134,31.0570236 C104.625244,32.2902241 103.549688,33.2475626 102.252432,33.9290682 C100.955176,34.6105737 99.4198398,34.9513213 97.6463759,34.9513213 C96.7268068,34.9513213 95.7661908,34.8296257 94.7645121,34.5862309 C93.7628334,34.342836 92.8514839,33.9452971 92.0304361,33.3936022 C91.2093884,32.8419073 90.5279286,32.1117338 89.986037,31.2030598 C89.4441455,30.2943858 89.1732036,29.1747865 89.1732036,27.8442281 C89.1732036,26.0917854 89.6494045,24.7044558 90.6018199,23.6821975 C91.5542353,22.6599392 92.8022095,21.8810875 94.3457797,21.3456189 C95.88935,20.8101503 97.6299452,20.4612897 99.5676184,20.2990264 C101.505292,20.1367632 103.459356,20.0556328 105.429871,20.0556328 L105.429871,19.4228095 Z M104.296831,23.3657858 C103.147364,23.3657858 101.956862,23.4144641 100.72529,23.511822 C99.4937186,23.6091799 98.3771102,23.8038928 97.3754314,24.0959666 C96.3737527,24.3880404 95.5445037,24.8261445 94.8876687,25.4102921 C94.2308336,25.9944396 93.9024161,26.7732914 93.9024161,27.7468707 C93.9024161,28.4283761 94.0419922,28.9962889 94.3211484,29.4506259 C94.6003046,29.9049629 94.9697711,30.2781627 95.4295576,30.5702364 C95.8893447,30.8623103 96.3983867,31.0651362 96.9566991,31.1787204 C97.5150089,31.2923047 98.0897369,31.349096 98.6808911,31.349096 C100.848458,31.349096 102.51516,30.7081659 103.681048,29.4262865 C104.846936,28.1444071 105.429871,26.5299124 105.429871,24.5827538 L105.429871,23.3657858 L104.296831,23.3657858 Z M126.612802,34.3671766 L121.588014,34.3671766 L112.080326,11.2934631 L117.20364,11.2934631 L124.051145,29.4506259 L124.149671,29.4506259 L131.046439,11.2934631 L135.972702,11.2934631 L126.612802,34.3671766 Z M153.017571,19.4228095 C153.017571,17.7028194 152.492109,16.4290723 151.441167,15.6015299 C150.390226,14.7739875 148.994465,14.3602225 147.253844,14.3602225 C145.940167,14.3602225 144.700403,14.6117267 143.534515,15.1147427 C142.368627,15.6177587 141.391595,16.2586887 140.603389,17.0375522 L138.140257,14.1168289 C139.289725,13.0458917 140.693695,12.2021356 142.352212,11.5855355 C144.010729,10.9689353 145.792377,10.6606398 147.697207,10.6606398 C149.372145,10.6606398 150.825378,10.8959179 152.05695,11.3664812 C153.288522,11.8370445 154.298396,12.4779746 155.086602,13.2892907 C155.874808,14.1006068 156.465955,15.0579453 156.860056,16.1613352 C157.254159,17.264725 157.451208,18.449235 157.451208,19.7148818 L157.451208,29.7913769 C157.451208,30.5702403 157.475839,31.3896573 157.525102,32.2496523 C157.574365,33.1096473 157.664679,33.8154817 157.796046,34.3671766 L153.608723,34.3671766 C153.345988,33.2637868 153.214622,32.1604135 153.214622,31.0570236 L153.066834,31.0570236 C152.212944,32.2902241 151.137388,33.2475626 149.840132,33.9290682 C148.542876,34.6105737 147.00754,34.9513213 145.234076,34.9513213 C144.314507,34.9513213 143.353891,34.8296257 142.352212,34.5862309 C141.350533,34.342836 140.439184,33.9452971 139.618136,33.3936022 C138.797088,32.8419073 138.115629,32.1117338 137.573737,31.2030598 C137.031846,30.2943858 136.760904,29.1747865 136.760904,27.8442281 C136.760904,26.0917854 137.237104,24.7044558 138.18952,23.6821975 C139.141935,22.6599392 140.389909,21.8810875 141.93348,21.3456189 C143.47705,20.8101503 145.217645,20.4612897 147.155318,20.2990264 C149.092992,20.1367632 151.047056,20.0556328 153.017571,20.0556328 L153.017571,19.4228095 Z M151.884531,23.3657858 C150.735064,23.3657858 149.544562,23.4144641 148.31299,23.511822 C147.081419,23.6091799 145.96481,23.8038928 144.963131,24.0959666 C143.961453,24.3880404 143.132204,24.8261445 142.475369,25.4102921 C141.818534,25.9944396 141.490116,26.7732914 141.490116,27.7468707 C141.490116,28.4283761 141.629692,28.9962889 141.908848,29.4506259 C142.188005,29.9049629 142.557471,30.2781627 143.017258,30.5702364 C143.477045,30.8623103 143.986087,31.0651362 144.544399,31.1787204 C145.102709,31.2923047 145.677437,31.349096 146.268591,31.349096 C148.436158,31.349096 150.10286,30.7081659 151.268748,29.4262865 C152.434636,28.1444071 153.017571,26.5299124 153.017571,24.5827538 L153.017571,23.3657858 L151.884531,23.3657858 Z M174.151239,15.0417246 L167.944148,15.0417246 L167.944148,27.0653686 C167.944148,28.4608322 168.206879,29.458736 168.73235,30.0591099 C169.257821,30.6594837 170.095277,30.9596662 171.244744,30.9596662 C171.671689,30.9596662 172.131469,30.9109879 172.624098,30.81363 C173.116727,30.7162721 173.560086,30.5702374 173.954189,30.3755216 L174.101977,34.123783 C173.543664,34.3184989 172.927887,34.4726466 172.254628,34.5862309 C171.581369,34.6998151 170.883489,34.7566064 170.160966,34.7566064 C167.960558,34.7566064 166.277435,34.1562415 165.111547,32.9554937 C163.945659,31.754746 163.362724,29.9536513 163.362724,27.5521558 L163.362724,15.0417246 L158.879824,15.0417246 L158.879824,11.2934631 L163.362724,11.2934631 L163.362724,4.67315716 L167.944148,4.67315716 L167.944148,11.2934631 L174.151239,11.2934631 L174.151239,15.0417246 Z M187.6492,15.0417246 L181.442109,15.0417246 L181.442109,27.0653686 C181.442109,28.4608322 181.70484,29.458736 182.230311,30.0591099 C182.755781,30.6594837 183.593237,30.9596662 184.742705,30.9596662 C185.169649,30.9596662 185.629429,30.9109879 186.122058,30.81363 C186.614687,30.7162721 187.058046,30.5702374 187.452149,30.3755216 L187.599937,34.123783 C187.041625,34.3184989 186.425848,34.4726466 185.752589,34.5862309 C185.079329,34.6998151 184.381449,34.7566064 183.658927,34.7566064 C181.458518,34.7566064 179.775396,34.1562415 178.609507,32.9554937 C177.443619,31.754746 176.860684,29.9536513 176.860684,27.5521558 L176.860684,15.0417246 L172.377785,15.0417246 L172.377785,11.2934631 L176.860684,11.2934631 L176.860684,4.67315716 L181.442109,4.67315716 L181.442109,11.2934631 L187.6492,11.2934631 L187.6492,15.0417246 Z M195.13712,34.3671766 L190.506432,34.3671766 L190.506432,11.2934631 L195.13712,11.2934631 L195.13712,34.3671766 Z M195.925322,2.96940195 C195.925322,3.81317065 195.621539,4.510892 195.013963,5.06258693 C194.406387,5.61428188 193.675666,5.89012517 192.821776,5.89012517 C191.9
367886,5.89012517 191.245375,5.60616883 190.65422,5.03824757 C190.063066,4.47032632 189.767493,3.78071801 189.767493,2.96940195 C189.767493,2.12563324 190.063066,1.41979886 190.65422,0.851877608 C191.245375,0.283956366 191.967886,0 192.821776,0 C193.675666,0 194.406387,0.283956366 195.013963,0.851877608 C195.621539,1.41979886 195.925322,2.12563324 195.925322,2.96940195 Z M217.600879,17.1349096 C217.10825,16.3884988 216.369318,15.7637948 215.38406,15.2607789 C214.398803,14.7577629 213.347877,14.5062587 212.231252,14.5062587 C211.016101,14.5062587 209.940544,14.7334238 209.00455,15.1877608 C208.068555,15.6420978 207.272147,16.2505757 206.615312,17.0132128 C205.958477,17.7758499 205.457642,18.6601712 205.112802,19.6662031 C204.767962,20.672235 204.595544,21.72693 204.595544,22.8303199 C204.595544,23.9337097 204.767962,24.9884048 205.112802,25.9944367 C205.457642,27.0004687 205.958477,27.8847899 206.615312,28.647427 C207.272147,29.4100641 208.076766,30.018542 209.029181,30.472879 C209.981596,30.927216 211.065364,31.1543811 212.280515,31.1543811 C213.462824,31.1543811 214.538381,30.927216 215.507217,30.472879 C216.476053,30.018542 217.272458,29.401951 217.896454,28.6230876 L221,31.3977747 C220.014743,32.5336172 218.783189,33.4179384 217.305303,34.050765 C215.827417,34.6835915 214.152504,35 212.280515,35 C210.474209,35 208.807507,34.7079306 207.280358,34.123783 C205.753208,33.5396355 204.431342,32.7202185 203.314716,31.6655076 C202.198091,30.6107968 201.319583,29.3370497 200.679165,27.8442281 C200.038748,26.3514065 199.718544,24.6801205 199.718544,22.8303199 C199.718544,21.0129719 200.030537,19.357912 200.654534,17.8650904 C201.278531,16.3722688 202.148829,15.0904087 203.265453,14.0194715 C204.382079,12.9485343 205.703946,12.1210043 207.231095,11.5368567 C208.758244,10.9527092 210.408526,10.6606398 212.181989,10.6606398 C213.824086,10.6606398 215.457946,10.9851646 217.083621,11.6342142 C218.709296,12.2832638 219.998322,13.2243796 220.950737,14.45758 L217.600879,17.1349096 Z"}),(0,s.jsx)("path",{d:"M14.614,33.379981 L13.669963,34.9279772 C11.5339457,38.4305387 7.62629244,40.4533921 3.53322115,40.1754093 L2.2786895,40.0862393 C0.870261659,39.9805331 0.148287065,39.9023488 0.112765718,39.8516861 C0.0349749176,39.7407364 0.508261246,37.6917844 1.5326247,33.7048302 C6.75974527,31.3833565 11.1202037,31.2750735 14.614,33.379981 Z M38.0924329,23.5972326 L36.2500099,31.4555641 C36.2515807,31.5172581 36.2193196,31.575627 36.1652655,31.6052208 C25.7460424,37.3709987 12.8482089,25.0211147 2.42453508,30.6127501 C2.31309601,30.6728305 2.21111039,30.6518886 2.20786085,30.5242604 L4.00437538,23.2281614 C4.00278278,23.1656108 4.03504015,23.1081069 4.08908452,23.0784792 C14.5083156,17.3127183 27.7850835,29.8553087 37.7211641,23.4456066 C37.8183232,23.3829298 38.0891832,23.4695959 38.0924329,23.5972326 Z M40.5464482,12.9733056 L38.7040252,20.8316371 C38.705596,20.8933311 38.6733348,20.9517001 38.6192807,20.9812938 C28.2000577,26.7470717 15.3022242,14.3971878 4.87855034,19.9888231 C4.76711127,20.0489035 4.66512565,20.0279616 4.6618761,19.9003334 L6.45839063,12.6042344 C6.45679804,12.5416839 6.4890554,12.4841799 6.54309977,12.4545523 C16.9623309,6.68879136 30.2390988,19.2313817 40.1751793,12.8216796 C40.2723384,12.7590029 40.5431984,12.845669 40.5464482,12.9733056 Z M42.5811919,3.05048625 C42.6683566,3.1542339 42.0981531,5.32692733 40.8705814,9.56856655 C35.9183257,12.3040213 31.6102197,12.775552 27.9462636,10.9831587 L28.9654062,9.07760237 C30.7407793,5.75807584 34.0903816,3.57696136 37.8443502,3.29602373 L40.5089833,3.10956477 C41.8528377,3.02540438 42.543574,3.00571154 42.5811919,3.05048625 Z"})]})})})}},3551:(e,t,a)=>{"use strict";a.d(t,{A:()=>L});var s=a(6029),n=a(13717),r=a(63344),i=a(36121),l=a(59391),o=a(55729);let c={"internal-server-error":"Server error","use-email-provider":"Must use email login","invite-accept-failed":"Error accepting invite","sso-login-required":"Please use email to login (will redirect to single sign-on)","oauth-not-linked":"OAuth not linked",Verification:"Passcode incorrect"},d=new Set(["SessionRequired"]);var u=a(80484),h=a(10403),m=a(55613),g=a(55507),C=a(94873),x=a(55809),p=a(59584),f=a(32916),v=a(48642),b=a(81278),y=a(35460);function L(e){let{authType:t,initialEmail:a,callbackUrl:L,invitationToken:j,lastUsedMethod:N}=e,w=(0,b.useRouter)(),S=(0,o.useId)(),[A,k]=(0,o.useState)(()=>a||""),[P,M]=(0,o.useState)(""),[_,I]=(0,o.useState)(!1),[E,T]=(0,o.useState)(!1),[O,R]=(0,o.useState)(),[z,U]=(0,o.useState)(""),{error:D,...F}
3=(0,i.W9)(w.query),X=(0,u.C)({callbackUrlParam:L,query:F});!function(e){let{error:t,enabled:a=!0}=e,s=function(e){if(!(!e||d.has(e)))return e in c?c[e]:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1).replace(/-+/g," "))}(t);(0,o.useEffect)(()=>{let e;if(a&&s)return queueMicrotask(()=>{e=l.oR.error(s)}),()=>void(e&&l.oR.dismiss(e))},[s,a])}({error:D,enabled:!_});let Z=async()=>{n.A.track("user_signedin")},W="login"===t,B=W&&!!N,V=async e=>{e.preventDefault(),h.I.setPendingAuthMethod("google"),await (0,y.signIn)("google",{callbackUrl:X,isLogin:W}),Z()},q=async e=>{e?(h.I.setPendingAuthMethod("email"),await (0,y.signIn)("sso",{callbackUrl:X,isLogin:W},{organization:e})):(await (0,y.signIn)("email",{email:A,callbackUrl:X,redirect:!1}),I(!0))},H=async()=>{if(""===A)return void l.oR.error("Please enter your email address");if(_&&""===P)return void l.oR.error("Please enter the verification code");if(!(0,v.Bf)(A))return void l.oR.error("Please enter a valid email address");if(_)P||l.oR.error("Please enter the verification code"),h.I.setPendingAuthMethod("email"),Z(),n.A.track("otp_submitted",{email:A}),window.location.replace("/api/auth/callback/email?email=".concat(encodeURIComponent(A.toLowerCase()),"&token=").concat(P,"&callbackUrl=").concat(encodeURIComponent(X)));else{T(!0);let{accountExists:e,organization:t}=await f.A.checkSubmittedEmail({email:A});W?e?await q(t):(R(A),k("")):await q(t),T(!1)}};function J(e){"Enter"===e.key&&H()}return(0,o.useEffect)(()=>{A||U(""),(0,v.Bf)(A)&&((0,v.ee)(A)||U(A))},[A]),(0,o.useEffect)(()=>{(0,r.n5)()},[]),(0,s.jsxs)(s.Fragment,{children:[O&&(0,s.jsxs)("div",{className:"text-subtle bg-muted mb-4 rounded-md border p-2 text-center text-sm",children:["No account found for"," ",(0,s.jsx)("b",{className:"text-emphasis font-medium",children:O}),". Please"," ",(0,s.jsx)("button",{type:"button",onClick:()=>{if(O){try{sessionStorage.setItem("signup_prefill_email",O)}catch(e){}w.push("/auth/sign-up")}},className:"link font-medium",children:"Sign up"})," ","if you do not have an account."]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)(m.$,{variant:"outline",className:{root:"w-full px-4",iconLeft:"absolute left-4 size-5"},size:"lg",onClick:V,iconLeft:"logo-google",children:["Sign ",W?"in":"up"," with Google"]}),B&&"google"===N&&(0,s.jsx)(g.v,{size:"sm",colorScheme:"gray",className:"pointer-events-none absolute right-3 top-[0.5px] z-10 -translate-y-1/2",children:"Last used"})]}),(0,s.jsxs)("div",{className:"my-6 flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex-1 border-t border-gray-200"}),(0,s.jsx)("span",{className:"text-subtle text-sm",children:"Or"}),(0,s.jsx)("div",{className:"flex-1 border-t border-gray-200"})]}),(0,s.jsxs)("div",{className:"group/field mb-4",children:[(0,s.jsx)(C.JU,{htmlFor:S,children:"Work email"}),(0,s.jsxs)("div",{className:"relative mt-2.5",children:[(0,s.jsx)(x.p,{id:S,size:"lg",value:A,name:"email",autoComplete:"email",onValueChange:k,onKeyUp:J,help:_?"We've sent a one time code to your email":void 0,isDisabled:!!(j&&a),autoFocus:!_}),B&&"email"===N&&!_&&(0,s.jsx)(g.v,{size:"sm",colorScheme:"gray",className:"pointer-events-none absolute right-3 top-[0.5px] z-10 -translate-y-1/2",children:"Last used"})]})]}),z&&!_&&(0,s.jsx)(p._,{title:"We recommend using your work email",description:"It makes it easier to collaborate on demos with your team"}),_&&(0,s.jsx)(x.p,{className:"mb-4",size:"lg",label:"Verification code",value:P,name:"verificationCode",placeholder:"Enter verification code",onValueChange:M,onKeyUp:J,autoFocus:!0}),(0,s.jsx)(m.$,{className:"mt-3 w-full",size:"lg",onClick:H,type:"submit",isLoading:E,iconRight:"arrow-right",children:"Continue"})]})}},10403:(e,t,a)=>{"use strict";a.d(t,{I:()=>r});let s="__navattic__",n=["google","email"],r=function(e){let t=(e=>{try{return e&&(e.localStorage||e.sessionStorage)}catch(e){return{_db:{},getItem(e){return this._db[e]||null},setItem(e,t){this._db[e]=t},removeItem(e){delete this._db[e]}}}})(e),a=e=>{let a=null==t?void 0:t.getItem("".concat(s).concat(e));if(!a)return null;try{return JSON.parse(a)}catch(e){return a}},n=(e,a)=>{t.setItem("".concat(s).concat(e),JSON.stringify(a))},r=e=>{t.removeItem("".concat(s).concat(e))};return{getActiveMembershipId:()=>a("activeMembership"),setActiveMembershipId:e=>n("activeMembership",e),getActiveTeamId:()=>a("activeTeamId"),setActiveTeamId:e=>n("activeTeamId",e),getLastAuthMethod:()=>i(a("lastAuthMethod")),setLastAuthMethod:e=>{let t=i(e);t&&n("lastAuthMethod",t)},getPendingAuthMethod:()=>i(a("pendingAuthMethod")),setPendingAuthMethod:e=>{let t=i(e);t&&n("pendingAuthMethod",t)},clearPendingAuthMethod:()=>r("pendingAuthMethod"),getLastAuthFirstName:()=>{let e=a("lastAuthFirstName");return"string"==typeof e&&e?e:null},setLastAuthFirstName:e=>{"string"==typeof e&&e&&n("lastAuthFirstName",e)},clearLastAuthEmail:()=>r("lastAuthEmail")}}(window);function i(e){return n.includes(e)?e:null}},13425:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/login",function(){return a(52035)}])},32916:(e,t,a)=>{"use strict";a.d(t,{A:()=>
3o});var s=a(34584),n=a(531),r=a(85053);let i=n.A.APP_URL;class l{async requestSessionToken(e){let t=i+(0,s.P_H)(),a=await fetch(t,{method:r.A.POST,cache:"no-store",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!a.ok)return null;let{token:n}=await a.json();return n||null}async generateFrontUserHash(){let e=i+(0,s.DX7)(),t=await fetch(e,{cache:"no-store"});if(!t.ok)return{userHash:null};let{userHash:a}=await t.json();return{userHash:a}}async checkSubmittedEmail(e){let t=await fetch(i+(0,s.Mmx)(),{method:r.A.POST,headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return t.ok?await t.json():{accountExists:!1,organization:""}}async fetchWorkosToken(e){let t=new URL("https://api.workos.com/sso/token"),a=new URLSearchParams;for(let t in a.set("grant_type","authorization_code"),e)a.set(t,e[t]);t.search=a.toString();let s=await fetch(t,{method:r.A.POST,cache:"no-store"});return await s.json()}}let o=new l},52035:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>T,default:()=>O});var s=a(6029),n=a(3551),r=a(59108),i=a(52090),l=a(66681),o=a(5178),c=a(76981),d=a(56104),u=a(1497),h=a(34281);let m=[.16,1,.3,1];function g(e){let{children:t}=e;return(0,s.jsx)("div",{className:"relative flex flex-1 flex-col items-center justify-center overflow-hidden border-l border-gray-100 bg-white",children:(0,s.jsxs)("div",{className:"relative flex scale-90 flex-col items-center xl:scale-100",children:[t,(0,s.jsxs)(h.P.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.9,delay:.3,ease:m},className:"mt-14 flex items-center gap-2.5 text-[#031220]",children:[(0,s.jsx)(u.y,{height:25}),(0,s.jsx)(h.P.span,{initial:{opacity:0,filter:"blur(12px)"},animate:{opacity:1,filter:"blur(0px)"},transition:{duration:1.2,delay:.75,ease:m},className:"-translate-y-px text-[27px] leading-none font-medium tracking-[-0.02em]",children:"agents"})]})]})})}var C=a(1778),x=a(55507),p=a(95632),f=a(58086),v=a(87173),b=a(55729);let y="https://files2.heygen.ai/avatar/v3/1bd0162ce985415092ed1f003aa90646_55350/preview_target.webp",L="https://logo.navattic.com/ramp.com",j=[{title:"SMB deflection",mode:"agent-first",outcomes:[{label:"Sign up for starter",icon:"mouse-pointer-2",colorScheme:"gray"},{label:"Read docs",icon:"mouse-pointer-2",colorScheme:"gray"},{label:"Discuss pricing",icon:"calendar",colorScheme:"gray"}]},{title:"Website conversion",mode:"agent-only",outcomes:[{label:"Qualified",icon:"mouse-pointer-2",colorScheme:"gray"},{label:"Discuss plans",icon:"calendar",colorScheme:"gray"},{label:"Start free now",icon:"mouse-pointer-2",colorScheme:"gray"}]},{title:"Trial enablement",mode:"product-first",outcomes:[{label:"Book onboarding",icon:"calendar",colorScheme:"gray"},{label:"Plan upgrade",icon:"mouse-pointer-2",colorScheme:"gray"},{label:"Product upsell",icon:"mouse-pointer-2",colorScheme:"gray"}]}],N={width:420,height:88,trunkX:210,branchXs:[70,210,350],pillTop:54},w=["M".concat(N.trunkX," 0 V10 C").concat(N.trunkX," 30, ").concat(N.branchXs[0]," 26, ").concat(N.branchXs[0]," 44 V54"),"M".concat(N.trunkX," 0 V54"),"M".concat(N.trunkX," 0 V10 C").concat(N.trunkX," 30, ").concat(N.branchXs[2]," 26, ").concat(N.branchXs[2]," 44 V54")];function S(e){let{outcomes:t}=e;return(0,s.jsxs)("div",{className:"relative",style:{width:N.width,height:N.height},children:[(0,s.jsx)("svg",{className:"absolute inset-0",width:N.width,height:N.height,viewBox:"0 0 ".concat(N.width," ").concat(N.height),fill:"none","aria-hidden":!0,children:w.map(e=>(0,s.jsx)("path",{d:e,stroke:"#e5e7eb",strokeWidth:"1.5"},e))}),t.map((e,t)=>(0,s.jsx)(x.v,{iconLeft:e.icon,colorScheme:e.colorScheme,removeOnClick:!1,className:"absolute -translate-x-1/2",style:{left:N.branchXs[t],top:N.pillTop},children:e.label},e.label))]})}function A(){var e;let t=null!=(e=(0,f.I)())&&e,[a,n]=(0,b.useState)(j.length-1);return(0,s.jsx)(g,{children:(0,s.jsx)("div",{className:"flex flex-col items-center gap-3",children:j.map((e,r)=>(0,s.jsxs)(b.Fragment,{children:[(0,s.jsxs)("button",{type:"button",onClick:()=>n(r),"aria-expanded":a===r,className:(0,p.cn)("flex w-[300px] cursor-pointer items-center gap-3 rounded-2xl bg-gray-50 p-4 text-left transition-colors",a!==r&&"hover:bg-gray-100"),children:[(0,s.jsx)(C.e,{shape:"square",size:32,...function(e){switch(e){case"product-first":return{src:L,indicatorSrc:y};case"agent-first":return{src:y,indicatorSrc:L};case"agent-only":return{src:y}}}(e.mode)}),(0,s.jsx)("span",{className:"text-base leading-tight font-medium text-gray-900",children:e.title})]}),(0,s.jsx)(v.N,{initial:!1,children:a===r&&(0,s.jsx)(h.P.div,{className:"-mt-3 overflow-hidden",initial:{height:0,opacity:0}
3,animate:{height:N.height,opacity:1},exit:{height:0,opacity:0},transition:{duration:.35*!t,ease:[.16,1,.3,1]},children:(0,s.jsx)(S,{outcomes:e.outcomes})},"outcomes-".concat(e.title))})]},e.title))})})}function k(e){let{heading:t="Welcome back",form:a,footer:n,belowCard:r}=e;return(0,s.jsxs)("div",{className:"flex h-screen",children:[(0,s.jsx)("div",{className:"flex flex-1 justify-center bg-white",children:(0,s.jsxs)("div",{className:"m-auto w-full max-w-md space-y-8 px-4",children:[(0,s.jsxs)("div",{className:"mt-10",children:[(0,s.jsx)("h1",{className:"mb-8 text-center text-3xl font-semibold tracking-tight text-gray-800",children:t}),a,n]}),r]})}),(0,s.jsx)("div",{className:"hidden flex-1 lg:flex",children:(0,s.jsx)(A,{})})]})}var P=a(82203),M=a.n(P),_=a(81278),I=a(35460);function E(e){let{data:t,status:a}=(0,I.useSession)(),l=(0,_.useRouter)(),{invitationToken:u,expiredToken:h,initialEmail:m,callbackUrl:g}=e,{firstName:C,lastUsedMethod:x}=(0,c.V)(),p="loading"===a;return((0,d.A)({session:t,disable:p}),h)?(0,s.jsx)(r.A,{}):p||t?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.A,{title:"Login"}),(0,s.jsx)(k,{heading:C?"Welcome back, ".concat(C):"Welcome back",form:(0,s.jsx)(n.A,{authType:"login",initialEmail:m||void 0,callbackUrl:g||void 0,invitationToken:u||void 0,lastUsedMethod:x}),footer:(0,s.jsxs)("p",{className:"text-default mt-8 text-center text-sm",children:["Don't have an account?"," ",(0,s.jsx)(M(),{href:{pathname:"/auth/sign-up",query:l.query},className:"font-medium text-gray-800 underline underline-offset-2",children:"Sign up"})]}),belowCard:(0,s.jsx)(i.A,{})})]})}E.getLayout=function(e){return(0,s.jsx)(l.A,{children:e})};var T=!0;let O=E},52090:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(6029),n=a(95632);function r(e){let{className:t,...a}=e;return(0,s.jsxs)("p",{className:(0,n.cn)("text-subtle text-center text-sm",t),...a,children:[(0,s.jsx)("a",{className:"text-gray-800",href:"https://navattic.com/legal/terms",target:"_blank",rel:"noreferrer",children:"Terms of Service"})," ","and"," ",(0,s.jsx)("a",{className:"text-gray-800",href:"https://navattic.com/legal/privacy",target:"_blank",rel:"noreferrer",children:"Privacy Policy"})]})}},56104:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(81278);let n=e=>{let{session:t,disable:a=!1}=e,n=(0,s.useRouter)(),r=localStorage.getItem("navattic:debug:auth");a||t&&!r&&n.push("/")}},58086:(e,t,a)=>{"use strict";a.d(t,{I:()=>i});var s=a(91590),n=a(10481),r=a(55729);function i(){s.r.current||(0,n.Uu)();let[e]=(0,r.useState)(s.O.current);return e}},59108:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(6029);let n=()=>(0,s.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,s.jsx)("div",{className:"text-default text-base",children:(0,s.jsx)("span",{children:"Invitation expired. Please ask your teammate to resend an invitation."})})})},59584:(e,t,a)=>{"use strict";a.d(t,{_:()=>h});var s=a(6029),n=a(95632),r=a(261),i=a(55613),l=a(26100),o=a(44580),c=a(95678),d=a(69222);let u=(0,a(67827).F)(["inline-flex justify-start gap-2 rounded-xl border","[box-shadow:0px_2px_1px_-1px_rgba(255,255,255,0.7)_inset]"],{variants:{isFullWidth:{true:"w-full",false:"w-fit"},colorScheme:{gray:"bg-gray-50 border-gray-200 text-default",brand:"bg-blue-50 border-blue-200 text-info",orange:"bg-orange-50 border-orange-200 text-attention",red:"bg-red-50 border-red-200 text-error",green:"bg-green-50 border-green-200 text-success",yellow:"bg-yellow-50 border-yellow-200 text-yellow-900"},size:{sm:"pl-3 pr-1 py-1 gap-2 min-h-[33px]",md:"pl-3.5 pr-1.5 py-1.5 gap-2.5 min-h-[37px]",lg:"pl-4 pr-2 py-2 gap-3 min-h-[45px]"},hasButton:{true:"",false:""},hasDescription:{true:"items-start",false:"items-center"}},compoundVariants:[{size:"sm",hasButton:!1,className:"pr-3"},{size:"md",hasButton:!1,className:"pr-5"},{size:"lg",hasButton:!1,className:"pr-5"},{size:"sm",hasButton:!0,hasDescription:!0,className:"pr-2"},{size:"md",hasButton:!0,hasDescription:!0,className:"pr-2.5"},{size:"lg",hasButton:!0,hasDescription:!0,className:"pr-2.5"}],defaultVariants:{isFullWidth:!0,colorScheme:"gray"}});
3function h(e){let{colorScheme:t="gray",icon:a,title:h,description:m,className:g,isDismissible:C,actionButton:x,elementRight:p,isFullWidth:f=!0,onDismiss:v,"data-test-id":b,collapseClassName:y,size:L="lg",...j}=e,{isOpen:N,onToggle:w}=(0,r.j)({defaultIsOpen:!0}),S=!!(x||C||p),A=(0,s.jsxs)("div",{...j,"data-test-id":b,className:(0,n.cn)(u({isFullWidth:f,colorScheme:t,hasDescription:!!m,hasButton:S,size:L}),g),children:[a&&(0,s.jsx)(c.I,{name:a,size:"sm"===L?"sm":"lg"===L?"md":"sm",className:(0,n.cn)("shrink-0",{"self-start mt-[5px]":!!m})}),(0,s.jsxs)("div",{className:(0,n.cn)("inline-flex min-w-0 flex-col justify-start gap-1 pr-2",f&&"w-full",m&&"py-1",{"mt-px":!!m}),children:[(0,s.jsx)("div",{className:(0,n.cn)("sm"===L?"text-xs":"text-sm","leading-none font-medium"),children:h}),m&&(0,s.jsx)("div",{className:"text-xs text-balance",children:m})]}),C||x?(0,s.jsxs)(l.e,{size:"lg"===L?"sm":"xs",className:"items-center self-stretch",children:[x&&(0,s.jsx)(i.$,{variant:"outline",...x}),C&&(0,s.jsx)(d.K,{variant:"ghost",icon:"x",onClick:()=>{w(),null==v||v(!0)},tooltip:"Dismiss",className:(0,n.cn)({"text-info":"brand"===t,"text-attention":"orange"===t,"text-error":"red"===t,"text-success":"green"===t})})]}):p||null]});return C?(0,s.jsx)(o.S,{isOpen:N,className:(0,n.cn)(y),children:A}):A}},76981:(e,t,a)=>{"use strict";a.d(t,{S:()=>r,V:()=>i});var s=a(10403),n=a(55729);function r(e){let t=null==e?void 0:e.id,a=null==e?void 0:e.firstName;(0,n.useEffect)(()=>{if(!t)return;let e=s.I.getPendingAuthMethod();e&&(s.I.setLastAuthMethod(e),s.I.clearPendingAuthMethod()),a&&s.I.setLastAuthFirstName(a),s.I.clearLastAuthEmail()},[a,t])}function i(){let[e,t]=(0,n.useState)(null),[a,r]=(0,n.useState)(null);return(0,n.useEffect)(()=>{t(s.I.getLastAuthFirstName()),r(s.I.getLastAuthMethod()),s.I.clearLastAuthEmail()},[]),{firstName:e,lastUsedMethod:a}}},80484:(e,t,a)=>{"use strict";a.d(t,{C:()=>i});var s=a(36121),n=a(531),r=a(48498);function i(e){let{callbackUrlParam:t,query:a={}}=null!=e?e:{},i=(0,s.W9)(a),l=new URL(t||i.callbackUrl||"/",n.A.APP_URL),o=Object.fromEntries(l.searchParams.entries()),{callbackUrl:c,...d}=i,u={...d,...o};return l.search=(0,r.stringify)(u),l.href}},85053:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=function(e){return e.POST="POST",e.PUT="PUT",e.GET="GET",e.HEAD="HEAD",e.DELETE="DELETE",e.CONNECT="CONNECT",e.OPTIONS="OPTIONS",e.TRACE="TRACE",e.PATCH="PATCH",e}(s||{});let n=s}},e=>{e.O(0,[1456,238,9913,8277,3684,4446,4882,9391,2292,1652,5460,488,330,2747,2532,8975,6100,865,2593,4379,2146,2020,8938,6681,8255,6593,8792],()=>e(e.s=13425)),_N_E=e.O()}]);
4//# sourceMappingURL=login-dec58c15189d9ed2.js.map
5//# debugId=0fc65a91-d1e1-5128-af1e-86f1b349bfcf

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.