import{d as h,G as l,t as v,o as b,c as C,e as s,w as i,u as t,b as e,f as A,a as w,H as k}from"./index.DXvi0yH9.js";import{Y as B,h as r,G as T,V,S as G}from"./transition.CRNcmuQX.js";const N={class:"stwlite-tw-fixed stwlite-tw-inset-0 stwlite-tw-overflow-y-auto"},S={class:"stwlite-tw-flex stwlite-tw-min-h-full stwlite-tw-items-center stwlite-tw-justify-center stwlite-tw-p-4 stwlite-tw-text-center"},j={class:"stwlite-tw-mt-2"},z={class:"stwlite-tw-text-sm stwlite-tw-text-gray-500"},O={class:"stwlite-tw-mt-4 stwlite-tw-flex stwlite-tw-justify-end stwlite-tw-gap-3"},Y=["disabled"],I=h({__name:"Confirmation",props:{isOpen:{type:Boolean,default:!1},processing:{type:Boolean,default:!1},title:{default:l("confirmation_title",wp.i18n.__("Confirmation","saveto-wishlist-lite-for-woocommerce"))},message:{default:l("confirmation_message",wp.i18n.__("Are you sure you want to confirm this action?","saveto-wishlist-lite-for-woocommerce"))},confirmText:{default:l("confirmation_confirm_text",wp.i18n.__("Confirm","saveto-wishlist-lite-for-woocommerce"))},cancelText:{default:l("confirmation_cancel_text",wp.i18n.__("Cancel","saveto-wishlist-lite-for-woocommerce"))}},emits:["confirmAction","closeAction"],setup(d,{emit:f}){const m=d,o=f,{isOpen:a,processing:p,title:u,message:_,confirmText:x,cancelText:g}=v(m),n=()=>{o("closeAction")},y=()=>{o("confirmAction")};return(D,c)=>(b(),C("div",{class:k(t(a)?"stwlite-tw-p-6":"")},[s(t(G),{appear:"",show:t(a),as:"template"},{default:i(()=>[s(t(B),{as:"div",class:"stwlite-tw-relative stwlite-tw-z-50",onClose:n},{default:i(()=>[s(t(r),{as:"template",enter:"stwlite-tw-ease-out stwlite-tw-duration-300","enter-from":"stwlite-tw-opacity-0","enter-to":"stwlite-tw-opacity-100",leave:"stwlite-tw-ease-in stwlite-tw-duration-200","leave-from":"stwlite-tw-opacity-100","leave-to":"stwlite-tw-opacity-0"},{default:i(()=>c[0]||(c[0]=[e("div",{class:"stwlite-tw-fixed stwlite-tw-inset-0 stwlite-tw-bg-black stwlite-tw-bg-opacity-40"},null,-1)])),_:1}),e("div",N,[e("div",S,[s(t(r),{as:"template",enter:"stwlite-tw-ease-out stwlite-tw-duration-300","enter-from":"stwlite-tw-opacity-0 stwlite-tw-scale-95","enter-to":"stwlite-tw-opacity-100 stwlite-tw-scale-100",leave:"stwlite-tw-ease-in stwlite-tw-duration-200","leave-from":"stwlite-tw-opacity-100 stwlite-tw-scale-100","leave-to":"stwlite-tw-opacity-0 stwlite-tw-scale-95"},{default:i(()=>[s(t(T),{class:"stwlite-tw-w-full stwlite-tw-max-w-md stwlite-tw-transform stwlite-tw-overflow-hidden stwlite-tw-rounded-2xl stwlite-tw-bg-white stwlite-tw-p-6 stwlite-tw-text-left stwlite-tw-align-middle stwlite-tw-shadow-xl stwlite-tw-transition-all"},{default:i(()=>[s(t(V),{as:"h3",class:"stwlite-tw-text-lg stwlite-tw-font-medium stwlite-tw-leading-6 stwlite-tw-text-gray-900"},{default:i(()=>[A(w(t(u)),1)]),_:1}),e("div",j,[e("p",z,w(t(_)),1)]),e("div",O,[e("button",{onClick:n,class:"stwlite-tw-px-4 stwlite-tw-py-2 stwlite-tw-bg-gray-200 stwlite-tw-text-gray-800 stwlite-tw-rounded-lg hover:stwlite-tw-bg-gray-300"},w(t(g)),1),e("button",{onClick:y,class:"stwlite-tw-px-4 stwlite-tw-py-2 stwlite-tw-bg-red-600 stwlite-tw-text-white stwlite-tw-rounded-lg hover:stwlite-tw-bg-red-700",disabled:t(p)},w(t(x)),9,Y)])]),_:1})]),_:1})])])]),_:1})]),_:1},8,["show"])],2))}});export{I as _};
