import{h as i}from"./app-DmVquuoP.js";import{_ as n}from"./ConversionPixels-C-TWwfGl.js";import{C as d}from"./circle-check-BnpJeIOu.js";import{o as c,C as u,l as m,A as l,B as f,n as e,u as a,t as p,I as x,e as _}from"./Button-d1z8wTLU.js";const b={class:"min-h-screen flex flex-col items-center justify-center bg-zinc-50 px-4"},h={class:"w-full max-w-md rounded-2xl border border-zinc-200 bg-white p-8 shadow-sm text-center"},y={class:"mx-auto flex h-14 w-14 items-center justify-center rounded-full bg-emerald-100 text-emerald-600"},g=["href"],C=Object.assign({layout:null},{__name:"ThankYou",props:{redirect_url:{type:String,default:"/"},redirect_label:{type:String,default:"Acessar área de membros"},conversion_pixels:{type:Object,default:()=>({})},order_id:{type:Number,default:null},order_amount:{type:Number,default:0}},setup(o){const s=_(null),r=o;return c(()=>{r.order_id&&r.order_amount>0&&s.value?.firePurchase&&s.value.firePurchase(r.order_amount,"BRL",String(r.order_id),!1,"approved")}),(v,t)=>(u(),m(x,null,[l(n,{ref_key:"conversionPixelsRef",ref:s,pixels:r.conversion_pixels},null,8,["pixels"]),l(a(i),null,{default:f(()=>[...t[0]||(t[0]=[e("title",null,"Obrigado pela compra",-1)])]),_:1}),e("div",b,[e("div",h,[e("div",y,[l(a(d),{class:"h-8 w-8"})]),t[1]||(t[1]=e("h1",{class:"mt-4 text-xl font-semibold text-zinc-900"}," Obrigado pela sua compra ",-1)),t[2]||(t[2]=e("p",{class:"mt-2 text-sm text-zinc-600"}," Seu pedido foi registrado. Acesse o conteúdo pelo link abaixo. ",-1)),e("a",{href:o.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"},p(o.redirect_label),9,g)])])],64))}});export{C as default};
