import{w as e}from"./runtime-core.esm-bundler.v79eHMSw.js";import{t}from"./message-box.Ct1hG1qY.js";async function n(n,r=``,i=`Delete`,a={}){let{danger:o=!0}=a,s=(Array.isArray(r)?r:[r]).filter(Boolean);try{return await t.confirm(e(`div`,s.map(t=>e(`p`,{style:`margin: 0 0 6px`},t))),n,{confirmButtonText:i,cancelButtonText:`Cancel`,confirmButtonClass:o?`el-button--danger`:``,type:o?`warning`:`info`}),!0}catch{return!1}}export{n as t};