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