PageSourceSearch

https://luxestory.ai/assets/Pricing-BSyyxag_.js

js luxestory.ai collected 2026-10-05 15:09:03 UTC 11,460 bytes, 1 lines download raw bytes

1import{r as o,j as e}from"./vendor-react-D2W485Rb.js";import{d as L,L as l}from"./vendor-router-CEAOXGPO.js";import{x as d}from"./vendor-libs-CQJKkTF6.js";import{u as I,B as g,C as U,b as $,c as z,w as D,d as q,n as B,x as G,s as C,y as Y,z as V,A as H}from"./index-BlCEfOSB.js";import{A as K,T as M,f as W,a as X,b as J,c as P,i as Q,d as Z}from"./stripe-Dzyo9nNT.js";import"./vendor-react-dom-DjQMrAE9.js";import"./vendor-query-y2_NDASq.js";import"./vendor-supabase-C7Q2vE7J.js";import"./vendor-analytics-D2VwOjdt.js";import"./vendor-ui-xLJCELSv.js";import"./vendor-stripe-3M3MKDZ5.js";const ee={pro_monthly:"pro_monthly",pro:"pro_annual",collector_monthly:"collector_monthly",collector:"collector_annual",curator_monthly:"curator_monthly",curator:"curator_annual",conservator_monthly:"conservator_monthly",conservator:"conservator_annual",founding_circle:"lifetime"},me=()=>{const{user:c}=I(),[S]=L(),[j,u]=o.useState(null),[N,m]=o.useState(""),[h,v]=o.useState("free"),[x,T]=o.useState(null),[y,_]=o.useState(null),[f,A]=o.useState(!1),[w,k]=o.useState(!1),b=S.get("canceled")==="true";o.useEffect(()=>{m("")},[]),o.useEffect(()=>{const t=async()=>{const r=await J();T(r)},s=async()=>{if(!c)return;const{data:r}=await C.from("user_subscriptions").select("tier").eq("user_id",c.id).maybeSingle();r!=null&&r.tier&&v(r.tier)},a=async()=>{const r=B();if(A(r),r){const n=await G();_(n)}};t(),a(),c&&s()},[c]);const E=async t=>{var a;if(!c){window.location.assign("/signup");return}if(t==="free")return;const s=t;u(s),m("");try{if(f){let r;if(y){const n=ee[s],i=(a=y.availablePackages)==null?void 0:a.find(p=>p.identifier===n);i&&(r=await Y(i))}if(!r)try{r=await V(s)}catch(n){console.error("Direct product purchase failed:",n);const i=n instanceof Error?n.message:"Purchase unavailable";d.error(i),m(i),u(null);return}r.success?(await C.from("user_subscriptions").upsert({user_id:c.id,tier:s},{onConflict:"user_id"}),v(s),u(null),window.location.assign("/checkout-success?source=ios")):r.cancelled&&u(null)}else await Z(s)}catch(r){const n=r instanceof Error?r.message:"Couldn't start checkout";m(n),d.error(n),u(null)}},F=async()=>{var t;if(f){m(""),k(!0);try{const s=await H(),a=(t=s==null?void 0:s.entitlements)==null?void 0:t.active,r=a?Object.keys(a):[];if(r.length>0)d.success(`Purchases restored! Active: ${r.join(", ")}`),setTimeout(()=>window.location.reload(),1500);else{const n=(s==null?void 0:s.nonSubscriptionTransactions)||[];n.length>0?(d.success(`Purchases restored! Found ${n.length} purchase(s).`),setTimeout(()=>window.location.reload(),1500)):d.info("No active purchases found to restore.")}}catch(s){console.error("Restore error:",s),d.error(s instanceof Error?s.message:"Couldn't restore purchases")}finally{k(!1)}}},R=t=>t===h?"Current Plan":t==="free"?"Get Started":t==="founding_circle"?"Join the Circle":t==="pro"||P(t)?"Go Pro":"Upgrade",O=P(h);return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("nav",{className:"border-b border-border bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 sticky top-0 z-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-6 sm:px-8 lg:px-10 py-4 flex justify-between items-center",children:[e.jsx(l,{to:"/",className:"flex items-center gap-2",children:e.jsx("img",{src:"/logo.svg",alt:"LUXESTORY",className:"h-7 sm:h-[23px] dark:invert"})}),e.jsx("div",{className:"flex items-center gap-3",children:c?e.jsx(g,{asChild:!0,size:"sm",children:e.jsx(l,{to:"/dashboard",children:"Dashboard"})}):e.jsxs(e.Fragment,{children:[e.jsx(g,{asChild:!0,variant:"ghost",size:"sm",children:e.jsx(l,{to:"/login",children:"Log In"})}),e.jsx(g,{asChild:!0,size:"sm",children:e.jsx(l,{to:"/signup",children:"Get Started"})})]})})]})}),e.jsxs("section",{className:"max-w-7xl mx-auto px-6 sm:px-8 lg:px-10 py-16 text-center",children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground tracking-widest uppercase mb-4",children:"Membership"}),e.jsx("p",{className:"text-sm text-muted-foreground max-w-2xl mx-auto mb-6",children:"Choose your tier. Only 25 Founding Circle seats will ever exist."}),x!==null&&x>0&&e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-foreground text-background rounded-full text-sm font-semibold uppercase tracking-widest",children:[e.jsx("span",{className:"w-2 h-2 bg-green-400 rounded-full animate-pulse"}),x," of 25 Founding Circle spots remaining"]}),x===0&&e.jsx("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-muted text-muted-foreground rounded-full text-sm font-semibold uppercase tracking-widest",children:"Founding Circle sold out"})]}),(N||b)&&e.jsx("div",{className:"max-w-7xl mx-auto px-6 sm:px-8 lg:px-10 mb-8",children:e.jsx("div",{role:"alert",className:`rounded-md border px-4 py-3 text-sm ${b?"border-muted bg-muted/50 text-muted-foreground":"border-destructive/40 bg-destructive/10 text-destructive"}`,children:b?"Checkout was canceled. Come back when you're ready.":N})}),e.jsxs("section",{className:"max-w-6xl mx-auto px-6 sm:px-8 lg:px-10 pb-20",children:[e.jsx("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:K.map(t=>{const s=M[t],a=t===h||t==="pro"&&O,r=s.highlight||t==="founding_circle",n=Q(t),i=t==="founding_circle"&&x===0;return e.jsxs(U,{className:`relative flex flex-col ${r?"border-2 border-foreground shadow-xl md:scale-105 md:z-10":"border-border"} ${a?"ring-2 ring-green-500":""}`,children:[s.badge&&e.jsx("div",{className:`absolute -top-3 left-1/2 -translate-x-1/2 px-3 py-1 rounded-full text-xs font-bold uppercase tracking-widest ${s.badge==="VIP"?"bg-foreground text-background":s.badge==="PRO"?"bg-purple-600 dar
1k:bg-purple-500 text-white":s.badge==="STARTER"?"bg-blue-600 dark:bg-blue-500 text-white":"bg-muted text-foreground"}`,children:s.badge}),a&&e.jsx("div",{className:"absolute -top-3 right-4 bg-green-500 text-white px-3 py-1 rounded-full text-xs font-bold uppercase tracking-widest",children:"Current"}),e.jsxs($,{className:"text-center pb-4 pt-8",children:[e.jsx(z,{className:"text-xl uppercase tracking-widest mb-2",children:s.name}),e.jsxs("div",{className:"mb-2",children:[e.jsx("span",{className:"text-4xl font-bold",children:W(s.price)}),e.jsx("span",{className:"text-muted-foreground text-sm ml-1",children:X(s.period)})]}),e.jsx(D,{className:"text-sm",children:s.description})]}),e.jsxs(q,{className:"flex-1 flex flex-col",children:[e.jsx("ul",{className:"space-y-2 flex-1 mb-6",children:s.features.map(p=>e.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[e.jsx("span",{className:`mt-0.5 ${n?"text-foreground":"text-muted-foreground"}`,children:"·"}),e.jsx("span",{className:n?"text-foreground":"text-muted-foreground",children:p})]},p))}),e.jsx(g,{onClick:()=>E(t),disabled:a||t==="free"||j!==null||i,variant:r?"default":"outline",className:`w-full uppercase tracking-widest text-sm font-semibold ${r?"bg-foreground hover:bg-foreground
1/90":""}`,size:"lg",children:j===t?"Loading...":i?"Sold Out":R(t)})]})]},t)})}),e.jsx("p",{className:"text-center text-sm text-muted-foreground mt-6",children:"All paid plans include AI identification, background removal, OCR, and PDF exports. Volume upgrades available after signup."})]}),e.jsx("section",{className:"bg-muted/30 py-16",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-6 sm:px-8 lg:px-10",children:[e.jsx("h2",{className:"text-2xl font-bold text-center mb-8 uppercase tracking-widest",children:"Founding Circle"}),e.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[e.jsxs("div",{className:"bg-background rounded-lg p-6 border border-border",children:[e.jsx("h3",{className:"font-semibold mb-2 uppercase tracking-widest text-sm",children:"Lifetime Access"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"One payment. Unlimited use. All future features included."})]}),e.jsxs("div",{className:"bg-background rounded-lg p-6 border border-border",children:[e.jsx("h3",{className:"font-semibold mb-2 uppercase tracking-widest text-sm",children:"Direct Access"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Shape the product. Priority feature requests. First to see what's next."})]}),e.jsxs("div",{className:"bg-background rounded-lg p-6 border border-border",children:[e.jsx("h3",{className:"font-semibold mb-2 uppercase tracking-widest text-sm",children:"Numbered Badge"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"#1-25. Permanently visible. Closes when filled."})]}),e.jsxs("div",{className:"bg-background rounded-lg p-6 border border-border",children:[e.jsx("h3",{className:"font-semibold mb-2 uppercase tracking-widest text-sm",children:"No Limits"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Unlimited exports. Unlimited storage. No caps."})]})]})]})}),e.jsx("section",{className:"py-16",children:e.jsxs("div",{className:"max-w-3xl mx-auto px-6 sm:px-8 lg:px-10",children:[e.jsx("h2",{className:"text-2xl font-bold text-center mb-8 uppercase tracking-widest",children:"Frequently Asked Questions"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold mb-2",children:"What is an AI identification?"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Any AI-powered operation: item identification, background removal, receipt OCR, or PDF generation. Typical usage: 50-100 per year."})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold mb-2",children:"When does the Founding Circle close?"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"After 25 members. Permanently closed once filled."})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold mb-2",children:"Can I change tiers?"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Upgrade anytime. Prorated billing."})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold mb-2",children:"Refund policy?"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"30-day guarantee. No questions."})]})]})]})}),e.jsx("section",{className:"py-8 bg-muted/20",children:e.jsxs("div",{className:"max-w-3xl mx-auto px-6 sm:px-8 lg:px-10 text-center space-y-4",children:[e.jsxs("div",{className:"text-sm text-muted-foreground space-y-2",children:[e.jsx("p",{children:"Subscriptions automatically renew unless auto-renew is turned off at least 24 hours before the end of the current period. Your account will be charged for renewal within 24 hours prior to the end of the current period. You can manage and cancel your subscriptions by going to your account settings on the App Store after purchase."}),e.jsx("p",{children:"Founding Circle is a one-time purchase with lifetime access."})]}),e.jsxs("div",{className:"flex justify-center gap-4 text-sm",children:[e.jsx(l,{to:"/terms",className:"text-muted-foreground hover:text-foreground underline",children:"Terms of Service"}),e.jsx(l,{to:"/privacy",className:"text-muted-foreground hover:text-foreground underline",children:"Privacy Policy"})]}),f&&e.jsx("button",{onClick:F,disabled:w,className:"text-sm text-muted-foreground underline hover:text-foreground disabled:opacity-50",children:w?"Restoring...":"Restore Purchases"})]})}),e.jsx("footer",{className:"border-t border-border py-8",children:e.jsx("div",{className:"max-w-7xl mx-auto px-6 sm:px-8 lg:px-10 text-center text-sm text-muted-foreground",children:e.jsx("p",{children:"© 2026 LUXESTORY. All rights reserved."})})})]})};export{me 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.