PageSourceSearch

https://www.logoai.com/_next/static/chunks/113k4x07r3u1~.js?dpl=dpl_G7Vzmr7F7D4q9efxMdAnK435cvxA

js logoai.com collected 2026-10-02 03:09:25 UTC 48,253 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,790955,e=>{"use strict";let t=(0,e.i(306927).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["default",0,t])},175442,e=>{"use strict";var t=e.i(790955);e.s(["X",()=>t.default])},598132,e=>{"use strict";var t=e.i(273576);e.s(["usePresence",0,function(e,r=200){let[n,a]=(0,t.useState)(e),[o,i]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{if(e){a(!0);let e=0,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>i(!0))});return()=>{cancelAnimationFrame(t),cancelAnimationFrame(e)}}i(!1);let t=setTimeout(()=>a(!1),r);return()=>clearTimeout(t)},[e,r]),{mounted:n,visible:o}}])},752490,e=>{"use strict";var t=e.i(176350),r=e.i(273576),n=e.i(612612),a=e.i(175442),o=e.i(27471),i=e.i(598132);let s=(0,r.createContext)(null);function l({visible:e,onClose:n,onSuccess:i,redirectTo:s}){return(0,r.useEffect)(()=>{function e(e){"Escape"===e.key&&n()}document.addEventListener("keydown",e);let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=t}},[n]),(0,t.jsxs)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",role:"dialog","aria-modal":"true","aria-labelledby":"auth-dialog-title",children:[(0,t.jsx)("button",{type:"button","aria-label":"Close sign in",onClick:n,className:`absolute inset-0 cursor-default bg-foreground
1/50 backdrop-blur-sm transition-opacity duration-200 ease-out motion-reduce:transition-none ${e?"opacity-100":"opacity-0"}`}),(0,t.jsxs)("div",{className:`relative z-10 w-full max-w-md rounded-2xl border border-border bg-card p-8 shadow-xl transition duration-200 ease-out motion-reduce:transition-none sm:p-10 ${e?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 translate-y-2"}`,children:[(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":"Close",className:"absolute right-4 top-4 inline-flex size-9 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:(0,t.jsx)(a.X,{className:"size-5","aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"mb-8",children:[(0,t.jsx)("h2",{id:"auth-dialog-title",className:"text-2xl font-semibold tracking-tight text-foreground",children:"Sign in to LogoAI"}),(0,t.jsx)("p",{className:"mt-2 text-base text-muted-foreground",children:"Continue with Google or get a one-time code by email."})]}),(0,t.jsx)(o.PasswordlessAuth,{onSuccess:i,redirectTo:s})]})]})}e.s(["AuthDialogProvider",0,function({children:e}){let a=(0,n.useRouter)(),[o,c]=(0,r.useState)(!1),{mounted:u,visible:d}=(0,i.usePresence)(o),f=(0,r.useRef)(void 0),[p,m]=(0,r.useState)("/"),h=(0,r.useCallback)(e=>{f.current=e?.onSuccess,m(e?.redirectTo??`${window.location.pathname}${window.location.search}`),c(!0)},[]),x=(0,r.useCallback)(()=>{f.current=void 0,c(!1)},[]),g=(0,r.useCallback)(()=>{c(!1);let e=f.current;f.current=void 0,a.refresh(),e?.()},[a]);return(0,t.jsxs)(s.Provider,{value:{openSignIn:h,openSignUp:h,close:x},children:[e,u&&(0,t.jsx)(l,{visible:d,onClose:x,onSuccess:g,redirectTo:p})]})},"useAuthDialog",0,function(){let e=(0,r.useContext)(s);if(!e)throw Error("useAuthDialog must be used within an AuthDialogProvider");return e}])},53423,e=>{"use strict";let t=(0,e.i(306927).default)("boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);e.s(["Boxes",0,t],53423)},333268,e=>{"use strict";let t=(0,e.i(306927).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],333268)},295525,e=>{"use strict";let t=(0,e.i(306927).default)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]);e.s(["Palette",0,t],295525)},809180,e=>{"use strict";let t=(0,e.i(306927).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
1],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",0,t],809180)},15127,e=>{"use strict";var t=e.i(176350),r=e.i(647163);function n({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 500 500",className:e,role:"img","aria-label":"LogoAI",children:[(0,t.jsx)("path",{d:"M320.6 383.3H159.5c-6.3 0-12.2 3.5-15.2 9L106 461.6c-3 5.5-1 12.4 4.5 15.4 1.7.9 3.6 1.4 5.5 1.4h205.7c25.2 0 46-19.6 47.5-44.8 1.5-27.5-20.8-50.3-48.6-50.3z",fill:"var(--logo-mark)"}),(0,t.jsx)("path",{d:"M273 28.7c-22.4-13.8-51.9-7.1-65.7 15.3 0 .2-.2.4-.4.4L7.2 405.7c-13.9 22.4-7 51.8 15.3 65.7 7.5 4.7 16.3 7.1 25.1 7 16.6.1 32-8.5 40.5-22.8L287.9 94.3c14-22.2 7.3-51.6-14.9-65.6z",fill:"#ff4072"}),(0,t.jsx)("path",{d:"m493.1 406.1-84.5-152.5c-14-22.1-43.4-29.1-65.5-15.1-22.1 13.6-29.1 42.5-15.9 64.8l84.5 152.5c8.5 14.1 23.8 22.7 40.3 22.7 22.1.1 41.4-15.1 46.7-36.6 2.9-12.6 1-25.2-5.6-35.8zM315.8 137c-26.1 0-47.2 21.1-47.2 47.2s21.1 47.2 47.2 47.2 47.2-21.1 47.2-47.2c.4-26-20.8-47.2-47.2-47.2z",fill:"#ffcd27"})]})}e.s(["Logo",0,function({className:e,showWordmark:a=!0}){return a?(0,t.jsxs)("svg",{viewBox:"-35.78 -330.98 1420.01 454.37",className:(0,r.cn)("h-7 w-auto text-foreground",e),role:"img","aria-label":"LogoAI",children:[(0,t.jsxs)("g",{transform:"translate(0 -281.4) scale(0.5964)",children:[(0,t.jsx)("path",{d:"M320.6 383.3H159.5c-6.3 0-12.2 3.5-15.2 9L106 461.6c-3 5.5-1 12.4 4.5 15.4 1.7.9 3.6 1.4 5.5 1.4h205.7c25.2 0 46-19.6 47.5-44.8 1.5-27.5-20.8-50.3-48.6-50.3z",fill:"var(--logo-mark)"}),(0,t.jsx)("path",{d:"M273 28.7c-22.4-13.8-51.9-7.1-65.7 15.3 0 .2-.2.4-.4.4L7.2 405.7c-13.9 22.4-7 51.8 15.3 65.7 7.5 4.7 16.3 7.1 25.1 7 16.6.1 32-8.5 40.5-22.8L287.9 94.3c14-22.2 7.3-51.6-14.9-65.6z",fill:"#ff4072"}),(0,t.jsx)("path",{d:"m493.1 406.1-84.5-152.5c-14-22.1-43.4-29.1-65.5-15.1-22.1 13.6-29.1 42.5-15.9 64.8l84.5 152.5c8.5 14.1 23.8 22.7 40.3 22.7 22.1.1 41.4-15.1 46.7-36.6 2.9-12.6 1-25.2-5.6-35.8zM315.8 137c-26.1 0-47.2 21.1-47.2 47.2s21.1 47.2 47.2 47.2 47.2-21.1 47.2-47.2c.4-26-20.8-47.2-47.2-47.2z",fill:"#ffcd27"})]}),(0,t.jsxs)("g",{transform:"translate(357.84 0)",children:[(0,t.jsx)("path",{d:"M155.40 0L19.80 0L19.80-210L59.40-210L59.40-36L155.40-36L155.40 0ZM254.40 4.20L254.40 4.20Q232.20 4.20 214.50-4.80Q196.80-13.80 186.60-30.90Q176.40-48 176.40-72L176.40-72L176.40-76.80Q176.40-100.80 186.60-117.90Q196.80-135 214.50-144Q232.20-153 254.40-153L254.40-153Q276.60-153 294.30-144Q312-135 322.20-117.90Q332.40-100.80 332.40-76.80L332.40-76.80L332.40-72Q332.40-48 322.20-30.90Q312-13.80 294.30-4.80Q276.60 4.20 254.40 4.20ZM254.40-29.40L254.40-29.40Q271.80-29.40 283.20-40.65Q294.60-51.90 294.60-72.90L294.60-72.90L294.60-75.90Q294.60-96.90 283.35-108.15Q272.10-119.40 254.40-119.40L254.40-119.40Q237-119.40 225.60-108.15Q214.20-96.90 214.20-75.90L214.20-75.90L214.20-72.90Q214.20-51.90 225.60-40.65Q237-29.40 254.40-29.40ZM360-73.80L360-73.80L360-78.60Q360-102 369.30-118.65Q378.60-135.30 394.05-144.15Q409.50-153 427.80-153L427.80-153Q448.20-153 458.70-145.80Q469.20-138.60 474-130.80L474-130.80L479.40-130.80L479.40-148.80L516.60-148.80L516.60 26.40Q516.60 41.70 507.60 50.85Q498.60 60 483.60 60L483.60 60L384 60L384 27L470.40 27Q478.80 27 478.80 18L478.80 18L478.80-20.70L473.40-20.70Q470.40-15.90 465-10.95Q459.60-6 450.60-2.70Q441.60 0.60 427.80 0.60L427.80 0.60Q409.50 0.60 394.05-8.25Q378.60-17.10 369.30-33.75Q360-50.40 360-73.80ZM438.60-32.40L438.60-32.40Q456-32.40 467.70-43.50Q479.40-54.60 479.40-74.70L479.40-74.70L479.40-77.70Q479.40-98.10 467.85-109.05Q456.30-120 438.60-120L438.60-120Q421.20-120 409.50-109.05Q397.80-98.10 397.80-77.70L397.80-77.70L397.80-74.70Q397.80-54.60 409.50-43.50Q421.20-32.40 438.60-32.40ZM629.40 4.20L629.40 4.20Q607.20 4.20 589.50-4.80Q571.80-13.80 561.60-30.90Q551.40-48 551.40-72L551.40-72L551.40-76.80Q551.40-100.80 561.60-117.90Q571.80-135 589.50-144Q607.20-153 629.40-153L629.40-153Q651.60-153 669.30-144Q687-135 697.20-117.90Q707.40-100.80 707.40-76.80L707.40-76.80L707.40-72Q707.40-48 697.20-30.90Q687-13.80 669.30-4.80Q651.60 4.20 629.40 4.20ZM629.40-29.40L629.40-29.40Q646.80-29.40 658.20-40.65Q669.60-51.90 669.60-72.90L669.60-72.90L669.60-75.90Q669.60-96.90 658.35-108.15Q647.
110-119.40 629.40-119.40L629.40-119.40Q612-119.40 600.60-108.15Q589.20-96.90 589.20-75.90L589.20-75.90L589.20-72.90Q589.20-51.90 600.60-40.65Q612-29.40 629.40-29.40Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M767.40 0L726.60 0L781.80-210L850.80-210L906 0L865.20 0L853.80-46.20L778.80-46.20L767.40 0ZM813.60-185.10L788.10-82.80L844.50-82.80L819-185.10L813.60-185.10ZM970.80 0L931.20 0L931.20-210L970.80-210L970.80 0Z",fill:"var(--primary)"})]})]}):(0,t.jsx)(n,{className:(0,r.cn)("size-5",e)})},"LogoMark",0,n])},35305,(e,t,r)=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},561227,(e,t,r)=>{"use strict";var n=e.r(35305);function a(){}function o(){}o.resetWarningCache=a,t.exports=function(){function e(e,t,r,a,o,i){if(i!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return r.PropTypes=r,r}},304153,(e,t,r)=>{t.exports=e.r(561227)()},442545,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={callServer:function(){return o.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(298566),i=e.r(199356),s=e.r(430436)},445892,e=>{"use strict";var t,r=e.i(176350),n=e.i(273576),a=e.i(696572),o=e.i(53423),i=e.i(320414),s=e.i(333268),l=e.i(784339),c=e.i(295525),u=e.i(809180),d=e.i(175442),f=e.i(15127),p=e.i(598132);let m=[{id:"credits-200",priceInCents:1e3,credits:200,currency:"usd"},{id:"credits-500",priceInCents:2e3,credits:500,currency:"usd"},{id:"credits-1500",priceInCents:5e3,credits:1500,currency:"usd"},{id:"credits-3500",priceInCents:1e4,credits:3500,currency:"usd"}];function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.i(690954);var x="dahlia",g="https://js.stripe.com",y="".concat(g,"/").concat(x,"/stripe.js"),b=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,v=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,j=function(){for(var e=document.querySelectorAll('script[src^="'.concat(g,'"]')),t=0;t<e.length;t++){var r,n=e[t];if(r=n.src,b.test(r)||v.test(r))return n}return null},k=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(y).concat(t);var n=document.head||document.body;if(!n)throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return n.appendChild(r),r},C=function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"9.12.0",startTime:t})},w=null,S=null,N=null,L=function(e,t,r){if(null===e)return null;var n,a=t[0];if("string"!=typeof a)throw Error("Expected publishable key to be of type string, got type ".concat(h(a)," instead."));var o=a.match(/^pk_test/),i=3===(n=e.version)?"v3":n;o&&i!==x&&console.warn("Stripe.js@".concat(i," was loaded on the page, but @stripe/stripe-js@").concat("9.12.0"," expected Stripe.js@").concat(x,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var s=e.apply(void 0,t);return C(s,r),s},E=!1,P=function(){return t||(t=(null!==w?w:(w=new Promise(function(e,t){if("u"<typeof window||"u"<typeof document)return void e(null);if(window.Stripe,window.Stripe)return void e(window.Stripe);try{var r,n=j();n?n&&null!==N&&null!==S&&(n.removeEventListener("load",N),n.removeEventListener("error",S),null==(r=n.parentNode)||r.removeChild(n),n=k(null)):n=k(null),N=function(){window.Stripe?e(window.Stripe):t(Error("Stripe.js not available"))},S=function(e){t(Error("Failed to load Stripe.js",{cause:e}))},n.addEventListener("load",N),n.addEventListener("error",S)}catch(e){t(e);return}})).catch(function(e){return w=null,Promise.reject(e)})).catch(function(e){return t=null,Promise.reject(e)}))};Promise.resolve().then(function(){return P()}).catch(function(e){E||console.warn(e)});var Q=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];E=!0;var n=Date.now();return P().then(function(e){return L(e,t,n)})},M=e.i(304153);function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function O(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?I(Object(r),!0).forEach(function(t){O(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t);else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw a}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var D=function(e,t,r){var a=!!r,o=n.default.useRef(r);n.default.useEffect(function(){o.current=r},[r]),n.default.useEffect(function(){if(!a||!e)return function(){};var r=function(){if(o.current)return o.current.apply(o,arguments)};return e.on(t,r),function(){e.off(t,r)}},[a,t,e,o])},U=function(e){var t=n.default.useRef(e);return n.default.useEffect(function(){t.current=e},[e]),t.current},F=function(e){return null!==e&&"object"===R(e)},$="[object Object]",B=function e(t,r){if(!F(t)||!F(r))return t===r;var n=Array.isArray(t);if(n!==Array.isArray(r))return!1;var a=Object.prototype.toString.call(t)===$;if(a!==(Object.prototype.toString.call(r)===$))return!1;if(!a&&!n)return t===r;var o=Object.keys(t),i=Object.keys(r);if(o.length!==i.length)return!1;for(var s={},l=0;l<o.length;l+=1)s[o[l]]=!0;for(var c=0;c<i.length;c+=1)s[i[c]]=!0;var u=Object.keys(s);return u.length===o.length&&u.every(function(n){return e(t[n],r[n])})},_="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_;if(null===e||F(e)&&"function"==typeof e.elements&&"function"==typeof e.createToken&&"function"==typeof e.createPaymentMethod&&"function"==typeof e.confirmCardPayment)return e;throw Error(t)},Y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_;if(F(e)&&"function"==typeof e.then)return{tag:"async",stripePromise:Promise.resolve(e).then(function(e){return q(e,t)})};var r=q(e,t);return null===r?{tag:"empty"}:{tag:"sync",stripe:r}},Z=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"6.8.0"}),e.registerAppInfo({name:"react-stripe-js",version:"6.8.0",url:"https://stripe.com/docs/stripe-js/react"}))},H=n.default.createContext(null);H.displayName="ElementsContext";var W=function(e,t){if(!e)throw Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e};M.default.any,M.default.object,M.default.func.isRequired;var X=n.default.createContext(null);X.displayName="CheckoutContext";var V=function(e){var t=n.default.useContext(X),r=n.default.useContext(H);if(!t)return W(r,e);if(!r)return t;throw Error("You cannot wrap the part of your app that ".concat(e," in both a checkout provider and <Elements> provider."))},G=["mode"],K=function(e,t,r){var a="".concat(e.charAt(0).toUpperCase()+e.slice(1),"Element"),o=t?function(e){V("mounts <".concat(a,">"));var t=e.id,r=e.className;return n.default.createElement("div",{id:t,className:r})}:function(t){var r,o=t.id,i=t.className,s=t.options,l=void 0===s?{}:s,c=t.onBlur,u=t.onFocus,d=t.onReady,f=t.onChange,p=t.onEscape,m=t.onClick,h=t.onLoadError,x=t.onLoaderStart,g=t.onNetworksChange,y=t.onConfirm,b=t.onCancel,v=t.onShippingAddressChange,j=t.onShippingRateChange,k=t.onSavedPaymentMethodRemove,C=t.onSavedPaymentMethodUpdate,w=t.onAvailablePaymentMethodsChange,S=V("mounts <".concat(a,">")),N="elements"in S?S.elements:null,L="checkoutState"in S?S.checkoutState:null,E=(null==L?void 0:L.type)==="success"||(null==L?void 0:L.type)==="loading"?L.sdk:null,P=T(n.default.useState(null),2),Q=P[0],M=P[1],A=n.default.useRef(null),I=n.default.useRef(null);D(Q,"blur",c),D(Q,"focus",u),D(Q,"escape",p),D(Q,"click",m),D(Q,"loaderror",h),D(Q,"loaderstart",x),D(Q,"networksch
1ange",g),D(Q,"confirm",y),D(Q,"cancel",b),D(Q,"shippingaddresschange",v),D(Q,"shippingratechange",j),D(Q,"savedpaymentmethodremove",k),D(Q,"savedpaymentmethodupdate",C),D(Q,"availablepaymentmethodschange",w),D(Q,"change",f),d&&(r="expressCheckout"===e?d:function(){d(Q)}),D(Q,"ready",r),n.default.useLayoutEffect(function(){if(null===A.current&&null!==I.current&&(N||E)){var t=null;if(E)switch(e){case"paymentForm":t=E.createForm(l);break;case"payment":t=E.createPaymentElement(l);break;case"address":if("mode"in l){var r=l.mode,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(l,G);if("shipping"===r)t=E.createShippingAddressElement(n);else if("billing"===r)t=E.createBillingAddressElement(n);else throw Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":t=E.createExpressCheckoutElement(l);break;case"currencySelector":t=E.createCurrencySelectorElement();break;case"taxId":t=E.createTaxIdElement(l);break;case"contactDetails":t=E.createContactDetailsElement();break;case"terms":t=E.createTermsElement(l);break;default:throw Error("<".concat(a,"> is not supported inside a checkout provider. Use an <Elements> provider instead."))}else N&&(t=N.create(e,l));A.current=t,M(t),t&&t.mount(I.current)}},[N,E,l]);var R=U(l);return n.default.useEffect(function(){if(A.current){var e,t,r,n=(e=l,t=R,r=["paymentRequest"],F(e)?Object.keys(e).reduce(function(n,a){var o=!F(t)||!B(e[a],t[a]);return r.includes(a)?(o&&console.warn("Unsupported prop change: options.".concat(a," is not a mutable property.")),n):o?z(z({},n||{}),{},O({},a,e[a])):n},null):null);n&&"update"in A.current&&A.current.update(n)}},[l,R]),n.default.useLayoutEffect(function(){return function(){if(A.current&&"function"==typeof A.current.destroy)try{A.current.destroy(),A.current=null}catch(e){}}},[]),n.default.createElement("div",{id:o,className:i,ref:I})};return o.propTypes={id:M.default.string,className:M.default.string,onChange:M.default.func,onBlur:M.default.func,onFocus:M.default.func,onReady:M.default.func,onEscape:M.default.func,onClick:M.default.func,onLoadError:M.default.func,onLoaderStart:M.default.func,onNetworksChange:M.default.func,onConfirm:M.default.func,onCancel:M.default.func,onShippingAddressChange:M.default.func,onShippingRateChange:M.default.func,onSavedPaymentMethodRemove:M.default.func,onSavedPaymentMethodUpdate:M.default.func,onAvailablePaymentMethodsChange:M.default.func,options:M.default.object},o.displayName=a,o.__elementType=e,o},J="u"<typeof window,ee=n.default.createContext(null);ee.displayName="EmbeddedCheckoutProviderContext";var et=function(){var e=n.default.useContext(ee);if(!e)throw Error("<EmbeddedCheckout> must be used within <EmbeddedCheckoutProvider>");return e},er=function(e){var t=e.stripe,r=e.options,a=e.children,o=n.default.useMemo(function(){return Y(t,"Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")},[t]),i=n.default.useRef(null),s=n.default.useRef(null),l=T(n.default.useState({embeddedCheckout:null}),2),c=l[0],u=l[1];n.default.useEffect(function(){if(!s.current&&!i.current){var e=function(e){s.current||i.current||(s.current=e,i.current=s.current.createEmbeddedCheckoutPage(r).then(function(e){u({embeddedCheckout:e})}))};"async"===o.tag&&!s.current&&(r.clientSecret||r.fetchClientSecret)?o.stripePromise.then(function(t){t&&e(t)}):"sync"===o.tag&&!s.current&&(r.clientSecret||r.fetchClientSecret)&&e(o.stripe)}},[o,r,c,s]),n.default.useEffect(function(){return function(){c.embeddedCheckout?(i.current=null,c.embeddedCheckout.destroy()):i.current&&i.current.then(function(){i.current=null,c.embeddedCheckout&&c.embeddedCheckout.destroy()})}},[c.embeddedCheckout]),n.default.useEffect(function(){Z(s)},[s]);var d=U(t);n.default.useEffect(function(){null!==d&&d!==t&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.")},[d,t]);var f=U(r);return n.default.useEffect(function(){if(null!=f){if(null==r)return void console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them.");void 0===r.clientSecret&&void 0===r.fetchClientSecret&&console.warn("Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`."),null!=f.clientSecret&&r.clientSecret!==f.clientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the client secret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=f.fetchClientSecret&&r.fetchClientSecret!==f.fetchClientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change fetchClientSecret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=f.onComplete&&r.onComplete!==f.onComplete&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it."),null!=f.onShippingDetailsChange&&r.onShippingDetailsChange!==f.onShippingDetailsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it."),null!=f.onLineItemsChange&&r.onLineItemsChange!==f.onLineItemsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onLineItemsChange option after setting it.")}},[f,r]),n.default.createElement(ee.Provider,{value:c},a)},en=J?function(e){var t=e.id,r=e.className;return et(),n.default.createElement("div",{id:t,className:r})}:function(e){var t=e.id,r=e.className,a=et().embeddedCheckout,o=n.default.useRef(!1),i=n.default.useRef(null);return n.default.useLayoutEffect(function(){return!o.current&&a&&null!==i.current&&(a.mount(i.current),o.current=!0),function(){if(o.current&&a)try{a.unmount(),o.current=!1}catch(e){}}},[a]),n.default.createElement("div",{ref:i,id:t,className:r})};K("auBankAccount",J),K("card",J),K("cardNumber",J),K("cardExpiry",J),K("cardCvc",J),K("currencySelector",J),K("iban",J),K("payment",J),K("expressCheckout",J),K("paymentRequestButton",J),K("linkAuthentication",J),K("contactDetails",J),K("address",J),K("shippingAddress",J),K("paymentMethodMessaging",J),K("taxId",J),K("issuingCardNumberDis
1play",J),K("issuingCardCvcDisplay",J),K("issuingCardExpiryDisplay",J),K("issuingCardPinDisplay",J),K("issuingCardCopyButton",J),K("terms",J);var ea=e.i(442545);let eo=(0,ea.createServerReference)("402f0c036faaea723ff1bc18886aedec8ef0c7298a",ea.callServer,void 0,ea.findSourceMapURL,"createProCheckoutSession"),ei=(0,ea.createServerReference)("404e338cc8faf17969b49cde8fbc1474e77dbad755",ea.callServer,void 0,ea.findSourceMapURL,"createTrialCheckoutSession");var es=e.i(947560);async function el(e){if(e)try{await fetch("/api/stripe/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:e})})}catch{}try{await (0,es.refreshCredits)()}catch{}}let ec=Q("pk_live_5HI95bTuD5jtIiRXq1IZ6PlQ");function eu({plan:e="pro",onSuccess:t}){let a=(0,n.useRef)(null),o=(0,n.useCallback)(async()=>{let t=window.location.href,{clientSecret:r,sessionId:n,error:o}="trial"===e?await ei(t):await eo(t);if(!r)throw Error(o??"Could not start checkout.");return a.current=n,r},[e]),i=(0,n.useCallback)(async()=>{await el(a.current),t?.()},[t]);return(0,r.jsx)("div",{className:"overflow-hidden rounded-lg",children:(0,r.jsx)(er,{stripe:ec,options:{fetchClientSecret:o,onComplete:i},children:(0,r.jsx)(en,{})})})}let ed=(0,ea.createServerReference)("60a85c3a22f4b4a9cc58d2bc3f12a17d6eea8b7abb",ea.callServer,void 0,ea.findSourceMapURL,"createCreditPackCheckoutSession"),ef=Q("pk_live_5HI95bTuD5jtIiRXq1IZ6PlQ");function ep({packId:e,onSuccess:t}){let a=(0,n.useRef)(null),o=(0,n.useCallback)(async()=>{let t=window.location.href,{clientSecret:r,sessionId:n,error:o}=await ed(e,t);if(!r)throw Error(o??"Could not start checkout.");return a.current=n,r},[e]),i=(0,n.useCallback)(async()=>{await el(a.current),t?.()},[t]);return(0,r.jsx)("div",{className:"overflow-hidden rounded-lg",children:(0,r.jsx)(er,{stripe:ef,options:{fetchClientSecret:o,onComplete:i},children:(0,r.jsx)(en,{})})})}let em=(0,n.createContext)(null);function eh({visible:e,forcePlans:t,highlights:a,onClose:o,onPaid:i}){let[s,c]=(0,n.useState)(null),[u,f]=(0,n.useState)(null),[p,m]=(0,n.use
1State)(!1),[h,x]=(0,n.useState)(!1),g=!p&&!1===s&&!u&&!!(a&&a.length)&&!h,y=(0,n.useCallback)(()=>{m(!0),i()},[i]);return(0,n.useEffect)(()=>{function e(e){"Escape"===e.key&&o()}document.addEventListener("keydown",e);let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=t}},[o]),(0,n.useEffect)(()=>{let e=!0;return(async()=>{try{let t=await fetch("/api/credits"),r=t.ok?await t.json():null;e&&c(!!r?.pro)}catch{e&&c(!1)}})(),()=>{e=!1}},[]),(0,r.jsxs)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",role:"dialog","aria-modal":"true","aria-labelledby":"upgrade-dialog-title",children:[(0,r.jsx)("button",{type:"button","aria-label":"Close upgrade",onClick:o,className:`absolute inset-0 cursor-default bg-foreground/50 backdrop-blur-sm transition-opacity duration-200 ease-out motion-reduce:transition-none ${e?"opacity-100":"opacity-0"}`}),(0,r.jsxs)("div",{className:`relative z-10 max-h-[90vh] w-full overflow-y-auto rounded-2xl border border-border bg-card p-8 shadow-xl transition duration-200 ease-out motion-reduce:transition-none ${!p&&!u&&!g&&(!1===s||t&&null!==s)?"max-w-3xl":"max-w-md"} ${e?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 translate-y-2"}`,children:[(0,r.jsx)("button",{type:"button",onClick:o,"aria-label":"Close",className:"absolute right-4 top-4 inline-flex size-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:(0,r.jsx)(d.X,{className:"size-4","aria-hidden":"true"})}),p?(0,r.jsx)(eg,{onClose:o}):null===s?(0,r.jsx)("div",{className:"flex min-h-[16rem] items-center justify-center",children:(0,r.jsx)(l.Loader2,{className:"size-6 animate-spin text-muted-foreground","aria-hidden":"true"})}):g?(0,r.jsx)(ev,{highlights:a??[],onContinue:()=>x(!0)}):u?(0,r.jsx)(ex,{checkout:u,onBack:()=>f(null),onSuccess:y}):s&&!t?(0,r.jsx)(ey,{onSelect:e=>f({kind:"credits",packId:e})}):(0,r.jsx)(ej,{subscribed:!!s,onTrial:()=>f({kind:"trial"}),onUpgrade:()=>f({kind:"pro"})})]})]})}function ex({checkout:e,onBack:t,onSuccess:n}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("button",{type:"button",onClick:t,className:"mb-4 inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground",children:[(0,r.jsx)(a.ArrowLeft,{className:"size-4","aria-hidden":"true"}),"Back"]}),(0,r.jsx)("h2",{id:"upgrade-dialog-title",className:"mb-4 text-lg font-semibold tracking-tight text-foreground",children:"pro"===e.kind?"Upgrade to Pro":"trial"===e.kind?"Start your 7-day trial":"Buy credits"}),"pro"===e.kind?(0,r.jsx)(eu,{onSuccess:n}):"trial"===e.kind?(0,r.jsx)(eu,{plan:"trial",onSuccess:n}):(0,r.jsx)(ep,{packId:e.packId,onSuccess:n})]})}function eg({onClose:e}){return(0,r.jsxs)("div",{className:"flex flex-col items-center text-center",children:[(0,r.jsx)("span",{className:"flex size-14 items-center justify-center rounded-full bg-accent/10",children:(0,r.jsx)(i.Check,{className:"size-7 text-accent","aria-hidden":"true"})}),(0,r.jsx)("h2",{id:"upgrade-dialog-title",className:"mt-6 text-3xl font-bold tracking-tight text-foreground text-balance",children:"Payment successful"}),(0,r.jsx)("p",{className:"mt-3 max-w-xs text-sm leading-relaxed text-muted-foreground text-pretty",children:"Your credits have been added to your account. We're picking up right where you left off."}),(0,r.jsx)("button",{type:"button",onClick:e,className:"mt-6 inline-flex w-full items-center justify-center gap-2 rounded-full bg-primary px-6 py-3.5 text-sm font-semibold text-primary-foreground transition-opacity hover:opacity-90",children:"Continue"})]})}function ey({onSelect:e}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col items-center text-center",children:[(0,r.jsx)("span",{className:"flex size-14 items-center justify-center rounded-xl bg-accent/10",children:(0,r.jsx)(u.Sparkles,{className:"size-7 text-accent","aria-hidden":"true"})}),(0,r.jsx)("h2",{id:"upgrade-dialog-title",className:"mt-6 text-3xl font-bold tracking-tight text-foreground text-balance",children:"Buy more credits"}),(0,r.jsx)("p",{className:"mt-3 max-w-xs text-sm leading-relaxed text-muted-foreground text-pretty",children:"Your AI credits will NEVER expire"})]}),(0,r.jsx)("div",{className:"mt-6 flex flex-col gap-3",children:m.map(t=>{let n,a;return(0,r.jsxs)("button",{type:"button",onClick:()=>e(t.id),className:"group flex items-center justify-between gap-4 roun
1ded-xl border border-border bg-muted/40 px-5 py-4 text-left transition-colors hover:border-accent hover:bg-muted",children:[(0,r.jsxs)("span",{className:"flex items-center gap-2.5",children:[(0,r.jsx)(u.Sparkles,{className:"size-5 text-accent","aria-hidden":"true"}),(0,r.jsxs)("span",{className:"flex flex-col",children:[(0,r.jsxs)("span",{className:"text-xl font-bold tracking-tight text-foreground",children:[t.credits.toLocaleString(),(0,r.jsx)("span",{className:"ml-1.5 text-sm font-medium text-muted-foreground",children:"credits"})]}),(0,r.jsxs)("span",{className:"text-xs font-medium text-muted-foreground",children:[(n=(t.priceInCents/100/t.credits).toFixed(3).replace(/0+$/,"").replace(/\.$/,""),`$${n}`)," / credit"]})]})]}),(0,r.jsx)("span",{className:"shrink-0 rounded-full bg-primary px-4 py-1.5 text-sm font-semibold text-primary-foreground transition-opacity group-hover:opacity-90",children:(a=t.priceInCents/100,`$${Number.isInteger(a)?a:a.toFixed(2)}`)})]},t.id)})})]})}let eb=[{label:"Branding Suite",icon:o.Boxes,items:["Logo Maker","AI Brand Kit","Logo Animations","Brand Videos"]},{label:"Design Studio",icon:c.Palette,items:["AI Image & Video","Batch Generations","20+ Top AI Models"]}];function ev({highlights:e,onContinue:t}){return(0,r.jsxs)("div",{className:"flex flex-col items-center text-center",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("span",{className:"flex size-11 items-center justify-center rounded-xl bg-primary/10",children:(0,r.jsx)(u.Sparkles,{className:"size-6 text-primary","aria-hidden":"true"})}),(0,r.jsx)("h2",{id:"upgrade-dialog-title",className:"text-3xl font-bold tracking-tight text-foreground text-balance",children:"Unlock with Pro"})]}),(0,r.jsx)("ul",{className:"mt-6 flex flex-col items-center gap-2.5",children:e.map(e=>(0,r.jsxs)("li",{className:"flex items-center justify-center gap-2 text-sm text-foreground",children:[(0,r.jsx)(i.Check,{className:"size-4 shrink-0 text-primary","aria-hidden":"true"}),e]},e))}),(0,r.jsx)("button",{type:"button",onClick:t,className:"mt-6 inline-flex w-full items-center justify-center gap-2 rounded-full bg-primary px-6 py-3.5 text-sm font-semibold text-primary-foreground transition-opacity hover:opacity-90",children:"See plans"})]})}function ej({subscribed:e=!1,hideHeader:t=!1,onTrial:n,onUpgrade:a}){return(0,r.jsxs)(r.Fragment,{children:[!t&&(0,r.jsxs)("div",{className:"flex flex-col items-center text-center",children:[(0,r.jsxs)("h2",{id:"upgrade-dialog-title",className:"flex items-center gap-2 text-3xl font-bold tracking-tight text-foreground text-balance",children:["Get",(0,r.jsxs)("span",{className:"inline-flex items-baseline gap-1.5",children:[(0,r.jsx)(f.LogoMark,{className:"size-7 translate-y-1"}),"LogoAI"]}),"Pro"]}),(0,r.jsx)("p",{className:"mt-3 text-base leading-relaxed text-muted-foreground",children:"Try for 7 days - cancel anytime."})]}),(0,r.jsxs)("div",{className:"mt-8 grid gap-4 sm:grid-cols-2",children:[(0,r.jsx)(ek,{name:"7-Day Trial",price:"$10",credits:"200 AI Credits",ctaLabel:"Start Trial",onCta:n,disabled:e,muted:!0}),(0,r.jsx)(ek,{name:"Pro",price:"$20",priceSuffix:"/mo",credits:"500 AI Credits/mo",ctaLabel:"Upgrade",onCta:a,disabled:e})]})]})}function ek({name:e,price:t,priceSuffix:n,credits:a,ctaLabel:o,onCta:l,muted:c=!1,disabled:d=!1}){return(0,r.jsxs)("div",{className:`flex flex-col rounded-xl border border-border p-6 ${c?"bg-muted/60":"bg-card"}`,children:[(0,r.jsx)("span",{className:"text-lg font-semibold text-foreground",children:e}),(0,r.jsxs)("span",{className:"mt-1 flex items-baseline gap-1",children:[(0,r.jsx)("span",{className:"text-3xl font-medium tracking-tight text-foreground",children:t}),n?(0,r.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:n}):null]}),(0,r.jsxs)("div",{className:"mt-5 flex flex-1 flex-col gap-4",children:[eb.map(e=>(0,r.jsxs)("div",{className:"flex gap-3",children:[(0,r.jsx)(e.icon,{className:"mt-0.5 size-5 shrink-0 text-foreground","aria-hidden":"true"}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-sm font-medium text-foreground",children:e.label}),(0,r.jsx)("ul",{className:"flex flex-col gap-1 text-sm text-muted-foreground",children:e.items.map(e=>(0,r.jsxs)("li",{className:"flex items-center gap-1.5",children:[(0,r.jsx)(i.Check,{className:"size-3.5 shrink-0 text-primary","aria-hidden":"true"}),e]},e))})]})]},e.label)),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(s.Download,{className:"size-5 shrink-0 text-foreground","aria-hidden":"true"}),(0,r.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Unrestricted Downloads"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(u.Sparkles,{className:"size-5 shrink-0 text-primary","aria-hidden":"true"}),(0,r.jsx)("span",{className:"text-sm font-medium text-foreground",children:a})]})]}),(0,r.jsx)("button",{type:"button",onClick:l,disabled:d,className:`mt-6 inline-flex w-full items-center justify-center gap-2 rounded-full border px-6 py-3.5 text-sm font-semibold transition-colors ${d?"cursor-not-allowed border-border bg-muted text-muted-foreground":"border-border bg-card text-primary hover:border-primary hover:bg-primary hover:text-primary-foreground"}`,children:o})]})}
1e.s(["PricingContent",0,function(){let[e,t]=(0,n.useState)(null),[a,o]=(0,n.useState)(null),[i,s]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=!0;return fetch("/api/credits").then(e=>e.ok?e.json():null).then(r=>{e&&t(!!r?.pro)}).catch(()=>{e&&t(!1)}),()=>{e=!1}},[]),(0,r.jsx)("div",{className:`mx-auto w-full ${a||i?"max-w-md":"max-w-3xl"}`,children:i?(0,r.jsx)(eg,{onClose:()=>{s(!1),o(null),t(!0)}}):a?(0,r.jsx)(ex,{checkout:a,onBack:()=>o(null),onSuccess:()=>s(!0)}):(0,r.jsx)(ej,{hideHeader:!0,subscribed:!1!==e,onTrial:()=>o({kind:"trial"}),onUpgrade:()=>o({kind:"pro"})})})},"UpgradeDialogProvider",0,function({children:e}){let[t,a]=(0,n.useState)(!1),[o,i]=(0,n.useState)(!1),[s,l]=(0,n.useState)(null),{mounted:c,visible:u}=(0,p.usePresence)(t),d=(0,n.useRef)(void 0),f=(0,n.useCallback)(e=>{d.current=e?.onSuccess,i(e?.view==="plans"),l(e?.highlights&&e.highlights.length?e.highlights:null),a(!0)},[]),m=(0,n.useCallback)(()=>{d.current=void 0,a(!1)},[]),h=(0,n.useCallback)(()=>{let e=d.current;d.current=void 0,e?.()},[]);return(0,r.jsxs)(em.Provider,{value:{openUpgrade:f,close:m},children:[e,c&&(0,r.jsx)(eh,{visible:u,forcePlans:o,highlights:s,onClose:m,onPaid:h})]})},"useUpgradeDialog",0,function(){let e=(0,n.useContext)(em);if(!e)throw Error("useUpgradeDialog must be used within an UpgradeDialogProvider");return e}],445892)},374920,e=>{"use strict";var t=e.i(176350),r=e.i(273576),n=e.i(175442);let a=(0,e.i(306927).default)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]),o=/\.(png|jpe?g|webp|gif|pdf|txt)$/i;function i(e){return e.length>3?"Attach up to 3 files.":e.some(e=>!o.test(e.name))?"Use PNG, JPG, WebP, GIF, PDF, or TXT files.":e.some(e=>0===e.size)?"Empty files cannot be attached.":e.reduce((e,t)=>e+t.size,0)>3145728?"Attachments must total 3 MB or less.":null}var s=e.i(672136),l=e.i(598132);let c=(0,r.createContext)(null);function u({visible:e,onClose:o}){let{data:l}=s.authClient.useSession(),[c,d]=(0,r.useState)(""),[f,p]=(0,r.useState)(""),[m,h]=(0,r.useState)(""),[x,g]=(0,r.useState)(""),[y,b]=(0,r.useState)([]),[v,j]=(0,r.useState)("idle"),[k,C]=(0,r.useState)(null);async function w(e){if(e.preventDefault(),"sending"!==v){j("sending"),C(null);try{let e=i(y);if(e)throw Error(e);let t=new FormData;for(let[e,r]of Object.entries({name:c,email:f,subject:m,message:x}))t.append(e,r);y.forEach(e=>t.append("attachments",e));let r=await fetch("/api/support",{method:"POST",body:t});if(!r.ok){let e=await r.json().catch(()=>null);throw Error(e?.error||"Something went wrong.")}j("sent")}catch(e){j("error"),C(e instanceof Error?e.message:"Something went wrong.")}}}return(0,r.useEffect)(()=>{let e=l?.user;e&&(d(t=>t||e.name||""),p(t=>t||e.email||""))},[l]),(0,r.useEffect)(()=>{function e(e){"Escape"===e.key&&o()}document.addEventListener("keydown",e);let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=t}},[o]),(0,t.jsxs)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4",role:"dialog","aria-modal":"true","aria-labelledby":"help-dialog-title",children:[(0,t.jsx)("button",{type:"button","aria-label":"Close help",onClick:o,className:`absolute inset-0 cursor-default bg-foreground
1/50 backdrop-blur-sm transition-opacity duration-200 ease-out motion-reduce:transition-none ${e?"opacity-100":"opacity-0"}`}),(0,t.jsxs)("div",{className:`relative z-10 max-h-[90dvh] overflow-y-auto w-full max-w-lg rounded-xl border border-border bg-card p-6 shadow-xl transition duration-200 ease-out motion-reduce:transition-none sm:p-8 ${e?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 translate-y-2"}`,children:[(0,t.jsx)("button",{type:"button",onClick:o,"aria-label":"Close",className:"absolute right-3 top-3 inline-flex size-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:(0,t.jsx)(n.X,{className:"size-5","aria-hidden":"true"})}),"sent"===v?(0,t.jsxs)("div",{className:"py-6 text-center",children:[(0,t.jsx)("h2",{id:"help-dialog-title",className:"text-2xl font-semibold tracking-tight text-foreground text-balance",children:"Message sent!"}),(0,t.jsxs)("p",{className:"mt-2 text-sm leading-relaxed text-muted-foreground",children:["Thanks for reaching out — we'll get back to you at"," ",(0,t.jsx)("span",{className:"font-medium text-foreground",children:f})," as soon as we can."]}),(0,t.jsx)("button",{type:"button",onClick:o,className:"mt-6 inline-flex items-center justify-center rounded-lg bg-primary px-5 py-2.5 text-sm font-semibold text-primary-foreground transition-opacity hover:opacity-90",children:"Done"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("h2",{id:"help-dialog-title",className:"text-2xl font-semibold tracking-tight text-foreground text-balance",children:"Need Help?"}),(0,t.jsxs)("p",{className:"mt-1 text-sm leading-relaxed text-muted-foreground text-pretty",children:["You can email us at"," ",(0,t.jsx)("a",{href:"mailto:[email protected]",className:"font-medium text-accent hover:underline",children:"[email protected]"})," ","or fill out the form below:"]})]}),(0,t.jsxs)("form",{onSubmit:w,className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("label",{htmlFor:"help-name",className:"sr-only",children:"Name"}),(0,t.jsx)("input",{id:"help-name",type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"Name",autoComplete:"name",required:!0,className:"rounded-lg border border-border bg-background px-4 py-2.5 text-sm text-foreground outline-none transition-colors placeholder:text-muted-foreground focus-visible:border-accent focus-visible:ring-2 focus-visible:ring-accent/30"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("label",{htmlFor:"help-email",className:"sr-only",children:"Email"}),(0,t.jsx)("input",{id:"help-email",type:"email",value:f,onChange:e=>p(e.target.value),placeholder:"Email",autoComplete:"email",required:!0,className:"rounded-lg border border-border bg-background px-4 py-2.5 text-sm text-foreground outline-none transition-colors placeholder:text-muted-foreground focus-visible:border-accent focus-visible:ring-2 focus-visible:ring-accent/30"})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("label",{htmlFor:"help-subject",className:"sr-only",children:"Subject"}),(0,t.jsx)("input",{id:"help-subject",type:"text",value:m,onChange:e=>h(e.target.value),placeholder:"Subject",className:"rounded-lg border border-border bg-background px-4 py-2.5 text-sm text-foreground outline-none transition-colors placeholder:text-muted-foreground focus-visible:border-accent focus-visible:ring-2 focus-visible:ring-accent/30"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("label",{htmlFor:"help-message",className:"sr-only",children:"Message"}),(0,t.jsx)("textarea",{id:"help-message",value:x,onChange:e=>g(e.target.value),placeholder:"Message",required:!0,rows:5,className:"resize-y rounded-lg border border-border bg-background px-4 py-3 text-sm leading-relaxed text-foreground outline-none transition-colors placeholder:text-muted-foreground focus-visible:border-accent focus-visible:ring-2 focus-visible:ring-accent/30"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("label",{className:"inline-flex w-fit cursor-pointer items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground",children:[(0,t.jsx)(a,{className:"size-4","aria-hidden":"true"}),"Add attachments",(0,t.jsx)("input",{type:"file",multiple:!0,accept:".png,.jpg,.jpeg,.webp,.gif,.pdf,.txt",className:"sr-only",disabled:"sending"===v,onChange:e=>{let t=[...y,...Array.from(e.target.files??[])],r=i(t);
1if(e.target.value="",r){C(r),j("error");return}b(t),C(null),j("idle")}})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Images, PDF, or TXT · Up to 3 files, 3 MB total"}),y.map((e,r)=>(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 rounded-md bg-muted px-3 py-2 text-xs",children:[(0,t.jsx)("span",{className:"truncate",children:e.name}),(0,t.jsx)("button",{type:"button","aria-label":`Remove ${e.name}`,disabled:"sending"===v,onClick:()=>b(e=>e.filter((e,t)=>t!==r)),className:"shrink-0 rounded p-1 hover:bg-background",children:(0,t.jsx)(n.X,{className:"size-4","aria-hidden":"true"})})]},`${e.name}-${r}`))]}),"error"===v&&k&&(0,t.jsx)("p",{className:"text-sm text-destructive",role:"alert",children:k}),(0,t.jsx)("div",{children:(0,t.jsx)("button",{type:"submit",disabled:"sending"===v,className:"inline-flex items-center justify-center rounded-lg bg-primary px-6 py-2.5 text-sm font-semibold text-primary-foreground transition-opacity hover:opacity-90 disabled:opacity-60",children:"sending"===v?"Sending…":"Send"})})]})]})]})]})}e.s(["HelpDialogProvider",0,function({children:e}){let[n,a]=(0,r.useState)(!1),{mounted:o,visible:i}=(0,l.usePresence)(n),s=(0,r.useCallback)(()=>a(!0),[]),d=(0,r.useCallback)(()=>a(!1),[]);return(0,t.jsxs)(c.Provider,{value:{open:s,close:d},children:[e,o&&(0,t.jsx)(u,{visible:i,onClose:d})]})},"useHelpDialog",0,function(){let e=(0,r.useContext)(c);if(!e)throw Error("useHelpDialog must be used within a HelpDialogProvider");return e}],374920)}]);

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.