1import{v as G,E as ze,x as u,y as p,z as e,R as b,H as V,a0 as Y,J as Ye,d as M,M as Ae,F as z,B as Q,C,a1 as ve,I as _,A as q,h as r,O as Ke,a2 as yt,r as m,S as xe,a3 as Je,a4 as qe,a5 as Ge,Y as ye,_ as Xe,G as he,a6 as De,i as He,w as D,n as Me,b as ht,a7 as Ze,u as Qe,P as gt,L as me,a8 as bt,W as Z,N as wt,$ as Et,a9 as _t}from"./BedkmIc1.js";import{u as Oe,P as ee,a as ke}from"./CKPmV5CO.js";import{g as kt,_ as et,i as Ce,s as St,a as Pt,b as Ct}from"./DueyF-hO.js";import{i as T}from"./C0eqgcFN.js";const Ft={key:0,class:"dark:bg-primary h-[0.625rem] w-[0.625rem] rounded-full bg-[#D06BFF]"},Bt=G({__name:"BaseRadioTwo",props:Ye({plan:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(c){const n=c,t=ze(c,"modelValue"),l=M(()=>t.value?.id===n.plan.id),i=()=>{t.value=n.plan};return(a,f)=>(u(),p("button",{key:c.plan.id,onClick:f[0]||(f[0]=x=>i()),class:V(["flex h-full w-full cursor-pointer items-center gap-3 rounded-[10px] bg-[#1E1E1E] p-3",{"dark:ring-primary ring-2 ring-[#D06BFF]":l.value}])},[e("div",{class:V(["flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full border-2 transition-all",{"border-[#B9B9B9]":!l.value,"dark:border-primary border-[#D06BFF]":l.value}])},[l.value?(u(),p("div",Ft)):b("",!0)],2),Y(a.$slots,"default")],2))}}),$t={class:"flex flex-col gap-5"},It={class:"flex w-full items-center justify-between gap-1"},Tt={class:"flex flex-col gap-1"},Dt={class:"text-start text-lg leading-none text-white"},Mt={class:"leading[10px] text-start text-[10px] text-[#B9B9B9]"},Lt={class:"line-through"},At={class:"flex items-center gap-3"},Ot={key:0,class:"bg-gray/10 flex min-h-[46px] min-w-[88px] justify-between gap-0.5 rounded-[10px] bg-white/5 p-[9px]"},Rt={class:"flex items-center text-[35px] leading-[25px] font-bold text-white"},Vt={class:"flex flex-col justify-between"},jt={class:"text-start text-xs leading-3 font-bold text-white"},Ut=G({__name:"PaymentPlans",props:Ye({plans:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(c){const n=Oe(),{promocode:t}=Ae(n),l=M(()=>{const a=(t.value||"").trim().toUpperCase();return a===ee.higherPromocode.title.toUpperCase()?"higher":a===ee.regularPromocode.title.toUpperCase()?"regular":null}),i=ze(c,"modelValue");return(a,f)=>{const x=Bt;return u(),p("div",$t,[(u(!0),p(z,null,Q(c.plans,v=>(u(),p("div",{key:v.id,class:V({"before:ring-2 before:ring-[#D06BFF]":i.value?.id===v.id&&v.isPopular,"before:-mb-2 before:flex before:justify-center before:rounded-t-[10px] before:bg-[#D06BFF] before:pb-2 before:font-bold before:text-white before:content-[attr(data-text)]":v.isPopular}),"data-text":"Most popular"},[C(x,{modelValue:i.value,"onUpdate:modelValue":f[0]||(f[0]=y=>i.value=y),plan:v},{default:ve(()=>[e("div",It,[e("div",Tt,[e("p",Dt,_(v.name),1),e("p",Mt,[e("span",Lt," â¬"+_(v.oldPrice),1),q(" â¬"+_(r(l)==="higher"?v.priceDiscount:v.price),1)])]),e("div",At,[(u(),p("div",Ot,[f[2]||(f[2]=e("p",{class:"text-xs leading-3 font-bold text-white"},"â¬",-1)),e("div",Rt,_(String(r(l)==="higher"?v.perDayPriceDiscount:v.perDayPrice)?.split(".")[0]),1),e("div",Vt,[e("p",jt,_((r(l)==="higher"?v.perDayPriceDiscount:v.perDayPrice).toFixed(2)?.split(".")[1]),1),f[1]||(f[1]=e("p",{class:"text-xxs leading-3 text-[#B9B9B9]"},"per day",-1))])]))])])]),_:2},1032,["modelValue","plan"])],2))),128))])}}}),qt={class:"text-white"},Gt=G({__name:"BaseAccordeon",props:{title:{default:"What is your money-back guarantee policy?"},description:{default:"We offer a risk-free experience! If youâre not satisfied within the first 7 days, you can request a full refundâ no questions asked."}},setup(c){const n=m(!1),t=()=>{n.value=!n.value};return(l,i)=>(u(),p("div",qt,[e("div",{class:"mb-2.5 min-h-8 cursor-pointer border-b-2 border-white text-sm font-bold",onClick:t},_(c.title),1),Ke(e("div",{class:"text-[13px] font-light"},_(c.description),513),[[yt,n.value]])]))}}),Wt={class:"flex flex-col items-center text-center"},Nt=G({__name:"WhyNowModal",props:{isOpen:{type:Boolean}},emits:["update:isOpen"],setup(c,{emit:n}){const t=n;function l(){t("update:isOpen",!1)}return(i,a)=>(u(),xe(Je,{to:"body"},[C(qe,{name:"fade"},{default:ve(()=>
1[c.isOpen?(u(),p("div",{key:0,class:"fixed inset-0 z-[60] flex items-end justify-center bg-[#110F11]/60 backdrop-blur-md",onClick:Ge(l,["self"])},[C(qe,{name:"slide-up"},{default:ve(()=>[c.isOpen?(u(),p("div",{key:0,class:"w-full max-w-[400px] rounded-t-[20px] bg-[#232026] p-6 shadow-2xl border-t border-[#5A5864]",onClick:a[0]||(a[0]=Ge(()=>{},["stop"]))},[e("div",Wt,[a[1]||(a[1]=e("h2",{class:"mt-2 mb-8 text-[24px] font-bold leading-[24px] text-[#D06BFF]"}," Enjoy premium ",-1)),a[2]||(a[2]=e("div",{class:"mb-12 text-[14px] leading-[24px] text-[#EBE8EE]"},[e("p",null," Enter your payment details now to keep enjoying 180Score premium content after your 7-day trial. "),e("p",{class:"mb-1 text-[14px]"},"â¤ï¸"),e("p",null," No charges if you cancel before the trial ends. ")],-1)),a[3]||(a[3]=e("br",null,null,-1)),a[4]||(a[4]=e("br",null,null,-1)),a[5]||(a[5]=e("br",null,null,-1)),C(ye,{title:"Understand",class:"mx-auto mb-0 w-full h-[48px] py-2",style:{"min-height":"0","border-radius":"10px"},onClick:l})])])):b("",!0)]),_:1})])):b("",!0)]),_:1})]))}}),zt=Xe(Nt,[["__scopeId","data-v-cff8c01c"]]);function Fe(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fe=function(n){return typeof n}:Fe=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fe(c)}var tt="clover",Yt=function(n){return n===3?"v3":n},rt="https://js.stripe.com",Kt="".concat(rt,"/").concat(tt,"/stripe.js"),Jt=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,Xt=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;var Ht=function(n){return Jt.test(n)||Xt.test(n)},Zt=function(){for(var n=document.querySelectorAll('script[src^="'.concat(rt,'"]')),t=0;t<n.length;t++){var l=n[t];if(Ht(l.src))return l}return null},We=function(n){var t="",l=document.createElement("script");l.src="".concat(Kt).concat(t);var i=document.head||document.body;if(!i)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return i.appendChild(l),l},Qt=function(n,t){!n||!n._registerWrapper||n._registerWrapper({name:"stripe-js",version:"8.7.0",startTime:t})},pe=null,Se=null,Pe=null,er=function(n){return function(t){n(new Error("Failed to load Stripe.js",{cause:t}))}},tr=function(n,t){return function(){window.Stripe?n(window.Stripe):t(new Error("Stripe.js not available"))}},rr=function(n){return pe!==null?pe:(pe=new Promise(function(t,l){if(typeof window>"u"||typeof document>"u"){t(null);return}if(window.Stripe){t(window.Stripe);return}try{var i=Zt();if(!(i&&n)){if(!i)i=We(n);else if(i&&Pe!==null&&Se!==null){var a;i.removeEventListener("load",Pe),i.removeEventListener("error",Se),(a=i.parentNode)===null||a===void 0||a.removeChild(i),i=We(n)}}Pe=tr(t,l),Se=er(l),i.addEventListener("load",Pe),i.addEventListener("error",Se)}catch(f){l(f);return}}),pe.catch(function(t){return pe=null,Promise.reject(t)}))},sr=function(n,t,l){if(n===null)return null;var i=t[0];if(typeof i!="string")throw new Error("Expected publishable key to be of type string, got type ".concat(Fe(i)," instead."));var a=i.match(/^pk_test/),f=Yt(n.version),x=tt;a&&f!==x&&console.warn("Stripe.js@".concat(f," was loaded on the page, but @stripe/stripe-js@").concat("8.7.0"," expected Stripe.js@").concat(x,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var v=n.apply(void 0,t);return Qt(v,l),v},fe,st=!1,ot=function(){return fe||(fe=rr(null).catch(function(n){return fe=null,Promise.reject(n)}),fe)};Promise.resolve().then(function(){return ot()}).catch(function(c){st||console.warn(c)});var or=function(){for(var n=arguments.length,t=new Array(n),l=0;l<n;l++)t[l]=arguments[l];st=!0;var i=Date.now();return ot().then(function(a){return sr(a,t,i)})};const nt=Symbol("stripe"),lt=Symbol("stripe-elements"),nr=Symbol("vue-stripe-config");class Le extends Error{constructor(n){super(n),this.name="VueStripeProviderError"}}class lr extends Error{constructor(n){super(n),this.name="VueStripeElementsError"}}const ir={name:"vue-stripe",version:"5.3.0",url:"https://vuestripe.com",partner_id:"pp_partner_IqtOXpBSuz0IE2"},ar={key:0,class:"vue-stripe-error"},cr={class:"vue-stripe-error-message"},ur={key:1,class:"vue-stripe-loading"},dr={key:2},pr=G({__name:"VueStripeProvider",props:{publishableKey:{},stripeKey:{},stripeAccount:{},apiVersion:{},locale:{},options:{}},emits:["load","error"],setup(c,{emit:n}){const t=c,l=n,i=m(null),a=m(!0),f=m(null),x=t.publishableKey||t.stripeKey;if(!x)throw new Le("publishableKey or stripeKey is required");const v={publishableKey:x,stripeAccount:t.stripeAccount||t.options?.stripeAccount,apiVersion:t.apiVersion||t.options?.apiVersion,locale:t.locale||t.options?.locale},y=async()=>{try{a.value=!0,f.value=null;const g={},h=t.stripeAccount||t.options?.stripeAccount,F=t.apiVersion||t.options?.apiVersion,$=t.locale||t.options?.locale;if(h&&(g.stripeAccount=h),F&&(g.apiVersion=F),$&&(g.locale=$),i.value=await or(x,g),!i.value)throw new Le("Failed to initialize Stripe");i.value.registerAppInfo(ir),l("load",i.value)}catch(g){const h=g instanceof Error?g.message:"Failed to load Stripe";f.value=h,console.error("[Vue Stripe] Initialization error:",h),l("error",g instanceof Error?g:new Error(h))}finally{a.value=!1}};return he(()=>{y()}),De(nr,v),De(nt,{stripe:i,loading:a,error:f}),(g,h)=>r(f)?(u(),p("div",ar,[Y(g.$slots,"error",{error:r(f)}
1,()=>[e("div",cr,_(r(f)),1)],!0)])):r(a)?(u(),p("div",ur,[Y(g.$slots,"loading",{},()=>[h[0]||(h[0]=e("div",{class:"vue-stripe-loading-message"}," Loading Stripe... ",-1))],!0)])):(u(),p("div",dr,[Y(g.$slots,"default",{},void 0,!0)]))}}),Re=(c,n)=>{const t=c.__vccOpts||c;for(const[l,i]of n)t[l]=i;return t},fr=Re(pr,[["__scopeId","data-v-573ddc51"]]),mr={key:0,class:"vue-stripe-elements-error"},vr={class:"vue-stripe-error-message"},xr={key:1,class:"vue-stripe-elements-loading"},yr={key:2},hr=G({__name:"VueStripeElements",props:{clientSecret:{},mode:{},currency:{},amount:{},setupFutureUsage:{},captureMethod:{},paymentMethodTypes:{},options:{}},emits:["ready","error"],setup(c,{emit:n}){const t=n,l=c,i=He(nt);if(!i)throw new Le("VueStripeElements must be used within VueStripeProvider");const a=m(null),f=m(!0),x=m(null),v=()=>{if(!i.stripe.value){x.value="Stripe instance not available",f.value=!1;return}try{x.value=null,f.value=!0;const y={...l.options};l.clientSecret&&(y.clientSecret=l.clientSecret),l.mode&&(y.mode=l.mode),l.currency&&(y.currency=l.currency),l.amount!==void 0&&(y.amount=l.amount),l.setupFutureUsage&&(y.setupFutureUsage=l.setupFutureUsage),l.captureMethod&&(y.captureMethod=l.captureMethod),l.paymentMethodTypes&&(y.paymentMethodTypes=l.paymentMethodTypes),a.value=i.stripe.value.elements(y),f.value=!1,Me(()=>{t("ready",a.value)})}catch(y){const g=y instanceof Error?y.message:"Failed to create elements";x.value=g,f.value=!1,console.error("[Vue Stripe] Elements creation error:",g),t("error",g)}};return D(()=>i.stripe.value,y=>{y&&!a.value&&v()},{immediate:!0}),D(()=>l.clientSecret,()=>{i.stripe.value&&v()}),D(()=>[l.mode,l.currency,l.amount,l.setupFutureUsage],()=>{i.stripe.value&&v()}),he(()=>{i.stripe.value&&!a.value&&v()}),De(lt,{elements:a,loading:f,error:x}),(y,g)=>r(x)?(u(),p("div",mr,[Y(y.$slots,"error",{error:r(x)},()=>[e("div",vr,_(r(x)),1)],!0)])):r(f)?(u(),p("div",xr,[Y(y.$slots,"loading",{},()=>[g[0]||(g[0]=e("div",{class:"vue-stripe-loading-message"}," Initializing Elements... ",-1))],!0)])):(u(),p("div",yr,[Y(y.$slots,"default",{},void 0,!0)]))}}),gr=Re(hr,[["__scopeId","data-v-c54b80f7"]]),br={class:"vue-stripe-payment-element"},wr={key:0,class:"vue-stripe-payment-element-error"},Er={class:"vue-stripe-error-message"},_r={key:1,class:"vue-stripe-payment-element-loader"},kr=G({__name:"VueStripePaymentElement",props:{options:{}},emits:["ready","change","focus","blur","escape","loaderstart","loaderstop"],setup(c,{expose:n,emit:t}){const l=c,i=t,a=m(),f=m(null),x=m(!0),v=m(null),y=He(lt);if(!y)throw new lr("VueStripePaymentElement must be used within VueStripeElements");const g=()=>{if(!y.elements.value){v.value="Elements instance not available",x.value=!1;return}if(!a.value){v.value="Mount point not available",x.value=!1;return}try{v.value=null,x.value=!0,f.value=y.elements.value.create("payment",l.options),f.value.on("ready",()=>{x.value=!1,i("ready",f.value)}),f.value.on("change",F=>{i("change",F)}),f.value.on("focus",()=>{i("focus")}),f.value.on("blur",()=>{i("blur")}),f.value.on("escape",()=>{i("escape")});const h=f.value;h.on("loaderstart",()=>{i("loaderstart")}),h.on("loaderstop",()=>{i("loaderstop")}),f.value.mount(a.value)}catch(h){const F=h instanceof Error?h.message:"Failed to create payment element";v.value=F,x.value=!1,console.error("[Vue Stripe] Payment element creation error:",F)}};return D(()=>l.options,h=>{f.value&&h&&f.value.update(h)},{deep:!0}),D(()=>y.elements.value,h=>{h&&a.value&&!f.value&&g()},{immediate:!0}),he(()=>{y.elements.value&&a.value&&!f.value&&g()}),ht(()=>{f.value&&f.value.destroy()}),n({element:f,loading:x,error:v}),(h,F)=>(u(),p("div",br,[r(v)?(u(),p("div",wr,[Y(h.$slots,"error",{error:r(v)},()=>[e("div",Er,_(r(v)),1)],!0)])):b("",!0),e("div",{ref_key:"elementRef",ref:a,class:V(["vue-stripe-payment-element-mount",{"vue-stripe-payment-element-loading":r(x)}])},null,2),r(x)?(u(),p("div",_r,[Y(h.$slots,"loading",{},()=>[F[0]||(F[0]=e("div",{class:"vue-stripe-loading-message"}," Loading payment form... ",-1))],!0)])):b("",!0)]))}}),Sr=Re(kr,[["__scopeId","data-v-2477e9df"]]),Pr=async c=>{const n=await $fetch("https://api.180score.ai/api/payment/get-client-secret",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});return console.log(n),n},Cr=async c=>{const n=await $fetch("https://api.180score.ai/api/payment/check-payment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});return console.log(n),n},Fr=async c=>{const n=await $fetch("https://api.180score.ai/api/funnel-conversions",{method:"POST",headers:{"Content-Type":"application/json"},body:{data:c}});return console.log(n),n},Br={key:0,class:"fixed inset-0 z-50 flex h-dvh w-screen justify-center overflow-hidden bg-[#110F11]/90 px-4 pt-[44px] pb-4 font-sans backdrop-blur-sm"},$r={key:0,class:"fixed inset-0 z-60 flex items-center justify-center bg-black/70 px-4"},Ir={class:"relative w-full max-w-md overflow-hidden rounded-2xl bg-[#1a171a] p-6 shadow-2xl"},Tr={class:"flex flex-col items-center"},Dr=["src"],Mr={class:"flex h-full w-full max-w-[400px] flex-col overflow-hidden rounded-[10px] bg-[#232026] text-white shadow-2xl"},Lr={class:"no-scrollbar flex-1 overflow-y-auto px-6 pb-6"},Ar={key:0,class:"flex flex-col gap-5 py-8"},Or={class:"flex flex-col items-center gap-3 text-center"},Rr={class:"text-[15px] font-medium text-red-400"},Vr={class:"flex flex-col gap-3"},jr={key:0,class:"flex h-14 items-center justify-between rounded-[12px] border border-[#5A5864] bg-[#1F1D24] px-4"},Ur={class:"truncate text-[14px] text-white"},qr={key:0,class:"text-[12px] text-red-500"},Gr={class:"flex gap-2"},Wr={key:0,class:"flex flex-col items-center justify-center rounded-[12px] border border-[#5A5864] bg-[#1F1D24] px-4 py-8"},Nr={key:1,class:"flex flex-col gap-4 transition-opacity duration-200"},zr={class:"flex h-[52px] items-center justify-between px-4"},Yr={class:"flex items-center gap-3"},Kr={key:0,class:"size-[6px] rounded-full bg-white"},Jr=["src"],Xr={key:0,class:"px-4 pt-0 pb-5"},Hr={key:1,class:"mt-3 text-center text-[13px] text-[#EBE8EE]/80"},Zr={key:2,class:"mt-3 text-center text-[13px] text-red-400"},Qr={class:"flex h-[52px] items-center justify-between px-4"},es={class:"flex items-center gap-3"},ts={key:0,class:"size-[6px] rounded-full bg-white"},rs=["src"],ss={key:0,class:"px-4 pt-1 pb-5"},os={key:1,class:"mt-3 text-center text-[13px] text-[#EBE8EE]/80"},ns={key:2,class:"mt-3 text-center text-[13px] text-red-400"},ls={class:"flex h-[52px] items-center justify-between px-4"},is={class:"flex items-center gap-3"},as={key:0,class:"size-[6px] rounded-full bg-white"},cs={class:"flex items-center gap-1 opacity-80"}
1,us=["src"],ds=["src"],ps={key:0,class:"px-4 pt-3 pb-5"},fs={class:"mt-6",id:"continue-button-paybycard"},ms={key:0,class:"mt-3 text-center text-[13px] text-[#EBE8EE]/80"},vs={key:1,class:"mt-3 text-center text-[13px] text-red-400"},xs={class:"mt-4"},ys={class:"text-[12px] leading-[16px] text-[#EBE8EE]"},hs={key:0,class:"rounded px-1 py-0.5 font-bold text-[#D06BFF]"},gs={class:"mt-4 flex flex-col items-center"},bs={class:"flex items-center gap-4"},ws=["src"],Es=["src"],_s={class:"mt-3 flex flex-col items-center gap-1"},ks={class:"flex gap-1"},Ss={class:"mt-4 flex w-full flex-col gap-4 pt-2"},Ps={class:"group flex cursor-pointer items-center gap-2.5"},Cs={class:"text-[12px] leading-[16px] text-[#EBE8EE] transition-colors group-hover:text-white"},Fs=G({__name:"PaymentModal",props:{isOpen:{type:Boolean},clientSecret:{},stripeCustomerId:{},stripeInstance:{},initError:{}},emits:["update:isOpen","update:email"],setup(c,{emit:n}){const t=c,l=n,i=Oe(),{email:a,promocode:f,hasSeen80DiscountOffer:x,selectedPlan:v}=Ae(i),y=Ze(),g=m(!1),h=m(!1),F=m(!1),$=m(null),te=m(!1),W=m(""),K=m(""),Be=()=>{W.value=a.value,K.value="",te.value=!0},Ve=()=>{if(!Ce(W.value)){K.value="Please enter a valid email address";return}a.value=W.value,te.value=!1},P=m(null),re=m(!1),j=m(!1),ge=m(!1),be=m(null),L=m(null),X=m(null),we=m(null),ne=m(null),w=m(null),d=M(()=>{const o=(f.value||"").trim().toUpperCase();return o===ee.higherPromocode.title.toUpperCase()?"higher":o===ee.regularPromocode.title.toUpperCase()?"regular":null}),B=M(()=>v.value),N=o=>`â¬${o.toFixed(2)}`,{$fbq:le}=Qe(),E=kt("/conversion.php"),ie=M(()=>{const o=B.value;if(!o)return{todayLine:"â",discountPercent:0,renewalLine:"â",highlightLine:"You can cancel anytime."};const s=d.value==="higher"?o.priceDiscount:o.price,I=`${N(s)} for ${o.name}`,S=o.oldPrice?Math.round((1-s/o.oldPrice)*100):0;if(o.fullPriceId&&o.fullPrice&&o.fullPriceDuration&&o.fullPriceDurationType){const J=o.fullPriceDuration===1?o.fullPriceDurationType:`${o.fullPriceDuration} ${o.fullPriceDurationType}s`,Te=`${N(o.fullPrice)} every ${J}`,H=d.value==="higher"?"Discount applies only to the first billing cycle.":"Your subscription renews at full price. Cancel anytime.";return{todayLine:I,discountPercent:S,renewalLine:Te,highlightLine:H}}const U=o.duration===1?o.durationType:`${o.duration} ${o.durationType}s`,R=`${N(o.price)} every ${U}`;return{todayLine:I,discountPercent:S,renewalLine:R,highlightLine:"Your subscription renews automatically. Cancel anytime."}}),it=o=>new Promise(s=>setTimeout(s,o)),se=async()=>{if(!t.stripeCustomerId&&!a.value){P.value="Payment verification failed. Please contact support.";return}j.value=!0;try{for(let I=0;I<15;I++){const S=await Cr({customerId:t.stripeCustomerId??void 0,email:t.stripeCustomerId?void 0:a.value});if(S.state==="success"){y.push("/thankyou");return}if(S.state==="failed"){const U=S.error?.declineCode,R=S.error?.code,J=S.error?.message??S.message;J?P.value=J:U==="insufficient_funds"||R==="insufficient_funds"?P.value="Your card has insufficient funds. Try a different card.":P.value="Payment failed. Please try again.";return}await it(2e3)}P.value="Payment processing failed or took too long. Please try again or contact support."}catch(o){P.value="Payment verification failed. Please try again.",console.error("checkPayment polling error:",o)}finally{j.value=!1}};D([()=>t.isOpen,()=>t.clientSecret,()=>t.stripeCustomerId],([o])=>{!o||ge.value||!new URLSearchParams(window.location.search).get("setup_intent_client_secret")||(ge.value=!0,se())},{immediate:!0});const A=m(!1),O=m(!1),$e=m(!0),ae=m(!1),ce=m(!1),Ee=m(!1),ue=M(()=>A.value?"google":O.value?"apple":"card"),_e=M(()=>t.isOpen?!t.stripeInstance||!t.clientSecret||Ee.value||!ae.value||!ce.value:!1),k=m(ue.value),at=async()=>{if(!(!t.stripeInstance||!t.clientSecret)&&t.isOpen&&!Ee.value){ae.value=!1,ce.value=!1,Ee.value=!0;try{const o=B.value;if(!o)return;const s=d.value==="higher"?o.priceDiscount:o.price,I=Math.round(s*100),S=`${t.clientSecret}:${I}`;if(w.value!==S){w.value=S;try{L.value?.unmount?.()}catch{}L.value=null,X.value=null,be.value=null}const U=t.stripeInstance.paymentRequest({country:"US",currency:"eur",total:{label:"180SCORE",amount:I}
1,requestPayerName:!0,requestPayerEmail:!0}),R=await U.canMakePayment();if(console.log("Payment Request Availability:",R),R?(O.value=!!R.applePay,A.value=!!R.googlePay):(O.value=!1,A.value=!1),be.value=U,R&&!L.value){const Te=t.stripeInstance.elements({clientSecret:t.clientSecret}).create("paymentRequestButton",{paymentRequest:U,style:{paymentRequestButton:{type:"buy",theme:"light",height:"44px"}}});U.on("paymentmethod",async H=>{P.value=null;try{const de=await t.stripeInstance.confirmCardSetup(t.clientSecret,{payment_method:H.paymentMethod.id},{handleActions:!1});if(de.error){H.complete("fail"),console.error("PaymentRequest confirmCardSetup error:",de.error),await se();return}if(de.setupIntent?.status!=="succeeded"){H.complete("fail"),await se();return}H.complete("success"),await je(),await se()}catch(de){H.complete("fail"),P.value="Payment failed. Please try again.",console.error("PaymentRequest error:",de)}}),L.value=Te,k.value==="google"&&A.value&&oe("google"),k.value==="apple"&&O.value&&oe("apple")}}catch(o){console.error("Error checking wallet availability",o)}finally{ce.value=!0,ae.value=!0,Ee.value=!1}}},oe=o=>{if(!L.value)return;const s=o==="google"?we.value:ne.value;if(s&&X.value!==o){try{L.value.unmount?.()}catch{}s.innerHTML="",L.value.mount(s),X.value=o}};D([()=>t.isOpen,()=>_e.value,k,()=>A.value,()=>O.value,()=>L.value],async([o])=>{o&&(_e.value||L.value&&(await Me(),k.value==="google"&&A.value&&oe("google"),k.value==="apple"&&O.value&&oe("apple")))},{flush:"post"}),D([k,()=>A.value,()=>O.value],async([o])=>{if(await Me(),!_e.value){if(o==="card"){X.value=null;return}o==="google"&&A.value&&oe("google"),o==="apple"&&O.value&&oe("apple")}},{flush:"post"}),D([()=>t.stripeInstance,()=>t.clientSecret,B,d,()=>t.isOpen],([,,,,o],[,,,,s])=>{o&&!s&&(X.value=null,w.value=null,ae.value=!1,ce.value=!1),at()},{immediate:!0});const je=async()=>{try{if(t.stripeCustomerId)await Fr({email:a.value,stripeCustomerId:t.stripeCustomerId});else throw new Error("Stripe customer ID not found")}catch(o){console.error("Error sending funnel data:",o)}try{const o=B.value;if(o){const s=d.value==="higher"?o.priceDiscount:o.price,I=`purchase_${Date.now()}_${Math.random().toString(16).slice(2)}`,U=new URL(window.location.href).searchParams.get("fbclid"),R=document.cookie.match(/(?:^|;\s*)_fbp=([^;]+)/)?.[1]??null,J={email:a.value,value:s,currency:"eur",eventId:I,eventSourceUrl:window.location.href,clientUserAgent:navigator.userAgent,contentIds:[o.id],contentType:"product",contentName:o.name,initTimestamp:Math.floor(Date.now()/1e3),fbclid:U||void 0,fbp:R||void 0};await $fetch(E,{method:"POST",headers:{"Content-Type":"application/json"},body:J}),le("track","Purchase",{value:s,currency:"EUR",content_name:o.name,content_ids:[o.id],content_type:"product"},{eventID:I}),Z("purchase",{value:s,currency:"EUR",content_name:o.name,content_ids:[o.id],content_type:"product"})}}catch(o){console.error("Error sending conversion event:",o)}};D(()=>t.isOpen,o=>{o?(document.body.style.overflow="hidden",a.value?g.value=!Ce(a.value):g.value=!1):(F.value=!1,document.body.style.overflow="")}),D([A,O,$e],()=>{(k.value==="google"&&!A.value||k.value==="apple"&&!O.value||k.value==="card"&&ue.value!=="card")&&(k.value=ue.value)});const ct=M(()=>!Ce(a.value)),ut=M(()=>({layout:{type:"tabs"},terms:{card:"never"},wallets:{applePay:"never",googlePay:"never"}})),dt=M(()=>({appearance:{theme:"night",variables:{colorPrimary:"#D06BFF",colorBackground:"#1F1D24",colorText:"#EBE8EE",colorDanger:"#ef4444",fontFamily:"system-ui, sans-serif",spacingUnit:"4px",borderRadius:"8px"},rules:{".Input":{backgroundColor:"#1F1D24",border:"1px solid #5A5864",color:"#EBE8EE",padding:"12px"},".Input:focus":{border:"1px solid #D06BFF",boxShadow:"none"},".Label":{color:"#EBE8EE",fontSize:"12px",fontWeight:"700"},".Tab":{backgroundColor:"#1F1D24",border:"1px solid #5A5864",color:"#EBE8EE"},".Tab:hover":{border:"1px solid #D06BFF"},".Tab--selected":{backgroundColor:"#1F1D24",border:"1px solid #D06BFF",color:"#D06BFF"}}}})),pt=o=>{console.log("Card elements ready",o),$e.value=!0,$.value=o},ft=async()=>
1{if(!$.value){console.error("Elements instance not available");return}P.value=null,re.value=!0;try{const{error:o}=await $.value.submit();if(o){P.value=o.message??"Please check your card details.",console.error("Validation error:",o);return}if(!t.stripeInstance){console.error("Stripe instance not available");return}const{error:s}=await t.stripeInstance.confirmSetup({elements:$.value,confirmParams:{return_url:window.location.origin+bt().app.baseURL.replace(/\/$/,"")+"/final"},redirect:"if_required"});if(s){console.error("Setup confirmation error:",s),await se();return}await je(),await se()}catch(o){P.value="Payment failed. Please try again.",console.error("Payment error:",o)}finally{re.value=!1}};function Ie(o){ct.value||j.value||(k.value=o)}function mt(){if(!x.value){F.value=!0;return}l("update:isOpen",!1)}const Ue=()=>{f.value=ee.higherPromocode.title,x.value=!0},vt=()=>{Ue(),F.value=!1},xt=()=>{Ue(),F.value=!1};return(o,s)=>{const I=et;return u(),xe(Je,{to:"body"},[c.isOpen?(u(),p("div",Br,[r(F)?(u(),p("div",$r,[e("div",Ir,[e("button",{type:"button",onClick:vt,class:"absolute top-4 right-4 text-white","aria-label":"Close"},[...s[7]||(s[7]=[e("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M18 6L6 18",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"}),e("path",{d:"M6 6L18 18",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)])]),e("div",Tr,[e("div",null,[e("img",{src:r(T).offer80,alt:"Offer 80%"},null,8,Dr)]),s[8]||(s[8]=e("h2",{class:"text-center text-[22px] font-bold text-white"}," Special Discount Unlocked ",-1)),s[9]||(s[9]=e("p",{class:"mb-6 text-center text-xs leading-6 text-white"}," Get an exclusive discount on your first billing cycle. After that, your subscription continues at the full price. ",-1)),C(ye,{onClick:xt,title:"GET MY DISCOUNT"})])])])):b("",!0),e("button",{onClick:mt,class:"absolute top-[6px] left-4 z-50 flex h-8 w-8 items-center justify-center text-white transition-opacity hover:opacity-80"},[C(I,{icon:"chevron",class:"h-5 w-5"})]),e("div",Mr,[s[28]||(s[28]=e("header",{class:"flex h-auto shrink-0 items-center justify-between px-6 pt-6 pb-4"},[e("h2",{class:"text-[24px] leading-[32px] font-bold text-[#D06BFF]"}," Payment method ")],-1)),e("div",Lr,[t.initError?(u(),p("div",Ar,[e("div",Or,[s[10]||(s[10]=e("svg",{width:"44",height:"44",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("circle",{cx:"12",cy:"12",r:"10",stroke:"#ef4444","stroke-width":"1.5"}),e("path",{d:"M12 7v6",stroke:"#ef4444","stroke-width":"1.5","stroke-linecap":"round"}),e("circle",{cx:"12",cy:"16.5",r:"0.75",fill:"#ef4444"})],-1)),e("p",Rr,_(t.initError),1)]),e("div",Vr,[s[11]||(s[11]=e("p",{class:"text-[12px] font-bold text-white"},"Your email",-1)),r(te)?(u(),p(z,{key:1},[Ke(e("input",{type:"email","onUpdate:modelValue":s[0]||(s[0]=S=>me(W)?W.value=S:null),onInput:s[1]||(s[1]=S=>K.value=""),placeholder:"Enter new email",class:V(["h-14 w-full rounded-[12px] border bg-[#1F1D24] px-4 text-[14px] text-white placeholder-white/30 transition-colors outline-none",r(K)?"border-red-500":"border-[#D06BFF]"])},null,34),[[gt,r(W)]]),r(K)?(u(),p("p",qr,_(r(K)),1)):b("",!0),e("div",Gr,[e("button",{onClick:Ve,class:"h-11 flex-1 rounded-[10px] bg-[#D06BFF] text-[13px] font-bold text-white transition-opacity hover:opacity-80"}," Confirm "),e("button",{onClick:s[2]||(s[2]=S=>te.value=!1),class:"h-11 rounded-[10px] border border-[#5A5864] px-4 text-[13px] text-[#EBE8EE] transition-colors hover:border-white"}," Cancel ")])],64)):(u(),p("div",jr,[e("span",Ur,_(r(a)),1),e("button",{onClick:Be,class:"ml-3 shrink-0 text-[12px] font-bold text-[#D06BFF] transition-colors hover:text-white"}," Change ")]))])])):(u(),p(z,{key:1},[r(_e)?(u(),p("div",Wr,[...s[12]||(s[12]=[e("div",{class:"h-8 w-8 animate-spin rounded-full border-2 border-[#5A5864] border-t-[#D06BFF]"},null,-1)])])):(u(),p("div",Nr,[!c.clientSecret||r(A)||!r(ae)?(u(),p("div",{key:0,onClick:s[3]||(s[3]=S=>Ie("google")),class:V(["overflow-hidden rounded-[12px] border bg-[#1F1D24] transition-all duration-300",r(k)==="google"?"border-[#B923FF]":"border-[#5A5864]"])},[e("div",zr,[e("div",Yr,[e("div",{class:V(["flex h-4 w-4 items-center justify-center rounded-full border transition-colors",r(k)==="google"?"border-[#B923FF] bg-[#B923FF]":"border-[#
1E5E7EB] bg-[#FFFFFF]"])},[r(k)==="google"?(u(),p("div",Kr)):b("",!0)],2),s[13]||(s[13]=e("span",{class:"text-[14px] font-medium text-[#EBE8EE]"},"Google Pay",-1))]),e("img",{src:r(T).payGooglePay,alt:"Google Pay",style:{width:"30px",height:"12px"},width:"30px",height:"12px"},null,8,Jr)]),r(k)==="google"?(u(),p("div",Xr,[c.clientSecret?(u(),p("div",{key:0,ref_key:"googleWalletContainer",ref:we,class:"w-full"},null,512)):b("",!0),r(j)?(u(),p("p",Hr," Payment is processing. Please wait... ")):b("",!0),r(P)?(u(),p("p",Zr,_(r(P)),1)):b("",!0),s[14]||(s[14]=e("p",{class:"mt-4 text-center text-[12px] leading-[16px] text-[#EBE8EE]"}," Secured with Google Play ",-1))])):b("",!0)],2)):b("",!0),!c.clientSecret||r(O)||!r(ce)?(u(),p("div",{key:1,onClick:s[4]||(s[4]=S=>Ie("apple")),class:V(["overflow-hidden rounded-[12px] border bg-[#1F1D24] transition-all duration-300",r(k)==="apple"?"border-[#B923FF]":"border-[#5A5864]"])},[e("div",Qr,[e("div",es,[e("div",{class:V(["flex h-4 w-4 items-center justify-center rounded-full border transition-colors",r(k)==="apple"?"border-[#B923FF] bg-[#B923FF]":"border-[#E5E7EB] bg-[#FFFFFF]"])},[r(k)==="apple"?(u(),p("div",ts)):b("",!0)],2),s[15]||(s[15]=e("span",{class:"text-[14px] font-medium text-[#EBE8EE]"},"Apple Pay",-1))]),e("img",{src:r(T).payApple,alt:"Apple Pay",style:{width:"30px",height:"32px"},width:"30px",height:"32px"},null,8,rs)]),r(k)==="apple"?(u(),p("div",ss,[c.clientSecret?(u(),p("div",{key:0,ref_key:"appleWalletContainer",ref:ne,class:"w-full"},null,512)):b("",!0),r(j)?(u(),p("p",os," Payment is processing. Please wait... ")):b("",!0),r(P)?(u(),p("p",ns,_(r(P)),1)):b("",!0),s[16]||(s[16]=e("p",{class:"mt-4 text-center text-[12px] leading-[16px] text-[#EBE8EE]"}," Secured with App Store ",-1))])):b("",!0)],2)):b("",!0),r($e)?(u(),p("div",{key:2,onClick:s[5]||(s[5]=S=>Ie("card")),class:V(["overflow-hidden rounded-[12px] border bg-[#1F1D24] transition-all duration-300",r(k)==="card"?"border-[#B923FF]":"border-[#5A5864]"])},[e("div",ls,[e("div",is,[e("div",{class:V(["flex h-4 w-4 items-center justify-center rounded-full border transition-colors",r(k)==="card"?"border-[#B923FF] bg-[#B923FF]":"border-[#E5E7EB] bg-[#FFFFFF]"])},[r(k)==="card"?(u(),p("div",as)):b("",!0)],2),s[17]||(s[17]=e("span",{class:"text-[14px] font-medium text-[#EBE8EE]"},"Credit Card",-1))]),e("div",cs,[e("img",{src:r(T).payVisa,alt:"Visa",style:{width:"40px",height:"24px"},width:"40px",height:"24px"},null,8,us),e("img",{src:r(T).payMastercard,alt:"Mastercard",style:{width:"40px",height:"24px"},width:"40px",height:"24px"},null,8,ds)])]),r(k)==="card"?(u(),p("div",ps,[c.clientSecret?(u(),xe(r(gr),{key:0,stripe:c.stripeInstance,"client-secret":c.clientSecret,options:r(dt),onReady:pt},{default:ve(()=>[C(r(Sr),{options:r(ut)},null,8,["options"])]),_:1},8,["stripe","client-secret","options"])):b("",!0),e("div",fs,[C(ye,{id:"continue-button-paybycard",title:r(re)||r(j)?"Processing...":"Get My Plan",class:"mx-auto mb-0 h-[48px] w-full py-2",style:{"min-height":"0","border-radius":"10px"},disabled:r(re)||r(j),onClick:ft},null,8,["title","disabled"]),s[18]||(s[18]=e("p",{class:"mt-5 text-left text-[12px] leading-[16px] text-[#EBE8EE]/80"}," By providing your card information, you allow 180Score to charge your card for future payments in accordance with their terms. ",-1)),r(j)?(u(),p("p",ms," Payment is processing. Please wait... ")):b("",!0),r(P)?(u(),p("p",vs,_(r(P)),1)):b("",!0)])])):b("",!0)],2)):b("",!0)])),e("div",xs,[s[20]||(s[20]=e("p",{class:"mb-4 text-[14px] leading-[20px] font-medium text-[#EBE8EE]"}," Your subscription starts immediately after payment. ",-1)),e("p",ys,[q(" Today you pay: "+_(r(ie).todayLine)+" ",1),r(ie).discountPercent>0?(u(),p("span",hs,"("+_(r(ie).discountPercent)+"% off)",1)):b("",!0),s[19]||(s[19]=e("br",null,null,-1)),q(" Next renewal: "+_(r(ie).renewalLine),1)])]),e("div",gs,[e("div",bs,[e("img",{src:r(T).googlePlayMarket,alt:"Google Play",class:"h-8"},null,8,ws),e("img",{src:r(T).appStoreMarket,alt:"App Store",class:"h-8"},null,8,Es)]),e("div",_s,[e("div",ks,[(u(),p(z,null,Q(5,S=>e("svg",{width:"20",height:"20",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",key:S},[...s[21]||(s[21]=[e("path",{d:"M7 0L8.89 4.38L13.66 4.8L10 7.91L11.11 12.6L7 10.
115L2.89 12.6L4 7.91L0.34 4.8L5.11 4.38L7 0Z",fill:"#FACC15"},null,-1)])])),64))]),s[22]||(s[22]=e("p",{class:"mt-1 text-center text-[14px] leading-[20px] text-[#EBE8EE]"},[q(" 4.8 stars on"),e("br"),q("App Store & Google Play ")],-1))]),e("div",Ss,[e("label",Ps,[s[23]||(s[23]=e("div",{class:"flex h-3 w-3 shrink-0 items-center justify-center"},[e("svg",{width:"12",height:"10",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M1 4L3.5 6.5L9 1",stroke:"#23DF8C","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),e("span",Cs,_(r(ie).highlightLine),1)]),s[24]||(s[24]=e("label",{class:"group flex cursor-pointer items-center gap-2.5"},[e("div",{class:"flex h-3 w-3 shrink-0 items-center justify-center"},[e("svg",{width:"12",height:"10",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M1 4L3.5 6.5L9 1",stroke:"#23DF8C","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"})])]),e("span",{class:"text-[12px] leading-[16px] text-[#EBE8EE] transition-colors group-hover:text-white"}," You'll receive an email receipt every time your subscription renews. ")],-1))]),s[25]||(s[25]=e("div",{class:"mt-6 text-left text-[12px] leading-[16px] text-[#4f5561]"}," These purchases are automatically renewed subscriptions. Payment will be made using your Apple ID when you confirm your purchase. The subscription automatically renews if auto-renewal is not turned off at least 24 hours before the end of the current period. Your account will be paid for the renewal within 24 hours before the end of the current period. ",-1)),s[26]||(s[26]=e("div",{class:"mt-4 text-left text-[12px] leading-[16px] text-[#EBE8EE]"},[q(" By clicking continue, you accept the "),e("a",{href:"https://180score.ai/terms-of-service/",class:"text-[#D06BFF] underline hover:text-white"},"Terms of Service"),q(" and "),e("a",{href:"https://180score.ai/privacy-policy/",class:"text-[#D06BFF] underline hover:text-white"},"Privacy Policy"),q(". ")],-1)),s[27]||(s[27]=e("div",{class:"mt-4 text-left text-[12px] leading-[16px] text-[#4f5561]"}," You can manage and turn off automatic subscription renewal by going to your account settings in the App Store after the purchase. After cancellation, you will not receive a refund for the current billing period and you will continue to receive subscription content. The cancellation takes effect after the end of the period. ",-1))])],64))])])])):b("",!0),C(zt,{isOpen:r(h),"onUpdate:isOpen":s[6]||(s[6]=S=>me(h)?h.value=S:null)},null,8,["isOpen"])])}}}),Bs=Xe(Fs,[["__scopeId","data-v-ec1c8910"]]),$s="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.0547%207.67188L8.30469%200.921875C8.02344%200.640625%207.63672%200.5%207.25%200.5H1.97656C1.16797%200.5%200.5%201.16797%200.5%201.97656V7.25C0.5%207.63672%200.640625%208.02344%200.921875%208.30469L7.67188%2015.0547C7.95312%2015.3359%208.33984%2015.4766%208.72656%2015.4766C9.14844%2015.4766%209.53516%2015.3359%209.78125%2015.0547L15.0547%209.78125C15.3359%209.53516%2015.4766%209.14844%2015.4766%208.72656C15.4766%208.33984%2015.3008%207.95312%2015.0547%207.67188ZM3.10156%204.22656C2.50391%204.22656%201.97656%203.73438%201.97656%203.10156C1.97656%202.50391%202.50391%201.97656%203.10156%201.97656C3.73438%201.97656%204.22656%202.50391%204.22656%203.10156C4.22656%203.73438%203.73438%204.22656%203.10156%204.22656Z'%20fill='transparent'%20stroke='%2323DF8C'/%3e%3c/svg%3e",Is="data:image/svg+xml,%3csvg%20width='10'%20height='8'%20viewBox='0%200%2010%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.00781%205.93262L0.984375%203.90918C0.765625%203.69043%200.382812%203.69043%200.164062%203.90918C-0.0546875%204.12793%20-0.0546875%204.51074%200.164062%204.72949L2.59766%207.16309C2.81641%207.40918%203.19922%207.40918%203.41797%207.16309L9.59766%200.983398C9.81641%200.764648%209.81641%200.40918%209.59766%200.163086C9.37891%20-0.0556641%208.99609%20-0.0556641%208.77734%200.163086L3.00781%205.93262Z'%20fill='%2316A34A'/%3e%3c/svg%3e",Ts={class:"relative mb-6 overflow-hidden rounded-lg bg-[#1E1E1E] text-white"},Ds={class:"flex items-center gap-2 p-5"},Ms=["src"],Ls={class:"flex items-center justify-between gap-[15px] px-5 pb-5"},As={class:"flex h-[46px] flex-1 items-center rounded-lg border-4 border-[#593D75] bg-[#39274C] px-3"},Os={class:"mr-2 flex h-3 w-3 items-center justify-center"},Rs=["src"],Vs={class:"text-center text-sm font-medium text-white"},js={class:"flex w-1/4 items-center justify-center text-2xl font-bold"},Ne=G({__name:"PromoCode",props:{promocode:{},formattedTime:{}},setup(c){return(n,t)=>(u(),p("div",Ts,[e("div",Ds,[e("img",{src:r($s),alt:"",class:"h-[18px] w-[18px]"},null,8,Ms),t[0]||(t[0]=e("span",{class:"w-full text-lg leading-7 font-bold text-[#23DF8C]"}," Your promo code is applied! ",-1))]),t[1]||(t[1]=e("div",{class:"mb-5 border-t-2 border-dashed border-white/30"},null,-1)),e("div",Ls,[e("div",As,[e("div",Os,[e("img",{src:r(Is),alt:"",class:"h-[12px] w-[12px]"},null,8,Rs)]),e("span",Vs,_(c.promocode),1)]),e("div",js,_(c.formattedTime),1)]),t[2]||(t[2]=e("div",{class:"absolute top-1/2 left-[-10px] h-5 w-5 -translate-y-1/2 roun
1ded-full bg-[#1a171a]"},null,-1)),t[3]||(t[3]=e("div",{class:"absolute top-1/2 right-[-10px] h-5 w-5 -translate-y-1/2 rounded-full bg-[#1a171a]"},null,-1))]))}}),Us={class:"mx-auto flex min-h-screen w-full flex-col px-4 md:max-w-[600px]"},qs={class:"mb-10 flex items-center justify-center pt-5 text-white"},Gs={class:"sticky top-10 z-10 mb-12 flex h-14 w-full items-center justify-between rounded-[10px] bg-[#23DF8C] p-[9px]"},Ws={class:"flex-1 text-center font-bold text-white"},Ns={class:"mb-12 overflow-hidden rounded-2xl bg-[#232026] pb-6 text-white"},zs=["src"],Ys={class:"grid grid-cols-2 grid-rows-2 gap-x-6 gap-y-5 px-2"},Ks={class:"text-sm"},Js={class:"mb-12"},Xs={class:"flex flex-col gap-5"},Hs={class:"flex items-center gap-5"},Zs=["src"],Qs={class:"text-sm font-bold text-white"},eo={class:"mb-12 rounded-[10px] bg-[#FF236C] p-2.5 text-center text-lg font-bold text-white"},to={class:"mb-12"},ro={class:"mb-2.5 flex items-center justify-center gap-2.5"},so={class:"mb-12 rounded-[5px] bg-[#232026] p-2.5"},oo=["src"],no={class:"mb-5 rounded-[10px] bg-[#232026] px-5 pb-5 text-center text-white"},lo=["src"],io={class:"mb-12 flex flex-col gap-5 text-white"},ao={class:"text-sm"},co={class:"mb-5 flex flex-col gap-5 text-white"},uo={class:"mb-12"},po={class:"mb-12.5 rounded-[10px] bg-[#FF236C] p-2.5 text-center text-lg font-bold text-white"},fo={class:"mb-2.5 flex items-center justify-center gap-2.5"},mo={class:"mb-12"},vo={class:"flex flex-col gap-2.5 rounded-[10px] bg-[#232026] p-5"},xo={class:"mb-12 flex items-center justify-center gap-2 text-[11px] text-[#5A5864]"},yo=600,Eo=G({__name:"final",setup(c){const n=Oe(),{email:t,promocode:l,selectedPlan:i}=Ae(n),a=m(yo),f=wt("targetElement"),{$fbq:x}=Qe(),v="pk_live_51Puw4TDXzijwAlE5spoV2Mj45SSLoZjbrIbFst7WKUTrnfBzmFsUzM6ak60DKzcQVMXLoeO47ET1p6RjgqXh7RlT00P1v0IJfr",y=m(null),g=m(null),h=m(null),F=m(null),$=m(!1),te=Ze();he(()=>{t.value||te.push("/"),x("track","ViewContent",{}),Z("view_paywall"),new URLSearchParams(window.location.search).get("setup_intent_client_secret")&&($.value=!0);const B=localStorage.getItem("remainingTime");B&&(a.value=parseInt(B,10));const N=St(()=>{a.value>0?(a.value--,localStorage.setItem("remainingTime",a.value.toString())):clearInterval(N)},1e3)}),he(()=>{i.value||(i.value=ke.find(w=>w.id==="1-month")??null)});const W=m(null),K=M(()=>{const w=(l.value||"").trim().toUpperCase();return w===ee.higherPromocode.title.toUpperCase()?"higher":w===ee.regularPromocode.title.toUpperCase()?"regular":null}),Be=()=>{const w=i.value??ke.find(d=>d.id==="1-month");return w?w.fullPriceId?{priceId:K.value==="higher"?w.priceDiscountId:w.priceId,secondPhasePriceId:w.fullPriceId,mode:"phased",funnel:"modern-tariffs"}:{priceId:w.priceId,mode:"regular",funnel:"modern-tariffs"}:null};D([$,t,l,i],async()=>{if(!$.value||!Ce(t.value))return;const w=Be();if(!w)return;const d=JSON.stringify({email:t.value,...w});if(!(d===W.value&&h.value)){W.value=d,F.value=null,h.value=null,g.value=null;try{const B=await Pr({...w,email:t.value});h.value=B.clientSecret,g.value=B.customerId}catch(B){(B?.status??B?.response?.status)===409?F.value="You already have an active subscription. Please contact support if you need help.":F.value="Failed to initialize payment. Please try again.",console.error("getClientSecret error:",B)}}});const P=M(()=>{const w=Math.floor(a.value/60),d=a.value%60;return`${String(w).padStart(2,"0")}:${String(d).padStart(2,"0")}`});D(a,w=>{localStorage.setItem("remainingTime",w.toString())});const re=w=>{if(f.value){const B=f.value.getBoundingClientRect().top+window.pageYOffset-100;window.scrollTo({top:B,behavior:"smooth"})}Z("click_getMyPlan")},j=w=>{y.value=w},ge=[{label:"Match Analysis Skills",progress:56,progressColor:"#7F7482"},{label:"Match Analysis Skills",progress:90,progressColor:"#D06BFF"},{label:"Accuracy",progress:35,progressColor:"#7F7482"},{label:"Accuracy",progress:95,progressColor:"#D06BFF"},{label:"Stability",progress:35,progressColor:"#7F7482"},{label:"Stability",progress:90,progressColor:"#D06BFF"}],be=[{src:T.benefit1,title:"4x Prematch Strategies"},{src:T.benefit2,title:"Power charts"},{src:T.benefit3,title:"Full access to 180Score analytical platform"},{src:T.benefit4,title:"Prediction signals on the most profitable predictions"}],L=[{title:"Olatubosun Michael",description:"Top-notch app for accurate predictions! Consistently reliable, easy to use, and delivers great results. A must-have for any serious predictor definitely deserves five stars..",stars:5},{title:"Prodiy Gee",description:"This app is truly amazing, I love how user friendly it is. Most importantly the accuracy of the AI predictions...I cannot recommend it enough, try it yourself.",stars:5},{title:"Julius Ewoi",description:"Great app ð I rate it five stars ð keep up with good work guys I re
1commend you download it you will never regret,,it is the best AI prediction site big up for the great work",stars:5}],X=[{title:"Real-time team & player stats to get instant insights before match",icon:"star"},{title:"Smart performance comparison to rank teams based on key metrics",icon:"star"},{title:"AI-powered match predictions to increase accuracy with data-driven insights ",icon:"star"},{title:"Prediction signals & alerts so you never miss a profitable opportunity",icon:"star"},{title:"Detailed match breakdowns to understand every key factor before game ",icon:"star"},{title:"Pre-match & live predictions support to adapt strategies for every game situation",icon:"star"}],we=[{title:"What is your money-back guarantee policy?",description:"We offer a risk-free experience! If youâre not satisfied within the first 7 days, you can request a full refundâ no questions asked."},{title:"How often is the match data updated?",description:"We update all match data in real time â youâll always see the latest stats, odds, and AI predictions as the game unfolds."},{title:"What smart metrics are available in the app?",description:"180Score includes real-time power (RTP), expected performance, xP, similarity indexes, momentum shifts, and more â all powered by in-game data."},{title:"Can I customize my prediction insights?",description:"Yes. You can choose leagues, teams, prediction types, and get tailored alerts based on your preferences and goals."},{title:"Is 180Score suitable for beginners?",description:"Absolutely. We built 180Score to help both beginners and experienced predictors make smarter, data-driven decisions â no experience required."}];function ne(){$.value=!0,x("track","InitiateCheckout",{}),Z("initiate_checkout",{currency:"EUR",value:i.value?.price})}return(w,d)=>{const B=Et,N=Ut,le=et;return u(),p("div",null,[e("div",Us,[e("header",qs,[C(B,{class:"w-[6.563rem]"})]),e("div",Gs,[e("p",Ws,_(r(P)),1),e("a",{onClick:re,class:"flex-1 cursor-pointer rounded-[10px] bg-white p-[8px] text-center font-bold text-[#23DF8C]"}," GET MY PLAN ")]),e("div",Ns,[e("img",{alt:"Before and after using 180score.",src:r(T).paywall,class:"mx-auto mb-10 rounded-b-2xl"},null,8,zs),e("div",Ys,[(u(),p(z,null,Q(ge,E=>e("div",null,[e("p",Ks,_(E.label),1),C(Pt,{progress:E.progress,class:"h-3","progress-color":E.progressColor},null,8,["progress","progress-color"])])),64))])]),e("div",Js,[d[6]||(d[6]=e("h2",{class:"mb-5 text-center text-2xl text-white"},[q(" Your personalized "),e("span",{class:"text-[#D06BFF]"},"prediction strategy"),q(" is ready ")],-1)),e("div",Xs,[(u(),p(z,null,Q(be,E=>e("div",Hs,[e("img",{alt:"",src:E.src,class:"h-9 w-9 rounded-[5px]"},null,8,Zs),e("p",Qs,_(E.title),1)])),64))])]),e("div",eo," This offer ends in: "+_(r(P)),1),e("div",{class:"mb-5",ref_key:"targetElement",ref:f},[r(l)?(u(),xe(Ne,{key:0,promocode:r(l),formattedTime:r(P)},null,8,["promocode","formattedTime"])):b("",!0),C(N,{plans:r(ke),modelValue:r(i),"onUpdate:modelValue":d[0]||(d[0]=E=>me(i)?i.value=E:null),class:"mb-7"},null,8,["plans","modelValue"]),C(ye,{title:"GET MY PLAN",class:"mx-autow-full",onClick:ne})],512),e("div",to,[e("div",ro,[C(le,{icon:"lockOpen",class:"h-4 w-4 fill-white"}),d[7]||(d[7]=e("p",{class:"text-white"},"30-Day Money Back Guarantee",-1))]),d[8]||(d[8]=e("p",{class:"text-center text-xs text-[#5A5864]"}," Try 180Score risk-free! If you're not satisfied within 30 days, we'll refund your moneyâno questions asked. Your success is our priority. ",-1))]),e("div",so,[d[9]||(d[9]=e("p",{class:"mb-5 text-center text-sm text-white"}," Guaranteed Safe Checkout ",-1)),e("img",{class:"mx-auto w-full max-w-[320px] md:w-[80%]",alt:"Payment providers",src:r(T).providers},null,8,oo)]),e("div",no,[e("img",{alt:"Application showcase",src:r(T).phones,class:"mx-auto -mt-[20px] mb-4 w-[90%] max-w-[310px]"},null,8,lo),d[10]||(d[10]=e("p",{class:"mb-5 text-2xl font-bold"},"Turn Insights into Wins!",-1)),d[11]||(d[11]=e("p",{class:"mb-5 text-[13px]"}," Stop guessing - Start winning. With real-time AI-driven analysis, deep match insights, and smart predictions, youâll always be one step ahead of competition. ",-1)),d[12]||(d[12]=e("p",{class:"text-[13px] font-bold"}," Make smarter predictions & Maximize your profits! ",-1))]),e("div",io,[d[13]||(d[13]=e("p",{class:"text-center text-2xl"},"What You Get with 180Score",-1)),(u(),p(z,null,Q(X,E=>e("div",{key:E.title,class:"flex items-center gap-2.5"},[C(le,{icon:E.icon,class:"h-4 w-4 shrink-0 fill-[#D06BFF]"},null,8,["icon"]),e("p",ao,_(E.title),1)])),64))]),e("div",co,[d[14]||(d[14]=e("div",{class:"text-center"},[e("p",{class:"text-2xl text-[#D06BFF]"},"1 720 677+ people"),e("p",{class:"text-sm"},"have already chosen 180Score!")],-1)),(u(),p(z,null,Q(L,E=>C(Ct,_t({key:E.title},{ref_for:!0},E),null,16)),64))]),e("div",uo,[d[17]||(d[17]=e("p",{class:"mb-5 text-center text-2xl text-white"}," Don't miss a chance to become a PRO! ",-1)),e("div",po," This offer ends in: "+_(r(P)),1),e("div",null,[r(l)?(u(),xe(Ne,{key:0,promocode:r(l),formattedTime:r(P)},null,8,["promocode","formattedTime"])):b("",!0),C(N,{plans:r(ke),modelValue:r(i),"onUpdate:modelValue":d[1]||(d[1]=E=>me(i)?i.value=E:null),class:"mb-7"},null,8,["plans","modelValue"]),C(ye,{title:"GET MY PLAN",class:"mx-auto mb-4 w-full",onClick:ne}),e("div",fo,[C(le,{icon:"lockOpen",class:"h-4 w-4 fill-white"}),d[15]||(d[15]=e("p",{class:"text-white"},"30-Day Money Back Guarantee",-1))]),d[16]||(d[16]=e("p",{class:"text-center text-xs text-[#5A5864]"}," Try 180Score risk-free! If you're not satisfied within 30 days, we'll refund your moneyâno questions asked. Your success is our priority. ",-1))])]),e("div",mo,[d[18]||(d[18]=e("p",{class:"mb-5 text-center text-2xl text-white"},"People often Ask",-1)),e("div",vo,[(u(),p(z,null,Q(we,E=>
1C(Gt,{key:E.title,title:E.title,description:E.description},null,8,["title","description"])),64))])]),e("div",xo,[e("a",{href:"https://180score.ai/privacy-policy",class:"hover:underline",onClick:d[2]||(d[2]=E=>r(Z)("click_privacyPolicy"))},"Privacy Policy"),d[19]||(d[19]=e("span",null,"·",-1)),e("a",{href:"https://180score.ai/terms-of-service",class:"hover:underline",onClick:d[3]||(d[3]=E=>r(Z)("click_termsOfUse"))},"Terms of Service"),d[20]||(d[20]=e("span",null,"·",-1)),e("a",{href:"https://180score.ai/refund-policy",class:"hover:underline",onClick:d[4]||(d[4]=E=>r(Z)("click_refundPolicy"))},"Refund Policy")])]),C(r(fr),{"publishable-key":r(v),onLoad:j},{default:ve(()=>[C(Bs,{isOpen:r($),"onUpdate:isOpen":d[5]||(d[5]=E=>me($)?$.value=E:null),clientSecret:r(h),stripeCustomerId:r(g),stripeInstance:r(y),initError:r(F)},null,8,["isOpen","clientSecret","stripeCustomerId","stripeInstance","initError"])]),_:1},8,["publishable-key"])])}}});export{Eo 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.