1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3323],{40646:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(19946).A)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},49026:(e,s,t)=>{t.d(s,{Fc:()=>c,TN:()=>o,XL:()=>d});var a=t(95155),r=t(12115),l=t(74466),n=t(24026);let i=(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"}}),c=r.forwardRef(({className:e,variant:s,...t},r)=>(0,a.jsx)("div",{ref:r,role:"alert",className:(0,n.cn)(i({variant:s}),e),...t}));c.displayName="Alert";let d=r.forwardRef(({className:e,...s},t)=>(0,a.jsx)("h5",{ref:t,className:(0,n.cn)("mb-1 font-medium leading-none tracking-tight",e),...s}));d.displayName="AlertTitle";let o=r.forwardRef(({className:e,...s},t)=>(0,a.jsx)("div",{ref:t,className:(0,n.cn)("text-sm [&_p]:leading-relaxed",e),...s}));o.displayName="AlertDescription"},63323:(e,s,t)=>{t.r(s),t.d(s,{GenerationSignupModal:()=>f});var a=t(95155),r=t(99840),l=t(97168),n=t(53311),i=t(40646),c=t(35695),d=t(6874),o=t.n(d),m=t(12115),x=t(48151),u=t(89852),p=t(82714),h=t(85339),g=t(49026);function f({isOpen:e,onClose:s,generationsUsed:t,isSoftPrompt:d=!1,onContinueAsGuest:o,isAuthenticated:x=!1,isSubscribed:u=!1,preservePrompt:p=!1,source:h="homepage"}){let g=(0,c.useRouter)(),[f,j]=(0,m.useState)(!1),[N,y]=(0,m.useState)(e),b=((e,s)=>{if(!s)return"/pricing";switch(e){case"icon-generator":return"/ai-icon-generator";case"homepage":return"/";default:return"/pricing"}})(h,parseInt("2",10)>0);(0,m.useEffect)(()=>{e||f?y(!0):y(!1)},[e,f]),(0,m.useEffect)(()=>{e&&x&&!u&&!d&&(g.push("/pricing"),s())},[e,x,u,d,g,s]),(0,m.useEffect)(()=>{N||j(!1)},[N]);let w=(e=!1)=>e?"/dashboard":b;return d?(0,a.jsx)(r.lG,{open:N,onOpenChange:e=>{e?y(e):(j(!1),y(!1),s())},children:(0,a.jsxs)(r.Cf,{className:"sm:max-w-md",onPointerDownOutside:e=>{e.preventDefault()},children:[(0,a.jsxs)(r.c7,{children:[(0,a.jsxs)(r.L3,{className:"text-lg sm:text-xl flex items-center pr-8",children:[(0,a.jsx)(n.A,{className:"mr-2 h-5 w-5 text-[#FF7043] flex-shrink-0"}),"results"===h?"Download Your Design":"Love your creation?"]}),(0,a.jsx)(r.rr,{className:"text-sm mt-2",children:"results"===h?"Sign up to download and save to your dashboard ⢠Free account":"60,000+ professional designs created worldwide ⢠Sign up free"})]}),(0,a.jsxs)("div",{className:"space-y-4 mt-6",children:[(0,a.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,a.jsx)(i.A,{className:"h-5 w-5 text-green-600 mt-0.5"}),(0,a.jsx)("div",{children:(0,a.jsx)("p",{className:"text-sm",children:"Professional vector graphics - real paths, not converted images"})})]}),(0,a.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,a.jsx)(i.A,{className:"h-5 w-5 text-green-600 mt-0.5"}),(0,a.jsx)("div",{children:(0,a.jsx)("p",{className:"text-sm",children:"Works in 50+ languages - æ¥æ¬èª, espa\xf1ol, Ø§ÙØ¹Ø±Ø¨ÙØ©, हिà¤à¤¦à¥, 䏿, and more"})})]}),(0,a.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,a.jsx)(i.A,{className:"h-5 w-5 text-green-600 mt-0.5"}),(0,a.jsx)("div",{children:(0,a.jsx)("p",{className:"text-sm",children:"Perfect text rendering that actually works"})})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 mt-6",children:[(0,a.jsx)(l.$,{onClick:()=>{s();let e=w(!1),t=p?`/signup?returnUrl=${encodeURIComponent(e)}&preservePrompt=true`:`/signup?returnUrl=${encodeURIComponent(e)}`;g.push(t)},className:"w-full bg-[#FF7043] hover:bg-[#FF5722]",children:"Sign Up Free"}),(0,a.jsx)(l.$,{onClick:()=>{s();let e=w(!0),t=p?`/login?returnUrl=${encodeURIComponent(e)}&preservePrompt=true`:`/login?returnUrl=${encodeURIComponent(e)}`;g.push(t)},variant:"outline",className:"w-full",children:"Already have an account? Log In"})]})]})}):!x||u||d?(0,a.jsx)(r.lG,{open:N,onOpenChange:e=>{e?y(e):(j(!1),y(!1),s())},children:(0,a.jsxs)(r.Cf,{className:"sm:max-w-md",onPointerDownOutside:e=>{e.preventDefault()},children:[(0,a.jsxs)(r.c7,{children:[(0,a.jsx)(r.L3,{className:"text-2xl sm:text-3xl font-bold text-[#FF7043] pr-8",children:"results"===h?"Sign up to download":"Ready to create more?"}),(0,a.jsx)(r.rr,{className:"text-sm mt-2",children:"results"===h?(0,a.jsxs)(a.Fragment,{children:["Sign up to ",(0,a.jsxs)("span",{className:"font-semibold",children:["download this ",1===t?"design":"and all your designs"]})," and ",(0,a.jsx)("span",{className:"font-semibold",children:"save them to your dashboard"})]}):(0,a.jsxs)(a.Fragment,{children:["Create an account to ",(0,a.jsx)("span",{className:"font-semibold",children:"save your designs"})," and ",(0,a.jsx)("span",{className:"font-semibold",children:"keep creating"})]})})]}),(0,a.jsx)("div",{className:"flex flex-col gap-3 mt-6",children:(0,a.jsx)(v,{onClose:s,source:h,preservePrompt:p,onSuccessChange:j,setInternalOpen:y,signupReturnUrl:b})})]})}):null}function v({onClose:e,source:s,preservePrompt:t,onSuccessChange:r,setInternalOpen:n,signupReturnUrl:d}){let[f,v]=(0,m.useState)(""),[j,N]=(0,m.useState)(""),[y,b]=(0,m.useState)(null),[w,F]=(0,m.useState)(!1),[C,k]=(0,m.useState)(!1),{signUp:A,signInWithGoogle:S}=(0,x.A)(),R=(0,c.useRouter)(),U=(e=!1)=>e?"/dashboard":d,P=async e=>{e.preventDefault(),e.stopPropagation(),b(null),F(!0);try{await A(f,j,void 0,d),k(!0),r?.(!0),n&&n(!0)}catch(e){b(e.message||"An error occurred during sign up")}finally{F(!1)}},$=async()=>{b(null);try{let s=U(!1),a=t?`${s}?preservePrompt=true`:s;await S(a,!0),e()}catch(e){b(e.message||"An error occurred with Google sign in")}};return C?(0,a.jsxs)("div",{className:"space-y-6","data-signup-form":"true","data-success":"true",children:[(0,a.jsxs)("div",{className:"text-center space-y-5",children:[(0,a.jsx)("div",{className:"mx-auto w-16 h-16 bg-gradient-to-br from-[#FF7043]/20 to-[#FF5722]/20 rounded-full flex items-center justify-center shadow-lg animate-pulse",children:(0,a.jsx)("div",{className:"w-12 h-12 bg-gradient-to-br from-[#FF7043] to-[#FF5722] rounded-full flex items-center justify-center",children:(0,a.jsx)(i.A,{className:"h-7 w-7 text-white"})})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-xl font-bold bg-gradient-to-r from-[#FF7043] to-[#FF5722] bg-clip-text text-transparent",children:"Check your email"}),(0,a.jsx)("p",{className:"text-sm text-gray-600 mt-2",children:"We sent a verification link to"})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-[#FF7043]/5 to-[#FF5722]/5 blur-md"}),(0,a.jsx)("div",{className:"relative bg-white border border-[#FF7043]/20 rounded-xl px-5 py-3",children:(0,a.jsx)("p",{className:"text-sm font-semibold text-gray-900 break-all",children:f})})]}),(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("p",{className:"text-sm text-gray-600",children:"Click the link to verify your email and complete signup"}),"results"===s&&(0,a.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Your design will be waiting for you in your dashboard"})]})]}),(0,a.jsx)(l.$,{onClick:()=>{k(!1),r?.(!1),n&&n(!1),e()},className:"w-full",variant:"outline",type:"button",children:"Done"})]}):(0,a.jsxs)("div",{className:"space-y-4","data-signup-form":"true","data-loading":w?"true":"false",children:[y&&(0,a.jsxs)(g.Fc,{variant:"destructive",className:"text-sm",children:[(0,a.jsx)(h.A,{className:"h-4 w-4"}),(0,a.jsx)(g.TN,{children:y})]}),(0,a.jsxs)(l.$,{type:"button",variant:"outline",className:"w-full",onClick:$,children:[(0,a.jsxs)("svg",{className:"mr-2 h-4 w-4","aria-hidden":"true",focusable:"false","data-prefix":"fab","data-icon":"google",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,a.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,a.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,a.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,a.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,a.jsx)("path",{d:"M1 1h22v22H1z",fill:"none"})]}),"Continue with Google"]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,a.jsx)("span",{className:"w-full border-t"})}),(0,a.jsx)("div",{className:"relative flex justify-center text-xs uppercase",children:(0,a.jsx)("span",{className:"bg-white px-2 text-muted-foreground",children:"Or"})})]}),(0,a.jsxs)("form",{onSubmit:P,className:"space-y-3",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(p.J,{htmlFor:"email",className:"text-sm",children:"Email"}),(0,a.jsx)(u.p,{id:"email",type:"email",placeholder:"[email protected]",value:f,onChange:e=>v(e.target.value),required:!0,className:"h-9 text-sm"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(p.J,{htmlFor:"password",className:"text-sm",children:"Password"}),(0,a.jsx)(u.p,{id:"password",type:"password",value:j,onChange:e=>N(e.target.value),required:!0,minLength:6,className:"h-9 text-sm"})]}),(0,a.jsx)(l.$,{type:"submit",className:"w-full",disabled:w,children:w?"Creating account...":"Sign Up Free"})]}),(0,a.jsxs)("p",{className:"text-xs text-center text-gray-500",children:["By signing up, you agree to our"," ",(0,a.jsx)(o(),{href:"/terms",className:"text-gray-600 hover:text-gray-800 underline",children:"Terms"})," ","&"," ",(0,a.jsx)(o(),{href:"/privacy",className:"text-gray-600 hover:text-gray-800 underline",children:"Privacy Policy"})]}),(0,a.jsx)("div",{className:"text-center pt-2 border-t",children:(0,a.jsxs)("p",{className:"text-sm text-gray-600",children:["Already have an account?"," ",(0,a.jsx)("button",{onClick:()=>{e();let s=U(!0),a=t?`/login?returnUrl=${encodeURIComponent(s)}&preservePrompt=true`:`/login?returnUrl=${encodeURIComponent(s)}`;R.push(a)},className:"text-[#FF7043] hover:underline font-medium",children:"Log in"})]})})]})}},82714:(e,s,t)=>{t.d(s,{J:()=>d});var a=t(95155),r=t(12115),l=t(40968),n=t(74466),i=t(24026);let c=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=r.forwardRef(({className:e,...s},t)=>(0,a.jsx)(l.b,{ref:t,className:(0,i.cn)(c(),e),...s}));d.displayName=l.b.displayName},85339:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(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"}]])},89852:(e,s,t)=>{t.d(s,{p:()=>n});var a=t(95155),r=t(12115),l=t(24026);let n=r.forwardRef(({className:e,type:s,...t},r)=>(0,a.jsx)("input",{type:s,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:r,...t}));n.displayName="Input"}}]);
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.