ss-component-new 1.1.256 → 1.1.258

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.
Files changed (102) hide show
  1. package/dist/array-BeL7J4eu.js +4763 -0
  2. package/dist/array-Dwf3pp1a.cjs +7 -0
  3. package/dist/{cloneDeep-D65qCr1M.js → cloneDeep-BferVm6H.js} +1 -1
  4. package/dist/{cloneDeep-DpFtWtui.cjs → cloneDeep-hYL1Afrz.cjs} +1 -1
  5. package/dist/{index-BrNejk6v.js → index-1Pxdg8px.js} +5 -5
  6. package/dist/index-5Auj3phL.cjs +1 -0
  7. package/dist/{index-jXB4NUd1.cjs → index-6CZj96a9.cjs} +1 -1
  8. package/dist/{index-DjljbsvQ.js → index-6aLV7pyi.js} +6 -6
  9. package/dist/{index-GcvQB1OB.js → index-B8G0kWYK.js} +12 -13
  10. package/dist/{index-CH5mx9VZ.cjs → index-B8i3Wijq.cjs} +1 -1
  11. package/dist/index-B8wV8mLL.js +199 -0
  12. package/dist/{index-w1UtzHv-.js → index-BLE2ug66.js} +7 -7
  13. package/dist/{index-DSSzfbXz.js → index-BLUXHcu3.js} +7 -8
  14. package/dist/{index-XU2dA5Uv.js → index-BNM5Bbhn.js} +23 -24
  15. package/dist/{index-zRUxy31r.js → index-BO0JDldf.js} +1 -1
  16. package/dist/{index-CwGC8R8R.js → index-BSOOmOcP.js} +1 -1
  17. package/dist/{index-DoVdmhVZ.js → index-BhKYpS0F.js} +20 -21
  18. package/dist/{index-DKlDs6rr.cjs → index-Bme7QG8P.cjs} +1 -1
  19. package/dist/index-Bnma6H_D.cjs +1 -0
  20. package/dist/{index-BOHz7nwR.js → index-BnyTRSOn.js} +4 -4
  21. package/dist/{index-Bb3Boi4X.js → index-BqAD0yQU.js} +42 -43
  22. package/dist/{index-nfabzKkp.js → index-BuRA2mCc.js} +4 -4
  23. package/dist/{index-BsDpqg06.js → index-ButXOs4c.js} +7 -7
  24. package/dist/{index-DordXHzi.cjs → index-Bzne3pNG.cjs} +1 -1
  25. package/dist/index-C7oO0eCH.js +4199 -0
  26. package/dist/{index-Ddt-py_9.js → index-CD53z5-6.js} +5 -5
  27. package/dist/{index-BLY3jSMo.js → index-CEIWAp5_.js} +8 -8
  28. package/dist/index-CQWAAWyV.cjs +1 -0
  29. package/dist/{index-D4b6fLCT.cjs → index-CTX9zSeG.cjs} +1 -1
  30. package/dist/index-CVRwsXeS.js +671 -0
  31. package/dist/{index-5143SE2R.cjs → index-C_w2xhRh.cjs} +1 -1
  32. package/dist/index-CgbDpv2z.cjs +9 -0
  33. package/dist/index-CgfEj8KO.cjs +1 -0
  34. package/dist/index-Cm57E8Ql.cjs +1 -0
  35. package/dist/{index-DG-rX-h9.cjs → index-CnGFr6Dd.cjs} +1 -1
  36. package/dist/{index-C_lPyJRy.cjs → index-D0PxGV0S.cjs} +1 -1
  37. package/dist/{index-Cs2XSpjM.js → index-D1tWY0PO.js} +77 -76
  38. package/dist/index-DDSwY2o8.cjs +1 -0
  39. package/dist/{index-BFWs_38B.js → index-DDsBn5l0.js} +1 -1
  40. package/dist/index-DEzzOfaa.cjs +1 -0
  41. package/dist/{index-7hpm5RMu.cjs → index-DRL6gZpa.cjs} +1 -1
  42. package/dist/{index-BjoY1ow9.cjs → index-DelCtLkT.cjs} +175 -175
  43. package/dist/index-Df1JlOfX.cjs +1 -0
  44. package/dist/index-DjMOTSvE.cjs +1 -0
  45. package/dist/{index-OGxpX9cx.cjs → index-DleDr3pn.cjs} +1 -1
  46. package/dist/{index-X2R-1WGH.js → index-JRAqJZPj.js} +3 -3
  47. package/dist/{index-Cs6aYNpY.js → index-R2K2-Ktx.js} +1932 -1985
  48. package/dist/{index-CVisVgQj.js → index-V6fZWmWL.js} +1 -1
  49. package/dist/{index-BjXTv-yp.cjs → index-WWIGsH-g.cjs} +1 -1
  50. package/dist/{index-BsqfcSII.js → index-YrUSo_uZ.js} +4 -4
  51. package/dist/{index-DRO-doj3.cjs → index-ZKwBkEiK.cjs} +1 -1
  52. package/dist/{index-DmhJL6si.cjs → index-gaJJh2zB.cjs} +1 -1
  53. package/dist/{index-B1hAxVvT.js → index-iVpiJixE.js} +5 -5
  54. package/dist/{index-BZRyqDKA.cjs → index-otwBW56v.cjs} +1 -1
  55. package/dist/index-t6-Y8dJh.cjs +1 -0
  56. package/dist/{index-CudxvfIs.js → index-zdAmZt8G.js} +4 -4
  57. package/dist/{index.vue_vue_type_script_setup_true_lang-CIP77JiD.cjs → index.vue_vue_type_script_setup_true_lang-Bp0N6DTD.cjs} +1 -1
  58. package/dist/{index.vue_vue_type_script_setup_true_lang-Tw6PfjMa.js → index.vue_vue_type_script_setup_true_lang-_bsSPQD4.js} +1 -1
  59. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-CaalWbFo.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Bl5NBw-o.cjs} +1 -1
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Br85-Gf0.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Ch8nCT3a.js} +6 -6
  61. package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DLi_05S6.js +908 -0
  62. package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-DObCTUZw.cjs +1 -0
  63. package/dist/login-Ci1_gDhC.cjs +1 -0
  64. package/dist/{login-Cvjr869W.js → login-tvgZPNFj.js} +6 -6
  65. package/dist/{main-Cc3OSRwO.cjs → main-BS2vaGyV.cjs} +1 -1
  66. package/dist/{main-DNxdz1id.js → main-Cfq8oZ9O.js} +6 -6
  67. package/dist/menu-CaXxZ-VB.cjs +16 -0
  68. package/dist/menu-DBUuyOMU.js +6783 -0
  69. package/dist/modelComp-BYGFkfVD.cjs +1 -0
  70. package/dist/{modelComp-BTVOfrd2.js → modelComp-CTOnIeyl.js} +7 -3
  71. package/dist/obj/model.mtl +42 -0
  72. package/dist/obj/model.obj +26110 -0
  73. package/dist/ss-component.cjs +1 -1
  74. package/dist/ss-component.css +1 -1
  75. package/dist/ss-component.js +16 -16
  76. package/dist/ss-component3.cjs +1 -1
  77. package/dist/ss-component3.js +1 -1
  78. package/package.json +1 -1
  79. package/public/obj/model.mtl +42 -0
  80. package/public/obj/model.obj +26110 -0
  81. package/dist/array-NRuqpA_a.js +0 -4978
  82. package/dist/array-uS_jzZMI.cjs +0 -7
  83. package/dist/index-7eRz67Nr.js +0 -908
  84. package/dist/index-9qLLF6Sz.cjs +0 -1
  85. package/dist/index-B6QzxKzK.js +0 -2115
  86. package/dist/index-BLZ2LAOD.cjs +0 -1
  87. package/dist/index-BTruFGQP.cjs +0 -1
  88. package/dist/index-BZFuXIEF.cjs +0 -1
  89. package/dist/index-BgvNGJEj.cjs +0 -1
  90. package/dist/index-CInyuIT4.cjs +0 -1
  91. package/dist/index-CRmbzY0-.cjs +0 -1
  92. package/dist/index-CSFgUZmi.cjs +0 -9
  93. package/dist/index-DAwFQtgR.cjs +0 -6
  94. package/dist/index-DfM5skGF.cjs +0 -1
  95. package/dist/index-S5bHuqsW.cjs +0 -1
  96. package/dist/index-yxASh3FK.js +0 -3761
  97. package/dist/index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-CO9vJuxe.js +0 -607
  98. package/dist/index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-DwrbQWhT.cjs +0 -1
  99. package/dist/login-hlCYwdtY.cjs +0 -1
  100. package/dist/menu-BChIacAp.cjs +0 -11
  101. package/dist/menu-BjsF_u0O.js +0 -4867
  102. package/dist/modelComp-BxHtQcEE.cjs +0 -1
