import{a6 as e,k as s,E as i,aO as t}from"./vendor-element-plus.js?ver=3.1.0";import{r as a,a as n,o as l,w as o,b as r,d,O as c,P as m,F as f}from"./vendor.js?ver=3.1.0";import{_ as v}from"./fc-bits-ui.js?ver=3.1.0";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,w){const $=s,_=a("Delete"),k=i,y=t;return l(),n(y,{width:h.width,onHide:w.cancel,visible:g.visible,"onUpdate:visible":v[2]||(v[2]=e=>g.visible=e),trigger:"click",placement:h.placement},{reference:o(()=>[f(e.$slots,"reference",{},()=>[d(k,null,{default:o(()=>[d(_)],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=>w.cancel())},{default:o(()=>[c(m(e.$t("No")),1)],void 0,!0),_:1}),d($,{type:"danger",size:"small",onClick:v[1]||(v[1]=e=>w.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};
