import{y as s,z as a,A as t}from"./local-95ab843f.js";import{o as c,s as e}from"./auth-db23b820.js";const o=async(a,t=!0)=>{try{let o=null;t&&(o=c());const r=await s(a);t&&o&&o.hide(),0==r.code&&(e("平仓成功","success"),window.location.reload())}catch(o){}},r=async(s,t=!0)=>{let o=null;try{t&&(o=c());const r=await a(s);return o&&o.hide(),0==r.code&&(e("撤销成功","success"),!0)}catch(r){return o&&o.hide(),!1}},n=async(s,a=!0)=>{let o=null;try{a&&(o=c());const r=await t(s);return o&&o.hide(),0==r.code&&(e("撤销成功","success"),!0)}catch(r){return o&&o.hide(),!1}};export{o as C,r as a,n as o};
