ss-component-new 1.1.255 → 1.1.256
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-NRuqpA_a.js +4978 -0
- package/dist/array-uS_jzZMI.cjs +7 -0
- package/dist/{cloneDeep-Dyt41_L-.js → cloneDeep-D65qCr1M.js} +1 -1
- package/dist/{cloneDeep-C-pGUQKf.cjs → cloneDeep-DpFtWtui.cjs} +1 -1
- package/dist/{index-D2mqkg4c.cjs → index-5143SE2R.cjs} +1 -1
- package/dist/index-7eRz67Nr.js +908 -0
- package/dist/{index-CXnqXm6c.cjs → index-7hpm5RMu.cjs} +1 -1
- package/dist/index-9qLLF6Sz.cjs +1 -0
- package/dist/{index-DV6L8VsR.js → index-B1hAxVvT.js} +5 -5
- package/dist/index-B6QzxKzK.js +2115 -0
- package/dist/{index-BJGqjruN.js → index-BFWs_38B.js} +1 -1
- package/dist/{index-DY1Iv1Nz.js → index-BLY3jSMo.js} +8 -8
- package/dist/index-BLZ2LAOD.cjs +1 -0
- package/dist/{index-ZO1MQu0A.js → index-BOHz7nwR.js} +4 -4
- package/dist/index-BTruFGQP.cjs +1 -0
- package/dist/{index-ChBbyPw-.cjs → index-BZFuXIEF.cjs} +1 -1
- package/dist/index-BZRyqDKA.cjs +1 -0
- package/dist/index-Bb3Boi4X.js +373 -0
- package/dist/index-BgvNGJEj.cjs +1 -0
- package/dist/{index-VEIBSb0L.cjs → index-BjXTv-yp.cjs} +1 -1
- package/dist/{index-ChLhaUgK.cjs → index-BjoY1ow9.cjs} +175 -175
- package/dist/{index-Bvff3Rjc.js → index-BrNejk6v.js} +5 -5
- package/dist/{index-4QOp-GFW.js → index-BsDpqg06.js} +7 -7
- package/dist/{index-BPhMb7pK.js → index-BsqfcSII.js} +4 -4
- package/dist/{index-ByA8EBvo.cjs → index-CH5mx9VZ.cjs} +1 -1
- package/dist/index-CInyuIT4.cjs +1 -0
- package/dist/index-CRmbzY0-.cjs +1 -0
- package/dist/index-CSFgUZmi.cjs +9 -0
- package/dist/{index-BCY2xvgA.js → index-CVisVgQj.js} +1 -1
- package/dist/{index-Bb_UeGKJ.cjs → index-C_lPyJRy.cjs} +1 -1
- package/dist/{index-BqgOQWUB.js → index-Cs2XSpjM.js} +6 -6
- package/dist/{index-D_zly77U.js → index-Cs6aYNpY.js} +1985 -1932
- package/dist/index-CudxvfIs.js +33 -0
- package/dist/{index-D5Bz4nyQ.js → index-CwGC8R8R.js} +1 -1
- package/dist/{index-DsP7FB21.cjs → index-D4b6fLCT.cjs} +1 -1
- package/dist/index-DAwFQtgR.cjs +6 -0
- package/dist/{index-D2pc-BzQ.cjs → index-DG-rX-h9.cjs} +1 -1
- package/dist/{index-AmZEXNoQ.cjs → index-DKlDs6rr.cjs} +1 -1
- package/dist/{index-ChC7cQXw.cjs → index-DRO-doj3.cjs} +1 -1
- package/dist/{index-XqdyrkBW.js → index-DSSzfbXz.js} +8 -7
- package/dist/{index-exmBUjmZ.js → index-Ddt-py_9.js} +5 -5
- package/dist/index-DfM5skGF.cjs +1 -0
- package/dist/{index-CJz4osvs.js → index-DjljbsvQ.js} +6 -6
- package/dist/{index-Hiw-v6tJ.cjs → index-DmhJL6si.cjs} +1 -1
- package/dist/{index-CgreBJdF.js → index-DoVdmhVZ.js} +21 -20
- package/dist/{index-4zv-tITd.cjs → index-DordXHzi.cjs} +1 -1
- package/dist/{index-DmOEedex.js → index-GcvQB1OB.js} +13 -12
- package/dist/{index-DVpKjSNf.cjs → index-OGxpX9cx.cjs} +1 -1
- package/dist/index-S5bHuqsW.cjs +1 -0
- package/dist/{index-Bs2mNVJb.js → index-X2R-1WGH.js} +3 -3
- package/dist/{index-C9zbvQ_u.js → index-XU2dA5Uv.js} +24 -23
- package/dist/{index-DokJCYVc.cjs → index-jXB4NUd1.cjs} +1 -1
- package/dist/{index-BZCF6V6l.js → index-nfabzKkp.js} +4 -4
- package/dist/{index-DFaF-8_G.js → index-w1UtzHv-.js} +14 -17
- package/dist/index-yxASh3FK.js +3761 -0
- package/dist/{index-DVg2yzki.js → index-zRUxy31r.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BJKLFe1B.cjs → index.vue_vue_type_script_setup_true_lang-CIP77JiD.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DKt1jWSZ.js → index.vue_vue_type_script_setup_true_lang-Tw6PfjMa.js} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-CO9vJuxe.js +607 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-DwrbQWhT.cjs +1 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Br85-Gf0.js +304 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_11a5120d_lang-CaalWbFo.cjs +1 -0
- package/dist/{login-l8Wv_G2i.js → login-Cvjr869W.js} +6 -6
- package/dist/login-hlCYwdtY.cjs +1 -0
- package/dist/{main-WNNH9wBa.cjs → main-Cc3OSRwO.cjs} +1 -1
- package/dist/{main-AjMVz5uU.js → main-DNxdz1id.js} +6 -6
- package/dist/menu-BChIacAp.cjs +11 -0
- package/dist/menu-BjsF_u0O.js +4867 -0
- package/dist/{modelComp-CxFffZnZ.js → modelComp-BTVOfrd2.js} +1 -1
- package/dist/{modelComp-CyktectM.cjs → modelComp-BxHtQcEE.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +16 -16
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/package.json +1 -1
- package/dist/array-D0ksMxBm.js +0 -4732
- package/dist/array-FnDBAqr_.cjs +0 -7
- package/dist/index-1L58FxXE.cjs +0 -1
- package/dist/index-BHBz_g9I.cjs +0 -1
- package/dist/index-BKvrNIq2.js +0 -4199
- package/dist/index-BLMAsu2L.cjs +0 -1
- package/dist/index-BT1bqIxy.js +0 -29
- package/dist/index-Bb-62WPF.cjs +0 -1
- package/dist/index-BeYOMEs2.js +0 -674
- package/dist/index-BipikeGR.js +0 -199
- package/dist/index-BjjXJSlm.cjs +0 -1
- package/dist/index-CNw33JR-.js +0 -371
- package/dist/index-DALSlEkV.cjs +0 -1
- package/dist/index-DRIDbmGM.cjs +0 -1
- package/dist/index-DeUj3yRd.cjs +0 -9
- package/dist/index-Dxbc5WoF.cjs +0 -1
- package/dist/index-HW8r5PRa.cjs +0 -1
- package/dist/index-JN1a_LH1.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_11a5120d_lang-B7wukF06.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_11a5120d_lang-BJ_xZq3T.js +0 -304
- package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-ByetdKK8.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-CUy9QkFH.js +0 -908
- package/dist/login-Bps4AQ46.cjs +0 -1
- package/dist/menu-BEvMDEbJ.js +0 -6783
- package/dist/menu-Cj-UKXED.cjs +0 -16
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";const ye=require("./index-BjoY1ow9.cjs"),e=require("vue"),be=require("./index-DAwFQtgR.cjs"),Y=require("./index-CSFgUZmi.cjs"),p=require("./cloneDeep-DpFtWtui.cjs"),de=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),fe=require("./menu-BChIacAp.cjs"),we=require("./index-DordXHzi.cjs"),Fl=require("./modelComp-BxHtQcEE.cjs"),al=require("./index-BjXTv-yp.cjs"),Ll=require("./index-C31XRLFj.cjs"),jl=a=>a.match(/\((.*)\)/)[1],Ul=a=>a==null?void 0:a.map(n=>(n=ml(n),n)),Jl=async()=>{var n,l,o,t,u,c,h,y,k,w,D,I;let a;const s=await be.getInsofDataApi({key:{type:"structure",pageKey:"menu",systemKey:sessionStorage.getItem("systemKey")}});return(c=(u=(t=(o=(l=(n=s.data.result)==null?void 0:n[0])==null?void 0:l.value)==null?void 0:o.pageData)==null?void 0:t.compData)==null?void 0:u[0])!=null&&c.contents&&(a=Ul((I=(D=(w=(k=(y=(h=s.data.result)==null?void 0:h[0])==null?void 0:y.value)==null?void 0:k.pageData)==null?void 0:w.compData)==null?void 0:D[0])==null?void 0:I.contents)),a},Rl=a=>{var n,l,o,t;return{label:a==null?void 0:a.name,value:a==null?void 0:a.name,children:(t=ye.getColumnChild((o=(l=(n=a==null?void 0:a.compData)==null?void 0:n.find(u=>(u==null?void 0:u.key)==="header"))==null?void 0:l.contents)==null?void 0:o[0]))==null?void 0:t.map(u=>({label:u==null?void 0:u.label,value:u==null?void 0:u.label}))}},ol=async a=>{var o,t,u,c;let s="";(o=p.cloneDeep(a))==null||o.forEach(h=>{s=s===""?s+h:s+"/"+h});const n=await be.getInsofDataApi({key:{type:"structure",pageKey:s,systemKey:sessionStorage.getItem("systemKey"),parentTable:""}});let l=[];return((t=n==null?void 0:n.data)==null?void 0:t.type)==="success"&&(l=(c=(u=n.data.result)==null?void 0:u.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=>Rl(h))),l},Se=[{key:"单选",value:"Select"},{key:"日期",value:"Date"},{key:"长文本",value:"TextArea"},{key:"上传",value:"Upload"}],Ae=[{label:"输入框",value:"Input"},{label:"单选框",value:"Select"},{label:"日期选择器",value:"Date"},{label:"长文本",value:"TextArea"},{label:"附件选择器",value:"Upload"}],Pl=[{key:"label",label:"标签名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ae},{key:"originalContent",label:"初始值",type:"Input"},{key:"value",label:"固定值",type:"Input"}],Ml=async()=>{const a=await Jl();return[{key:"label",label:"标签名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ae},{key:"originalContent",label:"初始值",type:"Select"},{key:"contents",label:"选项值",type:"Input"},{key:"menuSelect",label:"菜单选项",type:"cascader",options:a},{key:"groupSelect",label:"组信息选项",type:"cascader",options:[]}]},Wl=e.computed(async()=>await Ml()),zl=[{key:"label",label:"标签名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ae},{key:"originalContent",label:"初始值",type:"Date"}],Gl=[{key:"label",label:"标签名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ae},{key:"originalContent",label:"初始值",type:"Input"}],ql=[{key:"label",label:"标签名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ae}],G=[{key:"Input",value:Pl},{key:"Select",value:Wl},{key:"Date",value:zl},{key:"TextArea",value:Gl},{key:"Upload",value:ql}],Kl=[{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:Kl},{key:"background",label:"颜色",type:"Color"}],Oe=a=>{var n,l,o,t,u;let s=p.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=(u=(t=(o=(l=p.cloneDeep(s))==null?void 0:l.find(h=>(h==null?void 0:h.name)==="选项值"))==null?void 0:o.value)==null?void 0:t.split(","))==null?void 0:u.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},ml=a=>{var o;let s={};const n=(o=a==null?void 0:a.filter(t=>!Array.isArray(t)))==null?void 0:o[0];s.label=n,s.value=n;const l=a==null?void 0:a.filter(t=>Array.isArray(t));return l&&(l==null?void 0:l.length)>0&&(s.children=l==null?void 0:l.map(t=>ml(t))),s},Hl={class:"form-content"},Zl={__name:"index",props:{formRules:Object,itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number},emits:["change","contentChange"],setup(a,{emit:s}){const n=a,l=s,o=e.ref([]),t=e.ref(!1),u=e.ref([]),c=ye.useFormToTableComp(be.pinia),h=e.ref(!1),y=e.ref(),k=D=>{var f,v,r,d;const I=(v=(f=p.cloneDeep(n.itemData))==null?void 0:f.find(i=>(i==null?void 0:i.key)==="formContent"))==null?void 0:v.contents,b=p.cloneDeep(D.content);let S={};b&&((r=Object.values(b))==null?void 0:r.length)>0&&((d=Object.values(b))==null||d.forEach((i,g)=>{S[I[g].key]=i}));const m={content:S,index:n==null?void 0:n.index,buttonName:D==null?void 0:D.buttonName};l("change",m)},w=D=>{var S,m;if(!D)return;if(((S=Object.values(p.cloneDeep(D)))==null?void 0:S.length)>0){const f=(m=Object.values(p.cloneDeep(D)))==null?void 0:m.map(r=>r);let v="";f==null||f.forEach(r=>{r!==""&&r!==void 0&&(v=v===""?r:v+"/"+r)}),c.setSelectArray(f),c.setSelectString(v)}const I=p.cloneDeep(n.itemData),b=I==null?void 0:I.map(f=>{var v;return(f==null?void 0:f.key)==="formContent"&&((v=f.contents)==null||v.map((r,d)=>{var i,g,O,L,R,K,_,$,x,T,B,U,W,E,z,M,Z,J,se;return r.type=r!=null&&r.type?r.type:(L=(O=(g=(i=r==null?void 0:r.key)==null?void 0:i.split("$"))==null?void 0:g[1])==null?void 0:O.split("("))!=null&&L[0]?(R=Se==null?void 0:Se.find(te=>{var ie,ce,me,he;return(te==null?void 0:te.key)===((he=(me=(ce=(ie=r==null?void 0:r.key)==null?void 0:ie.split("$"))==null?void 0:ce[1])==null?void 0:me.split("("))==null?void 0:he[0])}))==null?void 0:R.value:"Input",r.options=r!=null&&r.options?r.options:(($=(_=(K=r==null?void 0:r.key)==null?void 0:K.split("$"))==null?void 0:_[1])==null?void 0:$.length)>0?(U=(B=jl((T=(x=r==null?void 0:r.key)==null?void 0:x.split("$"))==null?void 0:T[1]))==null?void 0:B.split(","))==null?void 0:U.map(te=>({label:te,value:te})):[],(W=r==null?void 0:r.key)!=null&&W.includes("$")&&(r.key=(z=(E=r==null?void 0:r.key)==null?void 0:E.split("$"))==null?void 0:z[0]),r.value=Array.isArray((M=Object.values(D))==null?void 0:M[d])?(J=(Z=Object.values(D))==null?void 0:Z[d])==null?void 0:J[0]:(se=Object.values(D))==null?void 0:se[d],r})),f});l("contentChange",{contents:b,index:n.index})};return e.watch(()=>n.itemData,()=>{var f,v,r,d,i,g,O,L,R,K,_;const D=(f=p.cloneDeep(n.itemData))==null?void 0:f.find($=>($==null?void 0:$.key)==="formContent"),I=(v=p.cloneDeep(n.itemData))==null?void 0:v.find($=>($==null?void 0:$.key)==="formButton"),b=(r=p.cloneDeep(n.itemData))==null?void 0:r.find($=>($==null?void 0:$.key)==="formFlex"),S=(d=p.cloneDeep(n.itemData))==null?void 0:d.find($=>($==null?void 0:$.key)==="formWrap"),m=(i=p.cloneDeep(n.itemData))==null?void 0:i.find($=>($==null?void 0:$.key)==="enableWrap");if((S==null?void 0:S.contents)==="纵向"?t.value=!1:t.value=!0,h.value=(m==null?void 0:m.contents)===void 0?!1:m==null?void 0:m.contents,y.value=typeof(b==null?void 0:b.contents)!="boolean"?!(!(b!=null&&b.contents)===""||((g=b==null?void 0:b.contents)==null?void 0:g.toUpperCase())==="VERTICAL"):b==null?void 0:b.contents,((O=D==null?void 0:D.contents)==null?void 0:O.length)>0&&Array.isArray(D==null?void 0:D.contents)){const $=[];(L=D==null?void 0:D.contents)==null||L.forEach((B,U)=>{var W,E,z,M,Z,J,se,te,ie,ce,me,he;if((B==null?void 0:B.label)!==""){let ve=(B==null?void 0:B.label)??(B==null?void 0:B.key)??"",re=(B==null?void 0:B.type)??"",ue=(B==null?void 0:B.options)??[];if((W=B==null?void 0:B.key)!=null&&W.includes("$")&&(ve=(E=p.cloneDeep(B==null?void 0:B.key).split("$"))==null?void 0:E[0],((M=(z=p.cloneDeep(B==null?void 0:B.key).split("$"))==null?void 0:z[1])==null?void 0:M.length)>0)){const[Ne,Ee]=(J=(Z=p.cloneDeep(B==null?void 0:B.key).split("$"))==null?void 0:Z[1])==null?void 0:J.split(/[()]/);re=((se=Se.find(_e=>(_e==null?void 0:_e.key)===Ne))==null?void 0:se.value)??"",((te=Ee==null?void 0:Ee.split(","))==null?void 0:te.length)>0&&(ue=(ie=Ee==null?void 0:Ee.split(","))==null?void 0:ie.map(_e=>({label:_e,value:_e})))}const le=(me=(ce=B==null?void 0:B.contents)==null?void 0:ce.split(","))==null?void 0:me.map(Ne=>({label:Ne,value:Ne}));$.push({label:ve??"",name:"t"+U,type:re===""?"Input":re,value:B!=null&&B.originalContent&&(B==null?void 0:B.originalContent)!==""?B.originalContent:B!=null&&B.value?B.value:(ue==null?void 0:ue.length)>0?(he=ue==null?void 0:ue[0])==null?void 0:he.value:(B==null?void 0:B.value)??"",id:(B==null?void 0:B.id)??U,contents:(le==null?void 0:le.length)>0?le:ue??[],width:(B==null?void 0:B.width)??1,config:B==null?void 0:B.config})}});const x=(R=p.cloneDeep($))==null?void 0:R.map(B=>B.value);let T="";x==null||x.forEach(B=>{B!==""&&B!==void 0&&(T=T===""?B:T+"/"+B)}),c.setSelectArray(x),c.setSelectString(T),o.value=$}else o.value=[];if(((K=I==null?void 0:I.contents)==null?void 0:K.length)>0){const $=[];(_=I==null?void 0:I.contents)==null||_.forEach((x,T)=>{(x==null?void 0:x.label)!==""&&$.push({label:(x==null?void 0:x.label)??"",id:(x==null?void 0:x.id)??T,type:(x==null?void 0:x.type)??"",background:x==null?void 0:x.background})}),u.value=$}else u.value=[]},{deep:!0,immediate:!0}),(D,I)=>(e.openBlock(),e.createElementBlock("div",Hl,[(e.openBlock(),e.createBlock(Y.ssForm,{rowContents:o.value,formRules:a.formRules,buttonValue:u.value,isRowFlex:y.value,isEnableWrap:h.value,onOnButtonClick:k,onChange:w,isButtonRow:t.value,key:n.itemData},null,8,["rowContents","formRules","buttonValue","isRowFlex","isEnableWrap","isButtonRow"]))]))}},sl=de._export_sfc(Zl,[["__scopeId","data-v-c70efda7"]]),Je=e.ref(0),hl=a=>{var s;return!a||(a==null?void 0:a.length)===0?[]:(s=p.cloneDeep(a))==null?void 0:s.map(l=>(Je.value++,l={label:(l==null?void 0:l.label)??"",prop:(l==null?void 0:l.label)==="操作"?"operate":l==null?void 0:l.prop,width:l!=null&&l.width?parseInt(l.width):"",fixed:(l==null?void 0:l.fixed)??void 0,sortable:(l==null?void 0:l.sortable)??!1,align:(l==null?void 0:l.align)??"center",showOverflowTooltip:(l==null?void 0:l.showOverflowTooltip)??!0,isNotDrag:(l==null?void 0:l.isNotDrag)??!1,isEditCol:(l==null?void 0:l.isEditCol)??!1,isOperate:(l==null?void 0:l.isOperate)??!1,id:(l==null?void 0:l.id)??Je.value,children:hl(l==null?void 0:l.children)},l))},Ql=a=>{var n;return(n=p.cloneDeep(a))==null?void 0:n.map(l=>(Je.value++,l={label:(l==null?void 0:l.label)??"",prop:(l==null?void 0:l.label)==="操作"?"operate":l==null?void 0:l.prop,width:l!=null&&l.width?parseInt(l.width):"",fixed:(l==null?void 0:l.fixed)??void 0,sortable:(l==null?void 0:l.sortable)??!1,align:(l==null?void 0:l.align)??"center",showOverflowTooltip:(l==null?void 0:l.showOverflowTooltip)??!0,isNotDrag:(l==null?void 0:l.isNotDrag)??!1,isEditCol:(l==null?void 0:l.isEditCol)??!1,isOperate:(l==null?void 0:l.isOperate)??!1,id:(l==null?void 0:l.id)??Je.value,children:hl(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=p.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=p.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=p.cloneDeep(a))==null?void 0:n.map(o=>{var t;return(o==null?void 0:o.id)===((t=s==null?void 0:s.contents)==null?void 0:t.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=p.cloneDeep(a))==null?void 0:n.map(o=>((o==null?void 0:o.id)===(s==null?void 0:s.id)&&(o!=null&&o.children||(o.children=[]),o.children.push(s.contents)),o)):(a=a==null?void 0:a.map(l=>(l.children=gl(l==null?void 0:l.children,s),l)),a)},Q=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"width",label:"宽度",type:"Input"},{key:"sortable",label:"是否支持排序",type:"Switch"},{key:"align",label:"文本所在位置",type:"Radio",options:[{label:"left",value:"左"},{label:"center",value:"中"},{label:"right",value:"右"}]},{key:"fixed",label:"是否固定列",type:"Switch"}],Xl=[{label:"view",value:"查看"},{label:"fix",value:"修改"},{label:"delete",value:"删除"}],Yl=[{label:"add",value:"新增"}],Be=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Yl},{key:"background",label:"按钮背景色",type:"Color"}],Ve=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Xl},{key:"textColor",label:"按钮颜色",type:"Color"}],bl=fe.defineStore("modelTableComp",{state:()=>({tableIndex:0}),actions:{setTableIndex(a){this.tableIndex=a}}}),en={class:"table-header-child"},ln={class:"table-header-child-main"},nn={class:"table-header-child-content"},an={class:"table-header-child-content-item"},on={class:"fix-button"},sn={key:0},tn={class:"form-content"},rn={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:s}){const n=a,l=s,o=e.ref(!1),t=e.ref(""),u=bl(be.pinia),{tableIndex:c}=fe.storeToRefs(u);e.ref(0);const h=e.ref(""),y=e.ref([]),k=e.ref([]),w=r=>{var i;o.value=!0;let d=[];Q==null||Q.forEach(g=>{let O=p.cloneDeep(c.value)+1;u.setTableIndex(O),d.push({label:g==null?void 0:g.label,name:g==null?void 0:g.label,type:g.type,value:r[g.key],id:c.value,contents:g==null?void 0:g.options})}),r!=null&&r.children&&((i=r==null?void 0:r.children)==null?void 0:i.length)>0&&d.push({children:r==null?void 0:r.children,isFormColHidden:!0}),h.value=r==null?void 0:r.id,y.value=d,k.value=d},D=r=>{l("fixChange",p.cloneDeep(r))},I=r=>{l("deleteChange",p.cloneDeep(r))},b=r=>{o.value=!0;let d=[];Q==null||Q.forEach(i=>{let g=p.cloneDeep(c.value)+1;u.setTableIndex(g),d.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})}),t.value=r==null?void 0:r.id,y.value=d,k.value=d},S=r=>{let d=p.cloneDeep(k.value);d=d==null?void 0:d.map(i=>(i.children||(i.value=r==null?void 0:r[i.name]),i)),k.value=d},m=()=>{var d,i;y.value=k.value;let r={};if(h.value!=="")r.id=h.value,(d=y.value)==null||d.forEach(g=>{const O=Q==null?void 0:Q.find(L=>(L==null?void 0:L.label)===(g==null?void 0:g.label));O?r[O.key]=g.value:g!=null&&g.children&&g.children.length>0&&(r.children=g.children)}),o.value=!1,l("fixChange",{contents:p.cloneDeep(r),id:t.value,type:"fix"});else{let g=p.cloneDeep(c.value)+1;u.setTableIndex(g),r.id="id"+c.value,(i=y.value)==null||i.forEach(O=>{const L=Q==null?void 0:Q.find(R=>(R==null?void 0:R.label)===(O==null?void 0:O.label));L?r[L.key]=O.value:O!=null&&O.children&&O.children.length>0&&(r.children=O.children)}),o.value=!1,l("fixChange",{contents:p.cloneDeep(r),id:t.value,type:"add"})}h.value="",y.value=[],k.value=[]},f=()=>{o.value=!1,h.value="",t.value="",y.value=[],k.value=[]},v=r=>{we.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{l("deleteChange",r),fe.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(r,d)=>{const i=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",en,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n==null?void 0:n.tableChildContents,(g,O)=>(e.openBlock(),e.createElementBlock("div",ln,[e.createElementVNode("div",nn,[e.createElementVNode("div",an,e.toDisplayString(g.label),1),e.createElementVNode("div",on,[e.createVNode(i,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:L=>b(g)},null,8,["onClick"]),e.createVNode(i,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:L=>w(g)},null,8,["onClick"]),e.createVNode(i,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:L=>v(g)},null,8,["onClick"])])]),g!=null&&g.children&&g.children.length>0?(e.openBlock(),e.createElementBlock("div",sn,[e.createVNode(Cl,{tableChildContents:g==null?void 0:g.children,onDeleteChange:I,onFixChange:D},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(Y.ssDialog,{visible:o.value,onBeforeDestroy:f,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",tn,[(e.openBlock(),e.createBlock(Y.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:S},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:f,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:m},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},cn=de._export_sfc(rn,[["__scopeId","data-v-e0fef72d"]]),un={class:"table-header-child"},pn={class:"table-header-child-main"},dn={class:"table-header-child-content"},fn={class:"table-header-child-content-item"},mn={class:"fix-button"},hn={key:0},yn={class:"form-content"},vn={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:s}){const n=a,l=s,o=e.ref(!1),t=e.ref(""),u=bl(be.pinia),{tableIndex:c}=fe.storeToRefs(u),h=e.ref(""),y=e.ref([]),k=e.ref([]),w=r=>{l("fixChange",p.cloneDeep(r))},D=r=>{var i;o.value=!0;let d=[];Q==null||Q.forEach(g=>{let O=p.cloneDeep(c.value)+1;u.setTableIndex(O),d.push({label:g==null?void 0:g.label,name:g==null?void 0:g.label,type:g.type,value:r[g.key],id:c.value,contents:g==null?void 0:g.options})}),r!=null&&r.children&&((i=r==null?void 0:r.children)==null?void 0:i.length)>0&&d.push({children:r==null?void 0:r.children,isFormColHidden:!0}),h.value=r==null?void 0:r.id,y.value=d,k.value=d},I=r=>{o.value=!0;let d=[];Q==null||Q.forEach(i=>{let g=p.cloneDeep(c.value)+1;u.setTableIndex(g),d.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})}),t.value=r==null?void 0:r.id,y.value=d,k.value=d},b=r=>{let d=p.cloneDeep(k.value);d=d==null?void 0:d.map(i=>(i.children||(i.value=r==null?void 0:r[i.name]),i)),k.value=d},S=()=>{var d,i;y.value=k.value;let r={};if(h.value!=="")r.id=h.value,(d=y.value)==null||d.forEach(g=>{const O=Q==null?void 0:Q.find(L=>(L==null?void 0:L.label)===(g==null?void 0:g.label));O?r[O.key]=g.value:g!=null&&g.children&&g.children.length>0&&(r.children=g.children)}),o.value=!1,l("fixChange",{contents:p.cloneDeep(r),id:t.value,type:"fix"});else{let g=p.cloneDeep(c.value)+1;u.setTableIndex(g),r.id="idChild"+c.value,(i=y.value)==null||i.forEach(O=>{const L=Q==null?void 0:Q.find(R=>(R==null?void 0:R.label)===(O==null?void 0:O.label));L?r[L.key]=O.value:O!=null&&O.children&&O.children.length>0&&(r.children=O.children)}),o.value=!1,l("fixChange",{contents:p.cloneDeep(r),id:t.value,type:"add"})}h.value="",y.value=[],k.value=[]},m=()=>{o.value=!1,h.value="",t.value="",y.value=[],k.value=[]},f=r=>{we.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{l("deleteChange",r),fe.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},v=r=>{l("deleteChange",r)};return(r,d)=>{const i=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",un,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n==null?void 0:n.tableChildContents,(g,O)=>(e.openBlock(),e.createElementBlock("div",pn,[e.createElementVNode("div",dn,[e.createElementVNode("div",fn,e.toDisplayString(g.label),1),e.createElementVNode("div",mn,[e.createVNode(i,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:L=>I(g)},null,8,["onClick"]),e.createVNode(i,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:L=>D(g)},null,8,["onClick"]),e.createVNode(i,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:L=>f(g)},null,8,["onClick"])])]),g!=null&&g.children&&g.children.length>0?(e.openBlock(),e.createElementBlock("div",hn,[e.createVNode(cn,{tableChildContents:g==null?void 0:g.children,onDeleteChange:v,onFixChange:w},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(Y.ssDialog,{visible:o.value,onBeforeDestroy:m,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",yn,[(e.openBlock(),e.createBlock(Y.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:b},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:S},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},Cl=de._export_sfc(vn,[["__scopeId","data-v-cc311a5f"]]),kn={class:"table-operate-content"},gn={class:"table-operate-item"},bn={class:"operate-title"},Cn={class:"operate-content"},Dn={class:"fix-content"},_n={class:"fix-content-label"},En={class:"fix-button"},xn={key:0},Nn={class:"operate-title"},$n={class:"operate-content"},Bn={class:"fix-content"},Vn={class:"fix-content-label"},wn={class:"fix-button"},Tn={class:"operate-title"},In={class:"operate-content"},An={class:"fix-content"},Sn={class:"fix-content-label"},On={class:"fix-button"},Fn={class:"operate-title"},Ln={class:"operate-content"},jn={class:"fix-content"},Un={class:"fix-content-label"},Jn={class:"fix-button"},Rn={class:"operate-content"},Pn={style:{display:"flex","justify-content":"space-between"}},Mn={class:"form-content"},Wn={class:"form-content"},zn={class:"form-content"},Gn={class:"form-content"},qn={__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([]),t=e.ref(!1),u=e.ref(!1),c=e.ref([]),h=e.ref(!1),y=e.ref([]),k=e.ref(!1),w=e.ref([]),D=e.ref(""),I=e.ref(""),b=e.ref([]),S=e.ref([]),m=e.ref([]),f=e.ref([]),v=e.ref(!1),r=e.ref([]),d=e.ref([]),i=e.ref(0),g=e.ref([]),O=e.ref([]),L=e.ref([]),R=()=>{v.value=!0;let C=[];Be==null||Be.forEach(N=>{i.value++,C.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})}),r.value=C,d.value=C},K=()=>{var N,A;u.value=!0;let C=[];(A=(N=G==null?void 0:G.find(V=>(V==null?void 0:V.key)==="Input"))==null?void 0:N.value)==null||A.forEach(V=>{i.value++,C.push({label:V==null?void 0:V.label,name:V==null?void 0:V.label,type:V.type,value:(V==null?void 0:V.label)==="类型"?"Input":"",id:i.value,contents:V==null?void 0:V.options})}),g.value=C,O.value=C},_=async C=>{var N,A,V,H,q,pe,P;if((C==null?void 0:C.类型)!==((A=(N=O.value)==null?void 0:N.find(j=>(j==null?void 0:j.label)==="类型"))==null?void 0:A.value)){let j=[],ne=await((H=(V=G==null?void 0:G.find(ee=>(ee==null?void 0:ee.key)===((C==null?void 0:C.类型)===""?"Input":C==null?void 0:C.类型)))==null?void 0:V.value)==null?void 0:H.value)?await((P=(pe=G==null?void 0:G.find(ee=>(ee==null?void 0:ee.key)===((C==null?void 0:C.类型)===""?"Input":C==null?void 0:C.类型)))==null?void 0:pe.value)==null?void 0:P.value):(q=G==null?void 0:G.find(ee=>(ee==null?void 0:ee.key)===((C==null?void 0:C.类型)===""?"Input":C==null?void 0:C.类型)))==null?void 0:q.value;ne==null||ne.forEach(ee=>{i.value++,j.push({label:ee==null?void 0:ee.label,name:ee==null?void 0:ee.label,type:ee.type,value:(C==null?void 0:C[ee.label])??"",id:i.value,contents:ee==null?void 0:ee.options})}),O.value=j,g.value=j}else{let j=p.cloneDeep(g.value);j=j==null?void 0:j.map(ne=>(ne.value=C==null?void 0:C[ne.name],ne)),O.value=j}},$=async C=>{var V,H,q,pe,P;u.value=!0;let N=[];const A=await((H=(V=G==null?void 0:G.find(j=>(j==null?void 0:j.key)===((C==null?void 0:C.type)===""?"Input":C==null?void 0:C.type)))==null?void 0:V.value)==null?void 0:H.value)?await((P=(pe=G==null?void 0:G.find(j=>(j==null?void 0:j.key)===((C==null?void 0:C.type)===""?"Input":C==null?void 0:C.type)))==null?void 0:pe.value)==null?void 0:P.value):(q=G==null?void 0:G.find(j=>(j==null?void 0:j.key)===((C==null?void 0:C.type)===""?"Input":C==null?void 0:C.type)))==null?void 0:q.value;A==null||A.forEach(j=>{i.value++,N.push({label:j==null?void 0:j.label,name:j==null?void 0:j.label,type:j.type,value:(j==null?void 0:j.label)==="类型"&&C[j.key]===""?"Input":C[j.key],id:i.value,contents:j==null?void 0:j.options})}),D.value=C==null?void 0:C.id,g.value=N,O.value=N},x=C=>{we.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var N,A;L.value=(N=p.cloneDeep(L.value))==null?void 0:N.filter(V=>(V==null?void 0:V.id)!==(C==null?void 0:C.id)),l("change",(A=p.cloneDeep(n.originalItemContents))==null?void 0:A.map(V=>((V==null?void 0:V.key)==="tableToForm"&&(V.contents=L.value),V))),fe.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},T=()=>{u.value=!1,g.value=[],D.value=""},B=async()=>{var V,H,q,pe,P,j,ne,ee;g.value=O.value;let C={};D.value!==""?C.id=D.value:(i.value++,C.id="id"+i.value);let N=await((H=(V=G==null?void 0:G.find(X=>{var ke,Ce;return(X==null?void 0:X.key)===(((Ce=(ke=g.value)==null?void 0:ke.find(xe=>(xe==null?void 0:xe.label)==="类型"))==null?void 0:Ce.value)??"label")}))==null?void 0:V.value)==null?void 0:H.value)??((q=G==null?void 0:G.find(X=>{var ke,Ce;return(X==null?void 0:X.key)===(((Ce=(ke=g.value)==null?void 0:ke.find(xe=>(xe==null?void 0:xe.label)==="类型"))==null?void 0:Ce.value)??"label")}))==null?void 0:q.value);if((pe=g.value)==null||pe.forEach(X=>{const ke=N==null?void 0:N.find(Ce=>(Ce==null?void 0:Ce.label)===(X==null?void 0:X.label));ke&&(C[ke.key]=X.value)}),C.name=C.label,(P=L.value)!=null&&P.find(X=>X.id===C.id))L.value=(j=L.value)==null?void 0:j.map(X=>(X.id===C.id&&(X=C),X));else{let X=p.cloneDeep(L.value);L.value||(L.value=[]),X.push(C),L.value=X}L.value=L.value.map(({id:X,...ke})=>ke),u.value=!1,D.value="";let A=p.cloneDeep(n.originalItemContents);(ne=p.cloneDeep(n.originalItemContents))!=null&&ne.find(X=>(X==null?void 0:X.key)==="tableToForm")?A=(ee=p.cloneDeep(n.originalItemContents))==null?void 0:ee.map(X=>((X==null?void 0:X.key)==="tableToForm"&&(X.contents=L.value),X)):A.push({key:"tableToForm",contents:L.value}),l("change",A)},U=C=>{v.value=!0;let N=[];Be==null||Be.forEach(A=>{i.value++,N.push({label:A==null?void 0:A.label,name:A==null?void 0:A.label,type:A.type,value:C[A.key],id:i.value,contents:A==null?void 0:A.options})}),D.value=C==null?void 0:C.id,r.value=N,d.value=N};e.watch(()=>k.value,()=>{var N,A;let C=p.cloneDeep(n.originalItemContents);(N=p.cloneDeep(n.originalItemContents))!=null&&N.find(V=>(V==null?void 0:V.key)==="page")?C=(A=p.cloneDeep(n.originalItemContents))==null?void 0:A.map(V=>((V==null?void 0:V.key)==="page"&&(V.contents=k.value),V)):C.push({key:"page",contents:k.value}),l("change",C)},{deep:!0});const W=C=>{we.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var N,A;S.value=(N=p.cloneDeep(S.value))==null?void 0:N.filter(V=>(V==null?void 0:V.id)!==(C==null?void 0:C.id)),l("change",(A=p.cloneDeep(n.originalItemContents))==null?void 0:A.map(V=>((V==null?void 0:V.key)==="extraButton"&&(V.contents=S.value),V))),fe.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},E=()=>{var A,V,H,q,pe;r.value=d.value;let C={};if(D.value!==""?C.id=D.value:(i.value++,C.id="id"+i.value),(A=r.value)==null||A.forEach(P=>{const j=Be==null?void 0:Be.find(ne=>(ne==null?void 0:ne.label)===(P==null?void 0:P.label));j?C[j.key]=P.value:P!=null&&P.children&&P.children.length>0&&(C.children=P.children)}),(V=S.value)!=null&&V.find(P=>P.id===C.id))S.value=(H=S.value)==null?void 0:H.map(P=>(P.id===C.id&&(P=C),P));else{let P=p.cloneDeep(S.value);P.push(C),S.value=P}v.value=!1,D.value="";let N=p.cloneDeep(n.originalItemContents);(q=p.cloneDeep(n.originalItemContents))!=null&&q.find(P=>(P==null?void 0:P.key)==="extraButton")?N=(pe=p.cloneDeep(n.originalItemContents))==null?void 0:pe.map(P=>((P==null?void 0:P.key)==="extraButton"&&(P.contents=S.value),P)):N.push({key:"extraButton",contents:S.value}),l("change",N)},z=C=>{let N=p.cloneDeep(d.value);N=N==null?void 0:N.map(A=>(A.children||(A.value=C==null?void 0:C[A.name]),A)),d.value=N},M=()=>{v.value=!1,r.value=[],D.value=""},Z=C=>{h.value=!0;let N=[];Ve==null||Ve.forEach(A=>{i.value++,N.push({label:A==null?void 0:A.label,name:A==null?void 0:A.label,type:A.type,value:C[A.key],id:i.value,contents:A==null?void 0:A.options})}),D.value=C==null?void 0:C.id,m.value=N,f.value=N},J=C=>{we.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var N,A;b.value=(N=p.cloneDeep(b.value))==null?void 0:N.filter(V=>(V==null?void 0:V.id)!==(C==null?void 0:C.id)),l("change",(A=p.cloneDeep(n.originalItemContents))==null?void 0:A.map(V=>((V==null?void 0:V.key)==="rowButton"&&(V.contents=b.value),V))),fe.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},se=()=>{t.value=!0;let C=[];Q==null||Q.forEach(N=>{i.value++,C.push({label:N==null?void 0:N.label,name:N==null?void 0:N.label,type:N.type,value:"",id:i.value,contents:N==null?void 0:N.options})}),y.value=C,w.value=C},te=()=>{h.value=!0;let C=[];Ve==null||Ve.forEach(N=>{i.value++,C.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})}),m.value=C,f.value=C},ie=C=>{let N=p.cloneDeep(f.value);N=N==null?void 0:N.map(A=>(A.children||(A.value=C==null?void 0:C[A.name]),A)),f.value=N},ce=()=>{var A,V,H,q,pe;m.value=f.value;let C={};if(D.value!==""?C.id=D.value:(i.value++,C.id="id"+i.value),(A=m.value)==null||A.forEach(P=>{const j=Ve==null?void 0:Ve.find(ne=>(ne==null?void 0:ne.label)===(P==null?void 0:P.label));j?C[j.key]=P.value:P!=null&&P.children&&P.children.length>0&&(C.children=P.children)}),(V=b.value)!=null&&V.find(P=>P.id===C.id))b.value=(H=b.value)==null?void 0:H.map(P=>(P.id===C.id&&(P=C),P));else{let P=p.cloneDeep(b.value);P.push(C),b.value=P}h.value=!1,D.value="";let N=p.cloneDeep(n.originalItemContents);(q=p.cloneDeep(n.originalItemContents))!=null&&q.find(P=>(P==null?void 0:P.key)==="rowButton")?N=(pe=p.cloneDeep(n.originalItemContents))==null?void 0:pe.map(P=>((P==null?void 0:P.key)==="rowButton"&&(P.contents=b.value),P)):N.push({key:"rowButton",contents:b.value}),l("change",N)},me=()=>{h.value=!1,D.value="",f.value=[],m.value=[]},he=C=>{t.value=!0;let N=[];Q==null||Q.forEach(A=>{i.value++,N.push({label:A==null?void 0:A.label,name:A==null?void 0:A.label,type:A.type,value:"",id:i.value,contents:A==null?void 0:A.options})}),y.value=N,I.value=C==null?void 0:C.id,w.value=N},ve=C=>{var N;c.value=yl(p.cloneDeep(c.value),C==null?void 0:C.id),l("change",(N=p.cloneDeep(n.originalItemContents))==null?void 0:N.map(A=>{var V;return(A==null?void 0:A.key)==="header"&&(A.contents=(V=c.value)!=null&&V.some(H=>H==null?void 0:H.children)?[c.value]:c.value),A}))},re=C=>{var A,V,H;C.type==="fix"?C.id!==""?c.value=kl(c.value,C):c.value=vl(c.value,C==null?void 0:C.contents):c.value=gl(c.value,C),c.value=(A=c.value)!=null&&A.some(q=>q==null?void 0:q.children)?[c.value]:c.value,D.value="";let N=p.cloneDeep(n.originalItemContents);(V=p.cloneDeep(n.originalItemContents))!=null&&V.find(q=>(q==null?void 0:q.key)==="header")?N=(H=p.cloneDeep(n.originalItemContents))==null?void 0:H.map(q=>((q==null?void 0:q.key)==="header"&&(q.contents=c.value),q)):N.push({key:"header",contents:c.value}),l("change",N)},ue=C=>{var A;t.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:C[V.key],id:i.value,contents:V==null?void 0:V.options})}),C!=null&&C.children&&((A=C==null?void 0:C.children)==null?void 0:A.length)>0&&N.push({children:C==null?void 0:C.children,isFormColHidden:!0}),D.value=C==null?void 0:C.id,I.value="",y.value=N,w.value=N},le=C=>{let N=p.cloneDeep(w.value);N=N==null?void 0:N.map(A=>(A.children||(A.value=C==null?void 0:C[A.name]),A)),w.value=N},Ne=()=>{t.value=!1,D.value="",I.value="",w.value=[]},Ee=()=>{var A,V,H,q,pe,P;y.value=w.value;let C={};if(D.value!==""?C.id=D.value:(i.value++,C.id="id"+i.value),(A=y.value)==null||A.forEach(j=>{const ne=Q==null?void 0:Q.find(ee=>(ee==null?void 0:ee.label)===(j==null?void 0:j.label));ne?C[ne.key]=j.value:j!=null&&j.children&&j.children.length>0&&(C.children=j.children)}),(V=c.value)!=null&&V.find(j=>j.id===C.id))c.value=(H=c.value)==null?void 0:H.map(j=>(j.id===C.id&&(j=C),j));else{let j=p.cloneDeep(c.value)??[];I.value===""?j.push(C):j=j==null?void 0:j.map(ne=>(ne.id===I.value&&(ne.children||(ne.children=[]),ne.children.push(C)),ne)),c.value=j}c.value=(q=c.value)!=null&&q.some(j=>j==null?void 0:j.children)?[c.value]:c.value,t.value=!1,D.value="",I.value="";let N=p.cloneDeep(n.originalItemContents);(pe=p.cloneDeep(n.originalItemContents))!=null&&pe.find(j=>(j==null?void 0:j.key)==="header")?N=(P=p.cloneDeep(n.originalItemContents))==null?void 0:P.map(j=>((j==null?void 0:j.key)==="header"&&(j.contents=c.value),j)):N.push({key:"header",contents:c.value}),l("change",N)},_e=C=>{we.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var N,A;c.value=(N=p.cloneDeep(c.value))==null?void 0:N.filter(V=>(V==null?void 0:V.id)!==(C==null?void 0:C.id)),l("change",(A=p.cloneDeep(n.originalItemContents))==null?void 0:A.map(V=>{var H;return(V==null?void 0:V.key)==="header"&&(V.contents=(H=c.value)!=null&&H.some(q=>q==null?void 0:q.children)?[c.value]:c.value),V})),fe.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return e.watch(()=>n.originalItemContents,()=>{var C,N,A,V,H,q,pe,P,j,ne,ee,X,ke,Ce,xe,Ye,el,ll,nl;if(!(!n.originalItemContents||n.originalItemContents.length===0))if(o.value=p.cloneDeep(n.originalItemContents),c.value=(N=(C=o.value)==null?void 0:C.find(F=>(F==null?void 0:F.key)==="header"))==null?void 0:N.contents,b.value=(V=(A=o.value)==null?void 0:A.find(F=>(F==null?void 0:F.key)==="rowButton"))==null?void 0:V.contents,S.value=(q=(H=o.value)==null?void 0:H.find(F=>(F==null?void 0:F.key)==="extraButton"))==null?void 0:q.contents,k.value=(P=(pe=o.value)==null?void 0:pe.find(F=>(F==null?void 0:F.key)==="page"))!=null&&P.contents?!!((ne=(j=o.value)==null?void 0:j.find(F=>(F==null?void 0:F.key)==="page"))!=null&&ne.contents):!1,L.value=(X=(ee=o.value)==null?void 0:ee.find(F=>(F==null?void 0:F.key)==="tableToForm"))==null?void 0:X.contents,c.value=(ke=c.value)==null?void 0:ke.map((F,De)=>(Array.isArray(F)?F=Ql(F):F={label:(F==null?void 0:F.label)??"",prop:(F==null?void 0:F.label)==="操作"?"operate":F==null?void 0:F.prop,width:F!=null&&F.width?parseInt(F.width):"",fixed:(F==null?void 0:F.fixed)??void 0,sortable:(F==null?void 0:F.sortable)??!1,align:(F==null?void 0:F.align)??"center",showOverflowTooltip:(F==null?void 0:F.showOverflowTooltip)??!0,isNotDrag:(F==null?void 0:F.isNotDrag)??!1,isEditCol:(F==null?void 0:F.isEditCol)??!1,isOperate:(F==null?void 0:F.isOperate)??!1,id:(F==null?void 0:F.id)??De},F)),c.value=(Ce=c.value)!=null&&Ce.every(F=>Array.isArray(F))?(xe=c.value)==null?void 0:xe[0]:c.value,b.value=(Ye=b.value)==null?void 0:Ye.map((F,De)=>F={label:(F==null?void 0:F.label)??"",type:(F==null?void 0:F.type)??"",textColor:(F==null?void 0:F.textColor)??"#000000",id:(F==null?void 0:F.id)??De}),S.value=(el=S.value)==null?void 0:el.map((F,De)=>F={label:(F==null?void 0:F.label)??"",type:(F==null?void 0:F.type)??"",background:(F==null?void 0:F.background)??"var(--ssComponent-primary-color)",id:(F==null?void 0:F.id)??De}),L.value)L.value=(nl=L.value)==null?void 0:nl.map(F=>{i.value++;let De=F;return De.id=i.value,De});else{let F=[];const De=(ll=ye.getColumnChild(p.cloneDeep(c.value)))==null?void 0:ll.filter(ge=>(ge==null?void 0:ge.prop)!=="operate");De==null||De.forEach(ge=>{i.value++,F.push({label:ge==null?void 0:ge.label,name:ge==null?void 0:ge.label,type:"Input",value:"",id:i.value,contents:ge==null?void 0:ge.options})}),L.value=F}},{deep:!0,immediate:!0}),(C,N)=>{const A=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",kn,[e.createElementVNode("div",gn,[e.createElementVNode("div",bn,[N[2]||(N[2]=e.createElementVNode("div",null,e.toDisplayString("表头"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:se},[e.createVNode(A,{name:"Plus",class:"icon-size"}),N[1]||(N[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",Cn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(V,H)=>(e.openBlock(),e.createElementBlock("div",{key:H},[e.createElementVNode("div",Dn,[e.createElementVNode("div",_n,e.toDisplayString(V==null?void 0:V.label),1),e.createElementVNode("div",En,[e.createVNode(A,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>he(V)},null,8,["onClick"]),e.createVNode(A,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>ue(V)},null,8,["onClick"]),e.createVNode(A,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>_e(V)},null,8,["onClick"])])]),V!=null&&V.children&&V.children.length>0?(e.openBlock(),e.createElementBlock("div",xn,[e.createVNode(Cl,{tableChildContents:V==null?void 0:V.children,onDeleteChange:ve,onFixChange:re},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",Nn,[N[4]||(N[4]=e.createElementVNode("div",null,e.toDisplayString("行内按钮"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:te},[e.createVNode(A,{name:"Plus",class:"icon-size"}),N[3]||(N[3]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",$n,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(V,H)=>(e.openBlock(),e.createElementBlock("div",{key:H},[e.createElementVNode("div",Bn,[e.createElementVNode("div",Vn,e.toDisplayString(V==null?void 0:V.label),1),e.createElementVNode("div",wn,[e.createVNode(A,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:q=>Z(V)},null,8,["onClick"]),e.createVNode(A,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>J(V)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",Tn,[N[6]||(N[6]=e.createElementVNode("div",null,e.toDisplayString("表外按钮"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:R},[e.createVNode(A,{name:"Plus",class:"icon-size"}),N[5]||(N[5]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",In,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(V,H)=>(e.openBlock(),e.createElementBlock("div",{key:H},[e.createElementVNode("div",An,[e.createElementVNode("div",Sn,e.toDisplayString(V==null?void 0:V.label),1),e.createElementVNode("div",On,[e.createVNode(A,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:q=>U(V)},null,8,["onClick"]),e.createVNode(A,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>W(V)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",Fn,[N[8]||(N[8]=e.createElementVNode("div",null,e.toDisplayString("表格弹框字段设置"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:K},[e.createVNode(A,{name:"Plus",class:"icon-size"}),N[7]||(N[7]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",Ln,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.value,(V,H)=>(e.openBlock(),e.createElementBlock("div",{key:H},[e.createElementVNode("div",jn,[e.createElementVNode("div",Un,e.toDisplayString(V==null?void 0:V.label),1),e.createElementVNode("div",Jn,[e.createVNode(A,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:q=>$(V)},null,8,["onClick"]),e.createVNode(A,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:q=>x(V)},null,8,["onClick"])])])]))),128))]),N[10]||(N[10]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("分页"))],-1)),e.createElementVNode("div",Rn,[e.createElementVNode("div",Pn,[N[9]||(N[9]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否分页"),-1)),e.createVNode(Y._sfc_main$1,{modelValue:k.value,"onUpdate:modelValue":N[0]||(N[0]=V=>k.value=V)},null,8,["modelValue"])])])]),e.createVNode(Y.ssDialog,{visible:t.value,onBeforeDestroy:Ne,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Mn,[(e.openBlock(),e.createBlock(Y.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:le},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:Ne,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:Ee},e.toDisplayString("确认"))])]),_:1},8,["visible"]),e.createVNode(Y.ssDialog,{visible:h.value,onBeforeDestroy:me,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Wn,[(e.openBlock(),e.createBlock(Y.ssForm,{rowContents:m.value,key:m.value,isEnableWrap:!0,onChange:ie},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:me,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:ce},e.toDisplayString("确认"))])]),_:1},8,["visible"]),e.createVNode(Y.ssDialog,{visible:v.value,onBeforeDestroy:M,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",zn,[(e.openBlock(),e.createBlock(Y.ssForm,{rowContents:r.value,key:r.value,isEnableWrap:!0,onChange:z},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:E},e.toDisplayString("确认"))])]),_:1},8,["visible"]),e.createVNode(Y.ssDialog,{visible:u.value,onBeforeDestroy:T,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Gn,[(e.openBlock(),e.createBlock(Y.ssForm,{rowContents:g.value,key:g.value,isEnableWrap:!0,onChange:_},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:T,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:B},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},Kn=de._export_sfc(qn,[["__scopeId","data-v-14ead5ff"]]),Hn={class:"form-operate-content"},Zn={class:"form-operate-item"},Qn={class:"operate-title"},Xn={class:"operate-content"},Yn={class:"fix-content"},ea={class:"fix-button"},la={class:"operate-title"},na={class:"operate-content"},aa={class:"fix-content"},oa={class:"fix-button"},sa={style:{display:"flex","justify-content":"space-between"}},ta={class:"form-content"},ra={class:"form-content"},ca={__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),t=e.ref([]),u=e.ref([]),c=e.ref(!1),h=e.ref([]),y=e.ref([]),k=e.ref(""),w=e.ref(!1),D=e.ref(0),I=e.ref([]),b=e.ref([]),S=async _=>{var T,B,U,W;o.value=!0;let $=[];const x=await((B=(T=G==null?void 0:G.find(E=>(E==null?void 0:E.key)===((_==null?void 0:_.type)===""?"Input":_==null?void 0:_.type)))==null?void 0:T.value)==null?void 0:B.value)??((U=G==null?void 0:G.find(E=>(E==null?void 0:E.key)===((_==null?void 0:_.type)===""?"Input":_==null?void 0:_.type)))==null?void 0:U.value);if(x==null||x.forEach(E=>{D.value++,$.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)==="类型"&&_[E.key]===""?"Input":_[E.key],id:D.value,contents:E==null?void 0:E.options})}),_!=null&&_.menuSelect&&((W=_==null?void 0:_.menuSelect)==null?void 0:W.length)>0){const E=await ol(_==null?void 0:_.menuSelect);$=$==null?void 0:$.map(z=>((z==null?void 0:z.name)==="组信息选项"&&(z.contents=E),z))}k.value=_==null?void 0:_.id,t.value=Oe($),u.value=Oe($)},m=_=>{c.value=!0;let $=[];$e==null||$e.forEach(x=>{D.value++,$.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)==="类型"&&_[x.key]===""?"normal":_[x.key],id:D.value,contents:x==null?void 0:x.options})}),I.value=$,b.value=$,k.value=_==null?void 0:_.id};e.watch(()=>w.value,()=>{var $,x;let _=p.cloneDeep(n.originalItemContents);($=p.cloneDeep(n.originalItemContents))!=null&&$.find(T=>(T==null?void 0:T.key)==="enableWrap")?_=(x=p.cloneDeep(n.originalItemContents))==null?void 0:x.map(T=>((T==null?void 0:T.key)==="enableWrap"&&(T.contents=!w.value),T)):_.push({key:"enableWrap",contents:!w.value}),l("change",_)},{deep:!0});const f=()=>{var x,T,B,U,W;I.value=b.value;let _={};if(k.value!==""?_.id=k.value:(D.value++,_.id="id"+D.value),(x=I.value)==null||x.forEach(E=>{const z=$e==null?void 0:$e.find(M=>(M==null?void 0:M.label)===(E==null?void 0:E.label));z&&(_[z.key]=E.value)}),(T=h.value)!=null&&T.find(E=>E.id===_.id))h.value=(B=h.value)==null?void 0:B.map(E=>(E.id===_.id&&(E=_),E));else{let E=p.cloneDeep(h.value);h.value||(h.value=[]),E.push(_),h.value=E}c.value=!1,k.value="";let $=p.cloneDeep(n.originalItemContents);(U=p.cloneDeep(n.originalItemContents))!=null&&U.find(E=>(E==null?void 0:E.key)==="formButton")?$=(W=p.cloneDeep(n.originalItemContents))==null?void 0:W.map(E=>((E==null?void 0:E.key)==="formButton"&&(E.contents=h.value),E)):$.push({key:"formButton",contents:h.value}),l("change",$)},v=_=>{we.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var $,x;y.value=($=p.cloneDeep(y.value))==null?void 0:$.filter(T=>(T==null?void 0:T.id)!==(_==null?void 0:_.id)),l("change",(x=p.cloneDeep(n.originalItemContents))==null?void 0:x.map(T=>((T==null?void 0:T.key)==="formContent"&&(T.contents=y.value),T))),fe.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},r=_=>{we.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var $,x;h.value=($=p.cloneDeep(h.value))==null?void 0:$.filter(T=>(T==null?void 0:T.id)!==(_==null?void 0:_.id)),l("change",(x=p.cloneDeep(n.originalItemContents))==null?void 0:x.map(T=>((T==null?void 0:T.key)==="formButton"&&(T.contents=h.value),T))),fe.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},d=()=>{c.value=!0;let _=[];$e==null||$e.forEach($=>{D.value++,_.push({label:$==null?void 0:$.label,name:$==null?void 0:$.label,type:$.type,value:($==null?void 0:$.label)==="类型"?"normal":"",id:D.value,contents:$==null?void 0:$.options})}),I.value=_,b.value=_},i=()=>{var $,x;o.value=!0;let _=[];(x=($=G==null?void 0:G.find(T=>(T==null?void 0:T.key)==="Input"))==null?void 0:$.value)==null||x.forEach(T=>{D.value++,_.push({label:T==null?void 0:T.label,name:T==null?void 0:T.label,type:T.type,value:(T==null?void 0:T.label)==="类型"?"Input":"",id:D.value,contents:T==null?void 0:T.options})}),t.value=_,u.value=_},g=_=>{let $=p.cloneDeep(b.value);$=$==null?void 0:$.map(x=>(x.value=_==null?void 0:_[x.name],x)),b.value=$},O=async _=>{var $,x,T,B,U,W,E,z;if((_==null?void 0:_.类型)!==((x=($=u.value)==null?void 0:$.find(M=>(M==null?void 0:M.label)==="类型"))==null?void 0:x.value)){let M=[];const Z=await((B=(T=G==null?void 0:G.find(J=>(J==null?void 0:J.key)===((_==null?void 0:_.类型)===""?"Input":_==null?void 0:_.类型)))==null?void 0:T.value)==null?void 0:B.value)?await((E=(W=G==null?void 0:G.find(J=>(J==null?void 0:J.key)===((_==null?void 0:_.类型)===""?"Input":_==null?void 0:_.类型)))==null?void 0:W.value)==null?void 0:E.value):(U=G==null?void 0:G.find(J=>(J==null?void 0:J.key)===((_==null?void 0:_.类型)===""?"Input":_==null?void 0:_.类型)))==null?void 0:U.value;Z==null||Z.forEach(J=>{D.value++,M.push({label:J==null?void 0:J.label,name:J==null?void 0:J.label,type:J.type,value:(_==null?void 0:_[J.label])??"",id:D.value,contents:J==null?void 0:J.options})}),u.value=M,t.value=M}else{let M=p.cloneDeep(u.value);if(M=M==null?void 0:M.map(Z=>(Z.value=_==null?void 0:_[Z.name],Z)),_!=null&&_.菜单选项&&((z=_==null?void 0:_.菜单选项)==null?void 0:z.length)>0){const Z=await ol(_==null?void 0:_.菜单选项);M=M==null?void 0:M.map(J=>((J==null?void 0:J.name)==="组信息选项"&&(J.contents=Z),J))}M=Oe(M),u.value=M}},L=()=>{},R=async()=>{var T,B,U,W,E,z,M,Z;t.value=u.value;let _={};k.value!==""?_.id=k.value:(D.value++,_.id="id"+D.value);let $=await((B=(T=G==null?void 0:G.find(J=>{var se,te;return(J==null?void 0:J.key)===(((te=(se=t.value)==null?void 0:se.find(ie=>(ie==null?void 0:ie.label)==="类型"))==null?void 0:te.value)??"label")}))==null?void 0:T.value)==null?void 0:B.value)??((U=G==null?void 0:G.find(J=>{var se,te;return(J==null?void 0:J.key)===(((te=(se=t.value)==null?void 0:se.find(ie=>(ie==null?void 0:ie.label)==="类型"))==null?void 0:te.value)??"label")}))==null?void 0:U.value);if((W=t.value)==null||W.forEach(J=>{const se=$==null?void 0:$.find(te=>(te==null?void 0:te.label)===(J==null?void 0:J.label));se&&(_[se.key]=J.value)}),_.width=1,_.key=_==null?void 0:_.label,(E=y.value)!=null&&E.find(J=>J.id===_.id))y.value=(z=y.value)==null?void 0:z.map(J=>(J.id===_.id&&(J=_),J));else{let J=p.cloneDeep(y.value);J.push(_),y.value=J}y.value=y.value.map(({id:J,...se})=>se),o.value=!1,k.value="";let x=p.cloneDeep(n.originalItemContents);(M=p.cloneDeep(n.originalItemContents))!=null&&M.find(J=>(J==null?void 0:J.key)==="formContent")?x=(Z=p.cloneDeep(n.originalItemContents))==null?void 0:Z.map(J=>((J==null?void 0:J.key)==="formContent"&&(J.contents=y.value),J)):x.push({key:"formContent",contents:y.value}),l("change",x)},K=()=>{o.value=!1,c.value=!1,k.value="",u.value=[],b.value=[]};return e.watch(()=>n.originalItemContents,()=>{var $,x,T,B,U,W;if(!n.originalItemContents||n.originalItemContents.length===0)return;const _=p.cloneDeep(n.originalItemContents);y.value=(($=_==null?void 0:_.find(E=>(E==null?void 0:E.key)==="formContent"))==null?void 0:$.contents)??[],h.value=((x=_==null?void 0:_.find(E=>(E==null?void 0:E.key)==="formButton"))==null?void 0:x.contents)??[],w.value=(T=_==null?void 0:_.find(E=>(E==null?void 0:E.key)==="enableWrap"))!=null&&T.contents?!((B=_==null?void 0:_.find(E=>(E==null?void 0:E.key)==="enableWrap"))!=null&&B.contents):!0,y.value=(U=p.cloneDeep(y.value))==null?void 0:U.map((E,z)=>{let M=E;return M.id=(E==null?void 0:E.id)??z,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)??"",M}),y.value=Oe(y.value),h.value=(W=h.value)==null?void 0:W.map((E,z)=>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)??z})},{deep:!0,immediate:!0}),(_,$)=>{const x=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",Hn,[e.createElementVNode("div",Zn,[e.createElementVNode("div",Qn,[$[2]||($[2]=e.createElementVNode("div",null,e.toDisplayString("表单内容"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:i},[e.createVNode(x,{name:"Plus",class:"icon-size"}),$[1]||($[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",Xn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(T,B)=>(e.openBlock(),e.createElementBlock("div",{key:B},[e.createElementVNode("div",Yn,[e.createElementVNode("div",null,e.toDisplayString(T.label),1),e.createElementVNode("div",ea,[e.createVNode(x,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:U=>S(T)},null,8,["onClick"]),e.createVNode(x,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:U=>v(T)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",la,[$[4]||($[4]=e.createElementVNode("div",null,e.toDisplayString("表单按钮"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:d},[e.createVNode(x,{name:"Plus",class:"icon-size"}),$[3]||($[3]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",na,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(T,B)=>(e.openBlock(),e.createElementBlock("div",{key:B},[e.createElementVNode("div",aa,[e.createElementVNode("div",null,e.toDisplayString(T.label),1),e.createElementVNode("div",oa,[e.createVNode(x,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:U=>m(T)},null,8,["onClick"]),e.createVNode(x,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:U=>r(T)},null,8,["onClick"])])])]))),128))]),$[6]||($[6]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("表单布局"))],-1)),e.createElementVNode("div",sa,[$[5]||($[5]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否自动撑宽"),-1)),e.createVNode(Y._sfc_main$1,{modelValue:w.value,"onUpdate:modelValue":$[0]||($[0]=T=>w.value=T)},null,8,["modelValue"])])]),e.createVNode(Y.ssDialog,{visible:o.value,onBeforeDestroy:K,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",ta,[(e.openBlock(),e.createBlock(Y.ssForm,{rowContents:t.value,key:t.value,isEnableWrap:!0,onChange:O,onBlur:L},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:K,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:R},e.toDisplayString("确认"))])]),_:1},8,["visible"]),e.createVNode(Y.ssDialog,{visible:c.value,onBeforeDestroy:K,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",ra,[(e.openBlock(),e.createBlock(Y.ssForm,{rowContents:I.value,key:I.value,isEnableWrap:!0,onChange:g},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:K,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:f},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},tl=de._export_sfc(ca,[["__scopeId","data-v-82a6cf04"]]),ia={class:"step-module content"},ua={class:"module-data"},pa={class:"step-module layout"},da={class:"form-content"},fa=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}]),t=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),u=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),c=e.reactive({visible:!1,width:"40%",title:"步骤条"}),h=e.ref("create"),y=e.ref({}),k=e.ref([]),w=m=>{var f;y.value=m,l("change",(f=b())==null?void 0:f.compData)},D=(m,f)=>{var v,r;switch(m){case"create":(v=t.value)==null||v.forEach(d=>{d.value=""}),h.value="create",c.visible=!0;break;case"update":(r=t.value)==null||r.forEach(d=>{d.value=f[d==null?void 0:d.prop]}),h.value="update",c.visible=!0;break;case"delete":k.value.splice(f,1),h.value="delete";break}},I=m=>{var f,v,r;if((m==null?void 0:m.buttonName)==="确认"){const d=p.cloneDeep(m==null?void 0:m.content);switch(Object.keys(d).forEach(i=>{d[i]===""&&delete d[i]}),h.value){case"create":k.value.push({...d,index:((f=k.value)==null?void 0:f.length)+1});break;case"update":k.value=(v=k.value)==null?void 0:v.map(i=>i.index===(d==null?void 0:d.index)?{...i,title:d==null?void 0:d.title,description:d==null?void 0:d.description}:i);break}l("change",(r=b())==null?void 0:r.compData),c.visible=!1}else c.visible=!1},b=()=>({comp:"Step",compData:[{key:"stepList",contents:k.value},{key:"stepConfig",contents:y.value}]}),S=()=>{c.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,m=>{var f,v;m&&(y.value=((f=m==null?void 0:m.find(r=>r.key==="stepConfig"))==null?void 0:f.contents)??{},k.value=((v=m==null?void 0:m.find(r=>r.key==="stepList"))==null?void 0:v.contents)??[])},{immediate:!0}),(m,f)=>{const v=e.resolveComponent("svg-icon"),r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",ia,[f[2]||(f[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createElementVNode("div",{class:"module-icon",onClick:f[0]||(f[0]=d=>D("create"))},[e.createVNode(v,{name:"Plus",class:"icon-size"}),f[1]||(f[1]=e.createElementVNode("div",null,"新增",-1))])]),e.createElementVNode("div",ua,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(d,i)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:i},[e.createElementVNode("span",null,e.toDisplayString(d==null?void 0:d.title),1),e.createElementVNode("div",null,[e.createVNode(r,{type:"primary",size:"small",onClick:g=>D("update",{...d,index:i+1})},{default:e.withCtx(()=>f[3]||(f[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(r,{type:"danger",size:"small",onClick:g=>D("delete",i)},{default:e.withCtx(()=>f[4]||(f[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",pa,[f[5]||(f[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(Y.ssForm,{rowContents:o.value,onChange:w},null,8,["rowContents"])])]),e.createVNode(Y.ssDialog,{visible:c.visible,title:c.title,onBeforeDestroy:S,width:c.width},{default:e.withCtx(()=>[e.createElementVNode("div",da,[(e.openBlock(),e.createBlock(Y.ssForm,{rowContents:t.value,key:t.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:u.value,onOnButtonClick:I},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),ma=de._export_sfc(fa,[["__scopeId","data-v-47438605"]]),ha={class:"step-module content"},ya={class:"module-data"},va={class:"step-module layout"},ka={class:"form-content"},ga=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"),t=e.ref({}),u=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:""}]),y=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),k=e.reactive({visible:!1,width:"40%",title:"时间线"}),w=m=>{var f;t.value=m,console.log(1212,m),l("change",(f=b())==null?void 0:f.compData)},D=(m,f)=>{var v,r;switch(m){case"create":(v=h.value)==null||v.forEach(d=>{d.value=""}),o.value="create",k.visible=!0;break;case"update":(r=h.value)==null||r.forEach(d=>{d.value=f[d==null?void 0:d.prop]}),o.value="update",k.visible=!0;break;case"delete":u.value.splice(f,1),o.value="delete";break}},I=m=>{var f,v,r,d;if((m==null?void 0:m.buttonName)==="确认"){const i=p.cloneDeep(m==null?void 0:m.content);switch(Object.keys(i).forEach(g=>{i[g]===""&&delete i[g]}),o.value){case"create":console.log(1335,u.value,i),(v=u.value)==null||v.push({...i,index:((f=u.value)==null?void 0:f.length)+1});break;case"update":u.value=(r=u.value)==null?void 0:r.map(g=>g.index===(i==null?void 0:i.index)?{...g,content:i==null?void 0:i.content,timestamp:i==null?void 0:i.timestamp}:g);break}l("change",(d=b())==null?void 0:d.compData),k.visible=!1}else k.visible=!1},b=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:u.value},{key:"timeLineConfig",contents:t.value}]}),S=()=>{k.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,m=>{var f,v;m&&(t.value=((f=m==null?void 0:m.find(r=>r.key==="timeLineConfig"))==null?void 0:f.contents)??{},u.value=((v=m==null?void 0:m.find(r=>r.key==="timeLineList"))==null?void 0:v.contents)??[])},{immediate:!0}),(m,f)=>{const v=e.resolveComponent("svg-icon"),r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",ha,[f[2]||(f[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createElementVNode("div",{class:"module-icon",onClick:f[0]||(f[0]=d=>D("create"))},[e.createVNode(v,{name:"Plus",class:"icon-size"}),f[1]||(f[1]=e.createElementVNode("div",null,"新增",-1))])]),e.createElementVNode("div",ya,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(d,i)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:i},[e.createElementVNode("span",null,e.toDisplayString(d==null?void 0:d.content),1),e.createElementVNode("div",null,[e.createVNode(r,{type:"primary",size:"small",onClick:g=>D("update",{...d,index:i+1})},{default:e.withCtx(()=>f[3]||(f[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(r,{type:"danger",size:"small",onClick:g=>D("delete",i)},{default:e.withCtx(()=>f[4]||(f[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",va,[f[5]||(f[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(Y.ssForm,{rowContents:c.value,onChange:w},null,8,["rowContents"])])]),e.createVNode(Y.ssDialog,{visible:k.visible,title:k.title,onBeforeDestroy:S,width:k.width},{default:e.withCtx(()=>[e.createElementVNode("div",ka,[(e.openBlock(),e.createBlock(Y.ssForm,{rowContents:h.value,key:h.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:y.value,onOnButtonClick:I},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),ba=de._export_sfc(ga,[["__scopeId","data-v-40aea043"]]),Ca={};function Da(a,s){return e.openBlock(),e.createElementBlock("div")}const _a=de._export_sfc(Ca,[["render",Da]]),Ea={class:"extra-content"},xa={key:0},Na={key:1},$a={__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(),t=e.ref(),u=s,c=e.ref(!1),h=e.ref({}),y=e.ref({}),k=e.ref();e.watch(()=>[n.itemData],()=>{var d;const r=p.cloneDeep(n.itemData);o.value=(d=p.cloneDeep(r))==null?void 0:d.map(i=>{var g;if(i.key==="extra"){let O=[];(g=i.value)==null||g.forEach(L=>{var R;O.push((R=Object.values(L))==null?void 0:R[0])}),i.value=O}return i})},{deep:!0,immediate:!0});const w=(r,d,i,g)=>{var L;let O={};((L=r==null?void 0:r[0])==null?void 0:L.contents)==="详情"&&(c.value=!0,O[d]=r,t.value=r==null?void 0:r.filter(R=>(R==null?void 0:R.key)!=="tableContentName"),h.value=O,y.value=i,k.value=g.id)},D=r=>{var R,K,_,$;const d=(K=(R=Object.values(p.cloneDeep(h.value)))==null?void 0:R[0])==null?void 0:K.filter(x=>(x==null?void 0:x.key)==="tableContentName"),i=($=(_=Object.values(p.cloneDeep(h.value)))==null?void 0:_[0])==null?void 0:$.filter(x=>(x==null?void 0:x.key)!=="tableContentName"),g=i==null?void 0:i.map((x,T)=>{var B;return T===r.index&&(x==null?void 0:x.comp)==="Table"&&(x.compData=(B=x.compData)==null?void 0:B.map(U=>{var W,E;return(U==null?void 0:U.key)==="tableContents"&&(U.contents=(E=(W=r.content)==null?void 0:W.map(z=>{let M={};for(let Z in z)Z!=="id"&&(M[Z]=z[Z]);return M}))==null?void 0:E.map(z=>Object.values(z))),U})),x});g.unshift(d==null?void 0:d[0]);let O=p.cloneDeep(h.value),L={};for(let x in O)L[x]=g;h.value=L},I=()=>{c.value=!1,h.value={},y.value={},k.value=void 0,l.value++},b=r=>{var R,K,_,$;const d=(K=(R=Object.values(p.cloneDeep(h.value)))==null?void 0:R[0])==null?void 0:K.filter(x=>(x==null?void 0:x.key)==="tableContentName"),i=($=(_=Object.values(p.cloneDeep(h.value)))==null?void 0:_[0])==null?void 0:$.filter(x=>(x==null?void 0:x.key)!=="tableContentName"),g=i==null?void 0:i.map((x,T)=>(T===r.index&&(x.compData=r.contents),x));g.unshift(d==null?void 0:d[0]);let O=p.cloneDeep(h.value),L={};for(let x in O)L[x]=g;h.value=L},S=()=>{var d,i;let r={};for(let g in y.value)g===((d=Object.keys(h.value))==null?void 0:d[0])?r[g]=(i=Object.values(h.value))==null?void 0:i[0]:r[g]=y.value[g];u("change",{buttonName:"编辑",index:k.value,singleContent:r},"methodData"),c.value=!1,h.value={},y.value={},k.value=void 0},m=()=>{c.value=!1,h.value={},y.value={},k.value=void 0},f=r=>{u("change",r,"methodData")},v=r=>Me(r);return(r,d)=>(e.openBlock(),e.createElementBlock("div",Ea,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(i,g)=>(e.openBlock(),e.createElementBlock("div",{key:l.value},[(i==null?void 0:i.key)==="extra"?(e.openBlock(),e.createElementBlock("div",xa)):(e.openBlock(),e.createElementBlock("div",Na,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(v(i.comp)),{itemData:i==null?void 0:i.compData,childItemData:i==null?void 0:i.itemChildData,key:g,index:(i==null?void 0:i.id)??g,onContentClick:w,onChange:f},null,40,["itemData","childItemData","index"]))]))]))),128)),e.createVNode(Y.ssDialog,{visible:c.value,onBeforeDestroy:m},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(i,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"extra-dialog"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(v(i.comp)),{itemData:i==null?void 0:i.compData,onChange:D,childItemData:i==null?void 0:i.itemChildData,key:g,onContentChange:b,index:(i==null?void 0:i.id)??g,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{class:"cancel-button footer-button",onClick:I},e.toDisplayString("取消")),e.createElementVNode("div",{class:"confirm-button footer-button",onClick:S},e.toDisplayString("确认"))])]),_:1},8,["visible"])]))}},Ba=de._export_sfc($a,[["__scopeId","data-v-b0b2f71f"]]),Va={class:"method-content"},wa=["onClick"],Ta={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(a){const s=e.ref([]),n=a,l=Fl.useModelComp(be.pinia),{itemData:o,isEdit:t}=fe.storeToRefs(l),u=(y,k)=>{var D;const w=(D=k==null?void 0:k[0])==null?void 0:D.children;return y==null?void 0:y.map(I=>{var b;return I=(b=I==null?void 0:I.map((S,m)=>{var f;return{key:(f=w[m])==null?void 0:f.label,value:S}}))==null?void 0:b.filter(S=>S.key),I})};e.watch(()=>o.value,async()=>{t.value=="view"&&await h(p.cloneDeep(n.itemData))},{deep:!0});const c=async y=>{var r,d,i,g,O,L;let k={};if((r=p.cloneDeep(y.content))==null||r.forEach((R,K)=>{var _,$,x,T,B,U,W,E,z,M,Z,J,se,te,ie,ce,me;if((R==null?void 0:R.comp)==="Table"){let he=(T=(x=($=(_=R==null?void 0:R.compData)==null?void 0:_.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:$.contents)==null?void 0:x[0])==null?void 0:T.some(le=>le==null?void 0:le.children),ve=(W=(U=(B=R==null?void 0:R.compData)==null?void 0:B.find(le=>(le==null?void 0:le.key)==="tableContents"))==null?void 0:U.contents)==null?void 0:W.map(le=>le.slice(1)),re=(J=(Z=(M=(z=(E=R==null?void 0:R.compData)==null?void 0:E.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:z.contents)==null?void 0:M[0])==null?void 0:Z[0])==null?void 0:J.label,ue=(ie=(te=(se=R==null?void 0:R.compData)==null?void 0:se.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:te.contents)==null?void 0:ie[0];if(he)k[re]=u(ve,ue);else{const le=[];ue=ue.slice(1,ue.length-1),ue==null||ue.forEach((Ne,Ee)=>{ve==null||ve.forEach(_e=>{le.push({key:Ne.label+_e[0],value:_e[Ee+1]})})}),k["form"+K]=le}}else{const he=(me=(ce=R.compData)==null?void 0:ce.find(re=>(re==null?void 0:re.key)==="formContent"))==null?void 0:me.contents;k.form={};const ve=[];he==null||he.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},ve.push(re))}),k.form=ve}}),y.api){const R=await be.axios.post(y.api,{data:k,templateFileName:(d=y==null?void 0:y.extraContent)==null?void 0:d[0]},{responseType:"blob",headers:{"Content-Type":"application/json"}});var w=new Blob([R.data],{type:"application/octet-stream;charset=UTF-8"}),D=R.headers["content-disposition"],I=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),b=I.exec(D),S=((O=(g=(i=y==null?void 0:y.extraContent)==null?void 0:i[0])==null?void 0:g.split("."))==null?void 0:O[0])+"."+((L=b[1].split("."))==null?void 0:L[1]),m=document.createElement("a"),f=window.URL.createObjectURL(w),v=/^["](.*)["]$/g;m.style.display="none",m.href=f,m.download=decodeURI(S.replace(v,"$1")),document.body.appendChild(m),m.click(),document.body.removeChild(m),window.URL.revokeObjectURL(f)}},h=async y=>{var I;const k=p.cloneDeep(y),w=k==null?void 0:k.map(async b=>{var d,i,g,O,L,R,K;const m=(d=(await be.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),parentTable:"",type:"method",methodName:b.method}})).data.result)==null?void 0:d[0],f=await be.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"methodData",tableId:m==null?void 0:m.id}}),v=await ye.getItemData((i=b==null?void 0:b.value)==null?void 0:i[0],sessionStorage.getItem("systemKey"),""),r=(g=f.data.result)==null?void 0:g[0];return{buttonName:(O=m==null?void 0:m.key)==null?void 0:O.methodKey,api:(R=(L=r==null?void 0:r.value)==null?void 0:L.tableData)==null?void 0:R[0],content:v==null?void 0:v.filter(_=>_.comp!=="methodButton"),extraContent:(K=p.cloneDeep(b.value))==null?void 0:K.slice(1)}}),D=await Promise.all(w);s.value=D==null?void 0:D.filter(b=>b==null?void 0:b.extraContent),(I=s.value)==null||I.forEach(b=>{var S;b.api===""&&((S=b.content)==null||S.forEach(m=>{var f;m.comp=="Table"&&l.setExtraContents(ye.methodTableToContent(m.compData,(f=b.extraContent)==null?void 0:f[0]))}))})};return e.watch(()=>n.itemData,async()=>{t.value=="view"&&await h(p.cloneDeep(n.itemData))},{immediate:!0,deep:!0}),(y,k)=>(e.openBlock(),e.createElementBlock("div",Va,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,w=>(e.openBlock(),e.createElementBlock("div",null,[w.api!==""?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:D=>c(w),class:"method-buttons"},e.toDisplayString(w.buttonName),9,wa)):e.createCommentVNode("",!0)]))),256))]))}},Ia=de._export_sfc(Ta,[["__scopeId","data-v-0c52611a"]]),Aa={};function Sa(a,s){return" 567 "}const Oa=de._export_sfc(Aa,[["render",Sa]]),Fa={class:"module content"},La={class:"module data"},ja={class:"module layout"},Ua={class:"form-content"},Ja=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:"签名配置"}),t=e.ref("create"),u=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:""}]),y=e.ref({}),k=e.ref([]),w=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:k.value},{key:"signConfig",contents:y.value}]}),D=m=>{var f;y.value=p.cloneDeep(m),l("change",(f=w())==null?void 0:f.compData)},I=m=>{var f,v;if((m==null?void 0:m.buttonName)==="确认"){const r=p.cloneDeep(m==null?void 0:m.content);switch(t.value){case"create":k.value.push({...r,index:((f=k.value)==null?void 0:f.length)+1});break}l("change",(v=w())==null?void 0:v.compData),o.visible=!1}else o.visible=!1},b=(m,f)=>{var v,r;switch(m){case"create":(v=h.value)==null||v.forEach(d=>{d.value=""}),t.value="create",o.visible=!0;break;case"update":(r=h.value)==null||r.forEach(d=>{d.value=f[d==null?void 0:d.prop]}),console.log(345,f),t.value="update",o.visible=!0;break;case"delete":k.value.splice(f,1),t.value="delete";break}},S=()=>{o.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,m=>{var f,v;m&&(y.value=((f=m==null?void 0:m.find(r=>r.key==="signConfig"))==null?void 0:f.contents)??{},k.value=((v=m==null?void 0:m.find(r=>r.key==="signTypeList"))==null?void 0:v.contents)??[])},{immediate:!0}),(m,f)=>{const v=e.resolveComponent("svg-icon"),r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",Fa,[f[2]||(f[2]=e.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),e.createElementVNode("div",{class:"module-icon",onClick:f[0]||(f[0]=d=>b("create"))},[e.createElementVNode("div",null,[e.createVNode(v,{name:"Plus",class:"icon-size"}),f[1]||(f[1]=e.createElementVNode("span",null,"新增",-1))])])]),e.createElementVNode("div",La,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(d,i)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:i},[e.createElementVNode("span",null,e.toDisplayString(d==null?void 0:d.label),1),e.createElementVNode("div",null,[e.createVNode(r,{type:"primary",size:"small",onClick:g=>b("update",{...d,index:i+1})},{default:e.withCtx(()=>f[3]||(f[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(r,{type:"danger",size:"small",onClick:g=>b("delete",i)},{default:e.withCtx(()=>f[4]||(f[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",ja,[e.createVNode(Y.ssForm,{rowContents:c.value,onChange:D},null,8,["rowContents"])])]),e.createVNode(Y.ssDialog,{visible:o.visible,title:o.title,onBeforeDestroy:S,width:o.width},{default:e.withCtx(()=>[e.createElementVNode("div",Ua,[(e.openBlock(),e.createBlock(Y.ssForm,{rowContents:h.value,key:h.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:u.value,onOnButtonClick:I},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),Ra=de._export_sfc(Ja,[["__scopeId","data-v-a90b5f7d"]]),Pa=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),t=e.computed(()=>{var w,D;return(w=n==null?void 0:n.stepConfig)!=null&&w.allowTrigger?o.value:(D=n==null?void 0:n.stepConfig)==null?void 0:D.active}),u=(w,D)=>{o.value=D,l("clickStep",w,D)},c=w=>Y.getComponent(w),h=()=>{var D;const w=(D=n==null?void 0:n.stepList)==null?void 0:D.find((I,b)=>b+1===t.value);return console.log("findStep",w),w?w==null?void 0:w.children:[]},y=w=>{l("clickTrigger",w)},k=w=>{l("changeTrigger",w)};return(w,D)=>{var S,m,f,v,r;const I=e.resolveComponent("el-step"),b=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(b,{direction:(S=a.stepConfig)==null?void 0:S.direction,active:t.value,"finish-status":"success",simple:(m=a.stepConfig)==null?void 0:m.simple,"align-center":((f=a.stepConfig)==null?void 0:f.alignCenter)??!0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.stepList,(d,i)=>(e.openBlock(),e.createBlock(I,{key:i,class:"step-item",onClick:g=>u(d,i+1)},{title:e.withCtx(()=>[e.renderSlot(w.$slots,"title",{title:d==null?void 0:d.title},void 0,!0)]),description:e.withCtx(()=>[e.renderSlot(w.$slots,"description",{description:d==null?void 0:d.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(v=a.stepConfig)!=null&&v.allowTrigger&&((r=a.stepConfig)!=null&&r.active)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(h(),(d,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"step-cont-wrap"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(d==null?void 0:d.type)),{modelValue:d.value,"onUpdate:modelValue":g=>d.value=g,onClickTrigger:y,onChangeTrigger:k,content:d==null?void 0:d.content},e.createSlots({_:2},[e.renderList(w.$slots,(g,O)=>({name:O,fn:e.withCtx(L=>[e.renderSlot(w.$slots,O,e.mergeProps({ref_for:!0},L||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):e.createCommentVNode("",!0)],64)}}}),Ma=de._export_sfc(Pa,[["__scopeId","data-v-d7c99969"]]),Wa=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({}),t=e.ref([]),u=(c,h)=>{l("clickStep",c,h)};return e.watch(()=>n==null?void 0:n.itemData,c=>{var h,y;t.value=(h=c==null?void 0:c.find(k=>(k==null?void 0:k.key)==="stepList"))==null?void 0:h.contents,o.value=(y=c==null?void 0:c.find(k=>(k==null?void 0:k.key)==="stepConfig"))==null?void 0:y.contents},{immediate:!0}),(c,h)=>{const y=e.resolveComponent("svg-icon");return e.openBlock(),e.createBlock(Ma,{stepConfig:o.value,stepList:t.value,onClickStep:u},{icon:e.withCtx(()=>[e.createVNode(y,{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"])}}}),za=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,(t,u)=>(e.openBlock(),e.createBlock(l,{key:u,timestamp:t.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:t==null?void 0:t.content,timestamp:t==null?void 0:t.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),Ga=de._export_sfc(za,[["__scopeId","data-v-4172a886"]]),qa={class:"line-content"},Ka={class:"line-time"},Ha=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 t,u;l.value=(t=o==null?void 0:o.find(c=>(c==null?void 0:c.key)==="timeLineList"))==null?void 0:t.contents,n.value=(u=o==null?void 0:o.find(c=>(c==null?void 0:c.key)==="timeLineConfig"))==null?void 0:u.contents},{immediate:!0}),(o,t)=>(e.openBlock(),e.createBlock(Ga,{activities:l.value,timeLineConfig:n.value},{content:e.withCtx(({content:u,timestamp:c})=>[e.createElementVNode("span",qa,e.toDisplayString(u),1),e.createElementVNode("span",Ka,e.toDisplayString(c),1)]),_:1},8,["activities","timeLineConfig"]))}}),Za=de._export_sfc(Ha,[["__scopeId","data-v-b4d9deed"]]),Qa={class:"tabs-content"},Xa={__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(t=>(t==null?void 0:t.key)=="stepList");o&&(n.value=o.contents.map(t=>({value:t.value||t.title,label:t.label||t.title,children:t.children||[]})))},{immediate:!0,deep:!0}),(l,o)=>(e.openBlock(),e.createElementBlock("div",Qa,[e.createVNode(Y.ssTab,{tabsContents:n.value},null,8,["tabsContents"])]))}},Ya=de._export_sfc(Xa,[["__scopeId","data-v-d3bb10b7"]]),Pe=fe.defineStore("tabComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,curStructureCompIds:[]}),actions:{setItemData(a){this.itemData=a},setCurStructureCompIds(a){this.curStructureCompIds=a},setRefreshCurStructure(a){this.isRefreshCurStructure=a},setOriginalData(a){this.originalData=a},setExtraContents(a){this.extraContents=a},setNodeDev(a){this.nodeDev=a},setIsEdit(a){this.isEdit=a}}}),eo={class:"type-select"},lo=["onClick"],no={class:"list-icon"},ao={__name:"modelSelect",setup(a){const s=Pe(be.pinia),{itemData:n}=fe.storeToRefs(s),l=o=>{const t=p.cloneDeep(n.value);t.push({comp:o.comp,name:o.name,compData:[]}),s.setItemData(t)};return(o,t)=>{const u=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",eo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Dl),(c,h)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:h},[e.createElementVNode("div",{class:"list-content",onClick:y=>l(c)},[e.createElementVNode("div",no,[e.createVNode(u,{name:c.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(c.name),1)],8,lo)]))),128))])}}},oo=de._export_sfc(ao,[["__scopeId","data-v-a77f8023"]]),so={class:"fill-content"},to={class:"operate-content"},ro={class:"collapse-title-content"},co={class:"collapse-title-item"},io={key:1},uo=["onClick"],po={class:"icon-content"},fo={key:0,class:"edit-content"},mo=["onClick"],ho={class:"comp-child"},yo={__name:"modelFill",setup(a){const s=Pe(be.pinia),{itemData:n,originalData:l}=fe.storeToRefs(s),o=e.ref([]);e.ref([]);const t=e.ref([]),u=e.ref([]),c=I=>{var S;let b=(S=p.cloneDeep(u.value))==null?void 0:S.map((m,f)=>(I===f&&(m.content=!0),m));u.value=b},h=I=>{var S;let b=(S=p.cloneDeep(u.value))==null?void 0:S.map((m,f)=>(I===f&&(m.content=!1),m));u.value=b,o.value=p.cloneDeep(n.value)},y=(I,b)=>{var v;let S=(v=p.cloneDeep(u.value))==null?void 0:v.map((r,d)=>(I===d&&(r.content=!1),r));u.value=S;const m=p.cloneDeep(n.value),f=m==null?void 0:m.filter((r,d)=>(d===I&&(r.name=b),r));s.setOriginalData(f),s.setItemData(f)};e.watch(()=>n.value,()=>{var I,b,S;!n.value||((I=n.value)==null?void 0:I.length)===0?o.value=[]:o.value=(b=p.cloneDeep(n.value))==null?void 0:b.filter(m=>(m==null?void 0:m.comp)!=="methodButton"),t.value=o.value,u.value=(S=p.cloneDeep(t.value))==null?void 0:S.map((m,f)=>({id:f,content:!1}))},{deep:!0,immediate:!0});const k=I=>Me(I),w=(I,b,S)=>{var f,v;if(!I)return;let m=p.cloneDeep(n.value);m=(f=m==null?void 0:m.map((r,d)=>(d===S&&(r.compData=I),r)))==null?void 0:f.filter(r=>(r==null?void 0:r.comp)!=="methodButton"),u.value=(v=p.cloneDeep(m))==null?void 0:v.map((r,d)=>({id:d,content:!1})),s.setOriginalData(m),s.setItemData(m)},D=I=>{we.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const b=p.cloneDeep(n.value),S=b==null?void 0:b.filter((m,f)=>f!==I);s.setOriginalData(S),s.setItemData(S),fe.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(I,b)=>{const S=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",so,[b[1]||(b[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",to,[e.createVNode(Ll.default,{class:"collapse-content",collapseContents:o.value},{title:e.withCtx(({item:m,index:f})=>{var v,r,d,i,g,O,L,R,K,_;return[e.createElementVNode("div",ro,[e.createElementVNode("div",co,[(r=(v=u.value)==null?void 0:v.find($=>$.id===f))!=null&&r.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:m.name&&m.name!==""?"8px":"0px"})},e.toDisplayString(m.name),5)),(i=(d=u.value)==null?void 0:d.find($=>$.id===f))!=null&&i.content?(e.openBlock(),e.createElementBlock("div",io,[e.createVNode(Y._sfc_main,{modelValue:m.name,"onUpdate:modelValue":$=>m.name=$,onClick:b[0]||(b[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(O=(g=u.value)==null?void 0:g.find($=>$.id===f))!=null&&O.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers($=>c(f),["stop"]),class:"icon-content"},[e.createVNode(S,{name:"Edit",style:{width:"16px",height:"16px"}})],8,uo))]),e.createElementVNode("div",po,[(R=(L=u.value)==null?void 0:L.find($=>$.id===f))!=null&&R.content?(e.openBlock(),e.createElementBlock("div",fo,[e.createVNode(S,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers($=>h(f),["stop"])},null,8,["onClick"]),e.createVNode(S,{name:"Save",onClick:e.withModifiers($=>y(f,m.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(_=(K=u.value)==null?void 0:K.find($=>$.id===f))!=null&&_.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers($=>D(f),["stop"]),class:"icon-content"},[e.createVNode(S,{name:"Delete",style:{width:"16px",height:"16px"}})],8,mo))])])]}),content:e.withCtx(({item:m,index:f})=>{var v,r;return[e.createElementVNode("div",ho,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k(m.comp+"Operate")),{itemContents:m==null?void 0:m.compData,originalItemContents:(r=(v=t.value)==null?void 0:v.find((d,i)=>i===f))==null?void 0:r.compData,onChange:d=>w(d,m,f)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},vo=de._export_sfc(yo,[["__scopeId","data-v-49a5b97a"]]),ko={key:0,class:"show-content"},go={style:{display:"flex"}},bo={__name:"modelShow",setup(a){const s=Pe(be.pinia),{itemData:n}=fe.storeToRefs(s),l=e.ref([]);e.watch(()=>n.value,()=>{var t;!n.value||((t=n.value)==null?void 0:t.length)===0?l.value=[]:l.value=p.cloneDeep(n.value)},{deep:!0,immediate:!0});const o=t=>Me(t);return(t,u)=>{var c;return((c=l.value)==null?void 0:c.length)>0?(e.openBlock(),e.createElementBlock("div",ko,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(h,y)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:y},[e.createElementVNode("div",go,e.toDisplayString(h.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o(h.comp)),{itemData:h==null?void 0:h.compData,childItemData:h==null?void 0:h.itemChildData,key:y},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},Co=de._export_sfc(bo,[["__scopeId","data-v-a59b819d"]]),Do={class:"tabs-header"},_o={class:"tabs-list"},Eo={class:"tab-name"},xo={class:"tab-actions"},No=["onClick"],$o=["onClick"],Bo={class:"model-operate"},Vo={class:"model-select"},wo={class:"model-fill"},To={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:s}){const n=a,l=s,o=e.ref([]),t=e.ref(!1),u=e.ref(""),c=e.ref({title:""}),h=e.ref(-1),y=e.ref(!1),k=()=>{u.value="新增标签页",c.value.title="",h.value=-1,t.value=!0},w=f=>{u.value="修改标签页",c.value.title=o.value[f].title,h.value=f,t.value=!0},D=f=>{o.value.splice(f,1),m()},I=()=>{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),t.value=!1,m())},b=()=>{y.value=!0},S=()=>{const f=Pe(be.pinia),{itemData:v}=fe.storeToRefs(f);console.log(v.value),y.value=!1},m=()=>{const f=[{key:"stepList",contents:o.value}];l("change",f)};return e.watch(()=>n.itemContents,f=>{if(f&&f.length>0){const v=f.find(r=>r.key==="stepList");v&&v.contents&&(o.value=v.contents.map(r=>({title:r.title||"",value:r.value||r.title||"",label:r.label||r.title||"",children:r.children||[]})))}},{immediate:!0}),(f,v)=>{const r=e.resolveComponent("svg-icon"),d=e.resolveComponent("el-input"),i=e.resolveComponent("el-form-item"),g=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Do,[v[8]||(v[8]=e.createElementVNode("h4",null,"标签页管理",-1)),e.createElementVNode("button",{onClick:k},[e.createVNode(r,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),v[7]||(v[7]=e.createTextVNode(" 新增标签页 "))])]),e.createElementVNode("div",_o,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(O,L)=>(e.openBlock(),e.createElementBlock("div",{class:"tab-item",key:L},[e.createElementVNode("span",Eo,e.toDisplayString(O.title),1),e.createElementVNode("div",xo,[e.createElementVNode("button",{onClick:R=>w(L)},"修改标题",8,No),e.createElementVNode("button",{onClick:b},"布局调整"),e.createElementVNode("button",{onClick:R=>D(L)},"删除",8,$o)])]))),128))]),e.createVNode(Y.ssDialog,{modelValue:t.value,"onUpdate:modelValue":v[2]||(v[2]=O=>t.value=O),title:u.value,onBeforeDestroy:v[3]||(v[3]=O=>t.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:v[1]||(v[1]=O=>t.value=!1)},"取消"),e.createElementVNode("button",{type:"primary",onClick:I},"确定")]),default:e.withCtx(()=>[e.createVNode(g,{model:c.value,"label-width":"80px"},{default:e.withCtx(()=>[e.createVNode(i,{label:"标签名称",required:""},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:c.value.title,"onUpdate:modelValue":v[0]||(v[0]=O=>c.value.title=O),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),e.createVNode(Y.ssDialog,{modelValue:y.value,"onUpdate:modelValue":v[5]||(v[5]=O=>y.value=O),title:"布局调整",fullScreen:"",onBeforeDestroy:v[6]||(v[6]=O=>y.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:v[4]||(v[4]=O=>y.value=!1)},"取消"),e.createElementVNode("button",{onClick:S},"确定")]),default:e.withCtx(()=>[e.createElementVNode("div",Bo,[e.createElementVNode("div",Vo,[e.createVNode(oo)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:f.innerWidth},[e.createVNode(Co)])),e.createElementVNode("div",wo,[e.createVNode(vo)])])]),_:1},8,["modelValue"])])}}},Io=de._export_sfc(To,[["__scopeId","data-v-d3a1a68e"]]),Dl=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"}]),Ao={TABLE:ye.ssTable,FORM:sl,TABLEOPERATE:Kn,FORMOPERATE:tl,FOLD:_a,CALCULATOR:Ba,METHODBUTTON:Ia,AVATARUPLOAD:al.ssAvatar,SIGNATURE:al.ssSignature,FORMTOP:sl,STEP:Wa,STEPOPERATE:ma,TIMELINE:Za,TIMELINEOPERATE:ba,FORMTOPOPERATE:tl,SIGNATUREOPERATE:Ra,AVATARUPLOADOPERATE:Oa,TABS:Ya,TABSOPERATE:Io};function Me(a){return Ao[a==null?void 0:a.toUpperCase()]||null}const oe=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],ae=[{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),So=a=>{const[s,n]=a.split(/=(.+)/),l=s.replace(/['"]/g,"").trim(),o=n.replace(/^['"]|['"]$/g,"");return{key:l,value:o}},je=a=>{try{return JSON.parse(a),!0}catch{return!1}},Oo=a=>a.includes("$")&&a.trim().endsWith("(")?a+")":a,Fo=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(),p.cloneDeep(l).split("{").length-1===p.cloneDeep(l).split("}").length-1&&p.cloneDeep(l).split("【").length-1===p.cloneDeep(l).split("】").length-1&&p.cloneDeep(l).split("[").length-1===p.cloneDeep(l).split("]").length-1&&p.cloneDeep(l).split("(").length-1===p.cloneDeep(l).split(")").length-1&&p.cloneDeep(l).split("(").length-1===p.cloneDeep(l).split(")").length-1&&p.cloneDeep(l).split("/*").length-1===p.cloneDeep(l).split("*/").length-1&&(n.push(l),l="")):n.push(o.trim());return n==null?void 0:n.filter(o=>o.includes("{"))},Lo=a=>{var n;let s=[];return(n=Fo(a.slice(1,-1)))==null||n.forEach(l=>{var t,u,c,h;let o=((u=(t=l.slice(1,-1))==null?void 0:t.split(","))==null?void 0:u.length)??1;(h=(c=l.slice(1,-1))==null?void 0:c.split(","))==null||h.forEach(y=>{var I,b,S,m,f,v,r,d,i,g,O,L,R;let k=y==null?void 0:y.split(":"),w=k!=null&&k[0]?(k==null?void 0:k[1].split("$").length)-1===1?((I=k==null?void 0:k[0])==null?void 0:I.replace(/^"(.*)"$/,"$1"))+((b=k==null?void 0:k[1])==null?void 0:b.replace(/^"(.*)"$/,"$1")):Array.isArray((m=(S=k==null?void 0:k[1])==null?void 0:S.replace(/^"(.*)"$/,"$1"))==null?void 0:m.split("("))&&((r=(v=(f=k==null?void 0:k[1])==null?void 0:f.replace(/^"(.*)"$/,"$1"))==null?void 0:v.split("("))==null?void 0:r.length)>1?((d=k==null?void 0:k[0])==null?void 0:d.replace(/^"(.*)"$/,"$1"))+((O=(g=(i=k==null?void 0:k[1])==null?void 0:i.replace(/^"(.*)"$/,"$1"))==null?void 0:g.split("("))==null?void 0:O[0])+"()":(L=k==null?void 0:k[0])==null?void 0:L.replace(/^"(.*)"$/,"$1"):"",D=(k==null?void 0:k[1].split("$").length)-1===0?(R=k==null?void 0:k[1])==null?void 0:R.replace(/^"(.*)"$/,"$1"):"";Te.value++,s.push({id:Te.value,key:w,value:D,width:o,extraContent:k==null?void 0:k[1]})})}),s},_l=a=>{var s,n;try{const l=a.replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",").replace(/:/g,":").replace(/:\s*(?=,|}|$)/g,': ""');if(p.cloneDeep(l).split("{").length-1>1){let o=p.cloneDeep(l).replace(/^\{(.*)\}$/,"[$1]");if(je(o)&&!o.includes("$")||(o=o.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),je(o)){const t=JSON.parse(o);let u=[];return t==null||t.forEach(c=>{var h;(h=Object.entries(p.cloneDeep(c)))==null||h.forEach(y=>{Te.value++,u.push({id:Te.value,key:(y==null?void 0:y[0])??"",value:(y==null?void 0:y[1])===""?"":y==null?void 0:y[1],width:Object.keys(p.cloneDeep(c)).length})})}),u}else return l.trim().startsWith("{{")?Lo(l.trim()):Ge(o)}else if(je(l)){const o=JSON.parse(l);return Object.entries(o).map(([t,u])=>(Te.value++,{id:Te.value,key:t,value:u===""?"":u,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:Oo(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 t="",u=0,c=!1,h="";for(let y=n;y<a.length;y++){const k=a[y];if((k==='"'||k==="'")&&!c?(c=!0,h=k):k===h&&c&&(c=!1,h=""),!c&&((k==="{"||k==="("||k==="[")&&u++,(k==="}"||k===")"||k==="]")&&u--,k===","&&u===0||y===a.length-1)){t=a.slice(n,y+1).trim(),n=y+1;break}}s.push({label:o,method:t})}return s},jo=(a,s)=>{try{if(oe!=null&&oe.find(n=>(n==null?void 0:n.key)===s))return a.replace(/['"]/g,"").trim();if(p.cloneDeep(a).split("[").length-1>1){const n=p.cloneDeep(a).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(n)}else{const n=p.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 _l(p.cloneDeep(a))}}catch(n){return console.error("解析失败:",n),a}},Uo=a=>({[a==null?void 0:a.key]:jo(a==null?void 0:a.value,a==null?void 0:a.key)}),Jo=a=>{try{if(p.cloneDeep(a).split("[").length-1>1){const s=p.cloneDeep(a).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(s)}else return JSON.parse(p.cloneDeep(a).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",")).map(n=>({label:n}))}catch(s){return console.error("解析失败:",s),a}},Ro=a=>{const s=a.match(/\(([^)]+)\)/);return s?s[1]:""},Po=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("/"),Mo=a=>{var u,c;let s=[],n=[];const l=(u=p.cloneDeep(a))==null?void 0:u.map(h=>h==null?void 0:h.key),o=[...new Set((c=p.cloneDeep(l))==null?void 0:c.map(h=>Ro(h)))];o==null||o.forEach(h=>{let y=a==null?void 0:a.filter(D=>D.key.includes(h));y==null||y.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=Po(D.key),D));const w={key:"GroupContents",value:k};s.push(w)});const t={key:"Menus",value:n};return s.unshift(t),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,t])=>{var c,h;let u=[];if(u.push(o),((c=Object.keys(t))==null?void 0:c.length)>0){let y=[];(h=El(t))==null||h.forEach(k=>{y.push(k)}),y==null||y.forEach(k=>{u.push(k)})}l.push(u)}),l}},Wo=(a,s)=>{var l;let n=s;return Array.isArray(Object.keys(a))&&((l=Object.entries(a))==null||l.forEach(([o,t])=>{let u=[o];if(typeof t=="object"&&t!==null){let c=El(t);c==null||c.forEach(h=>{u.push(h)})}n.push(u)})),n},zo=a=>{const s={};return a.forEach(l=>{const o=l.split("/");let t=s;o.forEach(u=>{t[u]||(t[u]={}),t=t[u]})}),Wo(s,[])},Ze=a=>zo(a),Go=a=>{var s,n,l,o,t,u,c,h;try{const y=We((n=(s=p.cloneDeep(a))==null?void 0:s.replace("(","("))==null?void 0:n.replace(")",")")),k=(o=(l=p.cloneDeep(y))==null?void 0:l.filter(b=>!b.includes("/*")))==null?void 0:o.map(b=>So(b)),w=Mo(k),D=[];if(((t=w==null?void 0:w.find(b=>(b==null?void 0:b.key)==="Menus"))==null?void 0:t.value.length)===0)return!1;(u=p.cloneDeep(w))==null||u.forEach(b=>{var S,m,f,v,r;oe!=null&&oe.find(d=>{var i,g;return((i=d==null?void 0:d.key)==null?void 0:i.toUpperCase())===((g=b==null?void 0:b.key)==null?void 0:g.toUpperCase())})?D.push({comp:((S=oe==null?void 0:oe.find(d=>{var i,g;return((i=d==null?void 0:d.key)==null?void 0:i.toUpperCase())===((g=b==null?void 0:b.key)==null?void 0:g.toUpperCase())}))==null?void 0:S.value)??"",name:(m=b==null?void 0:b.value)==null?void 0:m.replace(/[’]|[‘]|[']/g,""),compData:[]}):ae!=null&&ae.find(d=>{var i,g;return((i=d==null?void 0:d.key)==null?void 0:i.toUpperCase())===((g=b==null?void 0:b.key)==null?void 0:g.toUpperCase())})&&((D==null?void 0:D.length)===0&&(f=b.key)!=null&&f.includes("Menus")&&D.push({comp:"Menu",name:"",compData:[]}),(v=D==null?void 0:D[(D==null?void 0:D.length)-1])!=null&&v.compData&&D[(D==null?void 0:D.length)-1].compData.push({key:(r=ae==null?void 0:ae.find(d=>{var i,g;return((i=d==null?void 0:d.key)==null?void 0:i.toUpperCase())===((g=b==null?void 0:b.key)==null?void 0:g.toUpperCase())}))==null?void 0:r.value,contents:b==null?void 0:b.value}))});let I=(c=p.cloneDeep(D))==null?void 0:c.map(b=>{var S;return b!=null&&b.compData&&(b.compData=(S=b==null?void 0:b.compData)==null?void 0:S.map(m=>{var f,v,r,d,i,g,O,L,R,K,_;if((m==null?void 0:m.key)==="formFlex")m.contents=((v=(f=m.contents)==null?void 0:f.replace(/[’]|[‘]|[']/g,""))==null?void 0:v.toUpperCase())!=="Vertical".toUpperCase();else if((m==null?void 0:m.key)==="groupContents")m.contents=(r=p.cloneDeep(m.contents))==null?void 0:r.map($=>Uo(p.cloneDeep($)));else if(Array.isArray(m==null?void 0:m.contents))m.contents=Ze(m.contents);else if(((i=(d=m==null?void 0:m.contents)==null?void 0:d.trim())!=null&&i.startsWith("[")||(O=(g=m.contents)==null?void 0:g.trim())!=null&&O.startsWith("【"))&&((R=(L=m.contents)==null?void 0:L.trim())!=null&&R.endsWith("]")||(_=(K=m.contents)==null?void 0:K.trim())!=null&&_.endsWith("】")))m.contents=Jo(p.cloneDeep(m.contents));else{if(!m.contents)return;m.contents=_l(p.cloneDeep(m.contents))}return m})),b});return I=(h=p.cloneDeep(I))==null?void 0:h.map(b=>{var S;return(b==null?void 0:b.comp)==="Group"&&(b.compData=(S=b.compData)==null?void 0:S.map(m=>{var v;let f=[];return(v=m.contents)==null||v.forEach(r=>{var d,i,g,O,L,R,K,_,$,x,T,B;if(oe!=null&&oe.find(U=>{var W,E,z;return((W=U==null?void 0:U.key)==null?void 0:W.toUpperCase())===((z=(E=Object.keys(r))==null?void 0:E[0])==null?void 0:z.toUpperCase())}))f.push({comp:(d=oe==null?void 0:oe.find(U=>{var W,E,z;return((W=U==null?void 0:U.key)==null?void 0:W.toUpperCase())===((z=(E=Object.keys(r))==null?void 0:E[0])==null?void 0:z.toUpperCase())}))==null?void 0:d.value,name:(g=(i=Object.values(r))==null?void 0:i[0])==null?void 0:g.replace(/[’]|[‘]|[']/g,""),compData:[]});else if(ae!=null&&ae.find(U=>{var W,E,z;return((W=U==null?void 0:U.key)==null?void 0:W.toUpperCase())===((z=(E=Object.keys(r))==null?void 0:E[0])==null?void 0:z.toUpperCase())})){if((f==null?void 0:f.length)===0)return;(O=f==null?void 0:f[(f==null?void 0:f.length)-1])!=null&&O.compData&&f[(f==null?void 0:f.length)-1].compData.push({key:(L=ae==null?void 0:ae.find(U=>{var W,E,z;return((W=U==null?void 0:U.key)==null?void 0:W.toUpperCase())===((z=(E=Object.keys(r))==null?void 0:E[0])==null?void 0:z.toUpperCase())}))==null?void 0:L.value,contents:(R=Object.values(r))==null?void 0:R[0]})}else if((_=(K=Object.keys(r))==null?void 0:K[0])!=null&&_.includes("$")){const U=(x=($=Object.keys(p.cloneDeep(r)))==null?void 0:$[0])==null?void 0:x.split("$");f[(f==null?void 0:f.length)-1].compData.push({key:(T=ae==null?void 0:ae.find(W=>{var E,z;return((E=W==null?void 0:W.key)==null?void 0:E.toUpperCase())===((z=U==null?void 0:U[0])==null?void 0:z.toUpperCase())}))==null?void 0:T.value,contents:(B=Object.values(r))==null?void 0:B[0],selectLabel:U==null?void 0:U[1]})}return r}),m.contents=f,m})),b}),I}catch{return!1}},cl=e.ref(0),xl=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=xl(o));else{const t={label:o};s.push(t),n=t}}return s},Nl=a=>{let s=0;for(const n of a)s++,n.children&&(s+=Nl(n.children));return s},$l=(a,s,n=[])=>{let l=0;for(const o of s){if(l>=a.length)break;const t=[...a[l]];if(n.push(t),l++,o.children&&o.children.length>0){const u=[];$l(a.slice(l),o.children,u),u.length>0&&(t.push(u),l+=Nl(o.children))}}return n},qo=(a,s)=>{let n=[];return a==null||a.forEach(o=>{o.some(t=>Array.isArray(t))?n.push(...o):n.push(o)}),$l(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},il=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},Ko=a=>{var n;return a.some(l=>!Array.isArray(l))?a:(n=p.cloneDeep(a))==null?void 0:n.map(l=>{let o=[];return l.some(t=>Array.isArray(t))?l==null||l.forEach(t=>{Array.isArray(t)&&o.push(He(t))}):l.some(t=>t.includes("["))?o.push(l):o=l.map(t=>({label:t.trim()})),o})},Bl=(a,s,n)=>{let l=a,o=n,t=s;return t.children&&(Array.isArray(o[o.length-1])?o[o.length-1].push(l[0]):o.push(l[0]),l.shift(),t=t.children),Array.isArray(t)&&t.forEach(u=>{if(u.children){const c=Bl(l,u,o);o=c[0],l=c[1]}}),[o,l]},Ho=(a,s)=>{let n=a,l=[];return s.length>0?s==null||s.forEach(o=>{let t=n==null?void 0:n[0];n.shift();const u=Bl(p.cloneDeep(n),o,t);t=u[0],n=u[1],l.push(t)}):l=n,l},Qe=(a,s)=>{const n=Ko(p.cloneDeep(a));return Ho(n,s)},Zo=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},Vl=a=>Qe([a],[]),Re=a=>{const s=[];return a==null||a.forEach(n=>n==null?void 0:n.forEach(o=>{var t,u;cl.value++,s.push({id:cl.value,key:(t=Object.keys(o))==null?void 0:t[0],value:(u=Object.values(o))==null?void 0:u[0],width:n.length})})),s},ul=a=>{let s=Zo(a);return s=s==null?void 0:s.map(n=>{var l,o,t,u;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=(t=n==null?void 0:n.value)==null?void 0:t.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=(u=n==null?void 0:n.value)==null?void 0:u.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},Qo=(a,s)=>{var c,h,y,k,w,D;const n=[],l=xl((h=(c=a==null?void 0:a.find(I=>I.key==="tableIndex"))==null?void 0:c.value)==null?void 0:h[0]);n.push({key:"tableIndexColumn",contents:s}),n.push({key:"tableIndex",contents:l});let o=[];const t=(y=a==null?void 0:a.find(I=>I.key==="tableColumns"))==null?void 0:y.value;t.length===1&&!(t!=null&&t[0].some(I=>Array.isArray(I)))?o=(k=t==null?void 0:t[0])==null?void 0:k.map(I=>({label:I})):o=Qe((w=a==null?void 0:a.find(I=>I.key==="tableColumns"))==null?void 0:w.value,l),n.push({key:"header",contents:o});const u=qo((D=a==null?void 0:a.find(I=>I.key==="tableContents"))==null?void 0:D.value,l);return n.push({key:"tableContents",contents:u}),n.push({key:"extraButton",contents:[{label:"新增"}]}),n.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),n},wl=a=>a.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,(s,n,l)=>{const o=wl(l);return`"${n}",${o}`}),Fe=a=>{const s=a.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,'"$1",$2');return wl(s).replace(/^"(.*)"$/,"$1")},Xo=a=>{const s=new Set;return a.filter(n=>{const l=JSON.stringify(n);return s.has(l)?!1:s.add(l)})},pl=a=>{var n;let s=[];return(n=p.cloneDeep(a))==null||n.forEach(l=>{var o;(o=l.contents)==null||o.forEach(t=>{s.push(t)})}),s=Xo(s),s.push({label:"操作"}),[s]},Yo=(a,s)=>a.reduce((n,l,o)=>{const t=Math.floor(o/s);return n[t]||(n[t]=[]),n[t].push(l),n},[]),Tl=a=>a.reduce((s,n)=>n.children&&n.children.length>0?s+Tl(n.children):s+1,0),es=(a,s)=>{var l;let n=[];return(l=Yo(a,Tl(s==null?void 0:s[0])-1))==null||l.forEach(o=>{let t=[];o.forEach(u=>{var c;Array.isArray(u.contents)?(c=u.contents)==null||c.forEach(h=>{t.push(h)}):t.push(u.contents)}),n.push(t)}),[n]},ls=["方法体","输入","输出"],dl=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(),p.cloneDeep(l).split("{").length-1===p.cloneDeep(l).split("}").length-1&&p.cloneDeep(l).split("【").length-1===p.cloneDeep(l).split("】").length-1&&p.cloneDeep(l).split("[").length-1===p.cloneDeep(l).split("]").length-1&&p.cloneDeep(l).split("(").length-1===p.cloneDeep(l).split(")").length-1&&p.cloneDeep(l).split("(").length-1===p.cloneDeep(l).split(")").length-1&&p.cloneDeep(l).split("/*").length-1===p.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},Il=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(),p.cloneDeep(l).split("{").length-1===p.cloneDeep(l).split("}").length-1&&p.cloneDeep(l).split("【").length-1===p.cloneDeep(l).split("】").length-1&&p.cloneDeep(l).split("[").length-1===p.cloneDeep(l).split("]").length-1&&p.cloneDeep(l).split("(").length-1===p.cloneDeep(l).split(")").length-1&&p.cloneDeep(l).split("(").length-1===p.cloneDeep(l).split(")").length-1&&p.cloneDeep(l).split("/*").length-1===p.cloneDeep(l).split("*/").length-1&&(n.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="")):n.push(o.trim().replace(/\/\*[\s\S]*?\*\//g,""));return n},ns=a=>/^[\x00-\x7F]*$/.test(a),as=a=>{var o,t;const s=(o=a.map(u=>{var h,y;let c=(y=(h=u.key.split("("))==null?void 0:h[1])==null?void 0:y.trim();return c==null?void 0:c.slice(0,c.length-1)}))==null?void 0:o.filter(u=>u),n=s==null?void 0:s.map(u=>{var h;return(h=ze(u))==null?void 0:h.map(y=>{var k;if(y.includes("{")){let w=(k=y.split(":"))==null?void 0:k[0];y=w.slice(1,w.length)}return y})}).filter(u=>u.length!==0),l=(t=n==null?void 0:n.filter(u=>u.length!==0))==null?void 0:t.map(u=>{let c="";return u.forEach(h=>{h.includes("{")||(c=c===""?c+p.cloneDeep(h):c+"/"+p.cloneDeep(h))}),c});return Ze([...new Set(l)])},Xe=a=>{var n,l,o,t,u,c,h,y;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):(y=(h=(c=(u=(t=a.split("("))==null?void 0:t[1])==null?void 0:u.trim())==null?void 0:c.split(")"))==null?void 0:h[0])==null?void 0:y.trim()},os=a=>{var o;if(!a)return;const s=Xe(a),n=(o=ze(s))==null?void 0:o.map(t=>{var u;if(t.includes("{")){let c=(u=t.split(":"))==null?void 0:u[0];t=c.slice(1,c.length)}return t});let l="";return n.forEach(t=>{t.includes("{")||(l=l===""?l+p.cloneDeep(t):l+"/"+p.cloneDeep(t))}),l},ss=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,'"'))}}},ts=a=>{var t;if(!a)return;const s=Xe(a);let n=[],l=[],o=[];return(t=ze(s))==null||t.forEach(u=>{var c;u.includes("[")?n.push(ss(u)):u.includes("{")&&(ns((c=u.slice(1,u.length-1).split(":"))==null?void 0:c[0])?o.push(JSON.parse(u.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g,'$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g,'$1"$2"$3'))):ye.IsJson(u.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g,'$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g,'$1"$2"$3'))?l.push(JSON.parse(u.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g,'$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g,'$1"$2"$3'))):u.includes("$"))}),[n,l,o]},rs=a=>{const s=[];let n="";for(const l of a)l.includes("[")||n.includes("[")||l.includes("/*")||n.includes("/*")?(n+=l.trim(),p.cloneDeep(n).split("{").length-1===p.cloneDeep(n).split("}").length-1&&p.cloneDeep(n).split("【").length-1===p.cloneDeep(n).split("】").length-1&&p.cloneDeep(n).split("[").length-1===p.cloneDeep(n).split("]").length-1&&p.cloneDeep(n).split("(").length-1===p.cloneDeep(n).split(")").length-1&&p.cloneDeep(n).split("(").length-1===p.cloneDeep(n).split(")").length-1&&p.cloneDeep(n).split("/*").length-1===p.cloneDeep(n).split("*/").length-1&&(s.push(n.replace(/\/\*[\s\S]*?\*\//g,"")),n="")):s.push(l.trim().replace(/\/\*[\s\S]*?\*\//g,""));return s},fl=a=>{var u,c;const s=[],n=/(?:{'([^']+)'[^}]+}: {'([^']+)'[^}]+}|'([^']+)': {'([^']+)'[^}]+})/,l=a.match(n);if(l){const h=l[1]||l[3],y=l[2]||l[4];if(h&&y){const k=`${h}/${y}`;s.push(k)}}const o=/(https?:\/\/[^\s)]+|Http:\/\/[^\s)]+|\/[^\s)]+)/i,t=a.match(o);return t?s.push(t[0].replace(/\)+$/,"")):(a==null?void 0:a.split(",").length)===2&&s.push((c=(u=a==null?void 0:a.split(","))==null?void 0:u[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,t,u)=>o.includes("'")?`:${l}${o}${t}${u}`:`:${l}"${o}"${t}${u}`),s=s.replace(/:\s*([,\]}])/g,': ""$1'),s},cs=a=>!/\[[^\]]*\{[^\]]*\]/.test(a),is=a=>{const s=p.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 t=null;if(o)try{t=JSON.parse(o)}catch(u){console.error("解析数组失败:",u)}return[n,t]},us=a=>{var c,h,y,k,w,D,I,b,S,m,f;let s=[],n=[],l={},o=[],t=a.trim(),u=[];if(t.trim().includes("输入")&&t.trim().includes("输出")){let v=[],r=a.trim();r=p.cloneDeep(r).slice(1,p.cloneDeep(r).length-1);const d=/(\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})/g;(b=r.match(d))==null||b.forEach((i,g)=>{var R;const O=i;let L=[];(R=O.slice(1,O.length-1).replace(":","$:").split("$:"))==null||R.forEach(K=>{var _,$,x;if(ls.find(T=>K.includes(T)))if(!K.includes("=="))L.push({key:"tableIndexColumn",contents:K.replaceAll("'","")});else{let T=[];const B=K.replaceAll("'","").split("==");T.push(B==null?void 0:B[0]),B!=null&&B[1].includes("[")?T.push(B==null?void 0:B[1].trim().slice(1,(B==null?void 0:B[1].length)-1).split(",")):T.push([B==null?void 0:B[1]]),L.push({key:"header",contents:[($=(_=Vl([T]))==null?void 0:_[0])==null?void 0:$[0]]})}else{let T=K.trim().replaceAll(",",",").replaceAll("'",'"');if(g%3===0)T.slice(1,T.length-1).includes("[")?v.push({key:"tableIndex",contents:[{label:T}]}):v.push({key:"tableIndex",contents:[{label:T.slice(1,T.length-1)}]});else if((T==null?void 0:T[0])==="{"){let B=[];const U=T.slice(1,T.length-1).split(":");if(U.every(W=>ye.IsJson(W.trim()))){B.push({key:"tableContentName",contents:"详情"});let W=[];U.forEach((E,z)=>{if(z===0){const M=JSON.parse(E).map(Z=>({label:Z}));M.push({label:"操作"}),W.push({key:"header",contents:M})}else W.push({key:"tableContents",contents:JSON.parse(E)})}),W.push({key:"extraButton",contents:[{label:"新增"}]}),W.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),B.push({comp:"Table",compData:W,name:""}),v.push({key:"tableContents",contents:[B]})}}else{let B=T;B.slice(1,B.length-1).includes("[")||B.slice(1,B.length-1).includes("{")?ye.IsJson(il(B.replace(/\s+/g,"")))&&((x=JSON.parse(il(B.replace(/\s+/g,""))))==null||x.map(U=>{if(Array.isArray(U==null?void 0:U[0])){const W=[];W.push({key:"tableContentName",contents:"详情"});let E=[];U.forEach(z=>{z.forEach(M=>{var Z,J;dl.value++,E.push({id:dl.value,key:(Z=Object.keys(M))==null?void 0:Z[0],value:(J=Object.values(M))==null?void 0:J[0],width:z.length})})}),W.push({comp:"Form",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:E}],name:""}),v.push({key:"tableContents",contents:[W]})}else v.push({key:"tableContents",contents:U==null?void 0:U[0]})})):v.push({key:"tableContents",contents:B.trim().slice(1,B.length-1)})}}}),v.push(L==null?void 0:L[0])}),u.push({key:"tableIndex",contents:(S=v==null?void 0:v.filter(i=>(i==null?void 0:i.key)==="tableIndex"))==null?void 0:S.map(i=>{var g;return(g=i.contents)==null?void 0:g[0]})}),u.push({key:"extraButton",contents:[{label:"新增"}]}),u.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),u.push({key:"tableIndexColumn",contents:(f=(m=v==null?void 0:v.filter(i=>(i==null?void 0:i.key)==="tableIndexColumn"))==null?void 0:m[0])==null?void 0:f.contents}),u.push({key:"header",contents:pl(v==null?void 0:v.filter(i=>(i==null?void 0:i.key)==="header"))}),u.push({key:"tableContents",contents:es(v==null?void 0:v.filter(i=>(i==null?void 0:i.key)==="tableContents"),pl(v==null?void 0:v.filter(i=>(i==null?void 0:i.key)==="header")))})}else{const v=(c=t.trim().split(",$"))==null?void 0:c[0];v[0]==="["?t=v.slice(1,v.length-1):t.includes(",$")&&(t=(h=t.trim().split(",$"))==null?void 0:h[0]);let r;if(t.includes("$")){t=p.cloneDeep(t),l.method=(k=(y=p.cloneDeep(t).trim())==null?void 0:y.slice(1,t.length).split("("))==null?void 0:k[0];let d;fl(t.slice(1,t.length-2)).length>1?d=fl(t.slice(1,t.length-2)):d=is(t),l.value=d}else ye.IsJson("["+qe(t).replaceAll("'",'"')+"]")&&!cs(qe(t).replaceAll("'",'"'))?(t=JSON.parse("["+qe(t).replaceAll("'",'"')+"]"),o=t):r=(D=(w=p.cloneDeep(t).split("}"))==null?void 0:w.filter(d=>d!==""))==null?void 0:D.map(d=>{let i=d;return i[0]===","?i=i.slice(2,i.length):i=i.slice(1,i.length),i});(I=p.cloneDeep(r))==null||I.forEach(d=>{var i,g,O,L,R,K,_,$,x,T,B,U,W,E,z;if(d.includes("==")){const M=(U=d==null?void 0:d.split(":"))==null?void 0:U[0].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"').replaceAll("'",'"'),Z=(W=d==null?void 0:d.split(":"))==null?void 0:W[1].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"');if(ye.IsJson(Z.trim())?n.push(JSON.parse(Z.trim())):n.push(JSON.parse(Z.replaceAll("'",'"').trim())),M[0]!=="["){let J=[];ye.IsJson("["+Fe(M)+"]")?J.push(JSON.parse("["+Fe(M)+"]")):ye.IsJson("["+Fe(M).replaceAll("==",",")+"]")&&J.push(JSON.parse("["+Fe(M).replaceAll("==",",")+"]"));const se=p.cloneDeep(J);se.push(["操作"]),s.push(se)}else{const J=(E=M.slice(1,M.length-1).replaceAll(",",",|"))==null?void 0:E.split("|"),se=(z=rs(J))==null?void 0:z.map(ce=>((ce==null?void 0:ce[ce.length-1])===","&&(ce=ce.slice(0,ce.length-1)),ce));let te=[];se==null||se.forEach(ce=>{var he,ve,re,ue;let me=[];me.push((he=ce.split("=="))==null?void 0:he[0].trim().replace(/^"|"$/g,"")),((ve=ce.split("=="))==null?void 0:ve[1].trim()[0])==="["?me.push(JSON.parse((re=ce.split("=="))==null?void 0:re[1].trim())):me.push([JSON.parse((ue=ce.split("=="))==null?void 0:ue[1].trim())]),te.push(me)});const ie=p.cloneDeep(te);ie.push(["操作"]),s.push(ie)}}else{if(ye.IsJson((i=d==null?void 0:d.split(":"))==null?void 0:i[0].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"').replaceAll("'",'"'))){let M=JSON.parse((g=d==null?void 0:d.split(":"))==null?void 0:g[0].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"').replaceAll("'",'"'));Array.isArray(M)||(M=[M]),M.push("操作"),s.push(M)}ye.IsJson((R=(L=(O=d==null?void 0:d.split(":"))==null?void 0:O[1])==null?void 0:L.replace(/^"|"$/g,"'"))==null?void 0:R.replace(/'([^']+)'/g,'"$1"'))?n.push(JSON.parse((K=d==null?void 0:d.split(":"))==null?void 0:K[1].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"'))):ye.IsJson((T=(x=($=(_=d==null?void 0:d.split(":"))==null?void 0:_[1])==null?void 0:$.replace(/^"|"$/g,"'"))==null?void 0:x.replaceAll("'",'"'))==null?void 0:T.replace(/'([^']+)'/g,'"$1"'))&&n.push(JSON.parse((B=d==null?void 0:d.split(":"))==null?void 0:B[1].replace(/^"|"$/g,"'").replaceAll("'",'"').replace(/'([^']+)'/g,'"$1"')))}})}return[s,n,u,l,o]},ps=a=>{const s=[],n=os(a==null?void 0:a.key),l=ts(a==null?void 0:a.key),o=us(a==null?void 0:a.value),t=l==null?void 0:l[0],u=o==null?void 0:o[4],c=l==null?void 0:l[1],h=l==null?void 0:l[2],y=o==null?void 0:o[0],k=o==null?void 0:o[1],w=o==null?void 0:o[2],D=o==null?void 0:o[3];return n&&s.push({key:"contentPath",value:n}),(t==null?void 0:t.length)>0&&s.push({key:"tableIndex",value:t}),D&&s.push({key:"extraButton",value:D}),(u==null?void 0:u.length)>0&&s.push({key:"form",value:u}),(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}),(w==null?void 0:w.length)>0&&s.push({comp:"Table",compData:w,name:""}),(y==null?void 0:y.length)>0&&s.push({key:"tableColumns",value:y}),(k==null?void 0:k.length)>0&&s.push({key:"tableContents",value:k}),s},ds=a=>{let s=[],n=[];a==null||a.forEach(o=>{Array.isArray(o)&&(o==null||o.forEach(t=>{var u;t.comp==="FormTop"&&((u=t.compData)==null||u.forEach(c=>{(c==null?void 0:c.key)==="formContent"&&(n=[...n,...c.contents])}))}))});const l=n.reduce((o,t)=>o.find(c=>(c==null?void 0:c.key)===(t==null?void 0:t.key))?o:o.concat([t]),[]);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 t=o.filter(u=>u.comp!=="FormTop");s.push(t)}else o.comp!=="FormTop"&&s.push(o)}),s},fs=(a,s)=>{const n=s.split("/");let l=[];return a==null||a.forEach(o=>{var c,h,y,k,w,D,I,b,S,m,f;const t=[],u=(h=(c=o.find(v=>v.key==="tableIndex"))==null?void 0:c.value)==null?void 0:h[0];if(u&&!u.some(v=>Array.isArray(v))){const v=(k=(y=o.find(r=>r.key==="tableColumns"))==null?void 0:y.value)==null?void 0:k[0];t.push({key:"tableIndexColumn",contents:n[n.length-1]}),t.push({key:"tableIndex",contents:u==null?void 0:u.map(r=>({label:r}))}),t.push({key:"extraButton",contents:[{label:"新增"}]}),t.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),Array.isArray(v)&&v.some(r=>Array.isArray(r))?t.push({key:"header",contents:Vl(v)}):t.push({key:"header",contents:Array.isArray(v)?v==null?void 0:v.map(r=>({label:r})):[v].map(r=>({label:r}))}),t.push({key:"tableContents",contents:Array.isArray(v)?(D=(w=o.find(r=>r.key==="tableContents"))==null?void 0:w.value)==null?void 0:D[0]:(S=(b=(I=o.find(r=>r.key==="tableContents"))==null?void 0:I.value)==null?void 0:b[0])==null?void 0:S.map(r=>[r])}),l.push({comp:"Table",name:"",compData:t}),o!=null&&o.find(r=>(r==null?void 0:r.key)==="formTop")&&l.push({comp:"FormTop",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:Re([(m=o==null?void 0:o.find(r=>(r==null?void 0:r.key)==="formTop"))==null?void 0:m.value])},{key:"enableWrap",contents:!0},{key:"formButton",contents:[{label:"查询"},{label:"重置"}]}],name:""})}else u?(l.push({comp:"Table",name:"",compData:Qo(o,n[n.length-1])}),o!=null&&o.find(v=>(v==null?void 0:v.key)==="formTop")&&l.push({comp:"FormTop",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:Re([(f=o==null?void 0:o.find(v=>(v==null?void 0:v.key)==="formTop"))==null?void 0:f.value])},{key:"enableWrap",contents:!0},{key:"formButton",contents:[{label:"查询"},{label:"重置"}]}],name:""})):o.some(v=>v.key==="extra")?l.push({comp:"calculator",name:"",compData:ul(o)}):l.push(ul(o))}),ds(l)},ms=(a,s)=>{var o,t;const n=a.map(u=>u.filter(c=>c.key!=="contentPath"));return{comp:"Group",compData:[{contents:fs(n,s),key:"groupContents"}],name:(t=(o=a[0])==null?void 0:o.find(u=>u.key==="contentPath"))==null?void 0:t.value}},hs=a=>{var o;const s=[],n=p.cloneDeep(a).map(t=>{var u;if(t!=null&&t.find(c=>(c==null?void 0:c.key)==="contentPath"))return(u=t==null?void 0:t.find(c=>(c==null?void 0:c.key)==="contentPath"))==null?void 0:u.value}).filter(t=>t!==""),l=[...new Set(n)];return(o=l==null?void 0:l.filter(t=>t))==null||o.forEach(t=>{var u;s.push(ms((u=p.cloneDeep(a))==null?void 0:u.filter(c=>c.find(h=>h.key==="contentPath"&&h.value===t)),t))}),s},ys=a=>{let s=[];s.push({comp:"Menu",compData:[{contents:as(p.cloneDeep(a)),key:"menuContents"}],name:""});const n=a.map(l=>ps(l)).filter(l=>l.length!==0);return s=[...s,...hs(n)],s},vs=a=>{var s,n,l,o,t;try{const u=(l=We((n=(s=p.cloneDeep(a))==null?void 0:s.replace("(","("))==null?void 0:n.replace(")",")")))==null?void 0:l.filter(y=>y!==""),c=(t=(o=p.cloneDeep(u))==null?void 0:o.filter(y=>!y.includes("/*")))==null?void 0:t.map(y=>Il(y));return ys(c)}catch{return!1}},Le=e.ref(0),Ke=e.ref(0),ks=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 t=o[1];let u=o[2].trim();(u.match(/\[/g)||[]).length!==(u.match(/\]/g)||[]).length&&(u=u==null?void 0:u.replace(/]$/,"")),l[t]?(l[t+Ke.value]&&Ke.value++,l[t+Ke.value]=t+"="+u):l[t]=t+"="+u}return l},Al=a=>{const[s,n]=a.split("=").map(t=>t.trim()),l=s.replace(/['"]/g,""),o=n.replace(/^['"]|['"]$/g,"");return{key:l,value:o}},gs=a=>{var u;let s=[];const[n,l]=a.split(/=(.+)/),o=n.replace(/['"]/g,"").trim(),t=l.replace(/^['"]|['"]$/g,"");return(u=Object.values(ks(t)))==null||u.forEach(c=>{s.push(Al(c))}),{key:o,value:s}},Ue=a=>{try{return JSON.parse(a),!0}catch{return!1}},Sl=a=>{try{const s=a.replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",").replace(/:/g,":").replace(/:\s*(?=,|}|$)/g,': ""');if(p.cloneDeep(s).split("{").length-1>1){let n=p.cloneDeep(s).replace(/^\{(.*)\}$/,"[$1]");if(Ue(n)&&!n.includes("$")||(n=n.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),Ue(n)){const l=JSON.parse(n);let o=[];return l==null||l.forEach(t=>{var u;(u=Object.entries(p.cloneDeep(t)))==null||u.forEach(c=>{Le.value++,o.push({id:Le.value,key:(c==null?void 0:c[0])??"",value:(c==null?void 0:c[1])===""?"":c==null?void 0:c[1],width:Object.keys(p.cloneDeep(t)).length})})}),o}else return console.error("转换类型不正确:"),[]}else if(Ue(s)){const n=JSON.parse(s);return Object.entries(n).map(([l,o])=>(Le.value++,{id:Le.value,key:l,value:o===""?"":o,width:1}))}else return s}catch(s){return console.error("转换失败:",s),[]}},bs=(a,s)=>{try{if(oe!=null&&oe.find(n=>(n==null?void 0:n.key)===s))return JSON.parse(a.replace(/[’]|[‘]|[']/g,'"'));if(p.cloneDeep(a).split("[").length-1>1){const n=p.cloneDeep(a).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(n)}else{const n=p.cloneDeep(a).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",");if(Ue(n)){const l=JSON.parse(n);return Array.isArray(l)?l.map(o=>({label:o})):l}else return Sl(p.cloneDeep(a))}}catch(n){return console.error("解析失败:",n),a}},Cs=a=>({[a==null?void 0:a.key]:bs(a==null?void 0:a.value,a==null?void 0:a.key)}),Ds=a=>{try{if(p.cloneDeep(a).split("[").length-1>1){const s=p.cloneDeep(a).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(s)}else return JSON.parse(p.cloneDeep(a).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",")).map(n=>({label:n}))}catch(s){return console.error("解析失败:",s),a}},Ol=a=>{var s,n,l,o,t,u;try{const c=We((n=(s=p.cloneDeep(a))==null?void 0:s.replace("(","("))==null?void 0:n.replace(")",")")),h=(l=p.cloneDeep(c))==null?void 0:l.map(w=>{var I,b;let D=(b=(I=p.cloneDeep(w))==null?void 0:I.split("="))==null?void 0:b[0];return D!=null&&D.includes("GroupContents")?gs(w):Al(w)}),y=[];(o=p.cloneDeep(h))==null||o.forEach(w=>{var D,I,b,S,m;oe!=null&&oe.find(f=>{var v,r;return((v=f==null?void 0:f.key)==null?void 0:v.toUpperCase())===((r=w==null?void 0:w.key)==null?void 0:r.toUpperCase())})?y.push({comp:((D=oe==null?void 0:oe.find(f=>{var v,r;return((v=f==null?void 0:f.key)==null?void 0:v.toUpperCase())===((r=w==null?void 0:w.key)==null?void 0:r.toUpperCase())}))==null?void 0:D.value)??"",name:(I=w==null?void 0:w.value)==null?void 0:I.replace(/[’]|[‘]|[']/g,""),compData:[]}):ae!=null&&ae.find(f=>{var v,r;return((v=f==null?void 0:f.key)==null?void 0:v.toUpperCase())===((r=w==null?void 0:w.key)==null?void 0:r.toUpperCase())})&&((y==null?void 0:y.length)===0&&(b=w.key)!=null&&b.includes("Menus")&&y.push({comp:"Menu",name:"",compData:[]}),(S=y==null?void 0:y[(y==null?void 0:y.length)-1])!=null&&S.compData&&y[(y==null?void 0:y.length)-1].compData.push({key:(m=ae==null?void 0:ae.find(f=>{var v,r;return((v=f==null?void 0:f.key)==null?void 0:v.toUpperCase())===((r=w==null?void 0:w.key)==null?void 0:r.toUpperCase())}))==null?void 0:m.value,contents:w==null?void 0:w.value}))}),console.log("newContents",y);let k=(t=p.cloneDeep(y))==null?void 0:t.map(w=>{var D;return w!=null&&w.compData&&(w.compData=(D=w==null?void 0:w.compData)==null?void 0:D.map(I=>{var b,S,m,f,v,r,d,i,g,O,L;if((I==null?void 0:I.key)==="formFlex")I.contents=((S=(b=I.contents)==null?void 0:b.replace(/[’]|[‘]|[']/g,""))==null?void 0:S.toUpperCase())!=="Vertical".toUpperCase();else if((I==null?void 0:I.key)==="groupContents")I.contents=(m=p.cloneDeep(I.contents))==null?void 0:m.map(R=>Cs(p.cloneDeep(R)));else if(((v=(f=I.contents)==null?void 0:f.trim())!=null&&v.startsWith("[")||(d=(r=I.contents)==null?void 0:r.trim())!=null&&d.startsWith("【"))&&((g=(i=I.contents)==null?void 0:i.trim())!=null&&g.endsWith("]")||(L=(O=I.contents)==null?void 0:O.trim())!=null&&L.endsWith("】")))I.contents=Ds(p.cloneDeep(I.contents));else{if(!I.contents)return;I.contents=Sl(p.cloneDeep(I.contents))}return I})),w});return k=(u=p.cloneDeep(k))==null?void 0:u.map(w=>{var D;return(w==null?void 0:w.comp)==="Group"&&(w.compData=(D=w.compData)==null?void 0:D.map(I=>{var S;let b=[];return(S=I.contents)==null||S.forEach(m=>{var f,v,r,d,i,g,O,L,R,K,_,$;if(oe!=null&&oe.find(x=>{var T,B,U;return((T=x==null?void 0:x.key)==null?void 0:T.toUpperCase())===((U=(B=Object.keys(m))==null?void 0:B[0])==null?void 0:U.toUpperCase())}))b.push({comp:(f=oe==null?void 0:oe.find(x=>{var T,B,U;return((T=x==null?void 0:x.key)==null?void 0:T.toUpperCase())===((U=(B=Object.keys(m))==null?void 0:B[0])==null?void 0:U.toUpperCase())}))==null?void 0:f.value,name:(r=(v=Object.values(m))==null?void 0:v[0])==null?void 0:r.replace(/[’]|[‘]|[']/g,""),compData:[]});else if(ae!=null&&ae.find(x=>{var T,B,U;return((T=x==null?void 0:x.key)==null?void 0:T.toUpperCase())===((U=(B=Object.keys(m))==null?void 0:B[0])==null?void 0:U.toUpperCase())})){if((b==null?void 0:b.length)===0)return;(d=b==null?void 0:b[(b==null?void 0:b.length)-1])!=null&&d.compData&&b[(b==null?void 0:b.length)-1].compData.push({key:(i=ae==null?void 0:ae.find(x=>{var T,B,U;return((T=x==null?void 0:x.key)==null?void 0:T.toUpperCase())===((U=(B=Object.keys(m))==null?void 0:B[0])==null?void 0:U.toUpperCase())}))==null?void 0:i.value,contents:(g=Object.values(m))==null?void 0:g[0]})}else if((L=(O=Object.keys(m))==null?void 0:O[0])!=null&&L.includes("$")){const x=(K=(R=Object.keys(p.cloneDeep(m)))==null?void 0:R[0])==null?void 0:K.split("$");b[(b==null?void 0:b.length)-1].compData.push({key:(_=ae==null?void 0:ae.find(T=>{var B,U;return((B=T==null?void 0:T.key)==null?void 0:B.toUpperCase())===((U=x==null?void 0:x[0])==null?void 0:U.toUpperCase())}))==null?void 0:_.value,contents:($=Object.values(m))==null?void 0:$[0],selectLabel:x==null?void 0:x[1]})}return m}),I.contents=b,I})),w}),k}catch{return!1}},_s=a=>Ol(a),Es=a=>!!Ol(a),Ie=e.ref(0),xs=a=>a.reduce((n,l)=>{var t,u;const o=Object.values(n);return(((t=Object.keys(n))==null?void 0:t.length)===0||o[o.length-1].length>=(l==null?void 0:l.width))&&(n[Ie.value]=[],Ie.value++),n[Ie.value-1].push(l),((u=Object.keys(n))==null?void 0:u.length)===(l==null?void 0:l.width)&&(n[Ie.value]=[],Ie.value++),n},{});exports.arrayToNumberArray=xs;exports.contentTransArray=We;exports.expandContentStringToJson=vs;exports.expandNewStringToJson=Go;exports.expandStringToJson=_s;exports.getComponent=Me;exports.getContentValue=Xe;exports.isExpandStringToJson=Es;exports.menuArray=Ze;exports.parseGroupValue=Il;exports.slotContent=Dl;
|
|
@@ -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-BLY3jSMo.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-DRO-doj3.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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-CSFgUZmi.cjs"),a=require("./index-BjoY1ow9.cjs"),r=require("./index-S5bHuqsW.cjs"),o=require("./index-CInyuIT4.cjs"),s=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),c={class:"role-wrapper"},i=e.defineComponent({__name:"index",setup(d){const t=e.reactive({...r.State});return e.onMounted(async()=>{t.structureId=await o.getActivePageStructureId()}),(l,_)=>(e.openBlock(),e.createElementBlock("div",c,[e.createVNode(n.ssForm,{class:"role-header",rowContents:t.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:t.handleQueryChange},null,8,["rowContents","onChange"]),e.createVNode(a.ssTable,{class:"role-body",itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}}),u=s._export_sfc(i,[["__scopeId","data-v-ff9d10a0"]]);exports.default=u;
|