import{L as u}from"./LoadingButton-5082ea01.js";import{T as f}from"./DialogModal-332d0e9d.js";import{T as h}from"./DangerButton-390eea9c.js";import{T}from"./SecondaryButton-98bb4bb4.js";import{_ as x,r as n,o as b,d as w,e as o,h as a,t as i,a as c,g as l,n as C}from"./app-c16e0624.js";const y={props:["show","title","content","close","action","actionType","actionText","maxWidth"],components:{LoadingButton:u,TecDialogModal:f,TecDangerButton:h,TecSecondaryButton:T},data(){return{loading:!1}},methods:{doAction(){this.loading=!0,setTimeout(()=>{this.loading=!1,this.close()},250),this.action()}}},p=["innerHTML"],B={class:"flex items-center justify-between"};function k(v,e,t,D,s,d){const r=n("tec-secondary-button"),m=n("loading-button"),_=n("tec-dialog-modal");return b(),w(_,{show:t.show,onClose:e[1]||(e[1]=g=>t.close()),"max-width":t.maxWidth||"sm"},{title:o(()=>[a(i(t.title),1)]),content:o(()=>[c("span",{innerHTML:t.content},null,8,p)]),footer:o(()=>[c("div",B,[l(r,{onClick:e[0]||(e[0]=g=>t.close())},{default:o(()=>[a(" Cancel ")]),_:1}),l(m,{class:C(["ml-2",{"bg-red-500 hover:bg-red-600":t.actionType=="delete"}]),onClick:d.doAction,loading:s.loading,disabled:s.loading},{default:o(()=>[a(i(t.actionText),1)]),_:1},8,["onClick","loading","disabled","class"])])]),_:1},8,["show","max-width"])}const H=x(y,[["render",k]]);export{H as D};
