PageSourceSearch

https://calendar.amie.so/_next/static/chunks/pages/login-4826673eefe6402e.js

js amie.so collected 2026-10-03 22:05:27 UTC 27,323 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8295],{1888:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(37876);let a=r(14232).memo(function(e){let{className:t,height:r=16,width:a=16}=e;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",width:a,height:r,fill:"none",className:t,children:(0,n.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M32 5.082A18.98 18.98 0 0 0 19.048 0C8.528 0 0 8.528 0 19.048A18.98 18.98 0 0 0 5.082 32 18.98 18.98 0 0 0 0 44.952C0 55.472 8.528 64 19.048 64A18.98 18.98 0 0 0 32 58.919 18.98 18.98 0 0 0 44.952 64C55.472 64 64 55.472 64 44.952A18.98 18.98 0 0 0 58.919 32 18.98 18.98 0 0 0 64 19.048C64 8.528 55.472 0 44.952 0A18.98 18.98 0 0 0 32 5.082Zm-.05 12.105a5.76 5.76 0 0 0-5.76 5.76v17.28a5.76 5.76 0 1 0 11.52 0v-17.28a5.76 5.76 0 0 0-5.76-5.76Z",clipRule:"evenodd"})})})},3699:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>ei,default:()=>eo});var n=r(37876),a=r(14232),s=r(77328),i=r.n(s),o=r(89099),l=r(58103),c=r.n(l),d=r(56521),u=r(7245),g=r(16773),p=r(49187),m=r(67229),h=r(76590),x=r(16361);let f=a.memo(function(){let[e,t]=(0,a.useState)(!1),[r,s]=(0,a.useState)(!1),[i,o]=(0,a.useState)(!1),l=(0,a.useRef)(null),u=(0,a.useRef)(null),g=(0,a.useRef)(null),f=(0,a.useRef)(30),{ipc:y}=(0,h.Ay)(),v=async()=>{try{var e;if((null==(e=l.current)?void 0:e.status)==="verified")return;let t=await p.A.auth.requestMagicLinkAuthCode();if("failure"===t.outcome)throw Error("Unable to request code");if(m.yf.logger.debug("Open magic link",{scope:"magic-login",code:t.payload}),!y)throw Error("Cannot initiate IPC");l.current=t.payload,y.send("open-magic-link",t.payload.code)}catch(e){return e instanceof Error&&m.yf.logger.error("Couldn't open magic link",{message:e.message,stack:e.stack,scope:"magic-login"}),null}},w=async()=>{if(0===f.current&&u.current)return void window.clearInterval(u.current);try{let e=l.current;if((null==e?void 0:e.code)&&"verified"!==e.status){f.current=f.current-1;let r=await p.A.auth.claimMagicLinkAuthCode(e.code);if("failure"===r.outcome)throw Error("Not verified...");if(!r.payload.firebaseSnapshot)throw Error("No firebase snapshot in claim");null!=u.current&&window.clearInterval(u.current),l.current=r.payload,t(!1),s(!0),localStorage.setItem(r.payload.firebaseSnapshot.key,r.payload.firebaseSnapshot.value),window.location.reload()}}catch(e){1===f.current&&m.yf.logger.error("Check auth error: "+e,{scope:"magic-login"});return}};(0,a.useEffect)(()=>(u.current=window.setInterval(w,2500),()=>{null!=u.current&&window.clearInterval(u.current),null!=g.current&&window.clearTimeout(g.current)}),[]);let j=async()=>{console.debug("Logging in..."),t(!0),g.current=window.setTimeout(()=>{o(!0)},15e3),await v()},b=(0,a.useCallback)(()=>{o(!1),t(!1),s(!1),u.current&&window.clearInterval(u.current),u.current=window.setInterval(w,2500),f.current=30},[]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(d.A,{disabled:e,onClick:j,"data-testid":x.Kx,className:c()("flex w-full items-center justify-center rounded-xl bg-gray-800 px-10 py-4 text-gray-100 transition-colors duration-150 hover:bg-gray-700 dark:bg-gray-100 dark:text-gray-800 dark:hover:bg-gray-200"),children:[" ",(0,n.jsx)("span",{className:c()("ml-2.5 text-base font-semibold",{"cursor-wait":e}),style:{lineBreak:"anywhere"},children:r?"Signing in now...":e?"Opening the browser...":"Login with browser"})]}),i&&(0,n.jsx)("div",{className:"mt-3 flex w-full justify-center text-xxs text-secondary",children:(0,n.jsxs)("button",{onClick:b,children:["Not seeing the browser tab? Not logging in?"," ",(0,n.jsx)("span",{className:"underline",children:"Go back and try again"}),"!"]})})]})});function y(e){let{name:t}=e;return t?(0,n.jsx)("div",{className:"absolute -right-3 -top-3 rotate-12",children:(0,n.jsx)("div",{className:"flex animate-float overflow-hidden rounded-full dark:bg-gray-800",children:(0,n.jsxs)("div",{className:"flex w-full origin-center items-center gap-3 bg-green-400/20 py-3.5 pl-4 pr-9 text-green-600 shadow-lg ring-1 ring-inset ring-green-500/5 dark:bg-green-300/10 dark:text-green-200",children:[(0,n.jsx)("img",{src:"/assets/login/dennis-memoji.png",alt:"Inviter profile",className:"h-12 w-12 rounded-full shadow-md"}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsxs)("p",{className:"text-sm font-semibold opacity-70",children:["Hey ",t,","]}),(0,n.jsx)("h2",{className:"font-semibold",children:"You're invited to drop #1."})]})]})})}):null}var v=r(5811),w=r(50412),j=r(32216),b=r(2149),k=r(74816),N=r(12451);let C=e=>{let{height:t=20,width:r=20,className:a}=e;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,className:a,viewBox:"0 0 24 24",fill:"none",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.00532 10.2069C2.9981 10.679 2.99977 11.1665 3.00148 11.6671C3.00225 11.89 3.00302 12.1155 3.00302 12.3434C3.00302 12.444 3.00296 12.544 3.0029 12.6433C2.99971 17.7841 2.99772 21 11.6564 21C20.4823 21 21 19.3012 21 12.3434C21 11.5727 20.9967 10.858 20.9785 10.1966L14.1805 15.0481C12.8667 15.9857 11.1026 15.9857 9.78883 15.0481L3.00532 10.2069ZM3.1413 8.09252C3.5643 5.02274 5.2269 3.00037 11.6564 3C18.5488 2.9996 20.3615 4.37628 20.8347 8.08781L13.1349 13.583C12.4467 14.0741 11.5226 14.0741 10.8345 13.583L3.1413 8.09252Z",fill:"currentColor"})})};var A=r(45105),S=r.n(A),_=r(29573),E=r(88290),P=r(54587),I=r.n(P);let L=a.memo(function(e){let{className:t,invertImage:r,hint:s}=e,o=(0,a.useRef)(null),{googleIdentityServicesReady:l,setGoogleIdentityServicesReady:u,client:g}=function(){let{hint:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,r]=(0,a.useState)(!1),[n,s]=(0,a.useState)();return(0,a.useEffect)(()=>
1{if(!t)return;let r=localStorage.getItem(x.hB),n=localStorage.getItem(x.D8),a=localStorage.getItem(x.kr),i=["profile","email",x.Nw,x.O5,x.B5,x.UO];s(google.accounts.oauth2.initCodeClient({client_id:"609672252591-2rmu8k1rsp1nfjtathcvbkjcp2cu2n7e.apps.googleusercontent.com",scope:i.join(" "),redirect_uri:(0,E.st)(),ux_mode:"redirect",state:btoa(JSON.stringify({origin:window.location.origin,referral:r,invitationId:n,promocode:a})),...e?{hint:e}:{}}))},[t,e]),{googleIdentityServicesReady:t,setGoogleIdentityServicesReady:r,client:n}}({hint:s});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i(),{children:[(0,n.jsx)("link",{rel:"preconnect",href:"https://accounts.google.com",crossOrigin:""}),(0,n.jsx)("link",{rel:"dns-prefetch",href:"https://accounts.google.com"})]}),(0,n.jsx)(S(),{src:"https://accounts.google.com/gsi/client",onLoad:()=>{u(!0)}}),(0,n.jsxs)(d.A,{ref:o,disabled:!l,onClick:()=>{if(!g)return void console.error("Google Identity Services not ready");g.requestCode()},"data-testid":x.Kx,className:c()((0,_.QP)("flex w-full items-center justify-center rounded-xl bg-gray-800 px-10 py-4 text-gray-100 transition-colors duration-150 hover:bg-gray-700 dark:bg-gray-100 dark:text-gray-800 dark:hover:bg-gray-200",t)),children:[(0,n.jsx)("img",{className:"inline w-4 opacity-80 dark:hidden",src:r?"/assets/login/google-icon-light.svg":"/assets/login/google-icon-dark.svg",alt:"google icon"}),(0,n.jsx)("img",{className:"hidden w-4 opacity-80 dark:inline",src:r?"/assets/login/google-icon-dark.svg":"/assets/login/google-icon-light.svg",alt:"google icon"}),(0,n.jsx)("span",{className:"ml-2.5 text-base font-semibold",style:{lineBreak:"anywhere"},children:"Continue with Google"})]})]})}),R=(0,n.jsxs)("span",{className:"flex items-center gap-2",children:[(0,n.jsx)(function(){return(0,n.jsx)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsxs)("g",{transform:"matrix(1, 0, 0, 1, 27.009001, -39.238998)",children:[(0,n.jsx)("path",{fill:"#4285F4",d:"M -3.264 51.509 C -3.264 50.719 -3.334 49.969 -3.454 49.239 L -14.754 49.239 L -14.754 53.749 L -8.284 53.749 C -8.574 55.229 -9.424 56.479 -10.684 57.329 L -10.684 60.329 L -6.824 60.329 C -4.564 58.239 -3.264 55.159 -3.264 51.509 Z"}),(0,n.jsx)("path",{fill:"#34A853",d:"M -14.754 63.239 C -11.514 63.239 -8.804 62.159 -6.824 60.329 L -10.684 57.329 C -11.764 58.049 -13.134 58.489 -14.754 58.489 C -17.884 58.489 -20.534 56.379 -21.484 53.529 L -25.464 53.529 L -25.464 56.619 C -23.494 60.539 -19.444 63.239 -14.754 63.239 Z"}),(0,n.jsx)("path",{fill:"#FBBC05",d:"M -21.484 53.529 C -21.734 52.809 -21.864 52.039 -21.864 51.239 C -21.864 50.439 -21.724 49.669 -21.484 48.949 L -21.484 45.859 L -25.464 45.859 C -26.284 47.479 -26.754 49.299 -26.754 51.239 C -26.754 53.179 -26.284 54.999 -25.464 56.619 L -21.484 53.529 Z"}),(0,n.jsx)("path",{fill:"#EA4335",d:"M -14.754 43.989 C -12.984 43.989 -11.404 44.599 -10.154 45.789 L -6.734 42.369 C -8.804 40.429 -11.514 39.239 -14.754 39.239 C -19.444 39.239 -23.494 41.939 -25.464 45.859 L -21.484 48.949 C -20.534 46.099 -17.884 43.989 -14.754 43.989 Z"})]})})},{})," Continue to Google Permissions"]}),T=(0,v.PA)(()=>{let{nextStep:e,prevStep:t,hasPrevStep:r,hasNextStep:a}=(0,j.z)();return(0,n.jsxs)(w.u,{header:"Access Permissions",subheader:"Select all permission boxes below for calendar and contacts access on the next page.",hasNextStep:a,nextStep:e,hasPrevStep:r,prevStep:t,fullWidthContinue:!0,buttonText:R,overrideActions:(0,n.jsx)(L,{invertImage:!0,className:"pointer-events-auto cursor-pointer bg-transparent text-primary hover:bg-transparent dark:bg-transparent dark:text-primary dark:hover:bg-transparent"}),ready:!0,children:[(0,n.jsxs)("div",{className:"mb-4 flex flex-col rounded-3xl border border-separator",children:[(0,n.jsx)(M,{title:"View and edit Calendar",description:"For creating events and showing your meeting history",iconClassName:"bg-blue-400 dark:bg-blue-400/60",icon:(0,n.jsx)(N.A,{width:24,height:24})}),(0,n.jsx)(M,{title:"See, edit and download Contacts",description:"Only used for Autocomplete contacts when you create events",iconClassName:"bg-purple-400 dark:bg-purple-400/60",icon:(0,n.jsx)(k.A,{width:24,height:24})}),(0,n.jsx)(M,{title:"Read, compose, send and delete your Emails",description:"Only used for Autocomplete contacts when you create events",iconClassName:"bg-amber-400 dark:bg-amber-400/60",icon:(0,n.jsx)(C,{width:24,height:24})})]}),(0,n.jsx)(d.A,{className:"p-2 text-sm font-medium",children:(0,n.jsxs)("div",{className:"flex grow items-center justify-center gap-2 text-secondary transition-colors hover:text-primary",children:["Learn how we use permissions",(0,n.jsx)(b.A,{})]})})]})}),M=e=>{let{title:t,iconClassName:r,description:a,icon:s}=e;return(0,n.jsxs)("div",{className:"flex w-full gap-4 border-t border-separator p-5 first:border-none",children:[(0,n.jsx)("div",{className:c()("flex size-11 shrink-0 items-center justify-center rounded-full",r),children:(0,n.jsx)("div",{className:"text-white",children:s})}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("p",{className:"text-base font-semibold text-primary",children:t}),(0,n.jsx)("p",{className:"text-sm text-secondary",children:a})]})]})};function O(){return(0,n.jsx)("div",{className:"b h-full w-full bg-[url('/assets/onboarding/permissions-hero.svg')] bg-contain"})}var B=r(17074);let D=a.memo(function(e){let{className:t,hint:r}=e;return(0,n.jsxs)(d.A,{className:(0,_.QP)(c()("flex items-center justify-center gap-2.5 rounded-xl bg-gray-100 p-3 text-sm font-medium transition-colors hover:bg-gray-200 dark:bg-gray-750 dark:hover:bg-gray-700",t)),onClick:()=>{let e=localStorage.getItem(x.hB),t=localStorage.getItem(x.D8),n=localStorage.getItem(x.kr),a=crypto.randomUUID();document.cookie="ms_oauth_nonce=".concat(a,"; path=/; max-age=600; SameSite=Lax; Secure");let s=btoa(JSON.stringify({origin:window.location.origin,referral:e,invitationId:t,promocode:n,provider:"microsoft",stateNonce:a})),i=new URLSearchParams({client_id:"1c7e08e2-3888-41f5-ac49-5c73871615ff",redirect_uri:(0,E.st)(),response_type:"code",response_mode:"query",scope:x.KH.join(" "),state:s,prompt:"select_account",...r?{login_hint:r}:{}});window.location.assign("".concat(x.N6,"?").concat(i.toString()))},children:[(0,n.jsx)("span",{className:"h-5 w-5",children:(0,n.jsx)(B.A,{})}),"Continue with Outlook"]})});var F=r(96538);let z=a.memo(function(e){let{className:t}=e;return(0,n.jsx)(d.A,{onClick:()=>{let e=(0,E.cf)(),t=(0,F.b8)()?"?client=desktop":"";window.location.href="".concat(e,"/auth/setapp/start").concat(t)},className:c()((0,_.QP)("flex w-full items-center justify-center rounded-xl bg-gray-800 px-10 py-4 text-gray-100 transition-colors duration-150 hover:bg-gray-700 dark:bg-gray-100 dark:text-gray-800 dark:hover:bg-gray-200",t)),children:(0,n.jsx)("span",{className:"text-base font-semibold",style:{lineBreak:"anywhere"},children:"Continue with Setapp"})})});var G=r(73419),U=r(3422),q=r(75794),Q=r(39118);let Z=a.memo(function(){let e=(0,q.A)(),[t,r]=(0,a.useState)("idle"),[s,i]=(0,a.useState)(!1),o=(0,a.useRef)(null),l=(0,a.useRef)(null),c=(0,a.useRef)(null),d=(0,a.useRef)(0),u=(0,a.useCallback)(()=>{null!=l.current&&(window.clearInterval(l.current),l.current=null),null!=c.current&&(window.clearTimeout(c.current),c.current=null)},[]);(0,a.useEffect)(()=>u,[u]);let g=(0,a.useCallback)(()=>{u(),o.current=null,r("idle"),i(!1)},[u]),h=(0,a.useCallback)(async()=>{let e=o.current;if(!e)return;if(d.current+=1,d.current>48){g(),i(!0);return}let t=await p.A.auth.claimMagicLinkAuthCode(e);if(o.current!==e){"success"===t.outcome&&(0,U.destroyCookie)(null,x.hi,{path:"/"});return}"failure"!==t.outcome&&t.payload.firebaseSnapshot&&(u(),o.current=null,r("redirecting"),localStorage.setItem(t.payload.firebaseSnapshot.key,t.payload.firebaseSnapshot.value),window.location.reload())},[g,u]),f=(0,a.useCallback)(async()=>{i(!1);let e=await p.A.auth.requestMagicLinkAuthCode();if("failure"===e.outcome){m.yf.logger.error("Couldn't request web login code",{scope:"web-app-login"}),i(!0);return}o.current=e.payload.code,d.current=0,r("waiting"),window.location.href=(0,Q.C1)(e.payload.code),u(),l.current=window.setInterval(()=>{h()},2500),c.current=window.setTimeout(()=>{i(!0)},1e4)},[h,u]);return e&&(0,G.cX)()?"redirecting"===t?(0,n.jsx)("p",{className:"mt-6 text-center text-xs text-secondary",children:"Signing in…"}):"waiting"===t?(0,n.jsxs)("div",{className:"mt-6 flex flex-col items-center gap-1 text-center text-xs text-secondary",children:[(0,n.jsxs)("p",{children:["Approve the login in the Amie app…"," ",(0,n.jsx)("button",{className:"underline",onClick:g,children:"Cancel"})]}),s&&(0,n.jsx)("p",{children:"Nothing happening? Make sure the Amie desktop app is installed, up to date, and signed in — or use one of the options above."})]}):(0,n.jsxs)("div",{className:"mt-6 flex flex-col items-center gap-1 text-center text-xs text-secondary",children:[(0,n.jsxs)("button",{className:"transition-colors hover:text-primary",onClick:()=>void f(),children:["Have the Amie desktop app?"," ",(0,n.jsx)("span",{className:"underline",children:"Continue with the app"})]}),s&&(0,n.jsx)("p",{children:"Couldn't start the app login — try again, or use one of the options above."})]}):null});var H=r(19747),Y=r(61830);function X(e){return(0,n.jsx)(H.P.div,{className:"group pointer-events-auto mb-3 flex w-full cursor-default rounded-xl bg-white p-3 shadow-feintMd dark:bg-gray-700",initial:{translateY:8,opacity:0}
1,animate:{translateY:0,opacity:1},exit:{translateY:8,opacity:0},transition:{duration:.2},layout:!0,children:(0,n.jsx)(H.P.div,{layout:"position",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"flex items-center gap-5",children:(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)(Y.A,{className:"mr-2 mt-0.5 h-4 w-4 animate-bell "}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-semibold",children:e.primaryMessage}),e.secondaryMessage?(0,n.jsx)("small",{className:"font-medium text-secondary",children:e.secondaryMessage}):null]})]})},"calendar-permissions-title")},"calendar-permissions")}var J=r(39853),K=r(12009),V=r(73608),W=r(10698),$=r(90034),ee=r(55446),et=r(45304),er=r(63467),en=r(32678),ea=r(18473);let es="Login | ".concat(x.AF);var ei=!0;function eo(e){var t,r,s,l,p,m,h;let{isElectron:v,isSetappBuild:w,showSetappLogin:j}=e,b=(0,q.A)(),{prefetch:k,replace:N}=(0,o.useRouter)(),[C,A]=(0,a.useState)(void 0),[S,_]=(0,a.useState)(void 0),E=!!(w||j),P=(0,a.useRef)(new URLSearchParams(window.location.search)),I=(0,a.useRef)(null==(t=P.current)?void 0:t.get("n")),R=(0,a.useRef)(null==(r=P.current)?void 0:r.get("msg")),M=(0,a.useRef)(null==(s=P.current)?void 0:s.get("referral")),B=(0,a.useRef)(null==(l=P.current)?void 0:l.get("invitationId")),F=(0,a.useRef)(null==(p=P.current)?void 0:p.get("code")),G=(0,a.useRef)(void 0),U=(0,a.useRef)(null==(m=P.current)?void 0:m.get("message")),Q=(0,a.useRef)(null==(h=P.current)?void 0:h.get("error"));(0,a.useEffect)(()=>{var e;k("/");let t=null==(e=P.current)?void 0:e.get("oauth_return");t&&t.length<2048&&(0,ee.O)(t)&&localStorage.setItem(ea.cY,JSON.stringify({path:t,expiresAt:Date.now()+6e5})),N("/login",void 0,{shallow:!0})},[]),(0,a.useEffect)(()=>{G.current=localStorage.getItem(x.nT)||void 0,localStorage.removeItem(x.nT);let e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(e){case void 0:case null:case"":case"self_logout":case"broadcast_logout":case"access_revoked":case"no_logged_in_cookie":return;case"waitlist":return{primary:"Looks like you aren't allowed in yet",secondary:"Hang tight, your turn is coming soon"};case"waitlist_invalid_promocode":return{primary:"The code you used is not valid anymore",secondary:"We're launching more campaigns in the next weeks"};case"insufficient_permissions":if(t.isElectron)return;return{primary:"We need access to Google Calendar",secondary:"Please tick all boxes in the permissions step"};case"electron_code":return{primary:"Sign in to continue with desktop login",secondary:"Almost there!"};case"session_expired":case"id_token_failure":return{primary:"Your session expired",secondary:"Please sign in again"};case"user_deleted":return{primary:"Your account has been deleted",secondary:"Sorry to see you go :("};case"primary_account_switch":var r;return{primary:"Primary account switched",secondary:"Please sign in with ".concat(null!=(r=t.loginHint)?r:"your new email"," to continue")};case"setapp_error":var n=t;switch(n.setappErrorCode){case"SETAPP_ENTITLEMENT_DENIED":return{primary:"Amie not included in your Setapp plan",secondary:"Please add Amie to your Setapp subscription and try again"};case"SETAPP_INVALID_STATE":return{primary:"Session expired",secondary:"Please try signing in again"};case"SETAPP_INVALID_REQUEST":case"SETAPP_ACCESS_DENIED":return{primary:"Authentication cancelled",secondary:"Please try again to sign in with Setapp"};case"SETAPP_API_ERROR":case"SETAPP_INTERNAL_ERROR":return{primary:"Setapp service unavailable",secondary:"Please try again in a few minutes"};case"SETAPP_ACCOUNT_CONFLICT":return{primary:"Setapp account already linked",secondary:"This Setapp account is connected to a different Amie account. Please sign in with that account or contact support."};case"SETAPP_EMAIL_NOT_CONFIRMED":return{primary:"Email access required",secondary:"Please try again and approve email access when prompted by Setapp"};case"SETAPP_EXISTING_ACCOUNT":return{primary:"Account already exists",secondary:"An Amie account already exists with this email. Please delete your existing account first, then sign in with Setapp."};default:return{primary:"Setapp authentication failed",secondary:n.setappMessage||"Please try again or c
1ontact support"}}case"setapp_signin_failed":return{primary:"Failed to complete Setapp sign-in",secondary:"Please try again"};case"setapp_account_exists":return{primary:"This email is linked to a Setapp account",secondary:"To use Google sign-in, please delete your Setapp account first or contact support"};default:return{primary:"Looks like an error occurred during the sign-in",secondary:"Please try again"}}}(R.current,{isElectron:v,loginHint:G.current,setappErrorCode:Q.current,setappMessage:U.current});A(null==e?void 0:e.primary),_(null==e?void 0:e.secondary),R.current&&["waitlist","electron_code"].includes(R.current)||function(){let e=(0,et.qp)();e.postMessage(et.Oe);try{new er.B({logger:en.A}).completeCleanup()}finally{e.postMessage(et.Xd)}}(),M.current&&localStorage.setItem(x.hB,M.current),B.current&&localStorage.setItem(x.D8,B.current),F.current&&localStorage.setItem(x.kr,F.current)},[v]);let[H,Y]=(0,a.useState)(!1),[ei]=(0,W.A)("show-permissions-screen",!1),eo=(0,$._)({isLogin:!0}),el=(0,a.useCallback)(()=>E?(0,n.jsx)(z,{}):v?(0,n.jsx)(f,{}):ei?(0,n.jsxs)(d.A,{onClick:()=>Y(!0),className:c()("flex w-full items-center justify-center rounded-xl bg-gray-800 px-10 py-4 text-gray-100 transition-colors duration-150 hover:bg-gray-700 dark:bg-gray-100 dark:text-gray-800 dark:hover:bg-gray-200"),children:[(0,n.jsx)("img",{className:"inline w-4 opacity-80 dark:hidden",src:"/assets/login/google-icon-dark.svg",alt:"google icon"}),(0,n.jsx)("img",{className:"hidden w-4 opacity-80 dark:inline",src:"/assets/login/google-icon-light.svg",alt:"google icon"}),(0,n.jsx)("span",{className:"ml-2.5 text-base font-semibold",style:{lineBreak:"anywhere"},children:"Continue with Google"})]}):(0,n.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,n.jsx)(L,{hint:G.current}),(0,n.jsx)(D,{hint:G.current})]}),[v,E,ei]);return eo.isEnabled?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i(),{children:[(0,n.jsx)("title",{children:es}),(0,n.jsx)("meta",{name:"description",content:es})]}),(0,n.jsx)(J.A,{text:eo.text,subtitle:eo.subtitle,showEmail:eo.showEmail})]}):H?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i(),{children:[(0,n.jsx)("title",{children:es}),(0,n.jsx)("meta",{name:"description",content:es})]}),(0,n.jsx)(g.A,{children:(0,n.jsx)("main",{className:"flex h-screen border-gray-150 bg-gray-100 p-4 dark:bg-gray-900/20",children:(0,n.jsxs)("div",{className:"grid w-full grid-cols-1 gap-3.5 lg:grid-cols-2",children:[(0,n.jsx)("div",{className:"rounded-[32px] bg-white p-20 dark:bg-gray-750",children:(0,n.jsx)(T,{})}),(0,n.jsx)("div",{className:"hidden rounded-[32px] bg-[#040D30] lg:block",children:(0,n.jsx)(O,{})})]})})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i(),{children:[(0,n.jsx)("title",{children:es}),(0,n.jsx)("meta",{name:"description",content:es}),E&&(0,n.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,n.jsxs)(g.A,{children:[(0,n.jsx)(K.oz,{}),b&&(0,n.jsx)(u.A,{name:I.current}),(0,n.jsxs)("div",{className:"pointer-events-none relative z-20 m-auto flex w-full max-w-[520px] flex-col",children:[(0,n.jsx)(y,{name:I.current}),(0,n.jsxs)("div",{className:"flex w-full flex-col items-center p-12",children:[(0,n.jsx)("div",{className:"mb-5 flex size-10",children:(0,n.jsx)(V.A,{})}),(0,n.jsx)("div",{className:"flex items-center",children:(0,n.jsxs)("p",{className:"pointer-events-auto text-center text-4xl font-semibold leading-tight text-secondary",children:["Joyful and productive collaboration.\xa0",(0,n.jsxs)("span",{className:"text-primary",children:["All in one",(0,n.jsx)("a",{href:"https://www.youtube.com/watch?v=dQw4w9WgXcQ",rel:"noopener noreferrer",target:"_blank",children:"."})]})]})}),(0,n.jsxs)("div",{className:"pointer-events-auto mt-6 flex flex-col",children:[C&&S&&(0,n.jsx)(X,{primaryMessage:C,secondaryMessage:S}),el(),(0,n.jsxs)("small",{className:"mt-3 w-full text-xxs leading-relaxed text-secondary",children:["By continuing, you acknowledge that you have read and understood, and agree to Amie's"," ",(0,n.jsx)("a",{className:"transition-colors hover:text-primary",href:"https://amie.so/terms",rel:"noopener noreferrer",target:"_blank",children:"Terms & Conditions"})," ","and"," ",(0,n.jsx)("a",{className:"transition-colors hover:text-primary",href:"https://amie.so/privacy",rel:"noopener noreferrer",target:"_blank",children:"Privacy Policy"}),"."]}),!E&&!v&&!ei&&(0,n.jsx)(Z,{})]})]})]})]})]})}},7984:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return r(3699)}])},12451:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(37876);r(14232);let a=e=>{let{height:t=16,width:r=16,className:a}=e;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,className:a,viewBox:"0 0 20 20",fill:"currentColor",children:(0,n.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.5 3a.875.875 0 00-.875.875v.875H4.75A1.75 1.75 0 003 6.5v8.75c0 .966.784 1.75 1.75 1.75h10.5A1.75 1.75 0 0017 15.25V6.5a1.75 1.75 0 00-1.75-1.75h-.875v-.875a.875.875 0 00-1.75 0v.875h-5.25v-.875A.875.875 0 006.5 3zm0 4.375a.875.875 0 100 1.75h7a.875.875 0 000-1.75h-7z",clipRule:"evenodd"})})}},16773:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(37876);function a(e){let{children:t}=e;return(0,n.jsx)("main",{className:"flex min-h-full w-full flex-col",children:t})}r(14232)},26115:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(37876);r(14232);var a=r(49187),s=r(5811),i=r(1297),o=r(86973),l=r(31476);let c=(0,s.PA)(function(e){let{active:t,email:r,avatar:s,accountEmail:c,size:d=32,notification:u=!1,...g}=e,p=a.A.calendarsEngine.mainCalendarKey.accountEmail,m=(0,o.A)([r])[0],h=s||(null==m?void 0:m.avatar)||void 0,x=a.A.calendarsEngine.calendarColorStore.getColor({accountEmail:c||p||r,calendarId:r,provider:l.$5M.Google});return(0,n.jsx)(i.A,{size:d,src:h,status:u?"blue":void 0,statusClassName:"border-background",email:r,ring:t?x:void 0,...g,placeholderGrayscale:!m||void 0})})},52953:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(37876),a=r(14232),s=r(58103),i=r.n(s),o=r(29573),l=r(12009),c=r(99479),d=r(31476);let u=(0,a.memo)(function(e){let{checked:t,color:r=d.QD7.Gray,variant:a,onChange:s,className:u="mt-0.5"}=e;return(0,n.jsxs)("label",{role:"presentation",className:(0,o.QP)("group/todo-checkbox relative z-10 cursor-pointer self-start",u),onPointerDown:e=>e.stopPropagation(),onClick:e=>e.stopPropagation(),children:[(0,n.jsxs)("div",{style:{width:16,height:16},children:[(0,n.jsx)("input",{className:"peer sr-only",type:"checkbox",checked:t,onChange:e=>{let t=e.currentTarget.checked;null==s||s(t)},tabIndex:-1}),!t&&(0,n.jsx)("div",{className:"h-full w-full text-secondary transition-colors",children:(0,n.jsx)(l.xA,{size:16,variant:a})}),(0,n.jsx)("div",{className:i()("absolute left-0 top-0 h-full w-full rounded-md text-secondary transition-colors peer-checked:[&>div]:scale-100 peer-checked:[&>div]:delay-75"),children:(0,n.jsx)("div",{className:i()("absolute flex h-full w-full items-center justify-center transition-all",{"scale-100 group-hover/todo-checkbox:!scale-110 group-hover/todo-checkbox:opacity-80":t,"scale-[0.7] opacity-0 group-hover/todo-checkbox:opacity-100":!t}),children:(0,n.jsx)("span",{className:i()({[c.colorMap[r].text]:t}),children:(0,n.jsx)(l.Ur,{size:16})})})})]}),!t&&a&&(0,n.jsx)("div",{className:i()("absolute -right-px bottom-0 h-1.5 w-1.5 rounded-lg",{"bg-amber-500":"draft"===a,"bg-blue-500":"unread"===a})})]})})},75794:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(14232);
1let a=function(){let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{t(!0)},[]),e}},86973:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(14232),a=r(49187);function s(e){let[t,r]=(0,n.useState)([]);return(0,n.useEffect)(()=>{a.A.contacts.getContactsByEmails(e).then(r)},[e.join(",")]),t}}},e=>{e.O(0,[8230,6198,5925,2961,8766,7730,1560,9456,1745,618,4308,636,6593,8792],()=>e(e.s=7984)),_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.