ss-component-new 1.1.252 → 1.1.253
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-BhjrAPhE.js → array-CWm2LBmk.js} +1701 -1661
- package/dist/array-DyMFtlR4.cjs +7 -0
- package/dist/{cloneDeep-BllTpMX-.js → cloneDeep-B7ARrx0h.js} +1 -1
- package/dist/{cloneDeep-B135w891.cjs → cloneDeep-BDzOfpB7.cjs} +1 -1
- package/dist/{index-BM97Nh7v.js → index-3NzfXDhk.js} +8 -8
- package/dist/{index-Ub-DS2ga.cjs → index-3ncadd-n.cjs} +1 -1
- package/dist/{index-MCv8h_HT.cjs → index-B1lESzpk.cjs} +1 -1
- package/dist/{index-BsUoHS_0.cjs → index-B5Fm5mr1.cjs} +3 -3
- package/dist/{index-X7YNR_bm.js → index-B6RdCQU4.js} +3 -3
- package/dist/index-B92_MojW.cjs +1 -0
- package/dist/{index-B9rOZR1k.js → index-BASoYcrU.js} +4 -4
- package/dist/{index-BubJ_6uh.js → index-BCOnsiBC.js} +1 -1
- package/dist/{index-LgF7m5cd.js → index-BKFkrbgp.js} +5 -5
- package/dist/{index-BtHcbXIL.cjs → index-BNiX-tj2.cjs} +1 -1
- package/dist/{index-C6QcbKBS.js → index-BVn9XisQ.js} +4 -4
- package/dist/{index-DMLGnO0b.js → index-BoOojDw-.js} +1 -1
- package/dist/{index-B3IqlUYG.cjs → index-Bp-Vqgkz.cjs} +1 -1
- package/dist/{index-BlWV5dab.cjs → index-BpfCH5My.cjs} +1 -1
- package/dist/index-BsGfXgSZ.js +665 -0
- package/dist/{index-g5lygwSm.cjs → index-BtrCLtfp.cjs} +1 -1
- package/dist/{index-CgKEpk2a.cjs → index-BxkFK6dD.cjs} +1 -1
- package/dist/{index-D6VayVA6.cjs → index-C5RHQr0o.cjs} +1 -1
- package/dist/{index-VN54J5oj.js → index-CDbcB1Fw.js} +6 -6
- package/dist/{index-_vDsdUJi.cjs → index-CGQDlgX-.cjs} +1 -1
- package/dist/{index-CXQfynOD.cjs → index-CIthfbvr.cjs} +1 -1
- package/dist/{index-CSuijRgr.js → index-CNPDa2xp.js} +7 -7
- package/dist/index-CTtglK3w.cjs +1 -0
- package/dist/{index-BYqzfeul.cjs → index-CXAsYcYF.cjs} +1 -1
- package/dist/{index-B7kLv-oH.js → index-Cd6eKBt6.js} +32 -28
- package/dist/{index-CKdmCGWv.js → index-CdCwMRa1.js} +1 -1
- package/dist/{index-Cm5IxLo3.js → index-Cp-JwN0E.js} +7 -7
- package/dist/index-D1dTAKxV.cjs +1 -0
- package/dist/{index-RusK-dxZ.cjs → index-D2c04gRc.cjs} +1 -1
- package/dist/{index-CCTPQ2Og.js → index-D3inZGZu.js} +6 -6
- package/dist/{index-D1-U0vrH.js → index-D6mFL7s6.js} +4 -4
- package/dist/{index-BWTusWqR.js → index-DANHTRnF.js} +48 -44
- package/dist/{index-CgZhftQO.js → index-DCFR7U_b.js} +4 -4
- package/dist/{index-Bg0BoMyK.cjs → index-DHfQsoC3.cjs} +1 -1
- package/dist/{index-DowLTE1s.js → index-DOr4o5ev.js} +1 -1
- package/dist/{index-CM3SjbuE.js → index-DRPDOftk.js} +3 -3
- package/dist/index-DZSlvnaa.cjs +1 -0
- package/dist/{index-D-SMmlK-.cjs → index-DbZbUOub.cjs} +1 -1
- package/dist/index-DcaaSs_a.js +31 -0
- package/dist/{index-DVjTXK6S.js → index-DjCaZ8Zl.js} +5 -5
- package/dist/{index-Bhbral-D.cjs → index-Dp4TFbqD.cjs} +1 -1
- package/dist/{index-BOXue8CC.js → index-DqQjcgXo.js} +7 -7
- package/dist/{index-BK5w6uMd.js → index-DqYY8LS-.js} +196 -172
- package/dist/{index-DRxZt4Wv.js → index-Ds_5NHNT.js} +1 -1
- package/dist/{index-13kbVn0I.js → index-Duop-clY.js} +9 -9
- package/dist/{index-PKHQ7Nyl.cjs → index-DzBceCbY.cjs} +1 -1
- package/dist/{index-BV-R8PQn.cjs → index-LGlIxzMg.cjs} +1 -1
- package/dist/{index-COjok9zl.cjs → index-ZTdcBfL7.cjs} +1 -1
- package/dist/{index-RVlvIJC4.cjs → index-djVN5_Sf.cjs} +1 -1
- package/dist/{index-CmW94cTp.cjs → index-ip4VAMkK.cjs} +1 -1
- package/dist/{index-B8vD15H0.cjs → index-nZMqLfXg.cjs} +1 -1
- package/dist/{index-B56weiCa.js → index-yR6R78G3.js} +4 -4
- package/dist/{index.vue_vue_type_script_setup_true_lang-TGwej3z-.cjs → index.vue_vue_type_script_setup_true_lang-Bs-qy0pK.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-T9gGbni6.js → index.vue_vue_type_script_setup_true_lang-CBfDRFHN.js} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-CZVR2xnq.js +896 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-jMr9WVDb.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DHAxO4Cg.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DIYf7qx2.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Bz3v6Nn0.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DRxEC4eG.js} +6 -6
- package/dist/{login-BSiDyISU.js → login-CxadfjHD.js} +2 -2
- package/dist/{login-DSB9dWl3.cjs → login-D9nwQPXh.cjs} +1 -1
- package/dist/{main-B6B8EHeL.cjs → main-BTJBYczL.cjs} +1 -1
- package/dist/{main-CNLqlWam.js → main-BVVwVykl.js} +6 -6
- package/dist/{menu-BsDSnWTk.js → menu-BqjJVKx7.js} +1 -1
- package/dist/{menu-CVJXAhG-.cjs → menu-BuVFL_u8.cjs} +1 -1
- package/dist/{modelComp-O0eO-YTR.js → modelComp-BsKtMeM7.js} +1 -1
- package/dist/{modelComp-BE3B5jke.cjs → modelComp-Im8BtgFY.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +7 -7
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/package.json +1 -1
- package/dist/array-DsZXIcD2.cjs +0 -7
- package/dist/index-B5d1OhV0.js +0 -905
- package/dist/index-Bsm0oDd2.cjs +0 -1
- package/dist/index-D_29gkCH.cjs +0 -1
- package/dist/index-nNNsd9if.js +0 -29
- package/dist/index-vFYm7SIH.cjs +0 -1
- package/dist/index-xOEFDxna.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-BrZ1zhys.js +0 -612
- package/dist/index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-CREMevxh.cjs +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";const me=require("./index-DbZbUOub.cjs"),e=require("vue"),Be=require("./index-ZTdcBfL7.cjs"),le=require("./index-B5Fm5mr1.cjs"),u=require("./cloneDeep-BDzOfpB7.cjs"),de=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ce=require("./menu-BuVFL_u8.cjs"),Ve=require("./index-nZMqLfXg.cjs"),Fl=require("./modelComp-Im8BtgFY.cjs"),al=require("./index-LGlIxzMg.cjs"),Ll=a=>a.match(/\((.*)\)/)[1],jl=a=>a==null?void 0:a.map(n=>(n=hl(n),n)),fl=async()=>{var n,l,o,r,p,c,h,d,v,V,C,I;let a;const s=await Be.getInsofDataApi({key:{type:"structure",pageKey:"menu",systemKey:sessionStorage.getItem("systemKey")}});return(c=(p=(r=(o=(l=(n=s.data.result)==null?void 0:n[0])==null?void 0:l.value)==null?void 0:o.pageData)==null?void 0:r.compData)==null?void 0:p[0])!=null&&c.contents&&(a=jl((I=(C=(V=(v=(d=(h=s.data.result)==null?void 0:h[0])==null?void 0:d.value)==null?void 0:v.pageData)==null?void 0:V.compData)==null?void 0:C[0])==null?void 0:I.contents)),a},Ul=a=>{var n,l,o,r;return{label:a==null?void 0:a.name,value:a==null?void 0:a.name,children:(r=me.getColumnChild((o=(l=(n=a==null?void 0:a.compData)==null?void 0:n.find(p=>(p==null?void 0:p.key)==="header"))==null?void 0:l.contents)==null?void 0:o[0]))==null?void 0:r.map(p=>({label:p==null?void 0:p.label,value:p==null?void 0:p.label}))}},nl=async a=>{var o,r,p,c;let s="";(o=u.cloneDeep(a))==null||o.forEach(h=>{s=s===""?s+h:s+"/"+h});const n=await Be.getInsofDataApi({key:{type:"structure",pageKey:s,systemKey:sessionStorage.getItem("systemKey"),parentTable:""}});let l=[];return((r=n==null?void 0:n.data)==null?void 0:r.type)==="success"&&(l=(c=(p=n.data.result)==null?void 0:p.map(h=>h.value.pageData))==null?void 0:c.filter(h=>(h==null?void 0:h.comp)==="Table"),l=l==null?void 0:l.map(h=>Ul(h))),l},Se=[{key:"单选",value:"Select"},{key:"日期",value:"Date"},{key:"长文本",value:"TextArea"},{key:"上传",value:"Upload"}],Ie=[{label:"输入框",value:"Input"},{label:"单选框",value:"Select"},{label:"日期选择器",value:"Date"},{label:"长文本",value:"TextArea"},{label:"附件选择器",value:"Upload"}],Jl=[{key:"label",label:"标签名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ie},{key:"originalContent",label:"初始值",type:"Input"},{key:"value",label:"固定值",type:"Input"}],Pl=async()=>{const a=await fl();return[{key:"label",label:"标签名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ie},{key:"originalContent",label:"初始值",type:"Select"},{key:"selectRelateType",label:"下拉绑定类型",type:"Select",options:[{label:"关联绑定列",value:"关联绑定列"},{label:"自定义绑定",value:"自定义绑定"}]},{key:"menuSelect",label:"菜单选项",type:"cascader",options:a},{key:"groupSelect",label:"组信息选项",type:"cascader",options:[]},{key:"contents",label:"选项值",type:"Input"}]},Rl=async()=>[{key:"menuSelect",label:"菜单选项",type:"cascader",options:await fl()},{key:"groupSelect",label:"组信息选项",type:"cascader",options:[]},{key:"contents",label:"选项值",type:"Input"}],Wl=e.computed(async()=>await Rl()),zl=e.computed(async()=>await Pl()),Ml=[{key:"label",label:"标签名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ie},{key:"originalContent",label:"初始值",type:"Date"}],Gl=[{key:"label",label:"标签名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ie},{key:"originalContent",label:"初始值",type:"Input"}],ql=[{key:"label",label:"标签名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ie}],G=[{key:"Input",value:Jl},{key:"Select",value:zl},{key:"Date",value:Ml},{key:"TextArea",value:Gl},{key:"Upload",value:ql}],Kl=[{value:"normal",label:"自定义"},{value:"add",label:"新增"},{value:"fix",label:"修改"},{value:"view",label:"查看"},{value:"delete",label:"删除"}],Ne=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Kl},{key:"background",label:"颜色",type:"Color"}],Oe=a=>{var n,l,o,r,p;let s=u.cloneDeep(a);if(((n=s==null?void 0:s.find(c=>(c==null?void 0:c.name)==="类型"))==null?void 0:n.type)==="Select"){const c=(p=(r=(o=(l=u.cloneDeep(s))==null?void 0:l.find(h=>(h==null?void 0:h.name)==="选项值"))==null?void 0:o.value)==null?void 0:r.split(","))==null?void 0:p.map(h=>({label:h,value:h}));s=s==null?void 0:s.map(h=>((h==null?void 0:h.name)==="初始值"&&(h.contents=c,h.value=(h==null?void 0:h.value)??""),h))}return s},hl=a=>{var o;let s={};const n=(o=a==null?void 0:a.filter(r=>!Array.isArray(r)))==null?void 0:o[0];s.label=n,s.value=n;const l=a==null?void 0:a.filter(r=>Array.isArray(r));return l&&(l==null?void 0:l.length)>0&&(s.children=l==null?void 0:l.map(r=>hl(r))),s},ze=async a=>{var r,p,c,h;let s=u.cloneDeep(a);const n=(r=a==null?void 0:a.find(d=>(d==null?void 0:d.name)==="下拉绑定类型"))==null?void 0:r.value,l=(p=a==null?void 0:a.find(d=>(d==null?void 0:d.name)==="类型"))==null?void 0:p.value,o=await Wl.value;return l==="Select"&&n===""?s=s==null?void 0:s.filter(d=>(d==null?void 0:d.name)!=="菜单选项"&&(d==null?void 0:d.name)!=="组信息选项"&&(d==null?void 0:d.name)!=="选项值"):l==="Select"&&n==="关联绑定列"?s!=null&&s.find(d=>(d==null?void 0:d.name)==="菜单选项"||(d==null?void 0:d.name)==="组信息选项")?s=(c=u.cloneDeep(s))==null?void 0:c.filter(d=>(d==null?void 0:d.name)!=="选项值"):s=[...u.cloneDeep(s),...o].filter(d=>(d==null?void 0:d.name)!=="选项值"):l==="Select"&&n==="自定义绑定"&&(s!=null&&s.find(d=>(d==null?void 0:d.name)==="选项值")?s=(h=u.cloneDeep(s))==null?void 0:h.filter(d=>(d==null?void 0:d.name)!=="菜单选项"&&(d==null?void 0:d.name)!=="组信息选项"):s=[...u.cloneDeep(s),...o].filter(d=>(d==null?void 0:d.name)!=="菜单选项"&&(d==null?void 0:d.name)!=="组信息选项")),s},Hl={class:"form-content"},Zl={__name:"index",props:{formRules:Object,itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number},emits:["change","contentChange"],setup(a,{emit:s}){const n=a,l=s,o=e.ref([]),r=e.ref(!1),p=e.ref([]),c=me.useFormToTableComp(Be.pinia),h=e.ref(!1),d=e.ref(),v=C=>{var k,x,t,f;const I=(x=(k=u.cloneDeep(n.itemData))==null?void 0:k.find(i=>(i==null?void 0:i.key)==="formContent"))==null?void 0:x.contents,b=u.cloneDeep(C.content);let S={};b&&((t=Object.values(b))==null?void 0:t.length)>0&&((f=Object.values(b))==null||f.forEach((i,m)=>{S[I[m].key]=i}));const y={content:S,index:n==null?void 0:n.index,buttonName:C==null?void 0:C.buttonName};l("change",y)},V=C=>{var S,y;if(!C)return;if(((S=Object.values(u.cloneDeep(C)))==null?void 0:S.length)>0){const k=(y=Object.values(u.cloneDeep(C)))==null?void 0:y.map(t=>t);let x="";k==null||k.forEach(t=>{t!==""&&t!==void 0&&(x=x===""?t:x+"/"+t)}),c.setSelectArray(k),c.setSelectString(x)}const I=u.cloneDeep(n.itemData),b=I==null?void 0:I.map(k=>{var x;return(k==null?void 0:k.key)==="formContent"&&((x=k.contents)==null||x.map((t,f)=>{var i,m,L,F,P,K,D,T,_,B,w,U,z,E,M,W,Z,J,se;return t.type=t!=null&&t.type?t.type:(F=(L=(m=(i=t==null?void 0:t.key)==null?void 0:i.split("$"))==null?void 0:m[1])==null?void 0:L.split("("))!=null&&F[0]?(P=Se==null?void 0:Se.find(re=>{var ie,ce,fe,he;return(re==null?void 0:re.key)===((he=(fe=(ce=(ie=t==null?void 0:t.key)==null?void 0:ie.split("$"))==null?void 0:ce[1])==null?void 0:fe.split("("))==null?void 0:he[0])}))==null?void 0:P.value:"Input",t.options=t!=null&&t.options?t.options:((T=(D=(K=t==null?void 0:t.key)==null?void 0:K.split("$"))==null?void 0:D[1])==null?void 0:T.length)>0?(U=(w=Ll((B=(_=t==null?void 0:t.key)==null?void 0:_.split("$"))==null?void 0:B[1]))==null?void 0:w.split(","))==null?void 0:U.map(re=>({label:re,value:re})):[],(z=t==null?void 0:t.key)!=null&&z.includes("$")&&(t.key=(M=(E=t==null?void 0:t.key)==null?void 0:E.split("$"))==null?void 0:M[0]),t.value=Array.isArray((W=Object.values(C))==null?void 0:W[f])?(J=(Z=Object.values(C))==null?void 0:Z[f])==null?void 0:J[0]:(se=Object.values(C))==null?void 0:se[f],t})),k});l("contentChange",{contents:b,index:n.index})};return e.watch(()=>n.itemData,()=>{var k,x,t,f,i,m,L,F,P,K,D;const C=(k=u.cloneDeep(n.itemData))==null?void 0:k.find(T=>(T==null?void 0:T.key)==="formContent"),I=(x=u.cloneDeep(n.itemData))==null?void 0:x.find(T=>(T==null?void 0:T.key)==="formButton"),b=(t=u.cloneDeep(n.itemData))==null?void 0:t.find(T=>(T==null?void 0:T.key)==="formFlex"),S=(f=u.cloneDeep(n.itemData))==null?void 0:f.find(T=>(T==null?void 0:T.key)==="formWrap"),y=(i=u.cloneDeep(n.itemData))==null?void 0:i.find(T=>(T==null?void 0:T.key)==="enableWrap");if((S==null?void 0:S.contents)==="纵向"?r.value=!1:r.value=!0,h.value=(y==null?void 0:y.contents)===void 0?!1:y==null?void 0:y.contents,d.value=typeof(b==null?void 0:b.contents)!="boolean"?!(!(b!=null&&b.contents)===""||((m=b==null?void 0:b.contents)==null?void 0:m.toUpperCase())==="VERTICAL"):b==null?void 0:b.contents,((L=C==null?void 0:C.contents)==null?void 0:L.length)>0&&Array.isArray(C==null?void 0:C.contents)){const T=[];(F=C==null?void 0:C.contents)==null||F.forEach((w,U)=>{var z,E,M,W,Z,J,se,re,ie,ce,fe,he;if((w==null?void 0:w.label)!==""){let ye=(w==null?void 0:w.label)??(w==null?void 0:w.key)??"",te=(w==null?void 0:w.type)??"",ue=(w==null?void 0:w.options)??[];if((z=w==null?void 0:w.key)!=null&&z.includes("$")&&(ye=(E=u.cloneDeep(w==null?void 0:w.key).split("$"))==null?void 0:E[0],((W=(M=u.cloneDeep(w==null?void 0:w.key).split("$"))==null?void 0:M[1])==null?void 0:W.length)>0)){const[_e,xe]=(J=(Z=u.cloneDeep(w==null?void 0:w.key).split("$"))==null?void 0:Z[1])==null?void 0:J.split(/[()]/);te=((se=Se.find(De=>(De==null?void 0:De.key)===_e))==null?void 0:se.value)??"",((re=xe==null?void 0:xe.split(","))==null?void 0:re.length)>0&&(ue=(ie=xe==null?void 0:xe.split(","))==null?void 0:ie.map(De=>({label:De,value:De})))}const ee=(fe=(ce=w==null?void 0:w.contents)==null?void 0:ce.split(","))==null?void 0:fe.map(_e=>({label:_e,value:_e}));T.push({label:ye??"",name:"t"+U,type:te===""?"Input":te,value:w!=null&&w.originalContent&&(w==null?void 0:w.originalContent)!==""?w.originalContent:w!=null&&w.value?w.value:(ue==null?void 0:ue.length)>0?(he=ue==null?void 0:ue[0])==null?void 0:he.value:(w==null?void 0:w.value)??"",id:(w==null?void 0:w.id)??U,contents:(ee==null?void 0:ee.length)>0?ee:ue??[],width:(w==null?void 0:w.width)??1,config:w==null?void 0:w.config})}});const _=(P=u.cloneDeep(T))==null?void 0:P.map(w=>w.value);let B="";_==null||_.forEach(w=>{w!==""&&w!==void 0&&(B=B===""?w:B+"/"+w)}),c.setSelectArray(_),c.setSelectString(B),o.value=T}else o.value=[];if(((K=I==null?void 0:I.contents)==null?void 0:K.length)>0){const T=[];(D=I==null?void 0:I.contents)==null||D.forEach((_,B)=>{(_==null?void 0:_.label)!==""&&T.push({label:(_==null?void 0:_.label)??"",id:(_==null?void 0:_.id)??B,type:(_==null?void 0:_.type)??"",background:_==null?void 0:_.background})}),p.value=T}else p.value=[]},{deep:!0,immediate:!0}),(C,I)=>(e.openBlock(),e.createElementBlock("div",Hl,[(e.openBlock(),e.createBlock(le.ssForm,{rowContents:o.value,formRules:a.formRules,buttonValue:p.value,isRowFlex:d.value,isEnableWrap:h.value,onOnButtonClick:v,onChange:V,isButtonRow:r.value,key:n.itemData},null,8,["rowContents","formRules","buttonValue","isRowFlex","isEnableWrap","isButtonRow"]))]))}},ol=de._export_sfc(Zl,[["__scopeId","data-v-c70efda7"]]),Je=e.ref(0),ml=a=>{var s;return!a||(a==null?void 0:a.length)===0?[]:(s=u.cloneDeep(a))==null?void 0:s.map(l=>(Je.value++,l={label:(l==null?void 0:l.label)??"",prop:(l==null?void 0:l.label)==="操作"?"operate":l==null?void 0:l.prop,width:l!=null&&l.width?parseInt(l.width):"",fixed:(l==null?void 0:l.fixed)??void 0,sortable:(l==null?void 0:l.sortable)??!1,align:(l==null?void 0:l.align)??"center",showOverflowTooltip:(l==null?void 0:l.showOverflowTooltip)??!0,isNotDrag:(l==null?void 0:l.isNotDrag)??!1,isEditCol:(l==null?void 0:l.isEditCol)??!1,isOperate:(l==null?void 0:l.isOperate)??!1,id:(l==null?void 0:l.id)??Je.value,children:ml(l==null?void 0:l.children)},l))},Ql=a=>{var n;return(n=u.cloneDeep(a))==null?void 0:n.map(l=>(Je.value++,l={label:(l==null?void 0:l.label)??"",prop:(l==null?void 0:l.label)==="操作"?"operate":l==null?void 0:l.prop,width:l!=null&&l.width?parseInt(l.width):"",fixed:(l==null?void 0:l.fixed)??void 0,sortable:(l==null?void 0:l.sortable)??!1,align:(l==null?void 0:l.align)??"center",showOverflowTooltip:(l==null?void 0:l.showOverflowTooltip)??!0,isNotDrag:(l==null?void 0:l.isNotDrag)??!1,isEditCol:(l==null?void 0:l.isEditCol)??!1,isOperate:(l==null?void 0:l.isOperate)??!1,id:(l==null?void 0:l.id)??Je.value,children:ml(l==null?void 0:l.children)},l))},yl=(a,s)=>{var n;return a!=null&&a.find(l=>(l==null?void 0:l.id)===s)?(n=u.cloneDeep(a))==null?void 0:n.filter(o=>(o==null?void 0:o.id)!==s):(a=a==null?void 0:a.map(l=>(l.children=yl(l==null?void 0:l.children,s),l)),a)},vl=(a,s)=>{var n;return a!=null&&a.find(l=>(l==null?void 0:l.id)===(s==null?void 0:s.id))?(n=u.cloneDeep(a))==null?void 0:n.map(o=>((o==null?void 0:o.id)===(s==null?void 0:s.id)&&(o=s),o)):(a=a==null?void 0:a.map(l=>(l.children=vl(l==null?void 0:l.children,s),l)),a)},kl=(a,s)=>{var n;return a!=null&&a.find(l=>{var o;return(l==null?void 0:l.id)===((o=s==null?void 0:s.contents)==null?void 0:o.id)})?(n=u.cloneDeep(a))==null?void 0:n.map(o=>{var r;return(o==null?void 0:o.id)===((r=s==null?void 0:s.contents)==null?void 0:r.id)&&(o=s==null?void 0:s.contents),o}):(a=a==null?void 0:a.map(l=>(l.children=kl(l==null?void 0:l.children,s),l)),a)},gl=(a,s)=>{var n;return a!=null&&a.find(l=>(l==null?void 0:l.id)===(s==null?void 0:s.id))?(n=u.cloneDeep(a))==null?void 0:n.map(o=>((o==null?void 0:o.id)===(s==null?void 0:s.id)&&(o!=null&&o.children||(o.children=[]),o.children.push(s.contents)),o)):(a=a==null?void 0:a.map(l=>(l.children=gl(l==null?void 0:l.children,s),l)),a)},Q=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"width",label:"宽度",type:"Input"},{key:"sortable",label:"是否支持排序",type:"Switch"},{key:"align",label:"文本所在位置",type:"Radio",options:[{label:"left",value:"左"},{label:"center",value:"中"},{label:"right",value:"右"}]},{key:"fixed",label:"是否固定列",type:"Switch"}],Xl=[{label:"view",value:"查看"},{label:"fix",value:"修改"},{label:"delete",value:"删除"}],Yl=[{label:"add",value:"新增"}],we=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Yl},{key:"background",label:"按钮背景色",type:"Color"}],$e=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Xl},{key:"textColor",label:"按钮颜色",type:"Color"}],bl=Ce.defineStore("modelTableComp",{state:()=>({tableIndex:0}),actions:{setTableIndex(a){this.tableIndex=a}}}),ea={class:"table-header-child"},la={class:"table-header-child-main"},aa={class:"table-header-child-content"},na={class:"table-header-child-content-item"},oa={class:"fix-button"},sa={key:0},ra={class:"form-content"},ta={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:s}){const n=a,l=s,o=e.ref(!1),r=e.ref(""),p=bl(Be.pinia),{tableIndex:c}=Ce.storeToRefs(p);e.ref(0);const h=e.ref(""),d=e.ref([]),v=e.ref([]),V=t=>{var i;o.value=!0;let f=[];Q==null||Q.forEach(m=>{let L=u.cloneDeep(c.value)+1;p.setTableIndex(L),f.push({label:m==null?void 0:m.label,name:m==null?void 0:m.label,type:m.type,value:t[m.key],id:c.value,contents:m==null?void 0:m.options})}),t!=null&&t.children&&((i=t==null?void 0:t.children)==null?void 0:i.length)>0&&f.push({children:t==null?void 0:t.children,isFormColHidden:!0}),h.value=t==null?void 0:t.id,d.value=f,v.value=f},C=t=>{l("fixChange",u.cloneDeep(t))},I=t=>{l("deleteChange",u.cloneDeep(t))},b=t=>{o.value=!0;let f=[];Q==null||Q.forEach(i=>{let m=u.cloneDeep(c.value)+1;p.setTableIndex(m),f.push({label:i==null?void 0:i.label,name:i==null?void 0:i.label,type:i.type,value:"",id:c.value,contents:i==null?void 0:i.options})}),r.value=t==null?void 0:t.id,d.value=f,v.value=f},S=t=>{let f=u.cloneDeep(v.value);f=f==null?void 0:f.map(i=>(i.children||(i.value=t==null?void 0:t[i.name]),i)),v.value=f},y=()=>{var f,i;d.value=v.value;let t={};if(h.value!=="")t.id=h.value,(f=d.value)==null||f.forEach(m=>{const L=Q==null?void 0:Q.find(F=>(F==null?void 0:F.label)===(m==null?void 0:m.label));L?t[L.key]=m.value:m!=null&&m.children&&m.children.length>0&&(t.children=m.children)}),o.value=!1,l("fixChange",{contents:u.cloneDeep(t),id:r.value,type:"fix"});else{let m=u.cloneDeep(c.value)+1;p.setTableIndex(m),t.id="id"+c.value,(i=d.value)==null||i.forEach(L=>{const F=Q==null?void 0:Q.find(P=>(P==null?void 0:P.label)===(L==null?void 0:L.label));F?t[F.key]=L.value:L!=null&&L.children&&L.children.length>0&&(t.children=L.children)}),o.value=!1,l("fixChange",{contents:u.cloneDeep(t),id:r.value,type:"add"})}h.value="",d.value=[],v.value=[]},k=()=>{o.value=!1,h.value="",r.value="",d.value=[],v.value=[]},x=t=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{l("deleteChange",t),Ce.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(t,f)=>{const i=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",ea,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n==null?void 0:n.tableChildContents,(m,L)=>(e.openBlock(),e.createElementBlock("div",la,[e.createElementVNode("div",aa,[e.createElementVNode("div",na,e.toDisplayString(m.label),1),e.createElementVNode("div",oa,[e.createVNode(i,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>b(m)},null,8,["onClick"]),e.createVNode(i,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>V(m)},null,8,["onClick"]),e.createVNode(i,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>x(m)},null,8,["onClick"])])]),m!=null&&m.children&&m.children.length>0?(e.openBlock(),e.createElementBlock("div",sa,[e.createVNode(Cl,{tableChildContents:m==null?void 0:m.children,onDeleteChange:I,onFixChange:C},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(le.ssDialog,{visible:o.value,onBeforeDestroy:k,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",ra,[(e.openBlock(),e.createBlock(le.ssForm,{rowContents:d.value,key:d.value,isEnableWrap:!0,onChange:S},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:k,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:y},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},ca=de._export_sfc(ta,[["__scopeId","data-v-e0fef72d"]]),ia={class:"table-header-child"},ua={class:"table-header-child-main"},pa={class:"table-header-child-content"},da={class:"table-header-child-content-item"},fa={class:"fix-button"},ha={key:0},ma={class:"form-content"},ya={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:s}){const n=a,l=s,o=e.ref(!1),r=e.ref(""),p=bl(Be.pinia),{tableIndex:c}=Ce.storeToRefs(p),h=e.ref(""),d=e.ref([]),v=e.ref([]),V=t=>{l("fixChange",u.cloneDeep(t))},C=t=>{var i;o.value=!0;let f=[];Q==null||Q.forEach(m=>{let L=u.cloneDeep(c.value)+1;p.setTableIndex(L),f.push({label:m==null?void 0:m.label,name:m==null?void 0:m.label,type:m.type,value:t[m.key],id:c.value,contents:m==null?void 0:m.options})}),t!=null&&t.children&&((i=t==null?void 0:t.children)==null?void 0:i.length)>0&&f.push({children:t==null?void 0:t.children,isFormColHidden:!0}),h.value=t==null?void 0:t.id,d.value=f,v.value=f},I=t=>{o.value=!0;let f=[];Q==null||Q.forEach(i=>{let m=u.cloneDeep(c.value)+1;p.setTableIndex(m),f.push({label:i==null?void 0:i.label,name:i==null?void 0:i.label,type:i.type,value:"",id:c.value,contents:i==null?void 0:i.options})}),r.value=t==null?void 0:t.id,d.value=f,v.value=f},b=t=>{let f=u.cloneDeep(v.value);f=f==null?void 0:f.map(i=>(i.children||(i.value=t==null?void 0:t[i.name]),i)),v.value=f},S=()=>{var f,i;d.value=v.value;let t={};if(h.value!=="")t.id=h.value,(f=d.value)==null||f.forEach(m=>{const L=Q==null?void 0:Q.find(F=>(F==null?void 0:F.label)===(m==null?void 0:m.label));L?t[L.key]=m.value:m!=null&&m.children&&m.children.length>0&&(t.children=m.children)}),o.value=!1,l("fixChange",{contents:u.cloneDeep(t),id:r.value,type:"fix"});else{let m=u.cloneDeep(c.value)+1;p.setTableIndex(m),t.id="idChild"+c.value,(i=d.value)==null||i.forEach(L=>{const F=Q==null?void 0:Q.find(P=>(P==null?void 0:P.label)===(L==null?void 0:L.label));F?t[F.key]=L.value:L!=null&&L.children&&L.children.length>0&&(t.children=L.children)}),o.value=!1,l("fixChange",{contents:u.cloneDeep(t),id:r.value,type:"add"})}h.value="",d.value=[],v.value=[]},y=()=>{o.value=!1,h.value="",r.value="",d.value=[],v.value=[]},k=t=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{l("deleteChange",t),Ce.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},x=t=>{l("deleteChange",t)};return(t,f)=>{const i=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",ia,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n==null?void 0:n.tableChildContents,(m,L)=>(e.openBlock(),e.createElementBlock("div",ua,[e.createElementVNode("div",pa,[e.createElementVNode("div",da,e.toDisplayString(m.label),1),e.createElementVNode("div",fa,[e.createVNode(i,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>I(m)},null,8,["onClick"]),e.createVNode(i,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>C(m)},null,8,["onClick"]),e.createVNode(i,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>k(m)},null,8,["onClick"])])]),m!=null&&m.children&&m.children.length>0?(e.openBlock(),e.createElementBlock("div",ha,[e.createVNode(ca,{tableChildContents:m==null?void 0:m.children,onDeleteChange:x,onFixChange:V},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(le.ssDialog,{visible:o.value,onBeforeDestroy:y,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",ma,[(e.openBlock(),e.createBlock(le.ssForm,{rowContents:d.value,key:d.value,isEnableWrap:!0,onChange:b},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:y,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:S},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},Cl=de._export_sfc(ya,[["__scopeId","data-v-cc311a5f"]]),va={class:"table-operate-content"},ka={class:"table-operate-item"},ga={class:"operate-title"},ba={class:"operate-content"},Ca={class:"fix-content"},Da={class:"fix-content-label"},xa={class:"fix-button"},Ea={key:0},_a={class:"operate-title"},Na={class:"operate-content"},wa={class:"fix-content"},$a={class:"fix-content-label"},Ba={class:"fix-button"},Va={class:"operate-title"},Ta={class:"operate-content"},Aa={class:"fix-content"},Ia={class:"fix-content-label"},Sa={class:"fix-button"},Oa={class:"operate-title"},Fa={class:"operate-content"},La={class:"fix-content"},ja={class:"fix-content-label"},Ua={class:"fix-button"},Ja={class:"operate-content"},Pa={style:{display:"flex","justify-content":"space-between"}},Ra={class:"form-content"},Wa={class:"form-content"},za={class:"form-content"},Ma={class:"form-content"},Ga={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:s}){const n=a,l=s,o=e.ref([]),r=e.ref(!1),p=e.ref(!1),c=e.ref([]),h=e.ref(!1),d=e.ref([]),v=e.ref(!1),V=e.ref([]),C=e.ref(""),I=e.ref(""),b=e.ref([]),S=e.ref([]),y=e.ref([]),k=e.ref([]),x=e.ref(!1),t=e.ref([]),f=e.ref([]),i=e.ref(0),m=e.ref([]),L=e.ref([]),F=e.ref([]),P=()=>{x.value=!0;let g=[];we==null||we.forEach(N=>{i.value++,g.push({label:N==null?void 0:N.label,name:N==null?void 0:N.label,type:N.type,value:(N==null?void 0:N.key)==="background"?"var(--ssComponent-primary-color)":"",id:i.value,contents:N==null?void 0:N.options})}),t.value=g,f.value=g},K=()=>{var N,A;p.value=!0;let g=[];(A=(N=G==null?void 0:G.find($=>($==null?void 0:$.key)==="Input"))==null?void 0:N.value)==null||A.forEach($=>{i.value++,g.push({label:$==null?void 0:$.label,name:$==null?void 0:$.label,type:$.type,value:($==null?void 0:$.label)==="类型"?"Input":"",id:i.value,contents:$==null?void 0:$.options})}),m.value=g,L.value=g},D=async g=>{var N,A,$,H,q,pe,R;if((g==null?void 0:g.类型)!==((A=(N=L.value)==null?void 0:N.find(j=>(j==null?void 0:j.label)==="类型"))==null?void 0:A.value)){let j=[],ae=await((H=($=G==null?void 0:G.find(Y=>(Y==null?void 0:Y.key)===((g==null?void 0:g.类型)===""?"Input":g==null?void 0:g.类型)))==null?void 0:$.value)==null?void 0:H.value)?await((R=(pe=G==null?void 0:G.find(Y=>(Y==null?void 0:Y.key)===((g==null?void 0:g.类型)===""?"Input":g==null?void 0:g.类型)))==null?void 0:pe.value)==null?void 0:R.value):(q=G==null?void 0:G.find(Y=>(Y==null?void 0:Y.key)===((g==null?void 0:g.类型)===""?"Input":g==null?void 0:g.类型)))==null?void 0:q.value;ae==null||ae.forEach(Y=>{i.value++,j.push({label:Y==null?void 0:Y.label,name:Y==null?void 0:Y.label,type:Y.type,value:(g==null?void 0:g[Y.label])??"",id:i.value,contents:Y==null?void 0:Y.options})}),L.value=j,m.value=j}else{let j=u.cloneDeep(m.value);j=j==null?void 0:j.map(ae=>(ae.value=g==null?void 0:g[ae.name],ae)),L.value=j}},T=async g=>{var $,H,q,pe,R;p.value=!0;let N=[];const A=await((H=($=G==null?void 0:G.find(j=>(j==null?void 0:j.key)===((g==null?void 0:g.type)===""?"Input":g==null?void 0:g.type)))==null?void 0:$.value)==null?void 0:H.value)?await((R=(pe=G==null?void 0:G.find(j=>(j==null?void 0:j.key)===((g==null?void 0:g.type)===""?"Input":g==null?void 0:g.type)))==null?void 0:pe.value)==null?void 0:R.value):(q=G==null?void 0:G.find(j=>(j==null?void 0:j.key)===((g==null?void 0:g.type)===""?"Input":g==null?void 0:g.type)))==null?void 0:q.value;A==null||A.forEach(j=>{i.value++,N.push({label:j==null?void 0:j.label,name:j==null?void 0:j.label,type:j.type,value:(j==null?void 0:j.label)==="类型"&&g[j.key]===""?"Input":g[j.key],id:i.value,contents:j==null?void 0:j.options})}),C.value=g==null?void 0:g.id,m.value=N,L.value=N},_=g=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var N,A;F.value=(N=u.cloneDeep(F.value))==null?void 0:N.filter($=>($==null?void 0:$.id)!==(g==null?void 0:g.id)),l("change",(A=u.cloneDeep(n.originalItemContents))==null?void 0:A.map($=>(($==null?void 0:$.key)==="tableToForm"&&($.contents=F.value),$))),Ce.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},B=()=>{p.value=!1,m.value=[],C.value=""},w=async()=>{var $,H,q,pe,R,j,ae,Y;m.value=L.value;let g={};C.value!==""?g.id=C.value:(i.value++,g.id="id"+i.value);let N=await((H=($=G==null?void 0:G.find(X=>{var ve,ge;return(X==null?void 0:X.key)===(((ge=(ve=m.value)==null?void 0:ve.find(Ee=>(Ee==null?void 0:Ee.label)==="类型"))==null?void 0:ge.value)??"label")}))==null?void 0:$.value)==null?void 0:H.value)??((q=G==null?void 0:G.find(X=>{var ve,ge;return(X==null?void 0:X.key)===(((ge=(ve=m.value)==null?void 0:ve.find(Ee=>(Ee==null?void 0:Ee.label)==="类型"))==null?void 0:ge.value)??"label")}))==null?void 0:q.value);if((pe=m.value)==null||pe.forEach(X=>{const ve=N==null?void 0:N.find(ge=>(ge==null?void 0:ge.label)===(X==null?void 0:X.label));ve&&(g[ve.key]=X.value)}),g.name=g.label,(R=F.value)!=null&&R.find(X=>X.id===g.id))F.value=(j=F.value)==null?void 0:j.map(X=>(X.id===g.id&&(X=g),X));else{let X=u.cloneDeep(F.value);F.value||(F.value=[]),X.push(g),F.value=X}F.value=F.value.map(({id:X,...ve})=>ve),p.value=!1,C.value="";let A=u.cloneDeep(n.originalItemContents);(ae=u.cloneDeep(n.originalItemContents))!=null&&ae.find(X=>(X==null?void 0:X.key)==="tableToForm")?A=(Y=u.cloneDeep(n.originalItemContents))==null?void 0:Y.map(X=>((X==null?void 0:X.key)==="tableToForm"&&(X.contents=F.value),X)):A.push({key:"tableToForm",contents:F.value}),l("change",A)},U=g=>{x.value=!0;let N=[];we==null||we.forEach(A=>{i.value++,N.push({label:A==null?void 0:A.label,name:A==null?void 0:A.label,type:A.type,value:g[A.key],id:i.value,contents:A==null?void 0:A.options})}),C.value=g==null?void 0:g.id,t.value=N,f.value=N};e.watch(()=>v.value,()=>{var N,A;let g=u.cloneDeep(n.originalItemContents);(N=u.cloneDeep(n.originalItemContents))!=null&&N.find($=>($==null?void 0:$.key)==="page")?g=(A=u.cloneDeep(n.originalItemContents))==null?void 0:A.map($=>(($==null?void 0:$.key)==="page"&&($.contents=v.value),$)):g.push({key:"page",contents:v.value}),l("change",g)},{deep:!0});const z=g=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var N,A;S.value=(N=u.cloneDeep(S.value))==null?void 0:N.filter($=>($==null?void 0:$.id)!==(g==null?void 0:g.id)),l("change",(A=u.cloneDeep(n.originalItemContents))==null?void 0:A.map($=>(($==null?void 0:$.key)==="extraButton"&&($.contents=S.value),$))),Ce.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},E=()=>{var A,$,H,q,pe;t.value=f.value;let g={};if(C.value!==""?g.id=C.value:(i.value++,g.id="id"+i.value),(A=t.value)==null||A.forEach(R=>{const j=we==null?void 0:we.find(ae=>(ae==null?void 0:ae.label)===(R==null?void 0:R.label));j?g[j.key]=R.value:R!=null&&R.children&&R.children.length>0&&(g.children=R.children)}),($=S.value)!=null&&$.find(R=>R.id===g.id))S.value=(H=S.value)==null?void 0:H.map(R=>(R.id===g.id&&(R=g),R));else{let R=u.cloneDeep(S.value);R.push(g),S.value=R}x.value=!1,C.value="";let N=u.cloneDeep(n.originalItemContents);(q=u.cloneDeep(n.originalItemContents))!=null&&q.find(R=>(R==null?void 0:R.key)==="extraButton")?N=(pe=u.cloneDeep(n.originalItemContents))==null?void 0:pe.map(R=>((R==null?void 0:R.key)==="extraButton"&&(R.contents=S.value),R)):N.push({key:"extraButton",contents:S.value}),l("change",N)},M=g=>{let N=u.cloneDeep(f.value);N=N==null?void 0:N.map(A=>(A.children||(A.value=g==null?void 0:g[A.name]),A)),f.value=N},W=()=>{x.value=!1,t.value=[],C.value=""},Z=g=>{h.value=!0;let N=[];$e==null||$e.forEach(A=>{i.value++,N.push({label:A==null?void 0:A.label,name:A==null?void 0:A.label,type:A.type,value:g[A.key],id:i.value,contents:A==null?void 0:A.options})}),C.value=g==null?void 0:g.id,y.value=N,k.value=N},J=g=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var N,A;b.value=(N=u.cloneDeep(b.value))==null?void 0:N.filter($=>($==null?void 0:$.id)!==(g==null?void 0:g.id)),l("change",(A=u.cloneDeep(n.originalItemContents))==null?void 0:A.map($=>(($==null?void 0:$.key)==="rowButton"&&($.contents=b.value),$))),Ce.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},se=()=>{r.value=!0;let g=[];Q==null||Q.forEach(N=>{i.value++,g.push({label:N==null?void 0:N.label,name:N==null?void 0:N.label,type:N.type,value:"",id:i.value,contents:N==null?void 0:N.options})}),d.value=g,V.value=g},re=()=>{h.value=!0;let g=[];$e==null||$e.forEach(N=>{i.value++,g.push({label:N==null?void 0:N.label,name:N==null?void 0:N.label,type:N.type,value:"",id:i.value,contents:N==null?void 0:N.options})}),y.value=g,k.value=g},ie=g=>{let N=u.cloneDeep(k.value);N=N==null?void 0:N.map(A=>(A.children||(A.value=g==null?void 0:g[A.name]),A)),k.value=N},ce=()=>{var A,$,H,q,pe;y.value=k.value;let g={};if(C.value!==""?g.id=C.value:(i.value++,g.id="id"+i.value),(A=y.value)==null||A.forEach(R=>{const j=$e==null?void 0:$e.find(ae=>(ae==null?void 0:ae.label)===(R==null?void 0:R.label));j?g[j.key]=R.value:R!=null&&R.children&&R.children.length>0&&(g.children=R.children)}),($=b.value)!=null&&$.find(R=>R.id===g.id))b.value=(H=b.value)==null?void 0:H.map(R=>(R.id===g.id&&(R=g),R));else{let R=u.cloneDeep(b.value);R.push(g),b.value=R}h.value=!1,C.value="";let N=u.cloneDeep(n.originalItemContents);(q=u.cloneDeep(n.originalItemContents))!=null&&q.find(R=>(R==null?void 0:R.key)==="rowButton")?N=(pe=u.cloneDeep(n.originalItemContents))==null?void 0:pe.map(R=>((R==null?void 0:R.key)==="rowButton"&&(R.contents=b.value),R)):N.push({key:"rowButton",contents:b.value}),l("change",N)},fe=()=>{h.value=!1,C.value="",k.value=[],y.value=[]},he=g=>{r.value=!0;let N=[];Q==null||Q.forEach(A=>{i.value++,N.push({label:A==null?void 0:A.label,name:A==null?void 0:A.label,type:A.type,value:"",id:i.value,contents:A==null?void 0:A.options})}),d.value=N,I.value=g==null?void 0:g.id,V.value=N},ye=g=>{var N;c.value=yl(u.cloneDeep(c.value),g==null?void 0:g.id),l("change",(N=u.cloneDeep(n.originalItemContents))==null?void 0:N.map(A=>{var $;return(A==null?void 0:A.key)==="header"&&(A.contents=($=c.value)!=null&&$.some(H=>H==null?void 0:H.children)?[c.value]:c.value),A}))},te=g=>{var A,$,H;g.type==="fix"?g.id!==""?c.value=kl(c.value,g):c.value=vl(c.value,g==null?void 0:g.contents):c.value=gl(c.value,g),c.value=(A=c.value)!=null&&A.some(q=>q==null?void 0:q.children)?[c.value]:c.value,C.value="";let N=u.cloneDeep(n.originalItemContents);($=u.cloneDeep(n.originalItemContents))!=null&&$.find(q=>(q==null?void 0:q.key)==="header")?N=(H=u.cloneDeep(n.originalItemContents))==null?void 0:H.map(q=>((q==null?void 0:q.key)==="header"&&(q.contents=c.value),q)):N.push({key:"header",contents:c.value}),l("change",N)},ue=g=>{var A;r.value=!0;let N=[];Q==null||Q.forEach($=>{i.value++,N.push({label:$==null?void 0:$.label,name:$==null?void 0:$.label,type:$.type,value:g[$.key],id:i.value,contents:$==null?void 0:$.options})}),g!=null&&g.children&&((A=g==null?void 0:g.children)==null?void 0:A.length)>0&&N.push({children:g==null?void 0:g.children,isFormColHidden:!0}),C.value=g==null?void 0:g.id,I.value="",d.value=N,V.value=N},ee=g=>{let N=u.cloneDeep(V.value);N=N==null?void 0:N.map(A=>(A.children||(A.value=g==null?void 0:g[A.name]),A)),V.value=N},_e=()=>{r.value=!1,C.value="",I.value="",V.value=[]},xe=()=>{var A,$,H,q,pe,R;d.value=V.value;let g={};if(C.value!==""?g.id=C.value:(i.value++,g.id="id"+i.value),(A=d.value)==null||A.forEach(j=>{const ae=Q==null?void 0:Q.find(Y=>(Y==null?void 0:Y.label)===(j==null?void 0:j.label));ae?g[ae.key]=j.value:j!=null&&j.children&&j.children.length>0&&(g.children=j.children)}),($=c.value)!=null&&$.find(j=>j.id===g.id))c.value=(H=c.value)==null?void 0:H.map(j=>(j.id===g.id&&(j=g),j));else{let j=u.cloneDeep(c.value)??[];I.value===""?j.push(g):j=j==null?void 0:j.map(ae=>(ae.id===I.value&&(ae.children||(ae.children=[]),ae.children.push(g)),ae)),c.value=j}c.value=(q=c.value)!=null&&q.some(j=>j==null?void 0:j.children)?[c.value]:c.value,r.value=!1,C.value="",I.value="";let N=u.cloneDeep(n.originalItemContents);(pe=u.cloneDeep(n.originalItemContents))!=null&&pe.find(j=>(j==null?void 0:j.key)==="header")?N=(R=u.cloneDeep(n.originalItemContents))==null?void 0:R.map(j=>((j==null?void 0:j.key)==="header"&&(j.contents=c.value),j)):N.push({key:"header",contents:c.value}),l("change",N)},De=g=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var N,A;c.value=(N=u.cloneDeep(c.value))==null?void 0:N.filter($=>($==null?void 0:$.id)!==(g==null?void 0:g.id)),l("change",(A=u.cloneDeep(n.originalItemContents))==null?void 0:A.map($=>{var H;return($==null?void 0:$.key)==="header"&&($.contents=(H=c.value)!=null&&H.some(q=>q==null?void 0:q.children)?[c.value]:c.value),$})),Ce.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return e.watch(()=>n.originalItemContents,()=>{var g,N,A,$,H,q,pe,R,j,ae,Y,X,ve,ge,Ee,Xe,Ye,el,ll;if(!(!n.originalItemContents||n.originalItemContents.length===0))if(o.value=u.cloneDeep(n.originalItemContents),c.value=(N=(g=o.value)==null?void 0:g.find(O=>(O==null?void 0:O.key)==="header"))==null?void 0:N.contents,b.value=($=(A=o.value)==null?void 0:A.find(O=>(O==null?void 0:O.key)==="rowButton"))==null?void 0:$.contents,S.value=(q=(H=o.value)==null?void 0:H.find(O=>(O==null?void 0:O.key)==="extraButton"))==null?void 0:q.contents,v.value=(R=(pe=o.value)==null?void 0:pe.find(O=>(O==null?void 0:O.key)==="page"))!=null&&R.contents?!!((ae=(j=o.value)==null?void 0:j.find(O=>(O==null?void 0:O.key)==="page"))!=null&&ae.contents):!1,F.value=(X=(Y=o.value)==null?void 0:Y.find(O=>(O==null?void 0:O.key)==="tableToForm"))==null?void 0:X.contents,c.value=(ve=c.value)==null?void 0:ve.map((O,be)=>(Array.isArray(O)?O=Ql(O):O={label:(O==null?void 0:O.label)??"",prop:(O==null?void 0:O.label)==="操作"?"operate":O==null?void 0:O.prop,width:O!=null&&O.width?parseInt(O.width):"",fixed:(O==null?void 0:O.fixed)??void 0,sortable:(O==null?void 0:O.sortable)??!1,align:(O==null?void 0:O.align)??"center",showOverflowTooltip:(O==null?void 0:O.showOverflowTooltip)??!0,isNotDrag:(O==null?void 0:O.isNotDrag)??!1,isEditCol:(O==null?void 0:O.isEditCol)??!1,isOperate:(O==null?void 0:O.isOperate)??!1,id:(O==null?void 0:O.id)??be},O)),c.value=(ge=c.value)!=null&&ge.every(O=>Array.isArray(O))?(Ee=c.value)==null?void 0:Ee[0]:c.value,b.value=(Xe=b.value)==null?void 0:Xe.map((O,be)=>O={label:(O==null?void 0:O.label)??"",type:(O==null?void 0:O.type)??"",textColor:(O==null?void 0:O.textColor)??"#000000",id:(O==null?void 0:O.id)??be}),S.value=(Ye=S.value)==null?void 0:Ye.map((O,be)=>O={label:(O==null?void 0:O.label)??"",type:(O==null?void 0:O.type)??"",background:(O==null?void 0:O.background)??"var(--ssComponent-primary-color)",id:(O==null?void 0:O.id)??be}),F.value)F.value=(ll=F.value)==null?void 0:ll.map(O=>{i.value++;let be=O;return be.id=i.value,be});else{let O=[];const be=(el=me.getColumnChild(u.cloneDeep(c.value)))==null?void 0:el.filter(ke=>(ke==null?void 0:ke.prop)!=="operate");be==null||be.forEach(ke=>{i.value++,O.push({label:ke==null?void 0:ke.label,name:ke==null?void 0:ke.label,type:"Input",value:"",id:i.value,contents:ke==null?void 0:ke.options})}),F.value=O}},{deep:!0,immediate:!0}),(g,N)=>{const A=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",va,[e.createElementVNode("div",ka,[e.createElementVNode("div",ga,[N[2]||(N[2]=e.createElementVNode("div",null,e.toDisplayString("表头"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:se},[e.createVNode(A,{name:"Plus",class:"icon-size"}),N[1]||(N[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",ba,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,($,H)=>(e.openBlock(),e.createElementBlock("div",{key:H},[e.createElementVNode("div",Ca,[e.createElementVNode("div",Da,e.toDisplayString($==null?void 0:$.label),1),e.createElementVNode("div",xa,[e.createVNode(A,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>he($)},null,8,["onClick"]),e.createVNode(A,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>ue($)},null,8,["onClick"]),e.createVNode(A,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>De($)},null,8,["onClick"])])]),$!=null&&$.children&&$.children.length>0?(e.openBlock(),e.createElementBlock("div",Ea,[e.createVNode(Cl,{tableChildContents:$==null?void 0:$.children,onDeleteChange:ye,onFixChange:te},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",_a,[N[4]||(N[4]=e.createElementVNode("div",null,e.toDisplayString("行内按钮"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:re},[e.createVNode(A,{name:"Plus",class:"icon-size"}),N[3]||(N[3]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",Na,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,($,H)=>(e.openBlock(),e.createElementBlock("div",{key:H},[e.createElementVNode("div",wa,[e.createElementVNode("div",$a,e.toDisplayString($==null?void 0:$.label),1),e.createElementVNode("div",Ba,[e.createVNode(A,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:q=>Z($)},null,8,["onClick"]),e.createVNode(A,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>J($)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",Va,[N[6]||(N[6]=e.createElementVNode("div",null,e.toDisplayString("表外按钮"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:P},[e.createVNode(A,{name:"Plus",class:"icon-size"}),N[5]||(N[5]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",Ta,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,($,H)=>(e.openBlock(),e.createElementBlock("div",{key:H},[e.createElementVNode("div",Aa,[e.createElementVNode("div",Ia,e.toDisplayString($==null?void 0:$.label),1),e.createElementVNode("div",Sa,[e.createVNode(A,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:q=>U($)},null,8,["onClick"]),e.createVNode(A,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>z($)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",Oa,[N[8]||(N[8]=e.createElementVNode("div",null,e.toDisplayString("表格弹框字段设置"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:K},[e.createVNode(A,{name:"Plus",class:"icon-size"}),N[7]||(N[7]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",Fa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,($,H)=>(e.openBlock(),e.createElementBlock("div",{key:H},[e.createElementVNode("div",La,[e.createElementVNode("div",ja,e.toDisplayString($==null?void 0:$.label),1),e.createElementVNode("div",Ua,[e.createVNode(A,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:q=>T($)},null,8,["onClick"]),e.createVNode(A,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>_($)},null,8,["onClick"])])])]))),128))]),N[10]||(N[10]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("分页"))],-1)),e.createElementVNode("div",Ja,[e.createElementVNode("div",Pa,[N[9]||(N[9]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否分页"),-1)),e.createVNode(le._sfc_main$1,{modelValue:v.value,"onUpdate:modelValue":N[0]||(N[0]=$=>v.value=$)},null,8,["modelValue"])])])]),e.createVNode(le.ssDialog,{visible:r.value,onBeforeDestroy:_e,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Ra,[(e.openBlock(),e.createBlock(le.ssForm,{rowContents:d.value,key:d.value,isEnableWrap:!0,onChange:ee},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:_e,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:xe},e.toDisplayString("确认"))])]),_:1},8,["visible"]),e.createVNode(le.ssDialog,{visible:h.value,onBeforeDestroy:fe,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Wa,[(e.openBlock(),e.createBlock(le.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:ie},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:fe,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:ce},e.toDisplayString("确认"))])]),_:1},8,["visible"]),e.createVNode(le.ssDialog,{visible:x.value,onBeforeDestroy:W,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",za,[(e.openBlock(),e.createBlock(le.ssForm,{rowContents:t.value,key:t.value,isEnableWrap:!0,onChange:M},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:W,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:E},e.toDisplayString("确认"))])]),_:1},8,["visible"]),e.createVNode(le.ssDialog,{visible:p.value,onBeforeDestroy:B,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Ma,[(e.openBlock(),e.createBlock(le.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:D},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:B,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:w},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},qa=de._export_sfc(Ga,[["__scopeId","data-v-14ead5ff"]]),Ka={class:"form-operate-content"},Ha={class:"form-operate-item"},Za={class:"operate-title"},Qa={class:"operate-content"},Xa={class:"fix-content"},Ya={class:"fix-button"},en={class:"operate-title"},ln={class:"operate-content"},an={class:"fix-content"},nn={class:"fix-button"},on={style:{display:"flex","justify-content":"space-between"}},sn={class:"form-content"},rn={class:"form-content"},tn={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:s}){const n=a,l=s,o=e.ref(!1),r=e.ref([]),p=e.ref([]),c=e.ref(!1),h=e.ref([]),d=e.ref([]),v=e.ref(""),V=e.ref(!1),C=e.ref(0),I=e.ref([]),b=e.ref([]),S=async D=>{var B,w,U,z;o.value=!0;let T=[];const _=await((w=(B=G==null?void 0:G.find(E=>(E==null?void 0:E.key)===((D==null?void 0:D.type)===""?"Input":D==null?void 0:D.type)))==null?void 0:B.value)==null?void 0:w.value)??((U=G==null?void 0:G.find(E=>(E==null?void 0:E.key)===((D==null?void 0:D.type)===""?"Input":D==null?void 0:D.type)))==null?void 0:U.value);if(_==null||_.forEach(E=>{C.value++,T.push({label:E==null?void 0:E.label,name:E==null?void 0:E.label,type:E.type,value:(E==null?void 0:E.label)==="类型"&&D[E.key]===""?"Input":D[E.key],id:C.value,contents:E==null?void 0:E.options})}),D!=null&&D.menuSelect&&((z=D==null?void 0:D.menuSelect)==null?void 0:z.length)>0){const E=await nl(D==null?void 0:D.menuSelect);T=T==null?void 0:T.map(M=>((M==null?void 0:M.name)==="组信息选项"&&(M.contents=E),M))}v.value=D==null?void 0:D.id,r.value=Oe(T),p.value=Oe(T)},y=D=>{c.value=!0;let T=[];Ne==null||Ne.forEach(_=>{C.value++,T.push({label:_==null?void 0:_.label,name:_==null?void 0:_.label,type:_.type,value:(_==null?void 0:_.label)==="类型"&&D[_.key]===""?"normal":D[_.key],id:C.value,contents:_==null?void 0:_.options})}),I.value=T,b.value=T,v.value=D==null?void 0:D.id};e.watch(()=>V.value,()=>{var T,_;let D=u.cloneDeep(n.originalItemContents);(T=u.cloneDeep(n.originalItemContents))!=null&&T.find(B=>(B==null?void 0:B.key)==="enableWrap")?D=(_=u.cloneDeep(n.originalItemContents))==null?void 0:_.map(B=>((B==null?void 0:B.key)==="enableWrap"&&(B.contents=!V.value),B)):D.push({key:"enableWrap",contents:!V.value}),l("change",D)},{deep:!0});const k=()=>{var _,B,w,U,z;I.value=b.value;let D={};if(v.value!==""?D.id=v.value:(C.value++,D.id="id"+C.value),(_=I.value)==null||_.forEach(E=>{const M=Ne==null?void 0:Ne.find(W=>(W==null?void 0:W.label)===(E==null?void 0:E.label));M&&(D[M.key]=E.value)}),(B=h.value)!=null&&B.find(E=>E.id===D.id))h.value=(w=h.value)==null?void 0:w.map(E=>(E.id===D.id&&(E=D),E));else{let E=u.cloneDeep(h.value);h.value||(h.value=[]),E.push(D),h.value=E}c.value=!1,v.value="";let T=u.cloneDeep(n.originalItemContents);(U=u.cloneDeep(n.originalItemContents))!=null&&U.find(E=>(E==null?void 0:E.key)==="formButton")?T=(z=u.cloneDeep(n.originalItemContents))==null?void 0:z.map(E=>((E==null?void 0:E.key)==="formButton"&&(E.contents=h.value),E)):T.push({key:"formButton",contents:h.value}),l("change",T)},x=D=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var T,_;d.value=(T=u.cloneDeep(d.value))==null?void 0:T.filter(B=>(B==null?void 0:B.id)!==(D==null?void 0:D.id)),l("change",(_=u.cloneDeep(n.originalItemContents))==null?void 0:_.map(B=>((B==null?void 0:B.key)==="formContent"&&(B.contents=d.value),B))),Ce.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},t=D=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var T,_;h.value=(T=u.cloneDeep(h.value))==null?void 0:T.filter(B=>(B==null?void 0:B.id)!==(D==null?void 0:D.id)),l("change",(_=u.cloneDeep(n.originalItemContents))==null?void 0:_.map(B=>((B==null?void 0:B.key)==="formButton"&&(B.contents=h.value),B))),Ce.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},f=()=>{c.value=!0;let D=[];Ne==null||Ne.forEach(T=>{C.value++,D.push({label:T==null?void 0:T.label,name:T==null?void 0:T.label,type:T.type,value:(T==null?void 0:T.label)==="类型"?"normal":"",id:C.value,contents:T==null?void 0:T.options})}),I.value=D,b.value=D},i=()=>{var T,_;o.value=!0;let D=[];(_=(T=G==null?void 0:G.find(B=>(B==null?void 0:B.key)==="Input"))==null?void 0:T.value)==null||_.forEach(B=>{C.value++,D.push({label:B==null?void 0:B.label,name:B==null?void 0:B.label,type:B.type,value:(B==null?void 0:B.label)==="类型"?"Input":"",id:C.value,contents:B==null?void 0:B.options})}),r.value=D,p.value=D},m=D=>{let T=u.cloneDeep(b.value);T=T==null?void 0:T.map(_=>(_.value=D==null?void 0:D[_.name],_)),b.value=T},L=async D=>{var T,_,B,w,U,z,E,M;if((D==null?void 0:D.类型)!==((_=(T=p.value)==null?void 0:T.find(W=>(W==null?void 0:W.label)==="类型"))==null?void 0:_.value)){let W=[];const Z=await((w=(B=G==null?void 0:G.find(J=>(J==null?void 0:J.key)===((D==null?void 0:D.类型)===""?"Input":D==null?void 0:D.类型)))==null?void 0:B.value)==null?void 0:w.value)?await((E=(z=G==null?void 0:G.find(J=>(J==null?void 0:J.key)===((D==null?void 0:D.类型)===""?"Input":D==null?void 0:D.类型)))==null?void 0:z.value)==null?void 0:E.value):(U=G==null?void 0:G.find(J=>(J==null?void 0:J.key)===((D==null?void 0:D.类型)===""?"Input":D==null?void 0:D.类型)))==null?void 0:U.value;Z==null||Z.forEach(J=>{C.value++,W.push({label:J==null?void 0:J.label,name:J==null?void 0:J.label,type:J.type,value:(D==null?void 0:D[J.label])??"",id:C.value,contents:J==null?void 0:J.options})}),p.value=await ze(u.cloneDeep(W)),r.value=await ze(u.cloneDeep(W))}else{let W=u.cloneDeep(p.value);if(W=W==null?void 0:W.map(Z=>(Z.value=D==null?void 0:D[Z.name],Z)),D!=null&&D.菜单选项&&((M=D==null?void 0:D.菜单选项)==null?void 0:M.length)>0){const Z=await nl(D==null?void 0:D.菜单选项);W=W==null?void 0:W.map(J=>((J==null?void 0:J.name)==="组信息选项"&&(J.contents=Z),J))}W=Oe(W),p.value=await ze(u.cloneDeep(W))}},F=async D=>{await L(D),r.value=p.value},P=async()=>{var B,w,U,z,E,M,W,Z;r.value=p.value;let D={};v.value!==""?D.id=v.value:(C.value++,D.id="id"+C.value);let T=await((w=(B=G==null?void 0:G.find(J=>{var se,re;return(J==null?void 0:J.key)===(((re=(se=r.value)==null?void 0:se.find(ie=>(ie==null?void 0:ie.label)==="类型"))==null?void 0:re.value)??"label")}))==null?void 0:B.value)==null?void 0:w.value)??((U=G==null?void 0:G.find(J=>{var se,re;return(J==null?void 0:J.key)===(((re=(se=r.value)==null?void 0:se.find(ie=>(ie==null?void 0:ie.label)==="类型"))==null?void 0:re.value)??"label")}))==null?void 0:U.value);if((z=r.value)==null||z.forEach(J=>{const se=T==null?void 0:T.find(re=>(re==null?void 0:re.label)===(J==null?void 0:J.label));se&&(D[se.key]=J.value)}),D.width=1,D.key=D==null?void 0:D.label,(E=d.value)!=null&&E.find(J=>J.id===D.id))d.value=(M=d.value)==null?void 0:M.map(J=>(J.id===D.id&&(J=D),J));else{let J=u.cloneDeep(d.value);J.push(D),d.value=J}d.value=d.value.map(({id:J,...se})=>se),o.value=!1,v.value="";let _=u.cloneDeep(n.originalItemContents);(W=u.cloneDeep(n.originalItemContents))!=null&&W.find(J=>(J==null?void 0:J.key)==="formContent")?_=(Z=u.cloneDeep(n.originalItemContents))==null?void 0:Z.map(J=>((J==null?void 0:J.key)==="formContent"&&(J.contents=d.value),J)):_.push({key:"formContent",contents:d.value}),l("change",_)},K=()=>{o.value=!1,c.value=!1,v.value="",p.value=[],b.value=[]};return e.watch(()=>n.originalItemContents,()=>{var T,_,B,w,U,z;if(!n.originalItemContents||n.originalItemContents.length===0)return;const D=u.cloneDeep(n.originalItemContents);d.value=((T=D==null?void 0:D.find(E=>(E==null?void 0:E.key)==="formContent"))==null?void 0:T.contents)??[],h.value=((_=D==null?void 0:D.find(E=>(E==null?void 0:E.key)==="formButton"))==null?void 0:_.contents)??[],V.value=(B=D==null?void 0:D.find(E=>(E==null?void 0:E.key)==="enableWrap"))!=null&&B.contents?!((w=D==null?void 0:D.find(E=>(E==null?void 0:E.key)==="enableWrap"))!=null&&w.contents):!0,d.value=(U=u.cloneDeep(d.value))==null?void 0:U.map((E,M)=>{let W=E;return W.id=(E==null?void 0:E.id)??M,E!=null&&E.label||(E.label=(E==null?void 0:E.key)??(E==null?void 0:E.label)??""),E!=null&&E.type||(E.type=(E==null?void 0:E.type)??""),E.contents=(E==null?void 0:E.options)??"",W}),d.value=Oe(d.value),h.value=(z=h.value)==null?void 0:z.map((E,M)=>E={label:(E==null?void 0:E.label)??"",type:(E==null?void 0:E.type)??"",background:(E==null?void 0:E.background)??"var(--ssComponent-primary-color)",id:(E==null?void 0:E.id)??M})},{deep:!0,immediate:!0}),(D,T)=>{const _=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",Ka,[e.createElementVNode("div",Ha,[e.createElementVNode("div",Za,[T[2]||(T[2]=e.createElementVNode("div",null,e.toDisplayString("表单内容"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:i},[e.createVNode(_,{name:"Plus",class:"icon-size"}),T[1]||(T[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",Qa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(B,w)=>(e.openBlock(),e.createElementBlock("div",{key:w},[e.createElementVNode("div",Xa,[e.createElementVNode("div",null,e.toDisplayString(B.label),1),e.createElementVNode("div",Ya,[e.createVNode(_,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:U=>S(B)},null,8,["onClick"]),e.createVNode(_,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:U=>x(B)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",en,[T[4]||(T[4]=e.createElementVNode("div",null,e.toDisplayString("表单按钮"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:f},[e.createVNode(_,{name:"Plus",class:"icon-size"}),T[3]||(T[3]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",ln,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(B,w)=>(e.openBlock(),e.createElementBlock("div",{key:w},[e.createElementVNode("div",an,[e.createElementVNode("div",null,e.toDisplayString(B.label),1),e.createElementVNode("div",nn,[e.createVNode(_,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:U=>y(B)},null,8,["onClick"]),e.createVNode(_,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:U=>t(B)},null,8,["onClick"])])])]))),128))]),T[6]||(T[6]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("表单布局"))],-1)),e.createElementVNode("div",on,[T[5]||(T[5]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否自动撑宽"),-1)),e.createVNode(le._sfc_main$1,{modelValue:V.value,"onUpdate:modelValue":T[0]||(T[0]=B=>V.value=B)},null,8,["modelValue"])])]),e.createVNode(le.ssDialog,{visible:o.value,onBeforeDestroy:K,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",sn,[(e.openBlock(),e.createBlock(le.ssForm,{rowContents:r.value,key:r.value,isEnableWrap:!0,onChange:L,onBlur:F},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:K,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:P},e.toDisplayString("确认"))])]),_:1},8,["visible"]),e.createVNode(le.ssDialog,{visible:c.value,onBeforeDestroy:K,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",rn,[(e.openBlock(),e.createBlock(le.ssForm,{rowContents:I.value,key:I.value,isEnableWrap:!0,onChange:m},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:K,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:k},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},sl=de._export_sfc(tn,[["__scopeId","data-v-0a5e03af"]]),cn={class:"step-module content"},un={class:"module-data"},pn={class:"step-module layout"},dn={class:"form-content"},fn=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:s}){const n=a,l=s,o=e.ref([{label:"方向:",prop:"direction",type:"RADIO",contents:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],value:"horizontal"},{label:"是否居中:",prop:"alignCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"应用简洁风格",prop:"simple",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1}]),r=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),p=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),c=e.reactive({visible:!1,width:"40%",title:"步骤条"}),h=e.ref("create"),d=e.ref({}),v=e.ref([]),V=y=>{var k;d.value=y,l("change",(k=b())==null?void 0:k.compData)},C=(y,k)=>{var x,t;switch(y){case"create":(x=r.value)==null||x.forEach(f=>{f.value=""}),h.value="create",c.visible=!0;break;case"update":(t=r.value)==null||t.forEach(f=>{f.value=k[f==null?void 0:f.prop]}),h.value="update",c.visible=!0;break;case"delete":v.value.splice(k,1),h.value="delete";break}},I=y=>{var k,x,t;if((y==null?void 0:y.buttonName)==="确认"){const f=u.cloneDeep(y==null?void 0:y.content);switch(Object.keys(f).forEach(i=>{f[i]===""&&delete f[i]}),h.value){case"create":v.value.push({...f,index:((k=v.value)==null?void 0:k.length)+1});break;case"update":v.value=(x=v.value)==null?void 0:x.map(i=>i.index===(f==null?void 0:f.index)?{...i,title:f==null?void 0:f.title,description:f==null?void 0:f.description}:i);break}l("change",(t=b())==null?void 0:t.compData),c.visible=!1}else c.visible=!1},b=()=>({comp:"Step",compData:[{key:"stepList",contents:v.value},{key:"stepConfig",contents:d.value}]}),S=()=>{c.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,y=>{var k,x;y&&(d.value=((k=y==null?void 0:y.find(t=>t.key==="stepConfig"))==null?void 0:k.contents)??{},v.value=((x=y==null?void 0:y.find(t=>t.key==="stepList"))==null?void 0:x.contents)??[])},{immediate:!0}),(y,k)=>{const x=e.resolveComponent("svg-icon"),t=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",cn,[k[2]||(k[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createElementVNode("div",{class:"module-icon",onClick:k[0]||(k[0]=f=>C("create"))},[e.createVNode(x,{name:"Plus",class:"icon-size"}),k[1]||(k[1]=e.createElementVNode("div",null,"新增",-1))])]),e.createElementVNode("div",un,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(f,i)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:i},[e.createElementVNode("span",null,e.toDisplayString(f==null?void 0:f.title),1),e.createElementVNode("div",null,[e.createVNode(t,{type:"primary",size:"small",onClick:m=>C("update",{...f,index:i+1})},{default:e.withCtx(()=>k[3]||(k[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(t,{type:"danger",size:"small",onClick:m=>C("delete",i)},{default:e.withCtx(()=>k[4]||(k[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",pn,[k[5]||(k[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(le.ssForm,{rowContents:o.value,onChange:V},null,8,["rowContents"])])]),e.createVNode(le.ssDialog,{visible:c.visible,title:c.title,onBeforeDestroy:S,width:c.width},{default:e.withCtx(()=>[e.createElementVNode("div",dn,[(e.openBlock(),e.createBlock(le.ssForm,{rowContents:r.value,key:r.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:p.value,onOnButtonClick:I},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),hn=de._export_sfc(fn,[["__scopeId","data-v-47438605"]]),mn={class:"step-module content"},yn={class:"module-data"},vn={class:"step-module layout"},kn={class:"form-content"},gn=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:s}){const n=a,l=s,o=e.ref("create"),r=e.ref({}),p=e.ref([]),c=e.ref([{label:"方向:",prop:"placement",type:"radio",contents:[{label:"底部",value:"bottom"},{label:"顶部",value:"top"}],value:"bottom"},{label:"节点类型:",prop:"type",type:"select",contents:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],value:"primary"},{label:"颜色:",prop:"color",type:"color",value:""},{label:"尺寸:",prop:"size",type:"radio",contents:[{label:"normal",value:"normal"},{label:"large",value:"large"}],value:"normal"},{label:"是否空心",prop:"isHollow",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"是否居中",prop:"isCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),h=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),d=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),v=e.reactive({visible:!1,width:"40%",title:"时间线"}),V=y=>{var k;r.value=y,console.log(1212,y),l("change",(k=b())==null?void 0:k.compData)},C=(y,k)=>{var x,t;switch(y){case"create":(x=h.value)==null||x.forEach(f=>{f.value=""}),o.value="create",v.visible=!0;break;case"update":(t=h.value)==null||t.forEach(f=>{f.value=k[f==null?void 0:f.prop]}),o.value="update",v.visible=!0;break;case"delete":p.value.splice(k,1),o.value="delete";break}},I=y=>{var k,x,t,f;if((y==null?void 0:y.buttonName)==="确认"){const i=u.cloneDeep(y==null?void 0:y.content);switch(Object.keys(i).forEach(m=>{i[m]===""&&delete i[m]}),o.value){case"create":console.log(1335,p.value,i),(x=p.value)==null||x.push({...i,index:((k=p.value)==null?void 0:k.length)+1});break;case"update":p.value=(t=p.value)==null?void 0:t.map(m=>m.index===(i==null?void 0:i.index)?{...m,content:i==null?void 0:i.content,timestamp:i==null?void 0:i.timestamp}:m);break}l("change",(f=b())==null?void 0:f.compData),v.visible=!1}else v.visible=!1},b=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:p.value},{key:"timeLineConfig",contents:r.value}]}),S=()=>{v.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,y=>{var k,x;y&&(r.value=((k=y==null?void 0:y.find(t=>t.key==="timeLineConfig"))==null?void 0:k.contents)??{},p.value=((x=y==null?void 0:y.find(t=>t.key==="timeLineList"))==null?void 0:x.contents)??[])},{immediate:!0}),(y,k)=>{const x=e.resolveComponent("svg-icon"),t=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",mn,[k[2]||(k[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createElementVNode("div",{class:"module-icon",onClick:k[0]||(k[0]=f=>C("create"))},[e.createVNode(x,{name:"Plus",class:"icon-size"}),k[1]||(k[1]=e.createElementVNode("div",null,"新增",-1))])]),e.createElementVNode("div",yn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(f,i)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:i},[e.createElementVNode("span",null,e.toDisplayString(f==null?void 0:f.content),1),e.createElementVNode("div",null,[e.createVNode(t,{type:"primary",size:"small",onClick:m=>C("update",{...f,index:i+1})},{default:e.withCtx(()=>k[3]||(k[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(t,{type:"danger",size:"small",onClick:m=>C("delete",i)},{default:e.withCtx(()=>k[4]||(k[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",vn,[k[5]||(k[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(le.ssForm,{rowContents:c.value,onChange:V},null,8,["rowContents"])])]),e.createVNode(le.ssDialog,{visible:v.visible,title:v.title,onBeforeDestroy:S,width:v.width},{default:e.withCtx(()=>[e.createElementVNode("div",kn,[(e.openBlock(),e.createBlock(le.ssForm,{rowContents:h.value,key:h.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:d.value,onOnButtonClick:I},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),bn=de._export_sfc(gn,[["__scopeId","data-v-40aea043"]]),Cn={};function Dn(a,s){return e.openBlock(),e.createElementBlock("div")}const xn=de._export_sfc(Cn,[["render",Dn]]),En={class:"extra-content"},_n={key:0},Nn={key:1},wn={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(a,{emit:s}){const n=a,l=e.ref(0),o=e.ref(),r=e.ref(),p=s,c=e.ref(!1),h=e.ref({}),d=e.ref({}),v=e.ref();e.watch(()=>[n.itemData],()=>{var f;const t=u.cloneDeep(n.itemData);o.value=(f=u.cloneDeep(t))==null?void 0:f.map(i=>{var m;if(i.key==="extra"){let L=[];(m=i.value)==null||m.forEach(F=>{var P;L.push((P=Object.values(F))==null?void 0:P[0])}),i.value=L}return i})},{deep:!0,immediate:!0});const V=(t,f,i,m)=>{var F;let L={};((F=t==null?void 0:t[0])==null?void 0:F.contents)==="详情"&&(c.value=!0,L[f]=t,r.value=t==null?void 0:t.filter(P=>(P==null?void 0:P.key)!=="tableContentName"),h.value=L,d.value=i,v.value=m.id)},C=t=>{var P,K,D,T;const f=(K=(P=Object.values(u.cloneDeep(h.value)))==null?void 0:P[0])==null?void 0:K.filter(_=>(_==null?void 0:_.key)==="tableContentName"),i=(T=(D=Object.values(u.cloneDeep(h.value)))==null?void 0:D[0])==null?void 0:T.filter(_=>(_==null?void 0:_.key)!=="tableContentName"),m=i==null?void 0:i.map((_,B)=>{var w;return B===t.index&&(_==null?void 0:_.comp)==="Table"&&(_.compData=(w=_.compData)==null?void 0:w.map(U=>{var z,E;return(U==null?void 0:U.key)==="tableContents"&&(U.contents=(E=(z=t.content)==null?void 0:z.map(M=>{let W={};for(let Z in M)Z!=="id"&&(W[Z]=M[Z]);return W}))==null?void 0:E.map(M=>Object.values(M))),U})),_});m.unshift(f==null?void 0:f[0]);let L=u.cloneDeep(h.value),F={};for(let _ in L)F[_]=m;h.value=F},I=()=>{c.value=!1,h.value={},d.value={},v.value=void 0,l.value++},b=t=>{var P,K,D,T;const f=(K=(P=Object.values(u.cloneDeep(h.value)))==null?void 0:P[0])==null?void 0:K.filter(_=>(_==null?void 0:_.key)==="tableContentName"),i=(T=(D=Object.values(u.cloneDeep(h.value)))==null?void 0:D[0])==null?void 0:T.filter(_=>(_==null?void 0:_.key)!=="tableContentName"),m=i==null?void 0:i.map((_,B)=>(B===t.index&&(_.compData=t.contents),_));m.unshift(f==null?void 0:f[0]);let L=u.cloneDeep(h.value),F={};for(let _ in L)F[_]=m;h.value=F},S=()=>{var f,i;let t={};for(let m in d.value)m===((f=Object.keys(h.value))==null?void 0:f[0])?t[m]=(i=Object.values(h.value))==null?void 0:i[0]:t[m]=d.value[m];p("change",{buttonName:"编辑",index:v.value,singleContent:t},"methodData"),c.value=!1,h.value={},d.value={},v.value=void 0},y=()=>{c.value=!1,h.value={},d.value={},v.value=void 0},k=t=>{p("change",t,"methodData")},x=t=>Dl(t);return(t,f)=>(e.openBlock(),e.createElementBlock("div",En,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(i,m)=>(e.openBlock(),e.createElementBlock("div",{key:l.value},[(i==null?void 0:i.key)==="extra"?(e.openBlock(),e.createElementBlock("div",_n)):(e.openBlock(),e.createElementBlock("div",Nn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(x(i.comp)),{itemData:i==null?void 0:i.compData,childItemData:i==null?void 0:i.itemChildData,key:m,index:(i==null?void 0:i.id)??m,onContentClick:V,onChange:k},null,40,["itemData","childItemData","index"]))]))]))),128)),e.createVNode(le.ssDialog,{visible:c.value,onBeforeDestroy:y},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(i,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"extra-dialog"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(x(i.comp)),{itemData:i==null?void 0:i.compData,onChange:C,childItemData:i==null?void 0:i.itemChildData,key:m,onContentChange:b,index:(i==null?void 0:i.id)??m,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{class:"cancel-button footer-button",onClick:I},e.toDisplayString("取消")),e.createElementVNode("div",{class:"confirm-button footer-button",onClick:S},e.toDisplayString("确认"))])]),_:1},8,["visible"])]))}},$n=de._export_sfc(wn,[["__scopeId","data-v-b0b2f71f"]]),Bn={class:"method-content"},Vn=["onClick"],Tn={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(a){const s=e.ref([]),n=a,l=Fl.useModelComp(Be.pinia),{itemData:o,isEdit:r}=Ce.storeToRefs(l),p=(d,v)=>{var C;const V=(C=v==null?void 0:v[0])==null?void 0:C.children;return d==null?void 0:d.map(I=>{var b;return I=(b=I==null?void 0:I.map((S,y)=>{var k;return{key:(k=V[y])==null?void 0:k.label,value:S}}))==null?void 0:b.filter(S=>S.key),I})};e.watch(()=>o.value,async()=>{r.value=="view"&&await h(u.cloneDeep(n.itemData))},{deep:!0});const c=async d=>{var t,f,i,m,L,F;let v={};if((t=u.cloneDeep(d.content))==null||t.forEach((P,K)=>{var D,T,_,B,w,U,z,E,M,W,Z,J,se,re,ie,ce,fe;if((P==null?void 0:P.comp)==="Table"){let he=(B=(_=(T=(D=P==null?void 0:P.compData)==null?void 0:D.find(ee=>(ee==null?void 0:ee.key)==="header"))==null?void 0:T.contents)==null?void 0:_[0])==null?void 0:B.some(ee=>ee==null?void 0:ee.children),ye=(z=(U=(w=P==null?void 0:P.compData)==null?void 0:w.find(ee=>(ee==null?void 0:ee.key)==="tableContents"))==null?void 0:U.contents)==null?void 0:z.map(ee=>ee.slice(1)),te=(J=(Z=(W=(M=(E=P==null?void 0:P.compData)==null?void 0:E.find(ee=>(ee==null?void 0:ee.key)==="header"))==null?void 0:M.contents)==null?void 0:W[0])==null?void 0:Z[0])==null?void 0:J.label,ue=(ie=(re=(se=P==null?void 0:P.compData)==null?void 0:se.find(ee=>(ee==null?void 0:ee.key)==="header"))==null?void 0:re.contents)==null?void 0:ie[0];if(he)v[te]=p(ye,ue);else{const ee=[];ue=ue.slice(1,ue.length-1),ue==null||ue.forEach((_e,xe)=>{ye==null||ye.forEach(De=>{ee.push({key:_e.label+De[0],value:De[xe+1]})})}),v["form"+K]=ee}}else{const he=(fe=(ce=P.compData)==null?void 0:ce.find(te=>(te==null?void 0:te.key)==="formContent"))==null?void 0:fe.contents;v.form={};const ye=[];he==null||he.forEach(te=>{te.key!==""&&(te={key:(te==null?void 0:te.key)??(te==null?void 0:te.label),value:te==null?void 0:te.value},ye.push(te))}),v.form=ye}}),d.api){const P=await Be.axios.post(d.api,{data:v,templateFileName:(f=d==null?void 0:d.extraContent)==null?void 0:f[0]},{responseType:"blob",headers:{"Content-Type":"application/json"}});var V=new Blob([P.data],{type:"application/octet-stream;charset=UTF-8"}),C=P.headers["content-disposition"],I=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),b=I.exec(C),S=((L=(m=(i=d==null?void 0:d.extraContent)==null?void 0:i[0])==null?void 0:m.split("."))==null?void 0:L[0])+"."+((F=b[1].split("."))==null?void 0:F[1]),y=document.createElement("a"),k=window.URL.createObjectURL(V),x=/^["](.*)["]$/g;y.style.display="none",y.href=k,y.download=decodeURI(S.replace(x,"$1")),document.body.appendChild(y),y.click(),document.body.removeChild(y),window.URL.revokeObjectURL(k)}},h=async d=>{var I;const v=u.cloneDeep(d),V=v==null?void 0:v.map(async b=>{var f,i,m,L,F,P,K;const y=(f=(await Be.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),parentTable:"",type:"method",methodName:b.method}})).data.result)==null?void 0:f[0],k=await Be.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"methodData",tableId:y==null?void 0:y.id}}),x=await me.getItemData((i=b==null?void 0:b.value)==null?void 0:i[0],sessionStorage.getItem("systemKey"),""),t=(m=k.data.result)==null?void 0:m[0];return{buttonName:(L=y==null?void 0:y.key)==null?void 0:L.methodKey,api:(P=(F=t==null?void 0:t.value)==null?void 0:F.tableData)==null?void 0:P[0],content:x==null?void 0:x.filter(D=>D.comp!=="methodButton"),extraContent:(K=u.cloneDeep(b.value))==null?void 0:K.slice(1)}}),C=await Promise.all(V);s.value=C==null?void 0:C.filter(b=>b==null?void 0:b.extraContent),(I=s.value)==null||I.forEach(b=>{var S;b.api===""&&((S=b.content)==null||S.forEach(y=>{var k;y.comp=="Table"&&l.setExtraContents(me.methodTableToContent(y.compData,(k=b.extraContent)==null?void 0:k[0]))}))})};return e.watch(()=>n.itemData,async()=>{r.value=="view"&&await h(u.cloneDeep(n.itemData))},{immediate:!0,deep:!0}),(d,v)=>(e.openBlock(),e.createElementBlock("div",Bn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,V=>(e.openBlock(),e.createElementBlock("div",null,[V.api!==""?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:C=>c(V),class:"method-buttons"},e.toDisplayString(V.buttonName),9,Vn)):e.createCommentVNode("",!0)]))),256))]))}},An=de._export_sfc(Tn,[["__scopeId","data-v-0c52611a"]]),In={};function Sn(a,s){return" 567 "}const On=de._export_sfc(In,[["render",Sn]]),Fn={class:"module content"},Ln={class:"module data"},jn={class:"module layout"},Un={class:"form-content"},Jn=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:s}){const n=a,l=s,o=e.reactive({visible:!1,width:"40%",title:"签名配置"}),r=e.ref("create"),p=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),c=e.ref([{label:"宽度(%):",prop:"signPadWidth",type:"number",value:"30"},{label:"弹窗名称:",prop:"dialogTitle",type:"input",value:""},{label:"弹窗宽度(%):",prop:"dialogWidth",type:"number",value:"30"},{label:"弹窗显示:",prop:"dialogShow",type:"radio",contents:[{label:"显示",value:!0},{label:"隐藏",value:!1}],value:!1,isFormColHidden:!0},{label:"路径:",prop:"url",type:"input",value:"",isFormColHidden:!0}]),h=e.computed(()=>[{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"类型:",prop:"label",type:"select",contents:[{label:"电子签名",value:"电子签名"},{label:"签字版",value:"签字版"},{label:"上传签名",value:"上传签名"}],value:""},{label:"图标",prop:"icon",type:"inputPopover",value:""}]),d=e.ref({}),v=e.ref([]),V=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:v.value},{key:"signConfig",contents:d.value}]}),C=y=>{var k;d.value=u.cloneDeep(y),l("change",(k=V())==null?void 0:k.compData)},I=y=>{var k,x;if((y==null?void 0:y.buttonName)==="确认"){const t=u.cloneDeep(y==null?void 0:y.content);switch(r.value){case"create":v.value.push({...t,index:((k=v.value)==null?void 0:k.length)+1});break}l("change",(x=V())==null?void 0:x.compData),o.visible=!1}else o.visible=!1},b=(y,k)=>{var x,t;switch(y){case"create":(x=h.value)==null||x.forEach(f=>{f.value=""}),r.value="create",o.visible=!0;break;case"update":(t=h.value)==null||t.forEach(f=>{f.value=k[f==null?void 0:f.prop]}),console.log(345,k),r.value="update",o.visible=!0;break;case"delete":v.value.splice(k,1),r.value="delete";break}},S=()=>{o.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,y=>{var k,x;y&&(console.log(5670,y),d.value=((k=y==null?void 0:y.find(t=>t.key==="signConfig"))==null?void 0:k.contents)??{},v.value=((x=y==null?void 0:y.find(t=>t.key==="signTypeList"))==null?void 0:x.contents)??[])},{immediate:!0}),(y,k)=>{const x=e.resolveComponent("svg-icon"),t=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",Fn,[k[2]||(k[2]=e.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),e.createElementVNode("div",{class:"module-icon",onClick:k[0]||(k[0]=f=>b("create"))},[e.createElementVNode("div",null,[e.createVNode(x,{name:"Plus",class:"icon-size"}),k[1]||(k[1]=e.createElementVNode("span",null,"新增",-1))])])]),e.createElementVNode("div",Ln,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(f,i)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:i},[e.createElementVNode("span",null,e.toDisplayString(f==null?void 0:f.label),1),e.createElementVNode("div",null,[e.createVNode(t,{type:"primary",size:"small",onClick:m=>b("update",{...f,index:i+1})},{default:e.withCtx(()=>k[3]||(k[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(t,{type:"danger",size:"small",onClick:m=>b("delete",i)},{default:e.withCtx(()=>k[4]||(k[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",jn,[e.createVNode(le.ssForm,{rowContents:c.value,onChange:C},null,8,["rowContents"])])]),e.createVNode(le.ssDialog,{visible:o.visible,title:o.title,onBeforeDestroy:S,width:o.width},{default:e.withCtx(()=>[e.createElementVNode("div",Un,[(e.openBlock(),e.createBlock(le.ssForm,{rowContents:h.value,key:h.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:p.value,onOnButtonClick:I},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),Pn=de._export_sfc(Jn,[["__scopeId","data-v-4b15bd3e"]]),Rn=e.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(a,{emit:s}){const n=a,l=s,o=e.ref(1),r=e.computed(()=>{var V,C;return(V=n==null?void 0:n.stepConfig)!=null&&V.allowTrigger?o.value:(C=n==null?void 0:n.stepConfig)==null?void 0:C.active}),p=(V,C)=>{o.value=C,l("clickStep",V,C)},c=V=>le.getComponent(V),h=()=>{var C;const V=(C=n==null?void 0:n.stepList)==null?void 0:C.find((I,b)=>b+1===r.value);return console.log("findStep",V),V?V==null?void 0:V.children:[]},d=V=>{l("clickTrigger",V)},v=V=>{l("changeTrigger",V)};return(V,C)=>{var S,y,k,x,t;const I=e.resolveComponent("el-step"),b=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(b,{direction:(S=a.stepConfig)==null?void 0:S.direction,active:r.value,"finish-status":"success",simple:(y=a.stepConfig)==null?void 0:y.simple,"align-center":(k=a.stepConfig)==null?void 0:k.alignCenter},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.stepList,(f,i)=>(e.openBlock(),e.createBlock(I,{key:i,class:"step-item",onClick:m=>p(f,i+1)},{title:e.withCtx(()=>[e.renderSlot(V.$slots,"title",{title:f==null?void 0:f.title},void 0,!0)]),description:e.withCtx(()=>[e.renderSlot(V.$slots,"description",{description:f==null?void 0:f.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(x=a.stepConfig)!=null&&x.allowTrigger&&((t=a.stepConfig)!=null&&t.active)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(h(),(f,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"step-cont-wrap"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(f==null?void 0:f.type)),{modelValue:f.value,"onUpdate:modelValue":m=>f.value=m,onClickTrigger:d,onChangeTrigger:v,content:f==null?void 0:f.content},e.createSlots({_:2},[e.renderList(V.$slots,(m,L)=>({name:L,fn:e.withCtx(F=>[e.renderSlot(V.$slots,L,e.mergeProps({ref_for:!0},F||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):e.createCommentVNode("",!0)],64)}}}),Wn=de._export_sfc(Rn,[["__scopeId","data-v-85b1cc5d"]]),zn=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(a,{emit:s}){const n=a,l=s,o=e.ref({}),r=e.ref([]),p=(c,h)=>{l("clickStep",c,h)};return e.watch(()=>n==null?void 0:n.itemData,c=>{var h,d;r.value=(h=c==null?void 0:c.find(v=>(v==null?void 0:v.key)==="stepList"))==null?void 0:h.contents,o.value=(d=c==null?void 0:c.find(v=>(v==null?void 0:v.key)==="stepConfig"))==null?void 0:d.contents},{immediate:!0}),(c,h)=>{const d=e.resolveComponent("svg-icon");return e.openBlock(),e.createBlock(Wn,{stepConfig:o.value,stepList:r.value,onClickStep:p},{icon:e.withCtx(()=>[e.createVNode(d,{name:"import"})]),title:e.withCtx(({title:v})=>[e.createTextVNode(e.toDisplayString(v),1)]),description:e.withCtx(({description:v})=>[e.createTextVNode(e.toDisplayString(v),1)]),_:1},8,["stepConfig","stepList"])}}}),Mn=e.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(a){return(s,n)=>{const l=e.resolveComponent("el-timeline-item"),o=e.resolveComponent("el-timeline");return e.openBlock(),e.createBlock(o,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.activities,(r,p)=>(e.openBlock(),e.createBlock(l,{key:p,timestamp:r.timestamp,placement:a.timeLineConfig.placement,center:a.timeLineConfig.isCenter,"hide-timestamp":!0,type:a.timeLineConfig.type,color:a.timeLineConfig.color,size:a.timeLineConfig.size,icon:a.timeLineConfig.icon,hollow:a.timeLineConfig.isHollow},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"content",{content:r==null?void 0:r.content,timestamp:r==null?void 0:r.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),Gn=de._export_sfc(Mn,[["__scopeId","data-v-4172a886"]]),qn={class:"line-content"},Kn={class:"line-time"},Hn=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(a){const s=a,n=e.ref({}),l=e.ref([]);return e.watch(()=>s==null?void 0:s.itemData,o=>{var r,p;l.value=(r=o==null?void 0:o.find(c=>(c==null?void 0:c.key)==="timeLineList"))==null?void 0:r.contents,n.value=(p=o==null?void 0:o.find(c=>(c==null?void 0:c.key)==="timeLineConfig"))==null?void 0:p.contents},{immediate:!0}),(o,r)=>(e.openBlock(),e.createBlock(Gn,{activities:l.value,timeLineConfig:n.value},{content:e.withCtx(({content:p,timestamp:c})=>[e.createElementVNode("span",qn,e.toDisplayString(p),1),e.createElementVNode("span",Kn,e.toDisplayString(c),1)]),_:1},8,["activities","timeLineConfig"]))}}),Zn=de._export_sfc(Hn,[["__scopeId","data-v-b4d9deed"]]),Qn={class:"tabs-content"},Xn={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number},setup(a){const s=a,n=e.ref([]);return e.watch(()=>s==null?void 0:s.itemData,l=>{const o=l.find(r=>(r==null?void 0:r.key)=="stepList");o&&(n.value=o.contents.map(r=>({value:r.value||r.title,label:r.label||r.title,children:r.children||[]})))},{immediate:!0,deep:!0}),(l,o)=>(e.openBlock(),e.createElementBlock("div",Qn,[e.createVNode(le.ssTab,{tabsContents:n.value},null,8,["tabsContents"])]))}},Yn=de._export_sfc(Xn,[["__scopeId","data-v-d3bb10b7"]]),eo={class:"tabs-header"},lo={class:"tabs-list"},ao={class:"tab-name"},no={class:"tab-actions"},oo={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:s}){const n=a,l=s,o=e.ref([]),r=e.ref(!1),p=e.ref(""),c=e.ref({title:""}),h=e.ref(-1),d=()=>{p.value="新增标签页",c.value.title="",h.value=-1,r.value=!0},v=b=>{p.value="修改标签页",c.value.title=o.value[b].title,h.value=b,r.value=!0},V=b=>{o.value.splice(b,1),I()},C=()=>{c.value.title.trim()&&(h.value===-1?o.value.push({title:c.value.title,value:c.value.title,label:c.value.title,children:[]}):(o.value[h.value].title=c.value.title,o.value[h.value].value=c.value.title,o.value[h.value].label=c.value.title),r.value=!1,I())},I=()=>{const b=[{key:"stepList",contents:o.value}];l("change",b)};return e.watch(()=>n.itemContents,b=>{if(b&&b.length>0){const S=b.find(y=>y.key==="stepList");S&&S.contents&&(o.value=S.contents.map(y=>({title:y.title||"",value:y.value||y.title||"",label:y.label||y.title||"",children:y.children||[]})))}},{immediate:!0}),(b,S)=>{const y=e.resolveComponent("svg-icon"),k=e.resolveComponent("el-button"),x=e.resolveComponent("el-input"),t=e.resolveComponent("el-form-item"),f=e.resolveComponent("el-form"),i=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",eo,[S[4]||(S[4]=e.createElementVNode("h4",null,"标签页管理",-1)),e.createVNode(k,{type:"primary",size:"small",onClick:d},{default:e.withCtx(()=>[e.createVNode(y,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),S[3]||(S[3]=e.createTextVNode(" 新增标签页 "))]),_:1,__:[3]})]),e.createElementVNode("div",lo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(m,L)=>(e.openBlock(),e.createElementBlock("div",{class:"tab-item",key:L},[e.createElementVNode("span",ao,e.toDisplayString(m.title),1),e.createElementVNode("div",no,[e.createVNode(k,{type:"primary",size:"small",onClick:F=>v(L)},{default:e.withCtx(()=>S[5]||(S[5]=[e.createTextVNode("修改")])),_:2,__:[5]},1032,["onClick"]),e.createVNode(k,{type:"danger",size:"small",onClick:F=>V(L)},{default:e.withCtx(()=>S[6]||(S[6]=[e.createTextVNode("删除")])),_:2,__:[6]},1032,["onClick"])])]))),128))]),e.createVNode(i,{modelValue:r.value,"onUpdate:modelValue":S[2]||(S[2]=m=>r.value=m),title:p.value},{footer:e.withCtx(()=>[e.createVNode(k,{onClick:S[1]||(S[1]=m=>r.value=!1)},{default:e.withCtx(()=>S[7]||(S[7]=[e.createTextVNode("取消")])),_:1,__:[7]}),e.createVNode(k,{type:"primary",onClick:C},{default:e.withCtx(()=>S[8]||(S[8]=[e.createTextVNode("确定")])),_:1,__:[8]})]),default:e.withCtx(()=>[e.createVNode(f,{model:c.value,"label-width":"80px"},{default:e.withCtx(()=>[e.createVNode(t,{label:"标签名称",required:""},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:c.value.title,"onUpdate:modelValue":S[0]||(S[0]=m=>c.value.title=m),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}},so=de._export_sfc(oo,[["__scopeId","data-v-a26b1c22"]]),ro=e.ref([{name:"表格",type:"table",comp:"Table",icon:"Table"},{name:"表单",type:"form",comp:"Form",icon:"Form"},{name:"折叠",type:"fold",comp:"Fold",icon:"Fold"},{name:"头像",type:"avatar",comp:"AvatarUpload",icon:"Avatar"},{name:"签名",type:"signature",comp:"Signature",icon:"Signature"},{name:"步骤条",type:"step",comp:"Step",icon:"Step"},{name:"时间线",type:"timeLine",comp:"TimeLine",icon:"TimeLine"},{name:"标签页",type:"tabs",comp:"Tabs",icon:"Tabs"}]),to={TABLE:me.ssTable,FORM:ol,TABLEOPERATE:qa,FORMOPERATE:sl,FOLD:xn,CALCULATOR:$n,METHODBUTTON:An,AVATARUPLOAD:al.ssAvatar,SIGNATURE:al.ssSignature,FORMTOP:ol,STEP:zn,STEPOPERATE:hn,TIMELINE:Zn,TIMELINEOPERATE:bn,FORMTOPOPERATE:sl,SIGNATUREOPERATE:Pn,AVATARUPLOADOPERATE:On,TABS:Yn,TABSOPERATE:so};function Dl(a){return to[a==null?void 0:a.toUpperCase()]||null}const oe=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],ne=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"FormFlex",value:"formWrap"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"TableLineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"},{key:"Menus",value:"menuContents"},{key:"GroupContents",value:"groupContents"}],Te=e.ref(0),co=a=>{const[s,n]=a.split(/=(.+)/),l=s.replace(/['"]/g,"").trim(),o=n.replace(/^['"]|['"]$/g,"");return{key:l,value:o}},je=a=>{try{return JSON.parse(a),!0}catch{return!1}},io=a=>a.includes("$")&&a.trim().endsWith("(")?a+")":a,uo=a=>{let s=a;const n=[];let l="";for(const o of s)o.includes("{")||l.includes("{")||o.includes("[")||l.includes("[")||o.includes("【")||l.includes("【")||o.includes("(")||l.includes("(")||o.includes("(")||l.includes("(")||o.includes("/*")||l.includes("/*")?(l+=o.trim(),u.cloneDeep(l).split("{").length-1===u.cloneDeep(l).split("}").length-1&&u.cloneDeep(l).split("【").length-1===u.cloneDeep(l).split("】").length-1&&u.cloneDeep(l).split("[").length-1===u.cloneDeep(l).split("]").length-1&&u.cloneDeep(l).split("(").length-1===u.cloneDeep(l).split(")").length-1&&u.cloneDeep(l).split("(").length-1===u.cloneDeep(l).split(")").length-1&&u.cloneDeep(l).split("/*").length-1===u.cloneDeep(l).split("*/").length-1&&(n.push(l),l="")):n.push(o.trim());return n==null?void 0:n.filter(o=>o.includes("{"))},po=a=>{var n;let s=[];return(n=uo(a.slice(1,-1)))==null||n.forEach(l=>{var r,p,c,h;let o=((p=(r=l.slice(1,-1))==null?void 0:r.split(","))==null?void 0:p.length)??1;(h=(c=l.slice(1,-1))==null?void 0:c.split(","))==null||h.forEach(d=>{var I,b,S,y,k,x,t,f,i,m,L,F,P;let v=d==null?void 0:d.split(":"),V=v!=null&&v[0]?(v==null?void 0:v[1].split("$").length)-1===1?((I=v==null?void 0:v[0])==null?void 0:I.replace(/^"(.*)"$/,"$1"))+((b=v==null?void 0:v[1])==null?void 0:b.replace(/^"(.*)"$/,"$1")):Array.isArray((y=(S=v==null?void 0:v[1])==null?void 0:S.replace(/^"(.*)"$/,"$1"))==null?void 0:y.split("("))&&((t=(x=(k=v==null?void 0:v[1])==null?void 0:k.replace(/^"(.*)"$/,"$1"))==null?void 0:x.split("("))==null?void 0:t.length)>1?((f=v==null?void 0:v[0])==null?void 0:f.replace(/^"(.*)"$/,"$1"))+((L=(m=(i=v==null?void 0:v[1])==null?void 0:i.replace(/^"(.*)"$/,"$1"))==null?void 0:m.split("("))==null?void 0:L[0])+"()":(F=v==null?void 0:v[0])==null?void 0:F.replace(/^"(.*)"$/,"$1"):"",C=(v==null?void 0:v[1].split("$").length)-1===0?(P=v==null?void 0:v[1])==null?void 0:P.replace(/^"(.*)"$/,"$1"):"";Te.value++,s.push({id:Te.value,key:V,value:C,width:o,extraContent:v==null?void 0:v[1]})})}),s},xl=a=>{var s,n;try{const l=a.replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",").replace(/:/g,":").replace(/:\s*(?=,|}|$)/g,': ""');if(u.cloneDeep(l).split("{").length-1>1){let o=u.cloneDeep(l).replace(/^\{(.*)\}$/,"[$1]");if(je(o)&&!o.includes("$")||(o=o.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),je(o)){const r=JSON.parse(o);let p=[];return r==null||r.forEach(c=>{var h;(h=Object.entries(u.cloneDeep(c)))==null||h.forEach(d=>{Te.value++,p.push({id:Te.value,key:(d==null?void 0:d[0])??"",value:(d==null?void 0:d[1])===""?"":d==null?void 0:d[1],width:Object.keys(u.cloneDeep(c)).length})})}),p}else return l.trim().startsWith("{{")?po(l.trim()):Me(o)}else if(je(l)){const o=JSON.parse(l);return Object.entries(o).map(([r,p])=>(Te.value++,{id:Te.value,key:r,value:p===""?"":p,width:1}))}else return((s=Me(l))==null?void 0:s.length)===0?l:(n=Me(l))==null?void 0:n.map(o=>({label:o.label,method:io(o.method)}))}catch(l){return console.error("转换失败:",l),[]}},Me=a=>{a=a.trim().replace(/^\{|\}$/g,"").trim();const s=[];let n=0;for(;n<a.length;){const l=a.slice(n).match(/^\s*"([^"]+)"\s*:\s*/);if(!l)break;const o=l[1];n+=l[0].length;let r="",p=0,c=!1,h="";for(let d=n;d<a.length;d++){const v=a[d];if((v==='"'||v==="'")&&!c?(c=!0,h=v):v===h&&c&&(c=!1,h=""),!c&&((v==="{"||v==="("||v==="[")&&p++,(v==="}"||v===")"||v==="]")&&p--,v===","&&p===0||d===a.length-1)){r=a.slice(n,d+1).trim(),n=d+1;break}}s.push({label:o,method:r})}return s},fo=(a,s)=>{try{if(oe!=null&&oe.find(n=>(n==null?void 0:n.key)===s))return a.replace(/['"]/g,"").trim();if(u.cloneDeep(a).split("[").length-1>1){const n=u.cloneDeep(a).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(n)}else{const n=u.cloneDeep(a).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",");if(je(n)){const l=JSON.parse(n);return Array.isArray(l)?l.map(o=>({label:o})):l}else return xl(u.cloneDeep(a))}}catch(n){return console.error("解析失败:",n),a}},ho=a=>({[a==null?void 0:a.key]:fo(a==null?void 0:a.value,a==null?void 0:a.key)}),mo=a=>{try{if(u.cloneDeep(a).split("[").length-1>1){const s=u.cloneDeep(a).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(s)}else return JSON.parse(u.cloneDeep(a).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",")).map(n=>({label:n}))}catch(s){return console.error("解析失败:",s),a}},yo=a=>{const s=a.match(/\(([^)]+)\)/);return s?s[1]:""},vo=a=>{const s=a.match(/^([^(]+)\s*\(/);return s?s[1].trim():a},rl=a=>a.replace(/'/g,"").replace(/"/g,"").replace(/{|}/g,"").split(":").map(s=>s.trim()).filter(s=>s).join("/"),ko=a=>{var p,c;let s=[],n=[];const l=(p=u.cloneDeep(a))==null?void 0:p.map(h=>h==null?void 0:h.key),o=[...new Set((c=u.cloneDeep(l))==null?void 0:c.map(h=>yo(h)))];o==null||o.forEach(h=>{let d=a==null?void 0:a.filter(C=>C.key.includes(h));d==null||d.forEach(C=>{C!=null&&C.key.includes("Menus")&&(s.push({key:"GroupName",value:rl(C==null?void 0:C.value)}),n.push(rl(C==null?void 0:C.value)))});let v=a==null?void 0:a.filter(C=>C.key.includes(h)&&!(C!=null&&C.key.includes("Menus")));v=v==null?void 0:v.map(C=>(C.key=vo(C.key),C));const V={key:"GroupContents",value:v};s.push(V)});const r={key:"Menus",value:n};return s.unshift(r),s},El=a=>{var s,n;if(Array.isArray(Object.keys(a))&&((s=Object.keys(a))==null?void 0:s.length)>0){let l=[];return(n=Object.entries(a))==null||n.forEach(([o,r])=>{var c,h;let p=[];if(p.push(o),((c=Object.keys(r))==null?void 0:c.length)>0){let d=[];(h=El(r))==null||h.forEach(v=>{d.push(v)}),d==null||d.forEach(v=>{p.push(v)})}l.push(p)}),l}},go=(a,s)=>{var l;let n=s;return Array.isArray(Object.keys(a))&&((l=Object.entries(a))==null||l.forEach(([o,r])=>{let p=[o];if(typeof r=="object"&&r!==null){let c=El(r);c==null||c.forEach(h=>{p.push(h)})}n.push(p)})),n},bo=a=>{const s={};return a.forEach(l=>{const o=l.split("/");let r=s;o.forEach(p=>{r[p]||(r[p]={}),r=r[p]})}),go(s,[])},He=a=>bo(a),Co=a=>{var s,n,l,o,r,p,c,h;try{const d=Re((n=(s=u.cloneDeep(a))==null?void 0:s.replace("(","("))==null?void 0:n.replace(")",")")),v=(o=(l=u.cloneDeep(d))==null?void 0:l.filter(b=>!b.includes("/*")))==null?void 0:o.map(b=>co(b)),V=ko(v),C=[];if(((r=V==null?void 0:V.find(b=>(b==null?void 0:b.key)==="Menus"))==null?void 0:r.value.length)===0)return!1;(p=u.cloneDeep(V))==null||p.forEach(b=>{var S,y,k,x,t;oe!=null&&oe.find(f=>{var i,m;return((i=f==null?void 0:f.key)==null?void 0:i.toUpperCase())===((m=b==null?void 0:b.key)==null?void 0:m.toUpperCase())})?C.push({comp:((S=oe==null?void 0:oe.find(f=>{var i,m;return((i=f==null?void 0:f.key)==null?void 0:i.toUpperCase())===((m=b==null?void 0:b.key)==null?void 0:m.toUpperCase())}))==null?void 0:S.value)??"",name:(y=b==null?void 0:b.value)==null?void 0:y.replace(/[’]|[‘]|[']/g,""),compData:[]}):ne!=null&&ne.find(f=>{var i,m;return((i=f==null?void 0:f.key)==null?void 0:i.toUpperCase())===((m=b==null?void 0:b.key)==null?void 0:m.toUpperCase())})&&((C==null?void 0:C.length)===0&&(k=b.key)!=null&&k.includes("Menus")&&C.push({comp:"Menu",name:"",compData:[]}),(x=C==null?void 0:C[(C==null?void 0:C.length)-1])!=null&&x.compData&&C[(C==null?void 0:C.length)-1].compData.push({key:(t=ne==null?void 0:ne.find(f=>{var i,m;return((i=f==null?void 0:f.key)==null?void 0:i.toUpperCase())===((m=b==null?void 0:b.key)==null?void 0:m.toUpperCase())}))==null?void 0:t.value,contents:b==null?void 0:b.value}))});let I=(c=u.cloneDeep(C))==null?void 0:c.map(b=>{var S;return b!=null&&b.compData&&(b.compData=(S=b==null?void 0:b.compData)==null?void 0:S.map(y=>{var k,x,t,f,i,m,L,F,P,K,D;if((y==null?void 0:y.key)==="formFlex")y.contents=((x=(k=y.contents)==null?void 0:k.replace(/[’]|[‘]|[']/g,""))==null?void 0:x.toUpperCase())!=="Vertical".toUpperCase();else if((y==null?void 0:y.key)==="groupContents")y.contents=(t=u.cloneDeep(y.contents))==null?void 0:t.map(T=>ho(u.cloneDeep(T)));else if(Array.isArray(y==null?void 0:y.contents))y.contents=He(y.contents);else if(((i=(f=y==null?void 0:y.contents)==null?void 0:f.trim())!=null&&i.startsWith("[")||(L=(m=y.contents)==null?void 0:m.trim())!=null&&L.startsWith("【"))&&((P=(F=y.contents)==null?void 0:F.trim())!=null&&P.endsWith("]")||(D=(K=y.contents)==null?void 0:K.trim())!=null&&D.endsWith("】")))y.contents=mo(u.cloneDeep(y.contents));else{if(!y.contents)return;y.contents=xl(u.cloneDeep(y.contents))}return y})),b});return I=(h=u.cloneDeep(I))==null?void 0:h.map(b=>{var S;return(b==null?void 0:b.comp)==="Group"&&(b.compData=(S=b.compData)==null?void 0:S.map(y=>{var x;let k=[];return(x=y.contents)==null||x.forEach(t=>{var f,i,m,L,F,P,K,D,T,_,B,w;if(oe!=null&&oe.find(U=>{var z,E,M;return((z=U==null?void 0:U.key)==null?void 0:z.toUpperCase())===((M=(E=Object.keys(t))==null?void 0:E[0])==null?void 0:M.toUpperCase())}))k.push({comp:(f=oe==null?void 0:oe.find(U=>{var z,E,M;return((z=U==null?void 0:U.key)==null?void 0:z.toUpperCase())===((M=(E=Object.keys(t))==null?void 0:E[0])==null?void 0:M.toUpperCase())}))==null?void 0:f.value,name:(m=(i=Object.values(t))==null?void 0:i[0])==null?void 0:m.replace(/[’]|[‘]|[']/g,""),compData:[]});else if(ne!=null&&ne.find(U=>{var z,E,M;return((z=U==null?void 0:U.key)==null?void 0:z.toUpperCase())===((M=(E=Object.keys(t))==null?void 0:E[0])==null?void 0:M.toUpperCase())})){if((k==null?void 0:k.length)===0)return;(L=k==null?void 0:k[(k==null?void 0:k.length)-1])!=null&&L.compData&&k[(k==null?void 0:k.length)-1].compData.push({key:(F=ne==null?void 0:ne.find(U=>{var z,E,M;return((z=U==null?void 0:U.key)==null?void 0:z.toUpperCase())===((M=(E=Object.keys(t))==null?void 0:E[0])==null?void 0:M.toUpperCase())}))==null?void 0:F.value,contents:(P=Object.values(t))==null?void 0:P[0]})}else if((D=(K=Object.keys(t))==null?void 0:K[0])!=null&&D.includes("$")){const U=(_=(T=Object.keys(u.cloneDeep(t)))==null?void 0:T[0])==null?void 0:_.split("$");k[(k==null?void 0:k.length)-1].compData.push({key:(B=ne==null?void 0:ne.find(z=>{var E,M;return((E=z==null?void 0:z.key)==null?void 0:E.toUpperCase())===((M=U==null?void 0:U[0])==null?void 0:M.toUpperCase())}))==null?void 0:B.value,contents:(w=Object.values(t))==null?void 0:w[0],selectLabel:U==null?void 0:U[1]})}return t}),y.contents=k,y})),b}),I}catch{return!1}},tl=e.ref(0),_l=a=>{const s=[];let n=null;for(let l=0;l<a.length;l++){const o=a[l];if(Array.isArray(o))n&&(n.children=_l(o));else{const r={label:o};s.push(r),n=r}}return s},Nl=a=>{let s=0;for(const n of a)s++,n.children&&(s+=Nl(n.children));return s},wl=(a,s,n=[])=>{let l=0;for(const o of s){if(l>=a.length)break;const r=[...a[l]];if(n.push(r),l++,o.children&&o.children.length>0){const p=[];wl(a.slice(l),o.children,p),p.length>0&&(r.push(p),l+=Nl(o.children))}}return n},Do=(a,s)=>{let n=[];return a==null||a.forEach(o=>{o.some(r=>Array.isArray(r))?n.push(...o):n.push(o)}),wl(n,s)},Ke=a=>{const s={label:a[0].trim()};if(a.length>1){const n=a.slice(1);n.length===1&&Array.isArray(n[0])?s.children=n[0].map(l=>Array.isArray(l)?Ke(l):{label:l.trim()}):s.children=n.map(l=>Array.isArray(l)?Ke(l):{label:l.trim()})}return s},cl=a=>{let s=a.replace(/:([^{}\[\],\s]+)([,\]}])/g,':"$1"$2');return s=s.replace(/:}(?=,|]|}|$)/g,':""}'),s=s.replace(/:,(?=\s*")/g,':"",'),s=s.replace(/(https?|HTTPS?):"\/\/([^"]+)"/gi,(n,l,o)=>`"${l}://${o}"`),s=s.replace(/(\[|\s|,)((?:https?|HTTPS?):\/\/[^\s,\]]+)(\]|,|$)/gi,'$1"$2"$3'),s},xo=a=>{var n;return a.some(l=>!Array.isArray(l))?a:(n=u.cloneDeep(a))==null?void 0:n.map(l=>{let o=[];return l.some(r=>Array.isArray(r))?l==null||l.forEach(r=>{Array.isArray(r)&&o.push(Ke(r))}):l.some(r=>r.includes("["))?o.push(l):o=l.map(r=>({label:r.trim()})),o})},$l=(a,s,n)=>{let l=a,o=n,r=s;return r.children&&(Array.isArray(o[o.length-1])?o[o.length-1].push(l[0]):o.push(l[0]),l.shift(),r=r.children),Array.isArray(r)&&r.forEach(p=>{if(p.children){const c=$l(l,p,o);o=c[0],l=c[1]}}),[o,l]},Eo=(a,s)=>{let n=a,l=[];return s.length>0?s==null||s.forEach(o=>{let r=n==null?void 0:n[0];n.shift();const p=$l(u.cloneDeep(n),o,r);r=p[0],n=p[1],l.push(r)}):l=n,l},Ze=(a,s)=>{const n=xo(u.cloneDeep(a));return Eo(n,s)},_o=a=>{const s=[];let n=0;const l=a.length;for(;n<l;){const o=a[n];o.key==="tableColumns"&&n+1<l&&a[n+1].key==="tableContents"?(s.push({comp:"Table",compData:[o,a[n+1]],name:""}),n+=2):(s.push(o),n+=1)}return s},Bl=a=>Ze([a],[]),Pe=a=>{const s=[];return a==null||a.forEach(n=>n==null?void 0:n.forEach(o=>{var r,p;tl.value++,s.push({id:tl.value,key:(r=Object.keys(o))==null?void 0:r[0],value:(p=Object.values(o))==null?void 0:p[0],width:n.length})})),s},il=a=>{let s=_o(a);return s=s==null?void 0:s.map(n=>{var l,o,r,p;if(n.comp==="Table")(l=n.compData)!=null&&l.find(c=>(c==null?void 0:c.key)==="header")||(n.compData=(o=n.compData)==null?void 0:o.map(c=>(c.key==="tableColumns"?c={key:"header",contents:Ze(c.value,[])}:c={key:c.key,contents:c.value},c)),n.compData.push({key:"extraButton",contents:[{label:"新增"}]}),n.compData.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}));else if(n.key==="form"){const c=(r=n==null?void 0:n.value)==null?void 0:r.map(h=>(Array.isArray(h)||(h=[h]),h));n={comp:"Form",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:Pe(c)}],name:""}}else if(n.key==="formTop"){const c=(p=n==null?void 0:n.value)==null?void 0:p.map(h=>(Array.isArray(h)||(h=[h]),h));n={comp:"FormTop",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:Pe(c)},{key:"enableWrap",contents:!0},{key:"formButton",contents:[{label:"查询"},{label:"重置"}]}],name:""}}return n}),s},No=(a,s)=>{var c,h,d,v,V,C;const n=[],l=_l((h=(c=a==null?void 0:a.find(I=>I.key==="tableIndex"))==null?void 0:c.value)==null?void 0:h[0]);n.push({key:"tableIndexColumn",contents:s}),n.push({key:"tableIndex",contents:l});let o=[];const r=(d=a==null?void 0:a.find(I=>I.key==="tableColumns"))==null?void 0:d.value;r.length===1&&!(r!=null&&r[0].some(I=>Array.isArray(I)))?o=(v=r==null?void 0:r[0])==null?void 0:v.map(I=>({label:I})):o=Ze((V=a==null?void 0:a.find(I=>I.key==="tableColumns"))==null?void 0:V.value,l),n.push({key:"header",contents:o});const p=Do((C=a==null?void 0:a.find(I=>I.key==="tableContents"))==null?void 0:C.value,l);return n.push({key:"tableContents",contents:p}),n.push({key:"extraButton",contents:[{label:"新增"}]}),n.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),n},Vl=a=>a.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,(s,n,l)=>{const o=Vl(l);return`"${n}",${o}`}),Fe=a=>{const s=a.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,'"$1",$2');return Vl(s).replace(/^"(.*)"$/,"$1")},wo=a=>{const s=new Set;return a.filter(n=>{const l=JSON.stringify(n);return s.has(l)?!1:s.add(l)})},ul=a=>{var n;let s=[];return(n=u.cloneDeep(a))==null||n.forEach(l=>{var o;(o=l.contents)==null||o.forEach(r=>{s.push(r)})}),s=wo(s),s.push({label:"操作"}),[s]},$o=(a,s)=>a.reduce((n,l,o)=>{const r=Math.floor(o/s);return n[r]||(n[r]=[]),n[r].push(l),n},[]),Tl=a=>a.reduce((s,n)=>n.children&&n.children.length>0?s+Tl(n.children):s+1,0),Bo=(a,s)=>{var l;let n=[];return(l=$o(a,Tl(s==null?void 0:s[0])-1))==null||l.forEach(o=>{let r=[];o.forEach(p=>{var c;Array.isArray(p.contents)?(c=p.contents)==null||c.forEach(h=>{r.push(h)}):r.push(p.contents)}),n.push(r)}),[n]},Vo=["方法体","输入","输出"],pl=e.ref(1),Re=a=>{let s;a.replaceAll(" ",`\r
|
|
2
|
+
`).includes(`\r
|
|
3
|
+
`)?s=a.replaceAll(" ",`\r
|
|
4
|
+
`).split(`\r
|
|
5
|
+
`).filter(o=>o.trim()!==""):s=a.replaceAll(" ",`\r
|
|
6
|
+
`).split(`
|
|
7
|
+
`).filter(o=>o.trim()!=="");const n=[];let l="";for(const o of s)o.includes("{")||l.includes("{")||o.includes("[")||l.includes("[")||o.includes("【")||l.includes("【")||o.includes("(")||l.includes("(")||o.includes("(")||l.includes("(")||o.includes("/*")||l.includes("/*")?(l+=o.trim(),u.cloneDeep(l).split("{").length-1===u.cloneDeep(l).split("}").length-1&&u.cloneDeep(l).split("【").length-1===u.cloneDeep(l).split("】").length-1&&u.cloneDeep(l).split("[").length-1===u.cloneDeep(l).split("]").length-1&&u.cloneDeep(l).split("(").length-1===u.cloneDeep(l).split(")").length-1&&u.cloneDeep(l).split("(").length-1===u.cloneDeep(l).split(")").length-1&&u.cloneDeep(l).split("/*").length-1===u.cloneDeep(l).split("*/").length-1&&l[l.length-1]!==","&&(n.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="")):n.push(o.trim().replace(/\/\*[\s\S]*?\*\//g,""));return n},Al=a=>{const[s,n]=a.split(/=(.+)/),l=s.replace(/['"]/g,"").trim(),o=n.replace(/^['"]|['"]$/g,"");return{key:l,value:o}},We=a=>{let s;a!=null&&a.includes(":")?s=a.split(":").filter(o=>o.trim()!==""):s=a==null?void 0:a.split(":").filter(o=>o.trim()!=="");const n=[];let l="";for(const o of s)o.includes("{")||l.includes("{")||o.includes("[")||l.includes("[")||o.includes("【")||l.includes("【")||o.includes("(")||l.includes("(")||o.includes("(")||l.includes("(")||o.includes("/*")||l.includes("/*")?(l=l!==""?l+":"+o.trim():o.trim(),u.cloneDeep(l).split("{").length-1===u.cloneDeep(l).split("}").length-1&&u.cloneDeep(l).split("【").length-1===u.cloneDeep(l).split("】").length-1&&u.cloneDeep(l).split("[").length-1===u.cloneDeep(l).split("]").length-1&&u.cloneDeep(l).split("(").length-1===u.cloneDeep(l).split(")").length-1&&u.cloneDeep(l).split("(").length-1===u.cloneDeep(l).split(")").length-1&&u.cloneDeep(l).split("/*").length-1===u.cloneDeep(l).split("*/").length-1&&(n.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="")):n.push(o.trim().replace(/\/\*[\s\S]*?\*\//g,""));return n},To=a=>/^[\x00-\x7F]*$/.test(a),Ao=a=>{var o,r;const s=(o=a.map(p=>{var h,d;let c=(d=(h=p.key.split("("))==null?void 0:h[1])==null?void 0:d.trim();return c==null?void 0:c.slice(0,c.length-1)}))==null?void 0:o.filter(p=>p),n=s==null?void 0:s.map(p=>{var h;return(h=We(p))==null?void 0:h.map(d=>{var v;if(d.includes("{")){let V=(v=d.split(":"))==null?void 0:v[0];d=V.slice(1,V.length)}return d})}).filter(p=>p.length!==0),l=(r=n==null?void 0:n.filter(p=>p.length!==0))==null?void 0:r.map(p=>{let c="";return p.forEach(h=>{h.includes("{")||(c=c===""?c+u.cloneDeep(h):c+"/"+u.cloneDeep(h))}),c});return He([...new Set(l)])},Qe=a=>{var n,l,o,r,p,c,h,d;const s=(l=(n=a.split("("))==null?void 0:n[1])==null?void 0:l.trim();return((o=We(s.slice(0,s.length-1)))==null?void 0:o.length)>0?s.slice(0,s.length-1):(d=(h=(c=(p=(r=a.split("("))==null?void 0:r[1])==null?void 0:p.trim())==null?void 0:c.split(")"))==null?void 0:h[0])==null?void 0:d.trim()},Io=a=>{var o;if(!a)return;const s=Qe(a),n=(o=We(s))==null?void 0:o.map(r=>{var p;if(r.includes("{")){let c=(p=r.split(":"))==null?void 0:p[0];r=c.slice(1,c.length)}return r});let l="";return n.forEach(r=>{r.includes("{")||(l=l===""?l+u.cloneDeep(r):l+"/"+u.cloneDeep(r))}),l},So=a=>{const s=a.match(/\[(.*)\]/s);if(s){const n=`[${s[1]}]`;try{const l=n.replace(/([^\[\],\s]+)/g,'"$1"');return JSON.parse(l)}catch{return JSON.parse(n.replace(/\[(\s*)(,|])/g,'[""$2').replace(/([^\[\],\s]+)/g,'"$1"').replace(/""/g,'"'))}}},Oo=a=>{var r;if(!a)return;const s=Qe(a);let n=[],l=[],o=[];return(r=We(s))==null||r.forEach(p=>{var c;p.includes("[")?n.push(So(p)):p.includes("{")&&(To((c=p.slice(1,p.length-1).split(":"))==null?void 0:c[0])?o.push(JSON.parse(p.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g,'$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g,'$1"$2"$3'))):me.IsJson(p.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g,'$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g,'$1"$2"$3'))?l.push(JSON.parse(p.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g,'$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g,'$1"$2"$3'))):p.includes("$"))}),[n,l,o]},Fo=a=>{const s=[];let n="";for(const l of a)l.includes("[")||n.includes("[")||l.includes("/*")||n.includes("/*")?(n+=l.trim(),u.cloneDeep(n).split("{").length-1===u.cloneDeep(n).split("}").length-1&&u.cloneDeep(n).split("【").length-1===u.cloneDeep(n).split("】").length-1&&u.cloneDeep(n).split("[").length-1===u.cloneDeep(n).split("]").length-1&&u.cloneDeep(n).split("(").length-1===u.cloneDeep(n).split(")").length-1&&u.cloneDeep(n).split("(").length-1===u.cloneDeep(n).split(")").length-1&&u.cloneDeep(n).split("/*").length-1===u.cloneDeep(n).split("*/").length-1&&(s.push(n.replace(/\/\*[\s\S]*?\*\//g,"")),n="")):s.push(l.trim().replace(/\/\*[\s\S]*?\*\//g,""));return s},dl=a=>{var p,c;const s=[],n=/(?:{'([^']+)'[^}]+}: {'([^']+)'[^}]+}|'([^']+)': {'([^']+)'[^}]+})/,l=a.match(n);if(l){const h=l[1]||l[3],d=l[2]||l[4];if(h&&d){const v=`${h}/${d}`;s.push(v)}}const o=/(https?:\/\/[^\s)]+|Http:\/\/[^\s)]+|\/[^\s)]+)/i,r=a.match(o);return r?s.push(r[0].replace(/\)+$/,"")):(a==null?void 0:a.split(",").length)===2&&s.push((c=(p=a==null?void 0:a.split(","))==null?void 0:p[1])==null?void 0:c.trim()),s},Ge=a=>{let s=a.replace(/\[\s*,\s*,/g,'[{"": ""}, {"": ""},');return s=s.replace(/\[\s*,/g,'[{"": ""},'),s=s.replace(/,\s*,/g,', {"": ""},'),s=s.replace(/,\s*\]/g,', {"": ""}]'),s=s.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,\]}])/g,(n,l,o,r,p)=>o.includes("'")?`:${l}${o}${r}${p}`:`:${l}"${o}"${r}${p}`),s=s.replace(/:\s*([,\]}])/g,': ""$1'),s},Lo=a=>!/\[[^\]]*\{[^\]]*\]/.test(a),jo=a=>{const s=u.cloneDeep(a).match(/(\w+)\(['"]([^'"]+)['"]:\s*\{['"]([^'"]+)['"]\}\)/),n=s?`${s[2]}/${s[3]}`:null,l=a.match(/\[\{([^}]+)\}\]/),o=l==null?void 0:l[1].replaceAll(":","").replaceAll("'",'"').trim();let r=null;if(o)try{r=JSON.parse(o)}catch(p){console.error("解析数组失败:",p)}return[n,r]},Uo=a=>{var c,h,d,v,V,C,I,b,S,y,k;let s=[],n=[],l={},o=[],r=a.trim(),p=[];if(r.trim().includes("输入")&&r.trim().includes("输出")){let x=[],t=a.trim();t=u.cloneDeep(t).slice(1,u.cloneDeep(t).length-1);const f=/(\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})/g;(b=t.match(f))==null||b.forEach((i,m)=>{var P;const L=i;let F=[];(P=L.slice(1,L.length-1).replace(":","$:").split("$:"))==null||P.forEach(K=>{var D,T,_;if(Vo.find(B=>K.includes(B)))if(!K.includes("=="))F.push({key:"tableIndexColumn",contents:K.replaceAll("'","")});else{let B=[];const w=K.replaceAll("'","").split("==");B.push(w==null?void 0:w[0]),w!=null&&w[1].includes("[")?B.push(w==null?void 0:w[1].trim().slice(1,(w==null?void 0:w[1].length)-1).split(",")):B.push([w==null?void 0:w[1]]),F.push({key:"header",contents:[(T=(D=Bl([B]))==null?void 0:D[0])==null?void 0:T[0]]})}else{let B=K.trim().replaceAll(",",",").replaceAll("'",'"');if(m%3===0)B.slice(1,B.length-1).includes("[")?x.push({key:"tableIndex",contents:[{label:B}]}):x.push({key:"tableIndex",contents:[{label:B.slice(1,B.length-1)}]});else if((B==null?void 0:B[0])==="{"){let w=[];const U=B.slice(1,B.length-1).split(":");if(U.every(z=>me.IsJson(z.trim()))){w.push({key:"tableContentName",contents:"详情"});let z=[];U.forEach((E,M)=>{if(M===0){const W=JSON.parse(E).map(Z=>({label:Z}));W.push({label:"操作"}),z.push({key:"header",contents:W})}else z.push({key:"tableContents",contents:JSON.parse(E)})}),z.push({key:"extraButton",contents:[{label:"新增"}]}),z.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),w.push({comp:"Table",compData:z,name:""}),x.push({key:"tableContents",contents:[w]})}}else{let w=B;w.slice(1,w.length-1).includes("[")||w.slice(1,w.length-1).includes("{")?me.IsJson(cl(w.replace(/\s+/g,"")))&&((_=JSON.parse(cl(w.replace(/\s+/g,""))))==null||_.map(U=>{if(Array.isArray(U==null?void 0:U[0])){const z=[];z.push({key:"tableContentName",contents:"详情"});let E=[];U.forEach(M=>{M.forEach(W=>{var Z,J;pl.value++,E.push({id:pl.value,key:(Z=Object.keys(W))==null?void 0:Z[0],value:(J=Object.values(W))==null?void 0:J[0],width:M.length})})}),z.push({comp:"Form",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:E}],name:""}),x.push({key:"tableContents",contents:[z]})}else x.push({key:"tableContents",contents:U==null?void 0:U[0]})})):x.push({key:"tableContents",contents:w.trim().slice(1,w.length-1)})}}}),x.push(F==null?void 0:F[0])}),p.push({key:"tableIndex",contents:(S=x==null?void 0:x.filter(i=>(i==null?void 0:i.key)==="tableIndex"))==null?void 0:S.map(i=>{var m;return(m=i.contents)==null?void 0:m[0]})}),p.push({key:"extraButton",contents:[{label:"新增"}]}),p.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),p.push({key:"tableIndexColumn",contents:(k=(y=x==null?void 0:x.filter(i=>(i==null?void 0:i.key)==="tableIndexColumn"))==null?void 0:y[0])==null?void 0:k.contents}),p.push({key:"header",contents:ul(x==null?void 0:x.filter(i=>(i==null?void 0:i.key)==="header"))}),p.push({key:"tableContents",contents:Bo(x==null?void 0:x.filter(i=>(i==null?void 0:i.key)==="tableContents"),ul(x==null?void 0:x.filter(i=>(i==null?void 0:i.key)==="header")))})}else{const x=(c=r.trim().split(",$"))==null?void 0:c[0];x[0]==="["?r=x.slice(1,x.length-1):r.includes(",$")&&(r=(h=r.trim().split(",$"))==null?void 0:h[0]);let t;if(r.includes("$")){r=u.cloneDeep(r),l.method=(v=(d=u.cloneDeep(r).trim())==null?void 0:d.slice(1,r.length).split("("))==null?void 0:v[0];let f;dl(r.slice(1,r.length-2)).length>1?f=dl(r.slice(1,r.length-2)):f=jo(r),l.value=f}else me.IsJson("["+Ge(r).replaceAll("'",'"')+"]")&&!Lo(Ge(r).replaceAll("'",'"'))?(r=JSON.parse("["+Ge(r).replaceAll("'",'"')+"]"),o=r):t=(C=(V=u.cloneDeep(r).split("}"))==null?void 0:V.filter(f=>f!==""))==null?void 0:C.map(f=>{let i=f;return i[0]===","?i=i.slice(2,i.length):i=i.slice(1,i.length),i});(I=u.cloneDeep(t))==null||I.forEach(f=>{var i,m,L,F,P,K,D,T,_,B,w,U,z,E,M;if(f.includes("==")){const W=(U=f==null?void 0:f.split(":"))==null?void 0:U[0].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"').replaceAll("'",'"'),Z=(z=f==null?void 0:f.split(":"))==null?void 0:z[1].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"');if(me.IsJson(Z.trim())?n.push(JSON.parse(Z.trim())):n.push(JSON.parse(Z.replaceAll("'",'"').trim())),W[0]!=="["){let J=[];me.IsJson("["+Fe(W)+"]")?J.push(JSON.parse("["+Fe(W)+"]")):me.IsJson("["+Fe(W).replaceAll("==",",")+"]")&&J.push(JSON.parse("["+Fe(W).replaceAll("==",",")+"]"));const se=u.cloneDeep(J);se.push(["操作"]),s.push(se)}else{const J=(E=W.slice(1,W.length-1).replaceAll(",",",|"))==null?void 0:E.split("|"),se=(M=Fo(J))==null?void 0:M.map(ce=>((ce==null?void 0:ce[ce.length-1])===","&&(ce=ce.slice(0,ce.length-1)),ce));let re=[];se==null||se.forEach(ce=>{var he,ye,te,ue;let fe=[];fe.push((he=ce.split("=="))==null?void 0:he[0].trim().replace(/^"|"$/g,"")),((ye=ce.split("=="))==null?void 0:ye[1].trim()[0])==="["?fe.push(JSON.parse((te=ce.split("=="))==null?void 0:te[1].trim())):fe.push([JSON.parse((ue=ce.split("=="))==null?void 0:ue[1].trim())]),re.push(fe)});const ie=u.cloneDeep(re);ie.push(["操作"]),s.push(ie)}}else{if(me.IsJson((i=f==null?void 0:f.split(":"))==null?void 0:i[0].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"').replaceAll("'",'"'))){let W=JSON.parse((m=f==null?void 0:f.split(":"))==null?void 0:m[0].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"').replaceAll("'",'"'));Array.isArray(W)||(W=[W]),W.push("操作"),s.push(W)}me.IsJson((P=(F=(L=f==null?void 0:f.split(":"))==null?void 0:L[1])==null?void 0:F.replace(/^"|"$/g,"'"))==null?void 0:P.replace(/'([^']+)'/g,'"$1"'))?n.push(JSON.parse((K=f==null?void 0:f.split(":"))==null?void 0:K[1].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"'))):me.IsJson((B=(_=(T=(D=f==null?void 0:f.split(":"))==null?void 0:D[1])==null?void 0:T.replace(/^"|"$/g,"'"))==null?void 0:_.replaceAll("'",'"'))==null?void 0:B.replace(/'([^']+)'/g,'"$1"'))&&n.push(JSON.parse((w=f==null?void 0:f.split(":"))==null?void 0:w[1].replace(/^"|"$/g,"'").replaceAll("'",'"').replace(/'([^']+)'/g,'"$1"')))}})}return[s,n,p,l,o]},Jo=a=>{const s=[],n=Io(a==null?void 0:a.key),l=Oo(a==null?void 0:a.key),o=Uo(a==null?void 0:a.value),r=l==null?void 0:l[0],p=o==null?void 0:o[4],c=l==null?void 0:l[1],h=l==null?void 0:l[2],d=o==null?void 0:o[0],v=o==null?void 0:o[1],V=o==null?void 0:o[2],C=o==null?void 0:o[3];return n&&s.push({key:"contentPath",value:n}),(r==null?void 0:r.length)>0&&s.push({key:"tableIndex",value:r}),C&&s.push({key:"extraButton",value:C}),(p==null?void 0:p.length)>0&&s.push({key:"form",value:p}),(c==null?void 0:c.length)>0&&s.push({key:"formTop",value:c}),(h==null?void 0:h.length)>0&&s.push({key:"extra",value:h}),(V==null?void 0:V.length)>0&&s.push({comp:"Table",compData:V,name:""}),(d==null?void 0:d.length)>0&&s.push({key:"tableColumns",value:d}),(v==null?void 0:v.length)>0&&s.push({key:"tableContents",value:v}),s},Po=a=>{let s=[],n=[];a==null||a.forEach(o=>{Array.isArray(o)&&(o==null||o.forEach(r=>{var p;r.comp==="FormTop"&&((p=r.compData)==null||p.forEach(c=>{(c==null?void 0:c.key)==="formContent"&&(n=[...n,...c.contents])}))}))});const l=n.reduce((o,r)=>o.find(c=>(c==null?void 0:c.key)===(r==null?void 0:r.key))?o:o.concat([r]),[]);return l.length!==0&&s.push([{comp:"FormTop",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:l},{key:"enableWrap",contents:!0},{key:"formButton",contents:[{label:"查询"},{label:"重置"}]}]}]),a==null||a.forEach(o=>{if(Array.isArray(o)){const r=o.filter(p=>p.comp!=="FormTop");s.push(r)}else o.comp!=="FormTop"&&s.push(o)}),s},Ro=(a,s)=>{const n=s.split("/");let l=[];return a==null||a.forEach(o=>{var c,h,d,v,V,C,I,b,S,y,k;const r=[],p=(h=(c=o.find(x=>x.key==="tableIndex"))==null?void 0:c.value)==null?void 0:h[0];if(p&&!p.some(x=>Array.isArray(x))){const x=(v=(d=o.find(t=>t.key==="tableColumns"))==null?void 0:d.value)==null?void 0:v[0];r.push({key:"tableIndexColumn",contents:n[n.length-1]}),r.push({key:"tableIndex",contents:p==null?void 0:p.map(t=>({label:t}))}),r.push({key:"extraButton",contents:[{label:"新增"}]}),r.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),Array.isArray(x)&&x.some(t=>Array.isArray(t))?r.push({key:"header",contents:Bl(x)}):r.push({key:"header",contents:Array.isArray(x)?x==null?void 0:x.map(t=>({label:t})):[x].map(t=>({label:t}))}),r.push({key:"tableContents",contents:Array.isArray(x)?(C=(V=o.find(t=>t.key==="tableContents"))==null?void 0:V.value)==null?void 0:C[0]:(S=(b=(I=o.find(t=>t.key==="tableContents"))==null?void 0:I.value)==null?void 0:b[0])==null?void 0:S.map(t=>[t])}),l.push({comp:"Table",name:"",compData:r}),o!=null&&o.find(t=>(t==null?void 0:t.key)==="formTop")&&l.push({comp:"FormTop",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:Pe([(y=o==null?void 0:o.find(t=>(t==null?void 0:t.key)==="formTop"))==null?void 0:y.value])},{key:"enableWrap",contents:!0},{key:"formButton",contents:[{label:"查询"},{label:"重置"}]}],name:""})}else p?(l.push({comp:"Table",name:"",compData:No(o,n[n.length-1])}),o!=null&&o.find(x=>(x==null?void 0:x.key)==="formTop")&&l.push({comp:"FormTop",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:Pe([(k=o==null?void 0:o.find(x=>(x==null?void 0:x.key)==="formTop"))==null?void 0:k.value])},{key:"enableWrap",contents:!0},{key:"formButton",contents:[{label:"查询"},{label:"重置"}]}],name:""})):o.some(x=>x.key==="extra")?l.push({comp:"calculator",name:"",compData:il(o)}):l.push(il(o))}),Po(l)},Wo=(a,s)=>{var o,r;const n=a.map(p=>p.filter(c=>c.key!=="contentPath"));return{comp:"Group",compData:[{contents:Ro(n,s),key:"groupContents"}],name:(r=(o=a[0])==null?void 0:o.find(p=>p.key==="contentPath"))==null?void 0:r.value}},zo=a=>{var o;const s=[],n=u.cloneDeep(a).map(r=>{var p;if(r!=null&&r.find(c=>(c==null?void 0:c.key)==="contentPath"))return(p=r==null?void 0:r.find(c=>(c==null?void 0:c.key)==="contentPath"))==null?void 0:p.value}).filter(r=>r!==""),l=[...new Set(n)];return(o=l==null?void 0:l.filter(r=>r))==null||o.forEach(r=>{var p;s.push(Wo((p=u.cloneDeep(a))==null?void 0:p.filter(c=>c.find(h=>h.key==="contentPath"&&h.value===r)),r))}),s},Mo=a=>{let s=[];s.push({comp:"Menu",compData:[{contents:Ao(u.cloneDeep(a)),key:"menuContents"}],name:""});const n=a.map(l=>Jo(l)).filter(l=>l.length!==0);return s=[...s,...zo(n)],s},Go=a=>{var s,n,l,o,r;try{const p=(l=Re((n=(s=u.cloneDeep(a))==null?void 0:s.replace("(","("))==null?void 0:n.replace(")",")")))==null?void 0:l.filter(d=>d!==""),c=(r=(o=u.cloneDeep(p))==null?void 0:o.filter(d=>!d.includes("/*")))==null?void 0:r.map(d=>Al(d));return Mo(c)}catch{return!1}},Le=e.ref(0),qe=e.ref(0),qo=a=>{const s=a.trim().replace(/^'|'$/g,""),n=/((?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*(.*?)(?=\s*(?:(?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=|$)/g,l={};let o;for(;(o=n.exec(s))!==null;){const r=o[1];let p=o[2].trim();(p.match(/\[/g)||[]).length!==(p.match(/\]/g)||[]).length&&(p=p==null?void 0:p.replace(/]$/,"")),l[r]?(l[r+qe.value]&&qe.value++,l[r+qe.value]=r+"="+p):l[r]=r+"="+p}return l},Il=a=>{const[s,n]=a.split("=").map(r=>r.trim()),l=s.replace(/['"]/g,""),o=n.replace(/^['"]|['"]$/g,"");return{key:l,value:o}},Ko=a=>{var p;let s=[];const[n,l]=a.split(/=(.+)/),o=n.replace(/['"]/g,"").trim(),r=l.replace(/^['"]|['"]$/g,"");return(p=Object.values(qo(r)))==null||p.forEach(c=>{s.push(Il(c))}),{key:o,value:s}},Ue=a=>{try{return JSON.parse(a),!0}catch{return!1}},Sl=a=>{try{const s=a.replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",").replace(/:/g,":").replace(/:\s*(?=,|}|$)/g,': ""');if(u.cloneDeep(s).split("{").length-1>1){let n=u.cloneDeep(s).replace(/^\{(.*)\}$/,"[$1]");if(Ue(n)&&!n.includes("$")||(n=n.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),Ue(n)){const l=JSON.parse(n);let o=[];return l==null||l.forEach(r=>{var p;(p=Object.entries(u.cloneDeep(r)))==null||p.forEach(c=>{Le.value++,o.push({id:Le.value,key:(c==null?void 0:c[0])??"",value:(c==null?void 0:c[1])===""?"":c==null?void 0:c[1],width:Object.keys(u.cloneDeep(r)).length})})}),o}else return console.error("转换类型不正确:"),[]}else if(Ue(s)){const n=JSON.parse(s);return Object.entries(n).map(([l,o])=>(Le.value++,{id:Le.value,key:l,value:o===""?"":o,width:1}))}else return s}catch(s){return console.error("转换失败:",s),[]}},Ho=(a,s)=>{try{if(oe!=null&&oe.find(n=>(n==null?void 0:n.key)===s))return JSON.parse(a.replace(/[’]|[‘]|[']/g,'"'));if(u.cloneDeep(a).split("[").length-1>1){const n=u.cloneDeep(a).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(n)}else{const n=u.cloneDeep(a).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",");if(Ue(n)){const l=JSON.parse(n);return Array.isArray(l)?l.map(o=>({label:o})):l}else return Sl(u.cloneDeep(a))}}catch(n){return console.error("解析失败:",n),a}},Zo=a=>({[a==null?void 0:a.key]:Ho(a==null?void 0:a.value,a==null?void 0:a.key)}),Qo=a=>{try{if(u.cloneDeep(a).split("[").length-1>1){const s=u.cloneDeep(a).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(s)}else return JSON.parse(u.cloneDeep(a).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",")).map(n=>({label:n}))}catch(s){return console.error("解析失败:",s),a}},Ol=a=>{var s,n,l,o,r,p;try{const c=Re((n=(s=u.cloneDeep(a))==null?void 0:s.replace("(","("))==null?void 0:n.replace(")",")")),h=(l=u.cloneDeep(c))==null?void 0:l.map(V=>{var I,b;let C=(b=(I=u.cloneDeep(V))==null?void 0:I.split("="))==null?void 0:b[0];return C!=null&&C.includes("GroupContents")?Ko(V):Il(V)}),d=[];(o=u.cloneDeep(h))==null||o.forEach(V=>{var C,I,b,S,y;oe!=null&&oe.find(k=>{var x,t;return((x=k==null?void 0:k.key)==null?void 0:x.toUpperCase())===((t=V==null?void 0:V.key)==null?void 0:t.toUpperCase())})?d.push({comp:((C=oe==null?void 0:oe.find(k=>{var x,t;return((x=k==null?void 0:k.key)==null?void 0:x.toUpperCase())===((t=V==null?void 0:V.key)==null?void 0:t.toUpperCase())}))==null?void 0:C.value)??"",name:(I=V==null?void 0:V.value)==null?void 0:I.replace(/[’]|[‘]|[']/g,""),compData:[]}):ne!=null&&ne.find(k=>{var x,t;return((x=k==null?void 0:k.key)==null?void 0:x.toUpperCase())===((t=V==null?void 0:V.key)==null?void 0:t.toUpperCase())})&&((d==null?void 0:d.length)===0&&(b=V.key)!=null&&b.includes("Menus")&&d.push({comp:"Menu",name:"",compData:[]}),(S=d==null?void 0:d[(d==null?void 0:d.length)-1])!=null&&S.compData&&d[(d==null?void 0:d.length)-1].compData.push({key:(y=ne==null?void 0:ne.find(k=>{var x,t;return((x=k==null?void 0:k.key)==null?void 0:x.toUpperCase())===((t=V==null?void 0:V.key)==null?void 0:t.toUpperCase())}))==null?void 0:y.value,contents:V==null?void 0:V.value}))}),console.log("newContents",d);let v=(r=u.cloneDeep(d))==null?void 0:r.map(V=>{var C;return V!=null&&V.compData&&(V.compData=(C=V==null?void 0:V.compData)==null?void 0:C.map(I=>{var b,S,y,k,x,t,f,i,m,L,F;if((I==null?void 0:I.key)==="formFlex")I.contents=((S=(b=I.contents)==null?void 0:b.replace(/[’]|[‘]|[']/g,""))==null?void 0:S.toUpperCase())!=="Vertical".toUpperCase();else if((I==null?void 0:I.key)==="groupContents")I.contents=(y=u.cloneDeep(I.contents))==null?void 0:y.map(P=>Zo(u.cloneDeep(P)));else if(((x=(k=I.contents)==null?void 0:k.trim())!=null&&x.startsWith("[")||(f=(t=I.contents)==null?void 0:t.trim())!=null&&f.startsWith("【"))&&((m=(i=I.contents)==null?void 0:i.trim())!=null&&m.endsWith("]")||(F=(L=I.contents)==null?void 0:L.trim())!=null&&F.endsWith("】")))I.contents=Qo(u.cloneDeep(I.contents));else{if(!I.contents)return;I.contents=Sl(u.cloneDeep(I.contents))}return I})),V});return v=(p=u.cloneDeep(v))==null?void 0:p.map(V=>{var C;return(V==null?void 0:V.comp)==="Group"&&(V.compData=(C=V.compData)==null?void 0:C.map(I=>{var S;let b=[];return(S=I.contents)==null||S.forEach(y=>{var k,x,t,f,i,m,L,F,P,K,D,T;if(oe!=null&&oe.find(_=>{var B,w,U;return((B=_==null?void 0:_.key)==null?void 0:B.toUpperCase())===((U=(w=Object.keys(y))==null?void 0:w[0])==null?void 0:U.toUpperCase())}))b.push({comp:(k=oe==null?void 0:oe.find(_=>{var B,w,U;return((B=_==null?void 0:_.key)==null?void 0:B.toUpperCase())===((U=(w=Object.keys(y))==null?void 0:w[0])==null?void 0:U.toUpperCase())}))==null?void 0:k.value,name:(t=(x=Object.values(y))==null?void 0:x[0])==null?void 0:t.replace(/[’]|[‘]|[']/g,""),compData:[]});else if(ne!=null&&ne.find(_=>{var B,w,U;return((B=_==null?void 0:_.key)==null?void 0:B.toUpperCase())===((U=(w=Object.keys(y))==null?void 0:w[0])==null?void 0:U.toUpperCase())})){if((b==null?void 0:b.length)===0)return;(f=b==null?void 0:b[(b==null?void 0:b.length)-1])!=null&&f.compData&&b[(b==null?void 0:b.length)-1].compData.push({key:(i=ne==null?void 0:ne.find(_=>{var B,w,U;return((B=_==null?void 0:_.key)==null?void 0:B.toUpperCase())===((U=(w=Object.keys(y))==null?void 0:w[0])==null?void 0:U.toUpperCase())}))==null?void 0:i.value,contents:(m=Object.values(y))==null?void 0:m[0]})}else if((F=(L=Object.keys(y))==null?void 0:L[0])!=null&&F.includes("$")){const _=(K=(P=Object.keys(u.cloneDeep(y)))==null?void 0:P[0])==null?void 0:K.split("$");b[(b==null?void 0:b.length)-1].compData.push({key:(D=ne==null?void 0:ne.find(B=>{var w,U;return((w=B==null?void 0:B.key)==null?void 0:w.toUpperCase())===((U=_==null?void 0:_[0])==null?void 0:U.toUpperCase())}))==null?void 0:D.value,contents:(T=Object.values(y))==null?void 0:T[0],selectLabel:_==null?void 0:_[1]})}return y}),I.contents=b,I})),V}),v}catch{return!1}},Xo=a=>Ol(a),Yo=a=>!!Ol(a),Ae=e.ref(0),es=a=>a.reduce((n,l)=>{var r,p;const o=Object.values(n);return(((r=Object.keys(n))==null?void 0:r.length)===0||o[o.length-1].length>=(l==null?void 0:l.width))&&(n[Ae.value]=[],Ae.value++),n[Ae.value-1].push(l),((p=Object.keys(n))==null?void 0:p.length)===(l==null?void 0:l.width)&&(n[Ae.value]=[],Ae.value++),n},{});exports.arrayToNumberArray=es;exports.contentTransArray=Re;exports.expandContentStringToJson=Go;exports.expandNewStringToJson=Co;exports.expandStringToJson=Xo;exports.getComponent=Dl;exports.getContentValue=Qe;exports.isExpandStringToJson=Yo;exports.menuArray=He;exports.parseGroupValue=Al;exports.slotContent=ro;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a6 as A, a7 as l, f as re, a3 as ye, a8 as de, a4 as h, a9 as w, aa as Te, i as I, ab as P, ac as v, a2 as je, ad as T, S as D } from "./index-
|
|
1
|
+
import { a6 as A, a7 as l, f as re, a3 as ye, a8 as de, a4 as h, a9 as w, aa as Te, i as I, ab as P, ac as v, a2 as je, ad as T, S as D } from "./index-3NzfXDhk.js";
|
|
2
2
|
var O = A(l, "WeakMap"), F = Object.create, $e = /* @__PURE__ */ function() {
|
|
3
3
|
function e() {
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./index-
|
|
1
|
+
"use strict";const n=require("./index-BNiX-tj2.cjs");var A=n.getNative(n.root,"WeakMap"),x=Object.create,ge=function(){function e(){}return function(t){if(!n.isObject(t))return{};if(x)return x(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),h=function(){try{var e=n.getNative(Object,"defineProperty");return e({},"",{}),e}catch{}}();function be(e,t){for(var r=-1,a=e==null?0:e.length;++r<a&&t(e[r],r,e)!==!1;);return e}var pe=9007199254740991,ye=/^(?:0|[1-9]\d*)$/;function Y(e,t){var r=typeof e;return t=t??pe,!!t&&(r=="number"||r!="symbol"&&ye.test(e))&&e>-1&&e%1==0&&e<t}function Te(e,t,r){t=="__proto__"&&h?h(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var le=Object.prototype,je=le.hasOwnProperty;function H(e,t,r){var a=e[t];(!(je.call(e,t)&&n.eq(a,r))||r===void 0&&!(t in e))&&Te(e,t,r)}var de=9007199254740991;function _(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=de}function $e(e){return e!=null&&_(e.length)&&!n.isFunction$1(e)}var Ae=Object.prototype;function Z(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ae;return e===r}function he(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var ve="[object Arguments]";function C(e){return n.isObjectLike(e)&&n.baseGetTag(e)==ve}var J=Object.prototype,we=J.hasOwnProperty,me=J.propertyIsEnumerable,Q=C(function(){return arguments}())?C:function(e){return n.isObjectLike(e)&&we.call(e,"callee")&&!me.call(e,"callee")};function Oe(){return!1}var ee=typeof exports=="object"&&exports&&!exports.nodeType&&exports,B=ee&&typeof module=="object"&&module&&!module.nodeType&&module,_e=B&&B.exports===ee,L=_e?n.root.Buffer:void 0,Se=L?L.isBuffer:void 0,S=Se||Oe,Pe="[object Arguments]",Ee="[object Array]",Ie="[object Boolean]",Me="[object Date]",xe="[object Error]",Ce="[object Function]",Be="[object Map]",Le="[object Number]",Ue="[object Object]",De="[object RegExp]",Fe="[object Set]",Ge="[object String]",Ne="[object WeakMap]",Ve="[object ArrayBuffer]",Re="[object DataView]",ze="[object Float32Array]",Ke="[object Float64Array]",We="[object Int8Array]",qe="[object Int16Array]",ke="[object Int32Array]",Xe="[object Uint8Array]",Ye="[object Uint8ClampedArray]",He="[object Uint16Array]",Ze="[object Uint32Array]",i={};i[ze]=i[Ke]=i[We]=i[qe]=i[ke]=i[Xe]=i[Ye]=i[He]=i[Ze]=!0;i[Pe]=i[Ee]=i[Ve]=i[Ie]=i[Re]=i[Me]=i[xe]=i[Ce]=i[Be]=i[Le]=i[Ue]=i[De]=i[Fe]=i[Ge]=i[Ne]=!1;function Je(e){return n.isObjectLike(e)&&_(e.length)&&!!i[n.baseGetTag(e)]}function P(e){return function(t){return e(t)}}var te=typeof exports=="object"&&exports&&!exports.nodeType&&exports,j=te&&typeof module=="object"&&module&&!module.nodeType&&module,Qe=j&&j.exports===te,$=Qe&&n.freeGlobal.process,l=function(){try{var e=j&&j.require&&j.require("util").types;return e||$&&$.binding&&$.binding("util")}catch{}}(),U=l&&l.isTypedArray,re=U?P(U):Je,et=Object.prototype,tt=et.hasOwnProperty;function rt(e,t){var r=n.isArray(e),a=!r&&Q(e),f=!r&&!a&&S(e),s=!r&&!a&&!f&&re(e),c=r||a||f||s,T=c?he(e.length,String):[],g=T.length;for(var u in e)tt.call(e,u)&&!(c&&(u=="length"||f&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Y(u,g)))&&T.push(u);return T}function ne(e,t){return function(r){return e(t(r))}}var nt=ne(Object.keys,Object),at=Object.prototype,ot=at.hasOwnProperty;function it(e){if(!Z(e))return nt(e);var t=[];for(var r in Object(e))ot.call(e,r)&&r!="constructor"&&t.push(r);return t}function ct(e){return $e(e)?rt(e):it(e)}function ae(e,t){for(var r=-1,a=t.length,f=e.length;++r<a;)e[f+r]=t[r];return e}var st=ne(Object.getPrototypeOf,Object);function ut(){this.__data__=new n.ListCache,this.size=0}function ft(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function gt(e){return this.__data__.get(e)}function bt(e){return this.__data__.has(e)}var pt=200;function yt(e,t){var r=this.__data__;if(r instanceof n.ListCache){var a=r.__data__;if(!n.Map||a.length<pt-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new n.MapCache(a)}return r.set(e,t),this.size=r.size,this}function y(e){var t=this.__data__=new n.ListCache(e);this.size=t.size}y.prototype.clear=ut;y.prototype.delete=ft;y.prototype.get=gt;y.prototype.has=bt;y.prototype.set=yt;var oe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,D=oe&&typeof module=="object"&&module&&!module.nodeType&&module,Tt=D&&D.exports===oe,F=Tt?n.root.Buffer:void 0;F&&F.allocUnsafe;function lt(e,t){return e.slice()}function jt(e,t){for(var r=-1,a=e==null?0:e.length,f=0,s=[];++r<a;){var c=e[r];t(c,r,e)&&(s[f++]=c)}return s}function dt(){return[]}var $t=Object.prototype,At=$t.propertyIsEnumerable,G=Object.getOwnPropertySymbols,ht=G?function(e){return e==null?[]:(e=Object(e),jt(G(e),function(t){return At.call(e,t)}))}:dt;function vt(e,t,r){var a=t(e);return n.isArray(e)?a:ae(a,r(e))}function ie(e){return vt(e,ct,ht)}var v=n.getNative(n.root,"DataView"),w=n.getNative(n.root,"Promise"),m=n.getNative(n.root,"Set"),N="[object Map]",wt="[object Object]",V="[object Promise]",R="[object Set]",z="[object WeakMap]",K="[object DataView]",mt=n.toSource(v),Ot=n.toSource(n.Map),_t=n.toSource(w),St=n.toSource(m),Pt=n.toSource(A);exports.getTag=n.baseGetTag;(v&&exports.getTag(new v(new ArrayBuffer(1)))!=K||n.Map&&exports.getTag(new n.Map)!=N||w&&exports.getTag(w.resolve())!=V||m&&exports.getTag(new m)!=R||A&&exports.getTag(new A)!=z)&&(exports.getTag=function(e){var t=n.baseGetTag(e),r=t==wt?e.constructor:void 0,a=r?n.toSource(r):"";if(a)switch(a){case mt:return K;case Ot:return N;case _t:return V;case St:return R;case Pt:return z}return t});var Et=Object.prototype,It=Et.hasOwnProperty;function Mt(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&It.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var O=n.root.Uint8Array;function E(e){var t=new e.constructor(e.byteLength);return new O(t).set(new O(e)),t}function xt(e,t){var r=E(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var Ct=/\w*$/;function Bt(e){var t=new e.constructor(e.source,Ct.exec(e));return t.lastIndex=e.lastIndex,t}var W=n.Symbol?n.Symbol.prototype:void 0,q=W?W.valueOf:void 0;function Lt(e){return q?Object(q.call(e)):{}}function Ut(e,t){var r=E(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}var Dt="[object Boolean]",Ft="[object Date]",Gt="[object Map]",Nt="[object Number]",Vt="[object RegExp]",Rt="[object Set]",zt="[object String]",Kt="[object Symbol]",Wt="[object ArrayBuffer]",qt="[object DataView]",kt="[object Float32Array]",Xt="[object Float64Array]",Yt="[object Int8Array]",Ht="[object Int16Array]",Zt="[object Int32Array]",Jt="[object Uint8Array]",Qt="[object Uint8ClampedArray]",er="[object Uint16Array]",tr="[object Uint32Array]";function rr(e,t,r){var a=e.constructor;switch(t){case Wt:return E(e);case Dt:case Ft:return new a(+e);case qt:return xt(e);case kt:case Xt:case Yt:case Ht:case Zt:case Jt:case Qt:case er:case tr:return Ut(e);case Gt:return new a;case Nt:case zt:return new a(e);case Vt:return Bt(e);case Rt:return new a;case Kt:return Lt(e)}}function nr(e){return typeof e.constructor=="function"&&!Z(e)?ge(st(e)):{}}var ar="[object Map]";function or(e){return n.isObjectLike(e)&&exports.getTag(e)==ar}var k=l&&l.isMap,ir=k?P(k):or,cr="[object Set]";function sr(e){return n.isObjectLike(e)&&exports.getTag(e)==cr}var X=l&&l.isSet,ur=X?P(X):sr,ce="[object Arguments]",fr="[object Array]",gr="[object Boolean]",br="[object Date]",pr="[object Error]",se="[object Function]",yr="[object GeneratorFunction]",Tr="[object Map]",lr="[object Number]",ue="[object Object]",jr="[object RegExp]",dr="[object Set]",$r="[object String]",Ar="[object Symbol]",hr="[object WeakMap]",vr="[object ArrayBuffer]",wr="[object DataView]",mr="[object Float32Array]",Or="[object Float64Array]",_r="[object Int8Array]",Sr="[object Int16Array]",Pr="[object Int32Array]",Er="[object Uint8Array]",Ir="[object Uint8ClampedArray]",Mr="[object Uint16Array]",xr="[object Uint32Array]",o={};o[ce]=o[fr]=o[vr]=o[wr]=o[gr]=o[br]=o[mr]=o[Or]=o[_r]=o[Sr]=o[Pr]=o[Tr]=o[lr]=o[ue]=o[jr]=o[dr]=o[$r]=o[Ar]=o[Er]=o[Ir]=o[Mr]=o[xr]=!0;o[pr]=o[se]=o[hr]=!1;function d(e,t,r,a,f,s){var c;if(c!==void 0)return c;if(!n.isObject(e))return e;var T=n.isArray(e);if(T)c=Mt(e);else{var g=exports.getTag(e),u=g==se||g==yr;if(S(e))return lt(e);if(g==ue||g==ce||u&&!f)c=u?{}:nr(e);else{if(!o[g])return f?e:{};c=rr(e,g)}}s||(s=new y);var I=s.get(e);if(I)return I;s.set(e,c),ur(e)?e.forEach(function(b){c.add(d(b,t,r,b,e,s))}):ir(e)&&e.forEach(function(b,p){c.set(p,d(b,t,r,p,e,s))});var fe=ie,M=T?void 0:fe(e);return be(M||e,function(b,p){M&&(p=b,b=e[p]),H(c,p,d(b,t,r,p,e,s))}),c}var Cr=1,Br=4;function Lr(e){return d(e,Cr|Br)}exports.Stack=y;exports.Uint8Array=O;exports.arrayPush=ae;exports.assignValue=H;exports.cloneDeep=Lr;exports.defineProperty=h;exports.getAllKeys=ie;exports.isArguments=Q;exports.isBuffer=S;exports.isIndex=Y;exports.isLength=_;exports.isTypedArray=re;
|
|
@@ -6015,12 +6015,12 @@ const I9 = N4(P, "$notify"), D9 = [
|
|
|
6015
6015
|
{
|
|
6016
6016
|
path: "/login",
|
|
6017
6017
|
name: "Login",
|
|
6018
|
-
component: async () => import("./index-
|
|
6018
|
+
component: async () => import("./index-DqYY8LS-.js")
|
|
6019
6019
|
},
|
|
6020
6020
|
{
|
|
6021
6021
|
path: "/",
|
|
6022
6022
|
name: "Model",
|
|
6023
|
-
component: async () => import("./index-
|
|
6023
|
+
component: async () => import("./index-BsGfXgSZ.js"),
|
|
6024
6024
|
// component: async ()=>import('@/components/views/model/component/main.vue'),
|
|
6025
6025
|
// component: async ()=>import('@/components/views/canvas/index.vue'),
|
|
6026
6026
|
// component: async ()=>import('@/components/views/test/index.vue'),
|
|
@@ -6028,32 +6028,32 @@ const I9 = N4(P, "$notify"), D9 = [
|
|
|
6028
6028
|
{
|
|
6029
6029
|
path: "平台管理/菜单管理",
|
|
6030
6030
|
name: "Menu",
|
|
6031
|
-
component: async () => import("./index-
|
|
6031
|
+
component: async () => import("./index-DANHTRnF.js")
|
|
6032
6032
|
},
|
|
6033
6033
|
{
|
|
6034
6034
|
path: "系统管理/个人中心",
|
|
6035
6035
|
name: "PersonalCenter",
|
|
6036
|
-
component: async () => import("./index-
|
|
6036
|
+
component: async () => import("./index-CDbcB1Fw.js")
|
|
6037
6037
|
},
|
|
6038
6038
|
{
|
|
6039
6039
|
path: "系统管理/职位管理",
|
|
6040
6040
|
name: "Post",
|
|
6041
|
-
component: async () => import("./index-
|
|
6041
|
+
component: async () => import("./index-DCFR7U_b.js")
|
|
6042
6042
|
},
|
|
6043
6043
|
{
|
|
6044
6044
|
path: "系统管理/用户管理",
|
|
6045
6045
|
name: "User",
|
|
6046
|
-
component: async () => import("./index-
|
|
6046
|
+
component: async () => import("./index-D3inZGZu.js")
|
|
6047
6047
|
},
|
|
6048
6048
|
{
|
|
6049
6049
|
path: "系统管理/角色管理",
|
|
6050
6050
|
name: "Role",
|
|
6051
|
-
component: async () => import("./index-
|
|
6051
|
+
component: async () => import("./index-DjCaZ8Zl.js")
|
|
6052
6052
|
},
|
|
6053
6053
|
{
|
|
6054
6054
|
path: "系统管理/部门管理",
|
|
6055
6055
|
name: "Dept",
|
|
6056
|
-
component: async () => import("./index-
|
|
6056
|
+
component: async () => import("./index-BVn9XisQ.js")
|
|
6057
6057
|
},
|
|
6058
6058
|
{
|
|
6059
6059
|
path: "priority",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const or=require("vue"),Ab=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ji=require("./cloneDeep-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const or=require("vue"),Ab=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ji=require("./cloneDeep-BDzOfpB7.cjs");/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-B5Fm5mr1.cjs"),a=require("./index-DbZbUOub.cjs"),r=require("./index-Dp4TFbqD.cjs"),o=require("./index-CIthfbvr.cjs"),s=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),c={class:"role-wrapper"},i=e.defineComponent({__name:"index",setup(d){const t=e.reactive({...r.State});return e.onMounted(async()=>{t.structureId=await o.getActivePageStructureId()}),(l,_)=>(e.openBlock(),e.createElementBlock("div",c,[e.createVNode(n.ssForm,{class:"role-header",rowContents:t.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:t.handleQueryChange},null,8,["rowContents","onChange"]),e.createVNode(a.ssTable,{class:"role-body",itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}}),u=s._export_sfc(i,[["__scopeId","data-v-c1856cfa"]]);exports.default=u;
|