import{u as m}from"./useCreateDrawer-JEzOVO6Z.js";import{b6 as t}from"./bootstrap-Bqxdt4iG.js";import{u as i}from"./custom-links-BriKAUZK.js";import{u}from"./data-refresh-BZ1_-6mk.js";import{_ as f}from"./custom-link-form.vue_vue_type_script_setup_true_lang-CZahH4Fp.js";import{a1 as p,ai as l,aj as _,ak as d,p as k,a9 as e}from"../jse/index-index-BUJ_4tQs.js";const R=p({__name:"custom-link-create-drawer",setup(b){const r=i(),o=u(),{Drawer:s,formRef:n,handleSubmit:c}=m({createApi:a=>r.create(a),invalidateData:()=>o.invalidateCustomLinks(),title:t("page.customLinks.create")});return(a,x)=>(_(),l(e(s),{class:"w-[640px]","confirm-text":e(t)("page.table.button.save"),"cancel-text":e(t)("page.table.button.cancel")},{default:d(()=>[k(f,{ref_key:"formRef",ref:n,mode:"create",onSubmit:e(c)},null,8,["onSubmit"])]),_:1},8,["confirm-text","cancel-text"]))}});export{R as _};
