1import{j as e}from"./vendor-motion-yVys5Rcg.js";import{e as g,r as u,L as f}from"./vendor-react-C4z-T9s6.js";import{h as j,R as r,c as y,C as p,B as x,i as N,j as d,s as b,k as w,m as v,L as k,S as C,e as S,n as h}from"./index-BuNqgmNM.js";import{A as P,a as $,b as L,c as A}from"./accordion-BvW7u0QI.js";import{C as _}from"./credit-card-Euir0yit.js";import{S as B}from"./shield-check-Bu7FWr39.js";import"./vendor-pdf-Cg7uvKn4.js";import"./vendor-query-C_EqVzZE.js";import"./vendor-charts-BiysU4YY.js";import"./vendor-supabase-GlODc1dO.js";import"./index-C8CBWFml.js";import"./chevron-down-C4OuVZ3M.js";const R=[{key:"basic",name:"Basic Care",price:100,period:"per month",benefits:["Monthly parent visits","Health check summary","24/7 concierge line","Cancel anytime"]},{key:"6m",name:"Six Month Plan",price:550,period:"every 6 months",benefits:["Everything in Basic","Save $50 vs monthly","Priority scheduling","Quarterly report"],highlight:!0},{key:"annual",name:"Annual Plan",price:1e3,period:"per year",benefits:["Everything in Basic","Save $200 vs monthly","Family concierge","Annual health review"]}],E=()=>{const{user:l}=j(),m=g(),[o,n]=u.useState(null),s=async(a,i)=>{if(!l){d.info("Please sign in to continue."),m("/login",{state:{from:{pathname:"/pricing"}}});return}n(a);try{const{data:t,error:c}=await b.functions.invoke("create-whop-checkout",{body:{plan:a,price:i,user_id:l.id,email:l.email}});if(c)throw c;if(t!=null&&t.error){d.error(t.error,{description:t.whop_error?String(t.whop_error).slice(0,180):void 0});return}if(t!=null&&t.dev_mode&&d.info("Development mode â Whop not configured. Using mock URL."),t!=null&&t.checkout_url)window.location.href=t.checkout_url;else throw new Error("No checkout URL returned")}catch(t){d.error((t==null?void 0:t.message)||"Could not start checkout")}finally{n(null)}};return e.jsxs("section",{className:"container pb-16",children:[e.jsxs(r,{className:"text-center mb-10",children:[e.jsxs("p",{className:"text-xs uppercase tracking-[0.25em] text-gold mb-3 flex items-center justify-center gap-2",children:[e.jsx(y,{className:"h-3.5 w-3.5"})," Whop Secure Checkout"]}),e.jsx("h2",{className:"font-display text-4xl md:text-5xl",children:"Global card payments"}),e.jsx("p",{className:"text-cream/70 mt-3 max-w-xl mx-auto",children:"Recurring subscriptions, annual plans and one-time custom payments â powered by Whop."})]}),e.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:[R.map((a,i)=>e.jsx(r,{delay:i*.08,children:e.jsxs("div",{className:`luxe-card p-7 h-full flex flex-col relative ${a.highlight?"border-gold/50 shadow-elegant":""}`,children:[a.highlight&&e.jsx("span",{className:"absolute -top-3 left-1/2 -translate-x-1/2 px-3 py-1 rounded-full text-xs font-semibold bg-gradient-gold text-forest-deep whitespace-nowrap",children:"Best value"}),e.jsx("h3",{className:"font-display text-2xl mb-1 mt-2",children:a.name}),e.jsxs("p",{className:"font-display text-4xl text-cream",children:["$",a.price]}),e.jsx("p",{className:"text-xs text-cream/60 mt-1",children:a.period}),e.jsx("ul",{className:"my-6 space-y-2.5 flex-1",children:a.benefits.map(t=>e.jsxs("li",{className:"flex items-start gap-2 text-sm text-cream/85",children:[e.jsx(p,{className:"h-4 w-4 text-gold mt-0.5 shrink-0"})," ",t]},t))}),e.jsx(x,{onClick:()=>s(a.key,a.price),disabled:o===a.key,className:`w-full h-11 ${a.highlight?"bg-gradient-gold text-forest-deep font-semibold shadow-gold":"bg-forest-light text-cream hover:bg-forest-light/80 border border-gold/30"}`,children:o===a.key?e.jsx(N,{className:"h-4 w-4 animate-spin"}):"Buy Now"})]})},a.key)),e.jsx(r,{delay:.32,children:e.jsxs("div",{className:"luxe-card p-7 h-full flex flex-col border-dashed",children:[e.jsx("h3",{className:"font-display text-2xl mb-1 mt-2",children:"Support Rehnumaa â¤ï¸"}),e.jsx("p",{className:"font-display text-4xl text-cream",children:"$10"}),e.jsx("p",{className:"text-xs text-cream/60 mt-1",children:"One-time donation"}),e.jsx("div",{className:"my-6 flex-1",children:e.jsx("p",{className:"text-sm text-cream/80",children:"Help us care for more parents in Lahore."})}),e.jsx(x,{onClick:()=>window.location.href="https://whop.com/checkout/plan_xiKTFbVbGz7Or",className:"w-full h-11 bg-forest-light text-cream hover:bg-forest-light/80 border border-gold/30",children:"Donate $10"})]})})]})]})},I=()=>{const{data:l,isLoading:m}=w(),{data:o}=v(),n=(o??[]).filter(s=>s.section==="Payments");return e.jsxs(k,{children:[e.jsx(C,{title:"Pricing â Rehnumaa Parent Care Plans",description:"Transparent monthly and annual plans for premium parent care in Lahore. No hidden fees. Cancel anytime."}),e.jsx("section",{className:"py-20 container text-center",children:e.jsxs(r,{children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.25em] text-gold mb-4",children:"Pricing"}),e.jsx("h1",{className:"font-display text-5xl md:text-6xl mb-5",children:"Choose your level of care."}),e.jsx("p",{className:"text-cream/75 max-w-2xl mx-auto",children:"No hidden fees. Cancel anytime. Built for families who want absolute peace of mind."})]})}),e.jsx("section",{className:"container pb-16 grid md:grid-cols-3 gap-6",children:m?Array.from({length:3}).map((s,a)=>e.jsx(S,{className:"h-96"},a)):!l||l.length===0?e.jsx("p",{className:"md:col-span-3 text-center text-cream/60",children:"No pricing plans available."}):l.map((s,a)=>{const i=!s.price_monthly||Number(s.price_monthly)===0,t=i?`${s.currency??""} 0`.trim():`$${s.price_monthly}`;return e.jsx(r,{delay:a*.1,children:e.jsxs("div",{className:`luxe-card p-8 h-full flex flex-col relative ${s.highlighted?"border-gold/50 shadow-elegant":""}`,children:[s.description&&e.jsx("span",{className:`absolute -top-3 left-1/2 -translate-x-1/2 px-3 py-1 rounded-full text-xs font-semibold whitespace-nowrap ${s.highlighted?"bg-gradient-gold text-forest-deep":"bg-forest-light text-gold border border-gold/40"}`,children:s.description.split("·")[0].trim()}),e.jsx("h3",{className:"font-display text-2xl mb-2 mt-2",children:s.name}),e.jsx("p",{className:"font-display text-5xl text-cream",children:t}),e.jsx("p",{className:"text-sm text-cream/60 mt-1",children:s.description}),e.jsx("ul",{className:"my-7 space-y-3 flex-1",children:(s.features??[]).map(c=>e.jsxs("li",{className:"flex items-start gap-3 text-sm text-cream/85",children:[e.jsx(p,{className:"h-4 w-4 text-gold mt-0.5 shrink-0"})," ",c]},c))}),e.jsx(f,{to:i?"/signup":`/subscribe/${s.id}`,children:e.jsx(x,{className:`w-full h-11 ${s.highlighted?"btn-shimmer bg-gradient-gold text-forest-deep font-semibold shadow-gold":"bg-forest-light text-cream hover:bg-forest-light/80 border border-gold/30"}`,children:i?"Start Free Trial":`Choose ${s.name}`})})]})},s.id)})}),e.jsx(E,{}),e.jsx("section",{className:"container pb-16",children:e.jsxs(r,{className:"luxe-card p-8 text-center",children:[e.jsx("p",{className:"text-xs uppercase tracking-widest text-gold mb-5",children:"Accepted Payment Methods"}),e.jsxs("div",{className:"flex flex-wrap justify-center items-center gap-6 text-cream/70",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(_,{className:"h-5 w-5 text-gold"})," Stripe · Cards"]}),e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(h,{className:"h-5 w-5 text-gold"})," EasyPaisa"]}),e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(h,{className:"h-5 w-5 text-gold"})," JazzCash"]})]})]})}),n.length>0&&e.jsxs("section",{className:"container pb-16 max-w-3xl",children:[e.jsx(r,{className:"text-center mb-10",children:e.jsx("h2",{className:"font-display text-4xl md:text-5xl",children:"Billing Questions"})}),e.jsx(r,{children:e.jsx(P,{type:"single",collapsible:!0,className:"luxe-card divide-y divide-border/60",children:n.map(s=>e.jsxs($,{value:s.id,className:"px-6 border-0",children:[e.jsx(L,{className:"text-left hover:text-gold font-display text-lg",children:s.question}),e.jsx(A,{className:"text-cream/75",children:s.answer})]},s.id))})})]}),e.jsx("section",{className:"container pb-24",children:e.jsxs(r,{className:"luxe-card p-10 text-center max-w-2xl mx-auto",children:[e.jsx(B,{className:"h-10 w-10 text-gold mx-auto mb-4"}),e.jsx("h3",{className:"font-display text-3xl mb-2",children:"7-Day Money-Back Guarantee"}),e.jsx("p",{className:"text-cream/75",children:"If we're not the right fit, we'll refund your first month â no questions asked."})]})})]})};export{I 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.