import{P as e,x as t}from"./authStore-BvQBJ9ky.js";import{ct as n,st as r}from"./index-Bg7bo8aA.js";function i(i,a){r.confirm({title:`取消离职交接？`,content:`取消后员工恢复为在职，资产不会被回收。`,okText:`确认取消`,okButtonProps:{danger:!0},cancelText:`继续交接`,onOk:async()=>{try{await t.cancel(i),n.success(`已取消离职交接`),a?.()}catch(t){throw n.error(e(t,`取消失败`)),t}}})}export{i as t};