import{y as s,z as a,A as c}from"./local-6367da78.js";import{o as t,b as e}from"./app-a12cf07d.js";const o=async(a,c=!0)=>{try{let o=null;c&&(o=t());const r=await s(a);c&&o&&o.hide(),0==r.code&&(e("平仓成功","success"),window.location.reload())}catch(o){}},r=async(s,c=!0)=>{let o=null;try{c&&(o=t());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=t());const r=await c(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};
