ss-component-new 1.1.155 → 1.1.158
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/array-C8zCM38e.cjs +7 -0
- package/dist/array-CF1EYSXS.js +2270 -0
- package/dist/{cloneDeep-DkKx61Bt.js → cloneDeep-B9TiLsmE.js} +1 -1
- package/dist/{cloneDeep-jcra1x7z.cjs → cloneDeep-Dc2w_Lu-.cjs} +1 -1
- package/dist/formToTable-B28kxNhk.js +18 -0
- package/dist/formToTable-CmnIz37U.cjs +1 -0
- package/dist/index-4oaP54l6.cjs +1 -0
- package/dist/index-9F99HJnT.cjs +1 -0
- package/dist/{index-C2BIsypS.cjs → index-BAE5DHbs.cjs} +1 -1
- package/dist/{index-Di4SiVp7.cjs → index-BDMSfJjz.cjs} +3 -3
- package/dist/index-BKg6M7MO.cjs +1 -0
- package/dist/{index-Ggavcm6D.js → index-BMobkWUk.js} +1 -1
- package/dist/{index-D9v6qzb5.js → index-BRnmis9p.js} +13 -13
- package/dist/{index-GXUw7ZhM.cjs → index-BTvG_TlS.cjs} +1 -1
- package/dist/index-BZFh2O6g.js +654 -0
- package/dist/{index-DBWK8_Qy.cjs → index-Bjgg7gom.cjs} +2 -2
- package/dist/index-Bn-fFaQ0.cjs +1 -0
- package/dist/{index-B8U0GdzV.js → index-BolODvJn.js} +21 -21
- package/dist/{index-tg7ByrvV.js → index-C06nP7rT.js} +1 -1
- package/dist/{index-B0AMEBPQ.js → index-CEf1eis_.js} +6 -6
- package/dist/{index-XKycH27E.js → index-CHSuDrCC.js} +236 -220
- package/dist/{index-BcKPBr-M.js → index-CLWDpaPA.js} +7 -7
- package/dist/{index-CJoQdkOx.js → index-CSx5dw6A.js} +1 -1
- package/dist/index-Cfu78qcq.cjs +1 -0
- package/dist/{index-B9fdokGA.cjs → index-CgfHUdXv.cjs} +1 -1
- package/dist/{index-C8Lw-TCN.js → index-CggFByLx.js} +386 -409
- package/dist/index-ClaPKjMY.cjs +1 -0
- package/dist/{index-BJxHK1HL.cjs → index-CoEZVnFp.cjs} +1 -1
- package/dist/{index-C6cGUU8r.cjs → index-Ct9IgtJt.cjs} +1 -1
- package/dist/{index-5DqH53YU.js → index-D3ShGz-b.js} +7 -7
- package/dist/{index-BjVljKhO.js → index-D4ZyKx-J.js} +6 -7
- package/dist/{index-CAs3FK8K.cjs → index-DLX3ew9N.cjs} +1 -1
- package/dist/index-DOA8vwcd.js +61 -0
- package/dist/{index-B7-Jqwz9.js → index-Dc10GzMY.js} +8 -8
- package/dist/index-DlXN1Cqe.cjs +1 -0
- package/dist/{index-BLHp5fZH.js → index-DtVTJ3uF.js} +35 -32
- package/dist/{index-zJiQeshE.js → index-Du2g4zTf.js} +11 -12
- package/dist/index-Dx9uzuM4.cjs +1 -0
- package/dist/{index-DbTjUU-p.js → index-DyT_adTl.js} +4 -4
- package/dist/index-OLMx_d3p.cjs +10 -0
- package/dist/index-Ws_Nci0i.cjs +1 -0
- package/dist/{index-BKSi0OHm.cjs → index-ZO9dn127.cjs} +1 -1
- package/dist/{index-CgsVgySR.cjs → index-a20EDdCQ.cjs} +1 -1
- package/dist/index-ngbkqVWp.js +35 -0
- package/dist/{index-CoOOA4wz.js → index-nlIjUSGz.js} +11 -12
- package/dist/{index-ChZttmPY.js → index-wO8Y6Vhy.js} +6 -6
- package/dist/index.vue_vue_type_script_setup_true_lang-AW9Z9ebb.cjs +1 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-UaxxHkMj.js +232 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_baf99455_lang-C1p9Zydy.js → index.vue_vue_type_style_index_0_scoped_baf99455_lang-Bq5WH8y1.js} +71 -70
- package/dist/index.vue_vue_type_style_index_0_scoped_baf99455_lang-CI5f4aiI.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-qesRJ3oE.cjs → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-BOx0FpMh.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-e4P-SkgO.js → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-KZcDy7L7.js} +6 -6
- package/dist/login-CYnubgtI.cjs +1 -0
- package/dist/login-DeHsN52A.js +72 -0
- package/dist/main-C0_fYt9z.cjs +1 -0
- package/dist/{main-I1ls0mvf.js → main-C7F2zbjR.js} +6 -6
- package/dist/menu-CgAplFgC.cjs +11 -0
- package/dist/{menu-XcYMZJLY.js → menu-CltkqT7g.js} +1792 -1378
- package/dist/modelComp-BcmEYGm9.cjs +1 -0
- package/dist/modelComp-P5x7IjI9.js +22 -0
- package/dist/request-CuCamIQ7.js +2083 -0
- package/dist/request-XLI2NiAW.cjs +6 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +22 -18
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +1 -1
- package/dist/typescript-BpuhIBuJ.js +4 -0
- package/dist/typescript-PERVJsDy.cjs +1 -0
- package/package.json +1 -1
- package/dist/array-DVGuTzCT.js +0 -2369
- package/dist/array-Dvk6yiUL.cjs +0 -7
- package/dist/index-71hKmu5h.cjs +0 -1
- package/dist/index-B98dXkAO.cjs +0 -1
- package/dist/index-CHo1i5eE.cjs +0 -1
- package/dist/index-CJXIfiup.cjs +0 -1
- package/dist/index-CL0E9Gam.js +0 -650
- package/dist/index-C_r8GGc8.cjs +0 -1
- package/dist/index-D80irpfM.cjs +0 -1
- package/dist/index-DALRKLhd.js +0 -232
- package/dist/index-DGpm2dGJ.js +0 -126
- package/dist/index-DLNqs62G.cjs +0 -10
- package/dist/index-GKfDOHK8.cjs +0 -1
- package/dist/index-SSOQjT-s.cjs +0 -1
- package/dist/index-mYhphJy9.cjs +0 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-D8vVldof.cjs +0 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-DoDGe_zH.js +0 -44
- package/dist/index.vue_vue_type_style_index_0_scoped_baf99455_lang-CJr7pTkw.cjs +0 -1
- package/dist/login-BoCu8ePJ.js +0 -94
- package/dist/login-CzVsdp2w.cjs +0 -1
- package/dist/main-Dk5mtk5Z.cjs +0 -1
- package/dist/menu-CxtX8L48.cjs +0 -11
- package/dist/modelComp-BQutSX47.cjs +0 -1
- package/dist/modelComp-CP-waker.js +0 -18
- package/dist/request-CmWceos-.cjs +0 -6
- package/dist/request-DrfWVRx3.js +0 -2301
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";const Ue=require("./index-BKg6M7MO.cjs"),Ce=require("./index.vue_vue_type_script_setup_true_lang-AW9Z9ebb.cjs"),f=require("vue"),z=require("./index-Bjgg7gom.cjs"),ue=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),p=require("./cloneDeep-Dc2w_Lu-.cjs"),el=require("./index.vue_vue_type_script_setup_true_lang-D0K1veK2.cjs"),Ae=require("./index-ClaPKjMY.cjs"),ce=require("./request-XLI2NiAW.cjs"),je=require("./modelComp-BcmEYGm9.cjs"),Q=require("./index-Ct9IgtJt.cjs"),ge=require("./menu-CgAplFgC.cjs");var ll="__lodash_hash_undefined__";function nl(e){return this.__data__.set(e,ll),this}function tl(e){return this.__data__.has(e)}function pe(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new Q.MapCache;++n<t;)this.add(e[n])}pe.prototype.add=pe.prototype.push=nl;pe.prototype.has=tl;function al(e,n){for(var t=-1,l=e==null?0:e.length;++t<l;)if(n(e[t],t,e))return!0;return!1}function rl(e,n){return e.has(n)}var ol=1,sl=2;function we(e,n,t,l,a,r){var o=t&ol,u=e.length,h=n.length;if(u!=h&&!(o&&h>u))return!1;var m=r.get(e),y=r.get(n);if(m&&y)return m==n&&y==e;var _=-1,A=!0,x=t&sl?new pe:void 0;for(r.set(e,n),r.set(n,e);++_<u;){var C=e[_],S=n[_];if(l)var g=o?l(S,C,_,n,e,r):l(C,S,_,e,n,r);if(g!==void 0){if(g)continue;A=!1;break}if(x){if(!al(n,function(d,b){if(!rl(x,b)&&(C===d||a(C,d,t,l,r)))return x.push(b)})){A=!1;break}}else if(!(C===S||a(C,S,t,l,r))){A=!1;break}}return r.delete(e),r.delete(n),A}function cl(e){var n=-1,t=Array(e.size);return e.forEach(function(l,a){t[++n]=[a,l]}),t}function pl(e){var n=-1,t=Array(e.size);return e.forEach(function(l){t[++n]=l}),t}var ul=1,il=2,fl="[object Boolean]",dl="[object Date]",hl="[object Error]",yl="[object Map]",ml="[object Number]",gl="[object RegExp]",bl="[object Set]",kl="[object String]",Dl="[object Symbol]",Cl="[object ArrayBuffer]",Al="[object DataView]",$e=Q.Symbol?Q.Symbol.prototype:void 0,fe=$e?$e.valueOf:void 0;function $l(e,n,t,l,a,r,o){switch(t){case Al:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case Cl:return!(e.byteLength!=n.byteLength||!r(new p.Uint8Array(e),new p.Uint8Array(n)));case fl:case dl:case ml:return Q.eq(+e,+n);case hl:return e.name==n.name&&e.message==n.message;case gl:case kl:return e==n+"";case yl:var u=cl;case bl:var h=l&ul;if(u||(u=pl),e.size!=n.size&&!h)return!1;var m=o.get(e);if(m)return m==n;l|=il,o.set(e,n);var y=we(u(e),u(n),l,a,r,o);return o.delete(e),y;case Dl:if(fe)return fe.call(e)==fe.call(n)}return!1}var _l=1,xl=Object.prototype,Tl=xl.hasOwnProperty;function vl(e,n,t,l,a,r){var o=t&_l,u=p.getAllKeys(e),h=u.length,m=p.getAllKeys(n),y=m.length;if(h!=y&&!o)return!1;for(var _=h;_--;){var A=u[_];if(!(o?A in n:Tl.call(n,A)))return!1}var x=r.get(e),C=r.get(n);if(x&&C)return x==n&&C==e;var S=!0;r.set(e,n),r.set(n,e);for(var g=o;++_<h;){A=u[_];var d=e[A],b=n[A];if(l)var D=o?l(b,d,A,n,e,r):l(d,b,A,e,n,r);if(!(D===void 0?d===b||a(d,b,t,l,r):D)){S=!1;break}g||(g=A=="constructor")}if(S&&!g){var c=e.constructor,s=n.constructor;c!=s&&"constructor"in e&&"constructor"in n&&!(typeof c=="function"&&c instanceof c&&typeof s=="function"&&s instanceof s)&&(S=!1)}return r.delete(e),r.delete(n),S}var Ol=1,_e="[object Arguments]",xe="[object Array]",te="[object Object]",El=Object.prototype,Te=El.hasOwnProperty;function Nl(e,n,t,l,a,r){var o=Q.isArray(e),u=Q.isArray(n),h=o?xe:p.getTag(e),m=u?xe:p.getTag(n);h=h==_e?te:h,m=m==_e?te:m;var y=h==te,_=m==te,A=h==m;if(A&&p.isBuffer(e)){if(!p.isBuffer(n))return!1;o=!0,y=!1}if(A&&!y)return r||(r=new p.Stack),o||p.isTypedArray(e)?we(e,n,t,l,a,r):$l(e,n,h,t,l,a,r);if(!(t&Ol)){var x=y&&Te.call(e,"__wrapped__"),C=_&&Te.call(n,"__wrapped__");if(x||C){var S=x?e.value():e,g=C?n.value():n;return r||(r=new p.Stack),a(S,g,t,l,r)}}return A?(r||(r=new p.Stack),vl(e,n,t,l,a,r)):!1}function Je(e,n,t,l,a){return e===n?!0:e==null||n==null||!Q.isObjectLike(e)&&!Q.isObjectLike(n)?e!==e&&n!==n:Nl(e,n,t,l,Je,a)}function Sl(e,n){return Je(e,n)}const Bl={class:"table-operate-content"},Pl={class:"table-operate-item"},Fl={class:"operate-title"},Ul={class:"operate-content"},jl={class:"operate-title"},wl={class:"operate-content"},Jl={class:"operate-title"},Ll={class:"operate-content"},Rl={class:"operate-content"},Vl={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(e,{emit:n}){const t=e,l=n,a=f.ref([]),r=f.ref([]),o=f.ref([]),u=f.ref([{label:"按钮名称",prop:"label",type:"edit"},{label:"按钮类型",prop:"type",type:"edit"},{label:"按钮背景颜色",prop:"background",type:"edit",columnType:"Color"},{label:"操作",prop:"operate",type:"operate",sortable:!1}]),h=f.ref([{label:"标签名称",prop:"label",type:"edit"},{label:"标签类型",prop:"type",type:"edit"},{label:"按钮文字颜色",prop:"textColor",type:"edit",columnType:"Color"},{label:"操作",prop:"operate",type:"operate",sortable:!1}]),m=f.ref([]),y=f.ref(0),_=f.ref([{name:"isPagination",label:"是否显示分页",type:"Switch",value:!0}]),A=[{label:"标签名",prop:"label",type:"edit"},{label:"属性名",prop:"prop",type:"edit"},{label:"宽度",prop:"width",type:"edit",columnType:"Number"},{label:"是否固定列",prop:"fixed",type:"edit",columnType:"Radio",contents:[{label:"left",value:"左"},{label:"right",value:"右"}]},{label:"是否支持排序",prop:"sortable",type:"edit",columnType:"Switch"},{label:"文本所在位置",prop:"align",type:"edit",columnType:"Radio",contents:[{label:"left",value:"左"},{label:"center",value:"中"},{label:"right",value:"右"}]},{label:"溢出悬浮文字",prop:"showOverflowTooltip",type:"edit",columnType:"Switch"},{label:"是否不可拖动",prop:"isNotDrag",type:"edit",columnType:"Switch"},{label:"是否可编辑列名",prop:"isEditCol",type:"edit",columnType:"Switch"},{label:"是否出现在附属界面",prop:"isOperate",type:"edit",columnType:"Switch"},{label:"操作",prop:"operate",type:"operate",sortable:!1}],x=c=>{let s=p.cloneDeep(a.value);const i=s==null?void 0:s.find($=>$.key==="page");(i==null?void 0:i.contents)!==void 0?s=s==null?void 0:s.map($=>(($==null?void 0:$.key)==="page"&&($.contents=c==null?void 0:c.isPagination),$)):s.push({key:"page",contents:c==null?void 0:c.isPagination}),a.value=s};f.watch(()=>t.originalItemContents,()=>{var c,s,i,$,T,P,v,U,R,O,B,N,E;!t.originalItemContents||t.originalItemContents.length===0||(a.value=p.cloneDeep(t.originalItemContents),r.value=(s=(c=a.value)==null?void 0:c.find(k=>(k==null?void 0:k.key)==="header"))==null?void 0:s.contents,o.value=($=(i=a.value)==null?void 0:i.find(k=>(k==null?void 0:k.key)==="rowButton"))==null?void 0:$.contents,u.value=(P=(T=a.value)==null?void 0:T.find(k=>(k==null?void 0:k.key)==="extraButton"))==null?void 0:P.contents,_.value=(U=(v=a.value)==null?void 0:v.find(k=>(k==null?void 0:k.key)==="page"))!=null&&U.contents?[{name:"isPagination",label:"是否显示分页",type:"Switch",value:(O=(R=a.value)==null?void 0:R.find(k=>(k==null?void 0:k.key)==="page"))==null?void 0:O.contents}]:[{name:"isPagination",label:"是否显示分页",type:"Switch",value:!0}],r.value=(B=r.value)==null?void 0:B.map((k,F)=>k={label:(k==null?void 0:k.label)??"",prop:(k==null?void 0:k.label)==="操作"?"operate":k==null?void 0:k.prop,width:k!=null&&k.width?parseInt(k.width):"",fixed:(k==null?void 0:k.fixed)??void 0,sortable:(k==null?void 0:k.sortable)??!1,align:(k==null?void 0:k.align)??"center",showOverflowTooltip:(k==null?void 0:k.showOverflowTooltip)??!0,isNotDrag:(k==null?void 0:k.isNotDrag)??!1,isEditCol:(k==null?void 0:k.isEditCol)??!1,isOperate:(k==null?void 0:k.isOperate)??!1,id:(k==null?void 0:k.id)??F}),o.value=(N=o.value)==null?void 0:N.map((k,F)=>k={label:(k==null?void 0:k.label)??"",type:(k==null?void 0:k.type)??"",textColor:(k==null?void 0:k.textColor)??"#000000",id:(k==null?void 0:k.id)??F}),u.value=(E=u.value)==null?void 0:E.map((k,F)=>k={label:(k==null?void 0:k.label)??"",type:(k==null?void 0:k.type)??"",background:(k==null?void 0:k.textColor)??"#FFFFFF",id:(k==null?void 0:k.id)??F}))},{deep:!0,immediate:!0}),f.watch(()=>_.value,()=>{var i;let c=p.cloneDeep(a.value);const s=c==null?void 0:c.find($=>$.key==="page");s!=null&&s.contents?c=c==null?void 0:c.map($=>{var T;return($==null?void 0:$.key)==="page"&&($.contents=(T=_.value)==null?void 0:T[0].value),$}):c.push({key:"page",contents:(i=_.value)==null?void 0:i[0].value}),a.value=c},{immediate:!0,deep:!0});const C=()=>{const c=p.cloneDeep(r.value);let s=p.cloneDeep(a.value);c.push({label:"",prop:"",width:"",fixed:void 0,sortable:!1,align:"center",showOverflowTooltip:!0,isNotDrag:!1,isEditCol:!1,isOperate:!1,id:y.value}),r.value=c,y.value++;const i=s==null?void 0:s.find($=>($==null?void 0:$.key)==="header");i!=null&&i.contents?(i.contents=c,s=s==null?void 0:s.map($=>(($==null?void 0:$.key)==="header"&&($.contents=c),$))):s.push({key:"header",contents:c}),a.value=s},S=()=>{const c=p.cloneDeep(o.value);let s=p.cloneDeep(a.value);c.push({label:"",type:"",textColor:"#000000",id:y.value}),o.value=c,y.value++;const i=s==null?void 0:s.find($=>($==null?void 0:$.key)==="rowButton");i!=null&&i.contents?(i.contents=c,s=s==null?void 0:s.map($=>(($==null?void 0:$.key)==="rowButton"&&($.contents=c),$))):s.push({key:"rowButton",contents:c}),a.value=s},g=()=>{const c=p.cloneDeep(m.value);let s=p.cloneDeep(a.value);c.push({label:"",type:"",background:"#FFFFFF",id:y.value}),m.value=c,y.value++;const i=s==null?void 0:s.find($=>($==null?void 0:$.key)==="extraButton");i!=null&&i.contents?(i.contents=c,s=s==null?void 0:s.map($=>(($==null?void 0:$.key)==="extraButton"&&($.contents=c),$))):s.push({key:"extraButton",contents:c}),a.value=s},d=c=>{const s=p.cloneDeep(o.value);let i=p.cloneDeep(a.value);o.value=s.filter(T=>T.id!==c.id);const $=i==null?void 0:i.find(T=>T.key==="rowButton");$!=null&&$.contents&&(i=i==null?void 0:i.map(T=>((T==null?void 0:T.key)==="rowButton"&&(T.contents=s.filter(P=>P.id!==c.id)),T))),a.value=i},b=c=>{const s=p.cloneDeep(m.value);let i=p.cloneDeep(a.value);m.value=s.filter(T=>T.id!==c.id);const $=i==null?void 0:i.find(T=>T.key==="extraButton");$!=null&&$.contents&&(i=i==null?void 0:i.map(T=>((T==null?void 0:T.key)==="extraButton"&&(T.contents=s.filter(P=>P.id!==c.id)),T))),a.value=i},D=c=>{const s=p.cloneDeep(r.value);let i=p.cloneDeep(a.value);r.value=s.filter(T=>T.id!==c.id);const $=i==null?void 0:i.find(T=>T.key==="header");$!=null&&$.contents&&(i=i==null?void 0:i.map(T=>((T==null?void 0:T.key)==="header"&&(T.contents=s.filter(P=>P.id!==c.id)),T))),a.value=i};return f.watch(()=>[a.value,r.value],()=>{let c=p.cloneDeep(a.value);const s=c==null?void 0:c.find(i=>(i==null?void 0:i.key)==="header");s!=null&&s.contents?(s.contents=r.value,c=c==null?void 0:c.map(i=>((i==null?void 0:i.key)==="header"&&(i.contents=r.value),i))):c.push({key:"header",contents:r.value}),l("change",c)},{deep:!0,immediate:!0}),(c,s)=>{const i=f.resolveComponent("el-button");return f.openBlock(),f.createElementBlock("div",Bl,[f.createElementVNode("div",Pl,[f.createElementVNode("div",Fl,[s[1]||(s[1]=f.createElementVNode("div",null,f.toDisplayString("表头"),-1)),f.createVNode(i,{class:"blue-operate-button",icon:"ele-Plus",onClick:C},{default:f.withCtx(()=>s[0]||(s[0]=[f.createTextVNode(f.toDisplayString("新建"))])),_:1,__:[0]})]),f.createElementVNode("div",Ul,[f.createVNode(z.ssTable,{columns:A,isShowPagination:!1,isShowEdit:!1,isMoveColumn:!1,tableData:r.value,onDeleteRow:D},null,8,["tableData"])]),f.createElementVNode("div",jl,[s[3]||(s[3]=f.createElementVNode("div",null,f.toDisplayString("行内按钮"),-1)),f.createVNode(i,{class:"blue-operate-button",icon:"ele-Plus",onClick:S},{default:f.withCtx(()=>s[2]||(s[2]=[f.createTextVNode(f.toDisplayString("新建"))])),_:1,__:[2]})]),f.createElementVNode("div",wl,[f.createVNode(z.ssTable,{columns:h.value,isShowPagination:!1,isShowEdit:!1,isMoveColumn:!1,tableData:o.value,onDeleteRow:d},null,8,["columns","tableData"])]),f.createElementVNode("div",Jl,[s[5]||(s[5]=f.createElementVNode("div",null,f.toDisplayString("表格外部按钮"),-1)),f.createVNode(i,{class:"blue-operate-button",icon:"ele-Plus",onClick:g},{default:f.withCtx(()=>s[4]||(s[4]=[f.createTextVNode(f.toDisplayString("新建"))])),_:1,__:[4]})]),f.createElementVNode("div",Ll,[f.createVNode(z.ssTable,{columns:u.value,isShowPagination:!1,isShowEdit:!1,isMoveColumn:!1,tableData:m.value,onDeleteRow:b},null,8,["columns","tableData"])]),s[6]||(s[6]=f.createElementVNode("div",{class:"operate-title"},[f.createElementVNode("div",null,f.toDisplayString("分页"))],-1)),f.createElementVNode("div",Rl,[f.createVNode(z.ssForm,{rowContents:_.value,onChange:x},null,8,["rowContents"])])])])}}},Gl=ue._export_sfc(Vl,[["__scopeId","data-v-877911eb"]]),Ml={class:"form-operate-content"},ql={class:"form-operate-item"},Hl={class:"operate-title"},Il={class:"operate-content"},Wl={class:"operate-title"},Kl={class:"operate-content"},Zl={class:"operate-content"},zl={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(e,{emit:n}){const t=e,l=n,a=f.ref([{name:"isRowFlex",label:"是否横向布局",type:"Switch",value:!0}]),r=f.ref([{label:"字段名称",prop:"label",type:"edit"},{label:"字段类型",prop:"type",type:"edit"},{label:"字段值",prop:"key",type:"edit"},{label:"字段选项值",prop:"options",type:"edit"},{label:"操作",prop:"operate",type:"operate",sortable:!1}]),o=f.ref([{label:"字段名称",prop:"label",type:"edit"},{label:"字段类型",prop:"type",type:"edit"},{label:"按钮背景颜色",prop:"background",type:"edit",columnType:"Color"},{label:"操作",prop:"operate",type:"operate",sortable:!1}]),u=f.ref([]),h=f.ref([]),m=f.ref([]),y=f.ref(0);f.watch(()=>t.originalItemContents,()=>{var g,d,b,D,c,s,i,$,T,P;!t.originalItemContents||t.originalItemContents.length===0||(h.value=p.cloneDeep(t.originalItemContents),m.value=(d=(g=h.value)==null?void 0:g.find(v=>(v==null?void 0:v.key)==="formContent"))==null?void 0:d.contents,u.value=(D=(b=h.value)==null?void 0:b.find(v=>(v==null?void 0:v.key)==="formButton"))==null?void 0:D.contents,m.value=(c=m.value)==null?void 0:c.map((v,U)=>v={label:(v==null?void 0:v.label)??"",type:(v==null?void 0:v.type)??"",key:(v==null?void 0:v.key)??"",options:(v==null?void 0:v.options)??"",id:(v==null?void 0:v.id)??U}),u.value=(s=u.value)==null?void 0:s.map((v,U)=>v={label:(v==null?void 0:v.label)??"",type:(v==null?void 0:v.type)??"",background:(v==null?void 0:v.background)??"#000000",id:(v==null?void 0:v.id)??U}),a.value=($=(i=h.value)==null?void 0:i.find(v=>(v==null?void 0:v.key)==="formFlex"))!=null&&$.contents?[{name:"isRowFlex",label:"是否横向布局",type:"Switch",value:(P=(T=h.value)==null?void 0:T.find(v=>(v==null?void 0:v.key)==="formFlex"))==null?void 0:P.contents}]:[{name:"isRowFlex",label:"是否横向布局",type:"Switch",value:!0}])},{deep:!0,immediate:!0});const _=()=>{const g=p.cloneDeep(u.value);let d=p.cloneDeep(h.value);g.push({label:"",type:"",background:"#000000",id:y.value}),u.value=g,y.value++;const b=d==null?void 0:d.find(D=>(D==null?void 0:D.key)==="formButton");b!=null&&b.contents?(b.contents=g,d=d==null?void 0:d.map(D=>((D==null?void 0:D.key)==="formButton"&&(D.contents=g),D))):d.push({key:"formButton",contents:g}),h.value=d},A=()=>{const g=p.cloneDeep(m.value);let d=p.cloneDeep(h.value);g.push({label:"",type:"",key:"",options:"",id:y.value}),m.value=g,y.value++;const b=d==null?void 0:d.find(D=>(D==null?void 0:D.key)==="formContent");b!=null&&b.contents?(b.contents=g,d=d==null?void 0:d.map(D=>((D==null?void 0:D.key)==="formContent"&&(D.contents=g),D))):d.push({key:"formContent",contents:g}),h.value=d},x=g=>{const d=p.cloneDeep(u.value);let b=p.cloneDeep(h.value);u.value=d.filter(c=>c.id!==g.id);const D=b==null?void 0:b.find(c=>c.key==="formButton");D!=null&&D.contents&&(b=b==null?void 0:b.map(c=>((c==null?void 0:c.key)==="formButton"&&(c.contents=d.filter(s=>s.id!==g.id)),c))),h.value=b},C=g=>{const d=p.cloneDeep(m.value);let b=p.cloneDeep(h.value);m.value=d.filter(c=>c.id!==g.id);const D=b==null?void 0:b.find(c=>c.key==="formContent");D!=null&&D.contents&&(b=b==null?void 0:b.map(c=>((c==null?void 0:c.key)==="formContent"&&(c.contents=d.filter(s=>s.id!==g.id)),c))),h.value=b},S=g=>{let d=p.cloneDeep(h.value);const b=d==null?void 0:d.find(D=>D.key==="formFlex");(b==null?void 0:b.contents)!==void 0?d=d==null?void 0:d.map(D=>((D==null?void 0:D.key)==="formFlex"&&(D.contents=g==null?void 0:g.isRowFlex),D)):d.push({key:"formFlex",contents:g==null?void 0:g.isRowFlex}),h.value=d};return f.watch(()=>[h.value,m.value],()=>{let g=p.cloneDeep(h.value);const d=g==null?void 0:g.find(b=>(b==null?void 0:b.key)==="formContent");d!=null&&d.contents?(d.contents=m.value,g=g==null?void 0:g.map(b=>((b==null?void 0:b.key)==="formContent"&&(b.contents=m.value),b))):g.push({key:"formContent",contents:m.value}),l("change",g)},{deep:!0,immediate:!0}),(g,d)=>{const b=f.resolveComponent("el-button");return f.openBlock(),f.createElementBlock("div",Ml,[f.createElementVNode("div",ql,[f.createElementVNode("div",Hl,[d[1]||(d[1]=f.createElementVNode("div",null,f.toDisplayString("表单信息"),-1)),f.createVNode(b,{class:"blue-operate-button",icon:"ele-Plus",onClick:A},{default:f.withCtx(()=>d[0]||(d[0]=[f.createTextVNode(f.toDisplayString("新建"))])),_:1,__:[0]})]),f.createElementVNode("div",Il,[f.createVNode(z.ssTable,{columns:r.value,isShowPagination:!1,isShowEdit:!1,isMoveColumn:!1,tableData:m.value,onDeleteRow:C},null,8,["columns","tableData"])]),f.createElementVNode("div",Wl,[d[3]||(d[3]=f.createElementVNode("div",null,f.toDisplayString("表单按钮"),-1)),f.createVNode(b,{class:"blue-operate-button",icon:"ele-Plus",onClick:_},{default:f.withCtx(()=>d[2]||(d[2]=[f.createTextVNode(f.toDisplayString("新建"))])),_:1,__:[2]})]),f.createElementVNode("div",Kl,[f.createVNode(z.ssTable,{columns:o.value,isShowPagination:!1,isShowEdit:!1,isMoveColumn:!1,tableData:u.value,onDeleteRow:x},null,8,["columns","tableData"])]),d[4]||(d[4]=f.createElementVNode("div",{class:"operate-title"},[f.createElementVNode("div",null,f.toDisplayString("表单布局"))],-1)),f.createElementVNode("div",Zl,[f.createVNode(z.ssForm,{rowContents:a.value,onChange:S},null,8,["rowContents"])])])])}}},Ql=ue._export_sfc(zl,[["__scopeId","data-v-a36b8468"]]),Xl={class:"extra-content"},Yl={key:0},en={key:1},ln={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:n}){const t=e,l=f.ref(0),a=f.ref(),r=f.ref(),o=n,u=f.ref(!1),h=f.ref({}),m=f.ref({}),y=f.ref();f.watch(()=>[t.itemData],()=>{var c;const D=p.cloneDeep(t.itemData);a.value=(c=p.cloneDeep(D))==null?void 0:c.map(s=>{var i;if(s.key==="extra"){let $=[];(i=s.value)==null||i.forEach(T=>{var P;$.push((P=Object.values(T))==null?void 0:P[0])}),s.value=$}return s})},{deep:!0,immediate:!0});const _=(D,c,s,i)=>{var T;let $={};((T=D==null?void 0:D[0])==null?void 0:T.contents)==="详情"&&(u.value=!0,$[c]=D,r.value=D==null?void 0:D.filter(P=>(P==null?void 0:P.key)!=="tableContentName"),h.value=$,m.value=s,y.value=i.id)},A=D=>{var P,v,U,R;const c=(v=(P=Object.values(p.cloneDeep(h.value)))==null?void 0:P[0])==null?void 0:v.filter(O=>(O==null?void 0:O.key)==="tableContentName"),s=(R=(U=Object.values(p.cloneDeep(h.value)))==null?void 0:U[0])==null?void 0:R.filter(O=>(O==null?void 0:O.key)!=="tableContentName"),i=s==null?void 0:s.map((O,B)=>{var N;return B===D.index&&(O==null?void 0:O.comp)==="Table"&&(O.compData=(N=O.compData)==null?void 0:N.map(E=>{var k,F;return(E==null?void 0:E.key)==="tableContents"&&(E.contents=(F=(k=D.content)==null?void 0:k.map(j=>{let V={};for(let q in j)q!=="id"&&(V[q]=j[q]);return V}))==null?void 0:F.map(j=>Object.values(j))),E})),O});i.unshift(c==null?void 0:c[0]);let $=p.cloneDeep(h.value),T={};for(let O in $)T[O]=i;h.value=T},x=()=>{u.value=!1,h.value={},m.value={},y.value=void 0,l.value++},C=D=>{var P,v,U,R;const c=(v=(P=Object.values(p.cloneDeep(h.value)))==null?void 0:P[0])==null?void 0:v.filter(O=>(O==null?void 0:O.key)==="tableContentName"),s=(R=(U=Object.values(p.cloneDeep(h.value)))==null?void 0:U[0])==null?void 0:R.filter(O=>(O==null?void 0:O.key)!=="tableContentName"),i=s==null?void 0:s.map((O,B)=>(B===D.index&&(O.compData=D.contents),O));i.unshift(c==null?void 0:c[0]);let $=p.cloneDeep(h.value),T={};for(let O in $)T[O]=i;h.value=T},S=()=>{var c,s;let D={};for(let i in m.value)i===((c=Object.keys(h.value))==null?void 0:c[0])?D[i]=(s=Object.values(h.value))==null?void 0:s[0]:D[i]=m.value[i];o("change",{buttonName:"编辑",index:y.value,singleContent:D},"methodData"),u.value=!1,h.value={},m.value={},y.value=void 0},g=()=>{u.value=!1,h.value={},m.value={},y.value=void 0},d=D=>{o("change",D,"methodData")},b=D=>Le(D);return(D,c)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("div",Xl,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(a.value,(s,i)=>(f.openBlock(),f.createElementBlock("div",{key:l.value},[(s==null?void 0:s.key)==="extra"?(f.openBlock(),f.createElementBlock("div",Yl)):(f.openBlock(),f.createElementBlock("div",en,[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(b(s.comp)),{itemData:s==null?void 0:s.compData,childItemData:s==null?void 0:s.itemChildData,key:i,index:(s==null?void 0:s.id)??i,onContentClick:_,onChange:d},null,40,["itemData","childItemData","index"]))]))]))),128))]),f.createVNode(z.ssDialog,{visible:u.value,onBeforeDestroy:g},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.value,(s,i)=>(f.openBlock(),f.createElementBlock("div",{key:i,class:"extra-dialog"},[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(b(s.comp)),{itemData:s==null?void 0:s.compData,onChange:A,childItemData:s==null?void 0:s.itemChildData,key:i,onContentChange:C,index:(s==null?void 0:s.id)??i,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:f.withCtx(()=>[f.createElementVNode("div",{class:"dialog-footer"},[f.createElementVNode("div",{class:"cancel-button footer-button",onClick:x},f.toDisplayString("取消")),f.createElementVNode("div",{class:"confirm-button footer-button",onClick:S},f.toDisplayString("确认"))])]),_:1},8,["visible"])],64))}},nn=ue._export_sfc(ln,[["__scopeId","data-v-e3e0f29d"]]),ve=e=>{let n=[];function t(a){a==null||a.forEach(r=>{r==null||r.forEach(o=>{!(o!=null&&o.children)||o.children.length===0?n.push(o.label):l(o.children)})})}function l(a){a==null||a.forEach(r=>{!(r!=null&&r.children)||r.children.length===0?n.push(r.label):l(r.children)})}return t(e),n},tn=(e,n,t)=>{var a;let l=(a=p.cloneDeep(e))==null?void 0:a.map(r=>(r=r.filter(o=>!o.id),r));return l=l==null?void 0:l.map(r=>{var o;return r=(o=r.map((u,h)=>{let m={};if(t!=null&&t.find(y=>y===n[h]))return m[n[h]]=u,m}))==null?void 0:o.filter(u=>u),r}),l},an=(e,n)=>{var o,u;const t=p.cloneDeep(e),l=(o=t==null?void 0:t.find(h=>(h==null?void 0:h.key)==="header"))==null?void 0:o.contents,a=(u=t==null?void 0:t.find(h=>(h==null?void 0:h.key)==="tableContents"))==null?void 0:u.contents;return tn(a,ve(l).slice(0,ve(l).length-1),n)},rn={class:"method-content"},on=["onClick"],sn={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(e){const n=f.ref([]),t=e,l=je.useModelComp(ce.pinia),a=(o,u)=>{var m;const h=(m=u==null?void 0:u[0])==null?void 0:m.children;return o==null?void 0:o.map(y=>{var _;return y=(_=y==null?void 0:y.map((A,x)=>{var C;return{key:(C=h[x])==null?void 0:C.label,value:A}}))==null?void 0:_.filter(A=>A.key),y})},r=async o=>{var g,d,b,D,c,s;let u={};if((g=p.cloneDeep(o.content))==null||g.forEach((i,$)=>{var T,P,v,U,R,O,B,N,E,k,F,j,V,q,H,K,Y;if((i==null?void 0:i.comp)==="Table"){let Z=(U=(v=(P=(T=i==null?void 0:i.compData)==null?void 0:T.find(L=>(L==null?void 0:L.key)==="header"))==null?void 0:P.contents)==null?void 0:v[0])==null?void 0:U.some(L=>L==null?void 0:L.children),G=(B=(O=(R=i==null?void 0:i.compData)==null?void 0:R.find(L=>(L==null?void 0:L.key)==="tableContents"))==null?void 0:O.contents)==null?void 0:B.map(L=>L.slice(1)),M=(j=(F=(k=(E=(N=i==null?void 0:i.compData)==null?void 0:N.find(L=>(L==null?void 0:L.key)==="header"))==null?void 0:E.contents)==null?void 0:k[0])==null?void 0:F[0])==null?void 0:j.label,I=(H=(q=(V=i==null?void 0:i.compData)==null?void 0:V.find(L=>(L==null?void 0:L.key)==="header"))==null?void 0:q.contents)==null?void 0:H[0];if(Z)u[M]=a(G,I);else{const L=[];I=I.slice(1,I.length-1),I==null||I.forEach((le,ne)=>{G==null||G.forEach(De=>{L.push({key:le.label+De[0],value:De[ne+1]})})}),u["form"+$]=L}}else{const Z=(Y=(K=i.compData)==null?void 0:K.find(M=>(M==null?void 0:M.key)==="formContent"))==null?void 0:Y.contents;u.form={};const G=[];Z==null||Z.forEach(M=>{M.key!==""&&(M={key:M==null?void 0:M.key,value:M==null?void 0:M.value},G.push(M))}),u.form=G}}),o.api){const i=await ce.axios.post(o.api,{data:u,templateFileName:(d=o==null?void 0:o.extraContent)==null?void 0:d[0]},{responseType:"blob",headers:{"Content-Type":"application/json"}});var h=new Blob([i.data],{type:"application/octet-stream;charset=UTF-8"}),m=i.headers["content-disposition"],y=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),_=y.exec(m),A=((c=(D=(b=o==null?void 0:o.extraContent)==null?void 0:b[0])==null?void 0:D.split("."))==null?void 0:c[0])+"."+((s=_[1].split("."))==null?void 0:s[1]),x=document.createElement("a"),C=window.URL.createObjectURL(h),S=/^["](.*)["]$/g;x.style.display="none",x.href=C,x.download=decodeURI(A.replace(S,"$1")),document.body.appendChild(x),x.click(),document.body.removeChild(x),window.URL.revokeObjectURL(C)}};return f.watch(()=>t.itemData,async()=>{var m;const o=p.cloneDeep(t.itemData),u=o==null?void 0:o.map(async y=>{var g,d,b,D,c,s;const A=(g=(await Ae.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),parentTable:"",type:"method",methodName:y.method}})).data.result)==null?void 0:g[0],x=await Ae.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"methodData",tableId:A.id}}),C=await Ue.getItemData((d=y==null?void 0:y.value)==null?void 0:d[0],sessionStorage.getItem("systemKey"),""),S=(b=x.data.result)==null?void 0:b[0];return{buttonName:(D=A==null?void 0:A.key)==null?void 0:D.methodKey,api:(s=(c=S==null?void 0:S.value)==null?void 0:c.tableData)==null?void 0:s[0],content:C==null?void 0:C.filter(i=>i.comp!=="methodButton"),extraContent:p.cloneDeep(y.value).slice(1)}}),h=await Promise.all(u);n.value=h,(m=n.value)==null||m.forEach(y=>{var _;y.api===""&&((_=y.content)==null||_.forEach(A=>{var x;A.comp=="Table"&&l.setExtraContents(an(A.compData,(x=y.extraContent)==null?void 0:x[0]))}))})},{immediate:!0,deep:!0}),(o,u)=>(f.openBlock(),f.createElementBlock("div",rn,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(n.value,h=>(f.openBlock(),f.createElementBlock("div",null,[h.api!==""?(f.openBlock(),f.createElementBlock("div",{key:0,onClick:m=>r(h),class:"method-buttons"},f.toDisplayString(h.buttonName),9,on)):f.createCommentVNode("",!0)]))),256))]))}},cn=ue._export_sfc(sn,[["__scopeId","data-v-9c299f3f"]]),pn=f.ref([{name:"表格",type:"table",comp:"Table",icon:"Grid"},{name:"表单",type:"form",comp:"Form",icon:"Film"},{name:"折叠",type:"fold",comp:"Fold",icon:"Fold"},{name:"头像",type:"avatar",comp:"Avatar",icon:"Avatar"}]),un={TABLE:Ue.ssTable,FORM:Ce.ssForm,TableOperate:Gl,FormOperate:Ql,FOLD:el._sfc_main,CALCULATOR:nn,METHODBUTTON:cn,AVATARUPLOAD:Ce._sfc_main};function Le(e){return un[e==null?void 0:e.toUpperCase()]||null}const J=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],w=[{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"}],X=f.ref(0),fn=e=>{const[n,t]=e.split(/=(.+)/),l=n.replace(/['"]/g,"").trim(),a=t.replace(/^['"]|['"]$/g,"");return{key:l,value:a}},oe=e=>{try{return JSON.parse(e),!0}catch{return!1}},dn=e=>e.includes("$")&&e.trim().endsWith("(")?e+")":e,hn=e=>{let n=e;const t=[];let l="";for(const a of n)a.includes("{")||l.includes("{")||a.includes("[")||l.includes("[")||a.includes("【")||l.includes("【")||a.includes("(")||l.includes("(")||a.includes("(")||l.includes("(")||a.includes("/*")||l.includes("/*")?(l+=a.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&&(t.push(l),l="")):t.push(a.trim());return t==null?void 0:t.filter(a=>a.includes("{"))},yn=e=>{var t;let n=[];return(t=hn(e.slice(1,-1)))==null||t.forEach(l=>{var r,o,u,h;let a=((o=(r=l.slice(1,-1))==null?void 0:r.split(","))==null?void 0:o.length)??1;(h=(u=l.slice(1,-1))==null?void 0:u.split(","))==null||h.forEach(m=>{var x,C,S,g,d,b,D,c,s,i,$,T,P;let y=m==null?void 0:m.split(":"),_=y!=null&&y[0]?(y==null?void 0:y[1].split("$").length)-1===1?((x=y==null?void 0:y[0])==null?void 0:x.replace(/^"(.*)"$/,"$1"))+((C=y==null?void 0:y[1])==null?void 0:C.replace(/^"(.*)"$/,"$1")):Array.isArray((g=(S=y==null?void 0:y[1])==null?void 0:S.replace(/^"(.*)"$/,"$1"))==null?void 0:g.split("("))&&((D=(b=(d=y==null?void 0:y[1])==null?void 0:d.replace(/^"(.*)"$/,"$1"))==null?void 0:b.split("("))==null?void 0:D.length)>1?((c=y==null?void 0:y[0])==null?void 0:c.replace(/^"(.*)"$/,"$1"))+(($=(i=(s=y==null?void 0:y[1])==null?void 0:s.replace(/^"(.*)"$/,"$1"))==null?void 0:i.split("("))==null?void 0:$[0])+"()":(T=y==null?void 0:y[0])==null?void 0:T.replace(/^"(.*)"$/,"$1"):"",A=(y==null?void 0:y[1].split("$").length)-1===0?(P=y==null?void 0:y[1])==null?void 0:P.replace(/^"(.*)"$/,"$1"):"";X.value++,n.push({id:X.value,key:_,value:A,width:a,extraContent:y==null?void 0:y[1]})})}),n},Re=e=>{var n,t;try{const l=e.replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",").replace(/:/g,":").replace(/:\s*(?=,|}|$)/g,': ""');if(p.cloneDeep(l).split("{").length-1>1){let a=p.cloneDeep(l).replace(/^\{(.*)\}$/,"[$1]");if(oe(a)&&!a.includes("$")||(a=a.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),oe(a)){const r=JSON.parse(a);let o=[];return r==null||r.forEach(u=>{var h;(h=Object.entries(p.cloneDeep(u)))==null||h.forEach(m=>{X.value++,o.push({id:X.value,key:(m==null?void 0:m[0])??"",value:(m==null?void 0:m[1])===""?"":m==null?void 0:m[1],width:Object.keys(p.cloneDeep(u)).length})})}),o}else return l.trim().startsWith("{{")?yn(l.trim()):de(a)}else if(oe(l)){const a=JSON.parse(l);return Object.entries(a).map(([r,o])=>(X.value++,{id:X.value,key:r,value:o===""?"":o,width:1}))}else return((n=de(l))==null?void 0:n.length)===0?l:(t=de(l))==null?void 0:t.map(a=>({label:a.label,method:dn(a.method)}))}catch(l){return console.error("转换失败:",l),[]}},de=e=>{e=e.trim().replace(/^\{|\}$/g,"").trim();const n=[];let t=0;for(;t<e.length;){const l=e.slice(t).match(/^\s*"([^"]+)"\s*:\s*/);if(!l)break;const a=l[1];t+=l[0].length;let r="",o=0,u=!1,h="";for(let m=t;m<e.length;m++){const y=e[m];if((y==='"'||y==="'")&&!u?(u=!0,h=y):y===h&&u&&(u=!1,h=""),!u&&((y==="{"||y==="("||y==="[")&&o++,(y==="}"||y===")"||y==="]")&&o--,y===","&&o===0||m===e.length-1)){r=e.slice(t,m+1).trim(),t=m+1;break}}n.push({label:a,method:r})}return n},mn=(e,n)=>{try{if(J!=null&&J.find(t=>(t==null?void 0:t.key)===n))return e.replace(/['"]/g,"").trim();if(p.cloneDeep(e).split("[").length-1>1){const t=p.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(t)}else{const t=p.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",");if(oe(t)){const l=JSON.parse(t);return Array.isArray(l)?l.map(a=>({label:a})):l}else return Re(p.cloneDeep(e))}}catch(t){return console.error("解析失败:",t),e}},gn=e=>({[e==null?void 0:e.key]:mn(e==null?void 0:e.value,e==null?void 0:e.key)}),bn=e=>{try{if(p.cloneDeep(e).split("[").length-1>1){const n=p.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(n)}else return JSON.parse(p.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",")).map(t=>({label:t}))}catch(n){return console.error("解析失败:",n),e}},kn=e=>{const n=e.match(/\(([^)]+)\)/);return n?n[1]:""},Dn=e=>{const n=e.match(/^([^(]+)\s*\(/);return n?n[1].trim():e},Oe=e=>e.replace(/'/g,"").replace(/"/g,"").replace(/{|}/g,"").split(":").map(n=>n.trim()).filter(n=>n).join("/"),Cn=e=>{var o,u;let n=[],t=[];const l=(o=p.cloneDeep(e))==null?void 0:o.map(h=>h==null?void 0:h.key),a=[...new Set((u=p.cloneDeep(l))==null?void 0:u.map(h=>kn(h)))];a==null||a.forEach(h=>{let m=e==null?void 0:e.filter(A=>A.key.includes(h));m==null||m.forEach(A=>{A!=null&&A.key.includes("Menus")&&(n.push({key:"GroupName",value:Oe(A==null?void 0:A.value)}),t.push(Oe(A==null?void 0:A.value)))});let y=e==null?void 0:e.filter(A=>A.key.includes(h)&&!(A!=null&&A.key.includes("Menus")));y=y==null?void 0:y.map(A=>(A.key=Dn(A.key),A));const _={key:"GroupContents",value:y};n.push(_)});const r={key:"Menus",value:t};return n.unshift(r),n},Ve=e=>{var n,t;if(Array.isArray(Object.keys(e))&&((n=Object.keys(e))==null?void 0:n.length)>0){let l=[];return(t=Object.entries(e))==null||t.forEach(([a,r])=>{var u,h;let o=[];if(o.push(a),((u=Object.keys(r))==null?void 0:u.length)>0){let m=[];(h=Ve(r))==null||h.forEach(y=>{m.push(y)}),m==null||m.forEach(y=>{o.push(y)})}l.push(o)}),l}},An=(e,n)=>{var l;let t=n;return Array.isArray(Object.keys(e))&&((l=Object.entries(e))==null||l.forEach(([a,r])=>{let o=[a];if(typeof r=="object"&&r!==null){let u=Ve(r);u==null||u.forEach(h=>{o.push(h)})}t.push(o)})),t},$n=e=>{const n={};return e.forEach(l=>{const a=l.split("/");let r=n;a.forEach(o=>{r[o]||(r[o]={}),r=r[o]})}),An(n,[])},Ge=e=>$n(e),_n=e=>{var n,t,l,a,r,o,u,h;try{const m=ke((t=(n=p.cloneDeep(e))==null?void 0:n.replace("(","("))==null?void 0:t.replace(")",")")),y=(a=(l=p.cloneDeep(m))==null?void 0:l.filter(C=>!C.includes("/*")))==null?void 0:a.map(C=>fn(C)),_=Cn(y),A=[];if(((r=_==null?void 0:_.find(C=>(C==null?void 0:C.key)==="Menus"))==null?void 0:r.value.length)===0)return!1;(o=p.cloneDeep(_))==null||o.forEach(C=>{var S,g,d,b,D;J!=null&&J.find(c=>{var s,i;return((s=c==null?void 0:c.key)==null?void 0:s.toUpperCase())===((i=C==null?void 0:C.key)==null?void 0:i.toUpperCase())})?A.push({comp:((S=J==null?void 0:J.find(c=>{var s,i;return((s=c==null?void 0:c.key)==null?void 0:s.toUpperCase())===((i=C==null?void 0:C.key)==null?void 0:i.toUpperCase())}))==null?void 0:S.value)??"",name:(g=C==null?void 0:C.value)==null?void 0:g.replace(/[’]|[‘]|[']/g,""),compData:[]}):w!=null&&w.find(c=>{var s,i;return((s=c==null?void 0:c.key)==null?void 0:s.toUpperCase())===((i=C==null?void 0:C.key)==null?void 0:i.toUpperCase())})&&((A==null?void 0:A.length)===0&&(d=C.key)!=null&&d.includes("Menus")&&A.push({comp:"Menu",name:"",compData:[]}),(b=A==null?void 0:A[(A==null?void 0:A.length)-1])!=null&&b.compData&&A[(A==null?void 0:A.length)-1].compData.push({key:(D=w==null?void 0:w.find(c=>{var s,i;return((s=c==null?void 0:c.key)==null?void 0:s.toUpperCase())===((i=C==null?void 0:C.key)==null?void 0:i.toUpperCase())}))==null?void 0:D.value,contents:C==null?void 0:C.value}))});let x=(u=p.cloneDeep(A))==null?void 0:u.map(C=>{var S;return C!=null&&C.compData&&(C.compData=(S=C==null?void 0:C.compData)==null?void 0:S.map(g=>{var d,b,D,c,s,i,$,T,P,v,U;if((g==null?void 0:g.key)==="formFlex")g.contents=((b=(d=g.contents)==null?void 0:d.replace(/[’]|[‘]|[']/g,""))==null?void 0:b.toUpperCase())!=="Vertical".toUpperCase();else if((g==null?void 0:g.key)==="groupContents")g.contents=(D=p.cloneDeep(g.contents))==null?void 0:D.map(R=>gn(p.cloneDeep(R)));else if(Array.isArray(g==null?void 0:g.contents))g.contents=Ge(g.contents);else if(((s=(c=g==null?void 0:g.contents)==null?void 0:c.trim())!=null&&s.startsWith("[")||($=(i=g.contents)==null?void 0:i.trim())!=null&&$.startsWith("【"))&&((P=(T=g.contents)==null?void 0:T.trim())!=null&&P.endsWith("]")||(U=(v=g.contents)==null?void 0:v.trim())!=null&&U.endsWith("】")))g.contents=bn(p.cloneDeep(g.contents));else{if(!g.contents)return;g.contents=Re(p.cloneDeep(g.contents))}return g})),C});return x=(h=p.cloneDeep(x))==null?void 0:h.map(C=>{var S;return(C==null?void 0:C.comp)==="Group"&&(C.compData=(S=C.compData)==null?void 0:S.map(g=>{var b;let d=[];return(b=g.contents)==null||b.forEach(D=>{var c,s,i,$,T,P,v,U,R,O,B,N;if(J!=null&&J.find(E=>{var k,F,j;return((k=E==null?void 0:E.key)==null?void 0:k.toUpperCase())===((j=(F=Object.keys(D))==null?void 0:F[0])==null?void 0:j.toUpperCase())}))d.push({comp:(c=J==null?void 0:J.find(E=>{var k,F,j;return((k=E==null?void 0:E.key)==null?void 0:k.toUpperCase())===((j=(F=Object.keys(D))==null?void 0:F[0])==null?void 0:j.toUpperCase())}))==null?void 0:c.value,name:(i=(s=Object.values(D))==null?void 0:s[0])==null?void 0:i.replace(/[’]|[‘]|[']/g,""),compData:[]});else if(w!=null&&w.find(E=>{var k,F,j;return((k=E==null?void 0:E.key)==null?void 0:k.toUpperCase())===((j=(F=Object.keys(D))==null?void 0:F[0])==null?void 0:j.toUpperCase())})){if((d==null?void 0:d.length)===0)return;($=d==null?void 0:d[(d==null?void 0:d.length)-1])!=null&&$.compData&&d[(d==null?void 0:d.length)-1].compData.push({key:(T=w==null?void 0:w.find(E=>{var k,F,j;return((k=E==null?void 0:E.key)==null?void 0:k.toUpperCase())===((j=(F=Object.keys(D))==null?void 0:F[0])==null?void 0:j.toUpperCase())}))==null?void 0:T.value,contents:(P=Object.values(D))==null?void 0:P[0]})}else if((U=(v=Object.keys(D))==null?void 0:v[0])!=null&&U.includes("$")){const E=(O=(R=Object.keys(p.cloneDeep(D)))==null?void 0:R[0])==null?void 0:O.split("$");d[(d==null?void 0:d.length)-1].compData.push({key:(B=w==null?void 0:w.find(k=>{var F,j;return((F=k==null?void 0:k.key)==null?void 0:F.toUpperCase())===((j=E==null?void 0:E[0])==null?void 0:j.toUpperCase())}))==null?void 0:B.value,contents:(N=Object.values(D))==null?void 0:N[0],selectLabel:E==null?void 0:E[1]})}return D}),g.contents=d,g})),C}),x}catch{return!1}},W=e=>{try{return JSON.parse(e),!0}catch{return!1}},xn=(e,n)=>Sl(e,n),Ee=f.ref(0),Me=e=>{const n=[];let t=null;for(let l=0;l<e.length;l++){const a=e[l];if(Array.isArray(a))t&&(t.children=Me(a));else{const r={label:a};n.push(r),t=r}}return n},qe=e=>{let n=0;for(const t of e)n++,t.children&&(n+=qe(t.children));return n},He=(e,n,t=[])=>{let l=0;for(const a of n){if(l>=e.length)break;const r=[...e[l]];if(t.push(r),l++,a.children&&a.children.length>0){const o=[];He(e.slice(l),a.children,o),o.length>0&&(r.push(o),l+=qe(a.children))}}return t},Tn=(e,n)=>{let t=[];return e==null||e.forEach(a=>{a.some(r=>Array.isArray(r))?t.push(...a):t.push(a)}),He(t,n)},me=e=>{const n={label:e[0].trim()};if(e.length>1){const t=e.slice(1);t.length===1&&Array.isArray(t[0])?n.children=t[0].map(l=>Array.isArray(l)?me(l):{label:l.trim()}):n.children=t.map(l=>Array.isArray(l)?me(l):{label:l.trim()})}return n},Ne=e=>{let n=e.replace(/:([^{}\[\],\s]+)([,\]}])/g,':"$1"$2');return n=n.replace(/:}(?=,|]|}|$)/g,':""}'),n=n.replace(/:,(?=\s*")/g,':"",'),n=n.replace(/(https?|HTTPS?):"\/\/([^"]+)"/gi,(t,l,a)=>`"${l}://${a}"`),n=n.replace(/(\[|\s|,)((?:https?|HTTPS?):\/\/[^\s,\]]+)(\]|,|$)/gi,'$1"$2"$3'),n},vn=e=>{var t;return e.some(l=>!Array.isArray(l))?e:(t=p.cloneDeep(e))==null?void 0:t.map(l=>{let a=[];return l.some(r=>Array.isArray(r))?l==null||l.forEach(r=>{Array.isArray(r)&&a.push(me(r))}):l.some(r=>r.includes("["))?a.push(l):a=l.map(r=>({label:r.trim()})),a})},Ie=(e,n,t)=>{let l=e,a=t,r=n;return r.children&&(Array.isArray(a[a.length-1])?a[a.length-1].push(l[0]):a.push(l[0]),l.shift(),r=r.children),Array.isArray(r)&&r.forEach(o=>{if(o.children){const u=Ie(l,o,a);a=u[0],l=u[1]}}),[a,l]},On=(e,n)=>{let t=e,l=[];return n.length>0?n==null||n.forEach(a=>{let r=t==null?void 0:t[0];t.shift();const o=Ie(p.cloneDeep(t),a,r);r=o[0],t=o[1],l.push(r)}):l=t,l},be=(e,n)=>{const t=vn(p.cloneDeep(e));return On(t,n)},En=e=>{const n=[];let t=0;const l=e.length;for(;t<l;){const a=e[t];a.key==="tableColumns"&&t+1<l&&e[t+1].key==="tableContents"?(n.push({comp:"Table",compData:[a,e[t+1]],name:""}),t+=2):(n.push(a),t+=1)}return n},We=e=>be([e],[]),Nn=e=>{const n=[];return e==null||e.forEach(t=>t==null?void 0:t.forEach(a=>{var r,o;Ee.value++,n.push({id:Ee.value,key:(r=Object.keys(a))==null?void 0:r[0],value:(o=Object.values(a))==null?void 0:o[0],width:t.length})})),n},Se=e=>{let n=En(e);return n=n==null?void 0:n.map(t=>{var l,a,r;if(t.comp==="Table")(l=t.compData)!=null&&l.find(o=>(o==null?void 0:o.key)==="header")||(t.compData=(a=t.compData)==null?void 0:a.map(o=>(o.key==="tableColumns"?o={key:"header",contents:be(o.value,[])}:o={key:o.key,contents:o.value},o)),t.compData.push({key:"extraButton",contents:[{label:"新增"}]}),t.compData.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}));else if(t.key==="form"){const o=(r=t==null?void 0:t.value)==null?void 0:r.map(u=>(Array.isArray(u)||(u=[u]),u));t={comp:"Form",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:Nn(o)}],name:""}}return t}),n},Sn=(e,n)=>{var u,h,m,y,_,A;const t=[],l=Me((h=(u=e==null?void 0:e.find(x=>x.key==="tableIndex"))==null?void 0:u.value)==null?void 0:h[0]);t.push({key:"tableIndexColumn",contents:n}),t.push({key:"tableIndex",contents:l});let a=[];const r=(m=e==null?void 0:e.find(x=>x.key==="tableColumns"))==null?void 0:m.value;r.length===1&&!(r!=null&&r[0].some(x=>Array.isArray(x)))?a=(y=r==null?void 0:r[0])==null?void 0:y.map(x=>({label:x})):a=be((_=e==null?void 0:e.find(x=>x.key==="tableColumns"))==null?void 0:_.value,l),t.push({key:"header",contents:a});const o=Tn((A=e==null?void 0:e.find(x=>x.key==="tableContents"))==null?void 0:A.value,l);return t.push({key:"tableContents",contents:o}),t.push({key:"extraButton",contents:[{label:"新增"}]}),t.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),t},Ke=e=>e.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,(n,t,l)=>{const a=Ke(l);return`"${t}",${a}`}),ae=e=>{const n=e.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,'"$1",$2');return Ke(n).replace(/^"(.*)"$/,"$1")},Bn=e=>{const n=new Set;return e.filter(t=>{const l=JSON.stringify(t);return n.has(l)?!1:n.add(l)})},Be=e=>{var t;let n=[];return(t=p.cloneDeep(e))==null||t.forEach(l=>{var a;(a=l.contents)==null||a.forEach(r=>{n.push(r)})}),n=Bn(n),n.push({label:"操作"}),[n]},Pn=(e,n)=>e.reduce((t,l,a)=>{const r=Math.floor(a/n);return t[r]||(t[r]=[]),t[r].push(l),t},[]),Ze=e=>e.reduce((n,t)=>t.children&&t.children.length>0?n+Ze(t.children):n+1,0),Fn=(e,n)=>{var l;let t=[];return(l=Pn(e,Ze(n==null?void 0:n[0])-1))==null||l.forEach(a=>{let r=[];a.forEach(o=>{var u;Array.isArray(o.contents)?(u=o.contents)==null||u.forEach(h=>{r.push(h)}):r.push(o.contents)}),t.push(r)}),[t]},Un=["方法体","输入","输出"],Pe=f.ref(1),ke=e=>{let n;e.replaceAll(" ",`\r
|
|
2
|
+
`).includes(`\r
|
|
3
|
+
`)?n=e.replaceAll(" ",`\r
|
|
4
|
+
`).split(`\r
|
|
5
|
+
`).filter(a=>a.trim()!==""):n=e.replaceAll(" ",`\r
|
|
6
|
+
`).split(`
|
|
7
|
+
`).filter(a=>a.trim()!=="");const t=[];let l="";for(const a of n)a.includes("{")||l.includes("{")||a.includes("[")||l.includes("[")||a.includes("【")||l.includes("【")||a.includes("(")||l.includes("(")||a.includes("(")||l.includes("(")||a.includes("/*")||l.includes("/*")?(l+=a.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]!==","&&(t.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="")):t.push(a.trim().replace(/\/\*[\s\S]*?\*\//g,""));return t},jn=e=>{const[n,t]=e.split(/=(.+)/),l=n.replace(/['"]/g,"").trim(),a=t.replace(/^['"]|['"]$/g,"");return{key:l,value:a}},ie=e=>{let n;e.includes(":")?n=e.split(":").filter(a=>a.trim()!==""):n=e.split(":").filter(a=>a.trim()!=="");const t=[];let l="";for(const a of n)a.includes("{")||l.includes("{")||a.includes("[")||l.includes("[")||a.includes("【")||l.includes("【")||a.includes("(")||l.includes("(")||a.includes("(")||l.includes("(")||a.includes("/*")||l.includes("/*")?(l=l!==""?l+":"+a.trim():a.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&&(t.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="")):t.push(a.trim().replace(/\/\*[\s\S]*?\*\//g,""));return t},wn=e=>/^[\x00-\x7F]*$/.test(e),Jn=e=>{var a;const n=e.map(r=>{var u,h;let o=(h=(u=r.key.split("("))==null?void 0:u[1])==null?void 0:h.trim();return o.slice(0,o.length-1)}),t=n==null?void 0:n.map(r=>{var u;return(u=ie(r))==null?void 0:u.map(h=>{var m;if(h.includes("{")){let y=(m=h.split(":"))==null?void 0:m[0];h=y.slice(1,y.length)}return h})}).filter(r=>r.length!==0),l=(a=t==null?void 0:t.filter(r=>r.length!==0))==null?void 0:a.map(r=>{let o="";return r.forEach(u=>{u.includes("{")||(o=o===""?o+p.cloneDeep(u):o+"/"+p.cloneDeep(u))}),o});return Ge([...new Set(l)])},ze=e=>{var t,l,a,r,o,u,h,m;const n=(l=(t=e.split("("))==null?void 0:t[1])==null?void 0:l.trim();return((a=ie(n.slice(0,n.length-1)))==null?void 0:a.length)>0?n.slice(0,n.length-1):(m=(h=(u=(o=(r=e.split("("))==null?void 0:r[1])==null?void 0:o.trim())==null?void 0:u.split(")"))==null?void 0:h[0])==null?void 0:m.trim()},Ln=e=>{var a;if(!e)return;const n=ze(e),t=(a=ie(n))==null?void 0:a.map(r=>{var o;if(r.includes("{")){let u=(o=r.split(":"))==null?void 0:o[0];r=u.slice(1,u.length)}return r});let l="";return t.forEach(r=>{r.includes("{")||(l=l===""?l+p.cloneDeep(r):l+"/"+p.cloneDeep(r))}),l},Rn=e=>{const n=e.match(/\[(.*)\]/s);if(n){const t=`[${n[1]}]`;try{const l=t.replace(/([^\[\],\s]+)/g,'"$1"');return JSON.parse(l)}catch(l){console.error("解析失败:",l)}}},Vn=e=>{var r;if(!e)return;const n=ze(e);let t=[],l=[],a=[];return(r=ie(n))==null||r.forEach(o=>{var u;o.includes("[")?t.push(Rn(o)):o.includes("{")&&(wn((u=o.slice(1,o.length-1).split(":"))==null?void 0:u[0])?a.push(JSON.parse(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g,'$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g,'$1"$2"$3'))):W(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g,'$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g,'$1"$2"$3'))||o.includes("$")||l.push(o.replace(/([{,]\s*)([^:{\[\],\s]+)(\s*:\s*)/g,'$1"$2"$3').replace(/(:\s*)([^{}\[\]",\s]+)(\s*[,}])/g,'$1"$2"$3')))}),[t,l,a]},Gn=e=>{const n=[];let t="";for(const l of e)l.includes("[")||t.includes("[")||l.includes("/*")||t.includes("/*")?(t+=l.trim(),p.cloneDeep(t).split("{").length-1===p.cloneDeep(t).split("}").length-1&&p.cloneDeep(t).split("【").length-1===p.cloneDeep(t).split("】").length-1&&p.cloneDeep(t).split("[").length-1===p.cloneDeep(t).split("]").length-1&&p.cloneDeep(t).split("(").length-1===p.cloneDeep(t).split(")").length-1&&p.cloneDeep(t).split("(").length-1===p.cloneDeep(t).split(")").length-1&&p.cloneDeep(t).split("/*").length-1===p.cloneDeep(t).split("*/").length-1&&(n.push(t.replace(/\/\*[\s\S]*?\*\//g,"")),t="")):n.push(l.trim().replace(/\/\*[\s\S]*?\*\//g,""));return n},Fe=e=>{var o,u;const n=[],t=/(?:{'([^']+)'[^}]+}: {'([^']+)'[^}]+}|'([^']+)': {'([^']+)'[^}]+})/,l=e.match(t);if(l){const h=l[1]||l[3],m=l[2]||l[4];if(h&&m){const y=`${h}/${m}`;n.push(y)}}const a=/(https?:\/\/[^\s)]+|Http:\/\/[^\s)]+|\/[^\s)]+)/i,r=e.match(a);return r?n.push(r[0].replace(/\)+$/,"")):(e==null?void 0:e.split(",").length)===2&&n.push((u=(o=e==null?void 0:e.split(","))==null?void 0:o[1])==null?void 0:u.trim()),n},he=e=>{let n=e.replace(/\[\s*,\s*,/g,'[{"": ""}, {"": ""},');return n=n.replace(/\[\s*,/g,'[{"": ""},'),n=n.replace(/,\s*,/g,', {"": ""},'),n=n.replace(/,\s*\]/g,', {"": ""}]'),n=n.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,\]}])/g,(t,l,a,r,o)=>a.includes("'")?`:${l}${a}${r}${o}`:`:${l}"${a}"${r}${o}`),n=n.replace(/:\s*([,\]}])/g,': ""$1'),n},Mn=e=>!/\[[^\]]*\{[^\]]*\]/.test(e),qn=e=>{const n=p.cloneDeep(e).match(/(\w+)\(['"]([^'"]+)['"]:\s*\{['"]([^'"]+)['"]\}\)/),t=n?`${n[2]}/${n[3]}`:null,l=e.match(/\[\{([^}]+)\}\]/),a=l==null?void 0:l[1].replaceAll(":","").replaceAll("'",'"').trim();let r=null;if(a)try{r=JSON.parse(a)}catch(o){console.error("解析数组失败:",o)}return[t,r]},Hn=e=>{var u,h,m,y,_,A,x,C,S,g,d;let n=[],t=[],l={},a=[],r=e.trim(),o=[];if(r.trim().includes("输入")&&r.trim().includes("输出")){let b=[],D=e.trim();D=p.cloneDeep(D).slice(1,p.cloneDeep(D).length-1);const c=/(\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})/g;(C=D.match(c))==null||C.forEach((s,i)=>{var P;const $=s;let T=[];(P=$.slice(1,$.length-1).replace(":","$:").split("$:"))==null||P.forEach(v=>{var U,R,O;if(Un.find(B=>v.includes(B)))if(!v.includes("=="))T.push({key:"tableIndexColumn",contents:v.replaceAll("'","")});else{let B=[];const N=v.replaceAll("'","").split("==");B.push(N==null?void 0:N[0]),N!=null&&N[1].includes("[")?B.push(N==null?void 0:N[1].trim().slice(1,(N==null?void 0:N[1].length)-1).split(",")):B.push([N==null?void 0:N[1]]),T.push({key:"header",contents:[(R=(U=We([B]))==null?void 0:U[0])==null?void 0:R[0]]})}else{let B=v.trim().replaceAll(",",",").replaceAll("'",'"');if(i%3===0)B.slice(1,B.length-1).includes("[")?b.push({key:"tableIndex",contents:[{label:B}]}):b.push({key:"tableIndex",contents:[{label:B.slice(1,B.length-1)}]});else if((B==null?void 0:B[0])==="{"){let N=[];const E=B.slice(1,B.length-1).split(":");if(E.every(k=>W(k.trim()))){N.push({key:"tableContentName",contents:"详情"});let k=[];E.forEach((F,j)=>{if(j===0){const V=JSON.parse(F).map(q=>({label:q}));V.push({label:"操作"}),k.push({key:"header",contents:V})}else k.push({key:"tableContents",contents:JSON.parse(F)})}),k.push({key:"extraButton",contents:[{label:"新增"}]}),k.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),N.push({comp:"Table",compData:k,name:""}),b.push({key:"tableContents",contents:[N]})}}else{let N=B;N.slice(1,N.length-1).includes("[")||N.slice(1,N.length-1).includes("{")?W(Ne(N.replace(/\s+/g,"")))&&((O=JSON.parse(Ne(N.replace(/\s+/g,""))))==null||O.map(E=>{if(Array.isArray(E==null?void 0:E[0])){const k=[];k.push({key:"tableContentName",contents:"详情"});let F=[];E.forEach(j=>{j.forEach(V=>{var q,H;Pe.value++,F.push({id:Pe.value,key:(q=Object.keys(V))==null?void 0:q[0],value:(H=Object.values(V))==null?void 0:H[0],width:j.length})})}),k.push({comp:"Form",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:F}],name:""}),b.push({key:"tableContents",contents:[k]})}else b.push({key:"tableContents",contents:E==null?void 0:E[0]})})):b.push({key:"tableContents",contents:N.trim().slice(1,N.length-1)})}}}),b.push(T==null?void 0:T[0])}),o.push({key:"tableIndex",contents:(S=b==null?void 0:b.filter(s=>(s==null?void 0:s.key)==="tableIndex"))==null?void 0:S.map(s=>{var i;return(i=s.contents)==null?void 0:i[0]})}),o.push({key:"extraButton",contents:[{label:"新增"}]}),o.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),o.push({key:"tableIndexColumn",contents:(d=(g=b==null?void 0:b.filter(s=>(s==null?void 0:s.key)==="tableIndexColumn"))==null?void 0:g[0])==null?void 0:d.contents}),o.push({key:"header",contents:Be(b==null?void 0:b.filter(s=>(s==null?void 0:s.key)==="header"))}),o.push({key:"tableContents",contents:Fn(b==null?void 0:b.filter(s=>(s==null?void 0:s.key)==="tableContents"),Be(b==null?void 0:b.filter(s=>(s==null?void 0:s.key)==="header")))})}else{const b=(u=r.trim().split(",$"))==null?void 0:u[0];b[0]==="["?r=b.slice(1,b.length-1):r.includes(",$")&&(r=(h=r.trim().split(",$"))==null?void 0:h[0]);let D;if(r.includes("$")){r=p.cloneDeep(r),l.method=(y=(m=p.cloneDeep(r).trim())==null?void 0:m.slice(1,r.length).split("("))==null?void 0:y[0];let c;Fe(r.slice(1,r.length-2)).length>1?c=Fe(r.slice(1,r.length-2)):c=qn(r),l.value=c}else W("["+he(r).replaceAll("'",'"')+"]")&&!Mn(he(r).replaceAll("'",'"'))?(r=JSON.parse("["+he(r).replaceAll("'",'"')+"]"),a=r):D=(A=(_=p.cloneDeep(r).split("}"))==null?void 0:_.filter(c=>c!==""))==null?void 0:A.map(c=>{let s=c;return s[0]===","?s=s.slice(2,s.length):s=s.slice(1,s.length),s});(x=p.cloneDeep(D))==null||x.forEach(c=>{var s,i,$,T,P,v,U,R,O,B,N,E,k,F,j;if(c.includes("==")){const V=(E=c==null?void 0:c.split(":"))==null?void 0:E[0].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"').replaceAll("'",'"'),q=(k=c==null?void 0:c.split(":"))==null?void 0:k[1].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"');if(W(q.trim())?t.push(JSON.parse(q.trim())):t.push(JSON.parse(q.replaceAll("'",'"').trim())),V[0]!=="["){let H=[];W("["+ae(V)+"]")?H.push(JSON.parse("["+ae(V)+"]")):W("["+ae(V).replaceAll("==",",")+"]")&&H.push(JSON.parse("["+ae(V).replaceAll("==",",")+"]"));const K=p.cloneDeep(H);K.push(["操作"]),n.push(K)}else{const H=(F=V.slice(1,V.length-1).replaceAll(",",",|"))==null?void 0:F.split("|"),K=(j=Gn(H))==null?void 0:j.map(G=>((G==null?void 0:G[G.length-1])===","&&(G=G.slice(0,G.length-1)),G));let Y=[];K==null||K.forEach(G=>{var I,L,le,ne;let M=[];M.push((I=G.split("=="))==null?void 0:I[0].trim().replace(/^"|"$/g,"")),((L=G.split("=="))==null?void 0:L[1].trim()[0])==="["?M.push(JSON.parse((le=G.split("=="))==null?void 0:le[1].trim())):M.push([JSON.parse((ne=G.split("=="))==null?void 0:ne[1].trim())]),Y.push(M)});const Z=p.cloneDeep(Y);Z.push(["操作"]),n.push(Z)}}else{if(W((s=c==null?void 0:c.split(":"))==null?void 0:s[0].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"').replaceAll("'",'"'))){let V=JSON.parse((i=c==null?void 0:c.split(":"))==null?void 0:i[0].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"').replaceAll("'",'"'));Array.isArray(V)||(V=[V]),V.push("操作"),n.push(V)}W((P=(T=($=c==null?void 0:c.split(":"))==null?void 0:$[1])==null?void 0:T.replace(/^"|"$/g,"'"))==null?void 0:P.replace(/'([^']+)'/g,'"$1"'))?t.push(JSON.parse((v=c==null?void 0:c.split(":"))==null?void 0:v[1].replace(/^"|"$/g,"'").replace(/'([^']+)'/g,'"$1"'))):W((B=(O=(R=(U=c==null?void 0:c.split(":"))==null?void 0:U[1])==null?void 0:R.replace(/^"|"$/g,"'"))==null?void 0:O.replaceAll("'",'"'))==null?void 0:B.replace(/'([^']+)'/g,'"$1"'))&&t.push(JSON.parse((N=c==null?void 0:c.split(":"))==null?void 0:N[1].replace(/^"|"$/g,"'").replaceAll("'",'"').replace(/'([^']+)'/g,'"$1"')))}})}return[n,t,o,l,a]},In=e=>{const n=[],t=Ln(e==null?void 0:e.key),l=Vn(e==null?void 0:e.key),a=Hn(e==null?void 0:e.value),r=l==null?void 0:l[0],o=[...l==null?void 0:l[1],...a==null?void 0:a[4]],u=l==null?void 0:l[2],h=a==null?void 0:a[0],m=a==null?void 0:a[1],y=a==null?void 0:a[2],_=a==null?void 0:a[3];return t&&n.push({key:"contentPath",value:t}),(r==null?void 0:r.length)>0&&n.push({key:"tableIndex",value:r}),_&&n.push({key:"extraButton",value:_}),(o==null?void 0:o.length)>0&&n.push({key:"form",value:o}),(u==null?void 0:u.length)>0&&n.push({key:"extra",value:u}),(y==null?void 0:y.length)>0&&n.push({comp:"Table",compData:y,name:""}),(h==null?void 0:h.length)>0&&n.push({key:"tableColumns",value:h}),(m==null?void 0:m.length)>0&&n.push({key:"tableContents",value:m}),n},Wn=(e,n)=>{const t=n.split("/");let l=[];return e==null||e.forEach(a=>{var u,h,m,y,_,A,x,C,S;const r=[],o=(h=(u=a.find(g=>g.key==="tableIndex"))==null?void 0:u.value)==null?void 0:h[0];if(o&&!o.some(g=>Array.isArray(g))){const g=(y=(m=a.find(d=>d.key==="tableColumns"))==null?void 0:m.value)==null?void 0:y[0];r.push({key:"tableIndexColumn",contents:t[t.length-1]}),r.push({key:"tableIndex",contents:o==null?void 0:o.map(d=>({label:d}))}),r.push({key:"extraButton",contents:[{label:"新增"}]}),r.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),Array.isArray(g)&&g.some(d=>Array.isArray(d))?r.push({key:"header",contents:We(g)}):r.push({key:"header",contents:Array.isArray(g)?g==null?void 0:g.map(d=>({label:d})):[g].map(d=>({label:d}))}),r.push({key:"tableContents",contents:Array.isArray(g)?(A=(_=a.find(d=>d.key==="tableContents"))==null?void 0:_.value)==null?void 0:A[0]:(S=(C=(x=a.find(d=>d.key==="tableContents"))==null?void 0:x.value)==null?void 0:C[0])==null?void 0:S.map(d=>[d])}),l.push({comp:"Table",name:"",compData:r})}else o?l.push({comp:"Table",name:"",compData:Sn(a,t[t.length-1])}):a.some(g=>g.key==="extra")?l.push({comp:"calculator",name:"",compData:Se(a)}):l.push(Se(a))}),l},Kn=(e,n)=>{var a,r;const t=e.map(o=>o.filter(u=>u.key!=="contentPath"));return{comp:"Group",compData:[{contents:Wn(t,n),key:"groupContents"}],name:(r=(a=e[0])==null?void 0:a.find(o=>o.key==="contentPath"))==null?void 0:r.value}},Zn=e=>{var a;const n=[],t=p.cloneDeep(e).map(r=>{var o;if(r!=null&&r.find(u=>(u==null?void 0:u.key)==="contentPath"))return(o=r==null?void 0:r.find(u=>(u==null?void 0:u.key)==="contentPath"))==null?void 0:o.value}).filter(r=>r!==""),l=[...new Set(t)];return(a=l==null?void 0:l.filter(r=>r))==null||a.forEach(r=>{var o;n.push(Kn((o=p.cloneDeep(e))==null?void 0:o.filter(u=>u.find(h=>h.key==="contentPath"&&h.value===r)),r))}),n},zn=e=>{let n=[];n.push({comp:"Menu",compData:[{contents:Jn(p.cloneDeep(e)),key:"menuContents"}],name:""});const t=e.map(l=>In(l)).filter(l=>l.length!==0);return n=[...n,...Zn(t)],n},Qn=e=>{var a,r,o,u,h;const n=(o=ke((r=(a=p.cloneDeep(e))==null?void 0:a.replace("(","("))==null?void 0:r.replace(")",")")))==null?void 0:o.filter(m=>m!==""),t=(h=(u=p.cloneDeep(n))==null?void 0:u.filter(m=>!m.includes("/*")))==null?void 0:h.map(m=>jn(m));return zn(t)},re=f.ref(0),ye=f.ref(0),Xn=e=>{const n=e.trim().replace(/^'|'$/g,""),t=/((?:\$?[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 a;for(;(a=t.exec(n))!==null;){const r=a[1];let o=a[2].trim();(o.match(/\[/g)||[]).length!==(o.match(/\]/g)||[]).length&&(o=o==null?void 0:o.replace(/]$/,"")),l[r]?(l[r+ye.value]&&ye.value++,l[r+ye.value]=r+"="+o):l[r]=r+"="+o}return l},Qe=e=>{const[n,t]=e.split("=").map(r=>r.trim()),l=n.replace(/['"]/g,""),a=t.replace(/^['"]|['"]$/g,"");return{key:l,value:a}},Yn=e=>{var o;let n=[];const[t,l]=e.split(/=(.+)/),a=t.replace(/['"]/g,"").trim(),r=l.replace(/^['"]|['"]$/g,"");return(o=Object.values(Xn(r)))==null||o.forEach(u=>{n.push(Qe(u))}),{key:a,value:n}},se=e=>{try{return JSON.parse(e),!0}catch{return!1}},Xe=e=>{try{const n=e.replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",").replace(/:/g,":").replace(/:\s*(?=,|}|$)/g,': ""');if(p.cloneDeep(n).split("{").length-1>1){let t=p.cloneDeep(n).replace(/^\{(.*)\}$/,"[$1]");if(se(t)&&!t.includes("$")||(t=t.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),se(t)){const l=JSON.parse(t);let a=[];return l==null||l.forEach(r=>{var o;(o=Object.entries(p.cloneDeep(r)))==null||o.forEach(u=>{re.value++,a.push({id:re.value,key:(u==null?void 0:u[0])??"",value:(u==null?void 0:u[1])===""?"":u==null?void 0:u[1],width:Object.keys(p.cloneDeep(r)).length})})}),a}else return console.error("转换类型不正确:"),[]}else if(se(n)){const t=JSON.parse(n);return Object.entries(t).map(([l,a])=>(re.value++,{id:re.value,key:l,value:a===""?"":a,width:1}))}else return n}catch(n){return console.error("转换失败:",n),[]}},et=(e,n)=>{try{if(J!=null&&J.find(t=>(t==null?void 0:t.key)===n))return JSON.parse(e.replace(/[’]|[‘]|[']/g,'"'));if(p.cloneDeep(e).split("[").length-1>1){const t=p.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(t)}else{const t=p.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",");if(se(t)){const l=JSON.parse(t);return Array.isArray(l)?l.map(a=>({label:a})):l}else return Xe(p.cloneDeep(e))}}catch(t){return console.error("解析失败:",t),e}},lt=e=>({[e==null?void 0:e.key]:et(e==null?void 0:e.value,e==null?void 0:e.key)}),nt=e=>{try{if(p.cloneDeep(e).split("[").length-1>1){const n=p.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(n)}else return JSON.parse(p.cloneDeep(e).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",")).map(t=>({label:t}))}catch(n){return console.error("解析失败:",n),e}},Ye=e=>{var n,t,l,a,r,o;try{const u=ke((t=(n=p.cloneDeep(e))==null?void 0:n.replace("(","("))==null?void 0:t.replace(")",")")),h=(l=p.cloneDeep(u))==null?void 0:l.map(_=>{var x,C;let A=(C=(x=p.cloneDeep(_))==null?void 0:x.split("="))==null?void 0:C[0];return A!=null&&A.includes("GroupContents")?Yn(_):Qe(_)}),m=[];(a=p.cloneDeep(h))==null||a.forEach(_=>{var A,x,C,S,g;J!=null&&J.find(d=>{var b,D;return((b=d==null?void 0:d.key)==null?void 0:b.toUpperCase())===((D=_==null?void 0:_.key)==null?void 0:D.toUpperCase())})?m.push({comp:((A=J==null?void 0:J.find(d=>{var b,D;return((b=d==null?void 0:d.key)==null?void 0:b.toUpperCase())===((D=_==null?void 0:_.key)==null?void 0:D.toUpperCase())}))==null?void 0:A.value)??"",name:(x=_==null?void 0:_.value)==null?void 0:x.replace(/[’]|[‘]|[']/g,""),compData:[]}):w!=null&&w.find(d=>{var b,D;return((b=d==null?void 0:d.key)==null?void 0:b.toUpperCase())===((D=_==null?void 0:_.key)==null?void 0:D.toUpperCase())})&&((m==null?void 0:m.length)===0&&(C=_.key)!=null&&C.includes("Menus")&&m.push({comp:"Menu",name:"",compData:[]}),(S=m==null?void 0:m[(m==null?void 0:m.length)-1])!=null&&S.compData&&m[(m==null?void 0:m.length)-1].compData.push({key:(g=w==null?void 0:w.find(d=>{var b,D;return((b=d==null?void 0:d.key)==null?void 0:b.toUpperCase())===((D=_==null?void 0:_.key)==null?void 0:D.toUpperCase())}))==null?void 0:g.value,contents:_==null?void 0:_.value}))}),console.log("newContents",m);let y=(r=p.cloneDeep(m))==null?void 0:r.map(_=>{var A;return _!=null&&_.compData&&(_.compData=(A=_==null?void 0:_.compData)==null?void 0:A.map(x=>{var C,S,g,d,b,D,c,s,i,$,T;if((x==null?void 0:x.key)==="formFlex")x.contents=((S=(C=x.contents)==null?void 0:C.replace(/[’]|[‘]|[']/g,""))==null?void 0:S.toUpperCase())!=="Vertical".toUpperCase();else if((x==null?void 0:x.key)==="groupContents")x.contents=(g=p.cloneDeep(x.contents))==null?void 0:g.map(P=>lt(p.cloneDeep(P)));else if(((b=(d=x.contents)==null?void 0:d.trim())!=null&&b.startsWith("[")||(c=(D=x.contents)==null?void 0:D.trim())!=null&&c.startsWith("【"))&&((i=(s=x.contents)==null?void 0:s.trim())!=null&&i.endsWith("]")||(T=($=x.contents)==null?void 0:$.trim())!=null&&T.endsWith("】")))x.contents=nt(p.cloneDeep(x.contents));else{if(!x.contents)return;x.contents=Xe(p.cloneDeep(x.contents))}return x})),_});return y=(o=p.cloneDeep(y))==null?void 0:o.map(_=>{var A;return(_==null?void 0:_.comp)==="Group"&&(_.compData=(A=_.compData)==null?void 0:A.map(x=>{var S;let C=[];return(S=x.contents)==null||S.forEach(g=>{var d,b,D,c,s,i,$,T,P,v,U,R;if(J!=null&&J.find(O=>{var B,N,E;return((B=O==null?void 0:O.key)==null?void 0:B.toUpperCase())===((E=(N=Object.keys(g))==null?void 0:N[0])==null?void 0:E.toUpperCase())}))C.push({comp:(d=J==null?void 0:J.find(O=>{var B,N,E;return((B=O==null?void 0:O.key)==null?void 0:B.toUpperCase())===((E=(N=Object.keys(g))==null?void 0:N[0])==null?void 0:E.toUpperCase())}))==null?void 0:d.value,name:(D=(b=Object.values(g))==null?void 0:b[0])==null?void 0:D.replace(/[’]|[‘]|[']/g,""),compData:[]});else if(w!=null&&w.find(O=>{var B,N,E;return((B=O==null?void 0:O.key)==null?void 0:B.toUpperCase())===((E=(N=Object.keys(g))==null?void 0:N[0])==null?void 0:E.toUpperCase())})){if((C==null?void 0:C.length)===0)return;(c=C==null?void 0:C[(C==null?void 0:C.length)-1])!=null&&c.compData&&C[(C==null?void 0:C.length)-1].compData.push({key:(s=w==null?void 0:w.find(O=>{var B,N,E;return((B=O==null?void 0:O.key)==null?void 0:B.toUpperCase())===((E=(N=Object.keys(g))==null?void 0:N[0])==null?void 0:E.toUpperCase())}))==null?void 0:s.value,contents:(i=Object.values(g))==null?void 0:i[0]})}else if((T=($=Object.keys(g))==null?void 0:$[0])!=null&&T.includes("$")){const O=(v=(P=Object.keys(p.cloneDeep(g)))==null?void 0:P[0])==null?void 0:v.split("$");C[(C==null?void 0:C.length)-1].compData.push({key:(U=w==null?void 0:w.find(B=>{var N,E;return((N=B==null?void 0:B.key)==null?void 0:N.toUpperCase())===((E=O==null?void 0:O[0])==null?void 0:E.toUpperCase())}))==null?void 0:U.value,contents:(R=Object.values(g))==null?void 0:R[0],selectLabel:O==null?void 0:O[1]})}return g}),x.contents=C,x})),_}),y}catch{return!1}},tt=e=>Ye(e),at=e=>!!Ye(e),rt=je.useModelComp(ce.pinia),{itemData:ct}=ge.storeToRefs(rt),ot=ge.useMenuState(ce.pinia),{systemKey:pt,activeMenuPath:ut}=ge.storeToRefs(ot),ee=f.ref(0),st=e=>e.reduce((t,l)=>{var r,o;const a=Object.values(t);return(((r=Object.keys(t))==null?void 0:r.length)===0||a[a.length-1].length>=(l==null?void 0:l.width))&&(t[ee.value]=[],ee.value++),t[ee.value-1].push(l),((o=Object.keys(t))==null?void 0:o.length)===(l==null?void 0:l.width)&&(t[ee.value]=[],ee.value++),t},{});exports.arrayToNumberArray=st;exports.equalArrays=xn;exports.expandContentStringToJson=Qn;exports.expandNewStringToJson=_n;exports.expandStringToJson=tt;exports.getComponent=Le;exports.isExpandStringToJson=at;exports.slotContent=pn;
|