1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4630],{3002:(e,r,a)=>{a.d(r,{cn:()=>s});var t=a(52596),i=a(39688);function s(){for(var e=arguments.length,r=Array(e),a=0;a<e;a++)r[a]=arguments[a];return(0,i.QP)((0,t.$)(r))}},7881:(e,r,a)=>{a.d(r,{p:()=>s});var t=a(95155);a(12115);var i=a(3002);function s(e){let{className:r,type:a,...s}=e;return(0,t.jsx)("input",{type:a,"data-slot":"input",className:(0,i.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",r),...s})}},44630:(e,r,a)=>{let t;a.r(r),a.d(r,{default:()=>m});var i=a(95155),s=a(12115),n=a(54765),l=a(50183);function o(e){return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"mr-2 h-5 w-5",viewBox:"0 0 48 48",...e,children:[(0,i.jsx)("defs",{children:(0,i.jsx)("path",{id:"a",d:"M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z"})}),(0,i.jsx)("clipPath",{id:"b",children:(0,i.jsx)("use",{xlinkHref:"#a",overflow:"visible"})}),(0,i.jsx)("path",{fill:"#FBBC05",d:"M0 37V11l17 13z",clipPath:"url(#b)"}),(0,i.jsx)("path",{fill:"#EA4335",d:"m0 11 17 13 7-6.1L48 14V0H0z",clipPath:"url(#b)"}),(0,i.jsx)("path",{fill:"#34A853",d:"m0 37 30-23 7.9 1L48 0v48H0z",clipPath:"url(#b)"}),(0,i.jsx)("path",{fill:"#4285F4",d:"M48 48 17 24l-4-3 35-10z",clipPath:"url(#b)"})]})}var d=a(45493),c=a(7881),u=a(56671);let g=(t="pk_live_5FFDD033EC3744D5",new(a(60161)).qM(t));var x=a(51154);let p=e=>/\S+@\S+\.\S+/.test(e);function m(){let[e,r]=(0,s.useState)(!1),[a,t]=(0,s.useState)(""),m=new URLSearchParams(window.location.search).get("priceId"),h=m?"/dashboard?login=true&priceId=".concat(m):"/dashboard?login=true",v=async()=>{try{r("google"),await (0,d.Jv)("google",{redirectTo:h})}catch(e){console.error("Error logging in:",e.message||e)}finally{setTimeout(()=>r(!1),1e3)}},f=async()=>{try{if(!a.length)return u.oR.error("Please enter your email address.");if(!p(a))return u.oR.error("Please enter a valid email address.");r("magicLink");let e=await g.auth.loginWithMagicLink({email:a});await (0,d.Jv)("magic-link",{email:a,didToken:e,callbackUrl:h})}catch(e){console.error("Error logging in:",e.message||e)}finally{setTimeout(()=>r(!1),1e3)}};return(0,i.jsx)("section",{className:"py-8 md:py-10 px-4 sm:px-6",children:(0,i.jsxs)(n.Zp,{className:"max-w-lg mx-auto",children:[(0,i.jsx)(n.aR,{className:"text-center",children:(0,i.jsx)(n.ZB,{className:"text-2xl font-bold",children:"Login with:"})}),(0,i.jsxs)(n.Wu,{className:"flex flex-col items-center",children:[(0,i.jsx)(l.$,{onClick:v,className:"min-w-[300px] h-[48px] hover:cursor-pointer text-lg",disabled:"google"===e,children:"google"===e?(0,i.jsx)(x.A,{className:"animate-spin"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o,{})," Google"]})}),(0,i.jsxs)("div",{className:"flex items-center w-4/5 max-w-[300px] my-3",children:[(0,i.jsx)("div",{className:"flex-grow h-px bg-gray-300"}),(0,i.jsx)("span",{className:"mx-2.5",children:"OR"}),(0,i.jsx)("div",{className:"flex-grow h-px bg-gray-300"})]}),(0,i.jsx)(c.p,{id:"email",type:"email",placeholder:"[email protected]",required:!0,onChange:e=>{t(e.target.value)},value:a,className:"w-[300px] h-[48px] "}),(0,i.jsx)(l.$,{onClick:f,className:"min-w-[300px] h-[48px] hover:cursor-pointer text-lg bg-[#3e63dd] hover:bg-[#3256c5] mt-4",disabled:"magicLink"===e,children:"magicLink"===e?(0,i.jsx)(x.A,{className:"animate-spin"}):"Send magic link"})]})]})})}},50183:(e,r,a)=>{a.d(r,{$:()=>o,r:()=>l});var t=a(95155);a(12115);var i=a(99708),s=a(74466),n=a(3002);let l=(0,s.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function o(e){let{className:r,variant:a,size:s,asChild:o=!1,...d}=e,c=o?i.Slot:"button";return(0,t.jsx)(c,{"data-slot":"button",className:(0,n.cn)(l({variant:a,size:s,className:r})),...d})}},54765:(e,r,a)=>{a.d(r,{BT:()=>o,Wu:()=>d,ZB:()=>l,Zp:()=>s,aR:()=>n,wL:()=>c});var t=a(95155);a(12115);var i=a(3002);function s(e){let{className:r,...a}=e;return(0,t.jsx)("div",{"data-slot":"card",className:(0,i.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",r),...a})}function n(e){let{className:r,...a}=e;return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,i.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",r),...a})}function l(e){let{className:r,...a}=e;return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,i.cn)("leading-none font-semibold",r),...a})}function o(e){let{className:r,...a}=e;return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,i.cn)("text-muted-foreground text-sm",r),...a})}function d(e){let{className:r,...a}=e;return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,i.cn)("px-6",r),...a})}function c(e){let{className:r,...a}=e;return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,i.cn)("flex items-center px-6 [.border-t]:pt-6",r),...a})}}}]);
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.