import{c as p,o as d,a as e,l as h,m as x,d as y,w as s,f as a,e as t,Y as v,Z as c,$ as w,t as r,a5 as _}from"./app-q0jdcHwC.js";import{r as g}from"./ToastSuccessMessage-DTQABN-g.js";function j(m,l){return d(),p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})])}const b={class:"fixed inset-0 z-10 w-screen overflow-y-auto"},k={class:"flex min-h-full items-center justify-center p-4 text-center sm:p-0"},C={class:"bg-white p-5 sm:p-8 relative"},M={class:"flex justify-center"},B={class:"mt-4 text-center text-gray-900 text-xl sm:text-3xl font-bold leading-9"},$={class:"mt-4 py-3.5 bg-slate-100 rounded-lg text-center text-slate-950 text-base"},S={class:"mt-4 text-center text-slate-700 text-lg font-normal leading-7 tracking-tight"},Y={class:"mt-4 w-full flex"},z={__name:"OrderConfirmModal",setup(m){const l=h(),n=x(),u=()=>{n.showOrderConfirmModal=!1,l.push("/")},f=()=>{n.showOrderConfirmModal=!1,l.push("/")};return(o,i)=>(d(),y(t(_),{as:"template",show:t(n).showOrderConfirmModal},{default:s(()=>[a(t(v),{as:"div",class:"relative z-50",onClose:f},{default:s(()=>[a(t(c),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:s(()=>[...i[0]||(i[0]=[e("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-50 transition-opacity"},null,-1)])]),_:1}),e("div",b,[e("div",k,[a(t(c),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:s(()=>[a(t(w),{class:"relative transform overflow-hidden rounded-2xl bg-white text-left shadow-xl transition-all my-8 md:my-0 w-full md:w-[538px]"},{default:s(()=>[e("div",C,[e("div",M,[a(t(g),{class:"w-20 h-20 text-green-500"})]),e("div",B,r(o.$t("Your order has been placed")),1),e("div",$,r(o.$t("Your order has been placed successfully"))+". ",1),e("div",S,r(o.$t("You will receive an order confirmation email with details of your order"))+". ",1),e("div",Y,[e("button",{onClick:u,class:"w-full text-center px-6 py-4 bg-primary rounded-[10px] text-white text-base font-medium leading-normal"},r(o.$t("Continue Shopping")),1)])])]),_:1})]),_:1})])])]),_:1})]),_:1},8,["show"]))}};export{z as _,j as r};
