PageSourceSearch

https://expert-zoom.com/_nuxt/DWtphAZ7.js

js expert-zoom.com collected 2026-10-08 13:12:20 UTC 7,268 bytes, 1 lines download raw bytes

1import{_ as W}from"./Lt1Zv4Tf.js";import{_ as X,a as Y}from"./DK1wYdkC.js";import{_ as Z,a as tt}from"./DxpRrtvs.js";import{_ as et}from"./5HfIkQPr.js";import{_ as st}from"./YPngkvIZ.js";import{l as ot}from"./BzddkrCy.js";import{_ as it}from"./KQLg0_hw.js";import{u as rt}from"./CboHKqZC.js";import{d as nt,q as at,s as $,a as ct,c as m,K as lt,A as mt,E as ut,H as pt,B as dt,o as _t,e as S,f as t,h as a,g as e,n as ft,t as r,k as v,j as A,i as u,w as P,l as p,b as f,I as ht}from"./D-VwHHYr.js";import{u as xt}from"./DZ84TuMt.js";import{S as vt}from"./C02AuBLW.js";import{C as gt}from"./Dl5vQoqT.js";import{C as g}from"./_TYCPelA.js";import"./P1w8-vd2.js";import"./BEHD0UYf.js";import"./P6HuDbjz.js";import"./BBBgTKEx.js";import"./DvWSUwrP.js";import"./CfC33qcU.js";import"./XfJ4X_Vn.js";import"./ByJaHgLN.js";import"./CYkNnAzS.js";import"./CuIq5seO.js";import"./C2Gb7ItZ.js";import"./CnKflR2a.js";import"./BPgl2vTV.js";import"./fU518aDv.js";import"./Bsfj32Ho.js";import"./yNw53y6Z.js";import"./n30pYGXg.js";import"./BlFxR2Qb.js";import"./D4J96fkT.js";import"./CC95psTr.js";import"./BZLwuB6k.js";import"./DFA6TyyN.js";import"./CO25u_gh.js";import"./BxTxA1Pt.js";import"./B_f_Tve-.js";import"./CEDokJiU.js";import"./3EV08Om2.js";import"./Djm1JMXO.js";import"./M5cKuZuE.js";import"./COc20v4O.js";import"./p7NhFM4I.js";import"./C30qKEU7.js";import"./CAyh6WrR.js";import"./iujnKbBW.js";import"./DzdIo_X_.js";import"./D0a62VE5.js";import"./DQbHjrcn.js";import"./CqR6pJwD.js";import"./D4mNNIu7.js";import"./0wBdcdDv.js";import"./ObobZ-w3.js";import"./BxtwWC2o.js";import"./EEeU6yuw.js";import"./C0vZ0cs0.js";import"./BqABXo4g.js";import"./DaeKs7wi.js";import"./PjkSWu42.js";const bt={class:"container mx-auto px-0 max-w-[1440px] bg-stone-500 w-full min-h-screen"},yt={class:"flex md:flex-row flex-col items-stretch justify-center min-h-screen"},wt={class:"md:w-[50%] w-full md:min-h-screen flex flex-col bg-white items-center align-start pt-6 justify-start border-b md:px-8 px-4 pb-8"},Ct={key:0,class:"md:text-2xl md:font-bold text-center mb-4"},kt={class:"flex flex-col md:w-[60%] w-[98%] items-center justify-center"},$t={class:"flex items-start gap-4 w-full mt-8 mb-8"},St={class:"md:text-sm text-xs font-medium text-stone-800"},At={class:"flex items-start gap-4 w-full mb-16"},Pt={class:"md:text-sm text-xs font-medium text-stone-800"},Rt={class:"md:w-[50%] w-full md:min-h-screen relative px-8 md:pt-32 py-8 overflow-y-auto"},Ut={class:"relative z-10 text-white"},Et={class:"text-center mb-4"},It={class:"text-xl font-medium"},Nt={class:"flex justify-center mb-8"},qt={class:"flex -space-x-4"},Bt={class:"text-center mb-8"},Mt={class:"text-2xl font-bold"},Tt={class:"text-lg"},Ft={class:"px-4"},Qt={class:"text-2xl font-bold mb-8"},Vt={class:"space-y-8"},jt={class:"flex items-start"},Dt={class:"mr-4 mt-1 text-green-400"},Kt={class:"text-lg"},Ot={class:"flex items-start"},Ht={class:"mr-4 mt-1 text-green-400"},Lt={class:"text-lg"},zt={class:"flex items-start"},Gt={class:"mr-4 mt-1 text-green-400"},Jt={class:"text-lg"},os=nt({__name:"checkout",async setup(Wt){let b,y;const R=at(),U=$().public.apiUrl,w=$().public.stripeKey,{t:n,locale:E}=ct(),l=m(()=>R.params.countryCode?.toLowerCase()),{initRegion:I,regionCode:h}=xt();[b,y]=lt(()=>I(l.value)),await b,y(),mt("currentRegion",()=>({countryCode:l.value||"",regionCode:h.value||"",isGlobale:!0}));const N=rt(),q=ut();m(()=>q.currentUser?.billing_profile?.isPremium);const{getActiveQuestion:C,getExpertsRelatedToQuestion:i}=N,d=p(!1),x=p(!1),k=p(null),B=()=>{x.value=!0,d.value=!0;const o=l.value?.toUpperCase()||"FR",s=h.value?.split("-")[0]||"fr";k.value=$fetch("/stripe/create-subscription",{method:"POST",body:JSON.stringify({questionId:C.questionId,locale:s,country:o})}).catch(c=>(console.error("[CHECKOUT] Subscription prefetch error:",c),null))},M=p(!1),_=p(null),T=h,F=m(()=>i[0]?.title+i[0]?.first_name+" "+i[0]?.name),Q=m(()=>{if(l.value)return l.value.toUpperCase();const o=i?.[0]?.region?.code;if(!o)return null;const s=o.split("-");return s.length>1?s[1].toUpperCase():null}),V=m(()=>{if(!_.value)return n("checkout.flexibleModel");const o=ht(_.value),s=o?.trial?.formattedAmount,c=o?.recurring?.formattedAmount;return!s||!c?n("checkout.flexibleModel"):n("checkout.flexibleModelDynamic",{trialPrice:s,recurringPrice:c},n("checkout.flexibleModel"))}),j=()=>{M.value=!0},D=o=>{if(!o?.picture)return"";const s=o.picture.startsWith("expertPics/")?o.picture:`expertPics/${o.picture}`,c=s.includes(".webp")?s:`${s}.webp`;return`${U}/uploads/${c}`},K=async()=>{try{const o=l.value?.toUpperCase()||"FR",s=await $fetch(`/stripe/price-info/${E.value}/${o}`);_.value=s}catch(o){console.error("[CHECKOUT] Error fetching pricing data:",o)}};return pt(()=>{i.length===0&&dt(`/${l.value}`)}),_t(async()=>{w&&ot(w),K()}),(o,s)=>{const c=W,O=X,H=Y,L=tt,z=et,G=Z,J=st;return f(),S("div",bt,[t("div",yt,[t("div",wt,[a(c,{class:ft(`${d.value,"mb-6"}`),category:e(i)?.[0]?.category?.name},null,8,["class","category"]),a(O,{"payment-displayed":d.value,onQuestionAnswered:j,"expert-name":F.value,assistant:e(i)?.[0]?.assistant},null,8,["payment-displayed","expert-name","assistant"]),d.value?v("",!0):(f(),S("h2",Ct,r(e(n)("checkout.getAnswerFrom"))+" "+r(e(i)?.[0]?.assistant?.first_name)+" "+r(e(i)?.[0]?.assistant?.name),1)),!x.value&&e(i)[0]?.id?(f(),A(H,{key:1,"expert-id":e(i)[0]?.id,"region-code":e(T),onLaunchStripe:B},null,8,["expert-id","region-code"])):v("",!0),x.value?(f(),A(it,{key:2,class:"md:w-[80%] mx-auto","question-id":e(C).questionId,"region-country":Q.value,"preloaded-price-info":_.value,"preloaded-subscription":k.value},null,8,["question-id","region-country","preloaded-price-info","preloaded-subscription"])):v("",!0),t("div",kt,[t("div",$t,[a(e(vt),{class:"w-10 h-10 text-stone-600 flex-shrink-0"}),t("div",null,[t("p",St,[u(r(e(n)("checkout.confidentialityGuaranteed")),1),s[0]||(s[0]=t("br",null,null,-1)),u(r(e(n)("checkout.noDataSharing")),1)])])]),t("div",At,[a(e(gt),{class:"w-10 h-10 text-green-400 flex-shrink-0"}),t("div",null,[t("p",Pt,[u(r(e(n)("checkout.expertsVerified")),1),s[1]||(s[1]=t("br",null,null,-1)),u(r(e(n)("checkout.manualValidation")),1)])])])])]),t("div",Rt,[s[3]||(s[3]=t("div",{class:"absolute inset-0 bg-[url(/checkout-bg.webp)] bg-cover bg-center"},null,-1)),s[4]||(s[4]=t("div",{class:"absolute inset-0 bg-black/80 backdrop-blur-md"},null,-1)),t("div",Ut,[t("div",Et,[t("h3",It,r(e(n)("checkout.expertOnline",{category:e(i)[0]?.category?.name})),1)]),t("div",Nt,[t("div",qt,[a(G,{class:"border-2 border-white w-[120px] h-[120px]"},{default:P(()=>[a(L,{src:`${D(e(i)[0])}`},null,8,["src"]),a(z,null,{default:P(()=>[...s[2]||(s[2]=[u("CN",-1)])]),_:1})]),_:1})])]),t("div",Bt,[t("h2",Mt,r(e(i)[0]?.first_name)+" "+r(e(i)[0]?.n
1ame),1),t("p",Tt,r(e(n)("checkout.satisfiedClients",{count:3219})),1)]),a(J,{class:"my-16"}),t("div",Ft,[t("h3",Qt,r(e(n)("checkout.whatsIncluded")),1),t("div",Vt,[t("div",jt,[t("div",Dt,[a(e(g),{class:"w-6 h-6"})]),t("div",null,[t("p",Kt,r(e(n)("checkout.expertAnswers247")),1)])]),t("div",Ot,[t("div",Ht,[a(e(g),{class:"w-6 h-6"})]),t("div",null,[t("p",Lt,r(V.value),1)])]),t("div",zt,[t("div",Gt,[a(e(g),{class:"w-6 h-6"})]),t("div",null,[t("p",Jt,r(e(n)("checkout.localExpertConnection")),1)])])])])])])])])}}});export{os 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.