import{h as u}from"./app-DLP8qLDG.js";import{_ as c}from"./ConversionPixels-LmOH7cFI.js";import{C as m}from"./circle-check-hgc9l0LJ.js";import{o as f,C as a,l as i,A as l,B as p,n as e,u as n,t as d,x,H as _,e as b}from"./Button-C102TjBP.js";const h={class:"min-h-screen flex flex-col items-center justify-center bg-zinc-50 px-4"},y={class:"w-full max-w-md rounded-2xl border border-zinc-200 bg-white p-8 shadow-sm text-center"},g={class:"mx-auto flex h-14 w-14 items-center justify-center rounded-full bg-emerald-100 text-emerald-600"},v={class:"mt-2 text-sm text-zinc-600"},w=["href"],N=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 s=b(null),r=t;return f(()=>{r.order_id&&r.order_amount>0&&s.value?.firePurchase&&s.value.firePurchase(r.order_amount,"BRL",String(r.order_id),!1,"approved")}),(k,o)=>(a(),i(_,null,[l(c,{ref_key:"conversionPixelsRef",ref:s,pixels:r.conversion_pixels},null,8,["pixels"]),l(n(u),null,{default:p(()=>[...o[0]||(o[0]=[e("title",null,"Obrigado pela compra",-1)])]),_:1}),e("div",h,[e("div",y,[e("div",g,[l(n(m),{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",v,d(t.subtitle),1),t.show_button?(a(),i("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"},d(t.redirect_label),9,w)):x("",!0)])])],64))}});export{N as default};
