import{X as i}from"./index.fM6cvGYs.js";import{d as m,k as f,ai as y,o as e,c as r,F as l,a8 as p,M as _,O as g,a as k,u as B,S as v,T as x}from"./vue.1RczIYhx.js";import{_ as b}from"./_plugin-vue_export-helper.DlAUqK2U.js";import"./elementPlus.CXoFsoPv.js";const A=m({__name:"MainAttr",props:{attrs:{required:!0,type:Array}},setup(d){const c=d,u=f(()=>{const a=[];if(c.attrs.length===0)return a;const s=i.groupBy(c.attrs,"section"),o=i.sortBy(Object.keys(s),"asc");for(const n of o){const t=i.sortBy(s[n],"order");a.push({section:n,items:t})}return a});return(a,s)=>{const o=y("el-tag");return e(),r("div",null,[(e(!0),r(l,null,p(B(u),n=>(e(),r(l,null,[(e(!0),r(l,null,p(n.items,t=>(e(),r("div",{key:t.id,style:{display:"inline"}},[(e(),_(o,{key:t.id,type:t.description?"warning":"","disable-transitions":"",effect:"plain",round:"",size:"small",class:"ml-1"},{default:g(()=>[v(x(t.attr.name),1)]),_:2},1032,["type"]))]))),128)),s[0]||(s[0]=k("div",{class:"line-separator ml-1"},null,-1))],64))),256))])}}}),D=b(A,[["__scopeId","data-v-ddbd2fcb"]]);export{D as default};
