PageSourceSearch

https://aiedit.com/assets/PricingPanel-pC-xXEjE.js

js aiedit.com collected 2026-10-02 00:28:25 UTC 17,225 bytes, 1 lines download raw bytes

1import{u as F,M as H,a0 as T,av as z,j as e,N as R,ax as V}from"./index-QRiPE925.js";import{r as a}from"./vendor-react-C2vrxknb.js";const Y={basic:[{text:"Up to ~400 image generations/month"},{text:"Up to ~44 video generations/month"},{text:"Up to ~133 music generations/month"},{text:"Access to all models"},{text:"1 concurrent job"},{text:"Standard queue priority"},{text:"Support"}],standard:[{text:"Up to ~1000 image generations/month"},{text:"Up to ~111 video generations/month"},{text:"Up to ~333 music generations/month"},{text:"Access to all models"},{text:"1 concurrent job"},{text:"Higher queue priority"},{text:"Priority support"}],pro:[{text:"Up to ~2200 image generations/month"},{text:"Up to ~244 video generations/month"},{text:"Up to ~733 music generations/month"},{text:"Access to all models"},{text:"3 concurrent jobs"},{text:"Highest queue priority"},{text:"Priority support"}],ultra:[{text:"Up to ~7,500 image generations/month"},{text:"Up to ~833 video generations/month"},{text:"Up to ~2,500 music generations/month"},{text:"Access to all models"},{text:"5 concurrent jobs"},{text:"Highest queue priority"},{text:"Dedicated support"},{text:"Best value per credit",badge:"BEST"}]},O={basic:"For beginners first exploring AI creation",standard:"For enthusiasts creating occasionally",pro:"The smart choice for creators working daily",ultra:"For experts scaling production to the max"},Q=[{question:"What payment methods do you accept?",answer:"We process all payments securely through Stripe. You can pay with all major credit and debit cards. We do not store your complete card details on our servers."},{question:"Can I cancel my subscription?",answer:"Yes, you can cancel your subscription at any time through the Stripe billing portal accessible from your account page. Your subscription will remain active until the end of the current billing period."},{question:"What happens to my unused credits?",answer:"Monthly credits reset upon plan renewal each month. Unused monthly credits are non-refundable and non-transferable to the following months."},{question:"What are top-up credits?",answer:"Top-up credits are additional credits you can purchase at any time if you run out. They do not expire and carry over between months. An active subscription is required to purchase and use top-up credits."}],_=({question:n,answer:x,isOpen:o,onToggle:m})=>e.jsxs("div",{className:"border-b border-white/[0.06] last:border-b-0",children:[e.jsxs("button",{onClick:m,className:"w-full flex items-center justify-between py-4 sm:py-5 text-left gap-4 group",children:[e.jsx("span",{className:"text-sm sm:text-[15px] font-medium text-white/90 group-hover:text-white transition-colors",children:n}),e.jsx("svg",{className:`w-4 h-4 text-white/40 flex-shrink-0 transition-transform duration-200 ${o?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),e.jsx("div",{className:`overflow-hidden transition-all duration-200 ${o?"max-h-40 pb-4 sm:pb-5":"max-h-0"}`,children:e.jsx("p",{className:"text-sm text-white/50 leading-relaxed",children:x})})]}),J=({onModeChange:n,onSignIn:x})=>{const{isAuthenticated:o,isLoading:m}=F(),p=H(),b=Math.ceil(p.length/2),[h,C]=a.useState([]),[i,U]=a.useState(null),[A,j]=a.useState(!0),[w,v]=a.useState(null),[N,l]=a.useState(null),[c,E]=a.useState(()=>localStorage.getItem("preferredCurrency")||"usd"),[y,M]=a.useState(null);a.useEffect(()=>{m||!o||T().then(t=>{t.success&&t.subscription&&t.subscription.status==="active"&&!t.subscription.cancelAtPeriodEnd&&n&&n("account")}).catch(()=>{})},[o,m]),a.useEffect(()=>{B()},[]),a.useEffect(()=>{if(i){const t=setTimeout(()=>{const s=document.getElementById(`pricing-plan-${i.name}`);if(s){const r=s.closest(".snap-x");if(r){const g=s.offsetLeft-r.offsetLeft-(r.clientWidth-s.clientWidth)/2;r.scrollTo({left:g,behavior:"smooth"})}else s.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}},100);return()=>clearTimeout(t)}},[i]);const B=async()=>{try{j(!0),l(null);const t=await z();if(t.success){if(C(t.plans||[]),t.plans&&t.plans.length>0){const s=t.plans.find(r=>r.name==="pro");U(s||t.plans[1])}}else l(t.error||"Failed to load plans")}catch(t){console.error("Error fetching plans:",t),l("Failed to load subscription plans")}finally{j(!1)}},k=t=>{E(t),localStorage.setItem("preferredCurrency",t)},S=t=>c==="usd"&&t.priceUsd!=null?t.priceUsd:t.price,L=()=>
1c==="usd"?"$":"€",q=async t=>{const s=t||i;if(s){if(!o){x&&x();return}try{v(s.name),l(null);const r=await V(s.name,c);r.success&&r.checkoutUrl?window.location.href=r.checkoutUrl:l(r.error||"Failed to create checkout session")}catch(r){console.error("Error creating checkout:",r),l("Failed to create checkout session")}finally{v(null)}}},u=t=>t==="pro",f=t=>t==="ultra",I=t=>u(t.name)?"border-green-500/50 bg-gradient-to-b from-green-950/30 via-transparent to-transparent":f(t.name)?"border-pink-500/50 bg-gradient-to-b from-pink-950/30 via-transparent to-transparent":"border-border-default hover:border-border-emphasis",W=t=>u(t.name)?"bg-green-500 hover:bg-green-600 text-black font-semibold":f(t.name)?"bg-gradient-to-r from-pink-500 to-rose-500 hover:from-pink-600 hover:to-rose-600 text-white font-semibold":"bg-white/10 hover:bg-white/15 text-white border border-white/20",P=(t,s=!1)=>{const r=Y[t.name]||[],g=O[t.name]||"";return e.jsxs("div",{id:`pricing-plan-${t.name}`,className:`relative flex flex-col rounded-xl border transition-all overflow-visible ${s?"flex-shrink-0 w-[80vw] max-w-[300px] snap-center":""} ${I(t)}`,children:[u(t.name)&&e.jsx("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 z-10",children:e.jsxs("span",{className:"bg-green-500 text-black text-[11px] font-bold px-3 py-1 rounded-full whitespace-nowrap inline-flex items-center gap-1",children:[e.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:e.jsx("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})}),"MOST POPULAR"]})}),f(t.name)&&e.jsx("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 z-10",children:e.jsxs("span",{className:"bg-gradient-to-r from-pink-500 to-rose-500 text-white text-[11px] font-bold px-3 py-1 rounded-full whitespace-nowrap inline-flex items-center gap-1",children:[e.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:e.jsx("path",{fillRule:"evenodd",d:"M5 2a2 2 0 00-2 2v14l3.5-2 3.5 2 3.5-2 3.5 2V4a2 2 0 00-2-2H5zm4.707 3.707a1 1 0 00-1.414-1.414l-3 3a1 1 0 000 1.414l3 3a1 1 0 001.414-1.414L8.414 9H10a3 3 0 013 3v1a1 1 0 102 0v-1a5 5 0 00-5-5H8.414l1.293-1.293z",clipRule:"evenodd"})}),"BEST VALUE"]})}),e.jsxs("div",{className:"p-5 flex flex-col flex-1",children:[e.jsx("h3",{className:"text-lg font-bold text-white",children:t.displayName}),e.jsx("p",{className:"text-xs text-gray-500 mt-0.5 mb-4",children:g}),e.jsxs("div",{className:"mb-0.5",children:[e.jsxs("span",{className:"text-3xl font-bold text-white",children:[L(),S(t)]}),e.jsx("span",{className:"text-sm text-gray-400",children:"/month"})]}),e.jsxs("p",{className:"text-[11px] text-gray-600 mb-5",children:["Billed monthly. Renew at ",L(),S(t)," next month"]}),e.jsx("button",{onClick:d=>{d.stopPropagation(),q(t)},disabled:!!w,className:`w-full py-2.5 rounded-lg text-sm transition-all disabled:opacity-50 disabled:cursor-not-allowed mb-5 ${W(t)}`,children:w===t.name?e.jsxs("span",{className:"flex items-center justify-center gap-2",children:[e.jsx("span",{className:"animate-spin rounded-full h-4 w-4 border-2 border-current/30 border-t-current"}),"Processing..."]}):"Select Plan"}),e.jsxs("div",{className:"flex items-center justify-center gap-1.5 -mt-3 mb-4",children:[e.jsx("svg",{className:"w-3 h-3 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})}),e.jsx("span",{className:"text-[10px] text-gray-500",children:"Secure checkout · Powered by Stripe"})]}),e.jsxs("div",{className:"mb-1.5 flex items-start gap-1.5",children:[e.jsx("span",{className:"text-green-400 mt-0.5 text-xs",children:"✨"}),e.jsxs("span",{className:"text-sm text-white font-medium",children:[t.credits.toLocaleStr
1ing()," credits per month"]})]}),e.jsx("div",{className:"border-t border-white/[0.06] my-3"}),e.jsx("ul",{className:"space-y-2.5 flex-1",children:r.map((d,$)=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("svg",{className:"w-4 h-4 text-gray-600 flex-shrink-0 mt-0.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}),e.jsx("span",{className:"text-[13px] text-gray-400",children:d.text}),d.badge&&e.jsx("span",{className:"ml-auto flex-shrink-0 text-[10px] font-bold px-1.5 py-0.5 rounded bg-pink-500/20 text-pink-400",children:d.badge})]},$))})]})]},t.name)};return e.jsx("div",{className:"flex-1 overflow-y-auto flex flex-col",children:e.jsxs("div",{className:"w-full max-w-[1400px] mx-auto px-4 sm:px-6 md:flex-1 md:flex md:flex-col md:justify-center py-4 sm:py-10",children:[e.jsxs("div",{className:"text-center mb-6 sm:mb-16",children:[e.jsx("h1",{className:"text-2xl sm:text-3xl md:text-4xl font-bold text-white",children:"Choose Your Plan"}),e.jsx("p",{className:"text-sm sm:text-base text-gray-500 mt-2",children:"Cancel anytime · No hidden fees · Instant access"}),e.jsx("div",{className:"flex items-center justify-center mt-5",children:e.jsxs("div",{className:"inline-flex items-center bg-white/[0.08] border border-white/[0.08] rounded-full p-1 gap-0.5",children:[e.jsx("button",{onClick:()=>k("usd"),className:`px-4 py-1.5 rounded-full text-sm font-medium transition-all ${c==="usd"?"bg-white/15 text-white shadow-sm":"text-gray-500 hover:text-gray-300"}`,children:"$ USD"}),e.jsx("button",{onClick:()=>k("eur"),className:`px-4 py-1.5 rounded-full text-sm font-medium transition-all ${c==="eur"?"bg-white/15 text-white shadow-sm":"text-gray-500 hover:text-gray-300"}`,children:"€ EUR"})]})}),e.jsxs("div",{className:"relative mt-7 sm:mt-10",children:[e.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-4/5 h-[200%] pointer-events-none",style:{background:"radial-gradient(ellipse at center, rgba(139, 92, 246, 0.06) 0%, transparent 60%)"}}),e.jsxs("div",{className:"relative z-10",children:[e.jsx("div",{className:"md:hidden flex overflow-x-auto gap-2 pb-2 -mx-4 px-4 scrollbar-hide",style:{maskImage:"linear-gradient(to right, black, black calc(100% - 1.5rem), transparent)",WebkitMaskImage:"linear-gradient(to right, black, black calc(100% - 1.5rem), transparent)"},children:p.map(t=>e.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full border border-white/[0.1] bg-white/[0.03] flex-shrink-0",children:[e.jsx("div",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:t.color,boxShadow:`0 0 6px ${t.color}60`}}),e.jsx("span",{className:"text-xs font-medium text-white/80 whitespace-nowrap",children:t.name}),t.isNew&&e.jsx("span",{className:"text-[9px] font-bold px-1 py-0.5 rounded-full bg-pink-500/20 text-pink-400 uppercase",children:"New"})]},t.name))}),e.jsxs("div",{className:"hidden md:flex flex-col items-center gap-2.5 max-w-3xl mx-auto",children:[e.jsx("div",{className:"flex flex-wrap justify-center gap-2.5",children:p.slice(0,b).map(t=>e.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 rounded-full border border-white/[0.1] bg-white/[0.03]",children:[e.jsx("div",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{background:t.color,boxShadow:`0 0 8px ${t.color}60`}}),e.jsx("span",{className:"text-sm font-medium text-white/80 whitespace-nowrap",children:t.name}),t.isNew&&e.jsx("span",{className:"text-[10px] font-bold px-1.5 py-0.5 rounded-full bg-pink-500/20 text-pink-400 uppercase tracking-wide",children:"New"})]},t.name))}),e.jsx("div",{className:"flex flex-wrap justify-center gap-2.5",children:p.slice(b).map(t=>e.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 rounded-full border border-white/[0.1] bg-white/[0.03]",children:[e.jsx("div",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{background:t.color,boxShadow:`0 0 8px ${t.color}60`}}),e.jsx("span",{className:"text-sm font-medium text-white/80 whitespace-nowrap",children:t.name}),t.isNew&&e.jsx("span",{className:"text-[10px] font-bold px-1.5 py-0.5 rounded-full bg-pink-500/20 text-pink-400 uppercase tracking-wide",children:"New"})]},t.name))})]}),e.jsxs("div",{className:"flex flex-col items-center gap-3 mt-4 sm:mt-5",children:[e.jsxs("span",{className:"text-xs sm:text-[13px] text-white/40",children:[e.jsx("span",{className:"text-white/70 font-semibold",children:"100+"})," models available and growing"]}),e.jsxs(R,{to:"/ai-models",onClick:()=>n&&n("ai-models"),className:"group inline-flex items-center gap-2 px-5 py-2.5 rounded-full bg-gradient-to-r from-purple-500/15 to-pink-500/15 hover:from-purple-500/25 hover:to-pink-500/25 border border-purple-500/30 hover:border-purple-400/50 transition-all duration-200",children:[e.jsx("svg",{className:"w-4 h-4 text-purple-300",fill:"currentColor",viewBox:"0 0 20 20",children:e.jsx("path",{d:"M5 2a1 1 0 011 1v1h1a1 1 0 010 2H6v1a1 1 0 01-2 0V6H3a1 1 0 010-2h1V3a1 1 0 011-1zm0 10a1 1 0 011 1v1h1a1 1 0 110 2H6v1a1 1 0 11-2 0v-1H3a1 1 0 110-2h1v-1a1 1 0 011-1zM12 2a1 1 0 01.967.744L14.146 7.2 17.5 9.134a1 1 0 010 1.732l-3.354 1.935-1.18 4.455a1 1 0 01-1.933 0L9.854 12.8 6.5 10.866a1 1 0 010-1.732l3.354-1.935 1.18-4.455A1 1 0 0112 2z"})}),e.jsx("span",{className:"text-sm font-medium text-purple-200 group-hover:text-white transition-colors",children:"Explore All Models"}),e.jsx("svg",{className:"w-4 h-4 text-purple-300 transition-transform duration-200 group-hover:translate-x-0.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 7l5 5m0 0l-5 5m5-5H6"})})]})]})]})]})]}),A?e.jsx("div",{className:"flex items-center justify-center py-12",children:e.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-2 border-purple-400/30 border-t-purple-400"})}):N?e.jsx("div",{className:"bg-red-500/10 border border-red-500/20 rounded-lg p-4 mb-4",children:e.jsx("p",{className:"text-red-400 text-sm",children:N})}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"md:hidden mb-6",children:[e.jsx("div",{className:"flex overflow-x-auto gap-3 pb-4 pt-4 snap-x snap-mandatory scrollbar-hide -mx-4 px-4",children:h.map(t=>P(t,!0))}),e.jsx("div",{className:"flex justify-center gap-2 mt-2",children:h.map(t=>e.jsx("div",{className:`h-1.5 rounded-full transition-all ${i?.name===t.name?"w-6 bg-purple-500":"w-1.5 bg-hover-bg"}`},t.name))})]}
1),e.jsx("div",{className:"hidden md:grid md:grid-cols-4 gap-5",children:h.map(t=>P(t,!1))}),e.jsx("div",{className:"mt-8 sm:mt-10",children:e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4 sm:gap-8 text-sm text-white/60",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("svg",{className:"w-4 h-4 text-white/50",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})}),e.jsx("span",{children:"Secure payments by Stripe"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("svg",{className:"w-4 h-4 text-white/50",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}),e.jsx("span",{children:"Cancel anytime"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("svg",{className:"w-4 h-4 text-white/50",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}),e.jsx("span",{children:"No hidden fees"})]})]})})]}),e.jsxs("div",{className:"mt-12 sm:mt-20 max-w-2xl mx-auto pb-8 sm:pb-12",children:[e.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-white text-center mb-8",children:"Frequently Asked Questions"}),e.jsx("div",{className:"rounded-xl border border-white/[0.08] bg-white/[0.02] px-5 sm:px-6",children:Q.map((t,s)=>e.jsx(_,{question:t.question,answer:t.answer,isOpen:y===s,onToggle:()=>M(y===s?null:s)},s))}),e.jsx("div",{className:"mt-6 text-center",children:e.jsxs("p",{className:"text-sm text-white/50",children:["Still have questions?"," ",e.jsx("a",{href:"mailto:[email protected]",className:"text-purple-400 hover:text-purple-300 transition-colors font-medium",children:"Contact our team"})]})})]})]})})};export{J as default};

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.