PageSourceSearch

https://www.fonuskids.com/assets/Pricing-DESNzer2.js

js fonuskids.com collected 2026-10-02 01:29:33 UTC 10,646 bytes, 6 lines download raw bytes

1import{f as b,u as p,j as e,g as y,B as f,r as x,N as j,h as N,i as _,F as v}from"./index-B9d8xvba.js";import{S as w,B as k}from"./shield-B_fNybJC.js";import{H as S}from"./heart-BWoJqpRf.js";/**
2 * @license lucide-react v0.453.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const P=b("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]),D=1;function A(t,a){if(!a||a.durationDays===0||t.durationDays===0||t.id===a.id)return 0;const n=a.price/a.durationDays,o=t.price/t.durationDays,s=Math.round((1-o/n)*100);return s>0?s:0}function E(t){return t.firstMonthPrice>0&&t.firstMonthPrice<t.price}function d(t){return Math.round(t).toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")}const M={UZS:"so'm"};function F(t){return M[t]??t}const l=[{id:"68830a8d5d5a380e51fea6d8",name:"basic",displayName:"Fonus MINI",description:"Easy and safe start",firstMonthPrice:9e3,price:19900,currency:"UZS",durationDays:30,features:["Ad-free environment","Watch history tracking","App blocking control","Parent-only courses","Educational videos & cartoons","100% filtered and safe content"]},{id:"68830ce701224fec2d0d8d28",name:"premium",displayName:"Fonus PLUS",description:"Six months of peace of mind and convenience",firstMonthPrice:0,price:95500,currency:"UZS",durationDays:180,features:["Ad-free environment","Watch history tracking","App blocking control","Parent-only courses","Educational videos & cartoons","100% filtered and safe content"]},{id:"68830d0a01224fec2d0d8d2c",name:"advanced",displayName:"Fonus MAX",description:"Safety and peace of mind all year long",firstMonthPrice:0,price:399e3,currency:"UZS",durationDays:365,features:["Ad-free environment","App blocking control","Educational videos & cartoons","100% filtered and safe content","Specialized learning materials for parents","Parents community"]}],u={basic:0,premium:1,advanced:2};async function L(){try{const t=await fetch("https://api.fonuskids.uz/api/plan");if(!t.ok)throw new Error(`status ${t.status}`);const a=await t.json(),n=Array.isArray(a==null?void 0:a.data)?a.data:[];if(!n.length)throw new Error("empty plan list");const o=n.filter(s=>(s==null?void 0:s.is_active)!==!1).map(s=>({id:String(s._id),name:String(s.name),displayName:String(s.display_name??"").trim(),description:String(s.description??"").trim(),firstMonthPrice:Number(s.first_month_price??0),price:Number(s.price??0),currency:String(s.currency??"UZS"),durationDays:Number(s.duration_days??0),features:Array.isArray(s.features)?s.features.map(r=>String(r).trim()):[]})).sort((s,r)=>(u[s.name]??99)-(u[r.name]??99));return o.length?o:l}catch{return l}}function B({plan:t,basic:a,recommended:n,onSelect:o}){const{t:s}=p(),r=F(t.currency),i=E(t),m=A(t,a),h=i?Math.round((1-t.firstMonthPrice/t.price)*100):0;return e.jsxs("div",{className:`card-3d flex h-full flex-col overflow-hidden rounded-3xl border ${n?"border-primary/40":"border-black/5"}`,children:[e.jsxs("div",{className:"flex flex-1 flex-col p-6 sm:p-7",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsx("h3",{className:"font-display text-2xl font-extrabold leading-tight text-foreground sm:text-[1.75rem]",children:t.displayName}),n&&e.jsxs("span",{className:"inline-flex shrink-0 items-center gap-1 rounded-full bg-[#FFC83D] px-2.5 py-1 text-[11px] font-bold text-[#5b3d00]",children:[e.jsx(P,{className:"h-3 w-3 fill-current"}),s("plans.most_popular","Most popular")]})]}),t.description&&e.jsx("p",{className:"mt-1.5 text-sm text-muted-foreground",children:t.description}),e.jsx("p",{className:"mt-6 text-xs font-semibold tracking-wide text-muted-foreground",children:s("plans.benefits_title","Plan benefits include:")}),e.jsx("ul",{className:"mt-4 space-y-3",children:t.features.map((c,g)=>e.jsxs("li",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full border border-black/10 bg-white",children:e.jsx(y,{className:"h-3.5 w-3.5 text-foreground
6/70",strokeWidth:3})}),e.jsx("span",{className:"text-[15px] leading-snug text-foreground/85",children:c})]},g))})]}),e.jsxs("div",{className:"border-t border-black/5 bg-muted/40 p-6 sm:p-7",children:[e.jsx("p",{className:"text-xs font-semibold tracking-wide text-muted-foreground",children:s("plans.price_label","Price")}),i?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mt-1.5 flex items-center gap-2.5",children:[e.jsxs("span",{className:"text-sm font-medium text-muted-foreground line-through",children:[d(t.price)," ",r]}),e.jsxs("span",{className:"rounded-full bg-foreground px-2 py-0.5 text-xs font-bold text-background",children:["-",h,"%"]})]}),e.jsxs("div",{className:"mt-1 font-display text-4xl font-extrabold tracking-tight text-foreground",children:[d(t.firstMonthPrice)," ",e.jsx("span",{className:"text-lg font-bold align-middle",children:r})]}),e.jsxs("p",{className:"mt-1.5 text-xs text-muted-foreground",children:[s("plans.from_second_month","starting from 2nd month"),": ",d(t.price)," ",r," / ",t.durationDays," ",s("plans.day","day")]})]}):e.jsxs(e.Fragment,{children:[m>0&&e.jsxs("span",{className:"mt-1.5 inline-flex rounded-full bg-foreground px-2 py-0.5 text-xs font-bold text-background",children:["-",m,"%"]}),e.jsxs("div",{className:"mt-1 font-display text-4xl font-extrabold tracking-tight text-foreground",children:[d(t.price)," ",e.jsx("span",{className:"text-lg font-bold align-middle",children:r})]}),e.jsxs("p",{className:"mt-1.5 text-xs text-muted-foreground",children:["/ ",t.durationDays," ",s("plans.day","day")]})]}),e.jsx(f,{className:"mt-5 w-full rounded-xl py-3 text-base",onClick:o,"data-testid":`button-select-${t.name}`,children:s("plans.subscribe","Subscribe")}),e.jsx("div",{className:"mt-5 flex flex-wrap items-center justify-center gap-2",children:["payme.svg","click.svg","mastercard.svg","apple_pay.png","google_pay.png"].map(c=>e.jsx("div",{className:"flex h-9 items-center justify-center rounded-lg border border-black/5 bg-white px-2.5 shadow-sm",children:e.jsx("img",{src:`/payments/${c}`,alt:c.split(".")[0].replace("_"," "),className:"h-5 w-auto object-contain"})},c))})]})]})}const R="https://apps.apple.com/us/app/fonus/id6742020368?utm_source=website&utm_medium=pricing&utm_campaign=plan",C="https://play.google.com/store/apps/details?id=uz.globalmove.fonus&utm_source=website&utm_medium=pricing&utm_campaign=plan";function Z(){const{t}=p(),[a,n]=x.useState(l);x.useEffect(()=>{let r=!0;return L().then(i=>{r&&n(i)}),()=>{r=!1}},[]);const o=a.find(r=>r.name==="basic"),s=()=>{var r;return(r=document.getElementById("get-app"))==null?void 0:r.scrollIntoView({behavior:"smooth"})};return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsx(j,{}),e.jsxs("main",{className:"flex-1",children:[e.jsx("section",{className:"px-4 pt-16 text-center sm:pt-20",children:e.jsxs("div",{className:"mx-auto max-w-2xl",children:[e.jsx("h1",{className:"mt-6 font-display text-4xl font-extrabold tracking-tight sm:text-5xl",children:t("plans.choose_heading","Select your plan")}),e.jsx("p",{className:"mx-auto mt-4 max-w-xl text-base text-muted-foreground sm:text-lg",children:t("plans.choose_subheading","Pick the plan that fits your family — switch or cancel anytime.")})]})}),e.jsxs("section",{className:"px-4 py-12 sm:py-16",children:[e.jsx("div",{className:"mx-auto grid max-w-6xl items-stretch gap-6 md:grid-cols-3 lg:gap-8",children:a.map((r,i)=>e.jsx(B,{plan:r,basic:o,recommended:i===D,onSelect:s},r.id))}),e.jsxs("div",{className:"mx-auto mt-12 flex max-w-3xl flex-wrap items-center justify-center gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-border/50 bg-background/50 px-4 py-2 backdrop-blur-sm",children:[e.jsx(w,{className:"h-4 w-4 text-primary"}),e.jsx("span",{className:"text-sm text-muted-foreground",children:t("pricing.trust_badge_1","Safe & secure")})]}),e.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-border/50 bg-background/50 px-4 py-2 backdrop-blur-sm",children:[e.jsx(k,{className:"h-4 w-4 text-primary"}),e.jsx("span",{className:"text-sm text-muted-foreground",children:t("pricing.trust_badge_2","100% ad-free")})]}),e.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-border/50 bg-background/50 px-4 py-2 backdrop-blur-sm",children:[e.jsx(S,{className:"h-4 w-4 text-primary"}),e.jsx("span",{className:"text-sm text-muted-foreground",children:t("pricing.trust_badge_3","Family values")})]})]})]}),e.jsx("section",{id:"get-app",className:"px-4 py-16 sm:py-20",children:e.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[e.jsx("h2",{className:"font-display text-2xl font-bold sm:text-3xl md:text-4xl",children:t("plans.get_app_heading","Ready to get started?")}),e.jsx("p",{className:"mx-auto mt-3 max-w-xl text-base text-muted-foreground md:text-lg",children:t("plans.get_app_description","Download Fonu
6s Kids and activate your selected plan in the app.")}),e.jsxs("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-4",children:[e.jsx("a",{href:R,target:"_blank",rel:"noopener noreferrer",className:"rounded-md transition-transform duration-300 hover:-translate-y-1 hover:drop-shadow-xl","aria-label":t("common.app_store","App Store"),children:e.jsx("img",{src:N,alt:t("common.app_store","App Store"),className:"h-12 w-auto sm:h-14"})}),e.jsx("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:"rounded-md transition-transform duration-300 hover:-translate-y-1 hover:drop-shadow-xl","aria-label":t("common.google_play","Google Play"),children:e.jsx("img",{src:_,alt:t("common.google_play","Google Play"),className:"h-12 w-auto sm:h-14"})})]})]})}),e.jsx("section",{className:"px-4 pb-20",children:e.jsx("div",{className:"mx-auto max-w-4xl",children:e.jsxs("div",{className:"rounded-3xl border-2 border-border bg-gradient-to-br from-muted/40 to-muted/20 p-8 text-center backdrop-blur-sm md:p-12",children:[e.jsx("h3",{className:"font-display text-2xl font-bold sm:text-3xl md:text-4xl",children:t("pricing.questions_heading","Still have questions?")}),e.jsx("p",{className:"mx-auto mt-3 max-w-2xl text-base text-muted-foreground md:text-lg",children:t("pricing.questions_description","We're here to help you choose the right plan for your family.")}),e.jsx("div",{className:"pt-6",children:e.jsx("a",{href:"/contact",children:e.jsx(f,{size:"lg","data-testid":"button-contact-sales",children:t("pricing.contact_us","Contact us")})})})]})})})]}),e.jsx(v,{})]})}export{Z 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.