1import{_ as P}from"./BtL8RZO8.js";import{d as j,v as G,b as H,c as N,aP as g,bu as h,o as R,C as x,D as f,V as a,P as r,F as o,E as V,H as v,Y as _,X as c,h as i,Z as q}from"./BasuKg0Z.js";import{_ as A}from"./BP39s-pX.js";import{a as E}from"./DOyF7RZx.js";import{G as T,aB as z}from"./DdjJ_Nrq.js";import{_ as M}from"./u3femInp.js";import{a as U}from"./BbdHyzsU.js";import"./Dd_ShnRE.js";import"./xEFTc9Yt.js";import"./DyIB2CB2.js";const W={class:"relative mb-2 flex min-h-[10rem] w-full flex-col items-center justify-center px-4 py-6 lg:px-20"},F={class:"text-center text-xl font-black text-secondary xl:text-5xl",style:{"line-height":"130%"}},J={class:"my-4 text-lg font-normal text-secondary md:my-8"},L={key:0,class:"flex justify-center"},O={class:""},X={class:"flex justify-center"},ce=j({__name:"checkout-success",async setup(Y){let s,l;const k=T(),d=G(),m=H(),p=N(()=>m.query?.session_id),{data:n,error:u}=([s,l]=g(async()=>h(async()=>(await d.payment.latestPayment({session_id:m.query.session_id}))._data.data,{default:()=>({}),server:!0},"$JmH_-Pjc0e")),s=await s,l(),s);u.value&&console.error("error.purchase :>> ",u.value);const B=async e=>{try{const t=await d.payment.refersion({session_id:m.query.session_id,...e})}catch(t){console.error("refersion server error :>> ",t)}},{data:b}=([s,l]=g(async()=>h("price-page-data",async()=>(await d.pages.index({type:"dm-pricing"}))._data.data,{server:!0})),s=await s,l(),s);return R(async()=>{const e=localStorage.getItem("rfsn_v4_id");if(!u.value&&(k("event","purchase",{site:"data-mentor",total:n.value?.total,currency:n.value?.currency,transactionId:n.value?.stripe_id}),n.value?.customer_id&&e))try{const t={rfsn_v4_id:localStorage.getItem("rfsn_v4_id"),rfsn_v4_aid:localStorage.getItem("rfsn_v4_aid"),rfsn_v4_cs:localStorage.getItem("rfsn_v4_cs")};await B(t)}catch(t){console.error("error :>> ",t)}}),(e,t)=>{const $=P,y=q,w=A,I=E,S=z,C=M,D=U;return f(),x(D,null,{default:a(()=>[r(w,{hero:"",padding:"hero","dark-bottom":"",class:"flex flex-col items-center justify-center"},{default:a(()=>[o("div",W,[o("h1",F,[_(c(e.$t("Thank you for your purchase of"))+" ",1),t[0]||(t[0]=o("br",null,null,-1)),_(" "+c(e.$t("Enterprise DNA On-Demand!")),1)]),o("p",J,c(e.$t("Please expect an email from us shortly.")),1),r($),i(p)?v("",!0):(f(),V("div",L,[r(y,{to:"/",color:"primary",size:"xl"},{default:a(()=>[_(c(e.$t("Go Back To Homepage")),1)]),_:1})]))])]),_:1}),o("div",O,[i(n)?.customer_id&&i(p)?(f(),x(S,{key:0,recommended:"","hide-currency":"",types:["basic","pro"],"page-data":i(b),"session-id":i(p),"wrapper-classes":"px-4 "},{header:a(()=>[r(I,{hero:"",title:"Ready to supercharge your progress? ",subtitle:"Upgrade to Mentor subscription for personalized guidance and accelerated success!","text-color":"text-white",inline:""})]),after:a(()=>[o("div",X,[r(y,{to:"/",color:"primary",size:"xl"},{default:a(()=>[_(c(e.$t("Go Back To Homepage")),1)]),_:1})])]),_:1},8,["page-data","session-id"])):v("",!0)]),r(C,{dark:""})]),_:1})}}});
1export{ce 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.