ss-component-new 1.1.253 → 1.1.254
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-CWm2LBmk.js → array-B4GNG3Pe.js} +1495 -1487
- package/dist/array-D80-Sfvq.cjs +7 -0
- package/dist/{cloneDeep-B7ARrx0h.js → cloneDeep-C2BfVSk2.js} +1 -1
- package/dist/{cloneDeep-BDzOfpB7.cjs → cloneDeep-CCTIOi71.cjs} +1 -1
- package/dist/{index-nZMqLfXg.cjs → index-2IxpMtEC.cjs} +1 -1
- package/dist/{index-DqYY8LS-.js → index-9ZWsl-8_.js} +5 -5
- package/dist/{index-DCFR7U_b.js → index-B7X4YrTQ.js} +4 -4
- package/dist/{index-DOr4o5ev.js → index-B8fqJdK-.js} +1 -1
- package/dist/{index-B5Fm5mr1.cjs → index-BFRarJev.cjs} +2 -2
- package/dist/{index-ip4VAMkK.cjs → index-BFzTZcNN.cjs} +1 -1
- package/dist/{index-CdCwMRa1.js → index-BPz3IHyD.js} +1 -1
- package/dist/{index-DANHTRnF.js → index-BQjBpvbE.js} +6 -6
- package/dist/{index-BNiX-tj2.cjs → index-BTszhcxL.cjs} +1 -1
- package/dist/{index-DHfQsoC3.cjs → index-BguXioNR.cjs} +1 -1
- package/dist/{index-BoOojDw-.js → index-Bq0RFlfn.js} +1 -1
- package/dist/{index-B92_MojW.cjs → index-BsqMj_d6.cjs} +1 -1
- package/dist/{index-D3inZGZu.js → index-BtrInOkn.js} +6 -6
- package/dist/{index-BKFkrbgp.js → index-BuhOzhkS.js} +5 -5
- package/dist/{index-Cp-JwN0E.js → index-C8hMS2Pa.js} +512 -512
- package/dist/{index-CXAsYcYF.cjs → index-C9T7S-GJ.cjs} +1 -1
- package/dist/{index-CTtglK3w.cjs → index-CFUXMBG-.cjs} +1 -1
- package/dist/{index-LGlIxzMg.cjs → index-CKbzESKQ.cjs} +1 -1
- package/dist/{index-3NzfXDhk.js → index-C_QsXP3i.js} +8 -8
- package/dist/{index-BtrCLtfp.cjs → index-CbjqU6nq.cjs} +1 -1
- package/dist/{index-BASoYcrU.js → index-CcTAW3y-.js} +4 -4
- package/dist/{index-D1dTAKxV.cjs → index-CdosZWJF.cjs} +1 -1
- package/dist/{index-BCOnsiBC.js → index-CfboEWD8.js} +1 -1
- package/dist/{index-D2c04gRc.cjs → index-CiMaz81G.cjs} +1 -1
- package/dist/{index-yR6R78G3.js → index-CnLLjZHN.js} +4 -4
- package/dist/{index-Dp4TFbqD.cjs → index-CtfGlAH0.cjs} +1 -1
- package/dist/{index-Duop-clY.js → index-D-BVcCFi.js} +9 -9
- package/dist/{index-BsGfXgSZ.js → index-D1G6qEje.js} +63 -60
- package/dist/{index-D6mFL7s6.js → index-D60rB1yM.js} +4 -4
- package/dist/{index-DbZbUOub.cjs → index-D76VI2D8.cjs} +13 -13
- package/dist/{index-CNPDa2xp.js → index-D7Q10Cf6.js} +7 -7
- package/dist/{index-DZSlvnaa.cjs → index-D8ZhPz1q.cjs} +1 -1
- package/dist/{index-CDbcB1Fw.js → index-DNDyshI4.js} +6 -6
- package/dist/{index-Ds_5NHNT.js → index-DSvBBQuS.js} +1 -1
- package/dist/{index-B1lESzpk.cjs → index-DYsPCw2I.cjs} +1 -1
- package/dist/{index-CIthfbvr.cjs → index-Db4-HdDJ.cjs} +1 -1
- package/dist/{index-BVn9XisQ.js → index-DbuaMPQ8.js} +4 -4
- package/dist/{index-BxkFK6dD.cjs → index-Ddr-MraN.cjs} +1 -1
- package/dist/{index-BpfCH5My.cjs → index-Df80axHS.cjs} +1 -1
- package/dist/{index-CGQDlgX-.cjs → index-DgMhyJyt.cjs} +1 -1
- package/dist/{index-3ncadd-n.cjs → index-DgqqTBP8.cjs} +1 -1
- package/dist/{index-DzBceCbY.cjs → index-Dlsa7Ecu.cjs} +1 -1
- package/dist/{index-Bp-Vqgkz.cjs → index-DtKB2fyH.cjs} +1 -1
- package/dist/{index-ZTdcBfL7.cjs → index-FJqdQ_o0.cjs} +1 -1
- package/dist/{index-C5RHQr0o.cjs → index-P0Dt5Xj5.cjs} +1 -1
- package/dist/{index-DcaaSs_a.js → index-RTtdkTT4.js} +1 -1
- package/dist/{index-DRPDOftk.js → index-ZJhNp_ic.js} +3 -3
- package/dist/{index-DjCaZ8Zl.js → index-gbXtE5pf.js} +5 -5
- package/dist/{index-djVN5_Sf.cjs → index-inDdv1bq.cjs} +1 -1
- package/dist/{index-DqQjcgXo.js → index-n4eQ2Ni1.js} +7 -7
- package/dist/{index-B6RdCQU4.js → index-qHv5uE0r.js} +3 -3
- package/dist/{index-Cd6eKBt6.js → index-rUeYTZ80.js} +15 -14
- package/dist/{index.vue_vue_type_script_setup_true_lang-CBfDRFHN.js → index.vue_vue_type_script_setup_true_lang-ChgvD-CO.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Bs-qy0pK.cjs → index.vue_vue_type_script_setup_true_lang-hFv-AT4_.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DIYf7qx2.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-B3CNE9YB.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DRxEC4eG.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-BpvISHMO.js} +6 -6
- package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-B4_oouTA.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-CZVR2xnq.js → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DAF4pYyG.js} +42 -42
- package/dist/{login-D9nwQPXh.cjs → login-D1d96MIe.cjs} +1 -1
- package/dist/{login-CxadfjHD.js → login-fr8WlB8t.js} +2 -2
- package/dist/{main-BTJBYczL.cjs → main-DSesWXgb.cjs} +1 -1
- package/dist/{main-BVVwVykl.js → main-DiMsGmpS.js} +6 -6
- package/dist/{menu-BqjJVKx7.js → menu-C6rqOvt-.js} +1 -1
- package/dist/{menu-BuVFL_u8.cjs → menu-ClKjI1j6.cjs} +1 -1
- package/dist/{modelComp-BsKtMeM7.js → modelComp-DHs2PxCA.js} +1 -1
- package/dist/{modelComp-Im8BtgFY.cjs → modelComp-DvCBfsQJ.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- 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-DyMFtlR4.cjs +0 -7
- package/dist/index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-jMr9WVDb.cjs +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";const he=require("./index-D76VI2D8.cjs"),e=require("vue"),$e=require("./index-FJqdQ_o0.cjs"),ae=require("./index-BFRarJev.cjs"),u=require("./cloneDeep-CCTIOi71.cjs"),ue=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ce=require("./menu-ClKjI1j6.cjs"),Ve=require("./index-2IxpMtEC.cjs"),Fl=require("./modelComp-DvCBfsQJ.cjs"),nl=require("./index-CKbzESKQ.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,k,B,D,T;let a;const s=await $e.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((T=(D=(B=(k=(d=(h=s.data.result)==null?void 0:h[0])==null?void 0:d.value)==null?void 0:k.pageData)==null?void 0:B.compData)==null?void 0:D[0])==null?void 0:T.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=he.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}))}},Me=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 $e.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},Oe=[{key:"单选",value:"Select"},{key:"日期",value:"Date"},{key:"长文本",value:"TextArea"},{key:"上传",value:"Upload"}],Se=[{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:Se},{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:Se},{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()=>[{value:"",id:"v1",label:"菜单选项",name:"菜单选项",type:"cascader",contents:await fl()},{value:"",id:"v2",label:"组信息选项",name:"组信息选项",type:"cascader",contents:[]},{value:"",id:"v2",label:"选项值",name:"选项值",type:"Input",contents:[]}],Wl=e.computed(async()=>await Pl()),zl=[{key:"label",label:"标签名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Se},{key:"originalContent",label:"初始值",type:"Date"}],Ml=[{key:"label",label:"标签名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Se},{key:"originalContent",label:"初始值",type:"Input"}],Gl=[{key:"label",label:"标签名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Se}],K=[{key:"Input",value:Jl},{key:"Select",value:Wl},{key:"Date",value:zl},{key:"TextArea",value:Ml},{key:"Upload",value:Gl}],ql=[{value:"normal",label:"自定义"},{value:"add",label:"新增"},{value:"fix",label:"修改"},{value:"view",label:"查看"},{value:"delete",label:"删除"}],_e=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:ql},{key:"background",label:"颜色",type:"Color"}],Fe=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},Ae=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 Rl();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},Kl={class:"form-content"},Hl={__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=he.useFormToTableComp($e.pinia),h=e.ref(!1),d=e.ref(),k=D=>{var g,_,t,f;const T=(_=(g=u.cloneDeep(n.itemData))==null?void 0:g.find(i=>(i==null?void 0:i.key)==="formContent"))==null?void 0:_.contents,C=u.cloneDeep(D.content);let S={};C&&((t=Object.values(C))==null?void 0:t.length)>0&&((f=Object.values(C))==null||f.forEach((i,y)=>{S[T[y].key]=i}));const v={content:S,index:n==null?void 0:n.index,buttonName:D==null?void 0:D.buttonName};l("change",v)},B=D=>{var S,v;if(!D)return;if(((S=Object.values(u.cloneDeep(D)))==null?void 0:S.length)>0){const g=(v=Object.values(u.cloneDeep(D)))==null?void 0:v.map(t=>t);let _="";g==null||g.forEach(t=>{t!==""&&t!==void 0&&(_=_===""?t:_+"/"+t)}),c.setSelectArray(g),c.setSelectString(_)}const T=u.cloneDeep(n.itemData),C=T==null?void 0:T.map(g=>{var _;return(g==null?void 0:g.key)==="formContent"&&((_=g.contents)==null||_.map((t,f)=>{var i,y,L,F,P,b,I,A,x,J,w,U,E,G,q,M,W,z,ee;return t.type=t!=null&&t.type?t.type:(F=(L=(y=(i=t==null?void 0:t.key)==null?void 0:i.split("$"))==null?void 0:y[1])==null?void 0:L.split("("))!=null&&F[0]?(P=Oe==null?void 0:Oe.find(te=>{var ye,ce,pe,de;return(te==null?void 0:te.key)===((de=(pe=(ce=(ye=t==null?void 0:t.key)==null?void 0:ye.split("$"))==null?void 0:ce[1])==null?void 0:pe.split("("))==null?void 0:de[0])}))==null?void 0:P.value:"Input",t.options=t!=null&&t.options?t.options:((A=(I=(b=t==null?void 0:t.key)==null?void 0:b.split("$"))==null?void 0:I[1])==null?void 0:A.length)>0?(U=(w=Ll((J=(x=t==null?void 0:t.key)==null?void 0:x.split("$"))==null?void 0:J[1]))==null?void 0:w.split(","))==null?void 0:U.map(te=>({label:te,value:te})):[],(E=t==null?void 0:t.key)!=null&&E.includes("$")&&(t.key=(q=(G=t==null?void 0:t.key)==null?void 0:G.split("$"))==null?void 0:q[0]),t.value=Array.isArray((M=Object.values(D))==null?void 0:M[f])?(z=(W=Object.values(D))==null?void 0:W[f])==null?void 0:z[0]:(ee=Object.values(D))==null?void 0:ee[f],t})),g});l("contentChange",{contents:C,index:n.index})};return e.watch(()=>n.itemData,()=>{var g,_,t,f,i,y,L,F,P,b,I;const D=(g=u.cloneDeep(n.itemData))==null?void 0:g.find(A=>(A==null?void 0:A.key)==="formContent"),T=(_=u.cloneDeep(n.itemData))==null?void 0:_.find(A=>(A==null?void 0:A.key)==="formButton"),C=(t=u.cloneDeep(n.itemData))==null?void 0:t.find(A=>(A==null?void 0:A.key)==="formFlex"),S=(f=u.cloneDeep(n.itemData))==null?void 0:f.find(A=>(A==null?void 0:A.key)==="formWrap"),v=(i=u.cloneDeep(n.itemData))==null?void 0:i.find(A=>(A==null?void 0:A.key)==="enableWrap");if((S==null?void 0:S.contents)==="纵向"?r.value=!1:r.value=!0,h.value=(v==null?void 0:v.contents)===void 0?!1:v==null?void 0:v.contents,d.value=typeof(C==null?void 0:C.contents)!="boolean"?!(!(C!=null&&C.contents)===""||((y=C==null?void 0:C.contents)==null?void 0:y.toUpperCase())==="VERTICAL"):C==null?void 0:C.contents,((L=D==null?void 0:D.contents)==null?void 0:L.length)>0&&Array.isArray(D==null?void 0:D.contents)){const A=[];(F=D==null?void 0:D.contents)==null||F.forEach((w,U)=>{var E,G,q,M,W,z,ee,te,ye,ce,pe,de,me;if((w==null?void 0:w.label)!==""){let re=(w==null?void 0:w.label)??(w==null?void 0:w.key)??"",fe=(w==null?void 0:w.type)??"",X=(w==null?void 0:w.options)??[];if((E=w==null?void 0:w.key)!=null&&E.includes("$")&&(re=(G=u.cloneDeep(w==null?void 0:w.key).split("$"))==null?void 0:G[0],((M=(q=u.cloneDeep(w==null?void 0:w.key).split("$"))==null?void 0:q[1])==null?void 0:M.length)>0)){const[Be,De]=(z=(W=u.cloneDeep(w==null?void 0:w.key).split("$"))==null?void 0:W[1])==null?void 0:z.split(/[()]/);fe=((ee=Oe.find(m=>(m==null?void 0:m.key)===Be))==null?void 0:ee.value)??"",((te=De==null?void 0:De.split(","))==null?void 0:te.length)>0&&(X=(ye=De==null?void 0:De.split(","))==null?void 0:ye.map(m=>({label:m,value:m})))}let Ee=[];((ce=w==null?void 0:w.menuSelect)==null?void 0:ce.length)>0||(de=(pe=w==null?void 0:w.contents)==null?void 0:pe.split(","))==null||de.map(Be=>({label:Be,value:Be})),A.push({label:re??"",name:"t"+U,type:fe===""?"Input":fe,value:w!=null&&w.originalContent&&(w==null?void 0:w.originalContent)!==""?w.originalContent:w!=null&&w.value?w.value:(X==null?void 0:X.length)>0?(me=X==null?void 0:X[0])==null?void 0:me.value:(w==null?void 0:w.value)??"",id:(w==null?void 0:w.id)??U,contents:(Ee==null?void 0:Ee.length)>0?Ee:X??[],width:(w==null?void 0:w.width)??1,config:w==null?void 0:w.config})}});const x=(P=u.cloneDeep(A))==null?void 0:P.map(w=>w.value);let J="";x==null||x.forEach(w=>{w!==""&&w!==void 0&&(J=J===""?w:J+"/"+w)}),c.setSelectArray(x),c.setSelectString(J),o.value=A}else o.value=[];if(((b=T==null?void 0:T.contents)==null?void 0:b.length)>0){const A=[];(I=T==null?void 0:T.contents)==null||I.forEach((x,J)=>{(x==null?void 0:x.label)!==""&&A.push({label:(x==null?void 0:x.label)??"",id:(x==null?void 0:x.id)??J,type:(x==null?void 0:x.type)??"",background:x==null?void 0:x.background})}),p.value=A}else p.value=[]},{deep:!0,immediate:!0}),(D,T)=>(e.openBlock(),e.createElementBlock("div",Kl,[(e.openBlock(),e.createBlock(ae.ssForm,{rowContents:o.value,formRules:a.formRules,buttonValue:p.value,isRowFlex:d.value,isEnableWrap:h.value,onOnButtonClick:k,onChange:B,isButtonRow:r.value,key:n.itemData},null,8,["rowContents","formRules","buttonValue","isRowFlex","isEnableWrap","isButtonRow"]))]))}},ol=ue._export_sfc(Hl,[["__scopeId","data-v-1e269189"]]),Pe=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=>(Pe.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)??Pe.value,children:ml(l==null?void 0:l.children)},l))},Zl=a=>{var n;return(n=u.cloneDeep(a))==null?void 0:n.map(l=>(Pe.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)??Pe.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"}],Ql=[{label:"view",value:"查看"},{label:"fix",value:"修改"},{label:"delete",value:"删除"}],Xl=[{label:"add",value:"新增"}],Ne=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Xl},{key:"background",label:"按钮背景色",type:"Color"}],we=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ql},{key:"textColor",label:"按钮颜色",type:"Color"}],bl=Ce.defineStore("modelTableComp",{state:()=>({tableIndex:0}),actions:{setTableIndex(a){this.tableIndex=a}}}),Yl={class:"table-header-child"},ea={class:"table-header-child-main"},la={class:"table-header-child-content"},aa={class:"table-header-child-content-item"},na={class:"fix-button"},oa={key:0},sa={class:"form-content"},ra={__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($e.pinia),{tableIndex:c}=Ce.storeToRefs(p);e.ref(0);const h=e.ref(""),d=e.ref([]),k=e.ref([]),B=t=>{var i;o.value=!0;let f=[];Q==null||Q.forEach(y=>{let L=u.cloneDeep(c.value)+1;p.setTableIndex(L),f.push({label:y==null?void 0:y.label,name:y==null?void 0:y.label,type:y.type,value:t[y.key],id:c.value,contents:y==null?void 0:y.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,k.value=f},D=t=>{l("fixChange",u.cloneDeep(t))},T=t=>{l("deleteChange",u.cloneDeep(t))},C=t=>{o.value=!0;let f=[];Q==null||Q.forEach(i=>{let y=u.cloneDeep(c.value)+1;p.setTableIndex(y),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,k.value=f},S=t=>{let f=u.cloneDeep(k.value);f=f==null?void 0:f.map(i=>(i.children||(i.value=t==null?void 0:t[i.name]),i)),k.value=f},v=()=>{var f,i;d.value=k.value;let t={};if(h.value!=="")t.id=h.value,(f=d.value)==null||f.forEach(y=>{const L=Q==null?void 0:Q.find(F=>(F==null?void 0:F.label)===(y==null?void 0:y.label));L?t[L.key]=y.value:y!=null&&y.children&&y.children.length>0&&(t.children=y.children)}),o.value=!1,l("fixChange",{contents:u.cloneDeep(t),id:r.value,type:"fix"});else{let y=u.cloneDeep(c.value)+1;p.setTableIndex(y),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=[],k.value=[]},g=()=>{o.value=!1,h.value="",r.value="",d.value=[],k.value=[]},_=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",Yl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n==null?void 0:n.tableChildContents,(y,L)=>(e.openBlock(),e.createElementBlock("div",ea,[e.createElementVNode("div",la,[e.createElementVNode("div",aa,e.toDisplayString(y.label),1),e.createElementVNode("div",na,[e.createVNode(i,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>C(y)},null,8,["onClick"]),e.createVNode(i,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>B(y)},null,8,["onClick"]),e.createVNode(i,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>_(y)},null,8,["onClick"])])]),y!=null&&y.children&&y.children.length>0?(e.openBlock(),e.createElementBlock("div",oa,[e.createVNode(Cl,{tableChildContents:y==null?void 0:y.children,onDeleteChange:T,onFixChange:D},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(ae.ssDialog,{visible:o.value,onBeforeDestroy:g,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",sa,[(e.openBlock(),e.createBlock(ae.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:g,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:v},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},ta=ue._export_sfc(ra,[["__scopeId","data-v-e0fef72d"]]),ca={class:"table-header-child"},ia={class:"table-header-child-main"},ua={class:"table-header-child-content"},pa={class:"table-header-child-content-item"},da={class:"fix-button"},fa={key:0},ha={class:"form-content"},ma={__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($e.pinia),{tableIndex:c}=Ce.storeToRefs(p),h=e.ref(""),d=e.ref([]),k=e.ref([]),B=t=>{l("fixChange",u.cloneDeep(t))},D=t=>{var i;o.value=!0;let f=[];Q==null||Q.forEach(y=>{let L=u.cloneDeep(c.value)+1;p.setTableIndex(L),f.push({label:y==null?void 0:y.label,name:y==null?void 0:y.label,type:y.type,value:t[y.key],id:c.value,contents:y==null?void 0:y.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,k.value=f},T=t=>{o.value=!0;let f=[];Q==null||Q.forEach(i=>{let y=u.cloneDeep(c.value)+1;p.setTableIndex(y),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,k.value=f},C=t=>{let f=u.cloneDeep(k.value);f=f==null?void 0:f.map(i=>(i.children||(i.value=t==null?void 0:t[i.name]),i)),k.value=f},S=()=>{var f,i;d.value=k.value;let t={};if(h.value!=="")t.id=h.value,(f=d.value)==null||f.forEach(y=>{const L=Q==null?void 0:Q.find(F=>(F==null?void 0:F.label)===(y==null?void 0:y.label));L?t[L.key]=y.value:y!=null&&y.children&&y.children.length>0&&(t.children=y.children)}),o.value=!1,l("fixChange",{contents:u.cloneDeep(t),id:r.value,type:"fix"});else{let y=u.cloneDeep(c.value)+1;p.setTableIndex(y),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=[],k.value=[]},v=()=>{o.value=!1,h.value="",r.value="",d.value=[],k.value=[]},g=t=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{l("deleteChange",t),Ce.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},_=t=>{l("deleteChange",t)};return(t,f)=>{const i=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",ca,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n==null?void 0:n.tableChildContents,(y,L)=>(e.openBlock(),e.createElementBlock("div",ia,[e.createElementVNode("div",ua,[e.createElementVNode("div",pa,e.toDisplayString(y.label),1),e.createElementVNode("div",da,[e.createVNode(i,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>T(y)},null,8,["onClick"]),e.createVNode(i,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>D(y)},null,8,["onClick"]),e.createVNode(i,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:F=>g(y)},null,8,["onClick"])])]),y!=null&&y.children&&y.children.length>0?(e.openBlock(),e.createElementBlock("div",fa,[e.createVNode(ta,{tableChildContents:y==null?void 0:y.children,onDeleteChange:_,onFixChange:B},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(ae.ssDialog,{visible:o.value,onBeforeDestroy:v,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",ha,[(e.openBlock(),e.createBlock(ae.ssForm,{rowContents:d.value,key:d.value,isEnableWrap:!0,onChange:C},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:v,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:S},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},Cl=ue._export_sfc(ma,[["__scopeId","data-v-cc311a5f"]]),ya={class:"table-operate-content"},va={class:"table-operate-item"},ka={class:"operate-title"},ga={class:"operate-content"},ba={class:"fix-content"},Ca={class:"fix-content-label"},Da={class:"fix-button"},xa={key:0},Ea={class:"operate-title"},_a={class:"operate-content"},Na={class:"fix-content"},wa={class:"fix-content-label"},$a={class:"fix-button"},Ba={class:"operate-title"},Va={class:"operate-content"},Ta={class:"fix-content"},Aa={class:"fix-content-label"},Ia={class:"fix-button"},Sa={class:"operate-title"},Oa={class:"operate-content"},Fa={class:"fix-content"},La={class:"fix-content-label"},ja={class:"fix-button"},Ua={class:"operate-content"},Ja={style:{display:"flex","justify-content":"space-between"}},Pa={class:"form-content"},Ra={class:"form-content"},Wa={class:"form-content"},za={class:"form-content"},Ma={__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([]),k=e.ref(!1),B=e.ref([]),D=e.ref(""),T=e.ref(""),C=e.ref([]),S=e.ref([]),v=e.ref([]),g=e.ref([]),_=e.ref(!1),t=e.ref([]),f=e.ref([]),i=e.ref(0),y=e.ref([]),L=e.ref([]),F=e.ref([]),P=()=>{_.value=!0;let m=[];Ne==null||Ne.forEach(N=>{i.value++,m.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=m,f.value=m},b=()=>{var N,V;p.value=!0;let m=[];(V=(N=K==null?void 0:K.find($=>($==null?void 0:$.key)==="Input"))==null?void 0:N.value)==null||V.forEach($=>{i.value++,m.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})}),y.value=m,L.value=m},I=async m=>{var N,V,$,Z,H,ie,R;if((m==null?void 0:m.类型)!==((V=(N=L.value)==null?void 0:N.find(j=>(j==null?void 0:j.label)==="类型"))==null?void 0:V.value)){let j=[],ne=await((Z=($=K==null?void 0:K.find(le=>(le==null?void 0:le.key)===((m==null?void 0:m.类型)===""?"Input":m==null?void 0:m.类型)))==null?void 0:$.value)==null?void 0:Z.value)?await((R=(ie=K==null?void 0:K.find(le=>(le==null?void 0:le.key)===((m==null?void 0:m.类型)===""?"Input":m==null?void 0:m.类型)))==null?void 0:ie.value)==null?void 0:R.value):(H=K==null?void 0:K.find(le=>(le==null?void 0:le.key)===((m==null?void 0:m.类型)===""?"Input":m==null?void 0:m.类型)))==null?void 0:H.value;ne==null||ne.forEach(le=>{i.value++,j.push({label:le==null?void 0:le.label,name:le==null?void 0:le.label,type:le.type,value:(m==null?void 0:m[le.label])??"",id:i.value,contents:le==null?void 0:le.options})}),L.value=j,y.value=j}else{let j=u.cloneDeep(y.value);j=j==null?void 0:j.map(ne=>(ne.value=m==null?void 0:m[ne.name],ne)),L.value=j}},A=async m=>{var $,Z,H,ie,R;p.value=!0;let N=[];const V=await((Z=($=K==null?void 0:K.find(j=>(j==null?void 0:j.key)===((m==null?void 0:m.type)===""?"Input":m==null?void 0:m.type)))==null?void 0:$.value)==null?void 0:Z.value)?await((R=(ie=K==null?void 0:K.find(j=>(j==null?void 0:j.key)===((m==null?void 0:m.type)===""?"Input":m==null?void 0:m.type)))==null?void 0:ie.value)==null?void 0:R.value):(H=K==null?void 0:K.find(j=>(j==null?void 0:j.key)===((m==null?void 0:m.type)===""?"Input":m==null?void 0:m.type)))==null?void 0:H.value;V==null||V.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)==="类型"&&m[j.key]===""?"Input":m[j.key],id:i.value,contents:j==null?void 0:j.options})}),D.value=m==null?void 0:m.id,y.value=N,L.value=N},x=m=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var N,V;F.value=(N=u.cloneDeep(F.value))==null?void 0:N.filter($=>($==null?void 0:$.id)!==(m==null?void 0:m.id)),l("change",(V=u.cloneDeep(n.originalItemContents))==null?void 0:V.map($=>(($==null?void 0:$.key)==="tableToForm"&&($.contents=F.value),$))),Ce.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},J=()=>{p.value=!1,y.value=[],D.value=""},w=async()=>{var $,Z,H,ie,R,j,ne,le;y.value=L.value;let m={};D.value!==""?m.id=D.value:(i.value++,m.id="id"+i.value);let N=await((Z=($=K==null?void 0:K.find(Y=>{var ve,ge;return(Y==null?void 0:Y.key)===(((ge=(ve=y.value)==null?void 0:ve.find(xe=>(xe==null?void 0:xe.label)==="类型"))==null?void 0:ge.value)??"label")}))==null?void 0:$.value)==null?void 0:Z.value)??((H=K==null?void 0:K.find(Y=>{var ve,ge;return(Y==null?void 0:Y.key)===(((ge=(ve=y.value)==null?void 0:ve.find(xe=>(xe==null?void 0:xe.label)==="类型"))==null?void 0:ge.value)??"label")}))==null?void 0:H.value);if((ie=y.value)==null||ie.forEach(Y=>{const ve=N==null?void 0:N.find(ge=>(ge==null?void 0:ge.label)===(Y==null?void 0:Y.label));ve&&(m[ve.key]=Y.value)}),m.name=m.label,(R=F.value)!=null&&R.find(Y=>Y.id===m.id))F.value=(j=F.value)==null?void 0:j.map(Y=>(Y.id===m.id&&(Y=m),Y));else{let Y=u.cloneDeep(F.value);F.value||(F.value=[]),Y.push(m),F.value=Y}F.value=F.value.map(({id:Y,...ve})=>ve),p.value=!1,D.value="";let V=u.cloneDeep(n.originalItemContents);(ne=u.cloneDeep(n.originalItemContents))!=null&&ne.find(Y=>(Y==null?void 0:Y.key)==="tableToForm")?V=(le=u.cloneDeep(n.originalItemContents))==null?void 0:le.map(Y=>((Y==null?void 0:Y.key)==="tableToForm"&&(Y.contents=F.value),Y)):V.push({key:"tableToForm",contents:F.value}),l("change",V)},U=m=>{_.value=!0;let N=[];Ne==null||Ne.forEach(V=>{i.value++,N.push({label:V==null?void 0:V.label,name:V==null?void 0:V.label,type:V.type,value:m[V.key],id:i.value,contents:V==null?void 0:V.options})}),D.value=m==null?void 0:m.id,t.value=N,f.value=N};e.watch(()=>k.value,()=>{var N,V;let m=u.cloneDeep(n.originalItemContents);(N=u.cloneDeep(n.originalItemContents))!=null&&N.find($=>($==null?void 0:$.key)==="page")?m=(V=u.cloneDeep(n.originalItemContents))==null?void 0:V.map($=>(($==null?void 0:$.key)==="page"&&($.contents=k.value),$)):m.push({key:"page",contents:k.value}),l("change",m)},{deep:!0});const E=m=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var N,V;S.value=(N=u.cloneDeep(S.value))==null?void 0:N.filter($=>($==null?void 0:$.id)!==(m==null?void 0:m.id)),l("change",(V=u.cloneDeep(n.originalItemContents))==null?void 0:V.map($=>(($==null?void 0:$.key)==="extraButton"&&($.contents=S.value),$))),Ce.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},G=()=>{var V,$,Z,H,ie;t.value=f.value;let m={};if(D.value!==""?m.id=D.value:(i.value++,m.id="id"+i.value),(V=t.value)==null||V.forEach(R=>{const j=Ne==null?void 0:Ne.find(ne=>(ne==null?void 0:ne.label)===(R==null?void 0:R.label));j?m[j.key]=R.value:R!=null&&R.children&&R.children.length>0&&(m.children=R.children)}),($=S.value)!=null&&$.find(R=>R.id===m.id))S.value=(Z=S.value)==null?void 0:Z.map(R=>(R.id===m.id&&(R=m),R));else{let R=u.cloneDeep(S.value);R.push(m),S.value=R}_.value=!1,D.value="";let N=u.cloneDeep(n.originalItemContents);(H=u.cloneDeep(n.originalItemContents))!=null&&H.find(R=>(R==null?void 0:R.key)==="extraButton")?N=(ie=u.cloneDeep(n.originalItemContents))==null?void 0:ie.map(R=>((R==null?void 0:R.key)==="extraButton"&&(R.contents=S.value),R)):N.push({key:"extraButton",contents:S.value}),l("change",N)},q=m=>{let N=u.cloneDeep(f.value);N=N==null?void 0:N.map(V=>(V.children||(V.value=m==null?void 0:m[V.name]),V)),f.value=N},M=()=>{_.value=!1,t.value=[],D.value=""},W=m=>{h.value=!0;let N=[];we==null||we.forEach(V=>{i.value++,N.push({label:V==null?void 0:V.label,name:V==null?void 0:V.label,type:V.type,value:m[V.key],id:i.value,contents:V==null?void 0:V.options})}),D.value=m==null?void 0:m.id,v.value=N,g.value=N},z=m=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var N,V;C.value=(N=u.cloneDeep(C.value))==null?void 0:N.filter($=>($==null?void 0:$.id)!==(m==null?void 0:m.id)),l("change",(V=u.cloneDeep(n.originalItemContents))==null?void 0:V.map($=>(($==null?void 0:$.key)==="rowButton"&&($.contents=C.value),$))),Ce.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},ee=()=>{r.value=!0;let m=[];Q==null||Q.forEach(N=>{i.value++,m.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=m,B.value=m},te=()=>{h.value=!0;let m=[];we==null||we.forEach(N=>{i.value++,m.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})}),v.value=m,g.value=m},ye=m=>{let N=u.cloneDeep(g.value);N=N==null?void 0:N.map(V=>(V.children||(V.value=m==null?void 0:m[V.name]),V)),g.value=N},ce=()=>{var V,$,Z,H,ie;v.value=g.value;let m={};if(D.value!==""?m.id=D.value:(i.value++,m.id="id"+i.value),(V=v.value)==null||V.forEach(R=>{const j=we==null?void 0:we.find(ne=>(ne==null?void 0:ne.label)===(R==null?void 0:R.label));j?m[j.key]=R.value:R!=null&&R.children&&R.children.length>0&&(m.children=R.children)}),($=C.value)!=null&&$.find(R=>R.id===m.id))C.value=(Z=C.value)==null?void 0:Z.map(R=>(R.id===m.id&&(R=m),R));else{let R=u.cloneDeep(C.value);R.push(m),C.value=R}h.value=!1,D.value="";let N=u.cloneDeep(n.originalItemContents);(H=u.cloneDeep(n.originalItemContents))!=null&&H.find(R=>(R==null?void 0:R.key)==="rowButton")?N=(ie=u.cloneDeep(n.originalItemContents))==null?void 0:ie.map(R=>((R==null?void 0:R.key)==="rowButton"&&(R.contents=C.value),R)):N.push({key:"rowButton",contents:C.value}),l("change",N)},pe=()=>{h.value=!1,D.value="",g.value=[],v.value=[]},de=m=>{r.value=!0;let N=[];Q==null||Q.forEach(V=>{i.value++,N.push({label:V==null?void 0:V.label,name:V==null?void 0:V.label,type:V.type,value:"",id:i.value,contents:V==null?void 0:V.options})}),d.value=N,T.value=m==null?void 0:m.id,B.value=N},me=m=>{var N;c.value=yl(u.cloneDeep(c.value),m==null?void 0:m.id),l("change",(N=u.cloneDeep(n.originalItemContents))==null?void 0:N.map(V=>{var $;return(V==null?void 0:V.key)==="header"&&(V.contents=($=c.value)!=null&&$.some(Z=>Z==null?void 0:Z.children)?[c.value]:c.value),V}))},re=m=>{var V,$,Z;m.type==="fix"?m.id!==""?c.value=kl(c.value,m):c.value=vl(c.value,m==null?void 0:m.contents):c.value=gl(c.value,m),c.value=(V=c.value)!=null&&V.some(H=>H==null?void 0:H.children)?[c.value]:c.value,D.value="";let N=u.cloneDeep(n.originalItemContents);($=u.cloneDeep(n.originalItemContents))!=null&&$.find(H=>(H==null?void 0:H.key)==="header")?N=(Z=u.cloneDeep(n.originalItemContents))==null?void 0:Z.map(H=>((H==null?void 0:H.key)==="header"&&(H.contents=c.value),H)):N.push({key:"header",contents:c.value}),l("change",N)},fe=m=>{var V;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:m[$.key],id:i.value,contents:$==null?void 0:$.options})}),m!=null&&m.children&&((V=m==null?void 0:m.children)==null?void 0:V.length)>0&&N.push({children:m==null?void 0:m.children,isFormColHidden:!0}),D.value=m==null?void 0:m.id,T.value="",d.value=N,B.value=N},X=m=>{let N=u.cloneDeep(B.value);N=N==null?void 0:N.map(V=>(V.children||(V.value=m==null?void 0:m[V.name]),V)),B.value=N},Ee=()=>{r.value=!1,D.value="",T.value="",B.value=[]},Be=()=>{var V,$,Z,H,ie,R;d.value=B.value;let m={};if(D.value!==""?m.id=D.value:(i.value++,m.id="id"+i.value),(V=d.value)==null||V.forEach(j=>{const ne=Q==null?void 0:Q.find(le=>(le==null?void 0:le.label)===(j==null?void 0:j.label));ne?m[ne.key]=j.value:j!=null&&j.children&&j.children.length>0&&(m.children=j.children)}),($=c.value)!=null&&$.find(j=>j.id===m.id))c.value=(Z=c.value)==null?void 0:Z.map(j=>(j.id===m.id&&(j=m),j));else{let j=u.cloneDeep(c.value)??[];T.value===""?j.push(m):j=j==null?void 0:j.map(ne=>(ne.id===T.value&&(ne.children||(ne.children=[]),ne.children.push(m)),ne)),c.value=j}c.value=(H=c.value)!=null&&H.some(j=>j==null?void 0:j.children)?[c.value]:c.value,r.value=!1,D.value="",T.value="";let N=u.cloneDeep(n.originalItemContents);(ie=u.cloneDeep(n.originalItemContents))!=null&&ie.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=m=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var N,V;c.value=(N=u.cloneDeep(c.value))==null?void 0:N.filter($=>($==null?void 0:$.id)!==(m==null?void 0:m.id)),l("change",(V=u.cloneDeep(n.originalItemContents))==null?void 0:V.map($=>{var Z;return($==null?void 0:$.key)==="header"&&($.contents=(Z=c.value)!=null&&Z.some(H=>H==null?void 0:H.children)?[c.value]:c.value),$})),Ce.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return e.watch(()=>n.originalItemContents,()=>{var m,N,V,$,Z,H,ie,R,j,ne,le,Y,ve,ge,xe,Ye,el,ll,al;if(!(!n.originalItemContents||n.originalItemContents.length===0))if(o.value=u.cloneDeep(n.originalItemContents),c.value=(N=(m=o.value)==null?void 0:m.find(O=>(O==null?void 0:O.key)==="header"))==null?void 0:N.contents,C.value=($=(V=o.value)==null?void 0:V.find(O=>(O==null?void 0:O.key)==="rowButton"))==null?void 0:$.contents,S.value=(H=(Z=o.value)==null?void 0:Z.find(O=>(O==null?void 0:O.key)==="extraButton"))==null?void 0:H.contents,k.value=(R=(ie=o.value)==null?void 0:ie.find(O=>(O==null?void 0:O.key)==="page"))!=null&&R.contents?!!((ne=(j=o.value)==null?void 0:j.find(O=>(O==null?void 0:O.key)==="page"))!=null&&ne.contents):!1,F.value=(Y=(le=o.value)==null?void 0:le.find(O=>(O==null?void 0:O.key)==="tableToForm"))==null?void 0:Y.contents,c.value=(ve=c.value)==null?void 0:ve.map((O,be)=>(Array.isArray(O)?O=Zl(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))?(xe=c.value)==null?void 0:xe[0]:c.value,C.value=(Ye=C.value)==null?void 0:Ye.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=(el=S.value)==null?void 0:el.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=(al=F.value)==null?void 0:al.map(O=>{i.value++;let be=O;return be.id=i.value,be});else{let O=[];const be=(ll=he.getColumnChild(u.cloneDeep(c.value)))==null?void 0:ll.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}),(m,N)=>{const V=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",ya,[e.createElementVNode("div",va,[e.createElementVNode("div",ka,[N[2]||(N[2]=e.createElementVNode("div",null,e.toDisplayString("表头"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:ee},[e.createVNode(V,{name:"Plus",class:"icon-size"}),N[1]||(N[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",ga,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,($,Z)=>(e.openBlock(),e.createElementBlock("div",{key:Z},[e.createElementVNode("div",ba,[e.createElementVNode("div",Ca,e.toDisplayString($==null?void 0:$.label),1),e.createElementVNode("div",Da,[e.createVNode(V,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:H=>de($)},null,8,["onClick"]),e.createVNode(V,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:H=>fe($)},null,8,["onClick"]),e.createVNode(V,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:H=>De($)},null,8,["onClick"])])]),$!=null&&$.children&&$.children.length>0?(e.openBlock(),e.createElementBlock("div",xa,[e.createVNode(Cl,{tableChildContents:$==null?void 0:$.children,onDeleteChange:me,onFixChange:re},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",Ea,[N[4]||(N[4]=e.createElementVNode("div",null,e.toDisplayString("行内按钮"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:te},[e.createVNode(V,{name:"Plus",class:"icon-size"}),N[3]||(N[3]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",_a,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,($,Z)=>(e.openBlock(),e.createElementBlock("div",{key:Z},[e.createElementVNode("div",Na,[e.createElementVNode("div",wa,e.toDisplayString($==null?void 0:$.label),1),e.createElementVNode("div",$a,[e.createVNode(V,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:H=>W($)},null,8,["onClick"]),e.createVNode(V,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:H=>z($)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",Ba,[N[6]||(N[6]=e.createElementVNode("div",null,e.toDisplayString("表外按钮"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:P},[e.createVNode(V,{name:"Plus",class:"icon-size"}),N[5]||(N[5]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",Va,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,($,Z)=>(e.openBlock(),e.createElementBlock("div",{key:Z},[e.createElementVNode("div",Ta,[e.createElementVNode("div",Aa,e.toDisplayString($==null?void 0:$.label),1),e.createElementVNode("div",Ia,[e.createVNode(V,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:H=>U($)},null,8,["onClick"]),e.createVNode(V,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:H=>E($)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",Sa,[N[8]||(N[8]=e.createElementVNode("div",null,e.toDisplayString("表格弹框字段设置"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:b},[e.createVNode(V,{name:"Plus",class:"icon-size"}),N[7]||(N[7]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",Oa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,($,Z)=>(e.openBlock(),e.createElementBlock("div",{key:Z},[e.createElementVNode("div",Fa,[e.createElementVNode("div",La,e.toDisplayString($==null?void 0:$.label),1),e.createElementVNode("div",ja,[e.createVNode(V,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:H=>A($)},null,8,["onClick"]),e.createVNode(V,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:H=>x($)},null,8,["onClick"])])])]))),128))]),N[10]||(N[10]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("分页"))],-1)),e.createElementVNode("div",Ua,[e.createElementVNode("div",Ja,[N[9]||(N[9]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否分页"),-1)),e.createVNode(ae._sfc_main$1,{modelValue:k.value,"onUpdate:modelValue":N[0]||(N[0]=$=>k.value=$)},null,8,["modelValue"])])])]),e.createVNode(ae.ssDialog,{visible:r.value,onBeforeDestroy:Ee,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Pa,[(e.openBlock(),e.createBlock(ae.ssForm,{rowContents:d.value,key:d.value,isEnableWrap:!0,onChange:X},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:Ee,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:Be},e.toDisplayString("确认"))])]),_:1},8,["visible"]),e.createVNode(ae.ssDialog,{visible:h.value,onBeforeDestroy:pe,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Ra,[(e.openBlock(),e.createBlock(ae.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!0,onChange:ye},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:pe,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:ce},e.toDisplayString("确认"))])]),_:1},8,["visible"]),e.createVNode(ae.ssDialog,{visible:_.value,onBeforeDestroy:M,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Wa,[(e.openBlock(),e.createBlock(ae.ssForm,{rowContents:t.value,key:t.value,isEnableWrap:!0,onChange:q},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:M,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:G},e.toDisplayString("确认"))])]),_:1},8,["visible"]),e.createVNode(ae.ssDialog,{visible:p.value,onBeforeDestroy:J,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",za,[(e.openBlock(),e.createBlock(ae.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:I},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:J,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:w},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},Ga=ue._export_sfc(Ma,[["__scopeId","data-v-14ead5ff"]]),qa={class:"form-operate-content"},Ka={class:"form-operate-item"},Ha={class:"operate-title"},Za={class:"operate-content"},Qa={class:"fix-content"},Xa={class:"fix-button"},Ya={class:"operate-title"},en={class:"operate-content"},ln={class:"fix-content"},an={class:"fix-button"},nn={style:{display:"flex","justify-content":"space-between"}},on={class:"form-content"},sn={class:"form-content"},rn={__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([]),k=e.ref(""),B=e.ref(!1),D=e.ref(0),T=e.ref([]),C=e.ref([]),S=async b=>{var x,J,w,U;o.value=!0;let I=[];const A=await((J=(x=K==null?void 0:K.find(E=>(E==null?void 0:E.key)===((b==null?void 0:b.type)===""?"Input":b==null?void 0:b.type)))==null?void 0:x.value)==null?void 0:J.value)??((w=K==null?void 0:K.find(E=>(E==null?void 0:E.key)===((b==null?void 0:b.type)===""?"Input":b==null?void 0:b.type)))==null?void 0:w.value);if(A==null||A.forEach(E=>{D.value++,I.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)==="类型"&&b[E.key]===""?"Input":b[E.key],id:D.value,contents:E==null?void 0:E.options})}),b!=null&&b.menuSelect&&((U=b==null?void 0:b.menuSelect)==null?void 0:U.length)>0){const E=await Me(b==null?void 0:b.menuSelect);I=I==null?void 0:I.map(G=>((G==null?void 0:G.name)==="组信息选项"&&(G.contents=E),G))}k.value=b==null?void 0:b.id,r.value=await Ae(Fe(I)),p.value=await Ae(Fe(I))},v=b=>{c.value=!0;let I=[];_e==null||_e.forEach(A=>{D.value++,I.push({label:A==null?void 0:A.label,name:A==null?void 0:A.label,type:A.type,value:(A==null?void 0:A.label)==="类型"&&b[A.key]===""?"normal":b[A.key],id:D.value,contents:A==null?void 0:A.options})}),T.value=I,C.value=I,k.value=b==null?void 0:b.id};e.watch(()=>B.value,()=>{var I,A;let b=u.cloneDeep(n.originalItemContents);(I=u.cloneDeep(n.originalItemContents))!=null&&I.find(x=>(x==null?void 0:x.key)==="enableWrap")?b=(A=u.cloneDeep(n.originalItemContents))==null?void 0:A.map(x=>((x==null?void 0:x.key)==="enableWrap"&&(x.contents=!B.value),x)):b.push({key:"enableWrap",contents:!B.value}),l("change",b)},{deep:!0});const g=()=>{var A,x,J,w,U;T.value=C.value;let b={};if(k.value!==""?b.id=k.value:(D.value++,b.id="id"+D.value),(A=T.value)==null||A.forEach(E=>{const G=_e==null?void 0:_e.find(q=>(q==null?void 0:q.label)===(E==null?void 0:E.label));G&&(b[G.key]=E.value)}),(x=h.value)!=null&&x.find(E=>E.id===b.id))h.value=(J=h.value)==null?void 0:J.map(E=>(E.id===b.id&&(E=b),E));else{let E=u.cloneDeep(h.value);h.value||(h.value=[]),E.push(b),h.value=E}c.value=!1,k.value="";let I=u.cloneDeep(n.originalItemContents);(w=u.cloneDeep(n.originalItemContents))!=null&&w.find(E=>(E==null?void 0:E.key)==="formButton")?I=(U=u.cloneDeep(n.originalItemContents))==null?void 0:U.map(E=>((E==null?void 0:E.key)==="formButton"&&(E.contents=h.value),E)):I.push({key:"formButton",contents:h.value}),l("change",I)},_=b=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var I,A;d.value=(I=u.cloneDeep(d.value))==null?void 0:I.filter(x=>(x==null?void 0:x.id)!==(b==null?void 0:b.id)),l("change",(A=u.cloneDeep(n.originalItemContents))==null?void 0:A.map(x=>((x==null?void 0:x.key)==="formContent"&&(x.contents=d.value),x))),Ce.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},t=b=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var I,A;h.value=(I=u.cloneDeep(h.value))==null?void 0:I.filter(x=>(x==null?void 0:x.id)!==(b==null?void 0:b.id)),l("change",(A=u.cloneDeep(n.originalItemContents))==null?void 0:A.map(x=>((x==null?void 0:x.key)==="formButton"&&(x.contents=h.value),x))),Ce.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},f=()=>{c.value=!0;let b=[];_e==null||_e.forEach(I=>{D.value++,b.push({label:I==null?void 0:I.label,name:I==null?void 0:I.label,type:I.type,value:(I==null?void 0:I.label)==="类型"?"normal":"",id:D.value,contents:I==null?void 0:I.options})}),T.value=b,C.value=b},i=()=>{var I,A;o.value=!0;let b=[];(A=(I=K==null?void 0:K.find(x=>(x==null?void 0:x.key)==="Input"))==null?void 0:I.value)==null||A.forEach(x=>{D.value++,b.push({label:x==null?void 0:x.label,name:x==null?void 0:x.label,type:x.type,value:(x==null?void 0:x.label)==="类型"?"Input":"",id:D.value,contents:x==null?void 0:x.options})}),r.value=b,p.value=b},y=b=>{let I=u.cloneDeep(C.value);I=I==null?void 0:I.map(A=>(A.value=b==null?void 0:b[A.name],A)),C.value=I},L=async b=>{var I,A,x,J,w,U,E,G,q;if((b==null?void 0:b.类型)!==((A=(I=p.value)==null?void 0:I.find(M=>(M==null?void 0:M.label)==="类型"))==null?void 0:A.value)){let M=[];const W=await((J=(x=K==null?void 0:K.find(z=>(z==null?void 0:z.key)===((b==null?void 0:b.类型)===""?"Input":b==null?void 0:b.类型)))==null?void 0:x.value)==null?void 0:J.value)?await((E=(U=K==null?void 0:K.find(z=>(z==null?void 0:z.key)===((b==null?void 0:b.类型)===""?"Input":b==null?void 0:b.类型)))==null?void 0:U.value)==null?void 0:E.value):(w=K==null?void 0:K.find(z=>(z==null?void 0:z.key)===((b==null?void 0:b.类型)===""?"Input":b==null?void 0:b.类型)))==null?void 0:w.value;if(W==null||W.forEach(z=>{D.value++,M.push({label:z==null?void 0:z.label,name:z==null?void 0:z.label,type:z.type,value:(b==null?void 0:b[z.label])??"",id:D.value,contents:z==null?void 0:z.options})}),b!=null&&b.菜单选项&&((G=b==null?void 0:b.菜单选项)==null?void 0:G.length)>0){const z=await Me(b==null?void 0:b.菜单选项);M=M==null?void 0:M.map(ee=>((ee==null?void 0:ee.name)==="组信息选项"&&(ee.contents=z),ee))}p.value=await Ae(u.cloneDeep(M)),r.value=await Ae(u.cloneDeep(M))}else{let M=u.cloneDeep(p.value);if(M=M==null?void 0:M.map(W=>(W.value=b==null?void 0:b[W.name],W)),b!=null&&b.菜单选项&&((q=b==null?void 0:b.菜单选项)==null?void 0:q.length)>0){const W=await Me(b==null?void 0:b.菜单选项);M=M==null?void 0:M.map(z=>((z==null?void 0:z.name)==="组信息选项"&&(z.contents=W),z))}M=Fe(M),p.value=await Ae(u.cloneDeep(M))}},F=async()=>{var x,J,w,U,E,G,q,M;r.value=p.value;let b={};k.value!==""?b.id=k.value:(D.value++,b.id="id"+D.value);let I=await((J=(x=K==null?void 0:K.find(W=>{var z,ee;return(W==null?void 0:W.key)===(((ee=(z=r.value)==null?void 0:z.find(te=>(te==null?void 0:te.label)==="类型"))==null?void 0:ee.value)??"label")}))==null?void 0:x.value)==null?void 0:J.value)??((w=K==null?void 0:K.find(W=>{var z,ee;return(W==null?void 0:W.key)===(((ee=(z=r.value)==null?void 0:z.find(te=>(te==null?void 0:te.label)==="类型"))==null?void 0:ee.value)??"label")}))==null?void 0:w.value);if((U=r.value)==null||U.forEach(W=>{const z=I==null?void 0:I.find(ee=>(ee==null?void 0:ee.label)===(W==null?void 0:W.label));z&&(b[z.key]=W.value)}),b.width=1,b.key=b==null?void 0:b.label,(E=d.value)!=null&&E.find(W=>W.id===b.id))d.value=(G=d.value)==null?void 0:G.map(W=>(W.id===b.id&&(W=b),W));else{let W=u.cloneDeep(d.value);W.push(b),d.value=W}d.value=d.value.map(({id:W,...z})=>z),o.value=!1,k.value="";let A=u.cloneDeep(n.originalItemContents);(q=u.cloneDeep(n.originalItemContents))!=null&&q.find(W=>(W==null?void 0:W.key)==="formContent")?A=(M=u.cloneDeep(n.originalItemContents))==null?void 0:M.map(W=>((W==null?void 0:W.key)==="formContent"&&(W.contents=d.value),W)):A.push({key:"formContent",contents:d.value}),l("change",A)},P=()=>{o.value=!1,c.value=!1,k.value="",p.value=[],C.value=[]};return e.watch(()=>n.originalItemContents,()=>{var I,A,x,J,w,U;if(!n.originalItemContents||n.originalItemContents.length===0)return;const b=u.cloneDeep(n.originalItemContents);d.value=((I=b==null?void 0:b.find(E=>(E==null?void 0:E.key)==="formContent"))==null?void 0:I.contents)??[],h.value=((A=b==null?void 0:b.find(E=>(E==null?void 0:E.key)==="formButton"))==null?void 0:A.contents)??[],B.value=(x=b==null?void 0:b.find(E=>(E==null?void 0:E.key)==="enableWrap"))!=null&&x.contents?!((J=b==null?void 0:b.find(E=>(E==null?void 0:E.key)==="enableWrap"))!=null&&J.contents):!0,d.value=(w=u.cloneDeep(d.value))==null?void 0:w.map((E,G)=>{let q=E;return q.id=(E==null?void 0:E.id)??G,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)??"",q}),d.value=Fe(d.value),h.value=(U=h.value)==null?void 0:U.map((E,G)=>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)??G})},{deep:!0,immediate:!0}),(b,I)=>{const A=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",qa,[e.createElementVNode("div",Ka,[e.createElementVNode("div",Ha,[I[2]||(I[2]=e.createElementVNode("div",null,e.toDisplayString("表单内容"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:i},[e.createVNode(A,{name:"Plus",class:"icon-size"}),I[1]||(I[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",Za,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(x,J)=>(e.openBlock(),e.createElementBlock("div",{key:J},[e.createElementVNode("div",Qa,[e.createElementVNode("div",null,e.toDisplayString(x.label),1),e.createElementVNode("div",Xa,[e.createVNode(A,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:w=>S(x)},null,8,["onClick"]),e.createVNode(A,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:w=>_(x)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",Ya,[I[4]||(I[4]=e.createElementVNode("div",null,e.toDisplayString("表单按钮"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:f},[e.createVNode(A,{name:"Plus",class:"icon-size"}),I[3]||(I[3]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",en,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(x,J)=>(e.openBlock(),e.createElementBlock("div",{key:J},[e.createElementVNode("div",ln,[e.createElementVNode("div",null,e.toDisplayString(x.label),1),e.createElementVNode("div",an,[e.createVNode(A,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:w=>v(x)},null,8,["onClick"]),e.createVNode(A,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:w=>t(x)},null,8,["onClick"])])])]))),128))]),I[6]||(I[6]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("表单布局"))],-1)),e.createElementVNode("div",nn,[I[5]||(I[5]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否自动撑宽"),-1)),e.createVNode(ae._sfc_main$1,{modelValue:B.value,"onUpdate:modelValue":I[0]||(I[0]=x=>B.value=x)},null,8,["modelValue"])])]),e.createVNode(ae.ssDialog,{visible:o.value,onBeforeDestroy:P,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",on,[(e.openBlock(),e.createBlock(ae.ssForm,{rowContents:r.value,key:r.value,isEnableWrap:!0,onChange:L},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:P,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:F},e.toDisplayString("确认"))])]),_:1},8,["visible"]),e.createVNode(ae.ssDialog,{visible:c.value,onBeforeDestroy:P,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",sn,[(e.openBlock(),e.createBlock(ae.ssForm,{rowContents:T.value,key:T.value,isEnableWrap:!0,onChange:y},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:P,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:g},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},sl=ue._export_sfc(rn,[["__scopeId","data-v-45af98b5"]]),tn={class:"step-module content"},cn={class:"module-data"},un={class:"step-module layout"},pn={class:"form-content"},dn=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({}),k=e.ref([]),B=v=>{var g;d.value=v,l("change",(g=C())==null?void 0:g.compData)},D=(v,g)=>{var _,t;switch(v){case"create":(_=r.value)==null||_.forEach(f=>{f.value=""}),h.value="create",c.visible=!0;break;case"update":(t=r.value)==null||t.forEach(f=>{f.value=g[f==null?void 0:f.prop]}),h.value="update",c.visible=!0;break;case"delete":k.value.splice(g,1),h.value="delete";break}},T=v=>{var g,_,t;if((v==null?void 0:v.buttonName)==="确认"){const f=u.cloneDeep(v==null?void 0:v.content);switch(Object.keys(f).forEach(i=>{f[i]===""&&delete f[i]}),h.value){case"create":k.value.push({...f,index:((g=k.value)==null?void 0:g.length)+1});break;case"update":k.value=(_=k.value)==null?void 0:_.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=C())==null?void 0:t.compData),c.visible=!1}else c.visible=!1},C=()=>({comp:"Step",compData:[{key:"stepList",contents:k.value},{key:"stepConfig",contents:d.value}]}),S=()=>{c.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,v=>{var g,_;v&&(d.value=((g=v==null?void 0:v.find(t=>t.key==="stepConfig"))==null?void 0:g.contents)??{},k.value=((_=v==null?void 0:v.find(t=>t.key==="stepList"))==null?void 0:_.contents)??[])},{immediate:!0}),(v,g)=>{const _=e.resolveComponent("svg-icon"),t=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",tn,[g[2]||(g[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createElementVNode("div",{class:"module-icon",onClick:g[0]||(g[0]=f=>D("create"))},[e.createVNode(_,{name:"Plus",class:"icon-size"}),g[1]||(g[1]=e.createElementVNode("div",null,"新增",-1))])]),e.createElementVNode("div",cn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.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:y=>D("update",{...f,index:i+1})},{default:e.withCtx(()=>g[3]||(g[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(t,{type:"danger",size:"small",onClick:y=>D("delete",i)},{default:e.withCtx(()=>g[4]||(g[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",un,[g[5]||(g[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(ae.ssForm,{rowContents:o.value,onChange:B},null,8,["rowContents"])])]),e.createVNode(ae.ssDialog,{visible:c.visible,title:c.title,onBeforeDestroy:S,width:c.width},{default:e.withCtx(()=>[e.createElementVNode("div",pn,[(e.openBlock(),e.createBlock(ae.ssForm,{rowContents:r.value,key:r.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:p.value,onOnButtonClick:T},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),fn=ue._export_sfc(dn,[["__scopeId","data-v-47438605"]]),hn={class:"step-module content"},mn={class:"module-data"},yn={class:"step-module layout"},vn={class:"form-content"},kn=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"}]),k=e.reactive({visible:!1,width:"40%",title:"时间线"}),B=v=>{var g;r.value=v,console.log(1212,v),l("change",(g=C())==null?void 0:g.compData)},D=(v,g)=>{var _,t;switch(v){case"create":(_=h.value)==null||_.forEach(f=>{f.value=""}),o.value="create",k.visible=!0;break;case"update":(t=h.value)==null||t.forEach(f=>{f.value=g[f==null?void 0:f.prop]}),o.value="update",k.visible=!0;break;case"delete":p.value.splice(g,1),o.value="delete";break}},T=v=>{var g,_,t,f;if((v==null?void 0:v.buttonName)==="确认"){const i=u.cloneDeep(v==null?void 0:v.content);switch(Object.keys(i).forEach(y=>{i[y]===""&&delete i[y]}),o.value){case"create":console.log(1335,p.value,i),(_=p.value)==null||_.push({...i,index:((g=p.value)==null?void 0:g.length)+1});break;case"update":p.value=(t=p.value)==null?void 0:t.map(y=>y.index===(i==null?void 0:i.index)?{...y,content:i==null?void 0:i.content,timestamp:i==null?void 0:i.timestamp}:y);break}l("change",(f=C())==null?void 0:f.compData),k.visible=!1}else k.visible=!1},C=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:p.value},{key:"timeLineConfig",contents:r.value}]}),S=()=>{k.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,v=>{var g,_;v&&(r.value=((g=v==null?void 0:v.find(t=>t.key==="timeLineConfig"))==null?void 0:g.contents)??{},p.value=((_=v==null?void 0:v.find(t=>t.key==="timeLineList"))==null?void 0:_.contents)??[])},{immediate:!0}),(v,g)=>{const _=e.resolveComponent("svg-icon"),t=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",hn,[g[2]||(g[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createElementVNode("div",{class:"module-icon",onClick:g[0]||(g[0]=f=>D("create"))},[e.createVNode(_,{name:"Plus",class:"icon-size"}),g[1]||(g[1]=e.createElementVNode("div",null,"新增",-1))])]),e.createElementVNode("div",mn,[(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:y=>D("update",{...f,index:i+1})},{default:e.withCtx(()=>g[3]||(g[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(t,{type:"danger",size:"small",onClick:y=>D("delete",i)},{default:e.withCtx(()=>g[4]||(g[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",yn,[g[5]||(g[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(ae.ssForm,{rowContents:c.value,onChange:B},null,8,["rowContents"])])]),e.createVNode(ae.ssDialog,{visible:k.visible,title:k.title,onBeforeDestroy:S,width:k.width},{default:e.withCtx(()=>[e.createElementVNode("div",vn,[(e.openBlock(),e.createBlock(ae.ssForm,{rowContents:h.value,key:h.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:d.value,onOnButtonClick:T},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),gn=ue._export_sfc(kn,[["__scopeId","data-v-40aea043"]]),bn={};function Cn(a,s){return e.openBlock(),e.createElementBlock("div")}const Dn=ue._export_sfc(bn,[["render",Cn]]),xn={class:"extra-content"},En={key:0},_n={key:1},Nn={__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({}),k=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 y;if(i.key==="extra"){let L=[];(y=i.value)==null||y.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 B=(t,f,i,y)=>{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,k.value=y.id)},D=t=>{var P,b,I,A;const f=(b=(P=Object.values(u.cloneDeep(h.value)))==null?void 0:P[0])==null?void 0:b.filter(x=>(x==null?void 0:x.key)==="tableContentName"),i=(A=(I=Object.values(u.cloneDeep(h.value)))==null?void 0:I[0])==null?void 0:A.filter(x=>(x==null?void 0:x.key)!=="tableContentName"),y=i==null?void 0:i.map((x,J)=>{var w;return J===t.index&&(x==null?void 0:x.comp)==="Table"&&(x.compData=(w=x.compData)==null?void 0:w.map(U=>{var E,G;return(U==null?void 0:U.key)==="tableContents"&&(U.contents=(G=(E=t.content)==null?void 0:E.map(q=>{let M={};for(let W in q)W!=="id"&&(M[W]=q[W]);return M}))==null?void 0:G.map(q=>Object.values(q))),U})),x});y.unshift(f==null?void 0:f[0]);let L=u.cloneDeep(h.value),F={};for(let x in L)F[x]=y;h.value=F},T=()=>{c.value=!1,h.value={},d.value={},k.value=void 0,l.value++},C=t=>{var P,b,I,A;const f=(b=(P=Object.values(u.cloneDeep(h.value)))==null?void 0:P[0])==null?void 0:b.filter(x=>(x==null?void 0:x.key)==="tableContentName"),i=(A=(I=Object.values(u.cloneDeep(h.value)))==null?void 0:I[0])==null?void 0:A.filter(x=>(x==null?void 0:x.key)!=="tableContentName"),y=i==null?void 0:i.map((x,J)=>(J===t.index&&(x.compData=t.contents),x));y.unshift(f==null?void 0:f[0]);let L=u.cloneDeep(h.value),F={};for(let x in L)F[x]=y;h.value=F},S=()=>{var f,i;let t={};for(let y in d.value)y===((f=Object.keys(h.value))==null?void 0:f[0])?t[y]=(i=Object.values(h.value))==null?void 0:i[0]:t[y]=d.value[y];p("change",{buttonName:"编辑",index:k.value,singleContent:t},"methodData"),c.value=!1,h.value={},d.value={},k.value=void 0},v=()=>{c.value=!1,h.value={},d.value={},k.value=void 0},g=t=>{p("change",t,"methodData")},_=t=>Dl(t);return(t,f)=>(e.openBlock(),e.createElementBlock("div",xn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(i,y)=>(e.openBlock(),e.createElementBlock("div",{key:l.value},[(i==null?void 0:i.key)==="extra"?(e.openBlock(),e.createElementBlock("div",En)):(e.openBlock(),e.createElementBlock("div",_n,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_(i.comp)),{itemData:i==null?void 0:i.compData,childItemData:i==null?void 0:i.itemChildData,key:y,index:(i==null?void 0:i.id)??y,onContentClick:B,onChange:g},null,40,["itemData","childItemData","index"]))]))]))),128)),e.createVNode(ae.ssDialog,{visible:c.value,onBeforeDestroy:v},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(i,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,class:"extra-dialog"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_(i.comp)),{itemData:i==null?void 0:i.compData,onChange:D,childItemData:i==null?void 0:i.itemChildData,key:y,onContentChange:C,index:(i==null?void 0:i.id)??y,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:T},e.toDisplayString("取消")),e.createElementVNode("div",{class:"confirm-button footer-button",onClick:S},e.toDisplayString("确认"))])]),_:1},8,["visible"])]))}},wn=ue._export_sfc(Nn,[["__scopeId","data-v-b0b2f71f"]]),$n={class:"method-content"},Bn=["onClick"],Vn={__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($e.pinia),{itemData:o,isEdit:r}=Ce.storeToRefs(l),p=(d,k)=>{var D;const B=(D=k==null?void 0:k[0])==null?void 0:D.children;return d==null?void 0:d.map(T=>{var C;return T=(C=T==null?void 0:T.map((S,v)=>{var g;return{key:(g=B[v])==null?void 0:g.label,value:S}}))==null?void 0:C.filter(S=>S.key),T})};e.watch(()=>o.value,async()=>{r.value=="view"&&await h(u.cloneDeep(n.itemData))},{deep:!0});const c=async d=>{var t,f,i,y,L,F;let k={};if((t=u.cloneDeep(d.content))==null||t.forEach((P,b)=>{var I,A,x,J,w,U,E,G,q,M,W,z,ee,te,ye,ce,pe;if((P==null?void 0:P.comp)==="Table"){let de=(J=(x=(A=(I=P==null?void 0:P.compData)==null?void 0:I.find(X=>(X==null?void 0:X.key)==="header"))==null?void 0:A.contents)==null?void 0:x[0])==null?void 0:J.some(X=>X==null?void 0:X.children),me=(E=(U=(w=P==null?void 0:P.compData)==null?void 0:w.find(X=>(X==null?void 0:X.key)==="tableContents"))==null?void 0:U.contents)==null?void 0:E.map(X=>X.slice(1)),re=(z=(W=(M=(q=(G=P==null?void 0:P.compData)==null?void 0:G.find(X=>(X==null?void 0:X.key)==="header"))==null?void 0:q.contents)==null?void 0:M[0])==null?void 0:W[0])==null?void 0:z.label,fe=(ye=(te=(ee=P==null?void 0:P.compData)==null?void 0:ee.find(X=>(X==null?void 0:X.key)==="header"))==null?void 0:te.contents)==null?void 0:ye[0];if(de)k[re]=p(me,fe);else{const X=[];fe=fe.slice(1,fe.length-1),fe==null||fe.forEach((Ee,Be)=>{me==null||me.forEach(De=>{X.push({key:Ee.label+De[0],value:De[Be+1]})})}),k["form"+b]=X}}else{const de=(pe=(ce=P.compData)==null?void 0:ce.find(re=>(re==null?void 0:re.key)==="formContent"))==null?void 0:pe.contents;k.form={};const me=[];de==null||de.forEach(re=>{re.key!==""&&(re={key:(re==null?void 0:re.key)??(re==null?void 0:re.label),value:re==null?void 0:re.value},me.push(re))}),k.form=me}}),d.api){const P=await $e.axios.post(d.api,{data:k,templateFileName:(f=d==null?void 0:d.extraContent)==null?void 0:f[0]},{responseType:"blob",headers:{"Content-Type":"application/json"}});var B=new Blob([P.data],{type:"application/octet-stream;charset=UTF-8"}),D=P.headers["content-disposition"],T=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),C=T.exec(D),S=((L=(y=(i=d==null?void 0:d.extraContent)==null?void 0:i[0])==null?void 0:y.split("."))==null?void 0:L[0])+"."+((F=C[1].split("."))==null?void 0:F[1]),v=document.createElement("a"),g=window.URL.createObjectURL(B),_=/^["](.*)["]$/g;v.style.display="none",v.href=g,v.download=decodeURI(S.replace(_,"$1")),document.body.appendChild(v),v.click(),document.body.removeChild(v),window.URL.revokeObjectURL(g)}},h=async d=>{var T;const k=u.cloneDeep(d),B=k==null?void 0:k.map(async C=>{var f,i,y,L,F,P,b;const v=(f=(await $e.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),parentTable:"",type:"method",methodName:C.method}})).data.result)==null?void 0:f[0],g=await $e.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"methodData",tableId:v==null?void 0:v.id}}),_=await he.getItemData((i=C==null?void 0:C.value)==null?void 0:i[0],sessionStorage.getItem("systemKey"),""),t=(y=g.data.result)==null?void 0:y[0];return{buttonName:(L=v==null?void 0:v.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:_==null?void 0:_.filter(I=>I.comp!=="methodButton"),extraContent:(b=u.cloneDeep(C.value))==null?void 0:b.slice(1)}}),D=await Promise.all(B);s.value=D==null?void 0:D.filter(C=>C==null?void 0:C.extraContent),(T=s.value)==null||T.forEach(C=>{var S;C.api===""&&((S=C.content)==null||S.forEach(v=>{var g;v.comp=="Table"&&l.setExtraContents(he.methodTableToContent(v.compData,(g=C.extraContent)==null?void 0:g[0]))}))})};return e.watch(()=>n.itemData,async()=>{r.value=="view"&&await h(u.cloneDeep(n.itemData))},{immediate:!0,deep:!0}),(d,k)=>(e.openBlock(),e.createElementBlock("div",$n,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,B=>(e.openBlock(),e.createElementBlock("div",null,[B.api!==""?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:D=>c(B),class:"method-buttons"},e.toDisplayString(B.buttonName),9,Bn)):e.createCommentVNode("",!0)]))),256))]))}},Tn=ue._export_sfc(Vn,[["__scopeId","data-v-0c52611a"]]),An={};function In(a,s){return" 567 "}const Sn=ue._export_sfc(An,[["render",In]]),On={class:"module content"},Fn={class:"module data"},Ln={class:"module layout"},jn={class:"form-content"},Un=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({}),k=e.ref([]),B=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:k.value},{key:"signConfig",contents:d.value}]}),D=v=>{var g;d.value=u.cloneDeep(v),l("change",(g=B())==null?void 0:g.compData)},T=v=>{var g,_;if((v==null?void 0:v.buttonName)==="确认"){const t=u.cloneDeep(v==null?void 0:v.content);switch(r.value){case"create":k.value.push({...t,index:((g=k.value)==null?void 0:g.length)+1});break}l("change",(_=B())==null?void 0:_.compData),o.visible=!1}else o.visible=!1},C=(v,g)=>{var _,t;switch(v){case"create":(_=h.value)==null||_.forEach(f=>{f.value=""}),r.value="create",o.visible=!0;break;case"update":(t=h.value)==null||t.forEach(f=>{f.value=g[f==null?void 0:f.prop]}),console.log(345,g),r.value="update",o.visible=!0;break;case"delete":k.value.splice(g,1),r.value="delete";break}},S=()=>{o.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,v=>{var g,_;v&&(console.log(5670,v),d.value=((g=v==null?void 0:v.find(t=>t.key==="signConfig"))==null?void 0:g.contents)??{},k.value=((_=v==null?void 0:v.find(t=>t.key==="signTypeList"))==null?void 0:_.contents)??[])},{immediate:!0}),(v,g)=>{const _=e.resolveComponent("svg-icon"),t=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",On,[g[2]||(g[2]=e.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),e.createElementVNode("div",{class:"module-icon",onClick:g[0]||(g[0]=f=>C("create"))},[e.createElementVNode("div",null,[e.createVNode(_,{name:"Plus",class:"icon-size"}),g[1]||(g[1]=e.createElementVNode("span",null,"新增",-1))])])]),e.createElementVNode("div",Fn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.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:y=>C("update",{...f,index:i+1})},{default:e.withCtx(()=>g[3]||(g[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(t,{type:"danger",size:"small",onClick:y=>C("delete",i)},{default:e.withCtx(()=>g[4]||(g[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",Ln,[e.createVNode(ae.ssForm,{rowContents:c.value,onChange:D},null,8,["rowContents"])])]),e.createVNode(ae.ssDialog,{visible:o.visible,title:o.title,onBeforeDestroy:S,width:o.width},{default:e.withCtx(()=>[e.createElementVNode("div",jn,[(e.openBlock(),e.createBlock(ae.ssForm,{rowContents:h.value,key:h.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:p.value,onOnButtonClick:T},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),Jn=ue._export_sfc(Un,[["__scopeId","data-v-4b15bd3e"]]),Pn=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 B,D;return(B=n==null?void 0:n.stepConfig)!=null&&B.allowTrigger?o.value:(D=n==null?void 0:n.stepConfig)==null?void 0:D.active}),p=(B,D)=>{o.value=D,l("clickStep",B,D)},c=B=>ae.getComponent(B),h=()=>{var D;const B=(D=n==null?void 0:n.stepList)==null?void 0:D.find((T,C)=>C+1===r.value);return console.log("findStep",B),B?B==null?void 0:B.children:[]},d=B=>{l("clickTrigger",B)},k=B=>{l("changeTrigger",B)};return(B,D)=>{var S,v,g,_,t;const T=e.resolveComponent("el-step"),C=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(C,{direction:(S=a.stepConfig)==null?void 0:S.direction,active:r.value,"finish-status":"success",simple:(v=a.stepConfig)==null?void 0:v.simple,"align-center":(g=a.stepConfig)==null?void 0:g.alignCenter},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.stepList,(f,i)=>(e.openBlock(),e.createBlock(T,{key:i,class:"step-item",onClick:y=>p(f,i+1)},{title:e.withCtx(()=>[e.renderSlot(B.$slots,"title",{title:f==null?void 0:f.title},void 0,!0)]),description:e.withCtx(()=>[e.renderSlot(B.$slots,"description",{description:f==null?void 0:f.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(_=a.stepConfig)!=null&&_.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":y=>f.value=y,onClickTrigger:d,onChangeTrigger:k,content:f==null?void 0:f.content},e.createSlots({_:2},[e.renderList(B.$slots,(y,L)=>({name:L,fn:e.withCtx(F=>[e.renderSlot(B.$slots,L,e.mergeProps({ref_for:!0},F||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):e.createCommentVNode("",!0)],64)}}}),Rn=ue._export_sfc(Pn,[["__scopeId","data-v-85b1cc5d"]]),Wn=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(k=>(k==null?void 0:k.key)==="stepList"))==null?void 0:h.contents,o.value=(d=c==null?void 0:c.find(k=>(k==null?void 0:k.key)==="stepConfig"))==null?void 0:d.contents},{immediate:!0}),(c,h)=>{const d=e.resolveComponent("svg-icon");return e.openBlock(),e.createBlock(Rn,{stepConfig:o.value,stepList:r.value,onClickStep:p},{icon:e.withCtx(()=>[e.createVNode(d,{name:"import"})]),title:e.withCtx(({title:k})=>[e.createTextVNode(e.toDisplayString(k),1)]),description:e.withCtx(({description:k})=>[e.createTextVNode(e.toDisplayString(k),1)]),_:1},8,["stepConfig","stepList"])}}}),zn=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})}}}),Mn=ue._export_sfc(zn,[["__scopeId","data-v-4172a886"]]),Gn={class:"line-content"},qn={class:"line-time"},Kn=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(Mn,{activities:l.value,timeLineConfig:n.value},{content:e.withCtx(({content:p,timestamp:c})=>[e.createElementVNode("span",Gn,e.toDisplayString(p),1),e.createElementVNode("span",qn,e.toDisplayString(c),1)]),_:1},8,["activities","timeLineConfig"]))}}),Hn=ue._export_sfc(Kn,[["__scopeId","data-v-b4d9deed"]]),Zn={class:"tabs-content"},Qn={__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",Zn,[e.createVNode(ae.ssTab,{tabsContents:n.value},null,8,["tabsContents"])]))}},Xn=ue._export_sfc(Qn,[["__scopeId","data-v-d3bb10b7"]]),Yn={class:"tabs-header"},eo={class:"tabs-list"},lo={class:"tab-name"},ao={class:"tab-actions"},no={__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},k=C=>{p.value="修改标签页",c.value.title=o.value[C].title,h.value=C,r.value=!0},B=C=>{o.value.splice(C,1),T()},D=()=>{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,T())},T=()=>{const C=[{key:"stepList",contents:o.value}];l("change",C)};return e.watch(()=>n.itemContents,C=>{if(C&&C.length>0){const S=C.find(v=>v.key==="stepList");S&&S.contents&&(o.value=S.contents.map(v=>({title:v.title||"",value:v.value||v.title||"",label:v.label||v.title||"",children:v.children||[]})))}},{immediate:!0}),(C,S)=>{const v=e.resolveComponent("svg-icon"),g=e.resolveComponent("el-button"),_=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",Yn,[S[4]||(S[4]=e.createElementVNode("h4",null,"标签页管理",-1)),e.createVNode(g,{type:"primary",size:"small",onClick:d},{default:e.withCtx(()=>[e.createVNode(v,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),S[3]||(S[3]=e.createTextVNode(" 新增标签页 "))]),_:1,__:[3]})]),e.createElementVNode("div",eo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(y,L)=>(e.openBlock(),e.createElementBlock("div",{class:"tab-item",key:L},[e.createElementVNode("span",lo,e.toDisplayString(y.title),1),e.createElementVNode("div",ao,[e.createVNode(g,{type:"primary",size:"small",onClick:F=>k(L)},{default:e.withCtx(()=>S[5]||(S[5]=[e.createTextVNode("修改")])),_:2,__:[5]},1032,["onClick"]),e.createVNode(g,{type:"danger",size:"small",onClick:F=>B(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]=y=>r.value=y),title:p.value},{footer:e.withCtx(()=>[e.createVNode(g,{onClick:S[1]||(S[1]=y=>r.value=!1)},{default:e.withCtx(()=>S[7]||(S[7]=[e.createTextVNode("取消")])),_:1,__:[7]}),e.createVNode(g,{type:"primary",onClick:D},{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(_,{modelValue:c.value.title,"onUpdate:modelValue":S[0]||(S[0]=y=>c.value.title=y),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}},oo=ue._export_sfc(no,[["__scopeId","data-v-a26b1c22"]]),so=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"}]),ro={TABLE:he.ssTable,FORM:ol,TABLEOPERATE:Ga,FORMOPERATE:sl,FOLD:Dn,CALCULATOR:wn,METHODBUTTON:Tn,AVATARUPLOAD:nl.ssAvatar,SIGNATURE:nl.ssSignature,FORMTOP:ol,STEP:Wn,STEPOPERATE:fn,TIMELINE:Hn,TIMELINEOPERATE:gn,FORMTOPOPERATE:sl,SIGNATUREOPERATE:Jn,AVATARUPLOADOPERATE:Sn,TABS:Xn,TABSOPERATE:oo};function Dl(a){return ro[a==null?void 0:a.toUpperCase()]||null}const se=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],oe=[{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),to=a=>{const[s,n]=a.split(/=(.+)/),l=s.replace(/['"]/g,"").trim(),o=n.replace(/^['"]|['"]$/g,"");return{key:l,value:o}},Ue=a=>{try{return JSON.parse(a),!0}catch{return!1}},co=a=>a.includes("$")&&a.trim().endsWith("(")?a+")":a,io=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("{"))},uo=a=>{var n;let s=[];return(n=io(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 T,C,S,v,g,_,t,f,i,y,L,F,P;let k=d==null?void 0:d.split(":"),B=k!=null&&k[0]?(k==null?void 0:k[1].split("$").length)-1===1?((T=k==null?void 0:k[0])==null?void 0:T.replace(/^"(.*)"$/,"$1"))+((C=k==null?void 0:k[1])==null?void 0:C.replace(/^"(.*)"$/,"$1")):Array.isArray((v=(S=k==null?void 0:k[1])==null?void 0:S.replace(/^"(.*)"$/,"$1"))==null?void 0:v.split("("))&&((t=(_=(g=k==null?void 0:k[1])==null?void 0:g.replace(/^"(.*)"$/,"$1"))==null?void 0:_.split("("))==null?void 0:t.length)>1?((f=k==null?void 0:k[0])==null?void 0:f.replace(/^"(.*)"$/,"$1"))+((L=(y=(i=k==null?void 0:k[1])==null?void 0:i.replace(/^"(.*)"$/,"$1"))==null?void 0:y.split("("))==null?void 0:L[0])+"()":(F=k==null?void 0:k[0])==null?void 0:F.replace(/^"(.*)"$/,"$1"):"",D=(k==null?void 0:k[1].split("$").length)-1===0?(P=k==null?void 0:k[1])==null?void 0:P.replace(/^"(.*)"$/,"$1"):"";Te.value++,s.push({id:Te.value,key:B,value:D,width:o,extraContent:k==null?void 0:k[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(Ue(o)&&!o.includes("$")||(o=o.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),Ue(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("{{")?uo(l.trim()):Ge(o)}else if(Ue(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=Ge(l))==null?void 0:s.length)===0?l:(n=Ge(l))==null?void 0:n.map(o=>({label:o.label,method:co(o.method)}))}catch(l){return console.error("转换失败:",l),[]}},Ge=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 k=a[d];if((k==='"'||k==="'")&&!c?(c=!0,h=k):k===h&&c&&(c=!1,h=""),!c&&((k==="{"||k==="("||k==="[")&&p++,(k==="}"||k===")"||k==="]")&&p--,k===","&&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},po=(a,s)=>{try{if(se!=null&&se.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(Ue(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}},fo=a=>({[a==null?void 0:a.key]:po(a==null?void 0:a.value,a==null?void 0:a.key)}),ho=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}},mo=a=>{const s=a.match(/\(([^)]+)\)/);return s?s[1]:""},yo=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("/"),vo=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=>mo(h)))];o==null||o.forEach(h=>{let d=a==null?void 0:a.filter(D=>D.key.includes(h));d==null||d.forEach(D=>{D!=null&&D.key.includes("Menus")&&(s.push({key:"GroupName",value:rl(D==null?void 0:D.value)}),n.push(rl(D==null?void 0:D.value)))});let k=a==null?void 0:a.filter(D=>D.key.includes(h)&&!(D!=null&&D.key.includes("Menus")));k=k==null?void 0:k.map(D=>(D.key=yo(D.key),D));const B={key:"GroupContents",value:k};s.push(B)});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(k=>{d.push(k)}),d==null||d.forEach(k=>{p.push(k)})}l.push(p)}),l}},ko=(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},go=a=>{const s={};return a.forEach(l=>{const o=l.split("/");let r=s;o.forEach(p=>{r[p]||(r[p]={}),r=r[p]})}),ko(s,[])},Ze=a=>go(a),bo=a=>{var s,n,l,o,r,p,c,h;try{const d=We((n=(s=u.cloneDeep(a))==null?void 0:s.replace("(","("))==null?void 0:n.replace(")",")")),k=(o=(l=u.cloneDeep(d))==null?void 0:l.filter(C=>!C.includes("/*")))==null?void 0:o.map(C=>to(C)),B=vo(k),D=[];if(((r=B==null?void 0:B.find(C=>(C==null?void 0:C.key)==="Menus"))==null?void 0:r.value.length)===0)return!1;(p=u.cloneDeep(B))==null||p.forEach(C=>{var S,v,g,_,t;se!=null&&se.find(f=>{var i,y;return((i=f==null?void 0:f.key)==null?void 0:i.toUpperCase())===((y=C==null?void 0:C.key)==null?void 0:y.toUpperCase())})?D.push({comp:((S=se==null?void 0:se.find(f=>{var i,y;return((i=f==null?void 0:f.key)==null?void 0:i.toUpperCase())===((y=C==null?void 0:C.key)==null?void 0:y.toUpperCase())}))==null?void 0:S.value)??"",name:(v=C==null?void 0:C.value)==null?void 0:v.replace(/[’]|[‘]|[']/g,""),compData:[]}):oe!=null&&oe.find(f=>{var i,y;return((i=f==null?void 0:f.key)==null?void 0:i.toUpperCase())===((y=C==null?void 0:C.key)==null?void 0:y.toUpperCase())})&&((D==null?void 0:D.length)===0&&(g=C.key)!=null&&g.includes("Menus")&&D.push({comp:"Menu",name:"",compData:[]}),(_=D==null?void 0:D[(D==null?void 0:D.length)-1])!=null&&_.compData&&D[(D==null?void 0:D.length)-1].compData.push({key:(t=oe==null?void 0:oe.find(f=>{var i,y;return((i=f==null?void 0:f.key)==null?void 0:i.toUpperCase())===((y=C==null?void 0:C.key)==null?void 0:y.toUpperCase())}))==null?void 0:t.value,contents:C==null?void 0:C.value}))});let T=(c=u.cloneDeep(D))==null?void 0:c.map(C=>{var S;return C!=null&&C.compData&&(C.compData=(S=C==null?void 0:C.compData)==null?void 0:S.map(v=>{var g,_,t,f,i,y,L,F,P,b,I;if((v==null?void 0:v.key)==="formFlex")v.contents=((_=(g=v.contents)==null?void 0:g.replace(/[’]|[‘]|[']/g,""))==null?void 0:_.toUpperCase())!=="Vertical".toUpperCase();else if((v==null?void 0:v.key)==="groupContents")v.contents=(t=u.cloneDeep(v.contents))==null?void 0:t.map(A=>fo(u.cloneDeep(A)));else if(Array.isArray(v==null?void 0:v.contents))v.contents=Ze(v.contents);else if(((i=(f=v==null?void 0:v.contents)==null?void 0:f.trim())!=null&&i.startsWith("[")||(L=(y=v.contents)==null?void 0:y.trim())!=null&&L.startsWith("【"))&&((P=(F=v.contents)==null?void 0:F.trim())!=null&&P.endsWith("]")||(I=(b=v.contents)==null?void 0:b.trim())!=null&&I.endsWith("】")))v.contents=ho(u.cloneDeep(v.contents));else{if(!v.contents)return;v.contents=xl(u.cloneDeep(v.contents))}return v})),C});return T=(h=u.cloneDeep(T))==null?void 0:h.map(C=>{var S;return(C==null?void 0:C.comp)==="Group"&&(C.compData=(S=C.compData)==null?void 0:S.map(v=>{var _;let g=[];return(_=v.contents)==null||_.forEach(t=>{var f,i,y,L,F,P,b,I,A,x,J,w;if(se!=null&&se.find(U=>{var E,G,q;return((E=U==null?void 0:U.key)==null?void 0:E.toUpperCase())===((q=(G=Object.keys(t))==null?void 0:G[0])==null?void 0:q.toUpperCase())}))g.push({comp:(f=se==null?void 0:se.find(U=>{var E,G,q;return((E=U==null?void 0:U.key)==null?void 0:E.toUpperCase())===((q=(G=Object.keys(t))==null?void 0:G[0])==null?void 0:q.toUpperCase())}))==null?void 0:f.value,name:(y=(i=Object.values(t))==null?void 0:i[0])==null?void 0:y.replace(/[’]|[‘]|[']/g,""),compData:[]});else if(oe!=null&&oe.find(U=>{var E,G,q;return((E=U==null?void 0:U.key)==null?void 0:E.toUpperCase())===((q=(G=Object.keys(t))==null?void 0:G[0])==null?void 0:q.toUpperCase())})){if((g==null?void 0:g.length)===0)return;(L=g==null?void 0:g[(g==null?void 0:g.length)-1])!=null&&L.compData&&g[(g==null?void 0:g.length)-1].compData.push({key:(F=oe==null?void 0:oe.find(U=>{var E,G,q;return((E=U==null?void 0:U.key)==null?void 0:E.toUpperCase())===((q=(G=Object.keys(t))==null?void 0:G[0])==null?void 0:q.toUpperCase())}))==null?void 0:F.value,contents:(P=Object.values(t))==null?void 0:P[0]})}else if((I=(b=Object.keys(t))==null?void 0:b[0])!=null&&I.includes("$")){const U=(x=(A=Object.keys(u.cloneDeep(t)))==null?void 0:A[0])==null?void 0:x.split("$");g[(g==null?void 0:g.length)-1].compData.push({key:(J=oe==null?void 0:oe.find(E=>{var G,q;return((G=E==null?void 0:E.key)==null?void 0:G.toUpperCase())===((q=U==null?void 0:U[0])==null?void 0:q.toUpperCase())}))==null?void 0:J.value,contents:(w=Object.values(t))==null?void 0:w[0],selectLabel:U==null?void 0:U[1]})}return t}),v.contents=g,v})),C}),T}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},Co=(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)},He=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)?He(l):{label:l.trim()}):s.children=n.map(l=>Array.isArray(l)?He(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},Do=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(He(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]},xo=(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},Qe=(a,s)=>{const n=Do(u.cloneDeep(a));return xo(n,s)},Eo=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=>Qe([a],[]),Re=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=Eo(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:Qe(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:Re(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:Re(c)},{key:"enableWrap",contents:!0},{key:"formButton",contents:[{label:"查询"},{label:"重置"}]}],name:""}}return n}),s},_o=(a,s)=>{var c,h,d,k,B,D;const n=[],l=_l((h=(c=a==null?void 0:a.find(T=>T.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(T=>T.key==="tableColumns"))==null?void 0:d.value;r.length===1&&!(r!=null&&r[0].some(T=>Array.isArray(T)))?o=(k=r==null?void 0:r[0])==null?void 0:k.map(T=>({label:T})):o=Qe((B=a==null?void 0:a.find(T=>T.key==="tableColumns"))==null?void 0:B.value,l),n.push({key:"header",contents:o});const p=Co((D=a==null?void 0:a.find(T=>T.key==="tableContents"))==null?void 0:D.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}`}),Le=a=>{const s=a.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,'"$1",$2');return Vl(s).replace(/^"(.*)"$/,"$1")},No=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=No(s),s.push({label:"操作"}),[s]},wo=(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),$o=(a,s)=>{var l;let n=[];return(l=wo(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]},Bo=["方法体","输入","输出"],pl=e.ref(1),We=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}},ze=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},Vo=a=>/^[\x00-\x7F]*$/.test(a),To=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=ze(p))==null?void 0:h.map(d=>{var k;if(d.includes("{")){let B=(k=d.split(":"))==null?void 0:k[0];d=B.slice(1,B.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 Ze([...new Set(l)])},Xe=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=ze(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()},Ao=a=>{var o;if(!a)return;const s=Xe(a),n=(o=ze(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},Io=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,'"'))}}},So=a=>{var r;if(!a)return;const s=Xe(a);let n=[],l=[],o=[];return(r=ze(s))==null||r.forEach(p=>{var c;p.includes("[")?n.push(Io(p)):p.includes("{")&&(Vo((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'))):he.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]},Oo=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 k=`${h}/${d}`;s.push(k)}}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},qe=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},Fo=a=>!/\[[^\]]*\{[^\]]*\]/.test(a),Lo=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]},jo=a=>{var c,h,d,k,B,D,T,C,S,v,g;let s=[],n=[],l={},o=[],r=a.trim(),p=[];if(r.trim().includes("输入")&&r.trim().includes("输出")){let _=[],t=a.trim();t=u.cloneDeep(t).slice(1,u.cloneDeep(t).length-1);const f=/(\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})/g;(C=t.match(f))==null||C.forEach((i,y)=>{var P;const L=i;let F=[];(P=L.slice(1,L.length-1).replace(":","$:").split("$:"))==null||P.forEach(b=>{var I,A,x;if(Bo.find(J=>b.includes(J)))if(!b.includes("=="))F.push({key:"tableIndexColumn",contents:b.replaceAll("'","")});else{let J=[];const w=b.replaceAll("'","").split("==");J.push(w==null?void 0:w[0]),w!=null&&w[1].includes("[")?J.push(w==null?void 0:w[1].trim().slice(1,(w==null?void 0:w[1].length)-1).split(",")):J.push([w==null?void 0:w[1]]),F.push({key:"header",contents:[(A=(I=Bl([J]))==null?void 0:I[0])==null?void 0:A[0]]})}else{let J=b.trim().replaceAll(",",",").replaceAll("'",'"');if(y%3===0)J.slice(1,J.length-1).includes("[")?_.push({key:"tableIndex",contents:[{label:J}]}):_.push({key:"tableIndex",contents:[{label:J.slice(1,J.length-1)}]});else if((J==null?void 0:J[0])==="{"){let w=[];const U=J.slice(1,J.length-1).split(":");if(U.every(E=>he.IsJson(E.trim()))){w.push({key:"tableContentName",contents:"详情"});let E=[];U.forEach((G,q)=>{if(q===0){const M=JSON.parse(G).map(W=>({label:W}));M.push({label:"操作"}),E.push({key:"header",contents:M})}else E.push({key:"tableContents",contents:JSON.parse(G)})}),E.push({key:"extraButton",contents:[{label:"新增"}]}),E.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),w.push({comp:"Table",compData:E,name:""}),_.push({key:"tableContents",contents:[w]})}}else{let w=J;w.slice(1,w.length-1).includes("[")||w.slice(1,w.length-1).includes("{")?he.IsJson(cl(w.replace(/\s+/g,"")))&&((x=JSON.parse(cl(w.replace(/\s+/g,""))))==null||x.map(U=>{if(Array.isArray(U==null?void 0:U[0])){const E=[];E.push({key:"tableContentName",contents:"详情"});let G=[];U.forEach(q=>{q.forEach(M=>{var W,z;pl.value++,G.push({id:pl.value,key:(W=Object.keys(M))==null?void 0:W[0],value:(z=Object.values(M))==null?void 0:z[0],width:q.length})})}),E.push({comp:"Form",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:G}],name:""}),_.push({key:"tableContents",contents:[E]})}else _.push({key:"tableContents",contents:U==null?void 0:U[0]})})):_.push({key:"tableContents",contents:w.trim().slice(1,w.length-1)})}}}),_.push(F==null?void 0:F[0])}),p.push({key:"tableIndex",contents:(S=_==null?void 0:_.filter(i=>(i==null?void 0:i.key)==="tableIndex"))==null?void 0:S.map(i=>{var y;return(y=i.contents)==null?void 0:y[0]})}),p.push({key:"extraButton",contents:[{label:"新增"}]}),p.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),p.push({key:"tableIndexColumn",contents:(g=(v=_==null?void 0:_.filter(i=>(i==null?void 0:i.key)==="tableIndexColumn"))==null?void 0:v[0])==null?void 0:g.contents}),p.push({key:"header",contents:ul(_==null?void 0:_.filter(i=>(i==null?void 0:i.key)==="header"))}),p.push({key:"tableContents",contents:$o(_==null?void 0:_.filter(i=>(i==null?void 0:i.key)==="tableContents"),ul(_==null?void 0:_.filter(i=>(i==null?void 0:i.key)==="header")))})}else{const _=(c=r.trim().split(",$"))==null?void 0:c[0];_[0]==="["?r=_.slice(1,_.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=(k=(d=u.cloneDeep(r).trim())==null?void 0:d.slice(1,r.length).split("("))==null?void 0:k[0];let f;dl(r.slice(1,r.length-2)).length>1?f=dl(r.slice(1,r.length-2)):f=Lo(r),l.value=f}else he.IsJson("["+qe(r).replaceAll("'",'"')+"]")&&!Fo(qe(r).replaceAll("'",'"'))?(r=JSON.parse("["+qe(r).replaceAll("'",'"')+"]"),o=r):t=(D=(B=u.cloneDeep(r).split("}"))==null?void 0:B.filter(f=>f!==""))==null?void 0:D.map(f=>{let i=f;return i[0]===","?i=i.slice(2,i.length):i=i.slice(1,i.length),i});(T=u.cloneDeep(t))==null||T.forEach(f=>{var i,y,L,F,P,b,I,A,x,J,w,U,E,G,q;if(f.includes("==")){const M=(U=f==null?void 0:f.split(":"))==null?void 0:U[0].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"').replaceAll("'",'"'),W=(E=f==null?void 0:f.split(":"))==null?void 0:E[1].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"');if(he.IsJson(W.trim())?n.push(JSON.parse(W.trim())):n.push(JSON.parse(W.replaceAll("'",'"').trim())),M[0]!=="["){let z=[];he.IsJson("["+Le(M)+"]")?z.push(JSON.parse("["+Le(M)+"]")):he.IsJson("["+Le(M).replaceAll("==",",")+"]")&&z.push(JSON.parse("["+Le(M).replaceAll("==",",")+"]"));const ee=u.cloneDeep(z);ee.push(["操作"]),s.push(ee)}else{const z=(G=M.slice(1,M.length-1).replaceAll(",",",|"))==null?void 0:G.split("|"),ee=(q=Oo(z))==null?void 0:q.map(ce=>((ce==null?void 0:ce[ce.length-1])===","&&(ce=ce.slice(0,ce.length-1)),ce));let te=[];ee==null||ee.forEach(ce=>{var de,me,re,fe;let pe=[];pe.push((de=ce.split("=="))==null?void 0:de[0].trim().replace(/^"|"$/g,"")),((me=ce.split("=="))==null?void 0:me[1].trim()[0])==="["?pe.push(JSON.parse((re=ce.split("=="))==null?void 0:re[1].trim())):pe.push([JSON.parse((fe=ce.split("=="))==null?void 0:fe[1].trim())]),te.push(pe)});const ye=u.cloneDeep(te);ye.push(["操作"]),s.push(ye)}}else{if(he.IsJson((i=f==null?void 0:f.split(":"))==null?void 0:i[0].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"').replaceAll("'",'"'))){let M=JSON.parse((y=f==null?void 0:f.split(":"))==null?void 0:y[0].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"').replaceAll("'",'"'));Array.isArray(M)||(M=[M]),M.push("操作"),s.push(M)}he.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((b=f==null?void 0:f.split(":"))==null?void 0:b[1].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"'))):he.IsJson((J=(x=(A=(I=f==null?void 0:f.split(":"))==null?void 0:I[1])==null?void 0:A.replace(/^"|"$/g,"'"))==null?void 0:x.replaceAll("'",'"'))==null?void 0:J.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]},Uo=a=>{const s=[],n=Ao(a==null?void 0:a.key),l=So(a==null?void 0:a.key),o=jo(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],k=o==null?void 0:o[1],B=o==null?void 0:o[2],D=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}),D&&s.push({key:"extraButton",value:D}),(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}),(B==null?void 0:B.length)>0&&s.push({comp:"Table",compData:B,name:""}),(d==null?void 0:d.length)>0&&s.push({key:"tableColumns",value:d}),(k==null?void 0:k.length)>0&&s.push({key:"tableContents",value:k}),s},Jo=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},Po=(a,s)=>{const n=s.split("/");let l=[];return a==null||a.forEach(o=>{var c,h,d,k,B,D,T,C,S,v,g;const r=[],p=(h=(c=o.find(_=>_.key==="tableIndex"))==null?void 0:c.value)==null?void 0:h[0];if(p&&!p.some(_=>Array.isArray(_))){const _=(k=(d=o.find(t=>t.key==="tableColumns"))==null?void 0:d.value)==null?void 0:k[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(_)&&_.some(t=>Array.isArray(t))?r.push({key:"header",contents:Bl(_)}):r.push({key:"header",contents:Array.isArray(_)?_==null?void 0:_.map(t=>({label:t})):[_].map(t=>({label:t}))}),r.push({key:"tableContents",contents:Array.isArray(_)?(D=(B=o.find(t=>t.key==="tableContents"))==null?void 0:B.value)==null?void 0:D[0]:(S=(C=(T=o.find(t=>t.key==="tableContents"))==null?void 0:T.value)==null?void 0:C[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:Re([(v=o==null?void 0:o.find(t=>(t==null?void 0:t.key)==="formTop"))==null?void 0:v.value])},{key:"enableWrap",contents:!0},{key:"formButton",contents:[{label:"查询"},{label:"重置"}]}],name:""})}else p?(l.push({comp:"Table",name:"",compData:_o(o,n[n.length-1])}),o!=null&&o.find(_=>(_==null?void 0:_.key)==="formTop")&&l.push({comp:"FormTop",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:Re([(g=o==null?void 0:o.find(_=>(_==null?void 0:_.key)==="formTop"))==null?void 0:g.value])},{key:"enableWrap",contents:!0},{key:"formButton",contents:[{label:"查询"},{label:"重置"}]}],name:""})):o.some(_=>_.key==="extra")?l.push({comp:"calculator",name:"",compData:il(o)}):l.push(il(o))}),Jo(l)},Ro=(a,s)=>{var o,r;const n=a.map(p=>p.filter(c=>c.key!=="contentPath"));return{comp:"Group",compData:[{contents:Po(n,s),key:"groupContents"}],name:(r=(o=a[0])==null?void 0:o.find(p=>p.key==="contentPath"))==null?void 0:r.value}},Wo=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(Ro((p=u.cloneDeep(a))==null?void 0:p.filter(c=>c.find(h=>h.key==="contentPath"&&h.value===r)),r))}),s},zo=a=>{let s=[];s.push({comp:"Menu",compData:[{contents:To(u.cloneDeep(a)),key:"menuContents"}],name:""});const n=a.map(l=>Uo(l)).filter(l=>l.length!==0);return s=[...s,...Wo(n)],s},Mo=a=>{var s,n,l,o,r;try{const p=(l=We((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 zo(c)}catch{return!1}},je=e.ref(0),Ke=e.ref(0),Go=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+Ke.value]&&Ke.value++,l[r+Ke.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}},qo=a=>{var p;let s=[];const[n,l]=a.split(/=(.+)/),o=n.replace(/['"]/g,"").trim(),r=l.replace(/^['"]|['"]$/g,"");return(p=Object.values(Go(r)))==null||p.forEach(c=>{s.push(Il(c))}),{key:o,value:s}},Je=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(Je(n)&&!n.includes("$")||(n=n.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),Je(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=>{je.value++,o.push({id:je.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(Je(s)){const n=JSON.parse(s);return Object.entries(n).map(([l,o])=>(je.value++,{id:je.value,key:l,value:o===""?"":o,width:1}))}else return s}catch(s){return console.error("转换失败:",s),[]}},Ko=(a,s)=>{try{if(se!=null&&se.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(Je(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}},Ho=a=>({[a==null?void 0:a.key]:Ko(a==null?void 0:a.value,a==null?void 0:a.key)}),Zo=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=We((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(B=>{var T,C;let D=(C=(T=u.cloneDeep(B))==null?void 0:T.split("="))==null?void 0:C[0];return D!=null&&D.includes("GroupContents")?qo(B):Il(B)}),d=[];(o=u.cloneDeep(h))==null||o.forEach(B=>{var D,T,C,S,v;se!=null&&se.find(g=>{var _,t;return((_=g==null?void 0:g.key)==null?void 0:_.toUpperCase())===((t=B==null?void 0:B.key)==null?void 0:t.toUpperCase())})?d.push({comp:((D=se==null?void 0:se.find(g=>{var _,t;return((_=g==null?void 0:g.key)==null?void 0:_.toUpperCase())===((t=B==null?void 0:B.key)==null?void 0:t.toUpperCase())}))==null?void 0:D.value)??"",name:(T=B==null?void 0:B.value)==null?void 0:T.replace(/[’]|[‘]|[']/g,""),compData:[]}):oe!=null&&oe.find(g=>{var _,t;return((_=g==null?void 0:g.key)==null?void 0:_.toUpperCase())===((t=B==null?void 0:B.key)==null?void 0:t.toUpperCase())})&&((d==null?void 0:d.length)===0&&(C=B.key)!=null&&C.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:(v=oe==null?void 0:oe.find(g=>{var _,t;return((_=g==null?void 0:g.key)==null?void 0:_.toUpperCase())===((t=B==null?void 0:B.key)==null?void 0:t.toUpperCase())}))==null?void 0:v.value,contents:B==null?void 0:B.value}))}),console.log("newContents",d);let k=(r=u.cloneDeep(d))==null?void 0:r.map(B=>{var D;return B!=null&&B.compData&&(B.compData=(D=B==null?void 0:B.compData)==null?void 0:D.map(T=>{var C,S,v,g,_,t,f,i,y,L,F;if((T==null?void 0:T.key)==="formFlex")T.contents=((S=(C=T.contents)==null?void 0:C.replace(/[’]|[‘]|[']/g,""))==null?void 0:S.toUpperCase())!=="Vertical".toUpperCase();else if((T==null?void 0:T.key)==="groupContents")T.contents=(v=u.cloneDeep(T.contents))==null?void 0:v.map(P=>Ho(u.cloneDeep(P)));else if(((_=(g=T.contents)==null?void 0:g.trim())!=null&&_.startsWith("[")||(f=(t=T.contents)==null?void 0:t.trim())!=null&&f.startsWith("【"))&&((y=(i=T.contents)==null?void 0:i.trim())!=null&&y.endsWith("]")||(F=(L=T.contents)==null?void 0:L.trim())!=null&&F.endsWith("】")))T.contents=Zo(u.cloneDeep(T.contents));else{if(!T.contents)return;T.contents=Sl(u.cloneDeep(T.contents))}return T})),B});return k=(p=u.cloneDeep(k))==null?void 0:p.map(B=>{var D;return(B==null?void 0:B.comp)==="Group"&&(B.compData=(D=B.compData)==null?void 0:D.map(T=>{var S;let C=[];return(S=T.contents)==null||S.forEach(v=>{var g,_,t,f,i,y,L,F,P,b,I,A;if(se!=null&&se.find(x=>{var J,w,U;return((J=x==null?void 0:x.key)==null?void 0:J.toUpperCase())===((U=(w=Object.keys(v))==null?void 0:w[0])==null?void 0:U.toUpperCase())}))C.push({comp:(g=se==null?void 0:se.find(x=>{var J,w,U;return((J=x==null?void 0:x.key)==null?void 0:J.toUpperCase())===((U=(w=Object.keys(v))==null?void 0:w[0])==null?void 0:U.toUpperCase())}))==null?void 0:g.value,name:(t=(_=Object.values(v))==null?void 0:_[0])==null?void 0:t.replace(/[’]|[‘]|[']/g,""),compData:[]});else if(oe!=null&&oe.find(x=>{var J,w,U;return((J=x==null?void 0:x.key)==null?void 0:J.toUpperCase())===((U=(w=Object.keys(v))==null?void 0:w[0])==null?void 0:U.toUpperCase())})){if((C==null?void 0:C.length)===0)return;(f=C==null?void 0:C[(C==null?void 0:C.length)-1])!=null&&f.compData&&C[(C==null?void 0:C.length)-1].compData.push({key:(i=oe==null?void 0:oe.find(x=>{var J,w,U;return((J=x==null?void 0:x.key)==null?void 0:J.toUpperCase())===((U=(w=Object.keys(v))==null?void 0:w[0])==null?void 0:U.toUpperCase())}))==null?void 0:i.value,contents:(y=Object.values(v))==null?void 0:y[0]})}else if((F=(L=Object.keys(v))==null?void 0:L[0])!=null&&F.includes("$")){const x=(b=(P=Object.keys(u.cloneDeep(v)))==null?void 0:P[0])==null?void 0:b.split("$");C[(C==null?void 0:C.length)-1].compData.push({key:(I=oe==null?void 0:oe.find(J=>{var w,U;return((w=J==null?void 0:J.key)==null?void 0:w.toUpperCase())===((U=x==null?void 0:x[0])==null?void 0:U.toUpperCase())}))==null?void 0:I.value,contents:(A=Object.values(v))==null?void 0:A[0],selectLabel:x==null?void 0:x[1]})}return v}),T.contents=C,T})),B}),k}catch{return!1}},Qo=a=>Ol(a),Xo=a=>!!Ol(a),Ie=e.ref(0),Yo=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[Ie.value]=[],Ie.value++),n[Ie.value-1].push(l),((p=Object.keys(n))==null?void 0:p.length)===(l==null?void 0:l.width)&&(n[Ie.value]=[],Ie.value++),n},{});exports.arrayToNumberArray=Yo;exports.contentTransArray=We;exports.expandContentStringToJson=Mo;exports.expandNewStringToJson=bo;exports.expandStringToJson=Qo;exports.getComponent=Dl;exports.getContentValue=Xe;exports.isExpandStringToJson=Xo;exports.menuArray=Ze;exports.parseGroupValue=Al;exports.slotContent=so;
|
|
@@ -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-C_QsXP3i.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-BTszhcxL.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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),l=require("./index-
|
|
1
|
+
"use strict";const t=require("vue"),l=require("./index-BTszhcxL.cjs"),Nt=require("./typescript-PERVJsDy.cjs"),H=require("./cloneDeep-CCTIOi71.cjs"),it=require("./index.vue_vue_type_script_setup_true_lang-hFv-AT4_.cjs");function It(e){return e}function xt(e,n,o){switch(o.length){case 0:return e.call(n);case 1:return e.call(n,o[0]);case 2:return e.call(n,o[0],o[1]);case 3:return e.call(n,o[0],o[1],o[2])}return e.apply(n,o)}var Mt=800,At=16,Vt=Date.now;function Rt(e){var n=0,o=0;return function(){var r=Vt(),a=At-(r-o);if(o=r,a>0){if(++n>=Mt)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}function Lt(e){return function(){return e}}var zt=H.defineProperty?function(e,n){return H.defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:Lt(n),writable:!0})}:It,Ot=Rt(zt),_e=Math.max;function Pt(e,n,o){return n=_e(n===void 0?e.length-1:n,0),function(){for(var r=arguments,a=-1,s=_e(r.length-n,0),i=Array(s);++a<s;)i[a]=r[n+a];a=-1;for(var u=Array(n+1);++a<n;)u[a]=r[a];return u[n]=o(i),xt(e,this,u)}}var Ue=l.Symbol?l.Symbol.isConcatSpreadable:void 0;function Ft(e){return l.isArray(e)||H.isArguments(e)||!!(Ue&&e&&e[Ue])}function Ht(e,n,o,r,a){var s=-1,i=e.length;for(o||(o=Ft),a||(a=[]);++s<i;){var u=e[s];o(u)?H.arrayPush(a,u):a[a.length]=u}return a}function Dt(e){var n=e==null?0:e.length;return n?Ht(e):[]}function $t(e){return Ot(Pt(e,void 0,Dt),e+"")}function _t(e,n){return e!=null&&n in Object(e)}function Ut(e,n,o){n=l.castPath(n,e);for(var r=-1,a=n.length,s=!1;++r<a;){var i=l.toKey(n[r]);if(!(s=e!=null&&o(e,i)))break;e=e[i]}return s||++r!=a?s:(a=e==null?0:e.length,!!a&&H.isLength(a)&&H.isIndex(i,a)&&(l.isArray(e)||H.isArguments(e)))}function Kt(e,n){return e!=null&&Ut(e,n,_t)}function Wt(e,n,o,r){if(!l.isObject(e))return e;n=l.castPath(n,e);for(var a=-1,s=n.length,i=s-1,u=e;u!=null&&++a<s;){var p=l.toKey(n[a]),d=o;if(p==="__proto__"||p==="constructor"||p==="prototype")return e;if(a!=i){var m=u[p];d=void 0,d===void 0&&(d=l.isObject(m)?m:H.isIndex(n[a+1])?[]:{})}H.assignValue(u,p,d),u=u[p]}return e}function Yt(e,n,o){for(var r=-1,a=n.length,s={};++r<a;){var i=n[r],u=l.baseGet(e,i);o(u,i)&&Wt(s,l.castPath(i,e),u)}return s}function Gt(e,n){return Yt(e,n,function(o,r){return Kt(e,r)})}var jt=$t(function(e,n){return e==null?{}:Gt(e,n)});const Ee="update:modelValue",Ke="change",We="input";let re;const qt=e=>{var n;if(!l.isClient)return 0;if(re!==void 0)return re;const o=document.createElement("div");o.className=`${e}-scrollbar__wrap`,o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const r=o.offsetWidth;o.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",o.appendChild(a);const s=a.offsetWidth;return(n=o.parentNode)==null||n.removeChild(o),re=r-s,re},Xt=()=>l.isClient&&/firefox/i.test(window.navigator.userAgent);let M;const Jt={height:"0",visibility:"hidden",overflow:Xt()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},Zt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Qt(e){const n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing"),r=Number.parseFloat(n.getPropertyValue("padding-bottom"))+Number.parseFloat(n.getPropertyValue("padding-top")),a=Number.parseFloat(n.getPropertyValue("border-bottom-width"))+Number.parseFloat(n.getPropertyValue("border-top-width"));return{contextStyle:Zt.map(i=>[i,n.getPropertyValue(i)]),paddingSize:r,borderSize:a,boxSizing:o}}function Ye(e,n=1,o){var r;M||(M=document.createElement("textarea"),document.body.appendChild(M));const{paddingSize:a,borderSize:s,boxSizing:i,contextStyle:u}=Qt(e);u.forEach(([v,w])=>M==null?void 0:M.style.setProperty(v,w)),Object.entries(Jt).forEach(([v,w])=>M==null?void 0:M.style.setProperty(v,w,"important")),M.value=e.value||e.placeholder||"";let p=M.scrollHeight;const d={};i==="border-box"?p=p+s:i==="content-box"&&(p=p-a),M.value="";const m=M.scrollHeight-a;if(l.isNumber(n)){let v=m*n;i==="border-box"&&(v=v+a+s),p=Math.max(v,p),d.minHeight=`${v}px`}if(l.isNumber(o)){let v=m*o;i==="border-box"&&(v=v+a+s),p=Math.min(v,p)}return d.height=`${p}px`,(r=M.parentNode)==null||r.removeChild(M),M=void 0,d}const en=l.buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),tn=e=>jt(en,e),nn=l.buildProps({id:{type:String,default:void 0},size:l.useSizeProp,disabled:Boolean,modelValue:{type:l.definePropType([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:l.definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:l.iconPropType},prefixIcon:{type:l.iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:l.definePropType([Object,Array,String]),default:()=>Nt.mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...tn(["ariaLabel"])}),on={[Ee]:e=>l.isString(e),input:e=>l.isString(e),change:e=>l.isString(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},rn=["class","style"],an=/^on[A-Z]/,sn=(e={})=>{const{excludeListeners:n=!1,excludeKeys:o}=e,r=t.computed(()=>((o==null?void 0:o.value)||[]).concat(rn)),a=t.getCurrentInstance();return a?t.computed(()=>{var s;return l.fromPairs(Object.entries((s=a.proxy)==null?void 0:s.$attrs).filter(([i])=>!r.value.includes(i)&&!(n&&an.test(i))))}):(l.debugWarn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),t.computed(()=>({})))},Be=Symbol("formContextKey"),lt=Symbol("formItemContextKey"),Ce={prefix:Math.floor(Math.random()*1e4),current:0},ln=Symbol("elIdInjection"),un=()=>t.getCurrentInstance()?t.inject(ln,Ce):Ce,we=e=>{const n=un();!l.isClient&&n===Ce&&l.debugWarn("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
2
2
|
usage: app.provide(ID_INJECTION_KEY, {
|
|
3
3
|
prefix: number,
|
|
4
4
|
current: number,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createElementBlock as L, openBlock as j, createElementVNode as Q, renderSlot as d, defineComponent as Z, ref as h, resolveComponent as u, createVNode as e, withCtx as i, reactive as T, watch as N, unref as l, toDisplayString as x, createTextVNode as v } from "vue";
|
|
2
2
|
import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { u as AA, l as EA } from "./index-
|
|
3
|
+
import { u as AA, l as EA } from "./index-C_QsXP3i.js";
|
|
4
4
|
import { useRouter as IA } from "vue-router";
|
|
5
|
-
import { u as gA } from "./login-
|
|
6
|
-
import { s as CA, p as BA, g as b } from "./index-
|
|
7
|
-
import { v as QA } from "./index-
|
|
5
|
+
import { u as gA } from "./login-fr8WlB8t.js";
|
|
6
|
+
import { s as CA, p as BA, g as b } from "./index-BPz3IHyD.js";
|
|
7
|
+
import { v as QA } from "./index-ZJhNp_ic.js";
|
|
8
8
|
import { d as iA } from "./crypto-BRyGpjGR.js";
|
|
9
|
-
import { E as K } from "./menu-
|
|
9
|
+
import { E as K } from "./menu-C6rqOvt-.js";
|
|
10
10
|
const oA = {}, wA = { class: "header-wrapper" }, RA = { class: "header-horizontal" }, nA = { class: "header-logo" }, eA = { class: "header-cTitle" }, cA = { class: "header-horizontal" }, sA = { class: "header-eTitle" };
|
|
11
11
|
function JA(t, Y) {
|
|
12
12
|
return j(), L("div", wA, [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as t, reactive as o, onMounted as r, createElementBlock as n, openBlock as s, createVNode as a } from "vue";
|
|
2
|
-
import { s as c } from "./index-
|
|
3
|
-
import { s as m } from "./index-
|
|
4
|
-
import { S as i } from "./index-
|
|
5
|
-
import { g as l } from "./index-
|
|
2
|
+
import { s as c } from "./index-rUeYTZ80.js";
|
|
3
|
+
import { s as m } from "./index-C8hMS2Pa.js";
|
|
4
|
+
import { S as i } from "./index-CnLLjZHN.js";
|
|
5
|
+
import { g as l } from "./index-BuhOzhkS.js";
|
|
6
6
|
import { _ as p } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const d = { class: "role-wrapper" }, _ = /* @__PURE__ */ t({
|
|
8
8
|
__name: "index",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as c } from "./index.vue_vue_type_style_index_0_scoped_11a5120d_lang-
|
|
1
|
+
import { _ as c } from "./index.vue_vue_type_style_index_0_scoped_11a5120d_lang-BpvISHMO.js";
|
|
2
2
|
import { resolveComponent as o, createBlock as r, openBlock as a, withCtx as i, createVNode as u, createElementVNode as m, toDisplayString as p } from "vue";
|
|
3
3
|
import { _ as l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
function d(e, M, _, f, C, k) {
|