@@ -0,0 +1,7 @@
1
+ "use strict";const ve=require("./index-DelCtLkT.cjs"),e=require("vue"),we=require("./index-Bnma6H_D.cjs"),R=require("./index-CgbDpv2z.cjs"),fe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),p=require("./cloneDeep-hYL1Afrz.cjs"),pe=require("./menu-CaXxZ-VB.cjs"),Ve=require("./index-Bzne3pNG.cjs"),Vl=require("./modelComp-BYGFkfVD.cjs"),Xe=require("./index-WWIGsH-g.cjs"),wl=require("./index-C31XRLFj.cjs"),Tl=a=>a.match(/\((.*)\)/)[1],Al={class:"form-content"},Il={__name:"index",props:{formRules:Object,itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number},emits:["change","contentChange"],setup(a,{emit:s}){const n=a,l=s,o=e.ref([]),r=e.ref(!1),d=e.ref([]),i=ve.useFormToTableComp(we.pinia),_=e.ref(!1),v=e.ref(),k=E=>{var h,D,t,u;const $=(D=(h=p.cloneDeep(n.itemData))==null?void 0:h.find(c=>(c==null?void 0:c.key)==="formContent"))==null?void 0:D.contents,b=p.cloneDeep(E.content);let O={};b&&((t=Object.values(b))==null?void 0:t.length)>0&&((u=Object.values(b))==null||u.forEach((c,g)=>{O[$[g].key]=c}));const f={content:O,index:n==null?void 0:n.index,buttonName:E==null?void 0:E.buttonName};l("change",f)},B=E=>{var O,f;if(!E)return;if(((O=Object.values(p.cloneDeep(E)))==null?void 0:O.length)>0){const h=(f=Object.values(p.cloneDeep(E)))==null?void 0:f.map(t=>t);let D="";h==null||h.forEach(t=>{t!==""&&t!==void 0&&(D=D===""?t:D+"/"+t)}),i.setSelectArray(h),i.setSelectString(D)}const $=p.cloneDeep(n.itemData),b=$==null?void 0:$.map(h=>{var D;return(h==null?void 0:h.key)==="formContent"&&((D=h.contents)==null||D.map((t,u)=>{var c,g,L,I,j,Y,ee,m,x,T,y,F,P,H,w,Z,W,ne,ie,me;return t.type=t!=null&&t.type?t.type:(I=(L=(g=(c=t==null?void 0:t.key)==null?void 0:c.split("$"))==null?void 0:g[1])==null?void 0:L.split("("))!=null&&I[0]?(Y=(j=R.FormType)==null?void 0:j.find(U=>{var X,z,oe,he;return(U==null?void 0:U.key)===((he=(oe=(z=(X=t==null?void 0:t.key)==null?void 0:X.split("$"))==null?void 0:z[1])==null?void 0:oe.split("("))==null?void 0:he[0])}))==null?void 0:Y.value:"Input",t.options=t!=null&&t.options?t.options:((x=(m=(ee=t==null?void 0:t.key)==null?void 0:ee.split("$"))==null?void 0:m[1])==null?void 0:x.length)>0?(P=(F=Tl((y=(T=t==null?void 0:t.key)==null?void 0:T.split("$"))==null?void 0:y[1]))==null?void 0:F.split(","))==null?void 0:P.map(U=>({label:U,value:U})):[],(H=t==null?void 0:t.key)!=null&&H.includes("$")&&(t.key=(Z=(w=t==null?void 0:t.key)==null?void 0:w.split("$"))==null?void 0:Z[0]),t.value=Array.isArray((W=Object.values(E))==null?void 0:W[u])?(ie=(ne=Object.values(E))==null?void 0:ne[u])==null?void 0:ie[0]:(me=Object.values(E))==null?void 0:me[u],t})),h});l("contentChange",{contents:b,index:n.index})};return e.watch(()=>n.itemData,async()=>{var h,D,t,u,c,g,L,I,j,Y,ee;const E=(h=p.cloneDeep(n.itemData))==null?void 0:h.find(m=>(m==null?void 0:m.key)==="formContent"),$=(D=p.cloneDeep(n.itemData))==null?void 0:D.find(m=>(m==null?void 0:m.key)==="formButton"),b=(t=p.cloneDeep(n.itemData))==null?void 0:t.find(m=>(m==null?void 0:m.key)==="formFlex"),O=(u=p.cloneDeep(n.itemData))==null?void 0:u.find(m=>(m==null?void 0:m.key)==="formWrap"),f=(c=p.cloneDeep(n.itemData))==null?void 0:c.find(m=>(m==null?void 0:m.key)==="enableWrap");if((O==null?void 0:O.contents)==="纵向"?r.value=!1:r.value=!0,_.value=(f==null?void 0:f.contents)===void 0?!1:f==null?void 0:f.contents,v.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,((L=E==null?void 0:E.contents)==null?void 0:L.length)>0&&Array.isArray(E==null?void 0:E.contents)){const m=[];await((I=E==null?void 0:E.contents)==null?void 0:I.forEach(async(y,F)=>{var P,H,w,Z,W,ne,ie,me,U,X,z,oe;if((y==null?void 0:y.label)!==""){let he=(y==null?void 0:y.label)??(y==null?void 0:y.key)??"",ce=(y==null?void 0:y.type)??"",ue=(y==null?void 0:y.options)??[];if((P=y==null?void 0:y.key)!=null&&P.includes("$")&&(he=(H=p.cloneDeep(y==null?void 0:y.key).split("$"))==null?void 0:H[0],((Z=(w=p.cloneDeep(y==null?void 0:y.key).split("$"))==null?void 0:w[1])==null?void 0:Z.length)>0)){const[Ne,Ee]=(ne=(W=p.cloneDeep(y==null?void 0:y.key).split("$"))==null?void 0:W[1])==null?void 0:ne.split(/[()]/);ce=((ie=R.FormType.find(_e=>(_e==null?void 0:_e.key)===Ne))==null?void 0:ie.value)??"",((me=Ee==null?void 0:Ee.split(","))==null?void 0:me.length)>0&&(ue=(U=Ee==null?void 0:Ee.split(","))==null?void 0:U.map(_e=>({label:_e,value:_e})))}let ae=[];y!=null&&y.contents&&!Array.isArray(y==null?void 0:y.contents)&&((z=(X=y==null?void 0:y.contents)==null?void 0:X.split(","))==null||z.map(Ne=>({label:Ne,value:Ne}))),m.push({label:he??"",name:"t"+F,type:ce===""?"Input":ce,value:y!=null&&y.originalContent&&(y==null?void 0:y.originalContent)!==""?y.originalContent:y!=null&&y.value?y.value:(ue==null?void 0:ue.length)>0?(oe=ue==null?void 0:ue[0])==null?void 0:oe.value:(y==null?void 0:y.value)??"",id:(y==null?void 0:y.id)??F,contents:(ae==null?void 0:ae.length)>0?ae:ue??[],width:(y==null?void 0:y.width)??1,config:y==null?void 0:y.config,optionUrl:y})}}));const x=(j=p.cloneDeep(m))==null?void 0:j.map(y=>y.value);let T="";x==null||x.forEach(y=>{y!==""&&y!==void 0&&(T=T===""?y:T+"/"+y)}),i.setSelectArray(x),i.setSelectString(T),o.value=m}else o.value=[];if(((Y=$==null?void 0:$.contents)==null?void 0:Y.length)>0){const m=[];(ee=$==null?void 0:$.contents)==null||ee.forEach((x,T)=>{(x==null?void 0:x.label)!==""&&m.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})}),d.value=m}else d.value=[]},{deep:!0,immediate:!0}),(E,$)=>(e.openBlock(),e.createElementBlock("div",Al,[(e.openBlock(),e.createBlock(R.ssForm,{rowContents:o.value,formRules:a.formRules,buttonValue:d.value,isRowFlex:v.value,isEnableWrap:_.value,onOnButtonClick:k,onChange:B,isButtonRow:r.value,key:n.itemData},null,8,["rowContents","formRules","buttonValue","isRowFlex","isEnableWrap","isButtonRow"]))]))}},Ye=fe._export_sfc(Il,[["__scopeId","data-v-e939562f"]]),Le=e.ref(0),cl=a=>{var s;return!a||(a==null?void 0:a.length)===0?[]:(s=p.cloneDeep(a))==null?void 0:s.map(l=>(Le.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)??Le.value,children:cl(l==null?void 0:l.children)},l))},Fl=a=>{var n;return(n=p.cloneDeep(a))==null?void 0:n.map(l=>(Le.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)??Le.value,children:cl(l==null?void 0:l.children)},l))},il=(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=il(l==null?void 0:l.children,s),l)),a)},ul=(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=ul(l==null?void 0:l.children,s),l)),a)},pl=(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 r;return(o==null?void 0:o.id)===((r=s==null?void 0:s.contents)==null?void 0:r.id)&&(o=s==null?void 0:s.contents),o}):(a=a==null?void 0:a.map(l=>(l.children=pl(l==null?void 0:l.children,s),l)),a)},dl=(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=dl(l==null?void 0:l.children,s),l)),a)},le=[{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"}],Ol=[{label:"view",value:"查看"},{label:"fix",value:"修改"},{label:"delete",value:"删除"}],Sl=[{label:"add",value:"新增"}],Be=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Sl},{key:"background",label:"按钮背景色",type:"Color"}],$e=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ol},{key:"textColor",label:"按钮颜色",type:"Color"}],fl=pe.defineStore("modelTableComp",{state:()=>({tableIndex:0}),actions:{setTableIndex(a){this.tableIndex=a}}}),Ll={class:"table-header-child"},jl={class:"table-header-child-main"},Ul={class:"table-header-child-content"},Jl={class:"table-header-child-content-item"},Rl={class:"fix-button"},Pl={key:0},Wl={class:"form-content"},Ml={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:s}){const n=a,l=s,o=e.ref(!1),r=e.ref(""),d=fl(we.pinia),{tableIndex:i}=pe.storeToRefs(d);e.ref(0);const _=e.ref(""),v=e.ref([]),k=e.ref([]),B=t=>{var c;o.value=!0;let u=[];le==null||le.forEach(g=>{let L=p.cloneDeep(i.value)+1;d.setTableIndex(L),u.push({label:g==null?void 0:g.label,name:g==null?void 0:g.label,type:g.type,value:t[g.key],id:i.value,contents:g==null?void 0:g.options})}),t!=null&&t.children&&((c=t==null?void 0:t.children)==null?void 0:c.length)>0&&u.push({children:t==null?void 0:t.children,isFormColHidden:!0}),_.value=t==null?void 0:t.id,v.value=u,k.value=u},E=t=>{l("fixChange",p.cloneDeep(t))},$=t=>{l("deleteChange",p.cloneDeep(t))},b=t=>{o.value=!0;let u=[];le==null||le.forEach(c=>{let g=p.cloneDeep(i.value)+1;d.setTableIndex(g),u.push({label:c==null?void 0:c.label,name:c==null?void 0:c.label,type:c.type,value:"",id:i.value,contents:c==null?void 0:c.options})}),r.value=t==null?void 0:t.id,v.value=u,k.value=u},O=t=>{let u=p.cloneDeep(k.value);u=u==null?void 0:u.map(c=>(c.children||(c.value=t==null?void 0:t[c.name]),c)),k.value=u},f=()=>{var u,c;v.value=k.value;let t={};if(_.value!=="")t.id=_.value,(u=v.value)==null||u.forEach(g=>{const L=le==null?void 0:le.find(I=>(I==null?void 0:I.label)===(g==null?void 0:g.label));L?t[L.key]=g.value:g!=null&&g.children&&g.children.length>0&&(t.children=g.children)}),o.value=!1,l("fixChange",{contents:p.cloneDeep(t),id:r.value,type:"fix"});else{let g=p.cloneDeep(i.value)+1;d.setTableIndex(g),t.id="id"+i.value,(c=v.value)==null||c.forEach(L=>{const I=le==null?void 0:le.find(j=>(j==null?void 0:j.label)===(L==null?void 0:L.label));I?t[I.key]=L.value:L!=null&&L.children&&L.children.length>0&&(t.children=L.children)}),o.value=!1,l("fixChange",{contents:p.cloneDeep(t),id:r.value,type:"add"})}_.value="",v.value=[],k.value=[]},h=()=>{o.value=!1,_.value="",r.value="",v.value=[],k.value=[]},D=t=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{l("deleteChange",t),pe.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(t,u)=>{const c=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",Ll,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n==null?void 0:n.tableChildContents,(g,L)=>(e.openBlock(),e.createElementBlock("div",jl,[e.createElementVNode("div",Ul,[e.createElementVNode("div",Jl,e.toDisplayString(g.label),1),e.createElementVNode("div",Rl,[e.createVNode(c,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:I=>b(g)},null,8,["onClick"]),e.createVNode(c,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:I=>B(g)},null,8,["onClick"]),e.createVNode(c,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:I=>D(g)},null,8,["onClick"])])]),g!=null&&g.children&&g.children.length>0?(e.openBlock(),e.createElementBlock("div",Pl,[e.createVNode(ml,{tableChildContents:g==null?void 0:g.children,onDeleteChange:$,onFixChange:E},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(R.ssDialog,{visible:o.value,onBeforeDestroy:h,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Wl,[(e.openBlock(),e.createBlock(R.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!0,onChange:O},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:h,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:f},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},zl=fe._export_sfc(Ml,[["__scopeId","data-v-e0fef72d"]]),Gl={class:"table-header-child"},ql={class:"table-header-child-main"},Hl={class:"table-header-child-content"},Zl={class:"table-header-child-content-item"},Kl={class:"fix-button"},Ql={key:0},Xl={class:"form-content"},Yl={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(a,{emit:s}){const n=a,l=s,o=e.ref(!1),r=e.ref(""),d=fl(we.pinia),{tableIndex:i}=pe.storeToRefs(d),_=e.ref(""),v=e.ref([]),k=e.ref([]),B=t=>{l("fixChange",p.cloneDeep(t))},E=t=>{var c;o.value=!0;let u=[];le==null||le.forEach(g=>{let L=p.cloneDeep(i.value)+1;d.setTableIndex(L),u.push({label:g==null?void 0:g.label,name:g==null?void 0:g.label,type:g.type,value:t[g.key],id:i.value,contents:g==null?void 0:g.options})}),t!=null&&t.children&&((c=t==null?void 0:t.children)==null?void 0:c.length)>0&&u.push({children:t==null?void 0:t.children,isFormColHidden:!0}),_.value=t==null?void 0:t.id,v.value=u,k.value=u},$=t=>{o.value=!0;let u=[];le==null||le.forEach(c=>{let g=p.cloneDeep(i.value)+1;d.setTableIndex(g),u.push({label:c==null?void 0:c.label,name:c==null?void 0:c.label,type:c.type,value:"",id:i.value,contents:c==null?void 0:c.options})}),r.value=t==null?void 0:t.id,v.value=u,k.value=u},b=t=>{let u=p.cloneDeep(k.value);u=u==null?void 0:u.map(c=>(c.children||(c.value=t==null?void 0:t[c.name]),c)),k.value=u},O=()=>{var u,c;v.value=k.value;let t={};if(_.value!=="")t.id=_.value,(u=v.value)==null||u.forEach(g=>{const L=le==null?void 0:le.find(I=>(I==null?void 0:I.label)===(g==null?void 0:g.label));L?t[L.key]=g.value:g!=null&&g.children&&g.children.length>0&&(t.children=g.children)}),o.value=!1,l("fixChange",{contents:p.cloneDeep(t),id:r.value,type:"fix"});else{let g=p.cloneDeep(i.value)+1;d.setTableIndex(g),t.id="idChild"+i.value,(c=v.value)==null||c.forEach(L=>{const I=le==null?void 0:le.find(j=>(j==null?void 0:j.label)===(L==null?void 0:L.label));I?t[I.key]=L.value:L!=null&&L.children&&L.children.length>0&&(t.children=L.children)}),o.value=!1,l("fixChange",{contents:p.cloneDeep(t),id:r.value,type:"add"})}_.value="",v.value=[],k.value=[]},f=()=>{o.value=!1,_.value="",r.value="",v.value=[],k.value=[]},h=t=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{l("deleteChange",t),pe.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},D=t=>{l("deleteChange",t)};return(t,u)=>{const c=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",Gl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n==null?void 0:n.tableChildContents,(g,L)=>(e.openBlock(),e.createElementBlock("div",ql,[e.createElementVNode("div",Hl,[e.createElementVNode("div",Zl,e.toDisplayString(g.label),1),e.createElementVNode("div",Kl,[e.createVNode(c,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:I=>$(g)},null,8,["onClick"]),e.createVNode(c,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:I=>E(g)},null,8,["onClick"]),e.createVNode(c,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:I=>h(g)},null,8,["onClick"])])]),g!=null&&g.children&&g.children.length>0?(e.openBlock(),e.createElementBlock("div",Ql,[e.createVNode(zl,{tableChildContents:g==null?void 0:g.children,onDeleteChange:D,onFixChange:B},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),256)),e.createVNode(R.ssDialog,{visible:o.value,onBeforeDestroy:f,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Xl,[(e.openBlock(),e.createBlock(R.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!0,onChange:b},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:O},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},ml=fe._export_sfc(Yl,[["__scopeId","data-v-cc311a5f"]]),en={class:"table-operate-content"},ln={class:"table-operate-item"},nn={class:"operate-title"},an={class:"operate-content"},on={class:"fix-content"},sn={class:"fix-content-label"},tn={class:"fix-button"},rn={key:0},cn={class:"operate-title"},un={class:"operate-content"},pn={class:"fix-content"},dn={class:"fix-content-label"},fn={class:"fix-button"},mn={class:"operate-title"},hn={class:"operate-content"},yn={class:"fix-content"},vn={class:"fix-content-label"},kn={class:"fix-button"},gn={class:"operate-title"},bn={class:"operate-content"},Cn={class:"fix-content"},Dn={class:"fix-content-label"},_n={class:"fix-button"},En={class:"operate-content"},xn={style:{display:"flex","justify-content":"space-between"}},Nn={class:"form-content"},Bn={class:"form-content"},$n={class:"form-content"},Vn={class:"form-content"},wn={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:s}){const n=a,l=s,o=e.ref([]),r=e.ref(!1),d=e.ref(!1),i=e.ref([]),_=e.ref(!1),v=e.ref([]),k=e.ref(!1),B=e.ref([]),E=e.ref(""),$=e.ref(""),b=e.ref([]),O=e.ref([]),f=e.ref([]),h=e.ref([]),D=e.ref(!1),t=e.ref([]),u=e.ref([]),c=e.ref(0),g=e.ref([]),L=e.ref([]),I=e.ref([]),j=()=>{D.value=!0;let C=[];Be==null||Be.forEach(N=>{c.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:c.value,contents:N==null?void 0:N.options})}),t.value=C,u.value=C},Y=()=>{var N,A,V;d.value=!0;let C=[];(V=(A=(N=R.FormContent)==null?void 0:N.find(G=>(G==null?void 0:G.key)==="Input"))==null?void 0:A.value)==null||V.forEach(G=>{c.value++,C.push({label:G==null?void 0:G.label,name:G==null?void 0:G.label,type:G.type,value:(G==null?void 0:G.label)==="类型"?"Input":"",id:c.value,contents:G==null?void 0:G.options})}),g.value=C,L.value=C},ee=async C=>{var N,A,V,G,K,de,J,q,re,ye;if((C==null?void 0:C.类型)!==((A=(N=L.value)==null?void 0:N.find(Q=>(Q==null?void 0:Q.label)==="类型"))==null?void 0:A.value)){let Q=[],ke=await((K=(G=(V=R.FormContent)==null?void 0:V.find(M=>(M==null?void 0:M.key)===((C==null?void 0:C.类型)===""?"Input":C==null?void 0:C.类型)))==null?void 0:G.value)==null?void 0:K.value)?await((ye=(re=(q=R.FormContent)==null?void 0:q.find(M=>(M==null?void 0:M.key)===((C==null?void 0:C.类型)===""?"Input":C==null?void 0:C.类型)))==null?void 0:re.value)==null?void 0:ye.value):(J=(de=R.FormContent)==null?void 0:de.find(M=>(M==null?void 0:M.key)===((C==null?void 0:C.类型)===""?"Input":C==null?void 0:C.类型)))==null?void 0:J.value;ke==null||ke.forEach(M=>{c.value++,Q.push({label:M==null?void 0:M.label,name:M==null?void 0:M.label,type:M.type,value:(C==null?void 0:C[M.label])??"",id:c.value,contents:M==null?void 0:M.options})}),L.value=Q,g.value=Q}else{let Q=p.cloneDeep(g.value);Q=Q==null?void 0:Q.map(ke=>(ke.value=C==null?void 0:C[ke.name],ke)),L.value=Q}},m=async C=>{var V,G,K,de,J,q,re,ye;d.value=!0;let N=[];const A=await((K=(G=(V=R.FormContent)==null?void 0:V.find(Q=>(Q==null?void 0:Q.key)===((C==null?void 0:C.type)===""?"Input":C==null?void 0:C.type)))==null?void 0:G.value)==null?void 0:K.value)?await((ye=(re=(q=R.FormContent)==null?void 0:q.find(Q=>(Q==null?void 0:Q.key)===((C==null?void 0:C.type)===""?"Input":C==null?void 0:C.type)))==null?void 0:re.value)==null?void 0:ye.value):(J=(de=R.FormContent)==null?void 0:de.find(Q=>(Q==null?void 0:Q.key)===((C==null?void 0:C.type)===""?"Input":C==null?void 0:C.type)))==null?void 0:J.value;A==null||A.forEach(Q=>{c.value++,N.push({label:Q==null?void 0:Q.label,name:Q==null?void 0:Q.label,type:Q.type,value:(Q==null?void 0:Q.label)==="类型"&&C[Q.key]===""?"Input":C[Q.key],id:c.value,contents:Q==null?void 0:Q.options})}),E.value=C==null?void 0:C.id,g.value=N,L.value=N},x=C=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var N,A;I.value=(N=p.cloneDeep(I.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=I.value),V))),pe.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},T=()=>{d.value=!1,g.value=[],E.value=""},y=async()=>{var V,G,K,de,J,q,re,ye,Q,ke;g.value=L.value;let C={};E.value!==""?C.id=E.value:(c.value++,C.id="id"+c.value);let N=await((K=(G=(V=R.FormContent)==null?void 0:V.find(M=>{var ge,Ce;return(M==null?void 0:M.key)===(((Ce=(ge=g.value)==null?void 0:ge.find(xe=>(xe==null?void 0:xe.label)==="类型"))==null?void 0:Ce.value)??"label")}))==null?void 0:G.value)==null?void 0:K.value)??((J=(de=R.FormContent)==null?void 0:de.find(M=>{var ge,Ce;return(M==null?void 0:M.key)===(((Ce=(ge=g.value)==null?void 0:ge.find(xe=>(xe==null?void 0:xe.label)==="类型"))==null?void 0:Ce.value)??"label")}))==null?void 0:J.value);if((q=g.value)==null||q.forEach(M=>{const ge=N==null?void 0:N.find(Ce=>(Ce==null?void 0:Ce.label)===(M==null?void 0:M.label));ge&&(C[ge.key]=M.value)}),C.name=C.label,(re=I.value)!=null&&re.find(M=>M.id===C.id))I.value=(ye=I.value)==null?void 0:ye.map(M=>(M.id===C.id&&(M=C),M));else{let M=p.cloneDeep(I.value);I.value||(I.value=[]),M.push(C),I.value=M}I.value=I.value.map(({id:M,...ge})=>ge),d.value=!1,E.value="";let A=p.cloneDeep(n.originalItemContents);(Q=p.cloneDeep(n.originalItemContents))!=null&&Q.find(M=>(M==null?void 0:M.key)==="tableToForm")?A=(ke=p.cloneDeep(n.originalItemContents))==null?void 0:ke.map(M=>((M==null?void 0:M.key)==="tableToForm"&&(M.contents=I.value),M)):A.push({key:"tableToForm",contents:I.value}),l("change",A)},F=C=>{D.value=!0;let N=[];Be==null||Be.forEach(A=>{c.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:c.value,contents:A==null?void 0:A.options})}),E.value=C==null?void 0:C.id,t.value=N,u.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 P=C=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var N,A;O.value=(N=p.cloneDeep(O.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=O.value),V))),pe.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},H=()=>{var A,V,G,K,de;t.value=u.value;let C={};if(E.value!==""?C.id=E.value:(c.value++,C.id="id"+c.value),(A=t.value)==null||A.forEach(J=>{const q=Be==null?void 0:Be.find(re=>(re==null?void 0:re.label)===(J==null?void 0:J.label));q?C[q.key]=J.value:J!=null&&J.children&&J.children.length>0&&(C.children=J.children)}),(V=O.value)!=null&&V.find(J=>J.id===C.id))O.value=(G=O.value)==null?void 0:G.map(J=>(J.id===C.id&&(J=C),J));else{let J=p.cloneDeep(O.value);J.push(C),O.value=J}D.value=!1,E.value="";let N=p.cloneDeep(n.originalItemContents);(K=p.cloneDeep(n.originalItemContents))!=null&&K.find(J=>(J==null?void 0:J.key)==="extraButton")?N=(de=p.cloneDeep(n.originalItemContents))==null?void 0:de.map(J=>((J==null?void 0:J.key)==="extraButton"&&(J.contents=O.value),J)):N.push({key:"extraButton",contents:O.value}),l("change",N)},w=C=>{let N=p.cloneDeep(u.value);N=N==null?void 0:N.map(A=>(A.children||(A.value=C==null?void 0:C[A.name]),A)),u.value=N},Z=()=>{D.value=!1,t.value=[],E.value=""},W=C=>{_.value=!0;let N=[];$e==null||$e.forEach(A=>{c.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:c.value,contents:A==null?void 0:A.options})}),E.value=C==null?void 0:C.id,f.value=N,h.value=N},ne=C=>{Ve.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))),pe.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},ie=()=>{r.value=!0;let C=[];le==null||le.forEach(N=>{c.value++,C.push({label:N==null?void 0:N.label,name:N==null?void 0:N.label,type:N.type,value:"",id:c.value,contents:N==null?void 0:N.options})}),v.value=C,B.value=C},me=()=>{_.value=!0;let C=[];$e==null||$e.forEach(N=>{c.value++,C.push({label:N==null?void 0:N.label,name:N==null?void 0:N.label,type:N.type,value:"",id:c.value,contents:N==null?void 0:N.options})}),f.value=C,h.value=C},U=C=>{let N=p.cloneDeep(h.value);N=N==null?void 0:N.map(A=>(A.children||(A.value=C==null?void 0:C[A.name]),A)),h.value=N},X=()=>{var A,V,G,K,de;f.value=h.value;let C={};if(E.value!==""?C.id=E.value:(c.value++,C.id="id"+c.value),(A=f.value)==null||A.forEach(J=>{const q=$e==null?void 0:$e.find(re=>(re==null?void 0:re.label)===(J==null?void 0:J.label));q?C[q.key]=J.value:J!=null&&J.children&&J.children.length>0&&(C.children=J.children)}),(V=b.value)!=null&&V.find(J=>J.id===C.id))b.value=(G=b.value)==null?void 0:G.map(J=>(J.id===C.id&&(J=C),J));else{let J=p.cloneDeep(b.value);J.push(C),b.value=J}_.value=!1,E.value="";let N=p.cloneDeep(n.originalItemContents);(K=p.cloneDeep(n.originalItemContents))!=null&&K.find(J=>(J==null?void 0:J.key)==="rowButton")?N=(de=p.cloneDeep(n.originalItemContents))==null?void 0:de.map(J=>((J==null?void 0:J.key)==="rowButton"&&(J.contents=b.value),J)):N.push({key:"rowButton",contents:b.value}),l("change",N)},z=()=>{_.value=!1,E.value="",h.value=[],f.value=[]},oe=C=>{r.value=!0;let N=[];le==null||le.forEach(A=>{c.value++,N.push({label:A==null?void 0:A.label,name:A==null?void 0:A.label,type:A.type,value:"",id:c.value,contents:A==null?void 0:A.options})}),v.value=N,$.value=C==null?void 0:C.id,B.value=N},he=C=>{var N;i.value=il(p.cloneDeep(i.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=i.value)!=null&&V.some(G=>G==null?void 0:G.children)?[i.value]:i.value),A}))},ce=C=>{var A,V,G;C.type==="fix"?C.id!==""?i.value=pl(i.value,C):i.value=ul(i.value,C==null?void 0:C.contents):i.value=dl(i.value,C),i.value=(A=i.value)!=null&&A.some(K=>K==null?void 0:K.children)?[i.value]:i.value,E.value="";let N=p.cloneDeep(n.originalItemContents);(V=p.cloneDeep(n.originalItemContents))!=null&&V.find(K=>(K==null?void 0:K.key)==="header")?N=(G=p.cloneDeep(n.originalItemContents))==null?void 0:G.map(K=>((K==null?void 0:K.key)==="header"&&(K.contents=i.value),K)):N.push({key:"header",contents:i.value}),l("change",N)},ue=C=>{var A;r.value=!0;let N=[];le==null||le.forEach(V=>{c.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:c.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}),E.value=C==null?void 0:C.id,$.value="",v.value=N,B.value=N},ae=C=>{let N=p.cloneDeep(B.value);N=N==null?void 0:N.map(A=>(A.children||(A.value=C==null?void 0:C[A.name]),A)),B.value=N},Ne=()=>{r.value=!1,E.value="",$.value="",B.value=[]},Ee=()=>{var A,V,G,K,de,J;v.value=B.value;let C={};if(E.value!==""?C.id=E.value:(c.value++,C.id="id"+c.value),(A=v.value)==null||A.forEach(q=>{const re=le==null?void 0:le.find(ye=>(ye==null?void 0:ye.label)===(q==null?void 0:q.label));re?C[re.key]=q.value:q!=null&&q.children&&q.children.length>0&&(C.children=q.children)}),(V=i.value)!=null&&V.find(q=>q.id===C.id))i.value=(G=i.value)==null?void 0:G.map(q=>(q.id===C.id&&(q=C),q));else{let q=p.cloneDeep(i.value)??[];$.value===""?q.push(C):q=q==null?void 0:q.map(re=>(re.id===$.value&&(re.children||(re.children=[]),re.children.push(C)),re)),i.value=q}i.value=(K=i.value)!=null&&K.some(q=>q==null?void 0:q.children)?[i.value]:i.value,r.value=!1,E.value="",$.value="";let N=p.cloneDeep(n.originalItemContents);(de=p.cloneDeep(n.originalItemContents))!=null&&de.find(q=>(q==null?void 0:q.key)==="header")?N=(J=p.cloneDeep(n.originalItemContents))==null?void 0:J.map(q=>((q==null?void 0:q.key)==="header"&&(q.contents=i.value),q)):N.push({key:"header",contents:i.value}),l("change",N)},_e=C=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var N,A;i.value=(N=p.cloneDeep(i.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 G;return(V==null?void 0:V.key)==="header"&&(V.contents=(G=i.value)!=null&&G.some(K=>K==null?void 0:K.children)?[i.value]:i.value),V})),pe.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return e.watch(()=>n.originalItemContents,()=>{var C,N,A,V,G,K,de,J,q,re,ye,Q,ke,M,ge,Ce,xe,Ke,Qe;if(!(!n.originalItemContents||n.originalItemContents.length===0))if(o.value=p.cloneDeep(n.originalItemContents),i.value=(N=(C=o.value)==null?void 0:C.find(S=>(S==null?void 0:S.key)==="header"))==null?void 0:N.contents,b.value=(V=(A=o.value)==null?void 0:A.find(S=>(S==null?void 0:S.key)==="rowButton"))==null?void 0:V.contents,O.value=(K=(G=o.value)==null?void 0:G.find(S=>(S==null?void 0:S.key)==="extraButton"))==null?void 0:K.contents,k.value=(J=(de=o.value)==null?void 0:de.find(S=>(S==null?void 0:S.key)==="page"))!=null&&J.contents?!!((re=(q=o.value)==null?void 0:q.find(S=>(S==null?void 0:S.key)==="page"))!=null&&re.contents):!1,I.value=(Q=(ye=o.value)==null?void 0:ye.find(S=>(S==null?void 0:S.key)==="tableToForm"))==null?void 0:Q.contents,i.value=(ke=i.value)==null?void 0:ke.map((S,De)=>(Array.isArray(S)?S=Fl(S):S={label:(S==null?void 0:S.label)??"",prop:(S==null?void 0:S.label)==="操作"?"operate":S==null?void 0:S.prop,width:S!=null&&S.width?parseInt(S.width):"",fixed:(S==null?void 0:S.fixed)??void 0,sortable:(S==null?void 0:S.sortable)??!1,align:(S==null?void 0:S.align)??"center",showOverflowTooltip:(S==null?void 0:S.showOverflowTooltip)??!0,isNotDrag:(S==null?void 0:S.isNotDrag)??!1,isEditCol:(S==null?void 0:S.isEditCol)??!1,isOperate:(S==null?void 0:S.isOperate)??!1,id:(S==null?void 0:S.id)??De},S)),i.value=(M=i.value)!=null&&M.every(S=>Array.isArray(S))?(ge=i.value)==null?void 0:ge[0]:i.value,b.value=(Ce=b.value)==null?void 0:Ce.map((S,De)=>S={label:(S==null?void 0:S.label)??"",type:(S==null?void 0:S.type)??"",textColor:(S==null?void 0:S.textColor)??"#000000",id:(S==null?void 0:S.id)??De}),O.value=(xe=O.value)==null?void 0:xe.map((S,De)=>S={label:(S==null?void 0:S.label)??"",type:(S==null?void 0:S.type)??"",background:(S==null?void 0:S.background)??"var(--ssComponent-primary-color)",id:(S==null?void 0:S.id)??De}),I.value)I.value=(Qe=I.value)==null?void 0:Qe.map(S=>{c.value++;let De=S;return De.id=c.value,De});else{let S=[];const De=(Ke=R.getColumnChild(p.cloneDeep(i.value)))==null?void 0:Ke.filter(be=>(be==null?void 0:be.prop)!=="operate");De==null||De.forEach(be=>{c.value++,S.push({label:be==null?void 0:be.label,name:be==null?void 0:be.label,type:"Input",value:"",id:c.value,contents:be==null?void 0:be.options})}),I.value=S}},{deep:!0,immediate:!0}),(C,N)=>{const A=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",en,[e.createElementVNode("div",ln,[e.createElementVNode("div",nn,[N[2]||(N[2]=e.createElementVNode("div",null,e.toDisplayString("表头"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:ie},[e.createVNode(A,{name:"Plus",class:"icon-size"}),N[1]||(N[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",an,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(V,G)=>(e.openBlock(),e.createElementBlock("div",{key:G},[e.createElementVNode("div",on,[e.createElementVNode("div",sn,e.toDisplayString(V==null?void 0:V.label),1),e.createElementVNode("div",tn,[e.createVNode(A,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:K=>oe(V)},null,8,["onClick"]),e.createVNode(A,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:K=>ue(V)},null,8,["onClick"]),e.createVNode(A,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:K=>_e(V)},null,8,["onClick"])])]),V!=null&&V.children&&V.children.length>0?(e.openBlock(),e.createElementBlock("div",rn,[e.createVNode(ml,{tableChildContents:V==null?void 0:V.children,onDeleteChange:he,onFixChange:ce},null,8,["tableChildContents"])])):e.createCommentVNode("",!0)]))),128))]),e.createElementVNode("div",cn,[N[4]||(N[4]=e.createElementVNode("div",null,e.toDisplayString("行内按钮"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:me},[e.createVNode(A,{name:"Plus",class:"icon-size"}),N[3]||(N[3]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",un,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(V,G)=>(e.openBlock(),e.createElementBlock("div",{key:G},[e.createElementVNode("div",pn,[e.createElementVNode("div",dn,e.toDisplayString(V==null?void 0:V.label),1),e.createElementVNode("div",fn,[e.createVNode(A,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:K=>W(V)},null,8,["onClick"]),e.createVNode(A,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:K=>ne(V)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",mn,[N[6]||(N[6]=e.createElementVNode("div",null,e.toDisplayString("表外按钮"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:j},[e.createVNode(A,{name:"Plus",class:"icon-size"}),N[5]||(N[5]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",hn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,(V,G)=>(e.openBlock(),e.createElementBlock("div",{key:G},[e.createElementVNode("div",yn,[e.createElementVNode("div",vn,e.toDisplayString(V==null?void 0:V.label),1),e.createElementVNode("div",kn,[e.createVNode(A,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:K=>F(V)},null,8,["onClick"]),e.createVNode(A,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:K=>P(V)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",gn,[N[8]||(N[8]=e.createElementVNode("div",null,e.toDisplayString("表格弹框字段设置"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:Y},[e.createVNode(A,{name:"Plus",class:"icon-size"}),N[7]||(N[7]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",bn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,(V,G)=>(e.openBlock(),e.createElementBlock("div",{key:G},[e.createElementVNode("div",Cn,[e.createElementVNode("div",Dn,e.toDisplayString(V==null?void 0:V.label),1),e.createElementVNode("div",_n,[e.createVNode(A,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:K=>m(V)},null,8,["onClick"]),e.createVNode(A,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:K=>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",En,[e.createElementVNode("div",xn,[N[9]||(N[9]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否分页"),-1)),e.createVNode(R._sfc_main$1,{modelValue:k.value,"onUpdate:modelValue":N[0]||(N[0]=V=>k.value=V)},null,8,["modelValue"])])])]),e.createVNode(R.ssDialog,{visible:r.value,onBeforeDestroy:Ne,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Nn,[(e.openBlock(),e.createBlock(R.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!0,onChange:ae},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(R.ssDialog,{visible:_.value,onBeforeDestroy:z,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Bn,[(e.openBlock(),e.createBlock(R.ssForm,{rowContents:f.value,key:f.value,isEnableWrap:!0,onChange:U},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:z,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:X},e.toDisplayString("确认"))])]),_:1},8,["visible"]),e.createVNode(R.ssDialog,{visible:D.value,onBeforeDestroy:Z,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",$n,[(e.openBlock(),e.createBlock(R.ssForm,{rowContents:t.value,key:t.value,isEnableWrap:!0,onChange:w},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:Z,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:H},e.toDisplayString("确认"))])]),_:1},8,["visible"]),e.createVNode(R.ssDialog,{visible:d.value,onBeforeDestroy:T,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Vn,[(e.openBlock(),e.createBlock(R.ssForm,{rowContents:g.value,key:g.value,isEnableWrap:!0,onChange:ee},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:y},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},Tn=fe._export_sfc(wn,[["__scopeId","data-v-14ead5ff"]]),An={class:"form-operate-content"},In={class:"form-operate-item"},Fn={class:"operate-title"},On={class:"operate-content"},Sn={class:"fix-content"},Ln={class:"fix-button"},jn={class:"operate-title"},Un={class:"operate-content"},Jn={class:"fix-content"},Rn={class:"fix-button"},Pn={style:{display:"flex","justify-content":"space-between"}},Wn={class:"form-content"},Mn={class:"form-content"},zn={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:s}){const n=a,l=s,o=e.ref(!1),r=e.ref([]),d=e.ref([]),i=e.ref(!1),_=e.ref([]),v=e.ref([]),k=e.ref(""),B=e.ref(!1),E=e.ref(0),$=e.ref([]),b=e.ref([]),O=async m=>{var y,F,P,H,w,Z;o.value=!0;let x=[];const T=await((P=(F=(y=R.FormContent)==null?void 0:y.find(W=>(W==null?void 0:W.key)===((m==null?void 0:m.type)===""?"Input":m==null?void 0:m.type)))==null?void 0:F.value)==null?void 0:P.value)??((w=(H=R.FormContent)==null?void 0:H.find(W=>(W==null?void 0:W.key)===((m==null?void 0:m.type)===""?"Input":m==null?void 0:m.type)))==null?void 0:w.value);if(T==null||T.forEach(W=>{E.value++,x.push({label:W==null?void 0:W.label,name:W==null?void 0:W.label,type:W.type,value:(W==null?void 0:W.label)==="类型"&&m[W.key]===""?"Input":m[W.key],id:E.value,contents:W==null?void 0:W.options})}),m!=null&&m.menuSelect&&((Z=m==null?void 0:m.menuSelect)==null?void 0:Z.length)>0){const W=await R.menuToContentType(m==null?void 0:m.menuSelect);x=x==null?void 0:x.map(ne=>((ne==null?void 0:ne.name)==="组信息选项"&&(ne.contents=W),ne))}k.value=m==null?void 0:m.id,r.value=await R.selectToBase(R.formToOptionsContents(x)),d.value=await R.selectToBase(R.formToOptionsContents(x))},f=m=>{var T;i.value=!0;let x=[];(T=R.FormButton)==null||T.forEach(y=>{E.value++,x.push({label:y==null?void 0:y.label,name:y==null?void 0:y.label,type:y.type,value:(y==null?void 0:y.label)==="类型"&&m[y.key]===""?"normal":m[y.key],id:E.value,contents:y==null?void 0:y.options})}),$.value=x,b.value=x,k.value=m==null?void 0:m.id};e.watch(()=>B.value,()=>{var x,T;let m=p.cloneDeep(n.originalItemContents);(x=p.cloneDeep(n.originalItemContents))!=null&&x.find(y=>(y==null?void 0:y.key)==="enableWrap")?m=(T=p.cloneDeep(n.originalItemContents))==null?void 0:T.map(y=>((y==null?void 0:y.key)==="enableWrap"&&(y.contents=!B.value),y)):m.push({key:"enableWrap",contents:!B.value}),l("change",m)},{deep:!0});const h=()=>{var T,y,F,P,H;$.value=b.value;let m={};if(k.value!==""?m.id=k.value:(E.value++,m.id="id"+E.value),(T=$.value)==null||T.forEach(w=>{var W;const Z=(W=R.FormButton)==null?void 0:W.find(ne=>(ne==null?void 0:ne.label)===(w==null?void 0:w.label));Z&&(m[Z.key]=w.value)}),(y=_.value)!=null&&y.find(w=>w.id===m.id))_.value=(F=_.value)==null?void 0:F.map(w=>(w.id===m.id&&(w=m),w));else{let w=p.cloneDeep(_.value);_.value||(_.value=[]),w.push(m),_.value=w}i.value=!1,k.value="";let x=p.cloneDeep(n.originalItemContents);(P=p.cloneDeep(n.originalItemContents))!=null&&P.find(w=>(w==null?void 0:w.key)==="formButton")?x=(H=p.cloneDeep(n.originalItemContents))==null?void 0:H.map(w=>((w==null?void 0:w.key)==="formButton"&&(w.contents=_.value),w)):x.push({key:"formButton",contents:_.value}),l("change",x)},D=m=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var x,T;v.value=(x=p.cloneDeep(v.value))==null?void 0:x.filter(y=>(y==null?void 0:y.id)!==(m==null?void 0:m.id)),l("change",(T=p.cloneDeep(n.originalItemContents))==null?void 0:T.map(y=>((y==null?void 0:y.key)==="formContent"&&(y.contents=v.value),y))),pe.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},t=m=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var x,T;_.value=(x=p.cloneDeep(_.value))==null?void 0:x.filter(y=>(y==null?void 0:y.id)!==(m==null?void 0:m.id)),l("change",(T=p.cloneDeep(n.originalItemContents))==null?void 0:T.map(y=>((y==null?void 0:y.key)==="formButton"&&(y.contents=_.value),y))),pe.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},u=()=>{var x;i.value=!0;let m=[];(x=R.FormButton)==null||x.forEach(T=>{E.value++,m.push({label:T==null?void 0:T.label,name:T==null?void 0:T.label,type:T.type,value:(T==null?void 0:T.label)==="类型"?"normal":"",id:E.value,contents:T==null?void 0:T.options})}),$.value=m,b.value=m},c=()=>{var x,T,y;o.value=!0;let m=[];(y=(T=(x=R.FormContent)==null?void 0:x.find(F=>(F==null?void 0:F.key)==="Input"))==null?void 0:T.value)==null||y.forEach(F=>{E.value++,m.push({label:F==null?void 0:F.label,name:F==null?void 0:F.label,type:F.type,value:(F==null?void 0:F.label)==="类型"?"Input":"",id:E.value,contents:F==null?void 0:F.options})}),r.value=m,d.value=m},g=m=>{let x=p.cloneDeep(b.value);x=x==null?void 0:x.map(T=>(T.value=m==null?void 0:m[T.name],T)),b.value=x},L=async m=>{var x,T,y,F,P,H,w,Z,W,ne,ie,me;if((m==null?void 0:m.类型)!==((T=(x=d.value)==null?void 0:x.find(U=>(U==null?void 0:U.label)==="类型"))==null?void 0:T.value)){let U=[];const X=await((P=(F=(y=R.FormContent)==null?void 0:y.find(z=>(z==null?void 0:z.key)===((m==null?void 0:m.类型)===""?"Input":m==null?void 0:m.类型)))==null?void 0:F.value)==null?void 0:P.value)?await((ne=(W=(Z=R.FormContent)==null?void 0:Z.find(z=>(z==null?void 0:z.key)===((m==null?void 0:m.类型)===""?"Input":m==null?void 0:m.类型)))==null?void 0:W.value)==null?void 0:ne.value):(w=(H=R.FormContent)==null?void 0:H.find(z=>(z==null?void 0:z.key)===((m==null?void 0:m.类型)===""?"Input":m==null?void 0:m.类型)))==null?void 0:w.value;if(X==null||X.forEach(z=>{E.value++,U.push({label:z==null?void 0:z.label,name:z==null?void 0:z.label,type:z.type,value:(m==null?void 0:m[z.label])??"",id:E.value,contents:z==null?void 0:z.options})}),m!=null&&m.菜单选项&&((ie=m==null?void 0:m.菜单选项)==null?void 0:ie.length)>0){const z=await R.menuToContentType(m==null?void 0:m.菜单选项);U=U==null?void 0:U.map(oe=>((oe==null?void 0:oe.name)==="组信息选项"&&(oe.contents=z),oe))}d.value=await R.selectToBase(p.cloneDeep(U)),r.value=await R.selectToBase(p.cloneDeep(U))}else{let U=p.cloneDeep(d.value);if(U=U==null?void 0:U.map(X=>(X.value=m==null?void 0:m[X.name],X)),m!=null&&m.菜单选项&&((me=m==null?void 0:m.菜单选项)==null?void 0:me.length)>0){const X=await R.menuToContentType(m==null?void 0:m.菜单选项);U=U==null?void 0:U.map(z=>((z==null?void 0:z.name)==="组信息选项"&&(z.contents=X),z))}U=R.formToOptionsContents(U),d.value=await R.selectToBase(p.cloneDeep(U))}},I=m=>{m||(r.value=d.value)},j=async m=>{},Y=async()=>{var y,F,P,H,w,Z,W,ne,ie,me;r.value=d.value;let m={};k.value!==""?m.id=k.value:(E.value++,m.id="id"+E.value);let x=await((P=(F=(y=R.FormContent)==null?void 0:y.find(U=>{var X,z;return(U==null?void 0:U.key)===(((z=(X=r.value)==null?void 0:X.find(oe=>(oe==null?void 0:oe.label)==="类型"))==null?void 0:z.value)??"label")}))==null?void 0:F.value)==null?void 0:P.value)??((w=(H=R.FormContent)==null?void 0:H.find(U=>{var X,z;return(U==null?void 0:U.key)===(((z=(X=r.value)==null?void 0:X.find(oe=>(oe==null?void 0:oe.label)==="类型"))==null?void 0:z.value)??"label")}))==null?void 0:w.value);if((Z=r.value)==null||Z.forEach(U=>{const X=x==null?void 0:x.find(z=>(z==null?void 0:z.label)===(U==null?void 0:U.label));X&&(m[X.key]=U.value)}),m.width=1,m.key=m==null?void 0:m.label,(W=v.value)!=null&&W.find(U=>U.id===m.id))v.value=(ne=v.value)==null?void 0:ne.map(U=>(U.id===m.id&&(U=m),U));else{let U=p.cloneDeep(v.value);U.push(m),v.value=U}v.value=v.value.map(({id:U,...X})=>X),o.value=!1,k.value="";let T=p.cloneDeep(n.originalItemContents);(ie=p.cloneDeep(n.originalItemContents))!=null&&ie.find(U=>(U==null?void 0:U.key)==="formContent")?T=(me=p.cloneDeep(n.originalItemContents))==null?void 0:me.map(U=>((U==null?void 0:U.key)==="formContent"&&(U.contents=v.value),U)):T.push({key:"formContent",contents:v.value}),l("change",T)},ee=()=>{o.value=!1,i.value=!1,k.value="",d.value=[],b.value=[]};return e.watch(()=>n.originalItemContents,()=>{var x,T,y,F,P,H;if(!n.originalItemContents||n.originalItemContents.length===0)return;const m=p.cloneDeep(n.originalItemContents);v.value=((x=m==null?void 0:m.find(w=>(w==null?void 0:w.key)==="formContent"))==null?void 0:x.contents)??[],_.value=((T=m==null?void 0:m.find(w=>(w==null?void 0:w.key)==="formButton"))==null?void 0:T.contents)??[],B.value=(y=m==null?void 0:m.find(w=>(w==null?void 0:w.key)==="enableWrap"))!=null&&y.contents?!((F=m==null?void 0:m.find(w=>(w==null?void 0:w.key)==="enableWrap"))!=null&&F.contents):!0,v.value=(P=p.cloneDeep(v.value))==null?void 0:P.map((w,Z)=>{let W=w;return W.id=(w==null?void 0:w.id)??Z,w!=null&&w.label||(w.label=(w==null?void 0:w.key)??(w==null?void 0:w.label)??""),w!=null&&w.type||(w.type=(w==null?void 0:w.type)??""),w.contents=(w==null?void 0:w.options)??"",W}),v.value=R.formToOptionsContents(v.value),_.value=(H=_.value)==null?void 0:H.map((w,Z)=>w={label:(w==null?void 0:w.label)??"",type:(w==null?void 0:w.type)??"",background:(w==null?void 0:w.background)??"var(--ssComponent-primary-color)",id:Z})},{deep:!0,immediate:!0}),(m,x)=>{const T=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",An,[e.createElementVNode("div",In,[e.createElementVNode("div",Fn,[x[2]||(x[2]=e.createElementVNode("div",null,e.toDisplayString("表单内容"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:c},[e.createVNode(T,{name:"Plus",class:"icon-size"}),x[1]||(x[1]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",On,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(y,F)=>(e.openBlock(),e.createElementBlock("div",{key:F},[e.createElementVNode("div",Sn,[e.createElementVNode("div",null,e.toDisplayString(y.label),1),e.createElementVNode("div",Ln,[e.createVNode(T,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:P=>O(y)},null,8,["onClick"]),e.createVNode(T,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:P=>D(y)},null,8,["onClick"])])])]))),128))]),e.createElementVNode("div",jn,[x[4]||(x[4]=e.createElementVNode("div",null,e.toDisplayString("表单按钮"),-1)),e.createElementVNode("div",{class:"icon-content",onClick:u},[e.createVNode(T,{name:"Plus",class:"icon-size"}),x[3]||(x[3]=e.createElementVNode("div",null,e.toDisplayString("新增"),-1))])]),e.createElementVNode("div",Un,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(y,F)=>(e.openBlock(),e.createElementBlock("div",{key:F},[e.createElementVNode("div",Jn,[e.createElementVNode("div",null,e.toDisplayString(y.label),1),e.createElementVNode("div",Rn,[e.createVNode(T,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:P=>f(y)},null,8,["onClick"]),e.createVNode(T,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:P=>t(y)},null,8,["onClick"])])])]))),128))]),x[6]||(x[6]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("表单布局"))],-1)),e.createElementVNode("div",Pn,[x[5]||(x[5]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否自动撑宽"),-1)),e.createVNode(R._sfc_main$1,{modelValue:B.value,"onUpdate:modelValue":x[0]||(x[0]=y=>B.value=y)},null,8,["modelValue"])])]),e.createVNode(R.ssDialog,{visible:o.value,onBeforeDestroy:ee,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Wn,[(e.openBlock(),e.createBlock(R.ssForm,{rowContents:r.value,key:r.value,isEnableWrap:!0,onChange:L,onChangeVisible:I,onBlurChange:j},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:ee,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:Y},e.toDisplayString("确认"))])]),_:1},8,["visible"]),e.createVNode(R.ssDialog,{visible:i.value,onBeforeDestroy:ee,width:840},{default:e.withCtx(()=>[e.createElementVNode("div",Mn,[(e.openBlock(),e.createBlock(R.ssForm,{rowContents:$.value,key:$.value,isEnableWrap:!0,onChange:g},null,8,["rowContents"]))])]),footer:e.withCtx(()=>[e.createElementVNode("div",{class:"dialog-footer"},[e.createElementVNode("div",{onClick:ee,class:"cancel-button button"},e.toDisplayString("取消")),e.createElementVNode("div",{class:"ok-button button",onClick:h},e.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},el=fe._export_sfc(zn,[["__scopeId","data-v-36936e3f"]]),Gn={class:"step-module content"},qn={class:"module-data"},Hn={class:"step-module layout"},Zn={class:"form-content"},Kn=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:s}){const n=a,l=s,o=e.ref([{label:"方向:",prop:"direction",type:"RADIO",contents:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],value:"horizontal"},{label:"是否居中:",prop:"alignCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"应用简洁风格",prop:"simple",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1}]),r=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),d=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),i=e.reactive({visible:!1,width:"40%",title:"步骤条"}),_=e.ref("create"),v=e.ref({}),k=e.ref([]),B=f=>{var h;v.value=f,l("change",(h=b())==null?void 0:h.compData)},E=(f,h)=>{var D,t;switch(f){case"create":(D=r.value)==null||D.forEach(u=>{u.value=""}),_.value="create",i.visible=!0;break;case"update":(t=r.value)==null||t.forEach(u=>{u.value=h[u==null?void 0:u.prop]}),_.value="update",i.visible=!0;break;case"delete":k.value.splice(h,1),_.value="delete";break}},$=f=>{var h,D,t;if((f==null?void 0:f.buttonName)==="确认"){const u=p.cloneDeep(f==null?void 0:f.content);switch(Object.keys(u).forEach(c=>{u[c]===""&&delete u[c]}),_.value){case"create":k.value.push({...u,index:((h=k.value)==null?void 0:h.length)+1});break;case"update":k.value=(D=k.value)==null?void 0:D.map(c=>c.index===(u==null?void 0:u.index)?{...c,title:u==null?void 0:u.title,description:u==null?void 0:u.description}:c);break}l("change",(t=b())==null?void 0:t.compData),i.visible=!1}else i.visible=!1},b=()=>({comp:"Step",compData:[{key:"stepList",contents:k.value},{key:"stepConfig",contents:v.value}]}),O=()=>{i.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,f=>{var h,D;f&&(v.value=((h=f==null?void 0:f.find(t=>t.key==="stepConfig"))==null?void 0:h.contents)??{},k.value=((D=f==null?void 0:f.find(t=>t.key==="stepList"))==null?void 0:D.contents)??[])},{immediate:!0}),(f,h)=>{const D=e.resolveComponent("svg-icon"),t=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",Gn,[h[2]||(h[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createElementVNode("div",{class:"module-icon",onClick:h[0]||(h[0]=u=>E("create"))},[e.createVNode(D,{name:"Plus",class:"icon-size"}),h[1]||(h[1]=e.createElementVNode("div",null,"新增",-1))])]),e.createElementVNode("div",qn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(u,c)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:c},[e.createElementVNode("span",null,e.toDisplayString(u==null?void 0:u.title),1),e.createElementVNode("div",null,[e.createVNode(t,{type:"primary",size:"small",onClick:g=>E("update",{...u,index:c+1})},{default:e.withCtx(()=>h[3]||(h[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(t,{type:"danger",size:"small",onClick:g=>E("delete",c)},{default:e.withCtx(()=>h[4]||(h[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",Hn,[h[5]||(h[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(R.ssForm,{rowContents:o.value,onChange:B},null,8,["rowContents"])])]),e.createVNode(R.ssDialog,{visible:i.visible,title:i.title,onBeforeDestroy:O,width:i.width},{default:e.withCtx(()=>[e.createElementVNode("div",Zn,[(e.openBlock(),e.createBlock(R.ssForm,{rowContents:r.value,key:r.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:d.value,onOnButtonClick:$},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),Qn=fe._export_sfc(Kn,[["__scopeId","data-v-47438605"]]),Xn={class:"step-module content"},Yn={class:"module-data"},ea={class:"step-module layout"},la={class:"form-content"},na=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:s}){const n=a,l=s,o=e.ref("create"),r=e.ref({}),d=e.ref([]),i=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}]),_=e.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),v=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),k=e.reactive({visible:!1,width:"40%",title:"时间线"}),B=f=>{var h;r.value=f,console.log(1212,f),l("change",(h=b())==null?void 0:h.compData)},E=(f,h)=>{var D,t;switch(f){case"create":(D=_.value)==null||D.forEach(u=>{u.value=""}),o.value="create",k.visible=!0;break;case"update":(t=_.value)==null||t.forEach(u=>{u.value=h[u==null?void 0:u.prop]}),o.value="update",k.visible=!0;break;case"delete":d.value.splice(h,1),o.value="delete";break}},$=f=>{var h,D,t,u;if((f==null?void 0:f.buttonName)==="确认"){const c=p.cloneDeep(f==null?void 0:f.content);switch(Object.keys(c).forEach(g=>{c[g]===""&&delete c[g]}),o.value){case"create":console.log(1335,d.value,c),(D=d.value)==null||D.push({...c,index:((h=d.value)==null?void 0:h.length)+1});break;case"update":d.value=(t=d.value)==null?void 0:t.map(g=>g.index===(c==null?void 0:c.index)?{...g,content:c==null?void 0:c.content,timestamp:c==null?void 0:c.timestamp}:g);break}l("change",(u=b())==null?void 0:u.compData),k.visible=!1}else k.visible=!1},b=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:d.value},{key:"timeLineConfig",contents:r.value}]}),O=()=>{k.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,f=>{var h,D;f&&(r.value=((h=f==null?void 0:f.find(t=>t.key==="timeLineConfig"))==null?void 0:h.contents)??{},d.value=((D=f==null?void 0:f.find(t=>t.key==="timeLineList"))==null?void 0:D.contents)??[])},{immediate:!0}),(f,h)=>{const D=e.resolveComponent("svg-icon"),t=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",Xn,[h[2]||(h[2]=e.createElementVNode("h4",{class:"module-title"},"内容",-1)),e.createElementVNode("div",{class:"module-icon",onClick:h[0]||(h[0]=u=>E("create"))},[e.createVNode(D,{name:"Plus",class:"icon-size"}),h[1]||(h[1]=e.createElementVNode("div",null,"新增",-1))])]),e.createElementVNode("div",Yn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(u,c)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:c},[e.createElementVNode("span",null,e.toDisplayString(u==null?void 0:u.content),1),e.createElementVNode("div",null,[e.createVNode(t,{type:"primary",size:"small",onClick:g=>E("update",{...u,index:c+1})},{default:e.withCtx(()=>h[3]||(h[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(t,{type:"danger",size:"small",onClick:g=>E("delete",c)},{default:e.withCtx(()=>h[4]||(h[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",ea,[h[5]||(h[5]=e.createElementVNode("div",{class:"module-title"},"布局",-1)),e.createVNode(R.ssForm,{rowContents:i.value,onChange:B},null,8,["rowContents"])])]),e.createVNode(R.ssDialog,{visible:k.visible,title:k.title,onBeforeDestroy:O,width:k.width},{default:e.withCtx(()=>[e.createElementVNode("div",la,[(e.openBlock(),e.createBlock(R.ssForm,{rowContents:_.value,key:_.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:v.value,onOnButtonClick:$},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),aa=fe._export_sfc(na,[["__scopeId","data-v-40aea043"]]),oa={};function sa(a,s){return e.openBlock(),e.createElementBlock("div")}const ta=fe._export_sfc(oa,[["render",sa]]),ra={class:"extra-content"},ca={key:0},ia={key:1},ua={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(a,{emit:s}){const n=a,l=e.ref(0),o=e.ref(),r=e.ref(),d=s,i=e.ref(!1),_=e.ref({}),v=e.ref({}),k=e.ref();e.watch(()=>[n.itemData],()=>{var u;const t=p.cloneDeep(n.itemData);o.value=(u=p.cloneDeep(t))==null?void 0:u.map(c=>{var g;if(c.key==="extra"){let L=[];(g=c.value)==null||g.forEach(I=>{var j;L.push((j=Object.values(I))==null?void 0:j[0])}),c.value=L}return c})},{deep:!0,immediate:!0});const B=(t,u,c,g)=>{var I;let L={};((I=t==null?void 0:t[0])==null?void 0:I.contents)==="详情"&&(i.value=!0,L[u]=t,r.value=t==null?void 0:t.filter(j=>(j==null?void 0:j.key)!=="tableContentName"),_.value=L,v.value=c,k.value=g.id)},E=t=>{var j,Y,ee,m;const u=(Y=(j=Object.values(p.cloneDeep(_.value)))==null?void 0:j[0])==null?void 0:Y.filter(x=>(x==null?void 0:x.key)==="tableContentName"),c=(m=(ee=Object.values(p.cloneDeep(_.value)))==null?void 0:ee[0])==null?void 0:m.filter(x=>(x==null?void 0:x.key)!=="tableContentName"),g=c==null?void 0:c.map((x,T)=>{var y;return T===t.index&&(x==null?void 0:x.comp)==="Table"&&(x.compData=(y=x.compData)==null?void 0:y.map(F=>{var P,H;return(F==null?void 0:F.key)==="tableContents"&&(F.contents=(H=(P=t.content)==null?void 0:P.map(w=>{let Z={};for(let W in w)W!=="id"&&(Z[W]=w[W]);return Z}))==null?void 0:H.map(w=>Object.values(w))),F})),x});g.unshift(u==null?void 0:u[0]);let L=p.cloneDeep(_.value),I={};for(let x in L)I[x]=g;_.value=I},$=()=>{i.value=!1,_.value={},v.value={},k.value=void 0,l.value++},b=t=>{var j,Y,ee,m;const u=(Y=(j=Object.values(p.cloneDeep(_.value)))==null?void 0:j[0])==null?void 0:Y.filter(x=>(x==null?void 0:x.key)==="tableContentName"),c=(m=(ee=Object.values(p.cloneDeep(_.value)))==null?void 0:ee[0])==null?void 0:m.filter(x=>(x==null?void 0:x.key)!=="tableContentName"),g=c==null?void 0:c.map((x,T)=>(T===t.index&&(x.compData=t.contents),x));g.unshift(u==null?void 0:u[0]);let L=p.cloneDeep(_.value),I={};for(let x in L)I[x]=g;_.value=I},O=()=>{var u,c;let t={};for(let g in v.value)g===((u=Object.keys(_.value))==null?void 0:u[0])?t[g]=(c=Object.values(_.value))==null?void 0:c[0]:t[g]=v.value[g];d("change",{buttonName:"编辑",index:k.value,singleContent:t},"methodData"),i.value=!1,_.value={},v.value={},k.value=void 0},f=()=>{i.value=!1,_.value={},v.value={},k.value=void 0},h=t=>{d("change",t,"methodData")},D=t=>Je(t);return(t,u)=>(e.openBlock(),e.createElementBlock("div",ra,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(c,g)=>(e.openBlock(),e.createElementBlock("div",{key:l.value},[(c==null?void 0:c.key)==="extra"?(e.openBlock(),e.createElementBlock("div",ca)):(e.openBlock(),e.createElementBlock("div",ia,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(D(c.comp)),{itemData:c==null?void 0:c.compData,childItemData:c==null?void 0:c.itemChildData,key:g,index:(c==null?void 0:c.id)??g,onContentClick:B,onChange:h},null,40,["itemData","childItemData","index"]))]))]))),128)),e.createVNode(R.ssDialog,{visible:i.value,onBeforeDestroy:f},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(c,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"extra-dialog"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(D(c.comp)),{itemData:c==null?void 0:c.compData,onChange:E,childItemData:c==null?void 0:c.itemChildData,key:g,onContentChange:b,index:(c==null?void 0:c.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:$},e.toDisplayString("取消")),e.createElementVNode("div",{class:"confirm-button footer-button",onClick:O},e.toDisplayString("确认"))])]),_:1},8,["visible"])]))}},pa=fe._export_sfc(ua,[["__scopeId","data-v-b0b2f71f"]]),da={class:"method-content"},fa=["onClick"],ma={__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=Vl.useModelComp(we.pinia),{itemData:o,isEdit:r}=pe.storeToRefs(l),d=(v,k)=>{var E;const B=(E=k==null?void 0:k[0])==null?void 0:E.children;return v==null?void 0:v.map($=>{var b;return $=(b=$==null?void 0:$.map((O,f)=>{var h;return{key:(h=B[f])==null?void 0:h.label,value:O}}))==null?void 0:b.filter(O=>O.key),$})};e.watch(()=>o.value,async()=>{r.value=="view"&&await _(p.cloneDeep(n.itemData))},{deep:!0});const i=async v=>{var t,u,c,g,L,I;let k={};if((t=p.cloneDeep(v.content))==null||t.forEach((j,Y)=>{var ee,m,x,T,y,F,P,H,w,Z,W,ne,ie,me,U,X,z;if((j==null?void 0:j.comp)==="Table"){let oe=(T=(x=(m=(ee=j==null?void 0:j.compData)==null?void 0:ee.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:m.contents)==null?void 0:x[0])==null?void 0:T.some(ae=>ae==null?void 0:ae.children),he=(P=(F=(y=j==null?void 0:j.compData)==null?void 0:y.find(ae=>(ae==null?void 0:ae.key)==="tableContents"))==null?void 0:F.contents)==null?void 0:P.map(ae=>ae.slice(1)),ce=(ne=(W=(Z=(w=(H=j==null?void 0:j.compData)==null?void 0:H.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:w.contents)==null?void 0:Z[0])==null?void 0:W[0])==null?void 0:ne.label,ue=(U=(me=(ie=j==null?void 0:j.compData)==null?void 0:ie.find(ae=>(ae==null?void 0:ae.key)==="header"))==null?void 0:me.contents)==null?void 0:U[0];if(oe)k[ce]=d(he,ue);else{const ae=[];ue=ue.slice(1,ue.length-1),ue==null||ue.forEach((Ne,Ee)=>{he==null||he.forEach(_e=>{ae.push({key:Ne.label+_e[0],value:_e[Ee+1]})})}),k["form"+Y]=ae}}else{const oe=(z=(X=j.compData)==null?void 0:X.find(ce=>(ce==null?void 0:ce.key)==="formContent"))==null?void 0:z.contents;k.form={};const he=[];oe==null||oe.forEach(ce=>{ce.key!==""&&(ce={key:(ce==null?void 0:ce.key)??(ce==null?void 0:ce.label),value:ce==null?void 0:ce.value},he.push(ce))}),k.form=he}}),v.api){const j=await pe.axios.post(v.api,{data:k,templateFileName:(u=v==null?void 0:v.extraContent)==null?void 0:u[0]},{responseType:"blob",headers:{"Content-Type":"application/json"}});var B=new Blob([j.data],{type:"application/octet-stream;charset=UTF-8"}),E=j.headers["content-disposition"],$=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),b=$.exec(E),O=((L=(g=(c=v==null?void 0:v.extraContent)==null?void 0:c[0])==null?void 0:g.split("."))==null?void 0:L[0])+"."+((I=b[1].split("."))==null?void 0:I[1]),f=document.createElement("a"),h=window.URL.createObjectURL(B),D=/^["](.*)["]$/g;f.style.display="none",f.href=h,f.download=decodeURI(O.replace(D,"$1")),document.body.appendChild(f),f.click(),document.body.removeChild(f),window.URL.revokeObjectURL(h)}},_=async v=>{var $;const k=p.cloneDeep(v),B=k==null?void 0:k.map(async b=>{var u,c,g,L,I,j,Y;const f=(u=(await pe.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),parentTable:"",type:"method",methodName:b.method}})).data.result)==null?void 0:u[0],h=await pe.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"methodData",tableId:f==null?void 0:f.id}}),D=await ve.getItemData((c=b==null?void 0:b.value)==null?void 0:c[0],sessionStorage.getItem("systemKey"),""),t=(g=h.data.result)==null?void 0:g[0];return{buttonName:(L=f==null?void 0:f.key)==null?void 0:L.methodKey,api:(j=(I=t==null?void 0:t.value)==null?void 0:I.tableData)==null?void 0:j[0],content:D==null?void 0:D.filter(ee=>ee.comp!=="methodButton"),extraContent:(Y=p.cloneDeep(b.value))==null?void 0:Y.slice(1)}}),E=await Promise.all(B);s.value=E==null?void 0:E.filter(b=>b==null?void 0:b.extraContent),($=s.value)==null||$.forEach(b=>{var O;b.api===""&&((O=b.content)==null||O.forEach(f=>{var h;f.comp=="Table"&&l.setExtraContents(ve.methodTableToContent(f.compData,(h=b.extraContent)==null?void 0:h[0]))}))})};return e.watch(()=>n.itemData,async()=>{r.value=="view"&&await _(p.cloneDeep(n.itemData))},{immediate:!0,deep:!0}),(v,k)=>(e.openBlock(),e.createElementBlock("div",da,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,B=>(e.openBlock(),e.createElementBlock("div",null,[B.api!==""?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:E=>i(B),class:"method-buttons"},e.toDisplayString(B.buttonName),9,fa)):e.createCommentVNode("",!0)]))),256))]))}},ha=fe._export_sfc(ma,[["__scopeId","data-v-0c52611a"]]),ya={};function va(a,s){return" 567 "}const ka=fe._export_sfc(ya,[["render",va]]),ga={class:"module content"},ba={class:"module data"},Ca={class:"module layout"},Da={class:"form-content"},_a=e.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:s}){const n=a,l=s,o=e.reactive({visible:!1,width:"40%",title:"签名配置"}),r=e.ref("create"),d=e.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),i=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}]),_=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:""}]),v=e.ref({}),k=e.ref([]),B=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:k.value},{key:"signConfig",contents:v.value}]}),E=f=>{var h;v.value=p.cloneDeep(f),l("change",(h=B())==null?void 0:h.compData)},$=f=>{var h,D;if((f==null?void 0:f.buttonName)==="确认"){const t=p.cloneDeep(f==null?void 0:f.content);switch(r.value){case"create":k.value.push({...t,index:((h=k.value)==null?void 0:h.length)+1});break}l("change",(D=B())==null?void 0:D.compData),o.visible=!1}else o.visible=!1},b=(f,h)=>{var D,t;switch(f){case"create":(D=_.value)==null||D.forEach(u=>{u.value=""}),r.value="create",o.visible=!0;break;case"update":(t=_.value)==null||t.forEach(u=>{u.value=h[u==null?void 0:u.prop]}),console.log(345,h),r.value="update",o.visible=!0;break;case"delete":k.value.splice(h,1),r.value="delete";break}},O=()=>{o.visible=!1};return e.watch(()=>n==null?void 0:n.itemContents,f=>{var h,D;f&&(v.value=((h=f==null?void 0:f.find(t=>t.key==="signConfig"))==null?void 0:h.contents)??{},k.value=((D=f==null?void 0:f.find(t=>t.key==="signTypeList"))==null?void 0:D.contents)??[])},{immediate:!0}),(f,h)=>{const D=e.resolveComponent("svg-icon"),t=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",null,[e.createElementVNode("div",ga,[h[2]||(h[2]=e.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),e.createElementVNode("div",{class:"module-icon",onClick:h[0]||(h[0]=u=>b("create"))},[e.createElementVNode("div",null,[e.createVNode(D,{name:"Plus",class:"icon-size"}),h[1]||(h[1]=e.createElementVNode("span",null,"新增",-1))])])]),e.createElementVNode("div",ba,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(u,c)=>(e.openBlock(),e.createElementBlock("div",{class:"module-data-item",key:c},[e.createElementVNode("span",null,e.toDisplayString(u==null?void 0:u.label),1),e.createElementVNode("div",null,[e.createVNode(t,{type:"primary",size:"small",onClick:g=>b("update",{...u,index:c+1})},{default:e.withCtx(()=>h[3]||(h[3]=[e.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),e.createVNode(t,{type:"danger",size:"small",onClick:g=>b("delete",c)},{default:e.withCtx(()=>h[4]||(h[4]=[e.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),e.createElementVNode("div",Ca,[e.createVNode(R.ssForm,{rowContents:i.value,onChange:E},null,8,["rowContents"])])]),e.createVNode(R.ssDialog,{visible:o.visible,title:o.title,onBeforeDestroy:O,width:o.width},{default:e.withCtx(()=>[e.createElementVNode("div",Da,[(e.openBlock(),e.createBlock(R.ssForm,{rowContents:_.value,key:_.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:d.value,onOnButtonClick:$},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),Ea=fe._export_sfc(_a,[["__scopeId","data-v-a90b5f7d"]]),xa=e.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(a,{emit:s}){const n=a,l=s,o=e.ref(1),r=e.computed(()=>{var B,E;return(B=n==null?void 0:n.stepConfig)!=null&&B.allowTrigger?o.value:(E=n==null?void 0:n.stepConfig)==null?void 0:E.active}),d=(B,E)=>{o.value=E,l("clickStep",B,E)},i=B=>R.getComponent(B),_=()=>{var E;const B=(E=n==null?void 0:n.stepList)==null?void 0:E.find(($,b)=>b+1===r.value);return console.log("findStep",B),B?B==null?void 0:B.children:[]},v=B=>{l("clickTrigger",B)},k=B=>{l("changeTrigger",B)};return(B,E)=>{var O,f,h,D,t;const $=e.resolveComponent("el-step"),b=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(b,{direction:(O=a.stepConfig)==null?void 0:O.direction,active:r.value,"finish-status":"success",simple:(f=a.stepConfig)==null?void 0:f.simple,"align-center":((h=a.stepConfig)==null?void 0:h.alignCenter)??!0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.stepList,(u,c)=>(e.openBlock(),e.createBlock($,{key:c,class:"step-item",onClick:g=>d(u,c+1)},{title:e.withCtx(()=>[e.renderSlot(B.$slots,"title",{title:u==null?void 0:u.title},void 0,!0)]),description:e.withCtx(()=>[e.renderSlot(B.$slots,"description",{description:u==null?void 0:u.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(D=a.stepConfig)!=null&&D.allowTrigger&&((t=a.stepConfig)!=null&&t.active)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(_(),(u,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"step-cont-wrap"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i(u==null?void 0:u.type)),{modelValue:u.value,"onUpdate:modelValue":g=>u.value=g,onClickTrigger:v,onChangeTrigger:k,content:u==null?void 0:u.content},e.createSlots({_:2},[e.renderList(B.$slots,(g,L)=>({name:L,fn:e.withCtx(I=>[e.renderSlot(B.$slots,L,e.mergeProps({ref_for:!0},I||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):e.createCommentVNode("",!0)],64)}}}),Na=fe._export_sfc(xa,[["__scopeId","data-v-d7c99969"]]),Ba=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(a,{emit:s}){const n=a,l=s,o=e.ref({}),r=e.ref([]),d=(i,_)=>{l("clickStep",i,_)};return e.watch(()=>n==null?void 0:n.itemData,i=>{var _,v;r.value=(_=i==null?void 0:i.find(k=>(k==null?void 0:k.key)==="stepList"))==null?void 0:_.contents,o.value=(v=i==null?void 0:i.find(k=>(k==null?void 0:k.key)==="stepConfig"))==null?void 0:v.contents},{immediate:!0}),(i,_)=>{const v=e.resolveComponent("svg-icon");return e.openBlock(),e.createBlock(Na,{stepConfig:o.value,stepList:r.value,onClickStep:d},{icon:e.withCtx(()=>[e.createVNode(v,{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"])}}}),$a=e.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(a){return(s,n)=>{const l=e.resolveComponent("el-timeline-item"),o=e.resolveComponent("el-timeline");return e.openBlock(),e.createBlock(o,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.activities,(r,d)=>(e.openBlock(),e.createBlock(l,{key:d,timestamp:r.timestamp,placement:a.timeLineConfig.placement,center:a.timeLineConfig.isCenter,"hide-timestamp":!0,type:a.timeLineConfig.type,color:a.timeLineConfig.color,size:a.timeLineConfig.size,icon:a.timeLineConfig.icon,hollow:a.timeLineConfig.isHollow},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"content",{content:r==null?void 0:r.content,timestamp:r==null?void 0:r.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),Va=fe._export_sfc($a,[["__scopeId","data-v-4172a886"]]),wa={class:"line-content"},Ta={class:"line-time"},Aa=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(a){const s=a,n=e.ref({}),l=e.ref([]);return e.watch(()=>s==null?void 0:s.itemData,o=>{var r,d;l.value=(r=o==null?void 0:o.find(i=>(i==null?void 0:i.key)==="timeLineList"))==null?void 0:r.contents,n.value=(d=o==null?void 0:o.find(i=>(i==null?void 0:i.key)==="timeLineConfig"))==null?void 0:d.contents},{immediate:!0}),(o,r)=>(e.openBlock(),e.createBlock(Va,{activities:l.value,timeLineConfig:n.value},{content:e.withCtx(({content:d,timestamp:i})=>[e.createElementVNode("span",wa,e.toDisplayString(d),1),e.createElementVNode("span",Ta,e.toDisplayString(i),1)]),_:1},8,["activities","timeLineConfig"]))}}),Ia=fe._export_sfc(Aa,[["__scopeId","data-v-b4d9deed"]]),Fa={class:"tabs-content"},Oa={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number},setup(a){const s=a,n=e.ref([]);return e.watch(()=>s==null?void 0:s.itemData,l=>{const o=l.find(r=>(r==null?void 0:r.key)=="stepList");o&&(n.value=o.contents.map(r=>({value:r.value||r.title,label:r.label||r.title,children:r.children||[]})))},{immediate:!0,deep:!0}),(l,o)=>(e.openBlock(),e.createElementBlock("div",Fa,[e.createVNode(R.ssTab,{tabsContents:n.value},null,8,["tabsContents"])]))}},Sa=fe._export_sfc(Oa,[["__scopeId","data-v-d3bb10b7"]]),Ue=pe.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}}}),La={class:"type-select"},ja=["onClick"],Ua={class:"list-icon"},Ja={__name:"modelSelect",setup(a){const s=Ue(we.pinia),{itemData:n}=pe.storeToRefs(s),l=o=>{const r=p.cloneDeep(n.value);r.push({comp:o.comp,name:o.name,compData:[]}),s.setItemData(r)};return(o,r)=>{const d=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",La,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(hl),(i,_)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:_},[e.createElementVNode("div",{class:"list-content",onClick:v=>l(i)},[e.createElementVNode("div",Ua,[e.createVNode(d,{name:i.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(i.name),1)],8,ja)]))),128))])}}},Ra=fe._export_sfc(Ja,[["__scopeId","data-v-a77f8023"]]),Pa={class:"fill-content"},Wa={class:"operate-content"},Ma={class:"collapse-title-content"},za={class:"collapse-title-item"},Ga={key:1},qa=["onClick"],Ha={class:"icon-content"},Za={key:0,class:"edit-content"},Ka=["onClick"],Qa={class:"comp-child"},Xa={__name:"modelFill",setup(a){const s=Ue(we.pinia),{itemData:n,originalData:l}=pe.storeToRefs(s),o=e.ref([]);e.ref([]);const r=e.ref([]),d=e.ref([]),i=$=>{var O;let b=(O=p.cloneDeep(d.value))==null?void 0:O.map((f,h)=>($===h&&(f.content=!0),f));d.value=b},_=$=>{var O;let b=(O=p.cloneDeep(d.value))==null?void 0:O.map((f,h)=>($===h&&(f.content=!1),f));d.value=b,o.value=p.cloneDeep(n.value)},v=($,b)=>{var D;let O=(D=p.cloneDeep(d.value))==null?void 0:D.map((t,u)=>($===u&&(t.content=!1),t));d.value=O;const f=p.cloneDeep(n.value),h=f==null?void 0:f.filter((t,u)=>(u===$&&(t.name=b),t));s.setOriginalData(h),s.setItemData(h)};e.watch(()=>n.value,()=>{var $,b,O;!n.value||(($=n.value)==null?void 0:$.length)===0?o.value=[]:o.value=(b=p.cloneDeep(n.value))==null?void 0:b.filter(f=>(f==null?void 0:f.comp)!=="methodButton"),r.value=o.value,d.value=(O=p.cloneDeep(r.value))==null?void 0:O.map((f,h)=>({id:h,content:!1}))},{deep:!0,immediate:!0});const k=$=>Je($),B=($,b,O)=>{var h,D;if(!$)return;let f=p.cloneDeep(n.value);f=(h=f==null?void 0:f.map((t,u)=>(u===O&&(t.compData=$),t)))==null?void 0:h.filter(t=>(t==null?void 0:t.comp)!=="methodButton"),d.value=(D=p.cloneDeep(f))==null?void 0:D.map((t,u)=>({id:u,content:!1})),s.setOriginalData(f),s.setItemData(f)},E=$=>{Ve.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const b=p.cloneDeep(n.value),O=b==null?void 0:b.filter((f,h)=>h!==$);s.setOriginalData(O),s.setItemData(O),pe.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return($,b)=>{const O=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",Pa,[b[1]||(b[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",Wa,[e.createVNode(wl.default,{class:"collapse-content",collapseContents:o.value},{title:e.withCtx(({item:f,index:h})=>{var D,t,u,c,g,L,I,j,Y,ee;return[e.createElementVNode("div",Ma,[e.createElementVNode("div",za,[(t=(D=d.value)==null?void 0:D.find(m=>m.id===h))!=null&&t.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:f.name&&f.name!==""?"8px":"0px"})},e.toDisplayString(f.name),5)),(c=(u=d.value)==null?void 0:u.find(m=>m.id===h))!=null&&c.content?(e.openBlock(),e.createElementBlock("div",Ga,[e.createVNode(R._sfc_main,{modelValue:f.name,"onUpdate:modelValue":m=>f.name=m,onClick:b[0]||(b[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(L=(g=d.value)==null?void 0:g.find(m=>m.id===h))!=null&&L.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(m=>i(h),["stop"]),class:"icon-content"},[e.createVNode(O,{name:"Edit",style:{width:"16px",height:"16px"}})],8,qa))]),e.createElementVNode("div",Ha,[(j=(I=d.value)==null?void 0:I.find(m=>m.id===h))!=null&&j.content?(e.openBlock(),e.createElementBlock("div",Za,[e.createVNode(O,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(m=>_(h),["stop"])},null,8,["onClick"]),e.createVNode(O,{name:"Save",onClick:e.withModifiers(m=>v(h,f.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(ee=(Y=d.value)==null?void 0:Y.find(m=>m.id===h))!=null&&ee.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(m=>E(h),["stop"]),class:"icon-content"},[e.createVNode(O,{name:"Delete",style:{width:"16px",height:"16px"}})],8,Ka))])])]}),content:e.withCtx(({item:f,index:h})=>{var D,t;return[e.createElementVNode("div",Qa,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k(f.comp+"Operate")),{itemContents:f==null?void 0:f.compData,originalItemContents:(t=(D=r.value)==null?void 0:D.find((u,c)=>c===h))==null?void 0:t.compData,onChange:u=>B(u,f,h)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},Ya=fe._export_sfc(Xa,[["__scopeId","data-v-49a5b97a"]]),eo={key:0,class:"show-content"},lo={style:{display:"flex"}},no={__name:"modelShow",setup(a){const s=Ue(we.pinia),{itemData:n}=pe.storeToRefs(s),l=e.ref([]);e.watch(()=>n.value,()=>{var r;!n.value||((r=n.value)==null?void 0:r.length)===0?l.value=[]:l.value=p.cloneDeep(n.value)},{deep:!0,immediate:!0});const o=r=>Je(r);return(r,d)=>{var i;return((i=l.value)==null?void 0:i.length)>0?(e.openBlock(),e.createElementBlock("div",eo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(_,v)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:v},[e.createElementVNode("div",lo,e.toDisplayString(_.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o(_.comp)),{itemData:_==null?void 0:_.compData,childItemData:_==null?void 0:_.itemChildData,key:v},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},ao=fe._export_sfc(no,[["__scopeId","data-v-a59b819d"]]),oo={class:"tabs-header"},so={class:"tabs-list"},to={class:"tab-name"},ro={class:"tab-actions"},co=["onClick"],io=["onClick"],uo=["onClick"],po={class:"model-operate"},fo={class:"model-select"},mo={class:"model-fill"},ho={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(a,{emit:s}){const n=a,l=s,o=e.ref([]),r=e.ref(!1),d=e.ref(""),i=e.ref({title:""}),_=e.ref(-1),v=e.ref(!1),k=e.ref(-1),B=()=>{d.value="新增标签页",i.value.title="",_.value=-1,r.value=!0},E=D=>{d.value="修改标签页",i.value.title=o.value[D].title,_.value=D,r.value=!0},$=D=>{o.value.splice(D,1),h()},b=()=>{i.value.title.trim()&&(_.value===-1?o.value.push({title:i.value.title,value:i.value.title,label:i.value.title,children:[]}):(o.value[_.value].title=i.value.title,o.value[_.value].value=i.value.title,o.value[_.value].label=i.value.title),r.value=!1,h())},O=D=>{k.value=D,v.value=!0},f=()=>{const D=Ue(we.pinia),{itemData:t}=pe.storeToRefs(D);console.log(t.value,12222),k.value>=0&&k.value<o.value.length&&(o.value[k.value].children=[{type:"Form",content:{rowContents:[{label:"宽度(%):",prop:"signPadWidth",type:"number",value:"30"},{label:"弹窗名称:",prop:"dialogTitle",type:"input",value:""},{label:"弹窗宽度(%):",prop:"dialogWidth",type:"number",value:"30"}],isEnableWrap:!1,isButtonRow:!1},value:""}]),v.value=!1,h()},h=()=>{const D=[{key:"stepList",contents:o.value}];l("change",D)};return e.watch(()=>n.itemContents,D=>{if(D&&D.length>0){const t=D.find(u=>u.key==="stepList");t&&t.contents&&(o.value=t.contents.map(u=>({title:u.title||"",value:u.value||u.title||"",label:u.label||u.title||"",children:u.children||[]})))}},{immediate:!0,deep:!0}),(D,t)=>{const u=e.resolveComponent("svg-icon"),c=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),L=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",oo,[t[8]||(t[8]=e.createElementVNode("h4",null,"标签页管理",-1)),e.createElementVNode("button",{onClick:B},[e.createVNode(u,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),t[7]||(t[7]=e.createTextVNode(" 新增标签页 "))])]),e.createElementVNode("div",so,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(I,j)=>(e.openBlock(),e.createElementBlock("div",{class:"tab-item",key:j},[e.createElementVNode("span",to,e.toDisplayString(I.title),1),e.createElementVNode("div",ro,[e.createElementVNode("button",{onClick:Y=>E(j)},"修改标题",8,co),e.createElementVNode("button",{onClick:Y=>O(j)},"布局调整",8,io),e.createElementVNode("button",{onClick:Y=>$(j)},"删除",8,uo)])]))),128))]),e.createVNode(R.ssDialog,{modelValue:r.value,"onUpdate:modelValue":t[2]||(t[2]=I=>r.value=I),title:d.value,onBeforeDestroy:t[3]||(t[3]=I=>r.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:t[1]||(t[1]=I=>r.value=!1)},"取消"),e.createElementVNode("button",{type:"primary",onClick:b},"确定")]),default:e.withCtx(()=>[e.createVNode(L,{model:i.value,"label-width":"80px"},{default:e.withCtx(()=>[e.createVNode(g,{label:"标签名称",required:""},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:i.value.title,"onUpdate:modelValue":t[0]||(t[0]=I=>i.value.title=I),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),e.createVNode(R.ssDialog,{modelValue:v.value,"onUpdate:modelValue":t[5]||(t[5]=I=>v.value=I),title:"布局调整",fullScreen:"",onBeforeDestroy:t[6]||(t[6]=I=>v.value=!1)},{footer:e.withCtx(()=>[e.createElementVNode("button",{onClick:t[4]||(t[4]=I=>v.value=!1)},"取消"),e.createElementVNode("button",{onClick:f},"确定")]),default:e.withCtx(()=>[e.createElementVNode("div",po,[e.createElementVNode("div",fo,[e.createVNode(Ra)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:D.innerWidth},[e.createVNode(ao)])),e.createElementVNode("div",mo,[e.createVNode(Ya)])])]),_:1},8,["modelValue"])])}}},yo=fe._export_sfc(ho,[["__scopeId","data-v-3b82a779"]]),hl=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"}]),vo={TABLE:ve.ssTable,FORM:Ye,TABLEOPERATE:Tn,FORMOPERATE:el,FOLD:ta,CALCULATOR:pa,METHODBUTTON:ha,AVATARUPLOAD:Xe.ssAvatar,SIGNATURE:Xe.ssSignature,FORMTOP:Ye,STEP:Ba,STEPOPERATE:Qn,TIMELINE:Ia,TIMELINEOPERATE:aa,FORMTOPOPERATE:el,SIGNATUREOPERATE:Ea,AVATARUPLOADOPERATE:ka,TABS:Sa,TABSOPERATE:yo};function Je(a){return vo[a==null?void 0:a.toUpperCase()]||null}const te=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],se=[{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),ko=a=>{const[s,n]=a.split(/=(.+)/),l=s.replace(/['"]/g,"").trim(),o=n.replace(/^['"]|['"]$/g,"");return{key:l,value:o}},Oe=a=>{try{return JSON.parse(a),!0}catch{return!1}},go=a=>a.includes("$")&&a.trim().endsWith("(")?a+")":a,bo=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("{"))},Co=a=>{var n;let s=[];return(n=bo(a.slice(1,-1)))==null||n.forEach(l=>{var r,d,i,_;let o=((d=(r=l.slice(1,-1))==null?void 0:r.split(","))==null?void 0:d.length)??1;(_=(i=l.slice(1,-1))==null?void 0:i.split(","))==null||_.forEach(v=>{var $,b,O,f,h,D,t,u,c,g,L,I,j;let k=v==null?void 0:v.split(":"),B=k!=null&&k[0]?(k==null?void 0:k[1].split("$").length)-1===1?(($=k==null?void 0:k[0])==null?void 0:$.replace(/^"(.*)"$/,"$1"))+((b=k==null?void 0:k[1])==null?void 0:b.replace(/^"(.*)"$/,"$1")):Array.isArray((f=(O=k==null?void 0:k[1])==null?void 0:O.replace(/^"(.*)"$/,"$1"))==null?void 0:f.split("("))&&((t=(D=(h=k==null?void 0:k[1])==null?void 0:h.replace(/^"(.*)"$/,"$1"))==null?void 0:D.split("("))==null?void 0:t.length)>1?((u=k==null?void 0:k[0])==null?void 0:u.replace(/^"(.*)"$/,"$1"))+((L=(g=(c=k==null?void 0:k[1])==null?void 0:c.replace(/^"(.*)"$/,"$1"))==null?void 0:g.split("("))==null?void 0:L[0])+"()":(I=k==null?void 0:k[0])==null?void 0:I.replace(/^"(.*)"$/,"$1"):"",E=(k==null?void 0:k[1].split("$").length)-1===0?(j=k==null?void 0:k[1])==null?void 0:j.replace(/^"(.*)"$/,"$1"):"";Te.value++,s.push({id:Te.value,key:B,value:E,width:o,extraContent:k==null?void 0:k[1]})})}),s},yl=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(Oe(o)&&!o.includes("$")||(o=o.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),Oe(o)){const r=JSON.parse(o);let d=[];return r==null||r.forEach(i=>{var _;(_=Object.entries(p.cloneDeep(i)))==null||_.forEach(v=>{Te.value++,d.push({id:Te.value,key:(v==null?void 0:v[0])??"",value:(v==null?void 0:v[1])===""?"":v==null?void 0:v[1],width:Object.keys(p.cloneDeep(i)).length})})}),d}else return l.trim().startsWith("{{")?Co(l.trim()):We(o)}else if(Oe(l)){const o=JSON.parse(l);return Object.entries(o).map(([r,d])=>(Te.value++,{id:Te.value,key:r,value:d===""?"":d,width:1}))}else return((s=We(l))==null?void 0:s.length)===0?l:(n=We(l))==null?void 0:n.map(o=>({label:o.label,method:go(o.method)}))}catch(l){return console.error("转换失败:",l),[]}},We=a=>{a=a.trim().replace(/^\{|\}$/g,"").trim();const s=[];let n=0;for(;n<a.length;){const l=a.slice(n).match(/^\s*"([^"]+)"\s*:\s*/);if(!l)break;const o=l[1];n+=l[0].length;let r="",d=0,i=!1,_="";for(let v=n;v<a.length;v++){const k=a[v];if((k==='"'||k==="'")&&!i?(i=!0,_=k):k===_&&i&&(i=!1,_=""),!i&&((k==="{"||k==="("||k==="[")&&d++,(k==="}"||k===")"||k==="]")&&d--,k===","&&d===0||v===a.length-1)){r=a.slice(n,v+1).trim(),n=v+1;break}}s.push({label:o,method:r})}return s},Do=(a,s)=>{try{if(te!=null&&te.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(Oe(n)){const l=JSON.parse(n);return Array.isArray(l)?l.map(o=>({label:o})):l}else return yl(p.cloneDeep(a))}}catch(n){return console.error("解析失败:",n),a}},_o=a=>({[a==null?void 0:a.key]:Do(a==null?void 0:a.value,a==null?void 0:a.key)}),Eo=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}},xo=a=>{const s=a.match(/\(([^)]+)\)/);return s?s[1]:""},No=a=>{const s=a.match(/^([^(]+)\s*\(/);return s?s[1].trim():a},ll=a=>a.replace(/'/g,"").replace(/"/g,"").replace(/{|}/g,"").split(":").map(s=>s.trim()).filter(s=>s).join("/"),Bo=a=>{var d,i;let s=[],n=[];const l=(d=p.cloneDeep(a))==null?void 0:d.map(_=>_==null?void 0:_.key),o=[...new Set((i=p.cloneDeep(l))==null?void 0:i.map(_=>xo(_)))];o==null||o.forEach(_=>{let v=a==null?void 0:a.filter(E=>E.key.includes(_));v==null||v.forEach(E=>{E!=null&&E.key.includes("Menus")&&(s.push({key:"GroupName",value:ll(E==null?void 0:E.value)}),n.push(ll(E==null?void 0:E.value)))});let k=a==null?void 0:a.filter(E=>E.key.includes(_)&&!(E!=null&&E.key.includes("Menus")));k=k==null?void 0:k.map(E=>(E.key=No(E.key),E));const B={key:"GroupContents",value:k};s.push(B)});const r={key:"Menus",value:n};return s.unshift(r),s},vl=a=>{var s,n;if(Array.isArray(Object.keys(a))&&((s=Object.keys(a))==null?void 0:s.length)>0){let l=[];return(n=Object.entries(a))==null||n.forEach(([o,r])=>{var i,_;let d=[];if(d.push(o),((i=Object.keys(r))==null?void 0:i.length)>0){let v=[];(_=vl(r))==null||_.forEach(k=>{v.push(k)}),v==null||v.forEach(k=>{d.push(k)})}l.push(d)}),l}},$o=(a,s)=>{var l;let n=s;return Array.isArray(Object.keys(a))&&((l=Object.entries(a))==null||l.forEach(([o,r])=>{let d=[o];if(typeof r=="object"&&r!==null){let i=vl(r);i==null||i.forEach(_=>{d.push(_)})}n.push(d)})),n},Vo=a=>{const s={};return a.forEach(l=>{const o=l.split("/");let r=s;o.forEach(d=>{r[d]||(r[d]={}),r=r[d]})}),$o(s,[])},qe=a=>Vo(a),wo=a=>{var s,n,l,o,r,d,i,_;try{const v=Re((n=(s=p.cloneDeep(a))==null?void 0:s.replace("(","("))==null?void 0:n.replace(")",")")),k=(o=(l=p.cloneDeep(v))==null?void 0:l.filter(b=>!b.includes("/*")))==null?void 0:o.map(b=>ko(b)),B=Bo(k),E=[];if(((r=B==null?void 0:B.find(b=>(b==null?void 0:b.key)==="Menus"))==null?void 0:r.value.length)===0)return!1;(d=p.cloneDeep(B))==null||d.forEach(b=>{var O,f,h,D,t;te!=null&&te.find(u=>{var c,g;return((c=u==null?void 0:u.key)==null?void 0:c.toUpperCase())===((g=b==null?void 0:b.key)==null?void 0:g.toUpperCase())})?E.push({comp:((O=te==null?void 0:te.find(u=>{var c,g;return((c=u==null?void 0:u.key)==null?void 0:c.toUpperCase())===((g=b==null?void 0:b.key)==null?void 0:g.toUpperCase())}))==null?void 0:O.value)??"",name:(f=b==null?void 0:b.value)==null?void 0:f.replace(/[’]|[‘]|[']/g,""),compData:[]}):se!=null&&se.find(u=>{var c,g;return((c=u==null?void 0:u.key)==null?void 0:c.toUpperCase())===((g=b==null?void 0:b.key)==null?void 0:g.toUpperCase())})&&((E==null?void 0:E.length)===0&&(h=b.key)!=null&&h.includes("Menus")&&E.push({comp:"Menu",name:"",compData:[]}),(D=E==null?void 0:E[(E==null?void 0:E.length)-1])!=null&&D.compData&&E[(E==null?void 0:E.length)-1].compData.push({key:(t=se==null?void 0:se.find(u=>{var c,g;return((c=u==null?void 0:u.key)==null?void 0:c.toUpperCase())===((g=b==null?void 0:b.key)==null?void 0:g.toUpperCase())}))==null?void 0:t.value,contents:b==null?void 0:b.value}))});let $=(i=p.cloneDeep(E))==null?void 0:i.map(b=>{var O;return b!=null&&b.compData&&(b.compData=(O=b==null?void 0:b.compData)==null?void 0:O.map(f=>{var h,D,t,u,c,g,L,I,j,Y,ee;if((f==null?void 0:f.key)==="formFlex")f.contents=((D=(h=f.contents)==null?void 0:h.replace(/[’]|[‘]|[']/g,""))==null?void 0:D.toUpperCase())!=="Vertical".toUpperCase();else if((f==null?void 0:f.key)==="groupContents")f.contents=(t=p.cloneDeep(f.contents))==null?void 0:t.map(m=>_o(p.cloneDeep(m)));else if(Array.isArray(f==null?void 0:f.contents))f.contents=qe(f.contents);else if(((c=(u=f==null?void 0:f.contents)==null?void 0:u.trim())!=null&&c.startsWith("[")||(L=(g=f.contents)==null?void 0:g.trim())!=null&&L.startsWith("【"))&&((j=(I=f.contents)==null?void 0:I.trim())!=null&&j.endsWith("]")||(ee=(Y=f.contents)==null?void 0:Y.trim())!=null&&ee.endsWith("】")))f.contents=Eo(p.cloneDeep(f.contents));else{if(!f.contents)return;f.contents=yl(p.cloneDeep(f.contents))}return f})),b});return $=(_=p.cloneDeep($))==null?void 0:_.map(b=>{var O;return(b==null?void 0:b.comp)==="Group"&&(b.compData=(O=b.compData)==null?void 0:O.map(f=>{var D;let h=[];return(D=f.contents)==null||D.forEach(t=>{var u,c,g,L,I,j,Y,ee,m,x,T,y;if(te!=null&&te.find(F=>{var P,H,w;return((P=F==null?void 0:F.key)==null?void 0:P.toUpperCase())===((w=(H=Object.keys(t))==null?void 0:H[0])==null?void 0:w.toUpperCase())}))h.push({comp:(u=te==null?void 0:te.find(F=>{var P,H,w;return((P=F==null?void 0:F.key)==null?void 0:P.toUpperCase())===((w=(H=Object.keys(t))==null?void 0:H[0])==null?void 0:w.toUpperCase())}))==null?void 0:u.value,name:(g=(c=Object.values(t))==null?void 0:c[0])==null?void 0:g.replace(/[’]|[‘]|[']/g,""),compData:[]});else if(se!=null&&se.find(F=>{var P,H,w;return((P=F==null?void 0:F.key)==null?void 0:P.toUpperCase())===((w=(H=Object.keys(t))==null?void 0:H[0])==null?void 0:w.toUpperCase())})){if((h==null?void 0:h.length)===0)return;(L=h==null?void 0:h[(h==null?void 0:h.length)-1])!=null&&L.compData&&h[(h==null?void 0:h.length)-1].compData.push({key:(I=se==null?void 0:se.find(F=>{var P,H,w;return((P=F==null?void 0:F.key)==null?void 0:P.toUpperCase())===((w=(H=Object.keys(t))==null?void 0:H[0])==null?void 0:w.toUpperCase())}))==null?void 0:I.value,contents:(j=Object.values(t))==null?void 0:j[0]})}else if((ee=(Y=Object.keys(t))==null?void 0:Y[0])!=null&&ee.includes("$")){const F=(x=(m=Object.keys(p.cloneDeep(t)))==null?void 0:m[0])==null?void 0:x.split("$");h[(h==null?void 0:h.length)-1].compData.push({key:(T=se==null?void 0:se.find(P=>{var H,w;return((H=P==null?void 0:P.key)==null?void 0:H.toUpperCase())===((w=F==null?void 0:F[0])==null?void 0:w.toUpperCase())}))==null?void 0:T.value,contents:(y=Object.values(t))==null?void 0:y[0],selectLabel:F==null?void 0:F[1]})}return t}),f.contents=h,f})),b}),$}catch{return!1}},nl=e.ref(0),kl=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=kl(o));else{const r={label:o};s.push(r),n=r}}return s},gl=a=>{let s=0;for(const n of a)s++,n.children&&(s+=gl(n.children));return s},bl=(a,s,n=[])=>{let l=0;for(const o of s){if(l>=a.length)break;const r=[...a[l]];if(n.push(r),l++,o.children&&o.children.length>0){const d=[];bl(a.slice(l),o.children,d),d.length>0&&(r.push(d),l+=gl(o.children))}}return n},To=(a,s)=>{let n=[];return a==null||a.forEach(o=>{o.some(r=>Array.isArray(r))?n.push(...o):n.push(o)}),bl(n,s)},Ge=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)?Ge(l):{label:l.trim()}):s.children=n.map(l=>Array.isArray(l)?Ge(l):{label:l.trim()})}return s},al=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},Ao=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(r=>Array.isArray(r))?l==null||l.forEach(r=>{Array.isArray(r)&&o.push(Ge(r))}):l.some(r=>r.includes("["))?o.push(l):o=l.map(r=>({label:r.trim()})),o})},Cl=(a,s,n)=>{let l=a,o=n,r=s;return r.children&&(Array.isArray(o[o.length-1])?o[o.length-1].push(l[0]):o.push(l[0]),l.shift(),r=r.children),Array.isArray(r)&&r.forEach(d=>{if(d.children){const i=Cl(l,d,o);o=i[0],l=i[1]}}),[o,l]},Io=(a,s)=>{let n=a,l=[];return s.length>0?s==null||s.forEach(o=>{let r=n==null?void 0:n[0];n.shift();const d=Cl(p.cloneDeep(n),o,r);r=d[0],n=d[1],l.push(r)}):l=n,l},He=(a,s)=>{const n=Ao(p.cloneDeep(a));return Io(n,s)},Fo=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},Dl=a=>He([a],[]),je=a=>{const s=[];return a==null||a.forEach(n=>n==null?void 0:n.forEach(o=>{var r,d;nl.value++,s.push({id:nl.value,key:(r=Object.keys(o))==null?void 0:r[0],value:(d=Object.values(o))==null?void 0:d[0],width:n.length})})),s},ol=a=>{let s=Fo(a);return s=s==null?void 0:s.map(n=>{var l,o,r,d;if(n.comp==="Table")(l=n.compData)!=null&&l.find(i=>(i==null?void 0:i.key)==="header")||(n.compData=(o=n.compData)==null?void 0:o.map(i=>(i.key==="tableColumns"?i={key:"header",contents:He(i.value,[])}:i={key:i.key,contents:i.value},i)),n.compData.push({key:"extraButton",contents:[{label:"新增"}]}),n.compData.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}));else if(n.key==="form"){const i=(r=n==null?void 0:n.value)==null?void 0:r.map(_=>(Array.isArray(_)||(_=[_]),_));n={comp:"Form",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:je(i)}],name:""}}else if(n.key==="formTop"){const i=(d=n==null?void 0:n.value)==null?void 0:d.map(_=>(Array.isArray(_)||(_=[_]),_));n={comp:"FormTop",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:je(i)},{key:"enableWrap",contents:!0},{key:"formButton",contents:[{label:"查询"},{label:"重置"}]}],name:""}}return n}),s},Oo=(a,s)=>{var i,_,v,k,B,E;const n=[],l=kl((_=(i=a==null?void 0:a.find($=>$.key==="tableIndex"))==null?void 0:i.value)==null?void 0:_[0]);n.push({key:"tableIndexColumn",contents:s}),n.push({key:"tableIndex",contents:l});let o=[];const r=(v=a==null?void 0:a.find($=>$.key==="tableColumns"))==null?void 0:v.value;r.length===1&&!(r!=null&&r[0].some($=>Array.isArray($)))?o=(k=r==null?void 0:r[0])==null?void 0:k.map($=>({label:$})):o=He((B=a==null?void 0:a.find($=>$.key==="tableColumns"))==null?void 0:B.value,l),n.push({key:"header",contents:o});const d=To((E=a==null?void 0:a.find($=>$.key==="tableContents"))==null?void 0:E.value,l);return n.push({key:"tableContents",contents:d}),n.push({key:"extraButton",contents:[{label:"新增"}]}),n.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),n},_l=a=>a.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,(s,n,l)=>{const o=_l(l);return`"${n}",${o}`}),Ie=a=>{const s=a.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,'"$1",$2');return _l(s).replace(/^"(.*)"$/,"$1")},So=a=>{const s=new Set;return a.filter(n=>{const l=JSON.stringify(n);return s.has(l)?!1:s.add(l)})},sl=a=>{var n;let s=[];return(n=p.cloneDeep(a))==null||n.forEach(l=>{var o;(o=l.contents)==null||o.forEach(r=>{s.push(r)})}),s=So(s),s.push({label:"操作"}),[s]},Lo=(a,s)=>a.reduce((n,l,o)=>{const r=Math.floor(o/s);return n[r]||(n[r]=[]),n[r].push(l),n},[]),El=a=>a.reduce((s,n)=>n.children&&n.children.length>0?s+El(n.children):s+1,0),jo=(a,s)=>{var l;let n=[];return(l=Lo(a,El(s==null?void 0:s[0])-1))==null||l.forEach(o=>{let r=[];o.forEach(d=>{var i;Array.isArray(d.contents)?(i=d.contents)==null||i.forEach(_=>{r.push(_)}):r.push(d.contents)}),n.push(r)}),[n]},Uo=["方法体","输入","输出"],tl=e.ref(1),Re=a=>{let s;a.replaceAll(" ",`\r
2
+ `).includes(`\r
3
+ `)?s=a.replaceAll(" ",`\r
4
+ `).split(`\r
5
+ `).filter(o=>o.trim()!==""):s=a.replaceAll(" ",`\r
6
+ `).split(`
7
+ `).filter(o=>o.trim()!=="");const n=[];let l="";for(const o of s)o.includes("{")||l.includes("{")||o.includes("[")||l.includes("[")||o.includes("【")||l.includes("【")||o.includes("(")||l.includes("(")||o.includes("(")||l.includes("(")||o.includes("/*")||l.includes("/*")?(l+=o.trim(),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},xl=a=>{const[s,n]=a.split(/=(.+)/),l=s.replace(/['"]/g,"").trim(),o=n.replace(/^['"]|['"]$/g,"");return{key:l,value:o}},Pe=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},Jo=a=>/^[\x00-\x7F]*$/.test(a),Ro=a=>{var o,r;const s=(o=a.map(d=>{var _,v;let i=(v=(_=d.key.split("("))==null?void 0:_[1])==null?void 0:v.trim();return i==null?void 0:i.slice(0,i.length-1)}))==null?void 0:o.filter(d=>d),n=s==null?void 0:s.map(d=>{var _;return(_=Pe(d))==null?void 0:_.map(v=>{var k;if(v.includes("{")){let B=(k=v.split(":"))==null?void 0:k[0];v=B.slice(1,B.length)}return v})}).filter(d=>d.length!==0),l=(r=n==null?void 0:n.filter(d=>d.length!==0))==null?void 0:r.map(d=>{let i="";return d.forEach(_=>{_.includes("{")||(i=i===""?i+p.cloneDeep(_):i+"/"+p.cloneDeep(_))}),i});return qe([...new Set(l)])},Ze=a=>{var n,l,o,r,d,i,_,v;const s=(l=(n=a.split("("))==null?void 0:n[1])==null?void 0:l.trim();return((o=Pe(s.slice(0,s.length-1)))==null?void 0:o.length)>0?s.slice(0,s.length-1):(v=(_=(i=(d=(r=a.split("("))==null?void 0:r[1])==null?void 0:d.trim())==null?void 0:i.split(")"))==null?void 0:_[0])==null?void 0:v.trim()},Po=a=>{var o;if(!a)return;const s=Ze(a),n=(o=Pe(s))==null?void 0:o.map(r=>{var d;if(r.includes("{")){let i=(d=r.split(":"))==null?void 0:d[0];r=i.slice(1,i.length)}return r});let l="";return n.forEach(r=>{r.includes("{")||(l=l===""?l+p.cloneDeep(r):l+"/"+p.cloneDeep(r))}),l},Wo=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,'"'))}}},Mo=a=>{var r;if(!a)return;const s=Ze(a);let n=[],l=[],o=[];return(r=Pe(s))==null||r.forEach(d=>{var i;d.includes("[")?n.push(Wo(d)):d.includes("{")&&(Jo((i=d.slice(1,d.length-1).split(":"))==null?void 0:i[0])?o.push(JSON.parse(d.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g,'$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g,'$1"$2"$3'))):ve.IsJson(d.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g,'$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g,'$1"$2"$3'))?l.push(JSON.parse(d.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g,'$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g,'$1"$2"$3'))):d.includes("$"))}),[n,l,o]},zo=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},rl=a=>{var d,i;const s=[],n=/(?:{'([^']+)'[^}]+}: {'([^']+)'[^}]+}|'([^']+)': {'([^']+)'[^}]+})/,l=a.match(n);if(l){const _=l[1]||l[3],v=l[2]||l[4];if(_&&v){const k=`${_}/${v}`;s.push(k)}}const o=/(https?:\/\/[^\s)]+|Http:\/\/[^\s)]+|\/[^\s)]+)/i,r=a.match(o);return r?s.push(r[0].replace(/\)+$/,"")):(a==null?void 0:a.split(",").length)===2&&s.push((i=(d=a==null?void 0:a.split(","))==null?void 0:d[1])==null?void 0:i.trim()),s},Me=a=>{let s=a.replace(/\[\s*,\s*,/g,'[{"": ""}, {"": ""},');return s=s.replace(/\[\s*,/g,'[{"": ""},'),s=s.replace(/,\s*,/g,', {"": ""},'),s=s.replace(/,\s*\]/g,', {"": ""}]'),s=s.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,\]}])/g,(n,l,o,r,d)=>o.includes("'")?`:${l}${o}${r}${d}`:`:${l}"${o}"${r}${d}`),s=s.replace(/:\s*([,\]}])/g,': ""$1'),s},Go=a=>!/\[[^\]]*\{[^\]]*\]/.test(a),qo=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 r=null;if(o)try{r=JSON.parse(o)}catch(d){console.error("解析数组失败:",d)}return[n,r]},Ho=a=>{var i,_,v,k,B,E,$,b,O,f,h;let s=[],n=[],l={},o=[],r=a.trim(),d=[];if(r.trim().includes("输入")&&r.trim().includes("输出")){let D=[],t=a.trim();t=p.cloneDeep(t).slice(1,p.cloneDeep(t).length-1);const u=/(\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})/g;(b=t.match(u))==null||b.forEach((c,g)=>{var j;const L=c;let I=[];(j=L.slice(1,L.length-1).replace(":","$:").split("$:"))==null||j.forEach(Y=>{var ee,m,x;if(Uo.find(T=>Y.includes(T)))if(!Y.includes("=="))I.push({key:"tableIndexColumn",contents:Y.replaceAll("'","")});else{let T=[];const y=Y.replaceAll("'","").split("==");T.push(y==null?void 0:y[0]),y!=null&&y[1].includes("[")?T.push(y==null?void 0:y[1].trim().slice(1,(y==null?void 0:y[1].length)-1).split(",")):T.push([y==null?void 0:y[1]]),I.push({key:"header",contents:[(m=(ee=Dl([T]))==null?void 0:ee[0])==null?void 0:m[0]]})}else{let T=Y.trim().replaceAll(",",",").replaceAll("'",'"');if(g%3===0)T.slice(1,T.length-1).includes("[")?D.push({key:"tableIndex",contents:[{label:T}]}):D.push({key:"tableIndex",contents:[{label:T.slice(1,T.length-1)}]});else if((T==null?void 0:T[0])==="{"){let y=[];const F=T.slice(1,T.length-1).split(":");if(F.every(P=>ve.IsJson(P.trim()))){y.push({key:"tableContentName",contents:"详情"});let P=[];F.forEach((H,w)=>{if(w===0){const Z=JSON.parse(H).map(W=>({label:W}));Z.push({label:"操作"}),P.push({key:"header",contents:Z})}else P.push({key:"tableContents",contents:JSON.parse(H)})}),P.push({key:"extraButton",contents:[{label:"新增"}]}),P.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),y.push({comp:"Table",compData:P,name:""}),D.push({key:"tableContents",contents:[y]})}}else{let y=T;y.slice(1,y.length-1).includes("[")||y.slice(1,y.length-1).includes("{")?ve.IsJson(al(y.replace(/\s+/g,"")))&&((x=JSON.parse(al(y.replace(/\s+/g,""))))==null||x.map(F=>{if(Array.isArray(F==null?void 0:F[0])){const P=[];P.push({key:"tableContentName",contents:"详情"});let H=[];F.forEach(w=>{w.forEach(Z=>{var W,ne;tl.value++,H.push({id:tl.value,key:(W=Object.keys(Z))==null?void 0:W[0],value:(ne=Object.values(Z))==null?void 0:ne[0],width:w.length})})}),P.push({comp:"Form",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:H}],name:""}),D.push({key:"tableContents",contents:[P]})}else D.push({key:"tableContents",contents:F==null?void 0:F[0]})})):D.push({key:"tableContents",contents:y.trim().slice(1,y.length-1)})}}}),D.push(I==null?void 0:I[0])}),d.push({key:"tableIndex",contents:(O=D==null?void 0:D.filter(c=>(c==null?void 0:c.key)==="tableIndex"))==null?void 0:O.map(c=>{var g;return(g=c.contents)==null?void 0:g[0]})}),d.push({key:"extraButton",contents:[{label:"新增"}]}),d.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),d.push({key:"tableIndexColumn",contents:(h=(f=D==null?void 0:D.filter(c=>(c==null?void 0:c.key)==="tableIndexColumn"))==null?void 0:f[0])==null?void 0:h.contents}),d.push({key:"header",contents:sl(D==null?void 0:D.filter(c=>(c==null?void 0:c.key)==="header"))}),d.push({key:"tableContents",contents:jo(D==null?void 0:D.filter(c=>(c==null?void 0:c.key)==="tableContents"),sl(D==null?void 0:D.filter(c=>(c==null?void 0:c.key)==="header")))})}else{const D=(i=r.trim().split(",$"))==null?void 0:i[0];D[0]==="["?r=D.slice(1,D.length-1):r.includes(",$")&&(r=(_=r.trim().split(",$"))==null?void 0:_[0]);let t;if(r.includes("$")){r=p.cloneDeep(r),l.method=(k=(v=p.cloneDeep(r).trim())==null?void 0:v.slice(1,r.length).split("("))==null?void 0:k[0];let u;rl(r.slice(1,r.length-2)).length>1?u=rl(r.slice(1,r.length-2)):u=qo(r),l.value=u}else ve.IsJson("["+Me(r).replaceAll("'",'"')+"]")&&!Go(Me(r).replaceAll("'",'"'))?(r=JSON.parse("["+Me(r).replaceAll("'",'"')+"]"),o=r):t=(E=(B=p.cloneDeep(r).split("}"))==null?void 0:B.filter(u=>u!==""))==null?void 0:E.map(u=>{let c=u;return c[0]===","?c=c.slice(2,c.length):c=c.slice(1,c.length),c});($=p.cloneDeep(t))==null||$.forEach(u=>{var c,g,L,I,j,Y,ee,m,x,T,y,F,P,H,w;if(u.includes("==")){const Z=(F=u==null?void 0:u.split(":"))==null?void 0:F[0].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"').replaceAll("'",'"'),W=(P=u==null?void 0:u.split(":"))==null?void 0:P[1].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"');if(ve.IsJson(W.trim())?n.push(JSON.parse(W.trim())):n.push(JSON.parse(W.replaceAll("'",'"').trim())),Z[0]!=="["){let ne=[];ve.IsJson("["+Ie(Z)+"]")?ne.push(JSON.parse("["+Ie(Z)+"]")):ve.IsJson("["+Ie(Z).replaceAll("==",",")+"]")&&ne.push(JSON.parse("["+Ie(Z).replaceAll("==",",")+"]"));const ie=p.cloneDeep(ne);ie.push(["操作"]),s.push(ie)}else{const ne=(H=Z.slice(1,Z.length-1).replaceAll(",",",|"))==null?void 0:H.split("|"),ie=(w=zo(ne))==null?void 0:w.map(X=>((X==null?void 0:X[X.length-1])===","&&(X=X.slice(0,X.length-1)),X));let me=[];ie==null||ie.forEach(X=>{var oe,he,ce,ue;let z=[];z.push((oe=X.split("=="))==null?void 0:oe[0].trim().replace(/^"|"$/g,"")),((he=X.split("=="))==null?void 0:he[1].trim()[0])==="["?z.push(JSON.parse((ce=X.split("=="))==null?void 0:ce[1].trim())):z.push([JSON.parse((ue=X.split("=="))==null?void 0:ue[1].trim())]),me.push(z)});const U=p.cloneDeep(me);U.push(["操作"]),s.push(U)}}else{if(ve.IsJson((c=u==null?void 0:u.split(":"))==null?void 0:c[0].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"').replaceAll("'",'"'))){let Z=JSON.parse((g=u==null?void 0:u.split(":"))==null?void 0:g[0].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"').replaceAll("'",'"'));Array.isArray(Z)||(Z=[Z]),Z.push("操作"),s.push(Z)}ve.IsJson((j=(I=(L=u==null?void 0:u.split(":"))==null?void 0:L[1])==null?void 0:I.replace(/^"|"$/g,"'"))==null?void 0:j.replace(/'([^']+)'/g,'"$1"'))?n.push(JSON.parse((Y=u==null?void 0:u.split(":"))==null?void 0:Y[1].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"'))):ve.IsJson((T=(x=(m=(ee=u==null?void 0:u.split(":"))==null?void 0:ee[1])==null?void 0:m.replace(/^"|"$/g,"'"))==null?void 0:x.replaceAll("'",'"'))==null?void 0:T.replace(/'([^']+)'/g,'"$1"'))&&n.push(JSON.parse((y=u==null?void 0:u.split(":"))==null?void 0:y[1].replace(/^"|"$/g,"'").replaceAll("'",'"').replace(/'([^']+)'/g,'"$1"')))}})}return[s,n,d,l,o]},Zo=a=>{const s=[],n=Po(a==null?void 0:a.key),l=Mo(a==null?void 0:a.key),o=Ho(a==null?void 0:a.value),r=l==null?void 0:l[0],d=o==null?void 0:o[4],i=l==null?void 0:l[1],_=l==null?void 0:l[2],v=o==null?void 0:o[0],k=o==null?void 0:o[1],B=o==null?void 0:o[2],E=o==null?void 0:o[3];return n&&s.push({key:"contentPath",value:n}),(r==null?void 0:r.length)>0&&s.push({key:"tableIndex",value:r}),E&&s.push({key:"extraButton",value:E}),(d==null?void 0:d.length)>0&&s.push({key:"form",value:d}),(i==null?void 0:i.length)>0&&s.push({key:"formTop",value:i}),(_==null?void 0:_.length)>0&&s.push({key:"extra",value:_}),(B==null?void 0:B.length)>0&&s.push({comp:"Table",compData:B,name:""}),(v==null?void 0:v.length)>0&&s.push({key:"tableColumns",value:v}),(k==null?void 0:k.length)>0&&s.push({key:"tableContents",value:k}),s},Ko=a=>{let s=[],n=[];a==null||a.forEach(o=>{Array.isArray(o)&&(o==null||o.forEach(r=>{var d;r.comp==="FormTop"&&((d=r.compData)==null||d.forEach(i=>{(i==null?void 0:i.key)==="formContent"&&(n=[...n,...i.contents])}))}))});const l=n.reduce((o,r)=>o.find(i=>(i==null?void 0:i.key)===(r==null?void 0:r.key))?o:o.concat([r]),[]);return l.length!==0&&s.push([{comp:"FormTop",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:l},{key:"enableWrap",contents:!0},{key:"formButton",contents:[{label:"查询"},{label:"重置"}]}]}]),a==null||a.forEach(o=>{if(Array.isArray(o)){const r=o.filter(d=>d.comp!=="FormTop");s.push(r)}else o.comp!=="FormTop"&&s.push(o)}),s},Qo=(a,s)=>{const n=s.split("/");let l=[];return a==null||a.forEach(o=>{var i,_,v,k,B,E,$,b,O,f,h;const r=[],d=(_=(i=o.find(D=>D.key==="tableIndex"))==null?void 0:i.value)==null?void 0:_[0];if(d&&!d.some(D=>Array.isArray(D))){const D=(k=(v=o.find(t=>t.key==="tableColumns"))==null?void 0:v.value)==null?void 0:k[0];r.push({key:"tableIndexColumn",contents:n[n.length-1]}),r.push({key:"tableIndex",contents:d==null?void 0:d.map(t=>({label:t}))}),r.push({key:"extraButton",contents:[{label:"新增"}]}),r.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),Array.isArray(D)&&D.some(t=>Array.isArray(t))?r.push({key:"header",contents:Dl(D)}):r.push({key:"header",contents:Array.isArray(D)?D==null?void 0:D.map(t=>({label:t})):[D].map(t=>({label:t}))}),r.push({key:"tableContents",contents:Array.isArray(D)?(E=(B=o.find(t=>t.key==="tableContents"))==null?void 0:B.value)==null?void 0:E[0]:(O=(b=($=o.find(t=>t.key==="tableContents"))==null?void 0:$.value)==null?void 0:b[0])==null?void 0:O.map(t=>[t])}),l.push({comp:"Table",name:"",compData:r}),o!=null&&o.find(t=>(t==null?void 0:t.key)==="formTop")&&l.push({comp:"FormTop",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:je([(f=o==null?void 0:o.find(t=>(t==null?void 0:t.key)==="formTop"))==null?void 0:f.value])},{key:"enableWrap",contents:!0},{key:"formButton",contents:[{label:"查询"},{label:"重置"}]}],name:""})}else d?(l.push({comp:"Table",name:"",compData:Oo(o,n[n.length-1])}),o!=null&&o.find(D=>(D==null?void 0:D.key)==="formTop")&&l.push({comp:"FormTop",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:je([(h=o==null?void 0:o.find(D=>(D==null?void 0:D.key)==="formTop"))==null?void 0:h.value])},{key:"enableWrap",contents:!0},{key:"formButton",contents:[{label:"查询"},{label:"重置"}]}],name:""})):o.some(D=>D.key==="extra")?l.push({comp:"calculator",name:"",compData:ol(o)}):l.push(ol(o))}),Ko(l)},Xo=(a,s)=>{var o,r;const n=a.map(d=>d.filter(i=>i.key!=="contentPath"));return{comp:"Group",compData:[{contents:Qo(n,s),key:"groupContents"}],name:(r=(o=a[0])==null?void 0:o.find(d=>d.key==="contentPath"))==null?void 0:r.value}},Yo=a=>{var o;const s=[],n=p.cloneDeep(a).map(r=>{var d;if(r!=null&&r.find(i=>(i==null?void 0:i.key)==="contentPath"))return(d=r==null?void 0:r.find(i=>(i==null?void 0:i.key)==="contentPath"))==null?void 0:d.value}).filter(r=>r!==""),l=[...new Set(n)];return(o=l==null?void 0:l.filter(r=>r))==null||o.forEach(r=>{var d;s.push(Xo((d=p.cloneDeep(a))==null?void 0:d.filter(i=>i.find(_=>_.key==="contentPath"&&_.value===r)),r))}),s},es=a=>{let s=[];s.push({comp:"Menu",compData:[{contents:Ro(p.cloneDeep(a)),key:"menuContents"}],name:""});const n=a.map(l=>Zo(l)).filter(l=>l.length!==0);return s=[...s,...Yo(n)],s},ls=a=>{var s,n,l,o,r;try{const d=(l=Re((n=(s=p.cloneDeep(a))==null?void 0:s.replace("(","("))==null?void 0:n.replace(")",")")))==null?void 0:l.filter(v=>v!==""),i=(r=(o=p.cloneDeep(d))==null?void 0:o.filter(v=>!v.includes("/*")))==null?void 0:r.map(v=>xl(v));return es(i)}catch{return!1}},Fe=e.ref(0),ze=e.ref(0),ns=a=>{const s=a.trim().replace(/^'|'$/g,""),n=/((?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*(.*?)(?=\s*(?:(?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=|$)/g,l={};let o;for(;(o=n.exec(s))!==null;){const r=o[1];let d=o[2].trim();(d.match(/\[/g)||[]).length!==(d.match(/\]/g)||[]).length&&(d=d==null?void 0:d.replace(/]$/,"")),l[r]?(l[r+ze.value]&&ze.value++,l[r+ze.value]=r+"="+d):l[r]=r+"="+d}return l},Nl=a=>{const[s,n]=a.split("=").map(r=>r.trim()),l=s.replace(/['"]/g,""),o=n.replace(/^['"]|['"]$/g,"");return{key:l,value:o}},as=a=>{var d;let s=[];const[n,l]=a.split(/=(.+)/),o=n.replace(/['"]/g,"").trim(),r=l.replace(/^['"]|['"]$/g,"");return(d=Object.values(ns(r)))==null||d.forEach(i=>{s.push(Nl(i))}),{key:o,value:s}},Se=a=>{try{return JSON.parse(a),!0}catch{return!1}},Bl=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(Se(n)&&!n.includes("$")||(n=n.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),Se(n)){const l=JSON.parse(n);let o=[];return l==null||l.forEach(r=>{var d;(d=Object.entries(p.cloneDeep(r)))==null||d.forEach(i=>{Fe.value++,o.push({id:Fe.value,key:(i==null?void 0:i[0])??"",value:(i==null?void 0:i[1])===""?"":i==null?void 0:i[1],width:Object.keys(p.cloneDeep(r)).length})})}),o}else return console.error("转换类型不正确:"),[]}else if(Se(s)){const n=JSON.parse(s);return Object.entries(n).map(([l,o])=>(Fe.value++,{id:Fe.value,key:l,value:o===""?"":o,width:1}))}else return s}catch(s){return console.error("转换失败:",s),[]}},os=(a,s)=>{try{if(te!=null&&te.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(Se(n)){const l=JSON.parse(n);return Array.isArray(l)?l.map(o=>({label:o})):l}else return Bl(p.cloneDeep(a))}}catch(n){return console.error("解析失败:",n),a}},ss=a=>({[a==null?void 0:a.key]:os(a==null?void 0:a.value,a==null?void 0:a.key)}),ts=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}},$l=a=>{var s,n,l,o,r,d;try{const i=Re((n=(s=p.cloneDeep(a))==null?void 0:s.replace("(","("))==null?void 0:n.replace(")",")")),_=(l=p.cloneDeep(i))==null?void 0:l.map(B=>{var $,b;let E=(b=($=p.cloneDeep(B))==null?void 0:$.split("="))==null?void 0:b[0];return E!=null&&E.includes("GroupContents")?as(B):Nl(B)}),v=[];(o=p.cloneDeep(_))==null||o.forEach(B=>{var E,$,b,O,f;te!=null&&te.find(h=>{var D,t;return((D=h==null?void 0:h.key)==null?void 0:D.toUpperCase())===((t=B==null?void 0:B.key)==null?void 0:t.toUpperCase())})?v.push({comp:((E=te==null?void 0:te.find(h=>{var D,t;return((D=h==null?void 0:h.key)==null?void 0:D.toUpperCase())===((t=B==null?void 0:B.key)==null?void 0:t.toUpperCase())}))==null?void 0:E.value)??"",name:($=B==null?void 0:B.value)==null?void 0:$.replace(/[’]|[‘]|[']/g,""),compData:[]}):se!=null&&se.find(h=>{var D,t;return((D=h==null?void 0:h.key)==null?void 0:D.toUpperCase())===((t=B==null?void 0:B.key)==null?void 0:t.toUpperCase())})&&((v==null?void 0:v.length)===0&&(b=B.key)!=null&&b.includes("Menus")&&v.push({comp:"Menu",name:"",compData:[]}),(O=v==null?void 0:v[(v==null?void 0:v.length)-1])!=null&&O.compData&&v[(v==null?void 0:v.length)-1].compData.push({key:(f=se==null?void 0:se.find(h=>{var D,t;return((D=h==null?void 0:h.key)==null?void 0:D.toUpperCase())===((t=B==null?void 0:B.key)==null?void 0:t.toUpperCase())}))==null?void 0:f.value,contents:B==null?void 0:B.value}))}),console.log("newContents",v);let k=(r=p.cloneDeep(v))==null?void 0:r.map(B=>{var E;return B!=null&&B.compData&&(B.compData=(E=B==null?void 0:B.compData)==null?void 0:E.map($=>{var b,O,f,h,D,t,u,c,g,L,I;if(($==null?void 0:$.key)==="formFlex")$.contents=((O=(b=$.contents)==null?void 0:b.replace(/[’]|[‘]|[']/g,""))==null?void 0:O.toUpperCase())!=="Vertical".toUpperCase();else if(($==null?void 0:$.key)==="groupContents")$.contents=(f=p.cloneDeep($.contents))==null?void 0:f.map(j=>ss(p.cloneDeep(j)));else if(((D=(h=$.contents)==null?void 0:h.trim())!=null&&D.startsWith("[")||(u=(t=$.contents)==null?void 0:t.trim())!=null&&u.startsWith("【"))&&((g=(c=$.contents)==null?void 0:c.trim())!=null&&g.endsWith("]")||(I=(L=$.contents)==null?void 0:L.trim())!=null&&I.endsWith("】")))$.contents=ts(p.cloneDeep($.contents));else{if(!$.contents)return;$.contents=Bl(p.cloneDeep($.contents))}return $})),B});return k=(d=p.cloneDeep(k))==null?void 0:d.map(B=>{var E;return(B==null?void 0:B.comp)==="Group"&&(B.compData=(E=B.compData)==null?void 0:E.map($=>{var O;let b=[];return(O=$.contents)==null||O.forEach(f=>{var h,D,t,u,c,g,L,I,j,Y,ee,m;if(te!=null&&te.find(x=>{var T,y,F;return((T=x==null?void 0:x.key)==null?void 0:T.toUpperCase())===((F=(y=Object.keys(f))==null?void 0:y[0])==null?void 0:F.toUpperCase())}))b.push({comp:(h=te==null?void 0:te.find(x=>{var T,y,F;return((T=x==null?void 0:x.key)==null?void 0:T.toUpperCase())===((F=(y=Object.keys(f))==null?void 0:y[0])==null?void 0:F.toUpperCase())}))==null?void 0:h.value,name:(t=(D=Object.values(f))==null?void 0:D[0])==null?void 0:t.replace(/[’]|[‘]|[']/g,""),compData:[]});else if(se!=null&&se.find(x=>{var T,y,F;return((T=x==null?void 0:x.key)==null?void 0:T.toUpperCase())===((F=(y=Object.keys(f))==null?void 0:y[0])==null?void 0:F.toUpperCase())})){if((b==null?void 0:b.length)===0)return;(u=b==null?void 0:b[(b==null?void 0:b.length)-1])!=null&&u.compData&&b[(b==null?void 0:b.length)-1].compData.push({key:(c=se==null?void 0:se.find(x=>{var T,y,F;return((T=x==null?void 0:x.key)==null?void 0:T.toUpperCase())===((F=(y=Object.keys(f))==null?void 0:y[0])==null?void 0:F.toUpperCase())}))==null?void 0:c.value,contents:(g=Object.values(f))==null?void 0:g[0]})}else if((I=(L=Object.keys(f))==null?void 0:L[0])!=null&&I.includes("$")){const x=(Y=(j=Object.keys(p.cloneDeep(f)))==null?void 0:j[0])==null?void 0:Y.split("$");b[(b==null?void 0:b.length)-1].compData.push({key:(ee=se==null?void 0:se.find(T=>{var y,F;return((y=T==null?void 0:T.key)==null?void 0:y.toUpperCase())===((F=x==null?void 0:x[0])==null?void 0:F.toUpperCase())}))==null?void 0:ee.value,contents:(m=Object.values(f))==null?void 0:m[0],selectLabel:x==null?void 0:x[1]})}return f}),$.contents=b,$})),B}),k}catch{return!1}},rs=a=>$l(a),cs=a=>!!$l(a),Ae=e.ref(0),is=a=>a.reduce((n,l)=>{var r,d;const o=Object.values(n);return(((r=Object.keys(n))==null?void 0:r.length)===0||o[o.length-1].length>=(l==null?void 0:l.width))&&(n[Ae.value]=[],Ae.value++),n[Ae.value-1].push(l),((d=Object.keys(n))==null?void 0:d.length)===(l==null?void 0:l.width)&&(n[Ae.value]=[],Ae.value++),n},{});exports.arrayToNumberArray=is;exports.contentTransArray=Re;exports.expandContentStringToJson=ls;exports.expandNewStringToJson=wo;exports.expandStringToJson=rs;exports.getComponent=Je;exports.getContentValue=Ze;exports.isExpandStringToJson=cs;exports.menuArray=qe;exports.parseGroupValue=xl;exports.slotContent=hl;
@@ -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-BLY3jSMo.js";
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-CEIWAp5_.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-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
+ "use strict";const n=require("./index-ZKwBkEiK.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,5 +1,5 @@
1
- import { s as e } from "./index-B6QzxKzK.js";
2
- function s(t) {
1
+ import { a as e } from "./menu-DBUuyOMU.js";
2
+ function r(t) {
3
3
  const o = sessionStorage.getItem("loginToken") ?? "123456";
4
4
  return e({
5
5
  url: "/api/sysFile/uploadAvatar",
@@ -11,7 +11,7 @@ function s(t) {
11
11
  }
12
12
  });
13
13
  }
14
- function r(t) {
14
+ function s(t) {
15
15
  const o = sessionStorage.getItem("loginToken") ?? "123456";
16
16
  return e({
17
17
  url: "/api/sysFile/downloadFile",
@@ -26,6 +26,6 @@ function r(t) {
26
26
  });
27
27
  }
28
28
  export {
29
- r as d,
30
- s as u
29
+ s as d,
30
+ r as u
31
31
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),S=require("./index-ZKwBkEiK.cjs"),U=require("./login-Ci1_gDhC.cjs"),g=require("./menu-CaXxZ-VB.cjs"),R=require("./crypto-CRbcEKIz.cjs"),A=require("./index-WWIGsH-g.cjs"),T=require("./index-CgbDpv2z.cjs"),O=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=U.useLoginState(),{loginUserInfo:u,cryptoInfo:m}=g.storeToRefs(V),j=g.useMenuState(),{activeMenuPath:h}=g.storeToRefs(j),D=n.ref(0);var k,E,N,B;const W=n.ref([{label:"",name:"account",value:(k=u.value)==null?void 0:k.account},{label:"",name:"userDept",value:(E=u.value)==null?void 0:E.userDept},{label:"",name:"userRoles",value:(B=(N=u.value)==null?void 0:N.userRoles)==null?void 0:B.join("、")}]),H=()=>{},b=n.ref(!1),w=n.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),I=n.ref([{label:"签字版",icon:S.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:S.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:S.upload_filled_default,type:"buttonUpload",disabled:!1}]),q=n.ref(!1),K=n.computed(()=>{var t;const s=sessionStorage.getItem("authority"),e=JSON.parse(s||"");return Array.isArray(e)?(q.value=!(e!=null&&e.includes(`${h.value}/上传头像`)),(t=I.value)==null?void 0:t.map(r=>({...r,disabled:!(e!=null&&e.includes(`${h.value}/签名`))}))):typeof e=="string"&&(e==null?void 0:e.toUpperCase())==="SUPERADMIN"?I.value:[]}),z=n.computed(()=>[{key:"signConfig",contents:w},{key:"signTypeList",contents:K.value}]),J=s=>{w.dialogShow=s.label==="电子签名"},x=()=>{w.dialogShow=!1},M=async s=>{var t,r,l,o,a,i,c,p,f;const e=await g.getInsofDataApi({id:s,key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:"/系统管理/用户管理"}});if(((t=e==null?void 0:e.data)==null?void 0:t.code)===200&&e.data.result&&Array.isArray(e.data.result)&&e.data.result.length>0){const y={...(o=(l=(r=e.data.result)==null?void 0:r[0])==null?void 0:l.value)==null?void 0:o.tableData,id:(i=(a=e.data.result)==null?void 0:a[0])==null?void 0:i.id,layer:(f=(p=(c=e.data.result)==null?void 0:c[0])==null?void 0:p.key)==null?void 0:f.layer};V.setLoginUserInfo(y)}},P=async s=>{var e,t,r,l;try{const o=await g.updateInsofDataApi({id:(e=u.value)==null?void 0:e.id,key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:"/系统管理/用户管理",layer:(t=u.value)==null?void 0:t.layer},value:{tableData:s}});((r=o==null?void 0:o.data)==null?void 0:r.code)===200&&(x(),g.ElMessage.success("修改成功"),await M((l=u.value)==null?void 0:l.id),b.value=!1)}catch{g.ElMessage.error("修改响应失败"),b.value=!1}},Z=async(s,e)=>{var r;const t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",[s]:e};b.value=!0,console.log(3434,u.value),await P(t)},v=n.reactive({baseCols:[],otherCols:[]}),$=n.ref([]),L=n.ref(),G=(s,e,t)=>{var o,a,i,c,p;let r;const l=e;((a=(o=u.value)==null?void 0:o.layer)==null?void 0:a.toUpperCase())!=="SUPERADMIN"?r=R.decryptData((i=u.value)==null?void 0:i.password,(c=m==null?void 0:m.value)==null?void 0:c.privateKey):r=(p=u.value)==null?void 0:p.password,r===l?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},Q=(s,e,t)=>{e?/^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[!@#$%^&*(),.?":{}|<>]).{6,}$/.test(e)?t():t(new Error("密码必须包含大写字母、小写字母、数字和特殊字符,并且长度至少为6个字符")):t(new Error("请输入密码"))},X=(s,e,t)=>{var r;e!==((r=L.value)==null?void 0:r.newtPass)?t(new Error("两次输入的密码不一致")):t()},Y=async()=>{var e,t,r,l,o,a,i,c,p;const s=await g.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"/系统管理/用户管理"}});if(((e=s==null?void 0:s.data)==null?void 0:e.code)===200&&s.data.result&&((t=s.data.result)==null?void 0:t.length)>0){const f=(i=(a=(o=(l=(r=s.data.result)==null?void 0:r[0])==null?void 0:l.value)==null?void 0:o.pageData)==null?void 0:a.compData)==null?void 0:i.find(d=>(d==null?void 0:d.key)==="header"),y=["password","status","userDept","avatar","signature","account","userRoles","layer"];v.baseCols=f&&((c=f.contents)==null?void 0:c.map(d=>({...d,isFormColHidden:(y==null?void 0:y.includes(d==null?void 0:d.prop))||(d==null?void 0:d.label)==="操作"})));const C=(p=f.contents)==null?void 0:p.find(d=>(d==null?void 0:d.prop)==="password"),F=[{...C,label:"当前密码",prop:"currentPass",validator:G},{...C,label:"新密码",prop:"newtPass",validator:Q},{...C,label:"确认密码",prop:"confirmNewPass",validator:X}];v.otherCols=F,ae(u.value)}},ee=s=>{L.value=s},te=async({content:s,buttonName:e})=>{var r,l,o,a,i;let t;e==="确定"&&(t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",password:((o=(l=u.value)==null?void 0:l.layer)==null?void 0:o.toUpperCase())==="SUPERADMIN"?s==null?void 0:s.confirmNewPass:R.encryptData(s==null?void 0:s.confirmNewPass,(a=m.value)==null?void 0:a.publicKey)}),e==="保存基本信息"&&(t={...u.value,...s,status:((i=u.value)==null?void 0:i.status)??"启用"}),b.value=!0,await P(t)},_=()=>{const s={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},e=sessionStorage.getItem("authority"),t=JSON.parse(e||"");if(Array.isArray(t)){const r=t!=null&&t.includes(`${h.value}/基本信息`)?s==null?void 0:s.base:[],l=t!=null&&t.includes(`${h.value}/修改密码`)?s==null?void 0:s.other:[];return{base:r,other:l}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?s:null},ae=s=>{var e,t,r,l,o;_(),$.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(e=v.baseCols)==null?void 0:e.map(a=>({...a,width:2,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options,value:s[a==null?void 0:a.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=_())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(r=v.otherCols)==null?void 0:r.map(a=>({...a,width:1,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options})),formRules:(l=v.otherCols)==null?void 0:l.reduce((a,i)=>(a[i.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(c,p,f)=>i.validator(c,p,f),trigger:"blur"}],a),{}),buttonValue:(o=_())==null?void 0:o.other,isEnableWrap:!1},value:""}]}]},se=Object.freeze(Object.defineProperty({__proto__:null,beforeSignDestroy:x,changeFormTrigger:ee,clickFormButton:H,clickSignButton:J,clickTabButton:te,getUserTableHeadersAsync:Y,itemData:z,loading:b,refreshLoginUserInfoAsync:M,rowContents:W,signPadInfo:w,signTypes:K,submitImageAsync:Z,tabKey:D,tabsContents:$,tempSignTypes:I,uploadDisabled:q},Symbol.toStringTag,{value:"Module"})),re={class:"personal-wrapper"},ne={class:"personal-box left"},oe={class:"base-avatar"},le={class:"center-avatar"},ie={class:"base-info"},ue={class:"base-signature"},de={class:"personal-box right"},ce=n.defineComponent({__name:"index",setup(s){const e=n.reactive({...se}),t=U.useLoginState(),{loginUserInfo:r}=g.storeToRefs(t);return n.onMounted(()=>{var l;e.getUserTableHeadersAsync(),e.refreshLoginUserInfoAsync((l=r==null?void 0:r.value)==null?void 0:l.id),D.value++}),(l,o)=>{const a=n.resolveDirective("loading");return n.openBlock(),n.createElementBlock("div",re,[n.createElementVNode("div",ne,[n.createElementVNode("div",oe,[n.withDirectives((n.openBlock(),n.createElementBlock("div",le,[n.createVNode(A.ssAvatar,{disabled:e.uploadDisabled,userInfo:n.unref(r),onSubmitImage:o[0]||(o[0]=i=>e.submitImageAsync("avatarUrl",i))},null,8,["disabled","userInfo"])])),[[a,e.loading]])]),n.createElementVNode("div",ie,[n.createVNode(T.ssForm,{rowContents:e.rowContents,isEnableWrap:!1,isButtonRow:!0,isEdit:!1},null,8,["rowContents"])]),n.createElementVNode("div",ue,[n.createVNode(A.ssSignature,{userInfo:n.unref(r),itemData:e.itemData,onClickSignButton:e.clickSignButton,onBeforeDestroy:e.beforeSignDestroy,onClickSubmitSign:o[1]||(o[1]=i=>e.submitImageAsync("signature",i))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"])])]),n.createElementVNode("div",de,[(n.openBlock(),n.createBlock(T.ssTab,{key:n.unref(D),tabsContents:e.tabsContents,onChangeTrigger:e.changeFormTrigger,onClickTrigger:e.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])])}}}),pe=O._export_sfc(ce,[["__scopeId","data-v-a55e627c"]]);exports.default=pe;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_lang-CIP77JiD.cjs");exports.default=e._sfc_main;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_lang-Bp0N6DTD.cjs");exports.default=e._sfc_main;
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as n, reactive as s, onMounted as r, createElementBlock as c, openBlock as i, createVNode as t } from "vue";
2
- import { s as m } from "./index-yxASh3FK.js";
3
- import { s as l } from "./index-Cs6aYNpY.js";
4
- import { S as u } from "./index-GcvQB1OB.js";
5
- import { u as d, s as p } from "./menu-BjsF_u0O.js";
6
- import { u as f } from "./login-Cvjr869W.js";
7
- import { g } from "./index-Bb3Boi4X.js";
2
+ import { s as m } from "./index-C7oO0eCH.js";
3
+ import { s as l } from "./index-R2K2-Ktx.js";
4
+ import { S as u } from "./index-B8G0kWYK.js";
5
+ import { u as d, s as p } from "./menu-DBUuyOMU.js";
6
+ import { u as f } from "./login-tvgZPNFj.js";
7
+ import { g } from "./index-BqAD0yQU.js";
8
8
  import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  const _ = { class: "role-wrapper" }, C = /* @__PURE__ */ n({
10
10
  __name: "index",
@@ -1,13 +1,12 @@
1
1
  import { ref as b, computed as K, watch as D } from "vue";
2
- import { c as H, u as x, d as B, g as M } from "./index-B6QzxKzK.js";
3
- import { E as n, s as f, u as E } from "./menu-BjsF_u0O.js";
4
- import { a as F } from "./index-Bb3Boi4X.js";
2
+ import { E as n, s as g, c as H, b as x, d as B, g as M, u as E } from "./menu-DBUuyOMU.js";
3
+ import { a as F } from "./index-BqAD0yQU.js";
5
4
  import { d as S, i as I, e as C } from "./crypto-BRyGpjGR.js";
6
- import { u as N } from "./login-Cvjr869W.js";
7
- import { u as P } from "./modelComp-BTVOfrd2.js";
8
- import { E as w } from "./index-X2R-1WGH.js";
9
- import { c as _ } from "./cloneDeep-D65qCr1M.js";
10
- const T = N(), { superAdminInfo: O, cryptoInfo: r } = f(T), U = E(), { activeMenuPath: d } = f(U), y = "123456", j = P(), { itemData: z } = f(j), g = b(0), L = b([
5
+ import { u as N } from "./login-tvgZPNFj.js";
6
+ import { u as P } from "./modelComp-CTOnIeyl.js";
7
+ import { E as w } from "./index-JRAqJZPj.js";
8
+ import { c as _ } from "./cloneDeep-BferVm6H.js";
9
+ const T = N(), { superAdminInfo: O, cryptoInfo: r } = g(T), U = E(), { activeMenuPath: d } = g(U), y = "123456", j = P(), { itemData: z } = g(j), f = b(0), L = b([
11
10
  {
12
11
  label: "用户名称",
13
12
  value: "",
@@ -157,7 +156,7 @@ const T = N(), { superAdminInfo: O, cryptoInfo: r } = f(T), U = E(), { activeMen
157
156
  contents: []
158
157
  }
159
158
  ]), q = (a) => {
160
- console.log(123, a), m(a.singleContent, a.buttonName, g.value);
159
+ console.log(123, a), m(a.singleContent, a.buttonName, f.value);
161
160
  }, c = b(), G = (a) => {
162
161
  console.log("onDoubleClick", a);
163
162
  }, J = (a, s) => {
@@ -173,7 +172,7 @@ const T = N(), { superAdminInfo: O, cryptoInfo: r } = f(T), U = E(), { activeMen
173
172
  c.value = {
174
173
  ...s,
175
174
  password: y
176
- }, m(c.value, a, g.value);
175
+ }, m(c.value, a, f.value);
177
176
  }).catch(() => {
178
177
  n.info("取消重置");
179
178
  }) : a === "编辑" && console.log(2345, c.value, s, u.value);
@@ -289,7 +288,7 @@ D(() => z.value, (a) => {
289
288
  var s;
290
289
  a && (a == null ? void 0 : a.length) > 0 && (i.value = (s = a == null ? void 0 : a[0]) == null ? void 0 : s.compData);
291
290
  });
292
- const le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
291
+ const se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
293
292
  __proto__: null,
294
293
  changedRow: c,
295
294
  clickRowButton: J,
@@ -302,12 +301,12 @@ const le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
302
301
  pageData: i,
303
302
  queryFormData: L,
304
303
  refreshUserTableData: A,
305
- structureId: g,
304
+ structureId: f,
306
305
  submitTableAsyncByVerify: m,
307
306
  tempUserPageData: V
308
307
  }, Symbol.toStringTag, { value: "Module" }));
309
308
  export {
310
- le as S,
309
+ se as S,
311
310
  k as g,
312
311
  p as h,
313
312
  m as s,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.vue_vue_type_style_index_0_scoped_11a5120d_lang-CaalWbFo.cjs"),e=require("vue"),c=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function r(n,l,p,a,_,d){const t=e.resolveComponent("DynamicIcon"),s=e.resolveComponent("ssMenu");return e.openBlock(),e.createBlock(s,{mode:n.mode,menuList:n.renderMenuList,onClickMenu:n.clickMenu,onOpenMenu:n.openMenu,onCloseMenu:n.closeMenu},{title:e.withCtx(({menu:o})=>[e.createVNode(t,{name:o.icon??""},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(o.title??""),1)]),_:1},8,["mode","menuList","onClickMenu","onOpenMenu","onCloseMenu"])}const i=c._export_sfc(u._sfc_main,[["render",r],["__scopeId","data-v-11a5120d"]]);exports.default=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Bl5NBw-o.cjs"),e=require("vue"),c=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function r(n,l,p,a,_,d){const t=e.resolveComponent("DynamicIcon"),s=e.resolveComponent("ssMenu");return e.openBlock(),e.createBlock(s,{mode:n.mode,menuList:n.renderMenuList,onClickMenu:n.clickMenu,onOpenMenu:n.openMenu,onCloseMenu:n.closeMenu},{title:e.withCtx(({menu:o})=>[e.createVNode(t,{name:o.icon??""},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(o.title??""),1)]),_:1},8,["mode","menuList","onClickMenu","onOpenMenu","onCloseMenu"])}const i=c._export_sfc(u._sfc_main,[["render",r],["__scopeId","data-v-11a5120d"]]);exports.default=i;