1import T from"./CV5xvJF0.js";import{e as L,f as V,A as B,l as U,o as i,c as a,a as t,t as r,g as c,F as P,r as $,n as _,p as g,aF as W,j as h,D as z,d as y,b as j}from"./BOJKl6be.js";import{_ as G}from"./DlAUqK2U.js";const H={id:"pricing",class:"mt-5 py-5 bg-light"},K={class:"container-lg container-fluid py-5"},R={class:"mb-3 text-center fw-bolder"},X={key:0,class:"pricing-loader text-center",role:"status","aria-live":"polite"},q={key:1,class:"row g-4 pricing"},J={class:"card h-100 shadow-lg"},Q={class:"h4 my-0 fw-normal"},Y={key:0,class:"best-choice-text"},Z={class:"card-body"},ee={class:"h1 card-price text-truncate"},te={key:0,class:"period"},ne={class:"text-muted"},se={class:"list-unstyled mt-3 mb-4"},oe=["disabled","onClick"],re={key:0,class:"spinner-border spinner-border-sm me-2","aria-hidden":"true"},ie={key:2,class:"alert alert-warning mt-4 mx-auto pricing-alert",role:"alert"},ae={class:"mt-5 text-center"},ce={class:"h3 fw-bold"},ue={class:"h4 fw-normal"},le=L({__name:"Pricing",async setup(de){let f,v;const{locale:b,t:u}=V(),w=g(!1),p=g(null),d=g(!1),{data:x,pending:A}=([f,v]=B(()=>W("/api/pricing",{server:!1,lazy:!0},"$pzF9mAdOmn")),f=await f,v(),f),k=h(()=>x.value?.prices??[]),S=h(()=>k.value.length>0),F=h(()=>k.value.map(e=>({code:e.plan_code,name:u(`pricing.plans.${e.plan_code}.name`),price:D(e),suffix:u(`pricing.plans.${e.plan_code}.suffix`),note:u(`pricing.plans.${e.plan_code}.note`,{amount:C(e.amount,e.currency_code,e.currency_decimals)}),bestChoice:e.plan_code==="yearly"}))),O=[u("pricing.features.allFeatures"),u("pricing.features.unlimitedExports"),u("pricing.features.prioritySupport")];U(()=>{w.value=!0});function M(e){return e.plan_code==="yearly"?Math.round(e.amount/12):e.amount}function D(e){return C(M(e),e.currency_code,e.currency_decimals)}function C(e,o,s){return new Intl.NumberFormat(b.value,{style:"currency",currency:o,minimumFractionDigits:s,maximumFractionDigits:s}).format(e/10**s)}function E(){const e=navigator.userAgent;return/Edg\//i.test(e)?"Microsoft Edge":/OPR\//i.test(e)?"Opera":/Firefox\//i.test(e)?"Firefox":/Chrome\//i.test(e)||/Chromium\//i.test(e)?"Google Chrome":/Safari\//i.test(e)?"Safari":"Unknown"}function I(){const o=navigator.userAgentData?.platform??"",s=navigator.platform??"",n=navigator.userAgent??"",m=navigator.maxTouchPoints??0,l=`${o} ${s} ${n}`;return/iPad|iPhone|iPod/i.test(l)||/MacIntel/i.test(s)&&m>1?"iOS":/Android/i.test(l)?"Android":/CrOS/i.test(l)?"ChromeOS":/Mac|MacIntel|MacPPC|Mac68K|macOS/i.test(l)?"macOS":/Win|Windows/i.test(l)?"Windows":/Linux|X11/i.test(l)?"Linux":"Unknown"}async function N(e){d.value=!1;const o=x.value?.country_code;if(!o){d.value=!0;return}const s=window.open("","_blank");if(!s){d.value=!0;return}p.value=e;try{const n=await $fetch("/api/checkout",{method:"POST",body:{plan_code:e,country_code:o,os:I(),browser:E()}});s.location.href=n.checkoutUrl}catch{s.close(),d.value=!0}finally{p.value=null}}return(e,o)=>{const s=T;return i(),a("section",H,[t("div",K,[t("h2",R,r(e.$t("pricing.title")),1),!c(w)||c(A)?(i(),a("div",X,[...o[0]||(o[0]=[t("span",{class:"spinner-border text-primary","aria-hidden":"true"},null,-1)])])):c(S)?(i(),a("div",q,[(i(!0),a(P,null,$(c(F),n=>(i(),a("div",{key:n.code,class:"col-12 col-md-4"},[t("div",J,[t("div",{class:z(["card-header py-3",n.bestChoice?"best-choice-holder":""])},[t("div",Q,r(n.name),1),n.bestChoice&&c(b).toLocaleLowerCase().includes("en")?(i(),a("div",Y,r(e.$t("pricing.bestValue")),1)):_("",!0)],2),t("div",Z,[t("div",ee,[t("span",null,r(n.price),1),o[1]||(o[1]=y()),n.suffix?(i(),a("span",te,r(n.suffix
1),1)):_("",!0)]),t("div",ne,r(n.note),1),t("ul",se,[(i(),a(P,null,$(O,m=>t("li",{key:m},[j(s,{name:"bi:check2-circle",class:"me-1 text-success"}),y(" "+r(m),1)])),64))]),t("div",null,[t("button",{type:"button",class:"btn btn-primary mt-auto fw-bold btn-lg w-100",disabled:c(p)!==null,onClick:m=>N(n.code)},[c(p)===n.code?(i(),a("span",re)):_("",!0),y(" "+r(e.$t("pricing.getStarted")),1)],8,oe)])])])]))),128))])):_("",!0),c(d)?(i(),a("div",ie,r(e.$t("pricing.checkoutError")),1)):_("",!0),t("div",ae,[t("div",ce,r(e.$t("pricing.guaranteeTitle")),1),t("div",ue,r(e.$t("pricing.guaranteeText")),1)])])])}}}),pe=Object.assign(G(le,[["__scopeId","data-v-9c70c48d"]]),{__name:"HomePricing"});export{pe 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.