1import{e as C,c as l,a as o,t as _,o as a,f as x,F as $,r as B,p as T,h as e,j as H,g as D,i as M,q as O,A as V,N as U,u as q,s as I,b as P,O as N}from"./Ckz4BRok.js";import{u as F}from"./BsISMfOk.js";import{_ as S}from"./Z5wCIHxE.js";import{u as E}from"./D_d8wgaA.js";import{u as R}from"./ewrDnY92.js";import"./D52JrP6d.js";import"./CwrvgjuF.js";const G={class:"flex flex-col items-center"},z={class:"font-oswald font-bold text-[32px] leading-[1.2] text-primary text-center uppercase"},J=C({__name:"PricingHero",props:{title:{}},setup(c){return(u,f)=>(a(),l("section",G,[o("h1",z,_(c.title),1)]))}}),K=Object.assign(J,{__name:"PricingHero"}),Q={class:"flex justify-center gap-2.25"},W=["onClick"],X=C({__name:"PricingDurationToggle",props:{modelValue:{},durations:{}},emits:["update:modelValue"],setup(c){const{pick:u}=F(),f=x(()=>({monthly:u("1 мÑÑÑÑÑ","1 month"),quarterly:u("3 мÑÑÑÑÑ","3 months"),semi_annual:u("6 мÑÑÑÑÑв","6 months"),annual:u("12 мÑÑÑÑÑв","12 months")}));return(m,t)=>(a(),l("div",Q,[(a(!0),l($,null,B(c.durations,p=>(a(),l("button",{key:p,class:T(["rounded-[9px] w-full px-6 py-3 font-manrope font-bold text-sm transition-colors",c.modelValue===p?"bg-accent text-inverse":"text-primary hover:text-secondary bg-surface"]),onClick:b=>m.$emit("update:modelValue",p)},_(e(f)[p]),11,W))),128))]))}}),Z=Object.assign(X,{__name:"PricingDurationToggle"}),ee=["onClick"],te={class:"font-manrope font-semibold text-xs md:text-sm leading-tight"},ne={class:"font-oswald font-bold text-[28px] md:text-[40px] leading-[1.1]"},se={key:0,class:"font-manrope font-semibold text-xs md:text-sm leading-tight"},re=C({__name:"PricingPlanCards",props:{plans:{},duration:{},selectedIndex:{},usdToUahRate:{}},emits:["select"],setup(c){const u=H(),f=x(()=>u.id==="ai-club"),m=c,t=x(()=>m.plans.map((i,g)=>({plan:i,originalIndex:g})).filter(({plan:i})=>b(i.prices,m.duration))),p=x(()=>["grid gap-2 md:gap-3",t.value.length===1?"grid-cols-1":t.value.length===2?"grid-cols-2":"grid-cols-3"]);function b(i,g){return i.some(d=>d.duration===g)}function n(i,g){return i.find(d=>d.duration===g)?.price??0}const h=new Intl.NumberFormat("uk-UA",{maximumFractionDigits:0,useGrouping:!1});function v(i,g,d){return d===null?"":h.format(n(i,g)*d)}return(i,g)=>(a(),l("div",{class:T(e(p))},[(a(!0),l($,null,B(e(t),({plan:d,originalIndex:k})=>(a(),l("button",{key:d.id,class:T(["rounded-2xl md:rounded-3xl p-3 md:p-4 flex flex-col gap-1 md:gap-2 text-left transition-colors cursor-pointer",k===c.selectedIndex?"bg-accent text-inverse":"bg-surface border border-border text-primary hover:border-accent",e(f)&&"flex flex-col items-center text-center"]),onClick:Y=>i.$emit("select",k)},[o("span",te,_(d.name),1),o("span",ne,_(n(d.prices,c.duration))+"$ ",1),c.usdToUahRate!==null?(a(),l("span",se,_(v(d.prices,c.duration,c.usdToUahRate))+"â´ ",1)):D("",!0)],10,ee))),128))],2))}}),oe=Object.assign(re,{__name:"PricingPlanCards"}),ae={class:"bg-surface rounded-3xl p-4 py-5 md:p-6 md:py-8 flex flex-col gap-6 md:gap-8 w-full"},ie={class:"flex flex-col gap-5 md:gap-6"},le={class:"flex flex-col gap-1.5"},ce={class:"font-oswald font-bold text-[28px] leading-[1.2] text-primary uppercase"},ue=["innerHTML"],pe={class:"flex gap-1 text-[16px] leading-[1.4] tracking-[0.5px] text-muted"},de={class:"flex justify-center"},me=["href","target","rel"],ge=C({__name:"PricingFeatures",props:{features:{},ctaText:{},ctaUrl:{}},setup(c){const u=c,{pick:f}=F(),m=E({fallbackUrl:x(()=>u.ctaUrl),label:x(()=>u.ctaText),ctaType:"tg_details",ctaLocation:"pricing_card"});return(t,p)=>{const b=S;return a(),l("div",ae,[o("div",ie,[(a(!0),l($,null,B(c.features,n=>(a(),l("div",{key:n.id,class:"flex gap-4 items-start"},[n.icon?(a(),M(b,{key:0,image:n.icon,options:{width:48,quality:90},alt:n.title,class:"block h-[25px] w-[25px] pt-2","img-class":"w-full h-full object-contain"},null,8,["image","alt"])):D("",!0),o("div",le,[o("p",ce,_(n.title),1),n.description?(a(),l("div",{key:0,class:"prose max-w-none prose-p:mb-4 prose-p:mt-0 prose-p:text-[16px] prose-p:leading-[1.4] prose-p:tracking-[0.5px] prose-p:text-muted prose-headings:mb-3 prose-headings:mt-4 prose-ul:my-3 prose-ol:my-3 prose-li:my-1 prose-li:text-[16
1px] prose-li:leading-[1.4] prose-li:tracking-[0.5px] prose-li:text-muted prose-strong:font-manrope prose-strong:font-bold prose-strong:text-[21.121px] prose-strong:text-primary prose-strong:leading-[1.4] prose-strong:tracking-[0.5px]",innerHTML:n.description},null,8,ue)):D("",!0)])]))),128))]),o("div",pe,[p[1]||(p[1]=o("span",null,"*",-1)),o("span",null,_(e(f)("ÐкÑÑалÑний кÑÑÑ $ ÑÑоÑнÑйÑе Ñ Ð¼ÐµÐ½ÐµÐ´Ð¶ÐµÑа клÑба","Please confirm the current USD exchange rate with the club manager")),1)]),o("div",de,[o("a",{href:e(m).href.value,target:e(m).target,rel:e(m).rel,class:"border-[1.5px] border-secondary rounded-2xl px-14 py-3 font-manrope font-bold text-sm leading-[1.3] text-primary text-center transition-colors hover:bg-primary hover:text-inverse",onClick:p[0]||(p[0]=(...n)=>e(m).onClick&&e(m).onClick(...n))},_(c.ctaText),9,me)])])}}}),xe=Object.assign(ge,{__name:"PricingFeatures"}),_e={key:0,class:"mt-[33.4px] flex flex-col gap-[11.734px]"},fe={class:"grid grid-cols-3 gap-2 md:gap-3"},he={key:1,class:"mt-[33.4px] bg-surface p-[18.774px] rounded-[9.387px] text-center border border-accent/20"},be={class:"text-accent font-bold text-[14.08px]"},ve={key:2,class:"mt-[33.4px] bg-surface p-[37.548px] rounded-[9.387px] text-center"},ye={class:"text-secondary font-medium text-[14.08px]"},Ce={key:3,class:"flex flex-col gap-6 md:gap-10"},ke={class:"flex flex-col gap-6"},Ye=C({__name:"pricing",async setup(c){let u,f;const m=["monthly","quarterly","semi_annual","annual"],{data:t,status:p,error:b}=([u,f]=O(()=>R("/api/pricing","$kowM4wGMkC")),u=await u,f(),u),{pick:n}=F();(b.value||!t.value)&&console.error("Ðомилка заванÑÐ°Ð¶ÐµÐ½Ð½Ñ Ð´Ð°Ð½Ð¸Ñ
ÑаÑиÑÑв:",b.value);const h=V("monthly"),v=V(0),i=x(()=>{const r=new Set;return t.value?.plans.forEach(s=>{s.prices.forEach(w=>{r.add(w.duration)})}),m.filter(s=>r.has(s))}),g=x(()=>t.value?.plans.map((r,s)=>({plan:r,index:s})).filter(({plan:r})=>r.prices.some(s=>s.duration===h.value)).map(({index:r})=>r)??[]),d=x(()=>!!t.value?.plans.some(r=>r.prices.length>0)),k=x(()=>t.value?.pricing.cta_text||n("ÐÑзнаÑиÑÑ Ð´ÐµÑалÑ","Learn more"));U(()=>{const r=i.value[0];r&&(i.value.includes(h.value)||(h.value=r))}),U(()=>{const r=g.value[0];r!==void 0&&(g.value.includes(v.value)||(v.value=r))});const Y=x(()=>{const r=t.value?.plans[v.value];return r?.pricing_plans_features?r.pricing_plans_features.map(s=>typeof s.pricing_features_id=="object"&&s.pricing_features_id?s.pricing_features_id:null).filter(s=>s!==null):[]});return q({title:n("ТаÑиÑи | YBC","Pricing | YBC")}),I({title:()=>t.value?.pricing.meta_title||n("ТаÑиÑи | YBC","Pricing | YBC"),description:()=>t.value?.pricing.meta_description||n("ÐбеÑÑÑÑ ÑоÑÐ¼Ð°Ñ ÑÑаÑÑÑ Ñ Young Business Club","Choose your Young Business Club membership format"),ogTitle:()=>t.value?.pricing.meta_title||n("ТаÑиÑи | YBC","Pricing | YBC"),ogDescription:()=>t.value?.pricing.meta_description||n("ÐбеÑÑÑÑ ÑоÑÐ¼Ð°Ñ ÑÑаÑÑÑ Ñ Young Business Club","Choose your Young Business Club membership format"),twitterTitle:()=>t.value?.pricing.meta_title||n("ТаÑиÑи | YBC","Pricing | YBC"),twitterDescription:()=>t.value?.pricing.meta_description||n("ÐбеÑÑÑÑ ÑоÑÐ¼Ð°Ñ ÑÑаÑÑÑ Ñ Young Business Club","Choose your Young Business Club membership format")}),(r,s)=>{const w=K,j=Z,L=oe,A=xe;return e(p)==="pending"?(a(),l("div",_e,[s[2]||(s[2]=o("div",{class:"h-16 bg-surface/50 animate-pulse rounded-[9.387px]"},null,-1)),o("div",fe,[(a(),l($,null,B(3,y=>o("div",{key:y,class:"h-32 bg-surface/50 animate-pulse rounded-[9.387px]"})),64))]),s[3]||(s[3]=o("div",{class:"h-48 bg-surface/50 animate-pulse rounded-[9.387px]"},null,-1))])):e(b)||!e(t)?(a(),l("div",he,[o("p",be,_(e(n)("Ðомилка заванÑÐ°Ð¶ÐµÐ½Ð½Ñ ÑаÑиÑÑв. СпÑобÑйÑе оновиÑи ÑÑоÑÑнкÑ.","Failed to load pricing. Please refresh the page.")),1)])):!e(d)||!e(i).length?(a(),l("div",ve,[o("p",ye,_(e(n)("ÐакеÑи ÑÑаÑÑÑ Ð¿Ð¾ÐºÐ¸ Ñо не налаÑÑованÑ.","Membership packages have not been configured yet.")),1)])):(a(),l("div",Ce,[o("div",ke,[P(w,{title:e(t).pricing.title},null,8,["title"]),P(j,{modelValue:e(h),"onUpdate:modelValue":s[0]||(s[0]=y=>N(h)?h.value=y:null),durations:e(i)},null,8,["modelValue","durations"])]),P(L,{plans:e(t).plans,duration:e(h),"selected-index":e(v),"usd-to-uah-rate":e(t).usdToUahRate,onSelect:s[1]||(s[1]=y=>v.value=y)},null,8,["plans","duration","selected-index","usd-to-uah-rate"]),P(A,{features:e(Y),"cta-text":e(k),"cta-url":e(t).pricing.cta_url??"#"}
1,null,8,["features","cta-text","cta-url"])]))}}});export{Ye 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.