var D=Object.defineProperty,h=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var s=Object.getOwnPropertySymbols;var c=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var i=(e,a,t)=>a in e?D(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,o=(e,a)=>{for(var t in a||(a={}))c.call(a,t)&&i(e,t,a[t]);if(s)for(var t of s(a))p.call(a,t)&&i(e,t,a[t]);return e},d=(e,a)=>h(e,F(a));var m=(e,a)=>{var t={};for(var l in e)c.call(e,l)&&a.indexOf(l)<0&&(t[l]=e[l]);if(e!=null&&s)for(var l of s(e))a.indexOf(l)<0&&p.call(e,l)&&(t[l]=e[l]);return t};const r={xs:{span:12},sm:{span:12},lg:{span:6}},P={span:24},n={model:"Region",viewInPage:!1,properties:[{field:"id",label:"ID系统自动生成",defaultValue:void 0,form:{componentProps:{allowClear:!1,placeholder:"ID系统自动生成"},colProps:r,component:"InputNumber",rules:[{required:!0,message:"请输入ID系统自动生成！"}]},table:{}},{field:"code",label:"编号",defaultValue:void 0,form:{componentProps:{allowClear:!0,placeholder:"编号"},colProps:r,component:"Input",rules:[{required:!0,message:"请输入编号！"}]},table:{}},{field:"name",label:"名称",defaultValue:void 0,form:{componentProps:{allowClear:!0,placeholder:"名称"},colProps:r,component:"Input",rules:[{required:!0,message:"请输入名称！"}]},table:{}},{field:"createTime",label:"创建时间",defaultValue:void 0,form:{colProps:r,componentProps:{allowClear:!1,placeholder:["开始时间","结束时间"],format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD",showTime:!1},component:"RangePicker",rules:[{required:!0,message:"请输入CreateTime！"}]},table:{}},{field:"updateTime",label:"更新时间",defaultValue:void 0,form:{colProps:r,componentProps:{allowClear:!1,placeholder:["开始时间","结束时间"],format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD",showTime:!1},component:"RangePicker",rules:[{required:!0,message:"请输入UpdateTime！"}]},table:{}}]},I=["name","code"],M=["name","code"],Y=["name","code","createTime","updateTime"],b=["name","code","createTime","updateTime"],u=new Map(I.map((e,a)=>[e,a])),q=n.properties.filter(e=>I.includes(e.field)).map(l=>{var{field:e,label:a,form:w}=l,t=m(w,[]);return d(o({field:e,label:a,defaultValue:void 0},t),{required:!1,rules:[{required:!1}]})}).sort((e,a)=>{const t=u.get(e.field),l=u.get(a.field);return t-l}),f=new Map(M.map((e,a)=>[e,a])),v=n.properties.filter(e=>M.includes(e.field)).map(({field:e,label:a,defaultValue:t,form:l})=>d(o({field:e,label:a,defaultValue:t},l),{colProps:P})).sort((e,a)=>{const t=f.get(e.field),l=f.get(a.field);return t-l}),x=new Map(Y.map((e,a)=>[e,a])),C=n.properties.filter(e=>Y.includes(e.field)).map(({field:e,label:a,table:t})=>o({dataIndex:e,title:a},t)).sort((e,a)=>{const t=x.get(e.dataIndex),l=x.get(a.dataIndex);return t-l}),g=new Map(b.map((e,a)=>[e,a])),V=n.properties.filter(e=>b.includes(e.field)).map(({field:e,label:a,table:t})=>o({dataIndex:e,title:a},t)).sort((e,a)=>{const t=g.get(e.dataIndex),l=g.get(a.dataIndex);return t-l});export{C as c,V as d,v as f,q as s};
