useMessage-171aa63e.js 1.2 KB

1
  1. import{h as i,be as e,bf as t,bg as c,__tla as a}from"./index-2eab2d23.js";let m,l=Promise.all([(()=>{try{return a}catch{}})()]).then(async()=>{m=()=>{const{t:n}=i();return{info(o){e.info(o)},error(o){e.error(o)},success(o){e.success(o)},warning(o){e.warning(o)},alert(o){t.alert(o,n("common.confirmTitle"))},alertError(o){t.alert(o,n("common.confirmTitle"),{type:"error"})},alertSuccess(o){t.alert(o,n("common.confirmTitle"),{type:"success"})},alertWarning(o){t.alert(o,n("common.confirmTitle"),{type:"warning"})},notify(o){c.info(o)},notifyError(o){c.error(o)},notifySuccess(o){c.success(o)},notifyWarning(o){c.warning(o)},confirm:(o,r)=>t.confirm(o,r||n("common.confirmTitle"),{confirmButtonText:n("common.ok"),cancelButtonText:n("common.cancel"),type:"warning"}),delConfirm:(o,r)=>t.confirm(o||n("common.delMessage"),r||n("common.confirmTitle"),{confirmButtonText:n("common.ok"),cancelButtonText:n("common.cancel"),type:"warning"}),exportConfirm:(o,r)=>t.confirm(o||n("common.exportMessage"),r||n("common.confirmTitle"),{confirmButtonText:n("common.ok"),cancelButtonText:n("common.cancel"),type:"warning"}),prompt:(o,r)=>t.prompt(o,r,{confirmButtonText:n("common.ok"),cancelButtonText:n("common.cancel"),type:"warning"})}}});export{l as __tla,m as u};