import{a6 as e,k as s,E as i,aO as t}from"./vendor-element-plus.js?ver=3.1.8";import{aQ as a,W as n,Y as l,a5 as o,Z as r,ab as d,a9 as c,aa as m,_ as f}from"./vendor.js?ver=3.1.8";import{_ as v}from"./fc-bits-ui.js?ver=3.1.8";const p=["innerHTML"],u={class:"action-buttons"};const h=v({name:"Confirm",components:{Delete:e},emits:["no","yes"],props:{placement:{default:"top-end"},message:{default:"Are you sure to delete this?"},width:{default:170}},data:()=>({visible:!1}),methods:{hide(){this.visible=!1},confirm(){this.hide(),this.$emit("yes")},cancel(){this.hide(),this.$emit("no")}}},[["render",function(e,v,h,b,_,g){const $=s,k=a("Delete"),w=i,y=t;return n(),l(y,{width:h.width,onHide:g.cancel,visible:_.visible,"onUpdate:visible":v[2]||(v[2]=e=>_.visible=e),trigger:"click",placement:h.placement},{reference:o(()=>[f(e.$slots,"reference",{},()=>[d(w,null,{default:o(()=>[d(k)],void 0,!0),_:1})])]),default:o(()=>[r("p",{innerHTML:h.message},null,8,p),r("div",u,[d($,{size:"small",onClick:v[0]||(v[0]=e=>g.cancel())},{default:o(()=>[c(m(e.$t("No")),1)],void 0,!0),_:1}),d($,{type:"danger",size:"small",onClick:v[1]||(v[1]=e=>g.confirm())},{default:o(()=>[c(m(e.$t("Yes")),1)],void 0,!0),_:1})])],void 0),_:3},8,["width","onHide","visible","placement"])}]]);export{h as C};
