1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7746],{381:(e,t,a)=>{a.d(t,{A:()=>n});let n=(0,a(19946).A)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},6490:(e,t,a)=>{a.d(t,{Accordion:()=>l,AccordionContent:()=>p,AccordionItem:()=>d,AccordionTrigger:()=>c});var n=a(95155),o=a(12115),i=a(23478),r=a(66474),s=a(24026);let l=i.bL,d=o.forwardRef(({className:e,...t},a)=>(0,n.jsx)(i.q7,{ref:a,className:(0,s.cn)("border-b",e),...t}));d.displayName="AccordionItem";let c=o.forwardRef(({className:e,children:t,...a},o)=>(0,n.jsx)(i.Y9,{className:"flex",children:(0,n.jsxs)(i.l9,{ref:o,className:(0,s.cn)("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...a,children:[t,(0,n.jsx)(r.A,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));c.displayName=i.l9.displayName;let p=o.forwardRef(({className:e,children:t,...a},o)=>(0,n.jsx)(i.UC,{ref:o,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...a,children:(0,n.jsx)("div",{className:(0,s.cn)("pb-4 pt-0",e),children:t})}));p.displayName=i.UC.displayName},10255:(e,t,a)=>{function n(e){let{moduleIds:t}=e;return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return n}}),a(95155),a(47650),a(85744),a(20589)},17828:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,a(64054).createAsyncLocalStorage)()},36645:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=a(88229)._(a(67357));function o(e,t){var a;let o={};"function"==typeof e&&(o.loader=e);let i={...o,...t};return(0,n.default)({...i,modules:null==(a=i.loadableGenerated)?void 0:a.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55028:(e,t,a)=>{a.d(t,{default:()=>o.a});var n=a(36645),o=a.n(n)},62146:(e,t,a)=>{function n(e){let{reason:t,children:a}=e;return a}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return n}}),a(45262)},64054:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var a in t)Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}(t,{bindSnapshot:function(){return r},createAsyncLocalStorage:function(){return i},createSnapshot:function(){return s}});let a=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class n{disable(){throw a}getStore(){}run(){throw a}exit(){throw a}enterWith(){throw a}static bind(e){return e}}let o="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function i(){return o?new o:new n}function r(e){return o?o.bind(e):n.bind(e)}function s(){return o?o.snapshot():function(e,...t){return e(...t)}}},67357:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=a(95155),o=a(12115),i=a(62146);function r(e){return{default:e&&"default"in e?e.default:e}}a(10255);let s={loader:()=>Promise.resolve(r(()=>null)),loading:null,ssr:!0},l=function(e){let t={...s,...e},a=(0,o.lazy)(()=>t.loader().then(r)),l=t.loading;function d(e){let r=l?(0,n.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,s=!t.ssr||!!t.loading,d=s?o.Suspense:o.Fragment,c=t.ssr?(0,n.jsxs)(n.Fragment,{children:[null,(0,n.jsx)(a,{...e})]}):(0,n.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(a,{...e})});return(0,n.jsx)(d,{...s?{fallback:r}:{},children:c})}return d.displayName="LoadableComponent",d}},77051:(e,t,a)=>{a.d(t,{NR:()=>function e(t){return"string"==typeof t?t.includes("402")||t.includes("Payment Required")?"Our AI service has temporarily reached its usage limit. This usually resets within a few hours. Please try again later.":t.includes("Sign up to continue")||t.includes("used all your")||t.includes("credits")||t.includes("sign up for a free account")?t:t.includes("Unable to verify")&&t.includes("device")?"Sign up to continue generating":t.includes("429")||t.includes("rate limit")?"The AI service is experiencing high demand. Please wait a moment and try again.":t.includes("timeout")||t.includes("504")?"The AI service is taking longer than expected. This can happen during peak times. Please try again.":t.includes("503")||t.includes("unavailable")?"The AI service is temporarily down for maintenance. Please try again in a few minutes.":t:t instanceof Error?e(t.message):t?.error?e(t.error):t?.message?e(t.message):"Something went wrong. Please try again."}})},85744:(e,t,a)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=a(17828)},87376:(e,t,a)=>{a.d(t,{SignupSuccessWrapper:()=>i});var n=a(95155);let o=(0,a(55028).default)(()=>a.e(5465).then(a.bind(a,85465)).then(e=>({default:e.SignupSuccessHandler})),{loadableGenerated:{webpack:()=>[85465]},ssr:!1});function i(){return(0,n.jsx)(o,{})}},91788:(e,t,a)=>{a.d(t,{A:()=>n});let n=(0,a(19946).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},94631:(e,t,a)=>{a.d(t,{A:()=>n});let n=(0,a(19946).A)("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]])},97626:(e,t,a)=>{a.d(t,{Eg:()=>l,SY:()=>s,e5:()=>r});var n=a(12115);let o="svgai_pending_prompt";async function i(e,t){try{if(parseInt("2",10)>0)return;let a="svgai_personalized_message",n=localStorage.getItem(a);if(n)try{if(JSON.parse(n).prompt===e)return}catch(e){console.error("Error parsing cached personalized message:",e)}let o=await fetch("/api/personalize-prompt",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:e,imageBase64:t?.split(",")[1]})});if(o.ok){let t=await o.json();localStorage.setItem(a,JSON.stringify({message:t.message,prompt:e,timestamp:Date.now()}))}}catch(e){console.error("Error personalizing prompt:",e)}}function r(e){let t={...e,timestamp:Date.now()};try{localStorage.setItem(o,JSON.stringify(t))}catch{try{let e={...t,uploadedImage:void 0};localStorage.setItem(o,JSON.stringify(e))}catch{}}if(sessionStorage.setItem("pendingPrompt",e.prompt),e.style&&sessionStorage.setItem("pendingStyle",e.style),e.size&&sessionStorage.setItem("pendingSize",e.size),e.aspectRatio&&sessionStorage.setItem("pendingAspectRatio",e.aspectRatio),e.modelType&&sessionStorage.setItem("pendingModelType",e.modelType),e.imagenAspectRatio&&sessionStorage.setItem("pendingImagenAspectRatio",e.imagenAspectRatio),e.nanoAspectRatio&&sessionStorage.setItem("pendingNanoAspectRatio",e.nanoAspectRatio),e.dashboardOutputAspectRatio&&sessionStorage.setItem("pendingDashboardOutputAspectRatio",e.dashboardOutputAspectRatio),e.uploadedImage)try{sessionStorage.setItem("pendingUploadedImage",e.uploadedImage)}catch{}e.uploadedFileName&&sessionStorage.setItem("pendingUploadedFileName",e.uploadedFileName),e.acquisitionFlowId&&sessionStorage.setItem("pendingAcquisitionFlowId",e.acquisitionFlowId),e.prompt&&i(e.prompt,e.uploadedImage)}function s(){localStorage.removeItem(o),localStorage.removeItem("svgai_personalized_message"),sessionStorage.removeItem("pendingPrompt"),sessionStorage.removeItem("pendingStyle"),sessionStorage.removeItem("pendingSize"),sessionStorage.removeItem("pendingAspectRatio"),sessionStorage.removeItem("pendingModelType"),sessionStorage.removeItem("pendingImagenAspectRatio"),sessionStorage.removeItem("pendingNanoAspectRatio"),sessionStorage.removeItem("pendingDashboardOutputAspectRatio"),sessionStorage.removeItem("pendingUploadedImage"),sessionStorage.removeItem("pendingUploadedFileName"),sessionStorage.removeItem("pendingAcquisitionFlowId")}function l(e,t,a,i,r,l,d,c,p,u,g,m,f){let y=(0,n.useCallback)(()=>{s()},[]);return(0,n.useEffect)(()=>{let n=function(){try{let e=localStorage.getItem(o);if(e){let t=JSON.parse(e);if(Date.now()-t.timestamp<864e5)return t;localStorage.removeItem(o)}let t=sessionStorage.getItem("pendingPrompt");if(t)return{prompt:t,style:sessionStorage.getItem("pendingStyle")||void 0,size:sessionStorage.getItem("pendingSize")||void 0,aspectRatio:sessionStorage.getItem("pendingAspectRatio")||void 0,modelType:sessionStorage.getItem("pendingModelType")||void 0,imagenAspectRatio:sessionStorage.getItem("pendingImagenAspectRatio")||void 0,nanoAspectRatio:sessionStorage.getItem("pendingNanoAspectRatio")||void 0,dashboardOutputAspectRatio:sessionStorage.getItem("pendingDashboardOutputAspectRatio")||void 0,uploadedImage:sessionStorage.getItem("pendingUploadedImage")||void 0,uploadedFileName:sessionStorage.getItem("pendingUploadedFileName")||void 0,acquisitionFlowId:sessionStorage.getItem("pendingAcquisitionFlowId")||void 0,timestamp:Date.now()}}catch(e){console.error("Error reading prompt data:",e)}return null}();n&&(n.prompt||n.uploadedImage)&&(e(n.prompt),n.style&&t(n.style),n.size&&a(n.size),n.aspectRatio&&i(n.aspectRatio),n.modelType&&r&&r(n.modelType),n.uploadedImage&&c?(c(n.uploadedImage),l&&l("auto")):n.imagenAspectRatio&&l&&l(n.imagenAspectRatio),n.nanoAspectRatio&&d&&d(n.nanoAspectRatio),n.dashboardOutputAspectRatio&&f&&f("square"===n.dashboardOutputAspectRatio?"square":"default"),n.uploadedFileName&&p&&p(n.uploadedFileName),void 0!==n.wasEnhanced&&g&&g(n.wasEnhanced),n.originalPrompt&&m&&m(n.originalPrompt),u&&u());let s=new URLSearchParams(window.location.search),y=s.get("intent"),h=s.get("preservePrompt");if(y||h){s.delete("intent"),s.delete("preservePrompt");let e=window.location.pathname+(s.toString()?"?"+s.toString():"");window.history.replaceState({},"",e)}},[e,t,a,i,r,l,d,c,p,u,g,m,f]),{clearPromptData:y}}},99474:(e,t,a)=>{a.d(t,{T:()=>r});var n=a(95155),o=a(12115),i=a(24026);let r=o.forwardRef(({className:e,...t},a)=>(0,n.jsx)("textarea",{className:(0,i.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background 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,...t}));r.displayName="Textarea"}}]);
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.