var p=(f,o,t)=>new Promise((n,a)=>{var i=e=>{try{r(t.next(e))}catch(c){a(c)}},m=e=>{try{r(t.throw(e))}catch(c){a(c)}},r=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,m);r((t=t.apply(f,o)).next())});import{u as l}from"./useCreateDrawer-JEzOVO6Z.js";import{b6 as u}from"./bootstrap-Bqxdt4iG.js";import{u as _}from"./currencies-Bq32ahPb.js";import{u as d}from"./data-refresh-BZ1_-6mk.js";import{_ as b}from"./currency-form.vue_vue_type_script_setup_true_lang-2WEncv_c.js";import{a1 as x,ai as S,aj as w,ak as h,p as C,a9 as s}from"../jse/index-index-BUJ_4tQs.js";const $=x({__name:"currency-create-drawer",emits:["success"],setup(f,{emit:o}){const t=o,n=_(),a=d(),{Drawer:i,formRef:m,handleSubmit:r}=l({createApi:e=>p(null,null,function*(){return n.create(e)}),invalidateData:()=>a.invalidateCurrencies(),title:u("page.currencies.drawer.createTitle"),onSuccess:e=>{t("success",e)}});return(e,c)=>(w(),S(s(i),{class:"w-[520px]","confirm-text":s(u)("page.table.button.create"),"cancel-text":s(u)("page.table.button.cancel")},{default:h(()=>[C(b,{ref_key:"formRef",ref:m,mode:"create",onSubmit:s(r)},null,8,["onSubmit"])]),_:1},8,["confirm-text","cancel-text"]))}});export{$ as _};
