import{h as n}from"./app-DtiVq4OS.js";import{_ as d}from"./ConversionPixels-C-TWwfGl.js";import{C as c}from"./circle-check-BnpJeIOu.js";import{o as u,C as f,l as m,A as l,B as p,n as e,u as a,t as i,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={class:"mt-2 text-sm text-zinc-600"},v=["href"],C=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."},conversion_pixels:{type:Object,default:()=>({})},order_id:{type:Number,default:null},order_amount:{type:Number,default:0}},setup(r){const o=_(null),t=r;return u(()=>{t.order_id&&t.order_amount>0&&o.value?.firePurchase&&o.value.firePurchase(t.order_amount,"BRL",String(t.order_id),!1,"approved")}),(w,s)=>(f(),m(x,null,[l(d,{ref_key:"conversionPixelsRef",ref:o,pixels:t.conversion_pixels},null,8,["pixels"]),l(a(n),null,{default:p(()=>[...s[0]||(s[0]=[e("title",null,"Obrigado pela compra",-1)])]),_:1}),e("div",b,[e("div",h,[e("div",y,[l(a(c),{class:"h-8 w-8"})]),s[1]||(s[1]=e("h1",{class:"mt-4 text-xl font-semibold text-zinc-900"}," Obrigado pela sua compra ",-1)),e("p",g,i(r.subtitle),1),e("a",{href:r.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"},i(r.redirect_label),9,v)])])],64))}});export{C as default};
