import g from"./BaseForm-9df76103-1782572373740v=1.0.0.js";import{b as v}from"./signupTemplateApi-59fddc0d-1782572373740v=1.0.0.js";import{u as y}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import{a as _}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as u}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import{y as i,r,al as b,z as C,I as B,J as k,R as E,u as n,k as p}from"./vendor-866bb149-1782572373740v=1.0.0.js";import"./eventTypeApi-155a5531-1782572373740v=1.0.0.js";import"./PersonalFormCom.vue_vue_type_script_setup_true_lang-35f011c9-1782572373740v=1.0.0.js";import"./useSignupTemplate-94c0c1aa-1782572373740v=1.0.0.js";import"./Imgs-ec8274aa-1782572373740v=1.0.0.js";import"./useDynamicFormHook-1d702eb2-1782572373740v=1.0.0.js";import"./UnitFormCom-b59a8c14-1782572373740v=1.0.0.js";import"./TeamFormCom.vue_vue_type_script_setup_true_lang-81341bae-1782572373740v=1.0.0.js";import"./DoubleFormCom.vue_vue_type_script_setup_true_lang-3e4db69a-1782572373740v=1.0.0.js";import"./keepAlive-0ac97bbd-1782572373740v=1.0.0.js";const F=i({name:"signupTemplateAdd"}),N=i({...F,setup(R){const{closeCurrent:l}=y(),a=r({eventApplyMode:"person",name:"",eventTypeId:null,applyMemberType:"school"}),t=r(!1),f=()=>{l()};r("");const c=_(),d=async m=>{t.value=!0;try{let e=v,s="\u65B0\u589E\u6210\u529F",o=await e(m);o.code==0?(u({type:"success",message:`${s}!`}),sessionStorage.setItem("needRefresh","true"),l()):u.warning(o.msg),t.value=!1}catch{t.value=!1}};return(m,e)=>{const s=b("HZPageLayout");return C(),B(s,{isBack:!0,title:n(c).meta.title},{default:k(()=>[E(g,{value:n(a),"onUpdate:value":e[0]||(e[0]=o=>p(a)?a.value=o:null),loading:n(t),"onUpdate:loading":e[1]||(e[1]=o=>p(t)?t.value=o:null),onCancel:f,onSubmit:d},null,8,["value","loading"])]),_:1},8,["title"])}}});export{N as default};
