1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{19946:(e,r,s)=>{"use strict";s.d(r,{A:()=>n});var t=s(12115);let a=(...e)=>e.filter((e,r,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===r).join(" ").trim();var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:i,className:n="",children:d,iconNode:o,...c},u)=>(0,t.createElement)("svg",{ref:u,...l,width:r,height:r,stroke:e,strokeWidth:i?24*Number(s)/Number(r):s,className:a("lucide",n),...c},[...o.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(d)?d:[d]])),n=(e,r)=>{let s=(0,t.forwardRef)(({className:s,...l},n)=>(0,t.createElement)(i,{ref:n,iconNode:r,className:a(`lucide-${e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,s),...l}));return s.displayName=`${e}`,s}},35695:(e,r,s)=>{"use strict";var t=s(18999);s.o(t,"useParams")&&s.d(r,{useParams:function(){return t.useParams}}),s.o(t,"usePathname")&&s.d(r,{usePathname:function(){return t.usePathname}}),s.o(t,"useRouter")&&s.d(r,{useRouter:function(){return t.useRouter}}),s.o(t,"useSearchParams")&&s.d(r,{useSearchParams:function(){return t.useSearchParams}})},49026:(e,r,s)=>{"use strict";s.d(r,{Fc:()=>d,TN:()=>c,XL:()=>o});var t=s(95155),a=s(12115),l=s(74466),i=s(24026);let n=(0,l.F)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),d=a.forwardRef(({className:e,variant:r,...s},a)=>(0,t.jsx)("div",{ref:a,role:"alert",className:(0,i.cn)(n({variant:r}),e),...s}));d.displayName="Alert";let o=a.forwardRef(({className:e,...r},s)=>(0,t.jsx)("h5",{ref:s,className:(0,i.cn)("mb-1 font-medium leading-none tracking-tight",e),...r}));o.displayName="AlertTitle";let c=a.forwardRef(({className:e,...r},s)=>(0,t.jsx)("div",{ref:s,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",e),...r}));c.displayName="AlertDescription"},53311:(e,r,s)=>{"use strict";s.d(r,{A:()=>t});let t=(0,s(19946).A)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},54416:(e,r,s)=>{"use strict";s.d(r,{A:()=>t});let t=(0,s(19946).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},62235:(e,r,s)=>{"use strict";s.d(r,{PendingGenerationPreview:()=>d});var t=s(95155),a=s(12115),l=s(53311),i=s(54416),n=s(35695);function d(){let[e,r]=(0,a.useState)(null),[s,d]=(0,a.useState)(!1),[o,c]=(0,a.useState)(null),u="/pricing"===(0,n.usePathname)(),m=parseInt("2",10);return((0,a.useEffect)(()=>{try{let e=localStorage.getItem("svgai_pending_prompt");if(e){let s=JSON.parse(e);Date.now()-s.timestamp<864e5&&(s.prompt||s.uploadedImage)&&r(s)}}catch(e){console.error("Error reading pending prompt:",e)}},[]),(0,a.useEffect)(()=>{if(!u||!e?.prompt||o)return;let r=localStorage.getItem("svgai_personalized_message");if(r)try{let s=JSON.parse(r);if(s.prompt===e.prompt)return void c(s.message)}catch(e){console.error("Error reading cached personalized message:",e)}c("Your perfect SVG with infinite scalability awaits")},[u,e,o]),u&&m>0||!e||s)?null:u?(0,t.jsx)("div",{className:"relative mb-3 overflow-hidden rounded-lg bg-gradient-to-br from-orange-50 via-pink-50 to-orange-50 border border-[#FF7043]/60",children:(0,t.jsx)("div",{className:"p-2.5",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:e.uploadedImage?(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("img",{src:e.uploadedImage,alt:"Your design",className:"w-10 h-10 rounded-lg border border-white shadow-sm object-cover"}),(0,t.jsx)("div",{className:"absolute -top-1 -right-1 bg-gradient-to-br from-[#FF7043] to-[#FFA726] rounded-full p-0.5",children:(0,t.jsx)(l.A,{className:"h-2.5 w-2.5 text-white"})})]}):(0,t.jsx)("div",{className:"w-10 h-10 rounded-lg bg-gradient-to-br from-[#FF7043] to-[#FFA726] flex items-center justify-center shadow-sm",children:(0,t.jsx)(l.A,{className:"h-5 w-5 text-white"})})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("h3",{className:"text-xs font-bold text-gray-900 mb-0.5 leading-tight",children:o||"Your perfect SVG with infinite scalability awaits"}),e.prompt&&(0,t.jsxs)("p",{className:"text-[10px] text-gray-600 line-clamp-1",children:['"',e.prompt,'"']})]}),(0,t.jsx)("button",{onClick:()=>d(!0),className:"flex-shrink-0 p-0.5 text-gray-400 hover:text-gray-600 transition-colors","aria-label":"Dismiss",children:(0,t.jsx)(i.A,{className:"h-3.5 w-3.5"})})]})})}):(0,t.jsx)("div",{className:"relative mb-6 overflow-hidden rounded-xl bg-[#FFF8F5] border border-[rgba(255,112,67,0.15)] shadow-sm",children:(0,t.jsx)("div",{className:"p-3",children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[e.uploadedImage&&(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)("img",{src:e.uploadedImage,alt:"Your design",className:"w-10 h-10 rounded-lg border border-orange-200 object-cover shadow-sm"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mb-0.5",children:[(0,t.jsx)(l.A,{className:"h-3.5 w-3.5 text-orange-500 flex-shrink-0"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-gray-900 leading-tight",children:"Continue where you left off"})]}),e.prompt&&(0,t.jsxs)("p",{className:"text-sm text-gray-700 line-clamp-1 font-medium",children:['"',e.prompt,'"']})]}),(0,t.jsx)("button",{onClick:()=>d(!0),className:"p-1 text-gray-400 hover:text-gray-600 transition-colors flex-shrink-0 self-start -mt-1 -mr-1","aria-label":"Dismiss",children:(0,t.jsx)(i.A,{className:"h-4 w-4"})})]})})})}},62975:(e,r,s)=>{Promise.resolve().then(s.bind(s,66886))},66886:(e,r,s)=>{"use strict";s.d(r,{LoginForm:()=>p});var t=s(95155),a=s(12115),l=s(48151),i=s(97168),n=s(89852),d=s(82714),o=s(88482),c=s(85339),u=s(49026),m=s(35695),x=s(62235);function f(){let[e,r]=(0,a.useState)(""),[s,f]=(0,a.useState)(""),[h,p]=(0,a.useState)(null),[g,v]=(0,a.useState)(!1),{signIn:b,signInWithGoogle:j}=(0,l.A)(),y=(0,m.useRouter)(),N=(0,m.useSearchParams)(),w=N.get("returnUrl"),k=N.get("preservePrompt"),F=w||"/dashboard";"true"!==k||F.includes("preservePrompt")||(F+=(F.includes("?")?"&":"?")+"preservePrompt=true");let A=async r=>{r.preventDefault(),p(null),v(!0);try{await b(e,s),y.push(F)}catch(e){p(e.message||"Invalid email or password")}finally{v(!1)}},C=async()=>{p(null);try{await j(F)}catch(e){p(e.message||"An error occurred with Google login")}};return(0,t.jsxs)(o.Zp,{className:"w-full max-w-md mx-auto",children:[(0,t.jsxs)(o.aR,{children:[(0,t.jsx)(o.ZB,{children:"Log In"}),(0,t.jsx)(o.BT,{children:"Login to your account to manage your SVG creations"})]}),(0,t.jsxs)(o.Wu,{children:[(0,t.jsx)(x.PendingGenerationPreview,{}),h&&(0,t.jsxs)(u.Fc,{variant:"destructive",className:"mb-4",children:[(0,t.jsx)(c.A,{className:"h-4 w-4"}),(0,t.jsx)(u.TN,{children:h})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)(i.$,{type:"button",variant:"outline",className:"w-full",onClick:C,children:[(0,t.jsxs)("svg",{className:"w-5 h-5 mr-2",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),(0,t.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,t.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),(0,t.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"}),(0,t.jsx)("path",{d:"M1 1h22v22H1z",fill:"none"})]}),"Login with Google"]}),(0,t.jsxs)("div",{className:"relative my-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,t.jsx)("div",{className:"relative flex justify-center text-sm",children:(0,t.jsx)("span",{className:"px-2 bg-white text-gray-500",children:"Or login with email"})})]}),(0,t.jsxs)("form",{onSubmit:A,className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(d.J,{htmlFor:"email",children:"Email"}),(0,t.jsx)(n.p,{id:"email",type:"email",placeholder:"[email protected]",value:e,onCh
1ange:e=>r(e.target.value),required:!0})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(d.J,{htmlFor:"password",children:"Password"}),(0,t.jsx)(n.p,{id:"password",type:"password",value:s,onChange:e=>f(e.target.value),required:!0}),(0,t.jsx)("div",{className:"text-right",children:(0,t.jsx)("a",{href:"/reset-password",className:"text-sm text-[#0084FF] hover:underline",children:"Forgot password?"})})]}),(0,t.jsx)(i.$,{type:"submit",className:"w-full",disabled:g,children:g?"Logging in...":"Log In"})]})]})]}),(0,t.jsx)(o.wL,{className:"flex justify-center",children:(0,t.jsxs)("p",{className:"text-sm text-gray-600",children:["Don't have an account?"," ",(0,t.jsx)("a",{href:"/signup",className:"text-[#0084FF] hover:underline",children:"Sign up"})]})})]})}function h(){return(0,t.jsxs)(o.Zp,{className:"w-full max-w-md mx-auto",children:[(0,t.jsxs)(o.aR,{children:[(0,t.jsx)(o.ZB,{children:"Log In"}),(0,t.jsx)(o.BT,{children:"Loading login form..."})]}),(0,t.jsx)(o.Wu,{children:(0,t.jsx)("div",{className:"flex justify-center p-8",children:(0,t.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-[#0084FF]"})})})]})}function p(){return(0,t.jsx)(a.Suspense,{fallback:(0,t.jsx)(h,{}),children:(0,t.jsx)(f,{})})}},74466:(e,r,s)=>{"use strict";s.d(r,{F:()=>i});var t=s(52596);let a=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,l=t.$,i=(e,r)=>s=>{var t;if((null==r?void 0:r.variants)==null)return l(e,null==s?void 0:s.class,null==s?void 0:s.className);let{variants:i,defaultVariants:n}=r,d=Object.keys(i).map(e=>{let r=null==s?void 0:s[e],t=null==n?void 0:n[e];if(null===r)return null;let l=a(r)||a(t);return i[e][l]}),o=s&&Object.entries(s).reduce((e,r)=>{let[s,t]=r;return void 0===t||(e[s]=t),e},{});return l(e,d,null==r||null==(t=r.compoundVariants)?void 0:t.reduce((e,r)=>{let{class:s,className:t,...a}=r;return Object.entries(a).every(e=>{let[r,s]=e;return Array.isArray(s)?s.includes({...n,...o}[r]):({...n,...o})[r]===s})?[...e,s,t]:e},[]),null==s?void 0:s.class,null==s?void 0:s.className)}},82714:(e,r,s)=>{"use strict";s.d(r,{J:()=>o});var t=s(95155),a=s(12115),l=s(40968),i=s(74466),n=s(24026);let d=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),o=a.forwardRef(({className:e,...r},s)=>(0,t.jsx)(l.b,{ref:s,className:(0,n.cn)(d(),e),...r}));o.displayName=l.b.displayName},85339:(e,r,s)=>{"use strict";s.d(r,{A:()=>t});let t=(0,s(19946).A)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},88482:(e,r,s)=>{"use strict";s.d(r,{BT:()=>o,Wu:()=>c,ZB:()=>d,Zp:()=>i,aR:()=>n,wL:()=>u});var t=s(95155),a=s(12115),l=s(24026);let i=a.forwardRef(({className:e,...r},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",e),...r}));i.displayName="Card";let n=a.forwardRef(({className:e,...r},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",e),...r}));n.displayName="CardHeader";let d=a.forwardRef(({className:e,...r},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("text-2xl font-semibold leading-none tracking-tight",e),...r}));d.displayName="CardTitle";let o=a.forwardRef(({className:e,...r},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("text-sm text-muted-foreground",e),...r}));o.displayName="CardDescription";let c=a.forwardRef(({className:e,...r},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("p-6 pt-0",e),...r}));c.displayName="CardContent";let u=a.forwardRef(({className:e,...r},s)=>(0,t.jsx)("div",{ref:s,className:(0,l.cn)("flex items-center p-6 pt-0",e),...r}));u.displayName="CardFooter"},89852:(e,r,s)=>{"use strict";s.d(r,{p:()=>i});var t=s(95155),a=s(12115),l=s(24026);let i=a.forwardRef(({className:e,type:r,...s},a)=>(0,t.jsx)("input",{type:r,className:(0,l.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:a,...s}));i.displayName="Input"},97168:(e,r,s)=>{"use strict";s.d(r,{$:()=>o,r:()=>d});var t=s(95155),a=s(12115),l=s(99708),i=s(74466),n=s(24026);let d=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-12 px-4 py-2 min-h-[48px]",sm:"h-12 rounded-md px-3 min-h-[48px]",lg:"h-14 roun
1ded-md px-8 min-h-[56px]",icon:"h-12 w-12 min-h-[48px] min-w-[48px]"}},defaultVariants:{variant:"default",size:"default"}}),o=a.forwardRef(({className:e,variant:r,size:s,asChild:a=!1,...i},o)=>{let c=a?l.DX:"button";return(0,t.jsx)(c,{className:(0,n.cn)(d({variant:r,size:s,className:e})),ref:o,...i})});o.displayName="Button"}},e=>{e.O(0,[4758,6436,4026,6424,4134,5511,5333,7358],()=>e(e.s=62975)),_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.