!function(){function e(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function t(t){for(var r=1;r<arguments.length;r++){var l=null!=arguments[r]?arguments[r]:{};r%2?e(Object(l),!0).forEach((function(e){a(t,e,l[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):e(Object(l)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(l,e))}))}return t}function a(e,t,a){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}System.register(["./index-legacy-Yo-NYFcD.js","./index-legacy-Id3KUMO7.js","./index-legacy-Kv0l9_Sb.js","./index-legacy-ky7dV3bJ.js","./request-legacy-bbz3c_BQ.js","./index-legacy-dTEfJf0X.js","./use-route-legacy-WJQG9OQV.js","./use-placeholder-legacy-yxIe97AD.js"],(function(e,a){"use strict";var r,l,n,o,s,i,u,c,m,d,f,y,b,p,_,g,j,x,v,O;return{setters:[e=>{r=e.d,l=e.u,n=e.i,o=e.a,s=e.c,i=e.b,u=e.e,c=e.w,m=e.f,d=e.h,f=e.F,y=e.s},e=>{b=e.F,p=e.R,_=e.a,g=e.C,j=e.b},null,e=>{x=e.N},e=>{v=e.R},e=>{O=e.B},null,null],execute:function(){const a={class:"flex-auto py-4"},h={class:"px-4 mt-20"};e("default",r({__name:"name",setup(e){const r=l();function w(){r.back()}const P=n({axa_name:void 0,axa_mssc:"",axa_sycj_syxb_v2:"male"});function V(e){console.log("submit",e),v({url:"/aimooc/xnszr_audio/add",data:{aimooc_xnszr_audio:t(t({},P),{},{axa_is_system:2})}}).then((e=>{if(console.log("onSubmit res : ",e),"1"===e.code){const t=e.data.one_info;console.log("info : ",t),r.replace({name:"caiji-sy-record-id",params:{id:t.axa_sycj_zdysyid_v2}})}else console.log("res.msg : ",e.msg),y(e.msg)}))}return(e,t)=>{const r=x,l=b,n=p,y=_,v=g,S=O,k=j;return o(),s(f,null,[i(r,{title:"声音命名","left-arrow":"",onClickLeft:w}),u("div",a,[i(k,{class:"h-full flex flex-col",onSubmit:V},{default:c((()=>[i(v,{inset:""},{default:c((()=>[i(l,{modelValue:m(P).axa_name,"onUpdate:modelValue":t[0]||(t[0]=e=>m(P).axa_name=e),name:"声音名称",label:"声音名称",placeholder:"请输入我的声音名称",rules:[{required:!0,message:"声音名称不能为空"}]},null,8,["modelValue"]),i(l,{name:"性别",label:"性别",rules:[{required:!0,message:"性别不能为空"}]},{input:c((()=>[i(y,{modelValue:m(P).axa_sycj_syxb_v2,"onUpdate:modelValue":t[1]||(t[1]=e=>m(P).axa_sycj_syxb_v2=e),direction:"horizontal"},{default:c((()=>[i(n,{name:"male"},{default:c((()=>[d("男性")])),_:1}),i(n,{name:"female"},{default:c((()=>[d("女性")])),_:1})])),_:1},8,["modelValue"])])),_:1}),i(l,{modelValue:m(P).axa_mssc,"onUpdate:modelValue":t[2]||(t[2]=e=>m(P).axa_mssc=e),name:"声音描述",label:"声音描述",placeholder:"请输入我的声音描述",rows:"3",autosize:"",type:"textarea",rules:[{required:!0,message:"声音描述不能为空"}]},null,8,["modelValue"])])),_:1}),u("div",h,[i(S,{block:"",type:"primary","native-type":"submit"},{default:c((()=>[d(" 提交 ")])),_:1})])])),_:1})])],64)}}}))}}}))}();
