import{h as m}from"./app-BP7WKrvH.js";import{_ as p}from"./ConversionPixels-LmOH7cFI.js";import{C as x}from"./circle-check-hgc9l0LJ.js";import{C as n,l as d,A as a,B as _,n as e,u,t as c,x as b,H as h,e as y}from"./Button-C102TjBP.js";const g={class:"min-h-screen flex flex-col items-center justify-center bg-zinc-50 px-4"},v={class:"w-full max-w-md rounded-2xl border border-zinc-200 bg-white p-8 shadow-sm text-center"},w={class:"mx-auto flex h-14 w-14 items-center justify-center rounded-full bg-emerald-100 text-emerald-600"},k={class:"mt-2 text-sm text-zinc-600"},C=["href"],P=Object.assign({layout:null},{__name:"ThankYou",props:{redirect_url:{type:String,default:"/"},redirect_label:{type:String,default:"Acessar área de membros"},subtitle:{type:String,default:"Seu pedido foi registrado. Acesse o conteúdo pelo link abaixo."},show_button:{type:Boolean,default:!0},conversion_pixels:{type:Object,default:()=>({})},order_id:{type:Number,default:null},order_amount:{type:Number,default:0}},setup(t){const l=y(null);let i=!1;const r=t;function f(){if(i||!r.order_id||!(Number(r.order_amount)>0))return;const s=l.value;s?.firePurchase&&(i=!0,s.firePurchase(r.order_amount,"BRL",String(r.order_id),!1,"approved"))}return(s,o)=>(n(),d(h,null,[a(p,{ref_key:"conversionPixelsRef",ref:l,pixels:r.conversion_pixels,onReady:f},null,8,["pixels"]),a(u(m),null,{default:_(()=>[...o[0]||(o[0]=[e("title",null,"Obrigado pela compra",-1)])]),_:1}),e("div",g,[e("div",v,[e("div",w,[a(u(x),{class:"h-8 w-8"})]),o[1]||(o[1]=e("h1",{class:"mt-4 text-xl font-semibold text-zinc-900"}," Obrigado pela sua compra ",-1)),e("p",k,c(t.subtitle),1),t.show_button?(n(),d("a",{key:0,href:t.redirect_url,class:"mt-6 inline-flex w-full justify-center rounded-xl bg-[var(--color-primary,#0ea5e9)] px-4 py-3 text-sm font-semibold text-white shadow-sm hover:opacity-90 transition-opacity"},c(t.redirect_label),9,C)):b("",!0)])])],64))}});export{P as default};
