System.register(["./index-legacy.DRKniymH.js","./transition-legacy.DZbCmrRe.js"],(function(t,e){"use strict";var i,s,w,l,a,o,n,c,r,f,d,m,u,p,g,y,x;return{setters:[t=>{i=t.d,s=t.G,w=t.t,l=t.o,a=t.c,o=t.e,n=t.w,c=t.u,r=t.b,f=t.f,d=t.a,m=t.H},t=>{u=t.Y,p=t.h,g=t.G,y=t.V,x=t.S}],execute:function(){const e={class:"stwlite-tw-fixed stwlite-tw-inset-0 stwlite-tw-overflow-y-auto"},v={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"},_={class:"stwlite-tw-mt-2"},h={class:"stwlite-tw-text-sm stwlite-tw-text-gray-500"},b={class:"stwlite-tw-mt-4 stwlite-tw-flex stwlite-tw-justify-end stwlite-tw-gap-3"},C=["disabled"];t("_",i({__name:"Confirmation",props:{isOpen:{type:Boolean,default:!1},processing:{type:Boolean,default:!1},title:{default:s("confirmation_title",wp.i18n.__("Confirmation","saveto-wishlist-lite-for-woocommerce"))},message:{default:s("confirmation_message",wp.i18n.__("Are you sure you want to confirm this action?","saveto-wishlist-lite-for-woocommerce"))},confirmText:{default:s("confirmation_confirm_text",wp.i18n.__("Confirm","saveto-wishlist-lite-for-woocommerce"))},cancelText:{default:s("confirmation_cancel_text",wp.i18n.__("Cancel","saveto-wishlist-lite-for-woocommerce"))}},emits:["confirmAction","closeAction"],setup(t,{emit:i}){const s=t,A=i,{isOpen:j,processing:T,title:k,message:B,confirmText:G,cancelText:O}=w(s),S=()=>{A("closeAction")},z=()=>{A("confirmAction")};return(t,i)=>(l(),a("div",{class:m(c(j)?"stwlite-tw-p-6":"")},[o(c(x),{appear:"",show:c(j),as:"template"},{default:n((()=>[o(c(u),{as:"div",class:"stwlite-tw-relative stwlite-tw-z-50",onClose:S},{default:n((()=>[o(c(p),{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:n((()=>i[0]||(i[0]=[r("div",{class:"stwlite-tw-fixed stwlite-tw-inset-0 stwlite-tw-bg-black stwlite-tw-bg-opacity-40"},null,-1)]))),_:1}),r("div",e,[r("div",v,[o(c(p),{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:n((()=>[o(c(g),{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:n((()=>[o(c(y),{as:"h3",class:"stwlite-tw-text-lg stwlite-tw-font-medium stwlite-tw-leading-6 stwlite-tw-text-gray-900"},{default:n((()=>[f(d(c(k)),1)])),_:1}),r("div",_,[r("p",h,d(c(B)),1)]),r("div",b,[r("button",{onClick:S,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"},d(c(O)),1),r("button",{onClick:z,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:c(T)},d(c(G)),9,C)])])),_:1})])),_:1})])])])),_:1})])),_:1},8,["show"])],2))}}))}}}));
