ss-component-new 1.2.68 → 1.2.70
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/{MTLLoader-Dff_B7xF.js → MTLLoader-BjmWyviD.js} +1 -1
- package/dist/{MTLLoader-DTpBm9Vk.cjs → MTLLoader-DBBidgmx.cjs} +1 -1
- package/dist/{OrbitControls-DXXNOXGl.js → OrbitControls-DXmNlVYH.js} +1 -1
- package/dist/{OrbitControls-DFa4s5a8.cjs → OrbitControls-DxV_6hpG.cjs} +1 -1
- package/dist/{URDFLoader-C6xxlaU3.js → URDFLoader-CcBxQ1c0.js} +2 -2
- package/dist/{URDFLoader-DbwRdSS4.cjs → URDFLoader-Cco_Lcwb.cjs} +1 -1
- package/dist/{animationData-BvlM2zDW.cjs → animationData-2jq1YxE6.cjs} +1 -1
- package/dist/{animationData-CXHnaV3S.js → animationData-Uoa72jZ_.js} +1 -1
- package/dist/{array-BZPjwBCt.cjs → array-CYRaUJ1t.cjs} +1 -1
- package/dist/{array-DDwPiu09.js → array-JcPpBayM.js} +1 -1
- package/dist/{iconfont-vRzTGZ8l.cjs → iconfont-DUxgt1se.cjs} +1 -1
- package/dist/{iconfont-Dyf-cOh7.js → iconfont-j0Nysio3.js} +2 -2
- package/dist/{index-DT4pWRUl.cjs → index-3PJxn2WQ.cjs} +1 -1
- package/dist/{index-CFilN9vs.cjs → index-BB7O7Rte.cjs} +1 -1
- package/dist/{index-V1_f5BGG.js → index-BCteAWvZ.js} +1 -1
- package/dist/{index-Bmo6kZuf.js → index-BONDASGh.js} +1 -1
- package/dist/{index-nbIqq1fG.js → index-BTZ3Pq6e.js} +1 -1
- package/dist/{index-BNKv0_As.js → index-BXsIGK-B.js} +1 -1
- package/dist/{index-NdG_9SdU.cjs → index-BaEWbMSn.cjs} +1 -1
- package/dist/{index-30skmX_7.cjs → index-BaOJkZDg.cjs} +1 -1
- package/dist/{index-Da45zhS2.cjs → index-BaWiLzpY.cjs} +1 -1
- package/dist/{index-PNxWoDJ4.cjs → index-BkUBCWJp.cjs} +1 -1
- package/dist/{index-BkotnzPJ.cjs → index-BmUcSRI3.cjs} +1 -1
- package/dist/{index-Q1fpICM1.js → index-Bont3QS5.js} +1 -1
- package/dist/{index-mK9UuOTB.js → index-Bpswj9pH.js} +7 -7
- package/dist/{index-Ctpe0D31.cjs → index-Bs5Qn2CE.cjs} +1 -1
- package/dist/{index-D9sqt63X.cjs → index-BwXUkfCd.cjs} +1 -1
- package/dist/{index-PwgUqhIl.cjs → index-CQbo2kEK.cjs} +1 -1
- package/dist/{index-B3HZp29h.cjs → index-CiTW8KaP.cjs} +1 -1
- package/dist/{index-Bd2zyeMk.cjs → index-CjsgHn_-.cjs} +1 -1
- package/dist/{index-DkMN2apf.cjs → index-CoG5ETzW.cjs} +1 -1
- package/dist/{index-Bos-wgC4.js → index-CqV07DKI.js} +5 -5
- package/dist/{index-BM8Y4Bo1.js → index-Cqafg-Dj.js} +1 -1
- package/dist/{index-C-asVqwd.js → index-CunKHiRY.js} +3 -3
- package/dist/{index-Rz_Q-zx_.cjs → index-Curm849s.cjs} +1 -1
- package/dist/{index-BNN9n1vx.js → index-CvyYBi73.js} +2 -2
- package/dist/{index-cg-oDvzQ.js → index-D3M8fQ4y.js} +7 -7
- package/dist/{index-Cwval6pk.js → index-D3sqTSa-.js} +3 -3
- package/dist/{index-DJuSvVT5.js → index-DEg3SYFk.js} +1 -1
- package/dist/{index-iuOCGvB5.js → index-DHxcjKwh.js} +1 -1
- package/dist/{index-DEQnYcr7.js → index-DOq4yWxs.js} +1 -1
- package/dist/{index-Ce_UgscV.cjs → index-DUJAQZQ_.cjs} +1 -1
- package/dist/{index-ryaiVglV.js → index-DfQLRst9.js} +16 -16
- package/dist/{index-ONdzK05n.cjs → index-Dh_4l8VQ.cjs} +1 -1
- package/dist/{index-95hwevJ2.cjs → index-DrFpWuel.cjs} +1 -1
- package/dist/{index-dLTD3Pse.js → index-DtJNBd93.js} +4 -4
- package/dist/{index-ZP3RSjjk.cjs → index-HjQKPdcM.cjs} +1 -1
- package/dist/{index-CluIo8C8.cjs → index-IE2Uria8.cjs} +1 -1
- package/dist/{index-BeYemfkN.cjs → index-JPzhvq_L.cjs} +1 -1
- package/dist/{index-C5w7m7fc.js → index-SO9EFGi9.js} +4 -4
- package/dist/{index-MeBA7ABA.cjs → index-_yRWJD4L.cjs} +1 -1
- package/dist/{index-4PATTKX4.js → index-duy78Se4.js} +1 -1
- package/dist/{index-B-GNomtx.cjs → index-fmOKsPMg.cjs} +1 -1
- package/dist/{index-0YtgDe3c.js → index-rawFAPBx.js} +1 -1
- package/dist/{index-CA2zWfSZ.js → index-wa-KcD0x.js} +4 -4
- package/dist/{index-DOkSOzJ8.js → index-wyImPEww.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-joxO_ES-.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Dkmm1LDr.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-B6Eq8Gdj.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DobE6Kxy.js} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-XWIIvD_H.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BXBIXUC2.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CF41uWE3.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DtPGaddg.js} +49 -46
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DcZnoTRU.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-BOLDF7ZW.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-BJBivlOS.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-cOKt3tH5.js} +5 -5
- package/dist/{index.vue_vue_type_style_index_1_lang-DlhZrx-3.js → index.vue_vue_type_style_index_1_lang-CNhpv89t.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_1_lang-DZgpl5eS.cjs → index.vue_vue_type_style_index_1_lang-anh9YB-q.cjs} +1 -1
- package/dist/{main-aYEH8lkq.cjs → main-CByXRt0H.cjs} +1 -1
- package/dist/{main-BGHIc-EP.js → main-CdCAHd8p.js} +3 -3
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-Bg82tY-8.cjs → threeModel-BFg5IKxj.cjs} +1 -1
- package/dist/{threeModel-qRZ33jgS.js → threeModel-CGnw4nlf.js} +4 -4
- package/dist/{threePreview-DeaWpRNi.js → threePreview-BRp-vNQ4.js} +3 -3
- package/dist/{threePreview-DY5PyzED.cjs → threePreview-DK3UPu_o.cjs} +1 -1
- package/dist/{threeSceneView-BumErHEB.cjs → threeSceneView-BmXUoJXD.cjs} +1 -1
- package/dist/{threeSceneView-COBvaJuf.js → threeSceneView-_zm5H9TM.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-KwqCVsYg.js → threeSceneViewForCPMPIP-6xf7Qyr7.js} +7 -7
- package/dist/{threeSceneViewForCPMPIP-BTfpUkh5.cjs → threeSceneViewForCPMPIP-BR86xSRr.cjs} +1 -1
- package/dist/{threeTrackPathView-DvYoRpQU.cjs → threeTrackPathView-CvXUecFw.cjs} +1 -1
- package/dist/{threeTrackPathView-DZBTew28.js → threeTrackPathView-DpderxqO.js} +3 -3
- package/dist/{threeViewerHost-CQxeUBDo.js → threeViewerHost-BQ81ASnp.js} +2 -2
- package/dist/{threeViewerHost-DQGYfKK5.cjs → threeViewerHost-CwSjbBmp.cjs} +1 -1
- package/dist/{urdfTree-KNt7kr7G.cjs → urdfTree-CCkUOAkZ.cjs} +1 -1
- package/dist/{urdfTree-CxP953hj.js → urdfTree-Vh6Oy_BA.js} +1 -1
- package/dist/{workpieceTreePanel-B_HJg1Z_.cjs → workpieceTreePanel-313k4lC2.cjs} +1 -1
- package/dist/{workpieceTreePanel-BRbucako.js → workpieceTreePanel-Ox8IiCtW.js} +4 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Y2e=Object.defineProperty;var K2e=(r,e,t)=>e in r?Y2e(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var jr=(r,e,t)=>K2e(r,typeof e!="symbol"?e+"":e,t);const kt=require("./index-C8qRkCgn.cjs"),Th=require("./index-CxUHJyzF.cjs"),wae=require("vue");function _ae(r,e){return Th.setToString(Th.overRest(r,e,Th.identity),r+"")}function Z2e(r,e,t){if(!kt.isObject(t))return!1;var n=typeof e;return(n=="number"?kt.isArrayLike(t)&&kt.isIndex(e,t.length):n=="string"&&e in t)?kt.eq(t[e],r):!1}function J2e(r){return _ae(function(e,t){var n=-1,i=t.length,a=i>1?t[i-1]:void 0,s=i>2?t[2]:void 0;for(a=r.length>3&&typeof a=="function"?(i--,a):void 0,s&&Z2e(t[0],t[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var o=t[n];o&&r(e,o,n,a)}return e})}var Q2e="[object Object]",exe=Function.prototype,txe=Object.prototype,Sae=exe.toString,rxe=txe.hasOwnProperty,nxe=Sae.call(Object);function Tae(r){if(!kt.isObjectLike(r)||kt.baseGetTag(r)!=Q2e)return!1;var e=kt.getPrototype(r);if(e===null)return!0;var t=rxe.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Sae.call(t)==nxe}function ixe(r){return function(e,t,n){for(var i=-1,a=Object(e),s=n(e),o=s.length;o--;){var l=s[++i];if(t(a[l],l,a)===!1)break}return e}}var Eae=ixe();function t9(r,e,t){(t!==void 0&&!kt.eq(r[e],t)||t===void 0&&!(e in r))&&kt.baseAssignValue(r,e,t)}function Aae(r){return kt.isObjectLike(r)&&kt.isArrayLike(r)}function r9(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function axe(r){return kt.copyObject(r,kt.keysIn(r))}function sxe(r,e,t,n,i,a,s){var o=r9(r,t),l=r9(e,t),c=s.get(l);if(c){t9(r,t,c);return}var u=a?a(o,l,t+"",r,e,s):void 0,f=u===void 0;if(f){var h=kt.isArray(l),d=!h&&kt.isBuffer(l),p=!h&&!d&&kt.isTypedArray(l);u=l,h||d||p?kt.isArray(o)?u=o:Aae(o)?u=kt.copyArray(o):d?(f=!1,u=kt.cloneBuffer(l,!0)):p?(f=!1,u=kt.cloneTypedArray(l,!0)):u=[]:Tae(l)||kt.isArguments(l)?(u=o,kt.isArguments(o)?u=axe(o):(!kt.isObject(o)||kt.isFunction$1(o))&&(u=kt.initCloneObject(l))):f=!1}f&&(s.set(l,u),i(u,l,n,a,s),s.delete(l)),t9(r,t,u)}function kae(r,e,t,n,i){r!==e&&Eae(e,function(a,s){if(i||(i=new kt.Stack),kt.isObject(a))sxe(r,e,s,t,kae,n,i);else{var o=n?n(r9(r,s),a,s+"",r,e,i):void 0;o===void 0&&(o=a),t9(r,s,o)}},kt.keysIn)}var X0=J2e(function(r,e,t){kae(r,e,t)}),jl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _b(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function oxe(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var WM={exports:{}},lxe=WM.exports,gj;function cxe(){return gj||(gj=1,function(r,e){(function(t,n){r.exports=n()})(lxe,function(){var t=1e3,n=6e4,i=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",u="week",f="month",h="quarter",d="year",p="date",v="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var A=["th","st","nd","rd"],C=I%100;return"["+I+(A[(C-20)%10]||A[C]||A[0])+"]"}},b=function(I,A,C){var L=String(I);return!L||L.length>=A?I:""+Array(A+1-L.length).join(C)+I},x={s:b,z:function(I){var A=-I.utcOffset(),C=Math.abs(A),L=Math.floor(C/60),R=C%60;return(A<=0?"+":"-")+b(L,2,"0")+":"+b(R,2,"0")},m:function I(A,C){if(A.date()<C.date())return-I(C,A);var L=12*(C.year()-A.year())+(C.month()-A.month()),R=A.clone().add(L,f),P=C-R<0,V=A.clone().add(L+(P?-1:1),f);return+(-(L+(C-R)/(P?R-V:V-R))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:d,w:u,d:c,D:p,h:l,m:o,s,ms:a,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},w="en",_={};_[w]=m;var S="$isDayjsObject",T=function(I){return I instanceof N||!(!I||!I[S])},E=function I(A,C,L){var R;if(!A)return w;if(typeof A=="string"){var P=A.toLowerCase();_[P]&&(R=P),C&&(_[P]=C,R=P);var V=A.split("-");if(!R&&V.length>1)return I(V[0])}else{var F=A.name;_[F]=A,R=F}return!L&&R&&(w=R),R||!L&&w},M=function(I,A){if(T(I))return I.clone();var C=typeof A=="object"?A:{};return C.date=I,C.args=arguments,new N(C)},D=x;D.l=E,D.i=T,D.w=function(I,A){return M(I,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var N=function(){function I(C){this.$L=E(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[S]=!0}var A=I.prototype;return A.parse=function(C){this.$d=function(L){var R=L.date,P=L.utc;if(R===null)return new Date(NaN);if(D.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var V=R.match(g);if(V){var F=V[2]-1||0,U=(V[7]||"0").substring(0,3);return P?new Date(Date.UTC(V[1],F,V[3]||1,V[4]||0,V[5]||0,V[6]||0,U)):new Date(V[1],F,V[3]||1,V[4]||0,V[5]||0,V[6]||0,U)}}return new Date(R)}(C),this.init()},A.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},A.$utils=function(){return D},A.isValid=function(){return this.$d.toString()!==v},A.isSame=function(C,L){var R=M(C);return this.startOf(L)<=R&&R<=this.endOf(L)},A.isAfter=function(C,L){return M(C)<this.startOf(L)},A.isBefore=function(C,L){return this.endOf(L)<M(C)},A.$g=function(C,L,R){return D.u(C)?this[L]:this.set(R,C)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(C,L){var R=this,P=!!D.u(L)||L,V=D.p(C),F=function(de,ee){var J=D.w(R.$u?Date.UTC(R.$y,ee,de):new Date(R.$y,ee,de),R);return P?J:J.endOf(c)},U=function(de,ee){return D.w(R.toDate()[de].apply(R.toDate("s"),(P?[0,0,0,0]:[23,59,59,999]).slice(ee)),R)},B=this.$W,W=this.$M,q=this.$D,K="set"+(this.$u?"UTC":"");switch(V){case d:return P?F(1,0):F(31,11);case f:return P?F(1,W):F(0,W+1);case u:var he=this.$locale().weekStart||0,ie=(B<he?B+7:B)-he;return F(P?q-ie:q+(6-ie),W);case c:case p:return U(K+"Hours",0);case l:return U(K+"Minutes",1);case o:return U(K+"Seconds",2);case s:return U(K+"Milliseconds",3);default:return this.clone()}},A.endOf=function(C){return this.startOf(C,!1)},A.$set=function(C,L){var R,P=D.p(C),V="set"+(this.$u?"UTC":""),F=(R={},R[c]=V+"Date",R[p]=V+"Date",R[f]=V+"Month",R[d]=V+"FullYear",R[l]=V+"Hours",R[o]=V+"Minutes",R[s]=V+"Seconds",R[a]=V+"Milliseconds",R)[P],U=P===c?this.$D+(L-this.$W):L;if(P===f||P===d){var B=this.clone().set(p,1);B.$d[F](U),B.init(),this.$d=B.set(p,Math.min(this.$D,B.daysInMonth())).$d}else F&&this.$d[F](U);return this.init(),this},A.set=function(C,L){return this.clone().$set(C,L)},A.get=function(C){return this[D.p(C)]()},A.add=function(C,L){var R,P=this;C=Number(C);var V=D.p(L),F=function(W){var q=M(P);return D.w(q.date(q.date()+Math.round(W*C)),P)};if(V===f)return this.set(f,this.$M+C);if(V===d)return this.set(d,this.$y+C);if(V===c)return F(1);if(V===u)return F(7);var U=(R={},R[o]=n,R[l]=i,R[s]=t,R)[V]||1,B=this.$d.getTime()+C*U;return D.w(B,this)},A.subtract=function(C,L){return this.add(-1*C,L)},A.format=function(C){var L=this,R=this.$locale();if(!this.isValid())return R.invalidDate||v;var P=C||"YYYY-MM-DDTHH:mm:ssZ",V=D.z(this),F=this.$H,U=this.$m,B=this.$M,W=R.weekdays,q=R.months,K=R.meridiem,he=function(ee,J,Z,le){return ee&&(ee[J]||ee(L,P))||Z[J].slice(0,le)},ie=function(ee){return D.s(F%12||12,ee,"0")},de=K||function(ee,J,Z){var le=ee<12?"AM":"PM";return Z?le.toLowerCase():le};return P.replace(y,function(ee,J){return J||function(Z){switch(Z){case"YY":return String(L.$y).slice(-2);case"YYYY":return D.s(L.$y,4,"0");case"M":return B+1;case"MM":return D.s(B+1,2,"0");case"MMM":return he(R.monthsShort,B,q,3);case"MMMM":return he(q,B);case"D":return L.$D;case"DD":return D.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return he(R.weekdaysMin,L.$W,W,2);case"ddd":return he(R.weekdaysShort,L.$W,W,3);case"dddd":return W[L.$W];case"H":return String(F);case"HH":return D.s(F,2,"0");case"h":return ie(1);case"hh":return ie(2);case"a":return de(F,U,!0);case"A":return de(F,U,!1);case"m":return String(U);case"mm":return D.s(U,2,"0");case"s":return String(L.$s);case"ss":return D.s(L.$s,2,"0");case"SSS":return D.s(L.$ms,3,"0");case"Z":return V}return null}(ee)||V.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(C,L,R){var P,V=this,F=D.p(L),U=M(C),B=(U.utcOffset()-this.utcOffset())*n,W=this-U,q=function(){return D.m(V,U)};switch(F){case d:P=q()/12;break;case f:P=q();break;case h:P=q()/3;break;case u:P=(W-B)/6048e5;break;case c:P=(W-B)/864e5;break;case l:P=W/i;break;case o:P=W/n;break;case s:P=W/t;break;default:P=W}return R?P:D.a(P)},A.daysInMonth=function(){return this.endOf(f).$D},A.$locale=function(){return _[this.$L]},A.locale=function(C,L){if(!C)return this.$L;var R=this.clone(),P=E(C,L,!0);return P&&(R.$L=P),R},A.clone=function(){return D.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},I}(),k=N.prototype;return M.prototype=k,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",f],["$y",d],["$D",p]].forEach(function(I){k[I[1]]=function(A){return this.$g(A,I[0],I[1])}}),M.extend=function(I,A){return I.$i||(I(A,N,M),I.$i=!0),M},M.locale=E,M.isDayjs=T,M.unix=function(I){return M(1e3*I)},M.en=_[w],M.Ls=_,M.p={},M})}(WM)),WM.exports}var uxe=cxe();const fxe=_b(uxe),hxe=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],dxe=[{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"}],pxe=r=>{var a;let e=r;const t=[];let n="",i=0;for(const s of e)i++,s.includes("(")||n.includes("(")||s.includes(")")||n.includes(")")||s.includes("&")||n.includes("&")||s.includes("|")||n.includes("|")?(n+=s.trim(),(((a=kt.cloneDeep(n))==null?void 0:a[(n==null?void 0:n.length)-1])===")"||(e==null?void 0:e[i])==="|"||(e==null?void 0:e[i])==="&")&&!(n!=null&&n.includes("&"))&&!(n!=null&&n.includes("|"))?(t.push(n.replace(/\/\*[\s\S]*?\*\//g,"")),n=""):n==="&&"||n==="||"?(t.push(n.replace(/\/\*[\s\S]*?\*\//g,"")),n=""):i===(r==null?void 0:r.length)&&(t.push(n.replace(/\/\*[\s\S]*?\*\//g,"")),n="")):n+=s.trim();return(n==null?void 0:n.length)!==0&&t.push(n.replace(/\/\*[\s\S]*?\*\//g,"")),t},vxe=r=>{var a;let e=r==null?void 0:r.replaceAll("=","#"),t=(a=pxe(e))==null?void 0:a.map(s=>(s!=null&&s.includes("(")&&(s="("+(s==null?void 0:s.replaceAll("(",""))),s)),n=[],i={};return t==null||t.forEach((s,o)=>{var l,c,u,f,h;if(!(s!=null&&s.includes("&&"))&&!(s!=null&&s.includes("||"))){let d=s;(s==null?void 0:s[(s==null?void 0:s.length)-1])===")"&&(d=s.slice(0,(s==null?void 0:s.length)-1)),(d==null?void 0:d[0])==="("&&(d=d.slice(1,d==null?void 0:d.length)),d!=null&&d.includes("[")&&(d=(f=(l=d==null?void 0:d.slice(1,d==null?void 0:d.length))==null?void 0:l.split(":"))==null?void 0:f[((u=(c=d==null?void 0:d.slice(1,d==null?void 0:d.length))==null?void 0:c.split(":"))==null?void 0:u.length)-1]),d=d==null?void 0:d.split("#");let p=d[0].replaceAll("'","").replaceAll("]",""),v=(h=d[1])==null?void 0:h.replaceAll("'","");(p==null?void 0:p[(p==null?void 0:p.length)-1])!=="!"?i[p]=v:i[p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1)]="!"+v}else s==="&&"||s==="||"&&(n.push(i),i={});o===t.length-1&&(n.push(i),i={})}),n},OD=kt.defineStore("modelTableComp",{state:()=>({tableIndex:0,tableShowThree:"",multipleTableConst:"."}),actions:{setTableIndex(r){this.tableIndex=r},setTableShowThree(r){this.tableShowThree=r}}}),mxe=OD(kt.pinia),{multipleTableConst:ic}=kt.storeToRefs(mxe),Nu=r=>{let e=[];function t(i,a=""){Array.isArray(i)&&(i==null||i.forEach(s=>{Array.isArray(s)||(s=[s]),s==null||s.forEach(o=>{var l,c,u,f,h,d,p,v,g,y,m,b;if(!(o!=null&&o.children)||o.children.length===0)o.prop=a===""?o==null?void 0:o.prop:a+ic.value+((f=(l=o==null?void 0:o.prop)==null?void 0:l.split(ic.value))==null?void 0:f[((u=(c=o==null?void 0:o.prop)==null?void 0:c.split(ic.value))==null?void 0:u.length)-1]),e.push(o.prop);else{let x=a===""?a+((v=(h=o==null?void 0:o.prop)==null?void 0:h.split(ic.value))==null?void 0:v[((p=(d=o==null?void 0:o.prop)==null?void 0:d.split(ic.value))==null?void 0:p.length)-1]):a+ic.value+((b=(g=o==null?void 0:o.prop)==null?void 0:g.split(ic.value))==null?void 0:b[((m=(y=o==null?void 0:o.prop)==null?void 0:y.split(ic.value))==null?void 0:m.length)-1]);n(o.children,x)}})}))}function n(i,a=""){i==null||i.forEach(s=>{var o,l,c,u,f,h,d,p,v,g,y,m;if(!(s!=null&&s.children)||s.children.length===0)s.prop=a===""?s==null?void 0:s.prop:a+ic.value+((u=(o=s==null?void 0:s.prop)==null?void 0:o.split(ic.value))==null?void 0:u[((c=(l=s==null?void 0:s.prop)==null?void 0:l.split(ic.value))==null?void 0:c.length)-1]),e.push(s.prop);else{let b=a===""?a+((p=(f=s==null?void 0:s.prop)==null?void 0:f.split(ic.value))==null?void 0:p[((d=(h=s==null?void 0:s.prop)==null?void 0:h.split(ic.value))==null?void 0:d.length)-1]):a+ic.value+((m=(v=s==null?void 0:s.prop)==null?void 0:v.split(ic.value))==null?void 0:m[((y=(g=s==null?void 0:s.prop)==null?void 0:g.split(ic.value))==null?void 0:y.length)-1]);n(s.children,b)}})}return t(r),e},gxe=(r,e,t)=>{var i;let n=(i=kt.cloneDeep(r))==null?void 0:i.map(a=>(a=a.filter(s=>!(s!=null&&s.id)),a));return n=n==null?void 0:n.map(a=>{var s;return a=(s=a.map((o,l)=>{let c={};if(t!=null&&t.find(u=>u===e[l]))return c[e[l]]=o,c}))==null?void 0:s.filter(o=>o),a}),n},yxe=(r,e)=>{var s,o;const t=kt.cloneDeep(r),n=(s=t==null?void 0:t.find(l=>(l==null?void 0:l.key)==="header"))==null?void 0:s.contents,i=(o=t==null?void 0:t.find(l=>(l==null?void 0:l.key)==="tableContents"))==null?void 0:o.contents;return gxe(i,Nu(n).slice(0,Nu(n).length-1),e)},Cae=(r,e)=>{const t=e;return r==null?void 0:r.map(n=>{var a;let i=n;if(!Array.isArray(i)){let s=[];for(let o in i)s.push({key:o,value:i==null?void 0:i[o]});return s}return n=(a=i==null?void 0:i.map((s,o)=>{var l,c;return s!=null&&s.id?{key:"id",value:s==null?void 0:s.id}:t!=null&&t.find(u=>u==null?void 0:u.id)||i!=null&&i.find(u=>u==null?void 0:u.id)?{key:(l=t[o-1])==null?void 0:l.label,value:s}:{key:(c=t[o])==null?void 0:c.label,value:s}}))==null?void 0:a.filter(s=>s.key!=="操作"),n})},bxe=async r=>{var t,n,i,a;let e="";if((n=(t=kt.cloneDeep(r))==null?void 0:t.split("/"))==null||n.forEach((s,o)=>{var l,c;o!==((c=(l=kt.cloneDeep(r))==null?void 0:l.split("/"))==null?void 0:c.length)-1&&(e=e===""?e+s:e+"/"+s)}),e!==""){let s="";const o=await wh(e,sessionStorage.getItem("systemKey"),"");(a=(i=o==null?void 0:o[0])==null?void 0:i.compData)==null||a.forEach(l=>{var c;(l==null?void 0:l.key)==="tableContents"&&((c=l==null?void 0:l.contents)==null||c.forEach((u,f)=>{if(f===0){let h=u==null?void 0:u.filter(d=>!(d!=null&&d.id));s=e+"/"+(h==null?void 0:h[0])}}))}),await Oae(s,r)}},FD=r=>{try{return JSON.parse(r),!0}catch{return!1}},yj=(r,e)=>kt.isEqual(r,e),xxe=kt.useLoginState(kt.pinia),{loginUserInfo:r5}=kt.storeToRefs(xxe),hL=[{key:"@Num",value:"onNumSlice",order:1},{key:"@Select",value:"onRandomContents",order:2},{key:"@Condition",value:"onConditionContents",order:3},{key:"@Pace",value:"onPaceContents",order:1}],Mae=r=>{let e=r;if(e!=null&&e.every(t=>Array.isArray(t))){let t=[];const n=i=>{i==null||i.forEach(a=>{var s;a!=null&&a.children&&((s=a==null?void 0:a.children)==null?void 0:s.length)>0?n(a==null?void 0:a.children):t.push(a)})};return n(e==null?void 0:e[0]),t}else return e},wxe=(r,e,t)=>{var a,s,o,l,c;let n=JSON.parse(r),i=(c=(l=(o=(s=t==null?void 0:t.split("["))==null?void 0:s[((a=t==null?void 0:t.split("["))==null?void 0:a.length)-1])==null?void 0:o.split("]"))==null?void 0:l[0])==null?void 0:c.split(",");return e.toUpperCase()==="SYNC"||e.toUpperCase()==="QUOTE"&&(n=n==null?void 0:n.map(u=>(u=u==null?void 0:u.map(f=>{var h;return(f==null?void 0:f.key)==="header"&&(f.contents=(h=f.contents)==null?void 0:h.map(d=>(i!=null&&i.find(p=>p===(d==null?void 0:d.prop))&&(d.disabled=!0),d))),f}),u))),n},Dae=(r,e,t)=>{let n;FD(r)?n=JSON.parse(r):n=r;let i=e;(e==null?void 0:e[0])!=="("&&(i="("+e+")");let a=vxe(i);if((a==null?void 0:a.length)>0){let s=[];a==null||a.forEach(o=>{var c,u,f,h,d;let l={};for(let p in o){let v=kt.cloneDeep(p);v!=null&&v.includes("[")||(o[p].toUpperCase()==="@LOGINUSER"?l[v]=(c=r5.value)!=null&&c.account?(u=r5.value)==null?void 0:u.account:((f=r5.value)==null?void 0:f.姓名)??((h=r5.value)==null?void 0:h.账号):(d=o[p])!=null&&d.includes("[")||(l[v]=o[p]))}s.push(l)}),n=n==null?void 0:n.map(o=>{var c,u;let l=(c=o==null?void 0:o.find(f=>(f==null?void 0:f.key)==="header"))==null?void 0:c.contents;return l=(u=Mae(l))==null?void 0:u.filter(f=>(f==null?void 0:f.label)!=="操作"),o=o==null?void 0:o.map(f=>{if((f==null?void 0:f.key)==="tableContents"){let d=Cae(f==null?void 0:f.contents,l);s==null||s.forEach(p=>{var v;for(let g in p)((v=p[g])==null?void 0:v[0])!=="!"?d=d==null?void 0:d.filter(y=>{var m;return((m=y==null?void 0:y.find(b=>(b==null?void 0:b.key)===g))==null?void 0:m.value)===p[g]}):d=d==null?void 0:d.filter(y=>{var m;return((m=y==null?void 0:y.find(b=>(b==null?void 0:b.key)===g))==null?void 0:m.value)!==p[g]})}),(d==null?void 0:d.length)===0?f.contents=[]:f.contents=d==null?void 0:d.map(p=>{let v={};return p==null||p.forEach(g=>{v[g==null?void 0:g.key]=g==null?void 0:g.value}),v})}return f}),o})}return n},_xe=(r,e,t)=>{let n=JSON.parse(r);return e.toUpperCase()==="ALL"||(n=n==null?void 0:n.map(i=>(i=i==null?void 0:i.map(a=>{var s;return(a==null?void 0:a.key)==="tableContents"&&(a.contents=(s=a.contents)==null?void 0:s.slice(0,parseInt(e))),a}),i))),n},Sxe=r=>{for(let e=r.length-1;e>0;e--){const t=Math.floor(Math.random()*(e+1));[r[e],r[t]]=[r[t],r[e]]}return r},Txe=(r,e,t)=>{if(e==="Sequence")return JSON.parse(r);{let n=JSON.parse(r);return n=n==null?void 0:n.map(i=>(i=i==null?void 0:i.map(a=>((a==null?void 0:a.key)==="tableContents"&&(a.contents=Sxe(a.contents)),a)),i)),n}},Sw=(r,e)=>Array.isArray(r)?r==null?void 0:r.map(n=>{var i,a,s,o,l,c,u;if(Array.isArray(n)?n=n:n=[n],(i=n==null?void 0:n.filter(f=>!(f!=null&&f.id)||typeof(f==null?void 0:f.id)=="string"))!=null&&i.every(f=>typeof f!="object"||f===null))return n;if((a=n==null?void 0:n.filter(f=>!(f!=null&&f.id)||typeof(f==null?void 0:f.id)=="string"))!=null&&a.some(f=>Array.isArray(f)))return n;{let f=[],h=(n==null?void 0:n.find(d=>(d==null?void 0:d.id)&&typeof(d==null?void 0:d.id)=="number"))??{id:(s=n==null?void 0:n[0])==null?void 0:s.id};if(f.push(h),Array.isArray(e==null?void 0:e[0])){const d=(o=n==null?void 0:n.filter(p=>!(p!=null&&p.id)||typeof(p==null?void 0:p.id)=="string"))==null?void 0:o[0];(l=Xw(kt.cloneDeep(e==null?void 0:e[0])))==null||l.forEach(p=>{f.push(d==null?void 0:d[(p==null?void 0:p.prop)??(p==null?void 0:p.label)??p])})}else{const d=(c=n==null?void 0:n.filter(p=>!(p!=null&&p.id)||typeof(p==null?void 0:p.id)=="string"))==null?void 0:c[0];(u=Xw(kt.cloneDeep(e)))==null||u.forEach(p=>{f.push(d==null?void 0:d[(p==null?void 0:p.prop)??(p==null?void 0:p.label)??p])})}return f}}):void 0,Exe=r=>{var i,a,s,o;const e=r;let t=[];e.compData=(i=e.compData)==null?void 0:i.filter(l=>(l==null?void 0:l.key)!=="tableContents"&&(l==null?void 0:l.key)!=="tableIndex");const n=(s=(a=kt.cloneDeep(e.compData))==null?void 0:a.find(l=>(l==null?void 0:l.key)==="tableIndexColumn"))==null?void 0:s.contents;return(o=kt.cloneDeep(e.compData))==null||o.forEach(l=>{if((l==null?void 0:l.key)!=="tableIndexColumn"&&(l==null?void 0:l.key)!=="header")t.push(l);else if((l==null?void 0:l.key)==="header"){let c=l.contents;n&&(c!=null&&c.every(u=>Array.isArray(u))?c==null||c[0].unshift({label:n}):c.unshift({label:n})),t.push({key:"header",contents:c})}}),e.compData=t,e},Axe=r=>{var a,s,o,l,c;const e=(a=r.compData)==null?void 0:a.filter(u=>(u==null?void 0:u.key)==="tableContents"||(u==null?void 0:u.key)==="tableIndex"),t=(o=(s=e==null?void 0:e.find(u=>(u==null?void 0:u.key)==="tableIndex"))==null?void 0:s.contents)==null?void 0:o.map(u=>u.label),n=(l=e==null?void 0:e.find(u=>(u==null?void 0:u.key)==="tableContents"))==null?void 0:l.contents;let i=[];return(t==null?void 0:t.length)>0&&(n!=null&&n.every(u=>Array.isArray(u)))?i=t==null?void 0:t.map((u,f)=>n[f]?[u,...n[f]]:[u]):Array.isArray(n==null?void 0:n[0])&&((c=n==null?void 0:n[0])!=null&&c.every(u=>Array.isArray(u)))?i=n==null?void 0:n[0]:Array.isArray(n==null?void 0:n[0])?i=n:i.push(n),i},kxe=r=>{const e=[];function t(n){!n||n.length===0||(e.push(n==null?void 0:n.map(i=>({label:i.label}))),n==null||n.forEach(i=>{i!=null&&i.children&&(i==null?void 0:i.children.length)>0&&t(i==null?void 0:i.children)}))}return t(r),e},Cxe=r=>{const e=[];function t(n,i=[]){!n||n.length===0||(e.push({key:i==null?void 0:i.filter(a=>!Array.isArray(a)),value:n}),n==null||n.forEach(a=>{a!=null&&a.some(s=>Array.isArray(s))&&t(a.find(s=>Array.isArray(s)),a)}))}return t(r),e},Mxe=r=>{const e=[];function t(n){!n||n.length===0||(e.push(n==null?void 0:n.map(i=>i==null?void 0:i.filter(a=>!Array.isArray(a)))),n==null||n.forEach(i=>{i!=null&&i.some(a=>Array.isArray(a))&&t(i.find(a=>Array.isArray(a)))}))}return t(r),e},Dxe=r=>{const e=[];function t(n){var i;!n||n.length===0||(n!=null&&n.every(a=>!Array.isArray(a))?e.push(n):(e.push((i=n==null?void 0:n.map(a=>a==null?void 0:a.filter(s=>!Array.isArray(s))))==null?void 0:i[0]),n==null||n.forEach(a=>{a!=null&&a.some(s=>Array.isArray(s))&&t(a.find(s=>Array.isArray(s)))})))}return t(r),e},Rxe=(r,e)=>{let t;function n(i,a,s=1){var l;if(!i||i.length===0)return;const o=(l=kt.cloneDeep(a))==null?void 0:l.map(c=>c==null?void 0:c.filter(u=>!Array.isArray(u)));return o!=null&&o.find(c=>yj(c,i==null?void 0:i.key))?(a==null||a.forEach(c=>{!n(i,c.find(f=>Array.isArray(f)))&&yj(c.filter(f=>!Array.isArray(f)),i==null?void 0:i.key)&&(t={type:s,contents:c.filter(f=>!Array.isArray(f))})}),!0):!1}return n(r,e,0),t},bj=(r,e)=>{function t(n,i){return!n||n.length===0||n==null?void 0:n.map((s,o)=>{var c,u;let l=s;return l.unshift((c=i==null?void 0:i[o])==null?void 0:c.label),l.some(f=>Array.isArray(f))&&(l[l.length-1]=t(l.find(f=>Array.isArray(f)),(u=i==null?void 0:i[o])==null?void 0:u.children)),l})}return t(r,e)},Ixe=r=>{var t,n,i,a,s,o,l,c,u,f,h,d,p,v,g,y,m,b,x,w,_,S,T,E,M;const e=r;if((r==null?void 0:r.comp)==="Table"){if((i=(n=(t=r.compData)==null?void 0:t.find(D=>(D==null?void 0:D.key)==="tableIndex"))==null?void 0:n.contents)!=null&&i.every(D=>!(D!=null&&D.children))||!((a=r.compData)!=null&&a.find(D=>(D==null?void 0:D.key)==="tableIndex")))return((l=(o=(s=e.compData)==null?void 0:s.find(D=>(D==null?void 0:D.key)==="tableContents"))==null?void 0:o.contents)==null?void 0:l.length)===1&&((h=(f=(u=(c=e.compData)==null?void 0:c.find(D=>(D==null?void 0:D.key)==="tableContents"))==null?void 0:u.contents)==null?void 0:f[0])!=null&&h.every(D=>Array.isArray(D)))?(e.compData=(d=e.compData)==null?void 0:d.map(D=>{var N;return(D==null?void 0:D.key)==="tableContents"&&(D.contents=(N=D.contents)==null?void 0:N[0]),D}),[e]):[e];{let D=[];const N=e.compData,k=(p=kt.cloneDeep(N))==null?void 0:p.find(F=>(F==null?void 0:F.key)==="tableIndexColumn"),I=(v=kt.cloneDeep(N))==null?void 0:v.find(F=>(F==null?void 0:F.key)==="extraButton"),A=(g=kt.cloneDeep(N))==null?void 0:g.find(F=>(F==null?void 0:F.key)==="rowButton"),C=Dxe((m=(y=kt.cloneDeep(N))==null?void 0:y.find(F=>(F==null?void 0:F.key)==="header"))==null?void 0:m.contents),L=(b=kt.cloneDeep(N))==null?void 0:b.find(F=>(F==null?void 0:F.key)==="tableIndex"),R=Mxe((w=(x=kt.cloneDeep(N))==null?void 0:x.find(F=>(F==null?void 0:F.key)==="tableContents"))==null?void 0:w.contents),P=bj((S=(_=kt.cloneDeep(N))==null?void 0:_.find(F=>(F==null?void 0:F.key)==="tableContents"))==null?void 0:S.contents,L==null?void 0:L.contents),V=Cxe(bj((E=(T=kt.cloneDeep(N))==null?void 0:T.find(F=>(F==null?void 0:F.key)==="tableContents"))==null?void 0:E.contents,L==null?void 0:L.contents));if(L)return(M=kxe(L.contents))==null||M.forEach((F,U)=>{var W;let B=[];B.push({key:"tableIndex",contents:F}),B.push(k),B.push(I),B.push(A),B.push({key:"tableContents",contents:R[U]}),B.push({key:"header",contents:C!=null&&C[U]?[C==null?void 0:C[U]]:[C==null?void 0:C[0]]}),D.push({comp:"Table",compData:B,name:"",parentTableContents:((W=Rxe(V[U],P))==null?void 0:W.contents)??""})}),D}}else return[e]},lg=(r,e)=>{let t={};return Array.isArray(r)?r!=null&&r.find(n=>n==null?void 0:n.id)?r==null||r.forEach((n,i)=>{e!=null&&e[i-1]&&!(n!=null&&n.id)?t[e[i-1]]=n:n!=null&&n.id&&(t.id=n==null?void 0:n.id)}):r==null||r.forEach((n,i)=>{e!=null&&e[i]&&(t[e[i]]=n)}):[r].forEach((n,i)=>{t[e[i]]=n}),t},Lxe=r=>{var t,n;let e="";return(n=(t=kt.cloneDeep(r))==null?void 0:t.split("/"))==null||n.forEach((i,a)=>{var s,o;a<((o=(s=kt.cloneDeep(r))==null?void 0:s.split("/"))==null?void 0:o.length)-1&&(e=e===""?e+i:e+"/"+i)}),e},Pxe=async r=>{const e=kt.cloneDeep(r);let t=[],n=[];e==null||e.forEach(i=>{!(n!=null&&n.find(a=>(a==null?void 0:a.parentKey)===(i==null?void 0:i.parentKey)))&&(i==null?void 0:i.parentKey)!==""&&n.push(i)}),n=n==null?void 0:n.map(i=>{var a;return i.content=(a=i.content)==null?void 0:a.map(s=>{var o;return s.key={pageKey:(i==null?void 0:i.parentKey)??"",systemKey:((o=s.key)==null?void 0:o.systemKey)??"",version:1,type:"subStructure"},s}),i.content}),(n==null?void 0:n.length)>0&&(t=n==null?void 0:n.map(async i=>{let a;return(i==null?void 0:i.length)>0&&(a=await kt.batchAddInsofDataApi({dataList:i})),a})),await Promise.all(t)},E_=kt.defineStore("originalState",{state:()=>({originalPath:"^"}),actions:{}}),Nxe=Th.useModelComp(kt.pinia),{routeToChildPath:xj}=kt.storeToRefs(Nxe),Oxe=kt.useLoginState(kt.pinia),{loginUserInfo:U6,cryptoInfo:dL}=kt.storeToRefs(Oxe),Fxe=E_(kt.pinia),{originalPath:wj}=kt.storeToRefs(Fxe),Bxe=r=>{var e,t,n;return((t=(e=U6.value)==null?void 0:e.layer)==null?void 0:t.toUpperCase())==="SUPERADMIN"?!0:((n=U6.value)==null?void 0:n.account)===(r==null?void 0:r.account)},Uxe=async(r,e,t)=>{const n=Th.getPageDataAsync("/系统管理/角色管理"),i=Th.getPageDataAsync("/系统管理/部门管理");return await Promise.all([n,i]).then(s=>{var c,u;const o=(c=s==null?void 0:s[0])==null?void 0:c.map(f=>({label:f==null?void 0:f.roleName,value:f==null?void 0:f.roleName})),l=(u=s==null?void 0:s[1])==null?void 0:u.map(f=>({label:f==null?void 0:f.deptName,value:f==null?void 0:f.deptName}));return r==null?void 0:r.map(f=>{var h;return{...f,compData:(h=f==null?void 0:f.compData)==null?void 0:h.map(d=>{var p,v;return(d==null?void 0:d.key)==="header"?{...d,contents:(p=d==null?void 0:d.contents)==null?void 0:p.map(g=>g.prop==="userDept"?{...g,options:l}:g.prop==="userRoles"?{...g,options:o}:g)}:(d==null?void 0:d.key)==="tableContents"?{...d,contents:(v=d==null?void 0:d.contents)==null?void 0:v.map(g=>{var y;return{...g,password:Bxe(g)?Th.decryptData(g==null?void 0:g.password,(y=dL==null?void 0:dL.value)==null?void 0:y.privateKey):g==null?void 0:g.password}})}:d})}})})},zxe=async(r,e)=>{const t=sessionStorage.getItem("authority"),n=JSON.parse(t||"");if(Array.isArray(n)){let i;xj.value?i=Array.isArray(n)&&(n==null?void 0:n.filter(o=>(o==null?void 0:o.includes(r))||(o==null?void 0:o.includes(xj.value)))):i=Array.isArray(n)&&(n==null?void 0:n.filter(o=>o==null?void 0:o.includes(r)));const a=i==null?void 0:i.map(o=>{var l;return((l=o==null?void 0:o.split("/"))==null?void 0:l.pop())||""});return e==null?void 0:e.map(o=>{var l;return{...o,compData:(l=o==null?void 0:o.compData)==null?void 0:l.map(c=>{var u;return(c==null?void 0:c.key)==="rowButton"||(c==null?void 0:c.key)==="extraButton"?{...c,contents:(u=c==null?void 0:c.contents)==null?void 0:u.filter(f=>a==null?void 0:a.includes(f==null?void 0:f.label))}:c})}})}else return typeof n=="string"&&(n==null?void 0:n.toUpperCase())==="SUPERADMIN"?r==="/系统管理/用户管理"?await Uxe(e):e:[]},Vxe=(r,e)=>{var a,s,o,l;const t=(s=(a=e["系统管理/角色管理"])==null?void 0:a.filter(c=>{var u;return((u=c==null?void 0:c.key)==null?void 0:u.type)==="data"}))==null?void 0:s.map(c=>c.value.tableData),n=(l=(o=r==null?void 0:r.value)==null?void 0:o.tableData)==null?void 0:l.角色名称,i=t==null?void 0:t.find(c=>(c==null?void 0:c.角色名称)===n);return i==null?void 0:i.数据范围};var GM=(r=>(r[r.全部数据权限=0]="全部数据权限",r[r.本部门数据权限=1]="本部门数据权限",r[r.本部门及以下数据权限=2]="本部门及以下数据权限",r[r.仅本人数据权限=3]="仅本人数据权限",r[r.自定义数据权限=4]="自定义数据权限",r))(GM||{});const Rae=(r,e,t)=>{var s,o,l,c;if(((l=(o=(s=U6.value)==null?void 0:s.key)==null?void 0:o.layer)==null?void 0:l.toUpperCase())==="SUPERADMIN"||!t)return r;const n=(c=t==null?void 0:t["系统管理/用户管理"])==null?void 0:c.find(u=>{var f;return(u==null?void 0:u.id)===((f=U6.value)==null?void 0:f.id)}),i=Vxe(n,t);if(!i)return r;switch(GM==null?void 0:GM[i]){case 0:return r;case 1:return e?r===null&&typeof r!="object"?r:Object.fromEntries(Object.entries(r).filter(([f,h])=>{var v,g,y,m,b,x,w,_,S;const d=h==null?void 0:h[1],p=f[(f==null?void 0:f.length)-1]===wj.value;return((g=(v=d==null?void 0:d.key)==null?void 0:v.createUserLayer)==null?void 0:g.toUpperCase())==="SUPERADMIN"||((y=d==null?void 0:d.key)==null?void 0:y.createUserOrg)===((b=(m=n==null?void 0:n.value)==null?void 0:m.tableData)==null?void 0:b.部门名称)||((x=d==null?void 0:d.key)==null?void 0:x.createUserOrg)===((_=(w=n==null?void 0:n.value)==null?void 0:w.tableData)==null?void 0:_.部门名称)&&((S=d==null?void 0:d.key)==null?void 0:S.createUserId)===(n==null?void 0:n.id)||p})):r==null?void 0:r.filter(u=>{var f,h,d,p,v,g,y,m,b;return((h=(f=u==null?void 0:u.key)==null?void 0:f.createUserLayer)==null?void 0:h.toUpperCase())==="SUPERADMIN"||((d=u==null?void 0:u.key)==null?void 0:d.createUserOrg)===((v=(p=n==null?void 0:n.value)==null?void 0:p.tableData)==null?void 0:v.部门名称)||((g=u==null?void 0:u.key)==null?void 0:g.createUserOrg)===((m=(y=n==null?void 0:n.value)==null?void 0:y.tableData)==null?void 0:m.部门名称)&&((b=u==null?void 0:u.key)==null?void 0:b.createUserId)===(n==null?void 0:n.id)});case 2:break;case 3:return e?r===null&&typeof r!="object"?r:Object.fromEntries(Object.entries(r).filter(([f,h])=>{var v;const d=h==null?void 0:h[1],p=f[(f==null?void 0:f.length)-1]===wj.value;return((v=d==null?void 0:d.key)==null?void 0:v.createUserId)===(n==null?void 0:n.id)||p})):r==null?void 0:r.filter(u=>{var f;return((f=u==null?void 0:u.key)==null?void 0:f.createUserId)===(n==null?void 0:n.id)})}},n9=Th.useMenuState(kt.pinia),{activeMenuPath:i9}=kt.storeToRefs(n9);let cl="$R";const Hxe=OD(kt.pinia),{multipleTableConst:_j}=kt.storeToRefs(Hxe),Wxe=kt.useLoginState(kt.pinia),{loginUserInfo:pL}=kt.storeToRefs(Wxe),eb=Th.useModelComp(kt.pinia),Gxe=E_(kt.pinia),{originalPath:Iae}=kt.storeToRefs(Gxe),{payloadTypes:jxe}=kt.storeToRefs(eb),Kh=(r,e)=>(e==null?void 0:e.split(",")).some(n=>Object.keys(r).some(i=>i.startsWith("name")&&r[i]===n)),vL={onNumSlice:_xe,onRandomContents:Txe,onConditionContents:Dae,onPaceContents:wxe},$xe=r=>{const e=r.slice(0,r.indexOf("(")).trim(),t=vL==null?void 0:vL[e];if(typeof t!="function"){console.log(`找不到函数: ${e}`);return}const n=r.slice(r.indexOf("(")+1,r.lastIndexOf(")")),i=new Function(`return [${n}]`)();return t(...Array.isArray(i)?i:[i])},a9=(r,e,t="children")=>{var o;const n=[];let i=[],a=[],s=0;for(const l of r){const c=e.some(h=>{const[d]=h.split(".");return d===l.prop||d===l.label}),u=e.filter(h=>h.includes(".")).map(h=>h.split(".").slice(1).join("."));s=s+1;let f;if(c&&(f={...l},i.push(s),a.push(f==null?void 0:f.prop),delete f[t]),l[t]&&u.length){const h=(o=a9(l[t],u,t))==null?void 0:o.contents;h.length&&(i.push(s),a.push(f==null?void 0:f.prop),s=s+1,f=f||{...l},f[t]=h)}f&&n.push(f)}return{contents:n,ids:i,props:a}},qxe=r=>{if(!FD(r))return[r];const e=new Function(`return ${r}`)(),t=[];return((i,a="")=>{for(const s of i)if(Array.isArray(s)){const[o,l]=s;Array.isArray(l)?l.forEach(c=>t.push(`"${o}:${c}"`)):t.push(a?`"${a}:${o}"`:'"'+o+'"')}else t.push('"'+s+'"')})(e),t},Xxe=async(r,e,t,n)=>{var m,b,x,w,_,S,T,E,M,D,N,k,I,A,C,L,R,P,V,F,U,B,W,q,K,he,ie,de,ee,J,Z,le,X,ae,oe,ue,j,re,ce,Se,Me,Y,se,_e,me,pe,ne,ge,xe,Te,De,Ie,He,Le,Fe,Ge,lt,je,xt,ft,Et,At,dt,Dt,Rt,gt,Pe;let i=(b=(m=r==null?void 0:r.find(qe=>(qe==null?void 0:qe.key)==="header"))==null?void 0:m.contents)==null?void 0:b.find(qe=>qe==null?void 0:qe.columnPath);i||(i=(_=Xw((w=(x=r==null?void 0:r.find(qe=>(qe==null?void 0:qe.key)==="header"))==null?void 0:x.contents)==null?void 0:w[0]))==null?void 0:_.find(qe=>qe==null?void 0:qe.columnPath));let a="",s=(T=(S=kt.cloneDeep(i==null?void 0:i.columnPath))==null?void 0:S.replace("[",cl))==null?void 0:T.split(cl),o=(D=(M=(E=s==null?void 0:s[(s==null?void 0:s.length)-1])==null?void 0:E.replace("(",cl))==null?void 0:M.split(cl))==null?void 0:D[0];o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1);let l=(k=(N=kt.cloneDeep(i==null?void 0:i.columnPath))==null?void 0:N.split("["+o+"]"))==null?void 0:k[0],c="",u="",f="",h=o;if(o=(A=(I=o==null?void 0:o.split(":"))==null?void 0:I[0])==null?void 0:A.replaceAll("'",""),l.includes("[")){let qe=(P=(R=(L=(C=l==null?void 0:l.split("["))==null?void 0:C[1])==null?void 0:L.split("]"))==null?void 0:R[0])==null?void 0:P.split("/");u=l,c=(U=(F=(V=l==null?void 0:l.split("["))==null?void 0:V[1])==null?void 0:F.split("]"))==null?void 0:U[0];let Xe="";t==null||t.forEach(st=>{var ht,pt,it,rt,fe;((pt=(ht=st==null?void 0:st.value)==null?void 0:ht.pageData)==null?void 0:pt.name)===(qe==null?void 0:qe[0])&&((fe=(rt=(it=st==null?void 0:st.value)==null?void 0:it.pageData)==null?void 0:rt.compData)==null||fe.forEach(Ae=>{var Ee;(Ae==null?void 0:Ae.key)==="formContent"&&((Ee=Ae==null?void 0:Ae.contents)==null||Ee.forEach(Ce=>{var Ne;if((Ce==null?void 0:Ce.prop)===(qe==null?void 0:qe[1])){let We=Hae((Ne=kt.cloneDeep(Ce))==null?void 0:Ne.optionUrl,n);Xe=(Ce==null?void 0:Ce.value)||We||""}}))}))}),f=Xe,l=((B=l==null?void 0:l.split("["))==null?void 0:B[0])+Xe}let d=[];const p=await kt.getInsofDataApi({key:{pageKey:l,systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});let v=(q=(W=h==null?void 0:h.replace("[",cl))==null?void 0:W.split(cl))==null?void 0:q[0];const g=await kt.getInsofDataApi({key:{pageKey:i9.value,systemKey:sessionStorage.getItem("systemKey"),tableId:parseInt(e),type:"data"}}),y=[];if((he=(K=g==null?void 0:g.data)==null?void 0:K.result)==null||he.forEach(qe=>{var Xe;y.push({id:qe==null?void 0:qe.id,value:qe.value.tableData,parentId:(Xe=qe==null?void 0:qe.key)==null?void 0:Xe.parentId})}),(y==null?void 0:y.length)===0){const qe=await kt.getInsofDataApi({key:{pageKey:l,systemKey:sessionStorage.getItem("systemKey"),tableId:parseInt(e),type:"data"}});(de=(ie=qe==null?void 0:qe.data)==null?void 0:ie.result)==null||de.forEach(Xe=>{var st;y.push({id:Xe==null?void 0:Xe.id,value:Xe.value.tableData,parentId:(st=Xe==null?void 0:Xe.key)==null?void 0:st.parentId})})}if(Array.isArray((ee=p==null?void 0:p.data)==null?void 0:ee.result)&&((Z=(J=p==null?void 0:p.data)==null?void 0:J.result)==null?void 0:Z.length)>0){let qe;if((v==null?void 0:v[(v==null?void 0:v.length)-1])===":"&&(v=v==null?void 0:v.slice(1,(v==null?void 0:v.length)-1)),v=(ae=(X=v==null?void 0:v.split(":"))==null?void 0:X[((le=v==null?void 0:v.split(":"))==null?void 0:le.length)-1])==null?void 0:ae.replaceAll("'",""),((ue=(oe=p==null?void 0:p.data)==null?void 0:oe.result)==null?void 0:ue.find(it=>{var rt;return Kh((rt=it==null?void 0:it.value)==null?void 0:rt.pageData,v)}))??((re=(j=p==null?void 0:p.data)==null?void 0:j.result)==null?void 0:re.find(it=>{var rt;return Kh((rt=it==null?void 0:it.value)==null?void 0:rt.pageData,o)}))){let it=(Se=(ce=p==null?void 0:p.data)==null?void 0:ce.result)==null?void 0:Se.sort((rt,fe)=>rt.id-fe.id);qe=await(it==null?void 0:it.map(async rt=>{var Ae,Ee,Ce,Ne,We,Qe,_t,Je,ut,ot,Be,ve,Oe,et,at,mt,Wt,Zt,dr,Qt,ir,Pr,br,rn,sn,Cn,ln,un,Ur,Ni,Gn,ui,ss,Ta,Bs,yi,va,$a,di,ta,Ui,oa,os,Ja,ws,_l,oi,Us,Sl,Oc,Ra,Fc;let fe;if(Kh((Ae=rt==null?void 0:rt.value)==null?void 0:Ae.pageData,v)||Kh((Ee=rt==null?void 0:rt.value)==null?void 0:Ee.pageData,o)&&((Ne=(Ce=rt==null?void 0:rt.value)==null?void 0:Ce.pageData)==null?void 0:Ne.name)===o){fe=kt.cloneDeep((Qe=(We=rt==null?void 0:rt.value)==null?void 0:We.pageData)==null?void 0:Qe.compData);let ls;Kh((_t=rt==null?void 0:rt.value)==null?void 0:_t.pageData,v)&&v===o?(ut=(Je=rt==null?void 0:rt.value)==null?void 0:Je.pageData)!=null&&ut.name1?ls={name:(Be=(ot=rt==null?void 0:rt.value)==null?void 0:ot.pageData)==null?void 0:Be.name,name0:(Oe=(ve=rt==null?void 0:rt.value)==null?void 0:ve.pageData)==null?void 0:Oe.name0,name1:(at=(et=rt==null?void 0:rt.value)==null?void 0:et.pageData)==null?void 0:at.name1}:ls={name:(Wt=(mt=rt==null?void 0:rt.value)==null?void 0:mt.pageData)==null?void 0:Wt.name,name0:(dr=(Zt=rt==null?void 0:rt.value)==null?void 0:Zt.pageData)==null?void 0:dr.name0}:ls={name:((ir=(Qt=rt==null?void 0:rt.value)==null?void 0:Qt.pageData)==null?void 0:ir.name0)||((br=(Pr=rt==null?void 0:rt.value)==null?void 0:Pr.pageData)==null?void 0:br.name)},fe.push({key:"name",contents:ls});const qa=await kt.getInsofDataApi({key:{pageKey:l,systemKey:sessionStorage.getItem("systemKey"),tableId:rt==null?void 0:rt.id,type:"data"}});let Cs;if(((sn=(rn=qa==null?void 0:qa.data)==null?void 0:rn.result)==null?void 0:sn.length)>0&&((ln=(Cn=fe==null?void 0:fe.find(Rr=>(Rr==null?void 0:Rr.key)==="header"))==null?void 0:Cn.contents)!=null&&ln.every(Rr=>!(Rr!=null&&Rr.columnPath))))Cs=(Ur=(un=qa==null?void 0:qa.data)==null?void 0:un.result)==null?void 0:Ur.map(Rr=>{var Qa;let Yr=[];return Yr.push({id:Rr==null?void 0:Rr.id}),Yr.push((Qa=Rr==null?void 0:Rr.value)==null?void 0:Qa.tableData),Yr}),fe.push({key:"tableContents",contents:Sw(Cs,(ss=(ui=(Gn=(Ni=rt==null?void 0:rt.value)==null?void 0:Ni.pageData)==null?void 0:Gn.compData)==null?void 0:ui.find(Rr=>(Rr==null?void 0:Rr.key)==="header"))==null?void 0:ss.contents)}),fe.push({key:"contentTableId",contents:rt==null?void 0:rt.id}),c!==""&&(fe!=null&&fe.find(Rr=>(Rr==null?void 0:Rr.key)==="pageColumn")&&(fe=fe==null?void 0:fe.filter(Rr=>(Rr==null?void 0:Rr.key)!=="pageColumn")),fe.push({key:"pageColumn",contents:u}),fe!=null&&fe.find(Rr=>(Rr==null?void 0:Rr.key)==="columnPath")&&(fe=fe==null?void 0:fe.filter(Rr=>(Rr==null?void 0:Rr.key)!=="columnPath")),fe.push({key:"columnPath",contents:c}),fe!=null&&fe.find(Rr=>(Rr==null?void 0:Rr.key)==="columnUsingPath")&&(fe=fe==null?void 0:fe.filter(Rr=>(Rr==null?void 0:Rr.key)!=="columnUsingPath")),fe.push({key:"columnUsingPath",contents:f}),fe!=null&&fe.find(Rr=>(Rr==null?void 0:Rr.key)==="pageGroup")&&(fe=fe==null?void 0:fe.filter(Rr=>(Rr==null?void 0:Rr.key)!=="pageGroup")),fe.push({key:"pageGroup",contents:o})),d.push(fe);else{let Rr;if(i9.value!==l)Rr=await wh(l,sessionStorage.getItem("systemKey"),"");else{let Yr=(Ui=(ta=(di=($a=(va=(yi=(Bs=(Ta=rt==null?void 0:rt.value)==null?void 0:Ta.pageData)==null?void 0:Bs.compData)==null?void 0:yi.find(jn=>(jn==null?void 0:jn.key)==="header"))==null?void 0:va.contents)==null?void 0:$a.find(jn=>jn==null?void 0:jn.columnPath))==null?void 0:di.columnPath)==null?void 0:ta.split("["))==null?void 0:Ui[0],Qa=await kt.getInsofDataApi({key:{pageKey:l,systemKey:sessionStorage.getItem("systemKey"),type:"structure"}}),Ms=(ws=(Ja=(os=(oa=Qa==null?void 0:Qa.data)==null?void 0:oa.result)==null?void 0:os.find(jn=>{var ro,cs,pi,Tn,be,Ke;return Kh((ro=jn==null?void 0:jn.value)==null?void 0:ro.pageData,o)&&((pi=(cs=rt==null?void 0:rt.value)==null?void 0:cs.pageData)==null?void 0:pi.name)===((be=(Tn=jn==null?void 0:jn.value)==null?void 0:Tn.pageData)==null?void 0:be.name)||Kh((Ke=jn==null?void 0:jn.value)==null?void 0:Ke.pageData,v)&&v!==o}))==null?void 0:Ja.value)==null?void 0:ws.pageData;a=(Fc=(Ra=(Oc=(Sl=(Us=(oi=(_l=Ms==null?void 0:Ms.compData)==null?void 0:_l.find(jn=>(jn==null?void 0:jn.key)==="header"))==null?void 0:oi.contents)==null?void 0:Us.find(jn=>jn==null?void 0:jn.columnPath))==null?void 0:Sl.columnPath)==null?void 0:Oc.replace("(",cl))==null?void 0:Ra.split(cl))==null?void 0:Fc[1],Rr=await wh(Yr,sessionStorage.getItem("systemKey"),"")}Rr==null||Rr.forEach(Yr=>{var Qa,Ms,zs,jn,ro,cs,pi,Tn,be,Ke;if(Kh(Yr,o)&&((Ms=(Qa=rt==null?void 0:rt.value)==null?void 0:Qa.pageData)==null?void 0:Ms.name)===(Yr==null?void 0:Yr.name)||Kh(Yr,v)&&v!==o){fe=((zs=Yr==null?void 0:Yr.compData)==null?void 0:zs.filter(Ye=>(Ye==null?void 0:Ye.key)!=="tableContents"))||[],Rr=(ro=(jn=Yr==null?void 0:Yr.compData)==null?void 0:jn.find(Ye=>(Ye==null?void 0:Ye.key)==="tableContents"))==null?void 0:ro.contents,Cs=Rr;let ke;Kh(Yr,o)&&v===o||Kh(Yr,v)&&v!==o?(pi=(cs=rt==null?void 0:rt.value)==null?void 0:cs.pageData)!=null&&pi.name1?ke={name:Yr==null?void 0:Yr.name,name0:Yr==null?void 0:Yr.name0,name1:Yr==null?void 0:Yr.name1}:ke={name:Yr==null?void 0:Yr.name,name0:Yr==null?void 0:Yr.name0}:ke={name:(Yr==null?void 0:Yr.name0)||(Yr==null?void 0:Yr.name)},fe.push({key:"name",contents:ke}),fe.push({key:"tableContents",contents:Sw(Cs,(be=(Tn=Yr==null?void 0:Yr.compData)==null?void 0:Tn.find(Ye=>(Ye==null?void 0:Ye.key)==="header"))==null?void 0:be.contents)}),fe.push({key:"contentTableId",contents:(Rr==null?void 0:Rr.length)!==0?((Ke=Yr==null?void 0:Yr.compData)==null?void 0:Ke.id)??(Yr==null?void 0:Yr.id):rt==null?void 0:rt.id}),c!==""&&(fe!=null&&fe.find(Ye=>(Ye==null?void 0:Ye.key)==="pageColumn")&&(fe=fe==null?void 0:fe.filter(Ye=>(Ye==null?void 0:Ye.key)!=="pageColumn")),fe.push({key:"pageColumn",contents:u}),fe!=null&&fe.find(Ye=>(Ye==null?void 0:Ye.key)==="columnPath")&&(fe=fe==null?void 0:fe.filter(Ye=>(Ye==null?void 0:Ye.key)!=="columnPath")),fe.push({key:"columnPath",contents:c}),fe!=null&&fe.find(Ye=>(Ye==null?void 0:Ye.key)==="columnUsingPath")&&(fe=fe==null?void 0:fe.filter(Ye=>(Ye==null?void 0:Ye.key)!=="columnUsingPath")),fe.push({key:"columnUsingPath",contents:f}),fe!=null&&fe.find(Ye=>(Ye==null?void 0:Ye.key)==="pageGroup")&&(fe=fe==null?void 0:fe.filter(Ye=>(Ye==null?void 0:Ye.key)!=="pageGroup")),fe.push({key:"pageGroup",contents:o})),d.push(fe)}})}}})),await Promise.all(qe)}let Xe=[];d==null||d.forEach(it=>{Xe!=null&&Xe.find(rt=>{var fe,Ae,Ee,Ce,Ne,We,Qe,_t;return((Ce=(Ee=(Ae=rt==null?void 0:rt.filter(Je=>(Je==null?void 0:Je.key)==="name"))==null?void 0:Ae[((fe=rt==null?void 0:rt.filter(Je=>(Je==null?void 0:Je.key)==="name"))==null?void 0:fe.length)-1])==null?void 0:Ee.contents)==null?void 0:Ce.name)===((_t=(Qe=(We=it==null?void 0:it.find(Je=>(Je==null?void 0:Je.key)==="name"))==null?void 0:We[((Ne=it==null?void 0:it.find(Je=>(Je==null?void 0:Je.key)==="name"))==null?void 0:Ne.length)-1])==null?void 0:Qe.contents)==null?void 0:_t.name)})&&(Xe!=null&&Xe.find(rt=>{var fe,Ae,Ee,Ce,Ne,We,Qe,_t;return((Ce=(Ee=(Ae=rt==null?void 0:rt.filter(Je=>(Je==null?void 0:Je.key)==="name"))==null?void 0:Ae[((fe=rt==null?void 0:rt.filter(Je=>(Je==null?void 0:Je.key)==="name"))==null?void 0:fe.length)-1])==null?void 0:Ee.contents)==null?void 0:Ce.name0)===((_t=(Qe=(We=it==null?void 0:it.find(Je=>(Je==null?void 0:Je.key)==="name"))==null?void 0:We[((Ne=it==null?void 0:it.find(Je=>(Je==null?void 0:Je.key)==="name"))==null?void 0:Ne.length)-1])==null?void 0:Qe.contents)==null?void 0:_t.name0)}))||Xe.push(it)}),Xe=Xe==null?void 0:Xe.map(it=>{var fe,Ae;let rt=[];return it==null||it.forEach(Ee=>{(Ee==null?void 0:Ee.key)!=="name"&&rt.push(Ee)}),rt.push((Ae=it==null?void 0:it.filter(Ee=>(Ee==null?void 0:Ee.key)==="name"))==null?void 0:Ae[((fe=it==null?void 0:it.filter(Ee=>(Ee==null?void 0:Ee.key)==="name"))==null?void 0:fe.length)-1]),rt}),d=Xe,d=d==null?void 0:d.filter(it=>it!==void 0),d=d==null?void 0:d.map(it=>{var fe,Ae;let rt=(Ae=Nu((fe=it==null?void 0:it.find(Ee=>(Ee==null?void 0:Ee.key)==="header"))==null?void 0:fe.contents))==null?void 0:Ae.filter(Ee=>Ee!=="操作"&&Ee);return it=it==null?void 0:it.map(Ee=>{var Ce;if((Ee==null?void 0:Ee.key)==="tableContents"){let Ne=(Ce=Ee.contents)==null?void 0:Ce.map(We=>{var Je,ut,ot;let Qe=(We==null?void 0:We.length)!==1?lg(We,rt):We==null?void 0:We[0],_t=y==null?void 0:y.find(Be=>(Be==null?void 0:Be.parentId)===(Qe==null?void 0:Qe.id));if(_t){let Be=Object.assign(_t==null?void 0:_t.value,Qe),ve={};for(let Oe in Be)(Be==null?void 0:Be[Oe])!==void 0&&(ve[Oe]=Be==null?void 0:Be[Oe]);return _t=ve,Be.id=_t==null?void 0:_t.id,Be}else{Qe.id=((ut=(Je=r==null?void 0:r.find(ve=>(ve==null?void 0:ve.key)==="header"))==null?void 0:Je.contents)==null?void 0:ut.length)===2?parseInt(Qe==null?void 0:Qe.id):((ot=Qe==null?void 0:Qe.id)==null?void 0:ot.toString())??"undefined";let Be={};for(let ve in Qe)(Qe==null?void 0:Qe[ve])!==void 0&&(Be[ve]=Qe==null?void 0:Qe[ve]);return Qe=Be,Qe}});Ee.contents=Ne}return Ee}),it}),d=d==null?void 0:d.sort((it,rt)=>{var fe,Ae;return((fe=it==null?void 0:it.find(Ee=>(Ee==null?void 0:Ee.key)==="contentTableId"))==null?void 0:fe.contents)-((Ae=rt==null?void 0:rt.find(Ee=>(Ee==null?void 0:Ee.key)==="contentTableId"))==null?void 0:Ae.contents)});let st=(se=(Y=(Me=i==null?void 0:i.columnPath)==null?void 0:Me.replace("(",cl))==null?void 0:Y.split(cl))==null?void 0:se[1];if(a!==""&&(st=(st==null?void 0:st.replaceAll(")",""))+","+a),st&&(st==null?void 0:st.length)>0){st=(_e=st.slice(0,(st==null?void 0:st.length)-1))==null?void 0:_e.replaceAll("'","");let it=st==null?void 0:st.split(",");it=it==null?void 0:it.map(Ae=>{let Ee=hL==null?void 0:hL.find(Ce=>Ae==null?void 0:Ae.includes(Ce==null?void 0:Ce.key));if(Ee)return{order:Ee==null?void 0:Ee.order,value:Ee==null?void 0:Ee.value,content:Ae}}),it=it==null?void 0:it.sort((Ae,Ee)=>(Ee==null?void 0:Ee.order)-(Ae==null?void 0:Ae.order));let rt=[];d=d==null?void 0:d.map(Ae=>(Ae=Ae==null?void 0:Ae.map((Ee,Ce)=>{var Ne,We,Qe,_t;return(Ee==null?void 0:Ee.key)==="header"&&((Ne=Ee==null?void 0:Ee.contents)!=null&&Ne.every(Je=>Array.isArray(Je))?Ee.contents=(We=Ee.contents)==null?void 0:We.map(Je=>{var ut;return rt.push({index:Ce,content:(ut=kt.cloneDeep(Je))==null?void 0:ut.filter(ot=>ot==null?void 0:ot.columnPath)}),Je=Je==null?void 0:Je.filter(ot=>!(ot!=null&&ot.columnPath)),Je}):(rt.push({index:Ce,content:(Qe=kt.cloneDeep(Ee.contents))==null?void 0:Qe.filter(Je=>Je==null?void 0:Je.columnPath)}),Ee.contents=(_t=Ee.contents)==null?void 0:_t.filter(Je=>!(Je!=null&&Je.columnPath)))),Ee}),Ae)),await(async()=>{var Ae,Ee,Ce,Ne;for(const We of it??[])if(We){const Qe=(Ce=(Ee=(Ae=We==null?void 0:We.content)==null?void 0:Ae.replace(":",cl))==null?void 0:Ee.split(cl))==null?void 0:Ce[1];d=await $xe((We==null?void 0:We.value)+"('"+JSON.stringify(kt.cloneDeep(d)).replaceAll("'",'"')+"','"+Qe+"','"+((Ne=i==null?void 0:i.columnPath)==null?void 0:Ne.replaceAll("'",""))+"')")}})(),d=d==null?void 0:d.map(Ae=>(Ae.push({key:"filterAllType",value:it}),Ae)),d=d==null?void 0:d.map(Ae=>(Ae=Ae==null?void 0:Ae.map((Ee,Ce)=>{var Ne,We,Qe,_t,Je,ut;if((Ee==null?void 0:Ee.key)==="header")if((Ne=Ee==null?void 0:Ee.contents)!=null&&Ne.every(ot=>Array.isArray(ot)))Ee.contents=(We=Ee.contents)==null?void 0:We.map(ot=>{var Be,ve,Oe,et;return rt!=null&&rt.find(at=>(at==null?void 0:at.index)===Ce)&&((ve=(Be=rt==null?void 0:rt.find(at=>(at==null?void 0:at.index)===Ce))==null?void 0:Be.content)==null?void 0:ve.length)>0&&ot.push((et=(Oe=rt==null?void 0:rt.find(at=>(at==null?void 0:at.index)===Ce))==null?void 0:Oe.content)==null?void 0:et[0]),ot});else{let ot=Ee.contents;rt!=null&&rt.find(Be=>(Be==null?void 0:Be.index)===Ce)&&((_t=(Qe=rt==null?void 0:rt.find(Be=>(Be==null?void 0:Be.index)===Ce))==null?void 0:Qe.content)==null?void 0:_t.length)>0&&ot.push((ut=(Je=rt==null?void 0:rt.find(Be=>(Be==null?void 0:Be.index)===Ce))==null?void 0:Je.content)==null?void 0:ut[0]),Ee.contents=ot}return Ee}),Ae))}let ht=(pe=(me=h==null?void 0:h.replace(":",cl))==null?void 0:me.split(cl))==null?void 0:pe[1];ht!=null&&ht.includes("[")&&(ht=(ne=ht==null?void 0:ht.replaceAll("'",'"'))==null?void 0:ne.replaceAll(":",","),ht=(ge=qxe(ht))==null?void 0:ge.join(","),ht="["+((De=(Te=(xe=ht==null?void 0:ht.replaceAll('":"',_j.value))==null?void 0:xe.replaceAll(":",_j.value))==null?void 0:Te.replaceAll("[",""))==null?void 0:De.replaceAll("]",""))+"]",FD(ht==null?void 0:ht.replaceAll("'",'"'))&&(ht=JSON.parse(ht==null?void 0:ht.replaceAll("'",'"')),ht.push("操作")),d=d==null?void 0:d.map(it=>{let rt=[],fe=[];return it=it==null?void 0:it.map(Ae=>{var Ee,Ce,Ne,We,Qe;if((Ae==null?void 0:Ae.key)==="header")if((Ee=Ae.contents)!=null&&Ee.every(_t=>Array.isArray(_t)))Ae.contents=(Ce=Ae.contents)==null?void 0:Ce.map(_t=>{let Je=a9(_t,ht);return _t=Je==null?void 0:Je.contents,rt=[...new Set(Je.ids)],fe=[...new Set(Je.props)],_t});else{let _t=a9(Ae.contents,ht);rt=[...new Set(_t.ids)],fe=[...new Set(_t.props)],(Ne=Ae.contents)!=null&&Ne.some(Je=>Je==null?void 0:Je.columnPath)||(Ae.contents=(We=Ae.contents)==null?void 0:We.filter(Je=>ht==null?void 0:ht.find(ut=>ut===((Je==null?void 0:Je.prop)||(Je==null?void 0:Je.label)))))}return(Ae==null?void 0:Ae.key)==="tableContents"&&(rt==null?void 0:rt.length)>0&&(Ae.contents=(Qe=Ae.contents)==null?void 0:Qe.map(_t=>{if(Array.isArray(_t))_t=_t==null?void 0:_t.filter((Je,ut)=>(rt==null?void 0:rt.find(ot=>ot===ut))||(Je==null?void 0:Je.id));else for(let Je in _t)(Je==="id"||fe!=null&&fe.find(ut=>ut===Je))&&(_t==null||_t[Je]);return _t})),Ae}),it}));let pt=[];(He=(Ie=r==null?void 0:r.find(it=>(it==null?void 0:it.key)==="header"))==null?void 0:Ie.contents)!=null&&He.every(it=>Array.isArray(it))?pt=(Ge=(Fe=(Le=r==null?void 0:r.find(it=>(it==null?void 0:it.key)==="header"))==null?void 0:Le.contents)==null?void 0:Fe[0])==null?void 0:Ge.filter(it=>!(it!=null&&it.columnPath)&&(it==null?void 0:it.label)!=="操作"):pt=(je=(lt=r==null?void 0:r.find(it=>(it==null?void 0:it.key)==="header"))==null?void 0:lt.contents)==null?void 0:je.filter(it=>!(it!=null&&it.columnPath)&&(it==null?void 0:it.label)!=="操作"),pt&&(pt==null?void 0:pt.length)>0&&(d=d==null?void 0:d.map(it=>(it=it==null?void 0:it.map(rt=>{var fe,Ae;return(rt==null?void 0:rt.key)==="header"&&((fe=rt==null?void 0:rt.contents)!=null&&fe.every(Ee=>Array.isArray(Ee))?(rt.contents=[...(Ae=rt.contents)==null?void 0:Ae[0],...pt],rt.contents=[rt.contents]):rt.contents=[...rt.contents,...pt]),rt}),it)))}else{let qe="",Xe="";(xt=l==null?void 0:l.split("/"))==null||xt.forEach((fe,Ae)=>{var Ee;Ae<((Ee=l==null?void 0:l.split("/"))==null?void 0:Ee.length)-1?qe=qe===""?qe+fe:qe+"/"+fe:Xe=fe});let st=await wh(qe,sessionStorage.getItem("systemKey"),""),ht;(dt=(At=(Et=(ft=st==null?void 0:st[0])==null?void 0:ft.compData)==null?void 0:Et.find(fe=>(fe==null?void 0:fe.key)==="header"))==null?void 0:At.contents)==null||dt.forEach((fe,Ae)=>{fe!=null&&fe.isMainKey&&(ht=Ae)});let pt=[];(Pe=(gt=(Rt=(Dt=st==null?void 0:st[0])==null?void 0:Dt.compData)==null?void 0:Rt.find(fe=>(fe==null?void 0:fe.key)==="tableContents"))==null?void 0:gt.contents)==null||Pe.forEach(fe=>{fe.find(Ae=>Ae===Xe)&&(ht||ht===0)&&pt.push(fe==null?void 0:fe[ht])});let it=[],rt=await(pt==null?void 0:pt.map(async fe=>{let Ae=await wh(qe+Iae.value+fe,sessionStorage.getItem("systemKey"),""),Ee=Ae==null?void 0:Ae.find(Ce=>(Ce==null?void 0:Ce.name)===o);it.push(Ee)}));await Promise.all(rt),it==null||it.forEach(fe=>{var Ee,Ce,Ne,We;let Ae=kt.cloneDeep(fe==null?void 0:fe.compData);Ae&&(Ae=Ae==null?void 0:Ae.filter(Qe=>(Qe==null?void 0:Qe.key)!=="tableContents"),Ae.push({key:"tableContents",contents:Sw((Ce=(Ee=fe==null?void 0:fe.compData)==null?void 0:Ee.find(Qe=>(Qe==null?void 0:Qe.key)==="tableContents"))==null?void 0:Ce.contents,(We=(Ne=fe==null?void 0:fe.compData)==null?void 0:Ne.find(Qe=>(Qe==null?void 0:Qe.key)==="header"))==null?void 0:We.contents)}),Ae.push({key:"contentTableId",contents:fe==null?void 0:fe.id}),d.push(Ae))})}return d==null?void 0:d.filter(qe=>qe!==void 0)},wh=async(r,e,t="",n=!1,i,a,s)=>{var g,y,m,b,x,w,_;let o,l=new WeakMap;s?l=s:(y=(g=(await kt.getPageInsofDataApi({systemKey:e,type:jxe.value})).data.result)==null?void 0:g.filter(T=>{var E,M;return((E=T==null?void 0:T.key)==null?void 0:E.pageKey)!=="menu"&&((M=T==null?void 0:T.key)==null?void 0:M.pageKey)!=="secret"}))==null||y.forEach(T=>{l[T.key.pageKey]?l[T.key.pageKey]=[...l[T.key.pageKey],T]:l[T.key.pageKey]=[T]}),(!n||!i)&&(o=(m=l[r])==null?void 0:m.filter(S=>{var T;return((T=S==null?void 0:S.key)==null?void 0:T.parentTable)===t})),eb.setPageMapState(l);const c=(b=l[r])==null?void 0:b.filter(S=>{var T;return((T=S==null?void 0:S.key)==null?void 0:T.type)==="structureMethod"}),u=o==null?void 0:o.map(S=>S.id);if(!u)return;let f=(x=l[r])==null?void 0:x.filter(S=>{var T,E,M,D;return((T=S==null?void 0:S.key)==null?void 0:T.type)==="data"&&(u.includes((E=S==null?void 0:S.key)==null?void 0:E.tableId)||u.includes((D=(M=S==null?void 0:S.key)==null?void 0:M.tableId)==null?void 0:D.toString()))});const h=l[r+Iae.value]??[];(h==null?void 0:h.length)===0&&(f=Rae(f,!1,l));let d=[];f==null||f.forEach(S=>{var M;const T=Array.isArray(S.value.tableData)?S.value.tableData:[S.value.tableData];T.unshift({id:S.id});const E=(M=S==null?void 0:S.key)==null?void 0:M.tableId;d!=null&&d.find(D=>(D==null?void 0:D.key)===E)?d=d==null?void 0:d.map(D=>((D==null?void 0:D.key)===E&&(D.contents=[...D.contents,T]),D)):d.push({key:E,contents:[T]})});let p=[];const v=await(o==null?void 0:o.map(async S=>{var D,N,k,I,A,C,L,R,P,V,F,U,B,W,q,K,he,ie,de,ee,J,Z;const T=S.value.pageData,E=S==null?void 0:S.id;let M=(D=kt.cloneDeep(T==null?void 0:T.compData))==null?void 0:D.filter(le=>(le==null?void 0:le.key)!=="tableContents");if(M&&(M!=null&&M.find(le=>(le==null?void 0:le.key)==="header"))&&(!Array.isArray((k=(N=M==null?void 0:M.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:N.contents)==null?void 0:k[0])&&((A=(I=M==null?void 0:M.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:I.contents)!=null&&A.every(le=>!(le!=null&&le.columnPath)))||Array.isArray((L=(C=M==null?void 0:M.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:C.contents)==null?void 0:L[0])&&((V=Xw((P=(R=M==null?void 0:M.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:R.contents)==null?void 0:P[0]))!=null&&V.every(le=>!(le!=null&&le.columnPath))))){M=await(M==null?void 0:M.map(async j=>{var re,ce,Se,Me,Y,se,_e,me,pe,ne,ge,xe,Te,De,Ie,He,Le,Fe,Ge,lt,je;if((j==null?void 0:j.key)==="header"&&((re=j.contents)==null?void 0:re.length)===0){let xt=(ce=M==null?void 0:M.find(dt=>(dt==null?void 0:dt.key)==="relatedFilter"))==null?void 0:ce.contents,ft=(Se=xt==null?void 0:xt.split("["))==null?void 0:Se[0],Et=(me=(_e=(se=(Y=(Me=xt==null?void 0:xt.replace("[",cl))==null?void 0:Me.split(cl))==null?void 0:Y[1])==null?void 0:se.replace("]",cl))==null?void 0:_e.split(cl))==null?void 0:me[0];Et=(pe=Et==null?void 0:Et.split("["))==null?void 0:pe[0],Et=(xe=(ge=Et==null?void 0:Et.split(":"))==null?void 0:ge[((ne=Et==null?void 0:Et.split(":"))==null?void 0:ne.length)-1])==null?void 0:xe.replaceAll("'","");let At=(Fe=(Le=(He=(Ie=(De=(Te=l==null?void 0:l[ft])==null?void 0:Te.find(dt=>{var Dt,Rt;return((Rt=(Dt=dt==null?void 0:dt.value)==null?void 0:Dt.pageData)==null?void 0:Rt.name)===Et}))==null?void 0:De.value)==null?void 0:Ie.pageData)==null?void 0:He.compData)==null?void 0:Le.find(dt=>(dt==null?void 0:dt.key)==="header"))==null?void 0:Fe.contents;if(At!=null&&At.some(dt=>dt==null?void 0:dt.columnPath)){let dt=await wh(ft,e,t,n,i,a,l);At=(je=(lt=(Ge=dt==null?void 0:dt.find(Dt=>(Dt==null?void 0:Dt.name)===Et))==null?void 0:Ge.compData)==null?void 0:lt.find(Dt=>(Dt==null?void 0:Dt.key)==="header"))==null?void 0:je.contents}j.contents=At}return j})),M=await Promise.all(M);let le=Sw((F=d==null?void 0:d.find(j=>(j==null?void 0:j.key)===S.id))==null?void 0:F.contents,(U=M==null?void 0:M.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:U.contents),X=await pwe((B=M==null?void 0:M.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:B.contents,r,(W=M==null?void 0:M.find(j=>(j==null?void 0:j.key)==="tableFilter"))==null?void 0:W.contents,l);X!=null&&X.mainKeys&&M.push({key:"mainRouters",contents:X==null?void 0:X.mainKeys});let ae=[],oe=[];Array.isArray(X)&&(ae=Sw(X,(q=M==null?void 0:M.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:q.contents)),Array.isArray(X==null?void 0:X.tableContents)&&(oe=Sw(X==null?void 0:X.tableContents,(K=M==null?void 0:M.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:K.contents));let ue=[...ae,...oe];Array.isArray(le)&&(le==null?void 0:le.length)>0&&(ue=[...ue,...le]),M.push({key:"tableContents",contents:ue}),M=M==null?void 0:M.map(j=>{var re,ce;return(j==null?void 0:j.key)==="header"&&((re=j.contents)==null?void 0:re.length)!==0&&(j.contents=(ce=j.contents)==null?void 0:ce.map(Se=>((Se==null?void 0:Se.prop)===(X==null?void 0:X.mainKey)&&(Se.isMainKey=!0),Se))),j})}else M&&(M!=null&&M.find(le=>(le==null?void 0:le.key)==="header"))&&(M=await Xxe(kt.cloneDeep(M),E,o,l),M!=null&&M.every(le=>Array.isArray(le))||(M=[M]));if(T.id=S==null?void 0:S.id,T.isShow=(ie=(he=S==null?void 0:S.value)==null?void 0:he.pageData)==null?void 0:ie.isShow,(M==null?void 0:M.length)>0&&M.every(le=>Array.isArray(le)))M==null||M.forEach(le=>{var oe,ue,j,re,ce;let X=kt.cloneDeep(T);X.compData=le,X.tableId=(oe=le==null?void 0:le.find(Se=>(Se==null?void 0:Se.key)==="contentTableId"))==null?void 0:oe.contents;let ae=(ue=le==null?void 0:le.find(Se=>(Se==null?void 0:Se.key)==="name"))==null?void 0:ue.contents;ae!=null&&ae.name0&&(ae==null?void 0:ae.name0)===(X==null?void 0:X.name)?(X.name0=X.name,X.name=ae==null?void 0:ae.name):ae!=null&&ae.name0&&(X.name1=X.name,X.name0=ae.name0,X.name=ae==null?void 0:ae.name),(j=X==null?void 0:X.compData)!=null&&j.every(Se=>Array.isArray(Se))?((re=X==null?void 0:X.compData)==null?void 0:re.length)===0?p.push(X):(ce=X==null?void 0:X.compData)==null||ce.forEach((Se,Me)=>{let Y;Me===0?Y={comp:X==null?void 0:X.comp,compData:Se,id:X==null?void 0:X.id,name:X==null?void 0:X.name,isShow:X==null?void 0:X.isShow}:Y={comp:X==null?void 0:X.comp,compData:Se,id:X==null?void 0:X.id,name:"",isShow:X==null?void 0:X.isShow},p.push(Y)}):p.push(X)});else if(((de=S.key)==null?void 0:de.type)!=="method")T.compData=M,(ee=T==null?void 0:T.compData)!=null&&ee.every(le=>Array.isArray(le))?((J=T==null?void 0:T.compData)==null?void 0:J.length)===0?p.push(T):(Z=T==null?void 0:T.compData)==null||Z.forEach((le,X)=>{let ae;X===0?ae={comp:T==null?void 0:T.comp,compData:le,id:T==null?void 0:T.id,name:T==null?void 0:T.name,isShow:T==null?void 0:T.isShow}:ae={comp:T==null?void 0:T.comp,compData:le,id:T==null?void 0:T.id,name:"",isShow:T==null?void 0:T.isShow},p.push(ae)}):p.push(T);else{let le;le={name:"",compData:[T],comp:"calculator"},p.push(le)}}));return await Promise.all(v),((w=c==null?void 0:c.map(S=>S.value.pageData))==null?void 0:w.filter(S=>Object.values(S).length>0).length)>0&&p.push({comp:"methodButton",name:"",compData:(_=c==null?void 0:c.map(S=>S.value.pageData))==null?void 0:_.filter(S=>Object.values(S).length>0)}),p=p.sort((S,T)=>S.id-T.id),a?p:await zxe(r,p)},Yxe=async(r,e)=>{var n,i,a,s,o;await kt.deleteInsofDataApi({id:r});let t=await kt.getInsofDataApi({key:{pageKey:i9.value,parentId:r,tableId:e==null?void 0:e.index}});((i=(n=t==null?void 0:t.data)==null?void 0:n.result)==null?void 0:i.length)>0&&await kt.deleteInsofDataApi({id:(o=(s=(a=t==null?void 0:t.data)==null?void 0:a.result)==null?void 0:s[0])==null?void 0:o.id}),eb.setTableLoading(!1)},Kxe=async(r,e,t,n,i,a,s,o)=>{var f,h,d,p,v,g,y,m,b,x,w,_,S,T,E,M,D,N,k,I,A,C,L,R,P,V,F,U,B,W,q,K,he,ie,de,ee,J,Z,le,X,ae,oe,ue,j;let l=((h=(f=s==null?void 0:s.content)==null?void 0:f[0])==null?void 0:h.id)??"",c=(d=o==null?void 0:o.param)==null?void 0:d.url,u;if(l!==""&&((p=s==null?void 0:s.content)==null?void 0:p.length)>1&&typeof((g=(v=s==null?void 0:s.content)==null?void 0:v[0])==null?void 0:g.id)!="string"){const re=await kt.getInsofDataApi({id:l});let ce=((x=(b=(m=(y=re==null?void 0:re.data)==null?void 0:y.result)==null?void 0:m[0])==null?void 0:b.key)==null?void 0:x.tableId)??"",Se=((T=(S=(_=(w=re==null?void 0:re.data)==null?void 0:w.result)==null?void 0:_[0])==null?void 0:S.key)==null?void 0:T.pageKey)??"",Me;if((s==null?void 0:s.parentTableId)===0)Me=await kt.createInsofDataApi({key:{type:r,pageKey:c||Se||e,tableId:ce||t,systemKey:n},value:{tableData:lg(i,(E=Nu(a))==null?void 0:E.filter(Y=>Y!=="操作"&&Y!=="operate"))}});else{let Y;if(s!=null&&s.parentTableId){let ge=await kt.getInsofDataApi({id:s==null?void 0:s.parentTableId});Y=(k=(N=(D=(M=ge==null?void 0:ge.data)==null?void 0:M.result)==null?void 0:D[0])==null?void 0:N.key)==null?void 0:k.pageKey}let se=(I=Nu(a))==null?void 0:I.findIndex(ge=>ge==="operate"),_e=(A=Nu(a))==null?void 0:A.filter((ge,xe)=>xe<se),me={},pe={};for(let ge in s==null?void 0:s.singleContent)_e!=null&&_e.find(xe=>xe===ge)?pe[ge]=(C=s==null?void 0:s.singleContent)==null?void 0:C[ge]:ge!=="id"&&(me[ge]=(L=s==null?void 0:s.singleContent)==null?void 0:L[ge]);let ne={key:{type:r,pageKey:c||Y||e,tableId:ce||t,systemKey:n},value:{tableData:pe}};Me=await kt.createInsofDataApi(ne),await kt.createInsofDataApi({key:{type:r,pageKey:c||Se||e,tableId:s==null?void 0:s.index,systemKey:n,parentId:(R=Me==null?void 0:Me.data)==null?void 0:R.result},value:{tableData:me}})}((P=Me==null?void 0:Me.data)==null?void 0:P.code)===200?(u=(V=Me==null?void 0:Me.data)==null?void 0:V.result,kt.ElMessage.success("保存成功")):kt.ElMessage.error("保存响应失败"),eb.setTableLoading(!1)}else{let re;if(s!=null&&s.parentTableId){let Me=await kt.getInsofDataApi({id:s==null?void 0:s.parentTableId});re=(W=(B=(U=(F=Me==null?void 0:Me.data)==null?void 0:F.result)==null?void 0:U[0])==null?void 0:B.key)==null?void 0:W.pageKey}let ce,Se=(q=Nu(a))==null?void 0:q.findIndex(Me=>Me==="operate");if(Se<((K=Nu(a))==null?void 0:K.length)-1){let Me=(he=Nu(a))==null?void 0:he.filter((me,pe)=>pe<Se),Y={},se={};for(let me in s==null?void 0:s.singleContent)Me!=null&&Me.find(pe=>pe===me)?se[me]=(ie=s==null?void 0:s.singleContent)==null?void 0:ie[me]:me!=="id"&&(Y[me]=(de=s==null?void 0:s.singleContent)==null?void 0:de[me]);if(s!=null&&s.filter&&((ee=s==null?void 0:s.filter)==null?void 0:ee.length)>0){let me=(Z=(J=s==null?void 0:s.filter)==null?void 0:J.split(":"))==null?void 0:Z[1];se[((le=me==null?void 0:me.split("="))==null?void 0:le[0])??""]=(X=me==null?void 0:me.split("="))==null?void 0:X[1]}let _e={key:{type:r,pageKey:c||re||e,tableId:s==null?void 0:s.parentTableId,systemKey:n},value:{tableData:se}};ce=await kt.createInsofDataApi(_e),await kt.createInsofDataApi({key:{type:r,pageKey:e,tableId:s==null?void 0:s.index,systemKey:n,parentId:(ae=ce==null?void 0:ce.data)==null?void 0:ae.result},value:{tableData:Y}})}else ce=await kt.createInsofDataApi({key:{type:r,pageKey:c||re||e,tableId:s!=null&&s.parentTableId?s==null?void 0:s.parentTableId:t,systemKey:n},value:{tableData:lg(i,(oe=Nu(a))==null?void 0:oe.filter(Me=>Me!=="操作"))}});((ue=ce==null?void 0:ce.data)==null?void 0:ue.code)===200?(u=(j=ce==null?void 0:ce.data)==null?void 0:j.result,kt.ElMessage.success("保存成功")):kt.ElMessage.error("保存响应失败"),eb.setTableLoading(!1)}return u},Lae=(r,e,t)=>{let n={},i={};if(t&&(t==null?void 0:t.length)>0){for(let a in r)t!=null&&t.find(s=>s===a)&&(r!=null&&r[a])&&(n[a]=r[a]);for(let a in e)t!=null&&t.find(s=>s===a)&&(e!=null&&e[a])&&(i[a]=e[a])}else n=r,i=e;if(!Object.keys(n).some(a=>a in i))return!1;for(let a in n)if((n==null?void 0:n[a])!==(i==null?void 0:i[a])&&!(!n[a]||!i[a]))return!1;return!0},Zxe=async(r,e,t,n,i,a,s,o)=>{var l,c,u,f,h,d,p,v,g,y,m,b,x,w,_,S,T,E,M,D,N,k,I,A,C,L,R,P,V,F,U,B,W,q,K,he,ie,de,ee,J,Z,le,X;if(n)if((o==null?void 0:o.parentTableId)===0){const ae=await kt.getInsofDataApi({id:n});let oe=((f=(u=(c=(l=ae==null?void 0:ae.data)==null?void 0:l.result)==null?void 0:c[0])==null?void 0:u.key)==null?void 0:f.tableId)??"",ue=((v=(p=(d=(h=ae==null?void 0:ae.data)==null?void 0:h.result)==null?void 0:d[0])==null?void 0:p.key)==null?void 0:v.pageKey)??"";if(oe&&oe!==""){const j=await kt.updateInsofDataApi({key:{type:r,pageKey:ue,tableId:oe,systemKey:i},value:{tableData:lg(a,(g=Nu(s))==null?void 0:g.filter(re=>re!=="操作"))},id:n});((y=j==null?void 0:j.data)==null?void 0:y.code)===200?kt.ElMessage.success("保存成功"):kt.ElMessage.error("保存响应失败"),eb.setTableLoading(!1)}else{const j=await kt.updateInsofDataApi({key:{type:r,pageKey:e,tableId:t,systemKey:i},value:{tableData:lg(a,(m=Nu(s))==null?void 0:m.filter(re=>re!=="操作"))},id:n});((b=j==null?void 0:j.data)==null?void 0:b.code)===200?kt.ElMessage.success("保存成功"):kt.ElMessage.error("保存响应失败"),eb.setTableLoading(!1)}}else{let ae=(x=Nu(s))==null?void 0:x.filter(Me=>Me!=="operate"),oe=lg(a,ae),ue=await kt.getInsofDataApi({key:{tableId:t}});ue=(_=(w=ue==null?void 0:ue.data)==null?void 0:w.result)==null?void 0:_.map(Me=>{var Y,se;return{id:Me==null?void 0:Me.id,value:(Y=Me==null?void 0:Me.value)==null?void 0:Y.tableData,parentId:(se=Me==null?void 0:Me.key)==null?void 0:se.parentId}});let j=await kt.getInsofDataApi({key:{tableId:o==null?void 0:o.parentTableId}});j=(T=(S=j==null?void 0:j.data)==null?void 0:S.result)==null?void 0:T.map(Me=>{var Y;return{id:Me==null?void 0:Me.id,value:(Y=Me==null?void 0:Me.value)==null?void 0:Y.tableData}});let re="";j==null||j.forEach(Me=>{if(re===""){let Y=Me==null?void 0:Me.value;Lae(Y,oe)&&(re=Me==null?void 0:Me.id)}});let ce=(E=ue==null?void 0:ue.find(Me=>(Me==null?void 0:Me.parentId)===re))==null?void 0:E.id;ce=n||ce;let Se=o==null?void 0:o.singleContent;if(Se==null||delete Se.id,typeof ce=="number"){let Me=((M=ue==null?void 0:ue.find(_e=>(_e==null?void 0:_e.id)===ce||(_e==null?void 0:_e.parentId)===ce))==null?void 0:M.parentId)??ce;Me===ce&&(ce=(D=ue==null?void 0:ue.find(_e=>(_e==null?void 0:_e.id)===ce||(_e==null?void 0:_e.parentId)===ce))==null?void 0:D.id);let Y=await kt.getInsofDataApi({id:Me??""});Y=(A=(I=(k=(N=Y==null?void 0:Y.data)==null?void 0:N.result)==null?void 0:k[0])==null?void 0:I.value)==null?void 0:A.tableData;let se={};for(let _e in Y)se[_e]=(Se==null?void 0:Se[_e])??(Y==null?void 0:Y[_e]);ce?await kt.batchUpdateInsofDataApi({dataList:[{id:ce,value:{tableData:Se}},{id:Me,value:{tableData:se}}]}):await kt.batchUpdateInsofDataApi({dataList:[{id:Me,value:{tableData:Se}}]})}else{let Me=await kt.getInsofDataApi({id:parseInt(ce)}),Y=Me;Me=(P=(R=(L=(C=Me==null?void 0:Me.data)==null?void 0:C.result)==null?void 0:L[0])==null?void 0:R.value)==null?void 0:P.tableData;let se={};for(let ne in Me)se[ne]=(Se==null?void 0:Se[ne])??(Me==null?void 0:Me[ne]);let _e=await kt.getInsofDataApi({id:t}),me=((B=(U=(F=(V=_e==null?void 0:_e.data)==null?void 0:V.result)==null?void 0:F[0])==null?void 0:U.key)==null?void 0:B.pageKey)??"",pe=((he=(K=(q=(W=Y==null?void 0:Y.data)==null?void 0:W.result)==null?void 0:q[0])==null?void 0:K.key)==null?void 0:he.parentId)??"";if(pe==="")await kt.createInsofDataApi({key:{type:r,pageKey:me,tableId:t,systemKey:i,version:1,parentId:parseInt(ce),createUserId:(ie=pL.value)==null?void 0:ie.id,createUserLayer:((de=pL.value)==null?void 0:de.dept)||((ee=pL.value)==null?void 0:ee.部门名称)},value:{tableData:Se}}),await kt.batchUpdateInsofDataApi({dataList:[{id:parseInt(ce),value:{tableData:se}}]});else{let ne=await kt.getInsofDataApi({id:pe}),ge=(X=(le=(Z=(J=ne==null?void 0:ne.data)==null?void 0:J.result)==null?void 0:Z[0])==null?void 0:le.value)==null?void 0:X.tableData,xe={};for(let Te in ge)xe[Te]=(Se==null?void 0:Se[Te])??(ge==null?void 0:ge[Te]);await kt.batchUpdateInsofDataApi({dataList:[{id:parseInt(ce),value:{tableData:se}},{id:parseInt(pe),value:{tableData:xe}}]})}}}},Jxe=async(r,e)=>{await kt.updateInsofDataApi({value:{pageData:e},id:r})},Qxe=async()=>{var r,e,t,n,i,a,s,o,l;try{const c=await kt.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),layer:"superAdmin"}});if(((r=c==null?void 0:c.data)==null?void 0:r.code)===200){const u=(i=(n=(t=(e=c==null?void 0:c.data)==null?void 0:e.result)==null?void 0:t[0])==null?void 0:n.key)==null?void 0:i.systemType;let f="browser";u==="制造系统"&&(f="client"),u==="三维系统"&&(f="three"),n9.setPlatform(f),n9.setPlatName(((l=(o=(s=(a=c==null?void 0:c.data)==null?void 0:a.result)==null?void 0:s[0])==null?void 0:o.key)==null?void 0:l.name)??"")}}catch(c){return Promise.reject(c)}},Tw=wae.ref(0),ewe=Th.useMenuState(kt.pinia),twe=E_(kt.pinia),{originalPath:rwe}=kt.storeToRefs(twe),nwe=kt.useLoginState(kt.pinia),iwe=OD(kt.pinia),{multipleTableConst:mc}=kt.storeToRefs(iwe),{loginUserInfo:_y}=kt.storeToRefs(nwe),{activeMenuPath:Q0t}=kt.storeToRefs(ewe),awe=Th.useModelComp(kt.pinia),{pageMapState:z6}=kt.storeToRefs(awe),fh=rwe.value,G2="/",V6=r=>r==null?void 0:r.map(t=>{var n;return Tw.value++,Array.isArray(t)?V6(t):{label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":(t==null?void 0:t.prop)??"a"+Tw.value,width:(t==null?void 0:t.label)==="操作"?"200":t!=null&&t.width?parseInt(t.width):"",fixed:(t==null?void 0:t.fixed)??void 0,sortable:(t==null?void 0:t.sortable)??!1,align:(t==null?void 0:t.align)??"left",showOverflowTooltip:(t==null?void 0:t.showOverflowTooltip)??!0,isNotDrag:(t==null?void 0:t.isNotDrag)??!1,isEditCol:(t==null?void 0:t.isEditCol)??!1,isOperate:(t==null?void 0:t.isOperate)??!1,id:(t==null?void 0:t.id)??Tw.value,type:(t==null?void 0:t.label)==="操作"?"operate":void 0,formType:(t==null?void 0:t.formType)??(t!=null&&t.groupSelect?"Select":""),isHidden:t==null?void 0:t.isHidden,options:(t==null?void 0:t.options)??[],children:V6(t.children)??void 0,formMenuSelect:(t==null?void 0:t.formMenuSelect)??[],groupSelect:t!=null&&t.groupSelect?(n=t==null?void 0:t.groupSelect)==null?void 0:n.replaceAll('"',"").split(":"):[],isMainKey:(t==null?void 0:t.isMainKey)||!!(t!=null&&t.directiveLabel),allSelectionContents:(t==null?void 0:t.allSelectionContents)??[],selectFilter:t==null?void 0:t.selectFilter}}),swe=r=>{const e=[];function t(n){if(Array.isArray(n))for(const i of n)!i.children||i.children.length===0?e.push(i):t(i.children)}return t(r),e},owe=r=>kt.cloneDeep(r).map(t=>(Array.isArray(t)&&(t=t.map(n=>{var i;return Array.isArray(n)?n=V6(n):(n={label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":(n==null?void 0:n.prop)??"a"+Tw.value,width:(n==null?void 0:n.label)==="操作"?"200":n!=null&&n.width?parseInt(n.width):"",fixed:(n==null?void 0:n.fixed)??void 0,sortable:(n==null?void 0:n.sortable)??!1,align:(n==null?void 0:n.align)??"left",showOverflowTooltip:(n==null?void 0:n.showOverflowTooltip)??!0,isNotDrag:(n==null?void 0:n.isNotDrag)??!1,isEditCol:(n==null?void 0:n.isEditCol)??!1,isOperate:(n==null?void 0:n.isOperate)??!1,id:(n==null?void 0:n.id)??Tw.value,type:(n==null?void 0:n.label)==="操作"?"operate":void 0,formType:(n==null?void 0:n.formType)??(n!=null&&n.groupSelect?"Select":""),isHidden:n==null?void 0:n.isHidden,options:(n==null?void 0:n.options)??[],children:V6(n.children),formMenuSelect:(n==null?void 0:n.formMenuSelect)??[],groupSelect:n!=null&&n.groupSelect?(i=n==null?void 0:n.groupSelect)==null?void 0:i.replaceAll('"',"").split(":"):[],isMainKey:(n==null?void 0:n.isMainKey)||!!(n!=null&&n.directiveLabel),allSelectionContents:(n==null?void 0:n.allSelectionContents)??[],selectFilter:n==null?void 0:n.selectFilter},Tw.value++),n})),t)),Xw=r=>{function e(t,n=[],i=""){if(!t||t.length===0)return[];let a=n;return Array.isArray(t)&&(t==null||t.forEach(s=>{var o,l,c,u,f,h,d,p,v,g,y,m,b;if(s!=null&&s.children&&((o=s.children)==null?void 0:o.length)>0){let x=i===""?i+((f=(l=s==null?void 0:s.prop)==null?void 0:l.split(mc.value))==null?void 0:f[((u=(c=s==null?void 0:s.prop)==null?void 0:c.split(mc.value))==null?void 0:u.length)-1]):i+mc.value+((v=(h=s==null?void 0:s.prop)==null?void 0:h.split(mc.value))==null?void 0:v[((p=(d=s==null?void 0:s.prop)==null?void 0:d.split(mc.value))==null?void 0:p.length)-1]);a=e(s==null?void 0:s.children,a,x)}else i!==""&&(s.prop=i+mc.value+((b=(g=s==null?void 0:s.prop)==null?void 0:g.split(mc.value))==null?void 0:b[((m=(y=s==null?void 0:s.prop)==null?void 0:y.split(mc.value))==null?void 0:m.length)-1])),a.push(s)})),a}return e(r)},lwe=r=>{function e(t,n=[],i=""){if(!t||t.length===0)return[];let a=n;return Array.isArray(t)&&(a=t==null?void 0:t.map(s=>{var o,l,c,u,f,h,d,p,v,g,y,m,b;if(s!=null&&s.children&&((o=s.children)==null?void 0:o.length)>0){let x=i===""?i+((f=(l=s==null?void 0:s.prop)==null?void 0:l.split(mc.value))==null?void 0:f[((u=(c=s==null?void 0:s.prop)==null?void 0:c.split(mc.value))==null?void 0:u.length)-1]):i+mc.value+((v=(h=s==null?void 0:s.prop)==null?void 0:h.split(mc.value))==null?void 0:v[((p=(d=s==null?void 0:s.prop)==null?void 0:d.split(mc.value))==null?void 0:p.length)-1]);s.children=e(s==null?void 0:s.children,a,x)}else i!==""&&(s.prop=i+mc.value+((b=(g=s==null?void 0:s.prop)==null?void 0:g.split(mc.value))==null?void 0:b[((m=(y=s==null?void 0:s.prop)==null?void 0:y.split(mc.value))==null?void 0:m.length)-1]));return s})),a}return e(r)},cwe=r=>{let e=kt.cloneDeep(r);return e=e==null?void 0:e.map(t=>((t==null?void 0:t.type)==="Select"?t={label:t==null?void 0:t.label,prop:t==null?void 0:t.prop,name:t==null?void 0:t.name,type:t==null?void 0:t.type,value:(t==null?void 0:t.value)??"",optionUrl:{groupSelect:t==null?void 0:t.groupSelect,menuSelect:t==null?void 0:t.menuSelect,type:"Select",selectRelateType:t==null?void 0:t.selectRelateType,multiple:t==null?void 0:t.multiple}}:(t==null?void 0:t.type)==="Date"&&(t.value=!(t!=null&&t.value)&&(t==null?void 0:t.isNewDate)!==!1?new Date:t==null?void 0:t.value),t.label=t.prop||t.label,t)),e},Pae=r=>{var e,t,n,i,a,s;if(((e=r==null?void 0:r.pageData)==null?void 0:e.comp)==="Form"){let o=(n=(t=r==null?void 0:r.pageData)==null?void 0:t.compData)==null?void 0:n.map(c=>{var u;return(c==null?void 0:c.key)==="formContent"&&(c.contents=(u=c.contents)==null?void 0:u.map(f=>((f==null?void 0:f.type)==="Date"&&(f.value=""),f))),c});return{pageData:{comp:(i=r==null?void 0:r.pageData)==null?void 0:i.comp,compData:o,name:(a=r==null?void 0:r.pageData)==null?void 0:a.name,isShow:(s=r==null?void 0:r.pageData)==null?void 0:s.isShow}}}else return r},Nae=(r,e)=>{var n,i,a,s,o,l,c,u,f;let t=(a=(i=(n=e==null?void 0:e.pageData)==null?void 0:n.compData)==null?void 0:i.find(h=>(h==null?void 0:h.key)==="formContent"))==null?void 0:a.contents;if(((s=r==null?void 0:r.pageData)==null?void 0:s.comp)==="Form"){let h=(l=(o=r==null?void 0:r.pageData)==null?void 0:o.compData)==null?void 0:l.map(p=>{var v;return(p==null?void 0:p.key)==="formContent"&&(p.contents=(v=p.contents)==null?void 0:v.map(g=>{var y;return g.value=(y=t==null?void 0:t.find(m=>(m==null?void 0:m.key)===(g==null?void 0:g.key)))==null?void 0:y.value,g})),p});return{pageData:{comp:(c=r==null?void 0:r.pageData)==null?void 0:c.comp,compData:h,name:(u=r==null?void 0:r.pageData)==null?void 0:u.name,isShow:(f=r==null?void 0:r.pageData)==null?void 0:f.isShow}}}else return r},Oae=async(r,e,t,n,i)=>{var v,g,y,m,b,x,w,_,S,T,E,M,D,N,k,I,A,C,L,R,P,V,F;let a=r;(a==null?void 0:a[(a==null?void 0:a.length)-1])!==fh&&(a="",(g=(v=kt.cloneDeep(r))==null?void 0:v.split(fh))==null||g.forEach((U,B)=>{var W,q;B!==((q=(W=kt.cloneDeep(r))==null?void 0:W.split(fh))==null?void 0:q.length)-1&&(a=a===""?a+U:a+"/"+U)}),a=a+fh);let s=[],o=await kt.getInsofDataApi({key:{pageKey:r,systemKey:sessionStorage.getItem("systemKey")}});const l={data:{result:(m=(y=o==null?void 0:o.data)==null?void 0:y.result)==null?void 0:m.filter(U=>{var B;return((B=U==null?void 0:U.key)==null?void 0:B.type)==="structure"})}};let c;(r==null?void 0:r[(r==null?void 0:r.length)-1])!==fh&&(c={data:{result:(b=z6.value[a])==null?void 0:b.filter(U=>{var B;return((B=U==null?void 0:U.key)==null?void 0:B.type)==="structure"})}},((w=(x=c==null?void 0:c.data)==null?void 0:x.result)==null?void 0:w.length)>0&&(c=(S=(_=kt.cloneDeep(c))==null?void 0:_.data)==null?void 0:S.result));const u={data:{result:(T=z6.value[a])==null?void 0:T.filter(U=>{var B;return((B=U==null?void 0:U.key)==null?void 0:B.type)==="structureMethod"})}},f={data:{result:(M=(E=o==null?void 0:o.data)==null?void 0:E.result)==null?void 0:M.filter(U=>{var B;return((B=U==null?void 0:U.key)==null?void 0:B.type)==="data"})}};if((r==null?void 0:r[(r==null?void 0:r.length)-1])!==fh){let U=(D=l==null?void 0:l.data)==null?void 0:D.result;if(!Array.isArray(c))return;c==null||c.forEach(B=>{var q,K,he,ie,de;let W=(q=U==null?void 0:U.find(ee=>{var J,Z,le,X;return((Z=(J=B==null?void 0:B.value)==null?void 0:J.pageData)==null?void 0:Z.name)===((X=(le=ee==null?void 0:ee.value)==null?void 0:le.pageData)==null?void 0:X.name)}))==null?void 0:q.value;W?W=W:W=void 0,s.push({key:{pageKey:e,parentTable:((K=W==null?void 0:W.key)==null?void 0:K.parentTable)??"",systemKey:(he=B==null?void 0:B.key)==null?void 0:he.systemKey,type:((ie=W==null?void 0:W.key)==null?void 0:ie.type)??((de=B==null?void 0:B.key)==null?void 0:de.type),version:1},value:Nae(B==null?void 0:B.value,W)})})}else(k=(N=l==null?void 0:l.data)==null?void 0:N.result)==null||k.forEach(U=>{var B,W,q;s.push({key:{pageKey:e,parentTable:(B=U==null?void 0:U.key)==null?void 0:B.parentTable,systemKey:(W=U==null?void 0:U.key)==null?void 0:W.systemKey,type:(q=U==null?void 0:U.key)==null?void 0:q.type,version:1},value:Pae(U==null?void 0:U.value)})});if((A=(I=u==null?void 0:u.data)==null?void 0:I.result)==null||A.forEach(U=>{var B,W;s.push({key:{pageKey:e,systemKey:(B=U==null?void 0:U.key)==null?void 0:B.systemKey,type:(W=U==null?void 0:U.key)==null?void 0:W.type,version:1},value:U==null?void 0:U.value})}),s=s==null?void 0:s.map(U=>{var B,W,q;return((W=(B=U==null?void 0:U.value)==null?void 0:B.pageData)==null?void 0:W.comp)==="Form"&&(U.value.pageData.compData=(q=U.value.pageData.compData)==null?void 0:q.map(K=>{var he;return(K==null?void 0:K.key)==="formContent"&&(K.contents=(he=K.contents)==null?void 0:he.map(ie=>(t!=null&&t[ie==null?void 0:ie.key]&&(ie==null?void 0:ie.type)!=="Date"&&(ie.value=t[ie.key]),ie))),K}),n&&U.value.pageData.compData.push({key:"parentFormPath",contents:n})),U}),(s==null?void 0:s.length)>0){let U;if(!i)U=s;else{const B=s==null?void 0:s.find(q=>{var K,he;return i==null?void 0:i.includes((he=(K=q==null?void 0:q.value)==null?void 0:K.pageData)==null?void 0:he.name)}),W=/^[A-Za-z]+$/;U=B?s==null?void 0:s.map(q=>{var K,he,ie,de,ee,J;return i!=null&&i.includes((he=(K=q==null?void 0:q.value)==null?void 0:K.pageData)==null?void 0:he.name)?{...q,value:{pageData:{...(ie=q==null?void 0:q.value)==null?void 0:ie.pageData,compData:(J=(ee=(de=q==null?void 0:q.value)==null?void 0:de.pageData)==null?void 0:ee.compData)==null?void 0:J.map(Z=>{var le;return(Z==null?void 0:Z.key)==="formContent"?{...Z,contents:(le=Z==null?void 0:Z.contents)==null?void 0:le.map(X=>W.test(X==null?void 0:X.prop)?X:{...X,value:""})}:Z})}}}:q}):s}await kt.batchAddInsofDataApi({dataList:U})}let h={};const d=await kt.getInsofDataApi({key:{pageKey:e,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});((L=(C=l==null?void 0:l.data)==null?void 0:C.result)==null?void 0:L.length)>0&&((P=(R=l==null?void 0:l.data)==null?void 0:R.result)==null||P.forEach(U=>{var B,W,q;h[U.id]=(q=(W=(B=d==null?void 0:d.data)==null?void 0:B.result)==null?void 0:W.find(K=>{var he,ie,de,ee;return((ie=(he=K==null?void 0:K.value)==null?void 0:he.pageData)==null?void 0:ie.name)===((ee=(de=U==null?void 0:U.value)==null?void 0:de.pageData)==null?void 0:ee.name)}))==null?void 0:q.id}));let p=[];(F=(V=f==null?void 0:f.data)==null?void 0:V.result)==null||F.forEach(U=>{var B,W,q;p.push({key:{pageKey:e,tableId:h[(B=U==null?void 0:U.key)==null?void 0:B.tableId],systemKey:(W=U==null?void 0:U.key)==null?void 0:W.systemKey,type:(q=U==null?void 0:U.key)==null?void 0:q.type},value:U==null?void 0:U.value})}),(p==null?void 0:p.length)>0&&await kt.batchAddInsofDataApi({dataList:p})},uwe=async(r,e,t,n,i)=>{var v,g,y,m,b,x,w,_,S,T,E,M,D,N,k,I,A,C,L,R,P,V,F;let a=r;(a==null?void 0:a[(a==null?void 0:a.length)-1])!==G2&&(a="",(g=(v=kt.cloneDeep(r))==null?void 0:v.split(G2))==null||g.forEach((U,B)=>{var W,q;B!==((q=(W=kt.cloneDeep(r))==null?void 0:W.split(G2))==null?void 0:q.length)-1&&(a=a===""?a+U:a+"/"+U)}),a=a+G2);let s=[],o=await kt.getInsofDataApi({key:{pageKey:r,systemKey:sessionStorage.getItem("systemKey")}});const l={data:{result:(m=(y=o==null?void 0:o.data)==null?void 0:y.result)==null?void 0:m.filter(U=>{var B;return((B=U==null?void 0:U.key)==null?void 0:B.type)==="structure"})}};let c;(r==null?void 0:r[(r==null?void 0:r.length)-1])!==G2&&(c={data:{result:(b=z6.value[r])==null?void 0:b.filter(U=>{var B;return((B=U==null?void 0:U.key)==null?void 0:B.type)==="structure"})}},((w=(x=c==null?void 0:c.data)==null?void 0:x.result)==null?void 0:w.length)>0&&(c=(S=(_=kt.cloneDeep(c))==null?void 0:_.data)==null?void 0:S.result));const u={data:{result:(T=z6.value[a])==null?void 0:T.filter(U=>{var B;return((B=U==null?void 0:U.key)==null?void 0:B.type)==="structureMethod"})}},f={data:{result:(M=(E=o==null?void 0:o.data)==null?void 0:E.result)==null?void 0:M.filter(U=>{var B;return((B=U==null?void 0:U.key)==null?void 0:B.type)==="data"})}};if((r==null?void 0:r[(r==null?void 0:r.length)-1])!==G2){let U=(D=l==null?void 0:l.data)==null?void 0:D.result;if(!Array.isArray(c))return;c==null||c.forEach(B=>{var q,K,he,ie,de;let W=(q=U==null?void 0:U.find(ee=>{var J,Z,le,X;return((Z=(J=B==null?void 0:B.value)==null?void 0:J.pageData)==null?void 0:Z.name)===((X=(le=ee==null?void 0:ee.value)==null?void 0:le.pageData)==null?void 0:X.name)}))==null?void 0:q.value;W?W=W:W=void 0,s.push({key:{pageKey:e,parentTable:((K=W==null?void 0:W.key)==null?void 0:K.parentTable)??"",systemKey:(he=B==null?void 0:B.key)==null?void 0:he.systemKey,type:((ie=W==null?void 0:W.key)==null?void 0:ie.type)??((de=B==null?void 0:B.key)==null?void 0:de.type),version:1},value:Nae(B==null?void 0:B.value,W)})})}else(k=(N=l==null?void 0:l.data)==null?void 0:N.result)==null||k.forEach(U=>{var B,W,q;s.push({key:{pageKey:e,parentTable:(B=U==null?void 0:U.key)==null?void 0:B.parentTable,systemKey:(W=U==null?void 0:U.key)==null?void 0:W.systemKey,type:(q=U==null?void 0:U.key)==null?void 0:q.type,version:1},value:Pae(U==null?void 0:U.value)})});if((A=(I=u==null?void 0:u.data)==null?void 0:I.result)==null||A.forEach(U=>{var B,W;s.push({key:{pageKey:e,systemKey:(B=U==null?void 0:U.key)==null?void 0:B.systemKey,type:(W=U==null?void 0:U.key)==null?void 0:W.type,version:1},value:U==null?void 0:U.value})}),s=s==null?void 0:s.map(U=>{var B,W;return(W=(B=U==null?void 0:U.value)==null?void 0:B.pageData)==null||W.comp,U}),(s==null?void 0:s.length)>0){let U;U=s,await kt.batchAddInsofDataApi({dataList:U})}let h={};const d=await kt.getInsofDataApi({key:{pageKey:e,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});((L=(C=l==null?void 0:l.data)==null?void 0:C.result)==null?void 0:L.length)>0&&((P=(R=l==null?void 0:l.data)==null?void 0:R.result)==null||P.forEach(U=>{var B,W,q;h[U.id]=(q=(W=(B=d==null?void 0:d.data)==null?void 0:B.result)==null?void 0:W.find(K=>{var he,ie,de,ee;return((ie=(he=K==null?void 0:K.value)==null?void 0:he.pageData)==null?void 0:ie.name)===((ee=(de=U==null?void 0:U.value)==null?void 0:de.pageData)==null?void 0:ee.name)}))==null?void 0:q.id}));let p=[];(F=(V=f==null?void 0:f.data)==null?void 0:V.result)==null||F.forEach(U=>{var B,W,q;p.push({key:{pageKey:e,tableId:h[(B=U==null?void 0:U.key)==null?void 0:B.tableId],systemKey:(W=U==null?void 0:U.key)==null?void 0:W.systemKey,type:(q=U==null?void 0:U.key)==null?void 0:q.type},value:U==null?void 0:U.value})}),(p==null?void 0:p.length)>0&&await kt.batchAddInsofDataApi({dataList:p})},Fae=(r,e)=>{let t=kt.cloneDeep(r);return t=t==null?void 0:t.map(i=>{var l,c,u;let a=[],s=[];for(let f in e)if(f!=null&&f.includes((c=(l=kt.cloneDeep(i))==null?void 0:l.key)==null?void 0:c.pageKey)){let h=(u=e[f])==null?void 0:u.filter(d=>{var p,v,g;return((p=d==null?void 0:d.key)==null?void 0:p.type)==="data"&&((v=d==null?void 0:d.key)==null?void 0:v.tableId)===((g=kt.cloneDeep(i))==null?void 0:g.id)});s=[...s,...h]}(s==null?void 0:s.length)>0&&(s==null||s.forEach(f=>{a.push(f.value.tableData)}));let o=kt.cloneDeep(i).value.pageData.compData;return o.push({key:"tableContents",contents:a}),i.value.pageData.compData=o,i}),t},Bae=(r,e)=>{if(!(r!=null&&r.includes("[")))return r;let t=r==null?void 0:r.replaceAll("[","").replaceAll("]","").split(":"),n=e==null?void 0:e.map(a=>{var s;return(s=a==null?void 0:a.value)==null?void 0:s.pageData}),i="";return n==null||n.forEach(a=>{var s;(a==null?void 0:a.name)===(t==null?void 0:t[0])&&((s=a==null?void 0:a.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="header"&&((l=o==null?void 0:o.contents)==null||l.forEach((c,u)=>{(c==null?void 0:c.prop)===(t==null?void 0:t[1])&&(i=u)}))}))}),i},Uae=(r,e)=>{if(!(r!=null&&r.includes("[")))return r;let t=r==null?void 0:r.replaceAll("[","").replaceAll("]","").split(":"),n=e==null?void 0:e.map(a=>{var s;return(s=a==null?void 0:a.value)==null?void 0:s.pageData}),i="";return n==null||n.forEach(a=>{var s;(a==null?void 0:a.name)===(t==null?void 0:t[0])&&((s=a==null?void 0:a.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(c=>{(c==null?void 0:c.prop)===(t==null?void 0:t[1])&&(i=c==null?void 0:c.value)}))}))}),i},Sj=(r,e,t,n)=>{var l,c,u;let i=(l=r==null?void 0:r[0])==null?void 0:l.formMenuSelect,a=r==null?void 0:r.map(f=>{var h,d;return(d=(h=f.groupSelect)==null?void 0:h.split(":"))==null?void 0:d[1]}),s="";i==null||i.forEach((f,h)=>{(i==null?void 0:i.length)-1!==h?s=s===""?s+f:s+"/"+f:s=s+fh+f});let o=[];for(let f in e)if(f!=null&&f.includes(s)){let h=(c=e[f])==null?void 0:c.filter(d=>{var p,v;return((p=d==null?void 0:d.key)==null?void 0:p.type)==="structure"&&((v=d==null?void 0:d.key)==null?void 0:v.parentTable)===""});o=[...o,...h]}if((o==null?void 0:o.length)>0){let f=o==null?void 0:o.filter(g=>{var y,m,b;return((y=g==null?void 0:g.key)==null?void 0:y.pageKey)!==s&&((b=(m=g==null?void 0:g.value)==null?void 0:m.pageData)==null?void 0:b.comp)==="Form"}),h=o==null?void 0:o.filter(g=>{var y,m,b;return((y=g==null?void 0:g.key)==null?void 0:y.pageKey)!==s&&((b=(m=g==null?void 0:g.value)==null?void 0:m.pageData)==null?void 0:b.comp)==="Table"});h=Fae(kt.cloneDeep(h),e),f=[...kt.cloneDeep(f),...h],f=f==null?void 0:f.map(g=>({[g.key.pageKey]:g}));let d=0;f=f.reduce((g,y)=>(Object.keys(y).forEach(m=>{g[m]||(g[m]=[],g[m].push({index:d})),g[m].push(y[m])}),d++,g),{});let p=(u=Object.values(f))==null?void 0:u.sort((g,y)=>{var x,w;let m=(x=g==null?void 0:g.find(_=>_==null?void 0:_.index))==null?void 0:x.index,b=(w=y==null?void 0:y.find(_=>_==null?void 0:_.index))==null?void 0:w.index;return m-b});f=p==null?void 0:p.map(g=>g==null?void 0:g.filter(y=>{var m,b,x,w;return!(y!=null&&y.index)&&(y==null?void 0:y.index)!==0&&!((b=(m=y==null?void 0:y.key)==null?void 0:m.pageKey)!=null&&b.includes("updateLoading"))&&!((w=(x=y==null?void 0:y.key)==null?void 0:x.pageKey)!=null&&w.includes("loading"))}));let v=[];if(f==null||f.forEach(g=>{var b,x,w,_,S,T,E,M,D,N;const y=g==null?void 0:g.find(k=>{var I,A,C,L,R;return((A=(I=k==null?void 0:k.value)==null?void 0:I.pageData)==null?void 0:A.name)===((R=(L=(C=r==null?void 0:r[0])==null?void 0:C.groupSelect)==null?void 0:L.split(":"))==null?void 0:R[0])});let m=(S=(_=(w=(x=(b=kt.cloneDeep(y))==null?void 0:b.value)==null?void 0:x.pageData)==null?void 0:w.compData)==null?void 0:_.find(k=>(k==null?void 0:k.key)==="formContent"))==null?void 0:S.contents;if(m){let k=[];a==null||a.forEach((I,A)=>{var R,P,V,F,U,B;let C=g==null?void 0:g.find(W=>{var q,K,he,ie,de;return((K=(q=W==null?void 0:W.value)==null?void 0:q.pageData)==null?void 0:K.name)===((de=(ie=(he=r==null?void 0:r[A])==null?void 0:he.groupSelect)==null?void 0:ie.split(":"))==null?void 0:de[0])}),L=(U=(F=(V=(P=(R=kt.cloneDeep(C))==null?void 0:R.value)==null?void 0:P.pageData)==null?void 0:V.compData)==null?void 0:F.find(W=>(W==null?void 0:W.key)==="formContent"))==null?void 0:U.contents;L!=null&&L.find(W=>(W==null?void 0:W.key)===I)?k.push((B=L==null?void 0:L.find(W=>(W==null?void 0:W.key)===I))==null?void 0:B.value):k.push("")}),v.push(k)}else m=(N=(D=(M=(E=(T=kt.cloneDeep(y))==null?void 0:T.value)==null?void 0:E.pageData)==null?void 0:M.compData)==null?void 0:D.find(k=>(k==null?void 0:k.key)==="tableContents"))==null?void 0:N.contents,m==null||m.forEach(k=>{let I=[];a==null||a.forEach(A=>{k!=null&&k[A]&&I.push(k==null?void 0:k[A])}),v.push(I)})}),(t==null?void 0:t.length)>0){let g={};t==null||t.forEach(y=>{var m;for(let b in y){let x=kt.cloneDeep(b);if(!(x!=null&&x.includes("[")))(m=y[b])!=null&&m.includes("[")||(g[x]=y[b]);else{let w=Uae(x,e[n]),_=Bae(y[b],e[n]);g[w]=_}}});for(let y in g)v=v==null?void 0:v.filter(m=>m[g[y]]===y)}return v}},fwe=(r,e,t,n)=>{var o,l,c,u,f;let i=kt.cloneDeep(r),a=e==null?void 0:e.map(h=>h==null?void 0:h.prop),s=[];for(let h in t)if(h!=null&&h.includes(i)){let d=(o=t[h])==null?void 0:o.filter(p=>{var v,g;return((v=p==null?void 0:p.key)==null?void 0:v.type)==="structure"&&((g=p==null?void 0:p.key)==null?void 0:g.parentTable)===""});s=[...s,...d]}if((s==null?void 0:s.length)>0){let h=s==null?void 0:s.filter(x=>{var w,_,S,T;return((w=x==null?void 0:x.key)==null?void 0:w.pageKey)!==i&&((S=(_=x==null?void 0:x.value)==null?void 0:_.pageData)==null?void 0:S.comp)==="Form"&&(x==null?void 0:x.key.pageKey.includes(i+fh))&&!((T=x==null?void 0:x.key.pageKey)!=null&&T.includes("@"))}),d=s==null?void 0:s.filter(x=>{var w,_,S,T;return((w=x==null?void 0:x.key)==null?void 0:w.pageKey)!==i&&((S=(_=x==null?void 0:x.value)==null?void 0:_.pageData)==null?void 0:S.comp)==="Table"&&(x==null?void 0:x.key.pageKey.includes(i+fh))&&!((T=x==null?void 0:x.key.pageKey)!=null&&T.includes("@"))});d=Fae(kt.cloneDeep(d),t),h=[...kt.cloneDeep(h),...d],h=h==null?void 0:h.map(x=>({[x.key.pageKey]:x}));let p=0;h=h.reduce((x,w)=>(Object.keys(w).forEach(_=>{x[_]||(x[_]=[],x[_].push({index:p})),x[_].push(w[_])}),p++,x),{}),h=Rae(h,!0,t);let v=(l=Object.values(h))==null?void 0:l.sort((x,w)=>{var T,E;let _=(T=x==null?void 0:x.find(M=>M==null?void 0:M.index))==null?void 0:T.index,S=(E=w==null?void 0:w.find(M=>M==null?void 0:M.index))==null?void 0:E.index;return _-S});h=v==null?void 0:v.map(x=>x==null?void 0:x.filter(w=>!(w!=null&&w.index)&&(w==null?void 0:w.index)!==0));let g=(c=kt.cloneDeep(h))==null?void 0:c.filter(x=>x==null?void 0:x.find(w=>{var _,S,T,E;return((E=(_=w==null?void 0:w.key)==null?void 0:_.pageKey)==null?void 0:E[((T=(S=w==null?void 0:w.key)==null?void 0:S.pageKey)==null?void 0:T.length)-1])===fh}));h=h==null?void 0:h.filter(x=>!(x!=null&&x.find(w=>{var _,S,T,E,M,D,N,k;return((E=(_=w==null?void 0:w.key)==null?void 0:_.pageKey)==null?void 0:E[((T=(S=w==null?void 0:w.key)==null?void 0:S.pageKey)==null?void 0:T.length)-1])===fh||((D=(M=w==null?void 0:w.key)==null?void 0:M.pageKey)==null?void 0:D.includes("updateLoading"))||((k=(N=w==null?void 0:w.key)==null?void 0:N.pageKey)==null?void 0:k.includes("loading"))})));let y=[],m=[];(u=g==null?void 0:g[0])==null||u.forEach(x=>{var w,_,S,T,E;((_=(w=x==null?void 0:x.value)==null?void 0:w.pageData)==null?void 0:_.comp)==="Form"&&((E=(T=(S=x==null?void 0:x.value)==null?void 0:S.pageData)==null?void 0:T.compData)==null||E.forEach(M=>{(M==null?void 0:M.key)==="formContent"&&(m=[...m,...M==null?void 0:M.contents])}))});let b=(f=m==null?void 0:m.find(x=>(x==null?void 0:x.isMain)===!0))==null?void 0:f.key;if(h==null||h.forEach(x=>{let w=[];x==null||x.forEach(S=>{var T,E,M,D,N;((E=(T=S==null?void 0:S.value)==null?void 0:T.pageData)==null?void 0:E.comp)==="Form"&&((N=(D=(M=S==null?void 0:S.value)==null?void 0:M.pageData)==null?void 0:D.compData)==null||N.forEach(k=>{(k==null?void 0:k.key)==="formContent"&&(w=[...w,...k==null?void 0:k.contents])}))});let _={};a==null||a.forEach(S=>{let T=w==null?void 0:w.find(E=>(E==null?void 0:E.key)===S);T!=null&&T.prop&&(_[T.prop]=(T==null?void 0:T.value)??"")}),y.push(_)}),(n==null?void 0:n.length)>0){let x=[];n==null||n.forEach(w=>{var E,M,D,N,k,I,A,C;let _={};for(let L in w){let R=kt.cloneDeep(L);if(!(R!=null&&R.includes("[")))w[L].toUpperCase()==="@LOGINUSER"?_[R]=((E=_y.value)==null?void 0:E.姓名)||((M=_y.value)==null?void 0:M.account)||((D=_y.value)==null?void 0:D.账号)||((N=_y.value)==null?void 0:N.姓名):(k=w[L])!=null&&k.includes("[")||(_[R]=w[L]);else{let P=Uae(R,t[r]),V=Bae(w[L],t[r]);_[P]=V}}let S=[],T=0;for(let L in _)((I=_[L])==null?void 0:I[0])!=="!"?S=(A=T>0?S:y)==null?void 0:A.filter(P=>P[L]===_[L]):S=(C=T>0?S:y)==null?void 0:C.filter(R=>{var P;return R[L]!==((P=_[L])==null?void 0:P.replaceAll("!",""))}),T=1;x=[...x,...S]}),y=[...new Set(x)]}return y=y==null?void 0:y.map(x=>Object.values(x)),{mainKey:b,tableContents:y}}},hwe=(r,e)=>{var i,a,s,o,l,c;let t=(a=(i=kt.cloneDeep(r))==null?void 0:i.split("/"))==null?void 0:a[0],n=[];for(let u in e)if(u!=null&&u.includes(t)){let f=(s=e[u])==null?void 0:s.filter(h=>{var d,p;return((d=h==null?void 0:h.key)==null?void 0:d.type)==="structure"&&((p=h==null?void 0:h.key)==null?void 0:p.parentTable)===""});n=[...n,...f]}return(n==null?void 0:n.length)>0?!!((c=(l=(o=n==null?void 0:n.filter(f=>{var h;return((h=f==null?void 0:f.key)==null?void 0:h.pageKey)===t}))==null?void 0:o[0])==null?void 0:l.key)==null?void 0:c.parentPageKey):!0},dwe=async(r,e,t,n)=>{var s,o,l,c,u,f,h,d,p;let i=(o=(s=kt.cloneDeep(r))==null?void 0:s.split("/"))==null?void 0:o[0],a=[];for(let v in n)if(v!=null&&v.includes(i)){let g=(l=n[v])==null?void 0:l.filter(y=>{var m,b;return((m=y==null?void 0:y.key)==null?void 0:m.type)==="structure"&&((b=y==null?void 0:y.key)==null?void 0:b.parentTable)===""});a=[...a,...g]}if((a==null?void 0:a.length)>0){let v=(f=(u=(c=a==null?void 0:a.filter(m=>{var b;return((b=m==null?void 0:m.key)==null?void 0:b.pageKey)===i}))==null?void 0:c[0])==null?void 0:u.key)==null?void 0:f.parentPageKey,g=[];if(v){for(let m in n)if(m!=null&&m.includes(v)){let b=(h=n[m])==null?void 0:h.filter(x=>{var w,_;return((w=x==null?void 0:x.key)==null?void 0:w.type)==="structure"&&((_=x==null?void 0:x.key)==null?void 0:_.parentTable)===""});g=[...g,...b]}}else g=a;let y="";if((g==null?void 0:g.length)>0){let m=[],b;b=(d=g==null?void 0:g.filter(M=>{var D,N,k,I,A,C;return((k=(N=(D=M==null?void 0:M.key)==null?void 0:D.pageKey)==null?void 0:N.split("/"))==null?void 0:k[0])===v&&((C=(A=(I=M==null?void 0:M.key)==null?void 0:I.pageKey)==null?void 0:A.split("/"))==null?void 0:C.length)===2}))==null?void 0:d.map(M=>{var D;return(D=M==null?void 0:M.key)==null?void 0:D.pageKey}),b=[...new Set(b)],b=b==null?void 0:b.filter(M=>!M.includes(fh));let x=(p=kt.cloneDeep(b))==null?void 0:p.map(async M=>{var A,C,L,R,P,V,F,U,B,W,q,K,he,ie,de;let D=await wh(M,sessionStorage.getItem("systemKey"),"",!1,[],!1,n),N=(R=(L=(C=(A=kt.cloneDeep(D))==null?void 0:A[0])==null?void 0:C.compData)==null?void 0:L.find(ee=>(ee==null?void 0:ee.key)==="tableContents"))==null?void 0:R.contents,k=(W=(B=(U=(F=(V=(P=kt.cloneDeep(D))==null?void 0:P[0])==null?void 0:V.compData)==null?void 0:F.find(ee=>(ee==null?void 0:ee.key)==="header"))==null?void 0:U.contents)==null?void 0:B.filter(ee=>(ee==null?void 0:ee.label)!=="操作"))==null?void 0:W.map(ee=>ee==null?void 0:ee.prop),I=[];return(de=(ie=(he=(K=(q=kt.cloneDeep(D))==null?void 0:q[0])==null?void 0:K.compData)==null?void 0:he.find(ee=>(ee==null?void 0:ee.key)==="header"))==null?void 0:ie.contents)==null||de.forEach(ee=>{(ee==null?void 0:ee.isMainKey)===!0&&(y=ee==null?void 0:ee.prop)}),N==null||N.forEach(ee=>{let J=lg(ee,k);I.push(J),m.push({key:J==null?void 0:J[y],routerContent:M})}),I}),w=await Promise.all(x),_=[];w==null||w.forEach(M=>{(M==null?void 0:M.length)>0&&(M==null||M.forEach(D=>{_.push(D)}))});let S=[];S=e==null?void 0:e.map(M=>{var N,k,I;let D={};for(let A in M)M[A].toUpperCase()==="@LOGINUSER"?D[A]=((N=_y.value)==null?void 0:N.姓名)||((k=_y.value)==null?void 0:k.account)||((I=_y.value)==null?void 0:I.账号):D[A]=M[A];return D});let T=[];_==null||_.forEach(M=>{let D=[];S==null||S.forEach(N=>{let k=[];for(let I in N)k.push(M[I]===N[I]);D.push(k)}),D.find(N=>N==null?void 0:N.every(k=>k===!0))&&T.push(M)});let E=[];return T==null||T.forEach(M=>{let D={};t==null||t.forEach(N=>{D[N.prop]=M[N.prop]??""}),E.push(D)}),E=E==null?void 0:E.map(M=>Object.values(M)),{mainKey:y,tableContents:E,mainKeys:m}}else return}else return},pwe=async(r,e,t,n)=>{var a,s,o,l;let i=(a=kt.cloneDeep(r))==null?void 0:a.filter(c=>(c==null?void 0:c.label)!=="操作");if((t==null?void 0:t.length)>0&&(i!=null&&i.every(c=>!(c!=null&&c.formMenuSelect)))&&hwe(e,n)){let c=await dwe(e,t,i,n);return c&&((s=c==null?void 0:c.tableContents)==null?void 0:s.length)>0?c:[]}if(!(i!=null&&i.every(c=>{var u,f,h,d;return((u=c==null?void 0:c.formMenuSelect)==null?void 0:u.length)>0&&((h=(f=c==null?void 0:c.groupSelect)==null?void 0:f.split(":"))==null?void 0:h.length)>0||((d=c==null?void 0:c.formMenuGroup)==null?void 0:d.length)>0})))return fwe(e,i,n,t);if(i!=null&&i.every(c=>!(c!=null&&c.formMenuGroup)))return Sj(i,n,t,e);{let c=[];(l=(o=i==null?void 0:i[0])==null?void 0:o.formMenuGroup)==null||l.forEach((d,p)=>{let v=[];i==null||i.forEach(g=>{var y,m,b,x,w,_;v.push({columnPath:g==null?void 0:g.columnPath,formMenuSelect:(b=((y=g==null?void 0:g.formMenuGroup)==null?void 0:y[p])??((m=g==null?void 0:g.formMenuGroup)==null?void 0:m[0]))==null?void 0:b.formMenuSelect,groupSelect:(_=((x=g==null?void 0:g.formMenuGroup)==null?void 0:x[p])??((w=g==null?void 0:g.formMenuGroup)==null?void 0:w[0]))==null?void 0:_.groupSelect,isRoute:g==null?void 0:g.isRoute,label:g==null?void 0:g.label,prop:g==null?void 0:g.label})}),c.push(v)});let u=[],h=c==null?void 0:c.map(async d=>Sj(d,n,t,e));return h==null||h.forEach(d=>{d==null||d.forEach(p=>{u.push(p)})}),u}},vwe=E_(kt.pinia),{originalPath:zae}=kt.storeToRefs(vwe),mwe=r=>r==null?void 0:r.map(t=>(t=Vae(t),t)),mz=async()=>{var t,n,i,a,s,o,l,c,u,f,h,d;let r;const e=await kt.getInsofDataApi({key:{type:"structure",pageKey:"menu",systemKey:sessionStorage.getItem("systemKey")}});return(o=(s=(a=(i=(n=(t=e.data.result)==null?void 0:t[0])==null?void 0:n.value)==null?void 0:i.pageData)==null?void 0:a.compData)==null?void 0:s[0])!=null&&o.contents&&(r=mwe((d=(h=(f=(u=(c=(l=e.data.result)==null?void 0:l[0])==null?void 0:c.value)==null?void 0:u.pageData)==null?void 0:f.compData)==null?void 0:h[0])==null?void 0:d.contents)),r},gwe=r=>{var n,i,a;const e=(i=(n=r==null?void 0:r.compData)==null?void 0:n.find(s=>(s==null?void 0:s.key)==="header"))==null?void 0:i.contents;return{label:r==null?void 0:r.name,value:r==null?void 0:r.name,children:e!=null&&e.every(s=>!Array.isArray(s))?e==null?void 0:e.map(s=>({label:s==null?void 0:s.label,value:s==null?void 0:s.label})):(a=Xw(e==null?void 0:e[0]))==null?void 0:a.map(s=>({label:s==null?void 0:s.label,value:s==null?void 0:s.label}))}},gz=async r=>{var i,a;let e="";(i=kt.cloneDeep(r))==null||i.forEach(s=>{e=e===""?e+s:e+"/"+s});let t="";(a=kt.cloneDeep(r))==null||a.forEach((s,o)=>{o!==(r==null?void 0:r.length)-1?t=t===""?t+s:t+"/"+s:t=t+zae.value+s});const n=await wh(e,sessionStorage.getItem("systemKey"),"");return n||await wh(t,sessionStorage.getItem("systemKey"),"")},ywe=r=>r.entries().next().done,bwe=async r=>{var n,i,a;const e=await gz(r);let t=[];return((n=e==null?void 0:e.data)==null?void 0:n.type)==="success"&&(t=(a=(i=e.data.result)==null?void 0:i.map(s=>s.value.pageData))==null?void 0:a.filter(s=>(s==null?void 0:s.comp)==="Table"),t=t==null?void 0:t.map(s=>gwe(s))),t},xwe=[{key:"单选",value:"Select"},{key:"日期",value:"Date"},{key:"长文本",value:"TextArea"},{key:"上传",value:"Upload"},{key:"富文本",value:"Quill"}],Sb=[{label:"输入框",value:"Input"},{label:"下拉框",value:"Select"},{label:"日期选择器",value:"Date"},{label:"长文本",value:"TextArea"},{label:"附件选择器",value:"Upload"},{label:"富文本",value:"Quill"},{label:"链接跳转",value:"Link"}],wwe=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Sb},{key:"originalContent",label:"初始值",type:"Input"},{key:"value",label:"固定值",type:"Input"},{key:"isFormColHidden",label:"是否隐藏",name:"是否隐藏",type:"radio",options:[{label:"否",value:!1},{label:"是",value:!0}],value:!1}],_we=async()=>{const r=await mz();return[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Sb},{key:"multiple",label:"多选",default:!1,type:"Switch"},{key:"originalContent",label:"初始值",type:"Select"},{key:"selectRelateType",label:"下拉绑定类型",type:"Select",options:[{label:"关联绑定列",value:"关联绑定列"},{label:"自定义绑定",value:"自定义绑定"}]},{key:"menuSelect",label:"菜单选项",type:"cascader",options:r},{key:"groupSelect",label:"组信息选项",type:"cascader",options:[]},{key:"contents",label:"选项值",type:"Input"}]},Swe=async()=>[{value:"",id:"v1",label:"菜单选项",name:"菜单选项",type:"cascader",contents:await mz()},{value:"",id:"v2",label:"组信息选项",name:"组信息选项",type:"cascader",contents:[]},{value:"",id:"v2",label:"选项值",name:"选项值",type:"Input",contents:[]}],Twe=wae.computed(async()=>await _we()),Ewe=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Sb},{key:"originalContent",label:"初始值",type:"Date"},{key:"isNewDate",label:"当前时间",type:"Switch",value:!1}],Awe=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Sb},{key:"value",label:"固定值",type:"Input"}],kwe=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Sb},{key:"originalContent",label:"初始值",type:"Input"}],Tj=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Sb}],Cwe=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Sb}],Mwe=[{key:"Input",value:wwe},{key:"Select",value:Twe},{key:"Date",value:Ewe},{key:"TextArea",value:kwe},{key:"Upload",value:Tj},{key:"DragUpload",value:Tj},{key:"Quill",value:Cwe},{key:"Link",value:Awe}],Dwe=[{value:"normal",label:"自定义"},{value:"add",label:"新增"},{value:"fix",label:"修改"},{value:"view",label:"查看"},{value:"delete",label:"删除"}],Rwe=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Dwe},{key:"background",label:"颜色",type:"Color"}],Iwe=r=>{var t,n,i,a,s,o,l,c;let e=kt.cloneDeep(r);if(((t=e==null?void 0:e.find(u=>(u==null?void 0:u.name)==="类型"))==null?void 0:t.type)==="Select"&&((a=(i=(n=kt.cloneDeep(e))==null?void 0:n.find(u=>(u==null?void 0:u.name)==="选项值"))==null?void 0:i.value)==null?void 0:a.length)>0){const u=(c=(l=(o=(s=kt.cloneDeep(e))==null?void 0:s.find(f=>(f==null?void 0:f.name)==="选项值"))==null?void 0:o.value)==null?void 0:l.split(","))==null?void 0:c.map(f=>({label:f,value:f}));e=e==null?void 0:e.map(f=>((f==null?void 0:f.name)==="初始值"&&(f.contents=u,f.value=(f==null?void 0:f.value)??""),f))}return e},Vae=r=>{var i;let e={};const t=(i=r==null?void 0:r.filter(a=>!Array.isArray(a)))==null?void 0:i[0];e.label=t,e.value=t;const n=r==null?void 0:r.filter(a=>Array.isArray(a));return n&&(n==null?void 0:n.length)>0&&(e.children=n==null?void 0:n.map(a=>Vae(a))),e},Lwe=async r=>{var a,s,o,l;let e=kt.cloneDeep(r);const t=(a=r==null?void 0:r.find(c=>(c==null?void 0:c.name)==="下拉绑定类型"))==null?void 0:a.value,n=(s=r==null?void 0:r.find(c=>(c==null?void 0:c.name)==="类型"))==null?void 0:s.value,i=await Swe();return n==="Select"&&t===""?e=e==null?void 0:e.filter(c=>(c==null?void 0:c.name)!=="菜单选项"&&(c==null?void 0:c.name)!=="组信息选项"&&(c==null?void 0:c.name)!=="选项值"):n==="Select"&&t==="关联绑定列"?e!=null&&e.find(c=>(c==null?void 0:c.name)==="菜单选项"||(c==null?void 0:c.name)==="组信息选项")?e=(o=kt.cloneDeep(e))==null?void 0:o.filter(c=>(c==null?void 0:c.name)!=="选项值"):e=[...kt.cloneDeep(e),...i].filter(c=>(c==null?void 0:c.name)!=="选项值"):n==="Select"&&t==="自定义绑定"&&(e!=null&&e.find(c=>(c==null?void 0:c.name)==="选项值")?e=(l=kt.cloneDeep(e))==null?void 0:l.filter(c=>(c==null?void 0:c.name)!=="菜单选项"&&(c==null?void 0:c.name)!=="组信息选项"):e=[...kt.cloneDeep(e),...i].filter(c=>(c==null?void 0:c.name)!=="菜单选项"&&(c==null?void 0:c.name)!=="组信息选项")),e},Pwe=(r,e)=>{var n;let t=!1;return(n=kt.cloneDeep(r))==null||n.forEach(i=>{var a;(i==null?void 0:i.key)==="formContent"&&((a=i==null?void 0:i.contents)==null||a.forEach(s=>{(s==null?void 0:s.key)===e?t=!0:t=t}))}),t},Hae=(r,e)=>{var s,o,l,c,u;const t=kt.cloneDeep(r);if(!t)return;let n="";(o=(s=kt.cloneDeep(t))==null?void 0:s.menuSelect)==null||o.forEach(f=>{f!=null&&f.includes("[")?n=n+zae.value:n=n===""?n+f:n+"/"+f});const i=(l=e==null?void 0:e[n])==null?void 0:l.map(f=>{var h;return(h=f==null?void 0:f.value)==null?void 0:h.pageData});let a=i==null?void 0:i.filter(f=>{var h,d;return(f==null?void 0:f.name)===((d=(h=kt.cloneDeep(t))==null?void 0:h.groupSelect)==null?void 0:d[0])});if((a==null?void 0:a.length)===1?a=a==null?void 0:a[0]:(c=kt.cloneDeep(a))==null||c.forEach(f=>{var h,d;(f==null?void 0:f.comp)==="Form"&&Pwe(f==null?void 0:f.compData,(d=(h=kt.cloneDeep(t))==null?void 0:h.groupSelect)==null?void 0:d[1])&&(a=f)}),(a==null?void 0:a.comp)==="Form"){let f="";return(u=a==null?void 0:a.compData)==null||u.forEach(h=>{var d;(h==null?void 0:h.key)==="formContent"&&((d=h==null?void 0:h.contents)==null||d.forEach(p=>{var v,g;(p==null?void 0:p.key)===((g=(v=kt.cloneDeep(t))==null?void 0:v.groupSelect)==null?void 0:g[1])&&(p.type==="Select"&&!(p!=null&&p.value)?f=void 0:f=p==null?void 0:p.value)}))}),f}},Nwe=kt.useLoginState(kt.pinia),{loginUserInfo:mL}=kt.storeToRefs(Nwe),Owe=async r=>{var i,a,s,o,l,c,u,f,h,d,p,v,g,y,m,b,x,w,_,S,T,E,M,D,N,k,I,A,C,L,R,P;let e=[];(i=r==null?void 0:r.menuSelect)==null||i.forEach(V=>{});let t="",n;if(r!=null&&r.menuSelect&&(n=await gz(r==null?void 0:r.menuSelect)),n==null||n.forEach(V=>{var F,U;(V==null?void 0:V.name)===(((U=(F=r==null?void 0:r.groupSelect)==null?void 0:F[0])==null?void 0:U.replaceAll("'",""))??"")&&(t=V==null?void 0:V.id)}),r!=null&&r.menuId){t=r==null?void 0:r.menuId;const V=await kt.getInsofDataApi({id:t}),F=(l=(o=(s=(a=V==null?void 0:V.data)==null?void 0:a.result)==null?void 0:s[0])==null?void 0:o.key)==null?void 0:l.pageKey;n=await wh(F,sessionStorage.getItem("systemKey"),"")}if(t!==""){const V=(f=(u=(c=n==null?void 0:n.find(B=>(B==null?void 0:B.id)===t))==null?void 0:c.compData)==null?void 0:u.find(B=>(B==null?void 0:B.key)==="header"))==null?void 0:f.contents;let F=0;V.every(B=>Array.isArray(B))?F=(h=V==null?void 0:V[0])==null?void 0:h.findIndex(B=>{var W,q,K;return(B==null?void 0:B.label)===((K=(q=(W=r==null?void 0:r.groupSelect)==null?void 0:W[1])==null?void 0:q.replaceAll("[",""))==null?void 0:K.replaceAll("]",""))}):F=V==null?void 0:V.findIndex(B=>{var W,q,K;return(B==null?void 0:B.label)===((K=(q=(W=r==null?void 0:r.groupSelect)==null?void 0:W[1])==null?void 0:q.replaceAll("[",""))==null?void 0:K.replaceAll("]",""))}),F===-1&&(F=0);let U=(g=(v=(p=(d=n==null?void 0:n.find(B=>(B==null?void 0:B.id)===t))==null?void 0:d.compData)==null?void 0:p.find(B=>(B==null?void 0:B.key)==="tableContents"))==null?void 0:v.contents)==null?void 0:g.map(B=>(B=B==null?void 0:B.filter(W=>!(W!=null&&W.id)),B));if((r==null?void 0:r.filter)!==""){let B={};B[(m=(y=r==null?void 0:r.filter)==null?void 0:y.split("#"))==null?void 0:m[0]]=(x=(b=r==null?void 0:r.filter)==null?void 0:b.split("#"))==null?void 0:x[1];let W=(_=(w=r==null?void 0:r.filter)==null?void 0:w.split("#"))==null?void 0:_[1];W==="@loginUser"&&(W=((S=mL.value)==null?void 0:S.姓名)||((T=mL.value)==null?void 0:T.account)||((E=mL.value)==null?void 0:E.账号));let q=V==null?void 0:V.findIndex(K=>{var he,ie;return(K==null?void 0:K.prop)===((ie=(he=Object.keys(B))==null?void 0:he[0])==null?void 0:ie.replaceAll("'",""))});U=U==null?void 0:U.filter(K=>(K==null?void 0:K[q])===W)}if((M=r==null?void 0:r.menuFilter)!=null&&M.find(B=>{var W;return(W=B==null?void 0:B.content)==null?void 0:W.includes("@Condition")})){let B=(I=(k=(N=(D=r==null?void 0:r.menuFilter)==null?void 0:D.find(q=>{var K;return(K=q==null?void 0:q.content)==null?void 0:K.includes("@Condition")}))==null?void 0:N.content)==null?void 0:k.split(":"))==null?void 0:I[1],W=(A=n==null?void 0:n.find(q=>(q==null?void 0:q.id)===t))==null?void 0:A.compData;U=(P=(R=(L=(C=Dae([W],B))==null?void 0:C[0])==null?void 0:L.find(q=>(q==null?void 0:q.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:P.map(q=>(q=q==null?void 0:q.filter(K=>!(K!=null&&K.id)),q))}U==null||U.forEach(B=>{e.push({label:B==null?void 0:B[F],value:B==null?void 0:B[F]})})}return e};/**!
|
|
1
|
+
"use strict";var Y2e=Object.defineProperty;var K2e=(r,e,t)=>e in r?Y2e(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var jr=(r,e,t)=>K2e(r,typeof e!="symbol"?e+"":e,t);const kt=require("./index-C8qRkCgn.cjs"),Th=require("./index-CxUHJyzF.cjs"),wae=require("vue");function _ae(r,e){return Th.setToString(Th.overRest(r,e,Th.identity),r+"")}function Z2e(r,e,t){if(!kt.isObject(t))return!1;var n=typeof e;return(n=="number"?kt.isArrayLike(t)&&kt.isIndex(e,t.length):n=="string"&&e in t)?kt.eq(t[e],r):!1}function J2e(r){return _ae(function(e,t){var n=-1,i=t.length,a=i>1?t[i-1]:void 0,s=i>2?t[2]:void 0;for(a=r.length>3&&typeof a=="function"?(i--,a):void 0,s&&Z2e(t[0],t[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var o=t[n];o&&r(e,o,n,a)}return e})}var Q2e="[object Object]",exe=Function.prototype,txe=Object.prototype,Sae=exe.toString,rxe=txe.hasOwnProperty,nxe=Sae.call(Object);function Tae(r){if(!kt.isObjectLike(r)||kt.baseGetTag(r)!=Q2e)return!1;var e=kt.getPrototype(r);if(e===null)return!0;var t=rxe.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Sae.call(t)==nxe}function ixe(r){return function(e,t,n){for(var i=-1,a=Object(e),s=n(e),o=s.length;o--;){var l=s[++i];if(t(a[l],l,a)===!1)break}return e}}var Eae=ixe();function t9(r,e,t){(t!==void 0&&!kt.eq(r[e],t)||t===void 0&&!(e in r))&&kt.baseAssignValue(r,e,t)}function Aae(r){return kt.isObjectLike(r)&&kt.isArrayLike(r)}function r9(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function axe(r){return kt.copyObject(r,kt.keysIn(r))}function sxe(r,e,t,n,i,a,s){var o=r9(r,t),l=r9(e,t),c=s.get(l);if(c){t9(r,t,c);return}var u=a?a(o,l,t+"",r,e,s):void 0,f=u===void 0;if(f){var h=kt.isArray(l),d=!h&&kt.isBuffer(l),p=!h&&!d&&kt.isTypedArray(l);u=l,h||d||p?kt.isArray(o)?u=o:Aae(o)?u=kt.copyArray(o):d?(f=!1,u=kt.cloneBuffer(l,!0)):p?(f=!1,u=kt.cloneTypedArray(l,!0)):u=[]:Tae(l)||kt.isArguments(l)?(u=o,kt.isArguments(o)?u=axe(o):(!kt.isObject(o)||kt.isFunction$1(o))&&(u=kt.initCloneObject(l))):f=!1}f&&(s.set(l,u),i(u,l,n,a,s),s.delete(l)),t9(r,t,u)}function kae(r,e,t,n,i){r!==e&&Eae(e,function(a,s){if(i||(i=new kt.Stack),kt.isObject(a))sxe(r,e,s,t,kae,n,i);else{var o=n?n(r9(r,s),a,s+"",r,e,i):void 0;o===void 0&&(o=a),t9(r,s,o)}},kt.keysIn)}var X0=J2e(function(r,e,t){kae(r,e,t)}),jl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _b(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function oxe(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var WM={exports:{}},lxe=WM.exports,gj;function cxe(){return gj||(gj=1,function(r,e){(function(t,n){r.exports=n()})(lxe,function(){var t=1e3,n=6e4,i=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",u="week",f="month",h="quarter",d="year",p="date",v="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var A=["th","st","nd","rd"],C=I%100;return"["+I+(A[(C-20)%10]||A[C]||A[0])+"]"}},b=function(I,A,C){var L=String(I);return!L||L.length>=A?I:""+Array(A+1-L.length).join(C)+I},x={s:b,z:function(I){var A=-I.utcOffset(),C=Math.abs(A),L=Math.floor(C/60),R=C%60;return(A<=0?"+":"-")+b(L,2,"0")+":"+b(R,2,"0")},m:function I(A,C){if(A.date()<C.date())return-I(C,A);var L=12*(C.year()-A.year())+(C.month()-A.month()),R=A.clone().add(L,f),P=C-R<0,V=A.clone().add(L+(P?-1:1),f);return+(-(L+(C-R)/(P?R-V:V-R))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:f,y:d,w:u,d:c,D:p,h:l,m:o,s,ms:a,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},w="en",_={};_[w]=m;var S="$isDayjsObject",T=function(I){return I instanceof N||!(!I||!I[S])},E=function I(A,C,L){var R;if(!A)return w;if(typeof A=="string"){var P=A.toLowerCase();_[P]&&(R=P),C&&(_[P]=C,R=P);var V=A.split("-");if(!R&&V.length>1)return I(V[0])}else{var F=A.name;_[F]=A,R=F}return!L&&R&&(w=R),R||!L&&w},M=function(I,A){if(T(I))return I.clone();var C=typeof A=="object"?A:{};return C.date=I,C.args=arguments,new N(C)},D=x;D.l=E,D.i=T,D.w=function(I,A){return M(I,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var N=function(){function I(C){this.$L=E(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[S]=!0}var A=I.prototype;return A.parse=function(C){this.$d=function(L){var R=L.date,P=L.utc;if(R===null)return new Date(NaN);if(D.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var V=R.match(g);if(V){var F=V[2]-1||0,U=(V[7]||"0").substring(0,3);return P?new Date(Date.UTC(V[1],F,V[3]||1,V[4]||0,V[5]||0,V[6]||0,U)):new Date(V[1],F,V[3]||1,V[4]||0,V[5]||0,V[6]||0,U)}}return new Date(R)}(C),this.init()},A.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},A.$utils=function(){return D},A.isValid=function(){return this.$d.toString()!==v},A.isSame=function(C,L){var R=M(C);return this.startOf(L)<=R&&R<=this.endOf(L)},A.isAfter=function(C,L){return M(C)<this.startOf(L)},A.isBefore=function(C,L){return this.endOf(L)<M(C)},A.$g=function(C,L,R){return D.u(C)?this[L]:this.set(R,C)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(C,L){var R=this,P=!!D.u(L)||L,V=D.p(C),F=function(de,ee){var J=D.w(R.$u?Date.UTC(R.$y,ee,de):new Date(R.$y,ee,de),R);return P?J:J.endOf(c)},U=function(de,ee){return D.w(R.toDate()[de].apply(R.toDate("s"),(P?[0,0,0,0]:[23,59,59,999]).slice(ee)),R)},B=this.$W,W=this.$M,q=this.$D,K="set"+(this.$u?"UTC":"");switch(V){case d:return P?F(1,0):F(31,11);case f:return P?F(1,W):F(0,W+1);case u:var he=this.$locale().weekStart||0,ie=(B<he?B+7:B)-he;return F(P?q-ie:q+(6-ie),W);case c:case p:return U(K+"Hours",0);case l:return U(K+"Minutes",1);case o:return U(K+"Seconds",2);case s:return U(K+"Milliseconds",3);default:return this.clone()}},A.endOf=function(C){return this.startOf(C,!1)},A.$set=function(C,L){var R,P=D.p(C),V="set"+(this.$u?"UTC":""),F=(R={},R[c]=V+"Date",R[p]=V+"Date",R[f]=V+"Month",R[d]=V+"FullYear",R[l]=V+"Hours",R[o]=V+"Minutes",R[s]=V+"Seconds",R[a]=V+"Milliseconds",R)[P],U=P===c?this.$D+(L-this.$W):L;if(P===f||P===d){var B=this.clone().set(p,1);B.$d[F](U),B.init(),this.$d=B.set(p,Math.min(this.$D,B.daysInMonth())).$d}else F&&this.$d[F](U);return this.init(),this},A.set=function(C,L){return this.clone().$set(C,L)},A.get=function(C){return this[D.p(C)]()},A.add=function(C,L){var R,P=this;C=Number(C);var V=D.p(L),F=function(W){var q=M(P);return D.w(q.date(q.date()+Math.round(W*C)),P)};if(V===f)return this.set(f,this.$M+C);if(V===d)return this.set(d,this.$y+C);if(V===c)return F(1);if(V===u)return F(7);var U=(R={},R[o]=n,R[l]=i,R[s]=t,R)[V]||1,B=this.$d.getTime()+C*U;return D.w(B,this)},A.subtract=function(C,L){return this.add(-1*C,L)},A.format=function(C){var L=this,R=this.$locale();if(!this.isValid())return R.invalidDate||v;var P=C||"YYYY-MM-DDTHH:mm:ssZ",V=D.z(this),F=this.$H,U=this.$m,B=this.$M,W=R.weekdays,q=R.months,K=R.meridiem,he=function(ee,J,Z,le){return ee&&(ee[J]||ee(L,P))||Z[J].slice(0,le)},ie=function(ee){return D.s(F%12||12,ee,"0")},de=K||function(ee,J,Z){var le=ee<12?"AM":"PM";return Z?le.toLowerCase():le};return P.replace(y,function(ee,J){return J||function(Z){switch(Z){case"YY":return String(L.$y).slice(-2);case"YYYY":return D.s(L.$y,4,"0");case"M":return B+1;case"MM":return D.s(B+1,2,"0");case"MMM":return he(R.monthsShort,B,q,3);case"MMMM":return he(q,B);case"D":return L.$D;case"DD":return D.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return he(R.weekdaysMin,L.$W,W,2);case"ddd":return he(R.weekdaysShort,L.$W,W,3);case"dddd":return W[L.$W];case"H":return String(F);case"HH":return D.s(F,2,"0");case"h":return ie(1);case"hh":return ie(2);case"a":return de(F,U,!0);case"A":return de(F,U,!1);case"m":return String(U);case"mm":return D.s(U,2,"0");case"s":return String(L.$s);case"ss":return D.s(L.$s,2,"0");case"SSS":return D.s(L.$ms,3,"0");case"Z":return V}return null}(ee)||V.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(C,L,R){var P,V=this,F=D.p(L),U=M(C),B=(U.utcOffset()-this.utcOffset())*n,W=this-U,q=function(){return D.m(V,U)};switch(F){case d:P=q()/12;break;case f:P=q();break;case h:P=q()/3;break;case u:P=(W-B)/6048e5;break;case c:P=(W-B)/864e5;break;case l:P=W/i;break;case o:P=W/n;break;case s:P=W/t;break;default:P=W}return R?P:D.a(P)},A.daysInMonth=function(){return this.endOf(f).$D},A.$locale=function(){return _[this.$L]},A.locale=function(C,L){if(!C)return this.$L;var R=this.clone(),P=E(C,L,!0);return P&&(R.$L=P),R},A.clone=function(){return D.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},I}(),k=N.prototype;return M.prototype=k,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",f],["$y",d],["$D",p]].forEach(function(I){k[I[1]]=function(A){return this.$g(A,I[0],I[1])}}),M.extend=function(I,A){return I.$i||(I(A,N,M),I.$i=!0),M},M.locale=E,M.isDayjs=T,M.unix=function(I){return M(1e3*I)},M.en=_[w],M.Ls=_,M.p={},M})}(WM)),WM.exports}var uxe=cxe();const fxe=_b(uxe),hxe=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],dxe=[{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"}],pxe=r=>{var a;let e=r;const t=[];let n="",i=0;for(const s of e)i++,s.includes("(")||n.includes("(")||s.includes(")")||n.includes(")")||s.includes("&")||n.includes("&")||s.includes("|")||n.includes("|")?(n+=s.trim(),(((a=kt.cloneDeep(n))==null?void 0:a[(n==null?void 0:n.length)-1])===")"||(e==null?void 0:e[i])==="|"||(e==null?void 0:e[i])==="&")&&!(n!=null&&n.includes("&"))&&!(n!=null&&n.includes("|"))?(t.push(n.replace(/\/\*[\s\S]*?\*\//g,"")),n=""):n==="&&"||n==="||"?(t.push(n.replace(/\/\*[\s\S]*?\*\//g,"")),n=""):i===(r==null?void 0:r.length)&&(t.push(n.replace(/\/\*[\s\S]*?\*\//g,"")),n="")):n+=s.trim();return(n==null?void 0:n.length)!==0&&t.push(n.replace(/\/\*[\s\S]*?\*\//g,"")),t},vxe=r=>{var a;let e=r==null?void 0:r.replaceAll("=","#"),t=(a=pxe(e))==null?void 0:a.map(s=>(s!=null&&s.includes("(")&&(s="("+(s==null?void 0:s.replaceAll("(",""))),s)),n=[],i={};return t==null||t.forEach((s,o)=>{var l,c,u,f,h;if(!(s!=null&&s.includes("&&"))&&!(s!=null&&s.includes("||"))){let d=s;(s==null?void 0:s[(s==null?void 0:s.length)-1])===")"&&(d=s.slice(0,(s==null?void 0:s.length)-1)),(d==null?void 0:d[0])==="("&&(d=d.slice(1,d==null?void 0:d.length)),d!=null&&d.includes("[")&&(d=(f=(l=d==null?void 0:d.slice(1,d==null?void 0:d.length))==null?void 0:l.split(":"))==null?void 0:f[((u=(c=d==null?void 0:d.slice(1,d==null?void 0:d.length))==null?void 0:c.split(":"))==null?void 0:u.length)-1]),d=d==null?void 0:d.split("#");let p=d[0].replaceAll("'","").replaceAll("]",""),v=(h=d[1])==null?void 0:h.replaceAll("'","");(p==null?void 0:p[(p==null?void 0:p.length)-1])!=="!"?i[p]=v:i[p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1)]="!"+v}else s==="&&"||s==="||"&&(n.push(i),i={});o===t.length-1&&(n.push(i),i={})}),n},OD=kt.defineStore("modelTableComp",{state:()=>({tableIndex:0,tableShowThree:"",multipleTableConst:"."}),actions:{setTableIndex(r){this.tableIndex=r},setTableShowThree(r){this.tableShowThree=r}}}),mxe=OD(kt.pinia),{multipleTableConst:ic}=kt.storeToRefs(mxe),Nu=r=>{let e=[];function t(i,a=""){Array.isArray(i)&&(i==null||i.forEach(s=>{Array.isArray(s)||(s=[s]),s==null||s.forEach(o=>{var l,c,u,f,h,d,p,v,g,y,m,b;if(!(o!=null&&o.children)||o.children.length===0)o.prop=a===""?o==null?void 0:o.prop:a+ic.value+((f=(l=o==null?void 0:o.prop)==null?void 0:l.split(ic.value))==null?void 0:f[((u=(c=o==null?void 0:o.prop)==null?void 0:c.split(ic.value))==null?void 0:u.length)-1]),e.push(o.prop);else{let x=a===""?a+((v=(h=o==null?void 0:o.prop)==null?void 0:h.split(ic.value))==null?void 0:v[((p=(d=o==null?void 0:o.prop)==null?void 0:d.split(ic.value))==null?void 0:p.length)-1]):a+ic.value+((b=(g=o==null?void 0:o.prop)==null?void 0:g.split(ic.value))==null?void 0:b[((m=(y=o==null?void 0:o.prop)==null?void 0:y.split(ic.value))==null?void 0:m.length)-1]);n(o.children,x)}})}))}function n(i,a=""){i==null||i.forEach(s=>{var o,l,c,u,f,h,d,p,v,g,y,m;if(!(s!=null&&s.children)||s.children.length===0)s.prop=a===""?s==null?void 0:s.prop:a+ic.value+((u=(o=s==null?void 0:s.prop)==null?void 0:o.split(ic.value))==null?void 0:u[((c=(l=s==null?void 0:s.prop)==null?void 0:l.split(ic.value))==null?void 0:c.length)-1]),e.push(s.prop);else{let b=a===""?a+((p=(f=s==null?void 0:s.prop)==null?void 0:f.split(ic.value))==null?void 0:p[((d=(h=s==null?void 0:s.prop)==null?void 0:h.split(ic.value))==null?void 0:d.length)-1]):a+ic.value+((m=(v=s==null?void 0:s.prop)==null?void 0:v.split(ic.value))==null?void 0:m[((y=(g=s==null?void 0:s.prop)==null?void 0:g.split(ic.value))==null?void 0:y.length)-1]);n(s.children,b)}})}return t(r),e},gxe=(r,e,t)=>{var i;let n=(i=kt.cloneDeep(r))==null?void 0:i.map(a=>(a=a.filter(s=>!(s!=null&&s.id)),a));return n=n==null?void 0:n.map(a=>{var s;return a=(s=a.map((o,l)=>{let c={};if(t!=null&&t.find(u=>u===e[l]))return c[e[l]]=o,c}))==null?void 0:s.filter(o=>o),a}),n},yxe=(r,e)=>{var s,o;const t=kt.cloneDeep(r),n=(s=t==null?void 0:t.find(l=>(l==null?void 0:l.key)==="header"))==null?void 0:s.contents,i=(o=t==null?void 0:t.find(l=>(l==null?void 0:l.key)==="tableContents"))==null?void 0:o.contents;return gxe(i,Nu(n).slice(0,Nu(n).length-1),e)},Cae=(r,e)=>{const t=e;return r==null?void 0:r.map(n=>{var a;let i=n;if(!Array.isArray(i)){let s=[];for(let o in i)s.push({key:o,value:i==null?void 0:i[o]});return s}return n=(a=i==null?void 0:i.map((s,o)=>{var l,c;return s!=null&&s.id?{key:"id",value:s==null?void 0:s.id}:t!=null&&t.find(u=>u==null?void 0:u.id)||i!=null&&i.find(u=>u==null?void 0:u.id)?{key:(l=t[o-1])==null?void 0:l.label,value:s}:{key:(c=t[o])==null?void 0:c.label,value:s}}))==null?void 0:a.filter(s=>s.key!=="操作"),n})},bxe=async r=>{var t,n,i,a;let e="";if((n=(t=kt.cloneDeep(r))==null?void 0:t.split("/"))==null||n.forEach((s,o)=>{var l,c;o!==((c=(l=kt.cloneDeep(r))==null?void 0:l.split("/"))==null?void 0:c.length)-1&&(e=e===""?e+s:e+"/"+s)}),e!==""){let s="";const o=await wh(e,sessionStorage.getItem("systemKey"),"");(a=(i=o==null?void 0:o[0])==null?void 0:i.compData)==null||a.forEach(l=>{var c;(l==null?void 0:l.key)==="tableContents"&&((c=l==null?void 0:l.contents)==null||c.forEach((u,f)=>{if(f===0){let h=u==null?void 0:u.filter(d=>!(d!=null&&d.id));s=e+"/"+(h==null?void 0:h[0])}}))}),await Oae(s,r)}},FD=r=>{try{return JSON.parse(r),!0}catch{return!1}},yj=(r,e)=>kt.isEqual(r,e),xxe=kt.useLoginState(kt.pinia),{loginUserInfo:r5}=kt.storeToRefs(xxe),hL=[{key:"@Num",value:"onNumSlice",order:1},{key:"@Select",value:"onRandomContents",order:2},{key:"@Condition",value:"onConditionContents",order:3},{key:"@Pace",value:"onPaceContents",order:1}],Mae=r=>{let e=r;if(e!=null&&e.every(t=>Array.isArray(t))){let t=[];const n=i=>{i==null||i.forEach(a=>{var s;a!=null&&a.children&&((s=a==null?void 0:a.children)==null?void 0:s.length)>0?n(a==null?void 0:a.children):t.push(a)})};return n(e==null?void 0:e[0]),t}else return e},wxe=(r,e,t)=>{var a,s,o,l,c,u,f,h,d;let n=JSON.parse((l=(o=(s=(a=r==null?void 0:r.replaceAll('"',"“"))==null?void 0:a.replaceAll("““","“"))==null?void 0:s.replaceAll("“",'"'))==null?void 0:o.replaceAll(':",',':"",'))==null?void 0:l.replaceAll(':"}',':""}')),i=(d=(h=(f=(u=t==null?void 0:t.split("["))==null?void 0:u[((c=t==null?void 0:t.split("["))==null?void 0:c.length)-1])==null?void 0:f.split("]"))==null?void 0:h[0])==null?void 0:d.split(",");return e.toUpperCase()==="SYNC"||e.toUpperCase()==="QUOTE"&&(n=n==null?void 0:n.map(p=>(p=p==null?void 0:p.map(v=>{var g;return(v==null?void 0:v.key)==="header"&&(v.contents=(g=v.contents)==null?void 0:g.map(y=>(i!=null&&i.find(m=>m===(y==null?void 0:y.prop))&&(y.disabled=!0),y))),v}),p))),n},Dae=(r,e,t)=>{var s,o,l,c,u,f,h,d;let n;FD((c=(l=(o=(s=r==null?void 0:r.replaceAll('"',"“"))==null?void 0:s.replaceAll("““","“"))==null?void 0:o.replaceAll("“",'"'))==null?void 0:l.replaceAll(':",',':"",'))==null?void 0:c.replaceAll(':"}',':""}'))?n=JSON.parse((d=(h=(f=(u=r==null?void 0:r.replaceAll('"',"“"))==null?void 0:u.replaceAll("““","“"))==null?void 0:f.replaceAll("“",'"'))==null?void 0:h.replaceAll(':",',':"",'))==null?void 0:d.replaceAll(':"}',':""}')):n=r;let i=e;(e==null?void 0:e[0])!=="("&&(i="("+e+")");let a=vxe(i);if((a==null?void 0:a.length)>0){let p=[];a==null||a.forEach(v=>{var y,m,b,x,w;let g={};for(let _ in v){let S=kt.cloneDeep(_);S!=null&&S.includes("[")||(v[_].toUpperCase()==="@LOGINUSER"?g[S]=(y=r5.value)!=null&&y.account?(m=r5.value)==null?void 0:m.account:((b=r5.value)==null?void 0:b.姓名)??((x=r5.value)==null?void 0:x.账号):(w=v[_])!=null&&w.includes("[")||(g[S]=v[_]))}p.push(g)}),n=n==null?void 0:n.map(v=>{var y,m;let g=(y=v==null?void 0:v.find(b=>(b==null?void 0:b.key)==="header"))==null?void 0:y.contents;return g=(m=Mae(g))==null?void 0:m.filter(b=>(b==null?void 0:b.label)!=="操作"),v=v==null?void 0:v.map(b=>{if((b==null?void 0:b.key)==="tableContents"){let w=Cae(b==null?void 0:b.contents,g);p==null||p.forEach(_=>{var S;for(let T in _)((S=_[T])==null?void 0:S[0])!=="!"?w=w==null?void 0:w.filter(E=>{var M;return((M=E==null?void 0:E.find(D=>(D==null?void 0:D.key)===T))==null?void 0:M.value)===_[T]}):w=w==null?void 0:w.filter(E=>{var M;return((M=E==null?void 0:E.find(D=>(D==null?void 0:D.key)===T))==null?void 0:M.value)!==_[T]})}),(w==null?void 0:w.length)===0?b.contents=[]:b.contents=w==null?void 0:w.map(_=>{let S={};return _==null||_.forEach(T=>{S[T==null?void 0:T.key]=T==null?void 0:T.value}),S})}return b}),v})}return n},_xe=(r,e,t)=>{var i,a,s,o;let n=JSON.parse((o=(s=(a=(i=r==null?void 0:r.replaceAll('"',"“"))==null?void 0:i.replaceAll("““","“"))==null?void 0:a.replaceAll("“",'"'))==null?void 0:s.replaceAll(':",',':"",'))==null?void 0:o.replaceAll(':"}',':""}'));return e.toUpperCase()==="ALL"||(n=n==null?void 0:n.map(l=>(l=l==null?void 0:l.map(c=>{var u;return(c==null?void 0:c.key)==="tableContents"&&(c.contents=(u=c.contents)==null?void 0:u.slice(0,parseInt(e))),c}),l))),n},Sxe=r=>{for(let e=r.length-1;e>0;e--){const t=Math.floor(Math.random()*(e+1));[r[e],r[t]]=[r[t],r[e]]}return r},Txe=(r,e,t)=>{var n,i,a,s,o,l,c,u;if(e==="Sequence")return JSON.parse((s=(a=(i=(n=r==null?void 0:r.replaceAll('"',"“"))==null?void 0:n.replaceAll("““","“"))==null?void 0:i.replaceAll("“",'"'))==null?void 0:a.replaceAll(':",',':"",'))==null?void 0:s.replaceAll(':"}',':""}'));{let f=JSON.parse((u=(c=(l=(o=r==null?void 0:r.replaceAll('"',"“"))==null?void 0:o.replaceAll("““","“"))==null?void 0:l.replaceAll("“",'"'))==null?void 0:c.replaceAll(':",',':"",'))==null?void 0:u.replaceAll(':"}',':""}'));return f=f==null?void 0:f.map(h=>(h=h==null?void 0:h.map(d=>((d==null?void 0:d.key)==="tableContents"&&(d.contents=Sxe(d.contents)),d)),h)),f}},Sw=(r,e)=>Array.isArray(r)?r==null?void 0:r.map(n=>{var i,a,s,o,l,c,u;if(Array.isArray(n)?n=n:n=[n],(i=n==null?void 0:n.filter(f=>!(f!=null&&f.id)||typeof(f==null?void 0:f.id)=="string"))!=null&&i.every(f=>typeof f!="object"||f===null))return n;if((a=n==null?void 0:n.filter(f=>!(f!=null&&f.id)||typeof(f==null?void 0:f.id)=="string"))!=null&&a.some(f=>Array.isArray(f)))return n;{let f=[],h=(n==null?void 0:n.find(d=>(d==null?void 0:d.id)&&typeof(d==null?void 0:d.id)=="number"))??{id:(s=n==null?void 0:n[0])==null?void 0:s.id};if(f.push(h),Array.isArray(e==null?void 0:e[0])){const d=(o=n==null?void 0:n.filter(p=>!(p!=null&&p.id)||typeof(p==null?void 0:p.id)=="string"))==null?void 0:o[0];(l=Xw(kt.cloneDeep(e==null?void 0:e[0])))==null||l.forEach(p=>{f.push(d==null?void 0:d[(p==null?void 0:p.prop)??(p==null?void 0:p.label)??p])})}else{const d=(c=n==null?void 0:n.filter(p=>!(p!=null&&p.id)||typeof(p==null?void 0:p.id)=="string"))==null?void 0:c[0];(u=Xw(kt.cloneDeep(e)))==null||u.forEach(p=>{f.push(d==null?void 0:d[(p==null?void 0:p.prop)??(p==null?void 0:p.label)??p])})}return f}}):void 0,Exe=r=>{var i,a,s,o;const e=r;let t=[];e.compData=(i=e.compData)==null?void 0:i.filter(l=>(l==null?void 0:l.key)!=="tableContents"&&(l==null?void 0:l.key)!=="tableIndex");const n=(s=(a=kt.cloneDeep(e.compData))==null?void 0:a.find(l=>(l==null?void 0:l.key)==="tableIndexColumn"))==null?void 0:s.contents;return(o=kt.cloneDeep(e.compData))==null||o.forEach(l=>{if((l==null?void 0:l.key)!=="tableIndexColumn"&&(l==null?void 0:l.key)!=="header")t.push(l);else if((l==null?void 0:l.key)==="header"){let c=l.contents;n&&(c!=null&&c.every(u=>Array.isArray(u))?c==null||c[0].unshift({label:n}):c.unshift({label:n})),t.push({key:"header",contents:c})}}),e.compData=t,e},Axe=r=>{var a,s,o,l,c;const e=(a=r.compData)==null?void 0:a.filter(u=>(u==null?void 0:u.key)==="tableContents"||(u==null?void 0:u.key)==="tableIndex"),t=(o=(s=e==null?void 0:e.find(u=>(u==null?void 0:u.key)==="tableIndex"))==null?void 0:s.contents)==null?void 0:o.map(u=>u.label),n=(l=e==null?void 0:e.find(u=>(u==null?void 0:u.key)==="tableContents"))==null?void 0:l.contents;let i=[];return(t==null?void 0:t.length)>0&&(n!=null&&n.every(u=>Array.isArray(u)))?i=t==null?void 0:t.map((u,f)=>n[f]?[u,...n[f]]:[u]):Array.isArray(n==null?void 0:n[0])&&((c=n==null?void 0:n[0])!=null&&c.every(u=>Array.isArray(u)))?i=n==null?void 0:n[0]:Array.isArray(n==null?void 0:n[0])?i=n:i.push(n),i},kxe=r=>{const e=[];function t(n){!n||n.length===0||(e.push(n==null?void 0:n.map(i=>({label:i.label}))),n==null||n.forEach(i=>{i!=null&&i.children&&(i==null?void 0:i.children.length)>0&&t(i==null?void 0:i.children)}))}return t(r),e},Cxe=r=>{const e=[];function t(n,i=[]){!n||n.length===0||(e.push({key:i==null?void 0:i.filter(a=>!Array.isArray(a)),value:n}),n==null||n.forEach(a=>{a!=null&&a.some(s=>Array.isArray(s))&&t(a.find(s=>Array.isArray(s)),a)}))}return t(r),e},Mxe=r=>{const e=[];function t(n){!n||n.length===0||(e.push(n==null?void 0:n.map(i=>i==null?void 0:i.filter(a=>!Array.isArray(a)))),n==null||n.forEach(i=>{i!=null&&i.some(a=>Array.isArray(a))&&t(i.find(a=>Array.isArray(a)))}))}return t(r),e},Dxe=r=>{const e=[];function t(n){var i;!n||n.length===0||(n!=null&&n.every(a=>!Array.isArray(a))?e.push(n):(e.push((i=n==null?void 0:n.map(a=>a==null?void 0:a.filter(s=>!Array.isArray(s))))==null?void 0:i[0]),n==null||n.forEach(a=>{a!=null&&a.some(s=>Array.isArray(s))&&t(a.find(s=>Array.isArray(s)))})))}return t(r),e},Rxe=(r,e)=>{let t;function n(i,a,s=1){var l;if(!i||i.length===0)return;const o=(l=kt.cloneDeep(a))==null?void 0:l.map(c=>c==null?void 0:c.filter(u=>!Array.isArray(u)));return o!=null&&o.find(c=>yj(c,i==null?void 0:i.key))?(a==null||a.forEach(c=>{!n(i,c.find(f=>Array.isArray(f)))&&yj(c.filter(f=>!Array.isArray(f)),i==null?void 0:i.key)&&(t={type:s,contents:c.filter(f=>!Array.isArray(f))})}),!0):!1}return n(r,e,0),t},bj=(r,e)=>{function t(n,i){return!n||n.length===0||n==null?void 0:n.map((s,o)=>{var c,u;let l=s;return l.unshift((c=i==null?void 0:i[o])==null?void 0:c.label),l.some(f=>Array.isArray(f))&&(l[l.length-1]=t(l.find(f=>Array.isArray(f)),(u=i==null?void 0:i[o])==null?void 0:u.children)),l})}return t(r,e)},Ixe=r=>{var t,n,i,a,s,o,l,c,u,f,h,d,p,v,g,y,m,b,x,w,_,S,T,E,M;const e=r;if((r==null?void 0:r.comp)==="Table"){if((i=(n=(t=r.compData)==null?void 0:t.find(D=>(D==null?void 0:D.key)==="tableIndex"))==null?void 0:n.contents)!=null&&i.every(D=>!(D!=null&&D.children))||!((a=r.compData)!=null&&a.find(D=>(D==null?void 0:D.key)==="tableIndex")))return((l=(o=(s=e.compData)==null?void 0:s.find(D=>(D==null?void 0:D.key)==="tableContents"))==null?void 0:o.contents)==null?void 0:l.length)===1&&((h=(f=(u=(c=e.compData)==null?void 0:c.find(D=>(D==null?void 0:D.key)==="tableContents"))==null?void 0:u.contents)==null?void 0:f[0])!=null&&h.every(D=>Array.isArray(D)))?(e.compData=(d=e.compData)==null?void 0:d.map(D=>{var N;return(D==null?void 0:D.key)==="tableContents"&&(D.contents=(N=D.contents)==null?void 0:N[0]),D}),[e]):[e];{let D=[];const N=e.compData,k=(p=kt.cloneDeep(N))==null?void 0:p.find(F=>(F==null?void 0:F.key)==="tableIndexColumn"),I=(v=kt.cloneDeep(N))==null?void 0:v.find(F=>(F==null?void 0:F.key)==="extraButton"),A=(g=kt.cloneDeep(N))==null?void 0:g.find(F=>(F==null?void 0:F.key)==="rowButton"),C=Dxe((m=(y=kt.cloneDeep(N))==null?void 0:y.find(F=>(F==null?void 0:F.key)==="header"))==null?void 0:m.contents),L=(b=kt.cloneDeep(N))==null?void 0:b.find(F=>(F==null?void 0:F.key)==="tableIndex"),R=Mxe((w=(x=kt.cloneDeep(N))==null?void 0:x.find(F=>(F==null?void 0:F.key)==="tableContents"))==null?void 0:w.contents),P=bj((S=(_=kt.cloneDeep(N))==null?void 0:_.find(F=>(F==null?void 0:F.key)==="tableContents"))==null?void 0:S.contents,L==null?void 0:L.contents),V=Cxe(bj((E=(T=kt.cloneDeep(N))==null?void 0:T.find(F=>(F==null?void 0:F.key)==="tableContents"))==null?void 0:E.contents,L==null?void 0:L.contents));if(L)return(M=kxe(L.contents))==null||M.forEach((F,U)=>{var W;let B=[];B.push({key:"tableIndex",contents:F}),B.push(k),B.push(I),B.push(A),B.push({key:"tableContents",contents:R[U]}),B.push({key:"header",contents:C!=null&&C[U]?[C==null?void 0:C[U]]:[C==null?void 0:C[0]]}),D.push({comp:"Table",compData:B,name:"",parentTableContents:((W=Rxe(V[U],P))==null?void 0:W.contents)??""})}),D}}else return[e]},lg=(r,e)=>{let t={};return Array.isArray(r)?r!=null&&r.find(n=>n==null?void 0:n.id)?r==null||r.forEach((n,i)=>{e!=null&&e[i-1]&&!(n!=null&&n.id)?t[e[i-1]]=n:n!=null&&n.id&&(t.id=n==null?void 0:n.id)}):r==null||r.forEach((n,i)=>{e!=null&&e[i]&&(t[e[i]]=n)}):[r].forEach((n,i)=>{t[e[i]]=n}),t},Lxe=r=>{var t,n;let e="";return(n=(t=kt.cloneDeep(r))==null?void 0:t.split("/"))==null||n.forEach((i,a)=>{var s,o;a<((o=(s=kt.cloneDeep(r))==null?void 0:s.split("/"))==null?void 0:o.length)-1&&(e=e===""?e+i:e+"/"+i)}),e},Pxe=async r=>{const e=kt.cloneDeep(r);let t=[],n=[];e==null||e.forEach(i=>{!(n!=null&&n.find(a=>(a==null?void 0:a.parentKey)===(i==null?void 0:i.parentKey)))&&(i==null?void 0:i.parentKey)!==""&&n.push(i)}),n=n==null?void 0:n.map(i=>{var a;return i.content=(a=i.content)==null?void 0:a.map(s=>{var o;return s.key={pageKey:(i==null?void 0:i.parentKey)??"",systemKey:((o=s.key)==null?void 0:o.systemKey)??"",version:1,type:"subStructure"},s}),i.content}),(n==null?void 0:n.length)>0&&(t=n==null?void 0:n.map(async i=>{let a;return(i==null?void 0:i.length)>0&&(a=await kt.batchAddInsofDataApi({dataList:i})),a})),await Promise.all(t)},E_=kt.defineStore("originalState",{state:()=>({originalPath:"^"}),actions:{}}),Nxe=Th.useModelComp(kt.pinia),{routeToChildPath:xj}=kt.storeToRefs(Nxe),Oxe=kt.useLoginState(kt.pinia),{loginUserInfo:U6,cryptoInfo:dL}=kt.storeToRefs(Oxe),Fxe=E_(kt.pinia),{originalPath:wj}=kt.storeToRefs(Fxe),Bxe=r=>{var e,t,n;return((t=(e=U6.value)==null?void 0:e.layer)==null?void 0:t.toUpperCase())==="SUPERADMIN"?!0:((n=U6.value)==null?void 0:n.account)===(r==null?void 0:r.account)},Uxe=async(r,e,t)=>{const n=Th.getPageDataAsync("/系统管理/角色管理"),i=Th.getPageDataAsync("/系统管理/部门管理");return await Promise.all([n,i]).then(s=>{var c,u;const o=(c=s==null?void 0:s[0])==null?void 0:c.map(f=>({label:f==null?void 0:f.roleName,value:f==null?void 0:f.roleName})),l=(u=s==null?void 0:s[1])==null?void 0:u.map(f=>({label:f==null?void 0:f.deptName,value:f==null?void 0:f.deptName}));return r==null?void 0:r.map(f=>{var h;return{...f,compData:(h=f==null?void 0:f.compData)==null?void 0:h.map(d=>{var p,v;return(d==null?void 0:d.key)==="header"?{...d,contents:(p=d==null?void 0:d.contents)==null?void 0:p.map(g=>g.prop==="userDept"?{...g,options:l}:g.prop==="userRoles"?{...g,options:o}:g)}:(d==null?void 0:d.key)==="tableContents"?{...d,contents:(v=d==null?void 0:d.contents)==null?void 0:v.map(g=>{var y;return{...g,password:Bxe(g)?Th.decryptData(g==null?void 0:g.password,(y=dL==null?void 0:dL.value)==null?void 0:y.privateKey):g==null?void 0:g.password}})}:d})}})})},zxe=async(r,e)=>{const t=sessionStorage.getItem("authority"),n=JSON.parse(t||"");if(Array.isArray(n)){let i;xj.value?i=Array.isArray(n)&&(n==null?void 0:n.filter(o=>(o==null?void 0:o.includes(r))||(o==null?void 0:o.includes(xj.value)))):i=Array.isArray(n)&&(n==null?void 0:n.filter(o=>o==null?void 0:o.includes(r)));const a=i==null?void 0:i.map(o=>{var l;return((l=o==null?void 0:o.split("/"))==null?void 0:l.pop())||""});return e==null?void 0:e.map(o=>{var l;return{...o,compData:(l=o==null?void 0:o.compData)==null?void 0:l.map(c=>{var u;return(c==null?void 0:c.key)==="rowButton"||(c==null?void 0:c.key)==="extraButton"?{...c,contents:(u=c==null?void 0:c.contents)==null?void 0:u.filter(f=>a==null?void 0:a.includes(f==null?void 0:f.label))}:c})}})}else return typeof n=="string"&&(n==null?void 0:n.toUpperCase())==="SUPERADMIN"?r==="/系统管理/用户管理"?await Uxe(e):e:[]},Vxe=(r,e)=>{var a,s,o,l;const t=(s=(a=e["系统管理/角色管理"])==null?void 0:a.filter(c=>{var u;return((u=c==null?void 0:c.key)==null?void 0:u.type)==="data"}))==null?void 0:s.map(c=>c.value.tableData),n=(l=(o=r==null?void 0:r.value)==null?void 0:o.tableData)==null?void 0:l.角色名称,i=t==null?void 0:t.find(c=>(c==null?void 0:c.角色名称)===n);return i==null?void 0:i.数据范围};var GM=(r=>(r[r.全部数据权限=0]="全部数据权限",r[r.本部门数据权限=1]="本部门数据权限",r[r.本部门及以下数据权限=2]="本部门及以下数据权限",r[r.仅本人数据权限=3]="仅本人数据权限",r[r.自定义数据权限=4]="自定义数据权限",r))(GM||{});const Rae=(r,e,t)=>{var s,o,l,c;if(((l=(o=(s=U6.value)==null?void 0:s.key)==null?void 0:o.layer)==null?void 0:l.toUpperCase())==="SUPERADMIN"||!t)return r;const n=(c=t==null?void 0:t["系统管理/用户管理"])==null?void 0:c.find(u=>{var f;return(u==null?void 0:u.id)===((f=U6.value)==null?void 0:f.id)}),i=Vxe(n,t);if(!i)return r;switch(GM==null?void 0:GM[i]){case 0:return r;case 1:return e?r===null&&typeof r!="object"?r:Object.fromEntries(Object.entries(r).filter(([f,h])=>{var v,g,y,m,b,x,w,_,S;const d=h==null?void 0:h[1],p=f[(f==null?void 0:f.length)-1]===wj.value;return((g=(v=d==null?void 0:d.key)==null?void 0:v.createUserLayer)==null?void 0:g.toUpperCase())==="SUPERADMIN"||((y=d==null?void 0:d.key)==null?void 0:y.createUserOrg)===((b=(m=n==null?void 0:n.value)==null?void 0:m.tableData)==null?void 0:b.部门名称)||((x=d==null?void 0:d.key)==null?void 0:x.createUserOrg)===((_=(w=n==null?void 0:n.value)==null?void 0:w.tableData)==null?void 0:_.部门名称)&&((S=d==null?void 0:d.key)==null?void 0:S.createUserId)===(n==null?void 0:n.id)||p})):r==null?void 0:r.filter(u=>{var f,h,d,p,v,g,y,m,b;return((h=(f=u==null?void 0:u.key)==null?void 0:f.createUserLayer)==null?void 0:h.toUpperCase())==="SUPERADMIN"||((d=u==null?void 0:u.key)==null?void 0:d.createUserOrg)===((v=(p=n==null?void 0:n.value)==null?void 0:p.tableData)==null?void 0:v.部门名称)||((g=u==null?void 0:u.key)==null?void 0:g.createUserOrg)===((m=(y=n==null?void 0:n.value)==null?void 0:y.tableData)==null?void 0:m.部门名称)&&((b=u==null?void 0:u.key)==null?void 0:b.createUserId)===(n==null?void 0:n.id)});case 2:break;case 3:return e?r===null&&typeof r!="object"?r:Object.fromEntries(Object.entries(r).filter(([f,h])=>{var v;const d=h==null?void 0:h[1],p=f[(f==null?void 0:f.length)-1]===wj.value;return((v=d==null?void 0:d.key)==null?void 0:v.createUserId)===(n==null?void 0:n.id)||p})):r==null?void 0:r.filter(u=>{var f;return((f=u==null?void 0:u.key)==null?void 0:f.createUserId)===(n==null?void 0:n.id)})}},n9=Th.useMenuState(kt.pinia),{activeMenuPath:i9}=kt.storeToRefs(n9);let cl="$R";const Hxe=OD(kt.pinia),{multipleTableConst:_j}=kt.storeToRefs(Hxe),Wxe=kt.useLoginState(kt.pinia),{loginUserInfo:pL}=kt.storeToRefs(Wxe),eb=Th.useModelComp(kt.pinia),Gxe=E_(kt.pinia),{originalPath:Iae}=kt.storeToRefs(Gxe),{payloadTypes:jxe}=kt.storeToRefs(eb),Kh=(r,e)=>(e==null?void 0:e.split(",")).some(n=>Object.keys(r).some(i=>i.startsWith("name")&&r[i]===n)),vL={onNumSlice:_xe,onRandomContents:Txe,onConditionContents:Dae,onPaceContents:wxe},$xe=r=>{const e=r.slice(0,r.indexOf("(")).trim(),t=vL==null?void 0:vL[e];if(typeof t!="function"){console.log(`找不到函数: ${e}`);return}const n=r.slice(r.indexOf("(")+1,r.lastIndexOf(")")),i=new Function(`return [${n}]`)();return t(...Array.isArray(i)?i:[i])},a9=(r,e,t="children")=>{var o;const n=[];let i=[],a=[],s=0;for(const l of r){const c=e.some(h=>{const[d]=h.split(".");return d===l.prop||d===l.label}),u=e.filter(h=>h.includes(".")).map(h=>h.split(".").slice(1).join("."));s=s+1;let f;if(c&&(f={...l},i.push(s),a.push(f==null?void 0:f.prop),delete f[t]),l[t]&&u.length){const h=(o=a9(l[t],u,t))==null?void 0:o.contents;h.length&&(i.push(s),a.push(f==null?void 0:f.prop),s=s+1,f=f||{...l},f[t]=h)}f&&n.push(f)}return{contents:n,ids:i,props:a}},qxe=r=>{if(!FD(r))return[r];const e=new Function(`return ${r}`)(),t=[];return((i,a="")=>{for(const s of i)if(Array.isArray(s)){const[o,l]=s;Array.isArray(l)?l.forEach(c=>t.push(`"${o}:${c}"`)):t.push(a?`"${a}:${o}"`:'"'+o+'"')}else t.push('"'+s+'"')})(e),t},Xxe=async(r,e,t,n)=>{var m,b,x,w,_,S,T,E,M,D,N,k,I,A,C,L,R,P,V,F,U,B,W,q,K,he,ie,de,ee,J,Z,le,X,ae,oe,ue,j,re,ce,Se,Me,Y,se,_e,me,pe,ne,ge,xe,Te,De,Ie,He,Le,Fe,Ge,lt,je,xt,ft,Et,At,dt,Dt,Rt,gt,Pe;let i=(b=(m=r==null?void 0:r.find(qe=>(qe==null?void 0:qe.key)==="header"))==null?void 0:m.contents)==null?void 0:b.find(qe=>qe==null?void 0:qe.columnPath);i||(i=(_=Xw((w=(x=r==null?void 0:r.find(qe=>(qe==null?void 0:qe.key)==="header"))==null?void 0:x.contents)==null?void 0:w[0]))==null?void 0:_.find(qe=>qe==null?void 0:qe.columnPath));let a="",s=(T=(S=kt.cloneDeep(i==null?void 0:i.columnPath))==null?void 0:S.replace("[",cl))==null?void 0:T.split(cl),o=(D=(M=(E=s==null?void 0:s[(s==null?void 0:s.length)-1])==null?void 0:E.replace("(",cl))==null?void 0:M.split(cl))==null?void 0:D[0];o=o==null?void 0:o.slice(0,(o==null?void 0:o.length)-1);let l=(k=(N=kt.cloneDeep(i==null?void 0:i.columnPath))==null?void 0:N.split("["+o+"]"))==null?void 0:k[0],c="",u="",f="",h=o;if(o=(A=(I=o==null?void 0:o.split(":"))==null?void 0:I[0])==null?void 0:A.replaceAll("'",""),l.includes("[")){let qe=(P=(R=(L=(C=l==null?void 0:l.split("["))==null?void 0:C[1])==null?void 0:L.split("]"))==null?void 0:R[0])==null?void 0:P.split("/");u=l,c=(U=(F=(V=l==null?void 0:l.split("["))==null?void 0:V[1])==null?void 0:F.split("]"))==null?void 0:U[0];let Xe="";t==null||t.forEach(st=>{var ht,pt,it,rt,fe;((pt=(ht=st==null?void 0:st.value)==null?void 0:ht.pageData)==null?void 0:pt.name)===(qe==null?void 0:qe[0])&&((fe=(rt=(it=st==null?void 0:st.value)==null?void 0:it.pageData)==null?void 0:rt.compData)==null||fe.forEach(Ae=>{var Ee;(Ae==null?void 0:Ae.key)==="formContent"&&((Ee=Ae==null?void 0:Ae.contents)==null||Ee.forEach(Ce=>{var Ne;if((Ce==null?void 0:Ce.prop)===(qe==null?void 0:qe[1])){let We=Hae((Ne=kt.cloneDeep(Ce))==null?void 0:Ne.optionUrl,n);Xe=(Ce==null?void 0:Ce.value)||We||""}}))}))}),f=Xe,l=((B=l==null?void 0:l.split("["))==null?void 0:B[0])+Xe}let d=[];const p=await kt.getInsofDataApi({key:{pageKey:l,systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});let v=(q=(W=h==null?void 0:h.replace("[",cl))==null?void 0:W.split(cl))==null?void 0:q[0];const g=await kt.getInsofDataApi({key:{pageKey:i9.value,systemKey:sessionStorage.getItem("systemKey"),tableId:parseInt(e),type:"data"}}),y=[];if((he=(K=g==null?void 0:g.data)==null?void 0:K.result)==null||he.forEach(qe=>{var Xe;y.push({id:qe==null?void 0:qe.id,value:qe.value.tableData,parentId:(Xe=qe==null?void 0:qe.key)==null?void 0:Xe.parentId})}),(y==null?void 0:y.length)===0){const qe=await kt.getInsofDataApi({key:{pageKey:l,systemKey:sessionStorage.getItem("systemKey"),tableId:parseInt(e),type:"data"}});(de=(ie=qe==null?void 0:qe.data)==null?void 0:ie.result)==null||de.forEach(Xe=>{var st;y.push({id:Xe==null?void 0:Xe.id,value:Xe.value.tableData,parentId:(st=Xe==null?void 0:Xe.key)==null?void 0:st.parentId})})}if(Array.isArray((ee=p==null?void 0:p.data)==null?void 0:ee.result)&&((Z=(J=p==null?void 0:p.data)==null?void 0:J.result)==null?void 0:Z.length)>0){let qe;if((v==null?void 0:v[(v==null?void 0:v.length)-1])===":"&&(v=v==null?void 0:v.slice(1,(v==null?void 0:v.length)-1)),v=(ae=(X=v==null?void 0:v.split(":"))==null?void 0:X[((le=v==null?void 0:v.split(":"))==null?void 0:le.length)-1])==null?void 0:ae.replaceAll("'",""),((ue=(oe=p==null?void 0:p.data)==null?void 0:oe.result)==null?void 0:ue.find(it=>{var rt;return Kh((rt=it==null?void 0:it.value)==null?void 0:rt.pageData,v)}))??((re=(j=p==null?void 0:p.data)==null?void 0:j.result)==null?void 0:re.find(it=>{var rt;return Kh((rt=it==null?void 0:it.value)==null?void 0:rt.pageData,o)}))){let it=(Se=(ce=p==null?void 0:p.data)==null?void 0:ce.result)==null?void 0:Se.sort((rt,fe)=>rt.id-fe.id);qe=await(it==null?void 0:it.map(async rt=>{var Ae,Ee,Ce,Ne,We,Qe,_t,Je,ut,ot,Be,ve,Oe,et,at,mt,Wt,Zt,dr,Qt,ir,Pr,br,rn,sn,Cn,ln,un,Ur,Ni,Gn,ui,ss,Ta,Bs,yi,va,$a,di,ta,Ui,oa,os,Ja,ws,_l,oi,Us,Sl,Oc,Ra,Fc;let fe;if(Kh((Ae=rt==null?void 0:rt.value)==null?void 0:Ae.pageData,v)||Kh((Ee=rt==null?void 0:rt.value)==null?void 0:Ee.pageData,o)&&((Ne=(Ce=rt==null?void 0:rt.value)==null?void 0:Ce.pageData)==null?void 0:Ne.name)===o){fe=kt.cloneDeep((Qe=(We=rt==null?void 0:rt.value)==null?void 0:We.pageData)==null?void 0:Qe.compData);let ls;Kh((_t=rt==null?void 0:rt.value)==null?void 0:_t.pageData,v)&&v===o?(ut=(Je=rt==null?void 0:rt.value)==null?void 0:Je.pageData)!=null&&ut.name1?ls={name:(Be=(ot=rt==null?void 0:rt.value)==null?void 0:ot.pageData)==null?void 0:Be.name,name0:(Oe=(ve=rt==null?void 0:rt.value)==null?void 0:ve.pageData)==null?void 0:Oe.name0,name1:(at=(et=rt==null?void 0:rt.value)==null?void 0:et.pageData)==null?void 0:at.name1}:ls={name:(Wt=(mt=rt==null?void 0:rt.value)==null?void 0:mt.pageData)==null?void 0:Wt.name,name0:(dr=(Zt=rt==null?void 0:rt.value)==null?void 0:Zt.pageData)==null?void 0:dr.name0}:ls={name:((ir=(Qt=rt==null?void 0:rt.value)==null?void 0:Qt.pageData)==null?void 0:ir.name0)||((br=(Pr=rt==null?void 0:rt.value)==null?void 0:Pr.pageData)==null?void 0:br.name)},fe.push({key:"name",contents:ls});const qa=await kt.getInsofDataApi({key:{pageKey:l,systemKey:sessionStorage.getItem("systemKey"),tableId:rt==null?void 0:rt.id,type:"data"}});let Cs;if(((sn=(rn=qa==null?void 0:qa.data)==null?void 0:rn.result)==null?void 0:sn.length)>0&&((ln=(Cn=fe==null?void 0:fe.find(Rr=>(Rr==null?void 0:Rr.key)==="header"))==null?void 0:Cn.contents)!=null&&ln.every(Rr=>!(Rr!=null&&Rr.columnPath))))Cs=(Ur=(un=qa==null?void 0:qa.data)==null?void 0:un.result)==null?void 0:Ur.map(Rr=>{var Qa;let Yr=[];return Yr.push({id:Rr==null?void 0:Rr.id}),Yr.push((Qa=Rr==null?void 0:Rr.value)==null?void 0:Qa.tableData),Yr}),fe.push({key:"tableContents",contents:Sw(Cs,(ss=(ui=(Gn=(Ni=rt==null?void 0:rt.value)==null?void 0:Ni.pageData)==null?void 0:Gn.compData)==null?void 0:ui.find(Rr=>(Rr==null?void 0:Rr.key)==="header"))==null?void 0:ss.contents)}),fe.push({key:"contentTableId",contents:rt==null?void 0:rt.id}),c!==""&&(fe!=null&&fe.find(Rr=>(Rr==null?void 0:Rr.key)==="pageColumn")&&(fe=fe==null?void 0:fe.filter(Rr=>(Rr==null?void 0:Rr.key)!=="pageColumn")),fe.push({key:"pageColumn",contents:u}),fe!=null&&fe.find(Rr=>(Rr==null?void 0:Rr.key)==="columnPath")&&(fe=fe==null?void 0:fe.filter(Rr=>(Rr==null?void 0:Rr.key)!=="columnPath")),fe.push({key:"columnPath",contents:c}),fe!=null&&fe.find(Rr=>(Rr==null?void 0:Rr.key)==="columnUsingPath")&&(fe=fe==null?void 0:fe.filter(Rr=>(Rr==null?void 0:Rr.key)!=="columnUsingPath")),fe.push({key:"columnUsingPath",contents:f}),fe!=null&&fe.find(Rr=>(Rr==null?void 0:Rr.key)==="pageGroup")&&(fe=fe==null?void 0:fe.filter(Rr=>(Rr==null?void 0:Rr.key)!=="pageGroup")),fe.push({key:"pageGroup",contents:o})),d.push(fe);else{let Rr;if(i9.value!==l)Rr=await wh(l,sessionStorage.getItem("systemKey"),"");else{let Yr=(Ui=(ta=(di=($a=(va=(yi=(Bs=(Ta=rt==null?void 0:rt.value)==null?void 0:Ta.pageData)==null?void 0:Bs.compData)==null?void 0:yi.find(jn=>(jn==null?void 0:jn.key)==="header"))==null?void 0:va.contents)==null?void 0:$a.find(jn=>jn==null?void 0:jn.columnPath))==null?void 0:di.columnPath)==null?void 0:ta.split("["))==null?void 0:Ui[0],Qa=await kt.getInsofDataApi({key:{pageKey:l,systemKey:sessionStorage.getItem("systemKey"),type:"structure"}}),Ms=(ws=(Ja=(os=(oa=Qa==null?void 0:Qa.data)==null?void 0:oa.result)==null?void 0:os.find(jn=>{var ro,cs,pi,Tn,be,Ke;return Kh((ro=jn==null?void 0:jn.value)==null?void 0:ro.pageData,o)&&((pi=(cs=rt==null?void 0:rt.value)==null?void 0:cs.pageData)==null?void 0:pi.name)===((be=(Tn=jn==null?void 0:jn.value)==null?void 0:Tn.pageData)==null?void 0:be.name)||Kh((Ke=jn==null?void 0:jn.value)==null?void 0:Ke.pageData,v)&&v!==o}))==null?void 0:Ja.value)==null?void 0:ws.pageData;a=(Fc=(Ra=(Oc=(Sl=(Us=(oi=(_l=Ms==null?void 0:Ms.compData)==null?void 0:_l.find(jn=>(jn==null?void 0:jn.key)==="header"))==null?void 0:oi.contents)==null?void 0:Us.find(jn=>jn==null?void 0:jn.columnPath))==null?void 0:Sl.columnPath)==null?void 0:Oc.replace("(",cl))==null?void 0:Ra.split(cl))==null?void 0:Fc[1],Rr=await wh(Yr,sessionStorage.getItem("systemKey"),"")}Rr==null||Rr.forEach(Yr=>{var Qa,Ms,zs,jn,ro,cs,pi,Tn,be,Ke;if(Kh(Yr,o)&&((Ms=(Qa=rt==null?void 0:rt.value)==null?void 0:Qa.pageData)==null?void 0:Ms.name)===(Yr==null?void 0:Yr.name)||Kh(Yr,v)&&v!==o){fe=((zs=Yr==null?void 0:Yr.compData)==null?void 0:zs.filter(Ye=>(Ye==null?void 0:Ye.key)!=="tableContents"))||[],Rr=(ro=(jn=Yr==null?void 0:Yr.compData)==null?void 0:jn.find(Ye=>(Ye==null?void 0:Ye.key)==="tableContents"))==null?void 0:ro.contents,Cs=Rr;let ke;Kh(Yr,o)&&v===o||Kh(Yr,v)&&v!==o?(pi=(cs=rt==null?void 0:rt.value)==null?void 0:cs.pageData)!=null&&pi.name1?ke={name:Yr==null?void 0:Yr.name,name0:Yr==null?void 0:Yr.name0,name1:Yr==null?void 0:Yr.name1}:ke={name:Yr==null?void 0:Yr.name,name0:Yr==null?void 0:Yr.name0}:ke={name:(Yr==null?void 0:Yr.name0)||(Yr==null?void 0:Yr.name)},fe.push({key:"name",contents:ke}),fe.push({key:"tableContents",contents:Sw(Cs,(be=(Tn=Yr==null?void 0:Yr.compData)==null?void 0:Tn.find(Ye=>(Ye==null?void 0:Ye.key)==="header"))==null?void 0:be.contents)}),fe.push({key:"contentTableId",contents:(Rr==null?void 0:Rr.length)!==0?((Ke=Yr==null?void 0:Yr.compData)==null?void 0:Ke.id)??(Yr==null?void 0:Yr.id):rt==null?void 0:rt.id}),c!==""&&(fe!=null&&fe.find(Ye=>(Ye==null?void 0:Ye.key)==="pageColumn")&&(fe=fe==null?void 0:fe.filter(Ye=>(Ye==null?void 0:Ye.key)!=="pageColumn")),fe.push({key:"pageColumn",contents:u}),fe!=null&&fe.find(Ye=>(Ye==null?void 0:Ye.key)==="columnPath")&&(fe=fe==null?void 0:fe.filter(Ye=>(Ye==null?void 0:Ye.key)!=="columnPath")),fe.push({key:"columnPath",contents:c}),fe!=null&&fe.find(Ye=>(Ye==null?void 0:Ye.key)==="columnUsingPath")&&(fe=fe==null?void 0:fe.filter(Ye=>(Ye==null?void 0:Ye.key)!=="columnUsingPath")),fe.push({key:"columnUsingPath",contents:f}),fe!=null&&fe.find(Ye=>(Ye==null?void 0:Ye.key)==="pageGroup")&&(fe=fe==null?void 0:fe.filter(Ye=>(Ye==null?void 0:Ye.key)!=="pageGroup")),fe.push({key:"pageGroup",contents:o})),d.push(fe)}})}}})),await Promise.all(qe)}let Xe=[];d==null||d.forEach(it=>{Xe!=null&&Xe.find(rt=>{var fe,Ae,Ee,Ce,Ne,We,Qe,_t;return((Ce=(Ee=(Ae=rt==null?void 0:rt.filter(Je=>(Je==null?void 0:Je.key)==="name"))==null?void 0:Ae[((fe=rt==null?void 0:rt.filter(Je=>(Je==null?void 0:Je.key)==="name"))==null?void 0:fe.length)-1])==null?void 0:Ee.contents)==null?void 0:Ce.name)===((_t=(Qe=(We=it==null?void 0:it.find(Je=>(Je==null?void 0:Je.key)==="name"))==null?void 0:We[((Ne=it==null?void 0:it.find(Je=>(Je==null?void 0:Je.key)==="name"))==null?void 0:Ne.length)-1])==null?void 0:Qe.contents)==null?void 0:_t.name)})&&(Xe!=null&&Xe.find(rt=>{var fe,Ae,Ee,Ce,Ne,We,Qe,_t;return((Ce=(Ee=(Ae=rt==null?void 0:rt.filter(Je=>(Je==null?void 0:Je.key)==="name"))==null?void 0:Ae[((fe=rt==null?void 0:rt.filter(Je=>(Je==null?void 0:Je.key)==="name"))==null?void 0:fe.length)-1])==null?void 0:Ee.contents)==null?void 0:Ce.name0)===((_t=(Qe=(We=it==null?void 0:it.find(Je=>(Je==null?void 0:Je.key)==="name"))==null?void 0:We[((Ne=it==null?void 0:it.find(Je=>(Je==null?void 0:Je.key)==="name"))==null?void 0:Ne.length)-1])==null?void 0:Qe.contents)==null?void 0:_t.name0)}))||Xe.push(it)}),Xe=Xe==null?void 0:Xe.map(it=>{var fe,Ae;let rt=[];return it==null||it.forEach(Ee=>{(Ee==null?void 0:Ee.key)!=="name"&&rt.push(Ee)}),rt.push((Ae=it==null?void 0:it.filter(Ee=>(Ee==null?void 0:Ee.key)==="name"))==null?void 0:Ae[((fe=it==null?void 0:it.filter(Ee=>(Ee==null?void 0:Ee.key)==="name"))==null?void 0:fe.length)-1]),rt}),d=Xe,d=d==null?void 0:d.filter(it=>it!==void 0),d=d==null?void 0:d.map(it=>{var fe,Ae;let rt=(Ae=Nu((fe=it==null?void 0:it.find(Ee=>(Ee==null?void 0:Ee.key)==="header"))==null?void 0:fe.contents))==null?void 0:Ae.filter(Ee=>Ee!=="操作"&&Ee);return it=it==null?void 0:it.map(Ee=>{var Ce;if((Ee==null?void 0:Ee.key)==="tableContents"){let Ne=(Ce=Ee.contents)==null?void 0:Ce.map(We=>{var Je,ut,ot;let Qe=(We==null?void 0:We.length)!==1?lg(We,rt):We==null?void 0:We[0],_t=y==null?void 0:y.find(Be=>(Be==null?void 0:Be.parentId)===(Qe==null?void 0:Qe.id));if(_t){let Be=Object.assign(_t==null?void 0:_t.value,Qe),ve={};for(let Oe in Be)(Be==null?void 0:Be[Oe])!==void 0&&(ve[Oe]=Be==null?void 0:Be[Oe]);return _t=ve,Be.id=_t==null?void 0:_t.id,Be}else{Qe.id=((ut=(Je=r==null?void 0:r.find(ve=>(ve==null?void 0:ve.key)==="header"))==null?void 0:Je.contents)==null?void 0:ut.length)===2?parseInt(Qe==null?void 0:Qe.id):((ot=Qe==null?void 0:Qe.id)==null?void 0:ot.toString())??"undefined";let Be={};for(let ve in Qe)(Qe==null?void 0:Qe[ve])!==void 0&&(Be[ve]=Qe==null?void 0:Qe[ve]);return Qe=Be,Qe}});Ee.contents=Ne}return Ee}),it}),d=d==null?void 0:d.sort((it,rt)=>{var fe,Ae;return((fe=it==null?void 0:it.find(Ee=>(Ee==null?void 0:Ee.key)==="contentTableId"))==null?void 0:fe.contents)-((Ae=rt==null?void 0:rt.find(Ee=>(Ee==null?void 0:Ee.key)==="contentTableId"))==null?void 0:Ae.contents)});let st=(se=(Y=(Me=i==null?void 0:i.columnPath)==null?void 0:Me.replace("(",cl))==null?void 0:Y.split(cl))==null?void 0:se[1];if(a!==""&&(st=(st==null?void 0:st.replaceAll(")",""))+","+a),st&&(st==null?void 0:st.length)>0){st=(_e=st.slice(0,(st==null?void 0:st.length)-1))==null?void 0:_e.replaceAll("'","");let it=st==null?void 0:st.split(",");it=it==null?void 0:it.map(Ae=>{let Ee=hL==null?void 0:hL.find(Ce=>Ae==null?void 0:Ae.includes(Ce==null?void 0:Ce.key));if(Ee)return{order:Ee==null?void 0:Ee.order,value:Ee==null?void 0:Ee.value,content:Ae}}),it=it==null?void 0:it.sort((Ae,Ee)=>(Ee==null?void 0:Ee.order)-(Ae==null?void 0:Ae.order));let rt=[];d=d==null?void 0:d.map(Ae=>(Ae=Ae==null?void 0:Ae.map((Ee,Ce)=>{var Ne,We,Qe,_t;return(Ee==null?void 0:Ee.key)==="header"&&((Ne=Ee==null?void 0:Ee.contents)!=null&&Ne.every(Je=>Array.isArray(Je))?Ee.contents=(We=Ee.contents)==null?void 0:We.map(Je=>{var ut;return rt.push({index:Ce,content:(ut=kt.cloneDeep(Je))==null?void 0:ut.filter(ot=>ot==null?void 0:ot.columnPath)}),Je=Je==null?void 0:Je.filter(ot=>!(ot!=null&&ot.columnPath)),Je}):(rt.push({index:Ce,content:(Qe=kt.cloneDeep(Ee.contents))==null?void 0:Qe.filter(Je=>Je==null?void 0:Je.columnPath)}),Ee.contents=(_t=Ee.contents)==null?void 0:_t.filter(Je=>!(Je!=null&&Je.columnPath)))),Ee}),Ae)),await(async()=>{var Ae,Ee,Ce,Ne;for(const We of it??[])if(We){const Qe=(Ce=(Ee=(Ae=We==null?void 0:We.content)==null?void 0:Ae.replace(":",cl))==null?void 0:Ee.split(cl))==null?void 0:Ce[1];d=await $xe((We==null?void 0:We.value)+"('"+JSON.stringify(kt.cloneDeep(d)).replaceAll("'",'"')+"','"+Qe+"','"+((Ne=i==null?void 0:i.columnPath)==null?void 0:Ne.replaceAll("'",""))+"')")}})(),d=d==null?void 0:d.map(Ae=>(Ae.push({key:"filterAllType",value:it}),Ae)),d=d==null?void 0:d.map(Ae=>(Ae=Ae==null?void 0:Ae.map((Ee,Ce)=>{var Ne,We,Qe,_t,Je,ut;if((Ee==null?void 0:Ee.key)==="header")if((Ne=Ee==null?void 0:Ee.contents)!=null&&Ne.every(ot=>Array.isArray(ot)))Ee.contents=(We=Ee.contents)==null?void 0:We.map(ot=>{var Be,ve,Oe,et;return rt!=null&&rt.find(at=>(at==null?void 0:at.index)===Ce)&&((ve=(Be=rt==null?void 0:rt.find(at=>(at==null?void 0:at.index)===Ce))==null?void 0:Be.content)==null?void 0:ve.length)>0&&ot.push((et=(Oe=rt==null?void 0:rt.find(at=>(at==null?void 0:at.index)===Ce))==null?void 0:Oe.content)==null?void 0:et[0]),ot});else{let ot=Ee.contents;rt!=null&&rt.find(Be=>(Be==null?void 0:Be.index)===Ce)&&((_t=(Qe=rt==null?void 0:rt.find(Be=>(Be==null?void 0:Be.index)===Ce))==null?void 0:Qe.content)==null?void 0:_t.length)>0&&ot.push((ut=(Je=rt==null?void 0:rt.find(Be=>(Be==null?void 0:Be.index)===Ce))==null?void 0:Je.content)==null?void 0:ut[0]),Ee.contents=ot}return Ee}),Ae))}let ht=(pe=(me=h==null?void 0:h.replace(":",cl))==null?void 0:me.split(cl))==null?void 0:pe[1];ht!=null&&ht.includes("[")&&(ht=(ne=ht==null?void 0:ht.replaceAll("'",'"'))==null?void 0:ne.replaceAll(":",","),ht=(ge=qxe(ht))==null?void 0:ge.join(","),ht="["+((De=(Te=(xe=ht==null?void 0:ht.replaceAll('":"',_j.value))==null?void 0:xe.replaceAll(":",_j.value))==null?void 0:Te.replaceAll("[",""))==null?void 0:De.replaceAll("]",""))+"]",FD(ht==null?void 0:ht.replaceAll("'",'"'))&&(ht=JSON.parse(ht==null?void 0:ht.replaceAll("'",'"')),ht.push("操作")),d=d==null?void 0:d.map(it=>{let rt=[],fe=[];return it=it==null?void 0:it.map(Ae=>{var Ee,Ce,Ne,We,Qe;if((Ae==null?void 0:Ae.key)==="header")if((Ee=Ae.contents)!=null&&Ee.every(_t=>Array.isArray(_t)))Ae.contents=(Ce=Ae.contents)==null?void 0:Ce.map(_t=>{let Je=a9(_t,ht);return _t=Je==null?void 0:Je.contents,rt=[...new Set(Je.ids)],fe=[...new Set(Je.props)],_t});else{let _t=a9(Ae.contents,ht);rt=[...new Set(_t.ids)],fe=[...new Set(_t.props)],(Ne=Ae.contents)!=null&&Ne.some(Je=>Je==null?void 0:Je.columnPath)||(Ae.contents=(We=Ae.contents)==null?void 0:We.filter(Je=>ht==null?void 0:ht.find(ut=>ut===((Je==null?void 0:Je.prop)||(Je==null?void 0:Je.label)))))}return(Ae==null?void 0:Ae.key)==="tableContents"&&(rt==null?void 0:rt.length)>0&&(Ae.contents=(Qe=Ae.contents)==null?void 0:Qe.map(_t=>{if(Array.isArray(_t))_t=_t==null?void 0:_t.filter((Je,ut)=>(rt==null?void 0:rt.find(ot=>ot===ut))||(Je==null?void 0:Je.id));else for(let Je in _t)(Je==="id"||fe!=null&&fe.find(ut=>ut===Je))&&(_t==null||_t[Je]);return _t})),Ae}),it}));let pt=[];(He=(Ie=r==null?void 0:r.find(it=>(it==null?void 0:it.key)==="header"))==null?void 0:Ie.contents)!=null&&He.every(it=>Array.isArray(it))?pt=(Ge=(Fe=(Le=r==null?void 0:r.find(it=>(it==null?void 0:it.key)==="header"))==null?void 0:Le.contents)==null?void 0:Fe[0])==null?void 0:Ge.filter(it=>!(it!=null&&it.columnPath)&&(it==null?void 0:it.label)!=="操作"):pt=(je=(lt=r==null?void 0:r.find(it=>(it==null?void 0:it.key)==="header"))==null?void 0:lt.contents)==null?void 0:je.filter(it=>!(it!=null&&it.columnPath)&&(it==null?void 0:it.label)!=="操作"),pt&&(pt==null?void 0:pt.length)>0&&(d=d==null?void 0:d.map(it=>(it=it==null?void 0:it.map(rt=>{var fe,Ae;return(rt==null?void 0:rt.key)==="header"&&((fe=rt==null?void 0:rt.contents)!=null&&fe.every(Ee=>Array.isArray(Ee))?(rt.contents=[...(Ae=rt.contents)==null?void 0:Ae[0],...pt],rt.contents=[rt.contents]):rt.contents=[...rt.contents,...pt]),rt}),it)))}else{let qe="",Xe="";(xt=l==null?void 0:l.split("/"))==null||xt.forEach((fe,Ae)=>{var Ee;Ae<((Ee=l==null?void 0:l.split("/"))==null?void 0:Ee.length)-1?qe=qe===""?qe+fe:qe+"/"+fe:Xe=fe});let st=await wh(qe,sessionStorage.getItem("systemKey"),""),ht;(dt=(At=(Et=(ft=st==null?void 0:st[0])==null?void 0:ft.compData)==null?void 0:Et.find(fe=>(fe==null?void 0:fe.key)==="header"))==null?void 0:At.contents)==null||dt.forEach((fe,Ae)=>{fe!=null&&fe.isMainKey&&(ht=Ae)});let pt=[];(Pe=(gt=(Rt=(Dt=st==null?void 0:st[0])==null?void 0:Dt.compData)==null?void 0:Rt.find(fe=>(fe==null?void 0:fe.key)==="tableContents"))==null?void 0:gt.contents)==null||Pe.forEach(fe=>{fe.find(Ae=>Ae===Xe)&&(ht||ht===0)&&pt.push(fe==null?void 0:fe[ht])});let it=[],rt=await(pt==null?void 0:pt.map(async fe=>{let Ae=await wh(qe+Iae.value+fe,sessionStorage.getItem("systemKey"),""),Ee=Ae==null?void 0:Ae.find(Ce=>(Ce==null?void 0:Ce.name)===o);it.push(Ee)}));await Promise.all(rt),it==null||it.forEach(fe=>{var Ee,Ce,Ne,We;let Ae=kt.cloneDeep(fe==null?void 0:fe.compData);Ae&&(Ae=Ae==null?void 0:Ae.filter(Qe=>(Qe==null?void 0:Qe.key)!=="tableContents"),Ae.push({key:"tableContents",contents:Sw((Ce=(Ee=fe==null?void 0:fe.compData)==null?void 0:Ee.find(Qe=>(Qe==null?void 0:Qe.key)==="tableContents"))==null?void 0:Ce.contents,(We=(Ne=fe==null?void 0:fe.compData)==null?void 0:Ne.find(Qe=>(Qe==null?void 0:Qe.key)==="header"))==null?void 0:We.contents)}),Ae.push({key:"contentTableId",contents:fe==null?void 0:fe.id}),d.push(Ae))})}return d==null?void 0:d.filter(qe=>qe!==void 0)},wh=async(r,e,t="",n=!1,i,a,s)=>{var g,y,m,b,x,w,_;let o,l=new WeakMap;s?l=s:(y=(g=(await kt.getPageInsofDataApi({systemKey:e,type:jxe.value})).data.result)==null?void 0:g.filter(T=>{var E,M;return((E=T==null?void 0:T.key)==null?void 0:E.pageKey)!=="menu"&&((M=T==null?void 0:T.key)==null?void 0:M.pageKey)!=="secret"}))==null||y.forEach(T=>{l[T.key.pageKey]?l[T.key.pageKey]=[...l[T.key.pageKey],T]:l[T.key.pageKey]=[T]}),(!n||!i)&&(o=(m=l[r])==null?void 0:m.filter(S=>{var T;return((T=S==null?void 0:S.key)==null?void 0:T.parentTable)===t})),eb.setPageMapState(l);const c=(b=l[r])==null?void 0:b.filter(S=>{var T;return((T=S==null?void 0:S.key)==null?void 0:T.type)==="structureMethod"}),u=o==null?void 0:o.map(S=>S.id);if(!u)return;let f=(x=l[r])==null?void 0:x.filter(S=>{var T,E,M,D;return((T=S==null?void 0:S.key)==null?void 0:T.type)==="data"&&(u.includes((E=S==null?void 0:S.key)==null?void 0:E.tableId)||u.includes((D=(M=S==null?void 0:S.key)==null?void 0:M.tableId)==null?void 0:D.toString()))});const h=l[r+Iae.value]??[];(h==null?void 0:h.length)===0&&(f=Rae(f,!1,l));let d=[];f==null||f.forEach(S=>{var M;const T=Array.isArray(S.value.tableData)?S.value.tableData:[S.value.tableData];T.unshift({id:S.id});const E=(M=S==null?void 0:S.key)==null?void 0:M.tableId;d!=null&&d.find(D=>(D==null?void 0:D.key)===E)?d=d==null?void 0:d.map(D=>((D==null?void 0:D.key)===E&&(D.contents=[...D.contents,T]),D)):d.push({key:E,contents:[T]})});let p=[];const v=await(o==null?void 0:o.map(async S=>{var D,N,k,I,A,C,L,R,P,V,F,U,B,W,q,K,he,ie,de,ee,J,Z;const T=S.value.pageData,E=S==null?void 0:S.id;let M=(D=kt.cloneDeep(T==null?void 0:T.compData))==null?void 0:D.filter(le=>(le==null?void 0:le.key)!=="tableContents");if(M&&(M!=null&&M.find(le=>(le==null?void 0:le.key)==="header"))&&(!Array.isArray((k=(N=M==null?void 0:M.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:N.contents)==null?void 0:k[0])&&((A=(I=M==null?void 0:M.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:I.contents)!=null&&A.every(le=>!(le!=null&&le.columnPath)))||Array.isArray((L=(C=M==null?void 0:M.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:C.contents)==null?void 0:L[0])&&((V=Xw((P=(R=M==null?void 0:M.find(le=>(le==null?void 0:le.key)==="header"))==null?void 0:R.contents)==null?void 0:P[0]))!=null&&V.every(le=>!(le!=null&&le.columnPath))))){M=await(M==null?void 0:M.map(async j=>{var re,ce,Se,Me,Y,se,_e,me,pe,ne,ge,xe,Te,De,Ie,He,Le,Fe,Ge,lt,je;if((j==null?void 0:j.key)==="header"&&((re=j.contents)==null?void 0:re.length)===0){let xt=(ce=M==null?void 0:M.find(dt=>(dt==null?void 0:dt.key)==="relatedFilter"))==null?void 0:ce.contents,ft=(Se=xt==null?void 0:xt.split("["))==null?void 0:Se[0],Et=(me=(_e=(se=(Y=(Me=xt==null?void 0:xt.replace("[",cl))==null?void 0:Me.split(cl))==null?void 0:Y[1])==null?void 0:se.replace("]",cl))==null?void 0:_e.split(cl))==null?void 0:me[0];Et=(pe=Et==null?void 0:Et.split("["))==null?void 0:pe[0],Et=(xe=(ge=Et==null?void 0:Et.split(":"))==null?void 0:ge[((ne=Et==null?void 0:Et.split(":"))==null?void 0:ne.length)-1])==null?void 0:xe.replaceAll("'","");let At=(Fe=(Le=(He=(Ie=(De=(Te=l==null?void 0:l[ft])==null?void 0:Te.find(dt=>{var Dt,Rt;return((Rt=(Dt=dt==null?void 0:dt.value)==null?void 0:Dt.pageData)==null?void 0:Rt.name)===Et}))==null?void 0:De.value)==null?void 0:Ie.pageData)==null?void 0:He.compData)==null?void 0:Le.find(dt=>(dt==null?void 0:dt.key)==="header"))==null?void 0:Fe.contents;if(At!=null&&At.some(dt=>dt==null?void 0:dt.columnPath)){let dt=await wh(ft,e,t,n,i,a,l);At=(je=(lt=(Ge=dt==null?void 0:dt.find(Dt=>(Dt==null?void 0:Dt.name)===Et))==null?void 0:Ge.compData)==null?void 0:lt.find(Dt=>(Dt==null?void 0:Dt.key)==="header"))==null?void 0:je.contents}j.contents=At}return j})),M=await Promise.all(M);let le=Sw((F=d==null?void 0:d.find(j=>(j==null?void 0:j.key)===S.id))==null?void 0:F.contents,(U=M==null?void 0:M.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:U.contents),X=await pwe((B=M==null?void 0:M.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:B.contents,r,(W=M==null?void 0:M.find(j=>(j==null?void 0:j.key)==="tableFilter"))==null?void 0:W.contents,l);X!=null&&X.mainKeys&&M.push({key:"mainRouters",contents:X==null?void 0:X.mainKeys});let ae=[],oe=[];Array.isArray(X)&&(ae=Sw(X,(q=M==null?void 0:M.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:q.contents)),Array.isArray(X==null?void 0:X.tableContents)&&(oe=Sw(X==null?void 0:X.tableContents,(K=M==null?void 0:M.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:K.contents));let ue=[...ae,...oe];Array.isArray(le)&&(le==null?void 0:le.length)>0&&(ue=[...ue,...le]),M.push({key:"tableContents",contents:ue}),M=M==null?void 0:M.map(j=>{var re,ce;return(j==null?void 0:j.key)==="header"&&((re=j.contents)==null?void 0:re.length)!==0&&(j.contents=(ce=j.contents)==null?void 0:ce.map(Se=>((Se==null?void 0:Se.prop)===(X==null?void 0:X.mainKey)&&(Se.isMainKey=!0),Se))),j})}else M&&(M!=null&&M.find(le=>(le==null?void 0:le.key)==="header"))&&(M=await Xxe(kt.cloneDeep(M),E,o,l),M!=null&&M.every(le=>Array.isArray(le))||(M=[M]));if(T.id=S==null?void 0:S.id,T.isShow=(ie=(he=S==null?void 0:S.value)==null?void 0:he.pageData)==null?void 0:ie.isShow,(M==null?void 0:M.length)>0&&M.every(le=>Array.isArray(le)))M==null||M.forEach(le=>{var oe,ue,j,re,ce;let X=kt.cloneDeep(T);X.compData=le,X.tableId=(oe=le==null?void 0:le.find(Se=>(Se==null?void 0:Se.key)==="contentTableId"))==null?void 0:oe.contents;let ae=(ue=le==null?void 0:le.find(Se=>(Se==null?void 0:Se.key)==="name"))==null?void 0:ue.contents;ae!=null&&ae.name0&&(ae==null?void 0:ae.name0)===(X==null?void 0:X.name)?(X.name0=X.name,X.name=ae==null?void 0:ae.name):ae!=null&&ae.name0&&(X.name1=X.name,X.name0=ae.name0,X.name=ae==null?void 0:ae.name),(j=X==null?void 0:X.compData)!=null&&j.every(Se=>Array.isArray(Se))?((re=X==null?void 0:X.compData)==null?void 0:re.length)===0?p.push(X):(ce=X==null?void 0:X.compData)==null||ce.forEach((Se,Me)=>{let Y;Me===0?Y={comp:X==null?void 0:X.comp,compData:Se,id:X==null?void 0:X.id,name:X==null?void 0:X.name,isShow:X==null?void 0:X.isShow}:Y={comp:X==null?void 0:X.comp,compData:Se,id:X==null?void 0:X.id,name:"",isShow:X==null?void 0:X.isShow},p.push(Y)}):p.push(X)});else if(((de=S.key)==null?void 0:de.type)!=="method")T.compData=M,(ee=T==null?void 0:T.compData)!=null&&ee.every(le=>Array.isArray(le))?((J=T==null?void 0:T.compData)==null?void 0:J.length)===0?p.push(T):(Z=T==null?void 0:T.compData)==null||Z.forEach((le,X)=>{let ae;X===0?ae={comp:T==null?void 0:T.comp,compData:le,id:T==null?void 0:T.id,name:T==null?void 0:T.name,isShow:T==null?void 0:T.isShow}:ae={comp:T==null?void 0:T.comp,compData:le,id:T==null?void 0:T.id,name:"",isShow:T==null?void 0:T.isShow},p.push(ae)}):p.push(T);else{let le;le={name:"",compData:[T],comp:"calculator"},p.push(le)}}));return await Promise.all(v),((w=c==null?void 0:c.map(S=>S.value.pageData))==null?void 0:w.filter(S=>Object.values(S).length>0).length)>0&&p.push({comp:"methodButton",name:"",compData:(_=c==null?void 0:c.map(S=>S.value.pageData))==null?void 0:_.filter(S=>Object.values(S).length>0)}),p=p.sort((S,T)=>S.id-T.id),a?p:await zxe(r,p)},Yxe=async(r,e)=>{var n,i,a,s,o;await kt.deleteInsofDataApi({id:r});let t=await kt.getInsofDataApi({key:{pageKey:i9.value,parentId:r,tableId:e==null?void 0:e.index}});((i=(n=t==null?void 0:t.data)==null?void 0:n.result)==null?void 0:i.length)>0&&await kt.deleteInsofDataApi({id:(o=(s=(a=t==null?void 0:t.data)==null?void 0:a.result)==null?void 0:s[0])==null?void 0:o.id}),eb.setTableLoading(!1)},Kxe=async(r,e,t,n,i,a,s,o)=>{var f,h,d,p,v,g,y,m,b,x,w,_,S,T,E,M,D,N,k,I,A,C,L,R,P,V,F,U,B,W,q,K,he,ie,de,ee,J,Z,le,X,ae,oe,ue,j;let l=((h=(f=s==null?void 0:s.content)==null?void 0:f[0])==null?void 0:h.id)??"",c=(d=o==null?void 0:o.param)==null?void 0:d.url,u;if(l!==""&&((p=s==null?void 0:s.content)==null?void 0:p.length)>1&&typeof((g=(v=s==null?void 0:s.content)==null?void 0:v[0])==null?void 0:g.id)!="string"){const re=await kt.getInsofDataApi({id:l});let ce=((x=(b=(m=(y=re==null?void 0:re.data)==null?void 0:y.result)==null?void 0:m[0])==null?void 0:b.key)==null?void 0:x.tableId)??"",Se=((T=(S=(_=(w=re==null?void 0:re.data)==null?void 0:w.result)==null?void 0:_[0])==null?void 0:S.key)==null?void 0:T.pageKey)??"",Me;if((s==null?void 0:s.parentTableId)===0)Me=await kt.createInsofDataApi({key:{type:r,pageKey:c||Se||e,tableId:ce||t,systemKey:n},value:{tableData:lg(i,(E=Nu(a))==null?void 0:E.filter(Y=>Y!=="操作"&&Y!=="operate"))}});else{let Y;if(s!=null&&s.parentTableId){let ge=await kt.getInsofDataApi({id:s==null?void 0:s.parentTableId});Y=(k=(N=(D=(M=ge==null?void 0:ge.data)==null?void 0:M.result)==null?void 0:D[0])==null?void 0:N.key)==null?void 0:k.pageKey}let se=(I=Nu(a))==null?void 0:I.findIndex(ge=>ge==="operate"),_e=(A=Nu(a))==null?void 0:A.filter((ge,xe)=>xe<se),me={},pe={};for(let ge in s==null?void 0:s.singleContent)_e!=null&&_e.find(xe=>xe===ge)?pe[ge]=(C=s==null?void 0:s.singleContent)==null?void 0:C[ge]:ge!=="id"&&(me[ge]=(L=s==null?void 0:s.singleContent)==null?void 0:L[ge]);let ne={key:{type:r,pageKey:c||Y||e,tableId:ce||t,systemKey:n},value:{tableData:pe}};Me=await kt.createInsofDataApi(ne),await kt.createInsofDataApi({key:{type:r,pageKey:c||Se||e,tableId:s==null?void 0:s.index,systemKey:n,parentId:(R=Me==null?void 0:Me.data)==null?void 0:R.result},value:{tableData:me}})}((P=Me==null?void 0:Me.data)==null?void 0:P.code)===200?(u=(V=Me==null?void 0:Me.data)==null?void 0:V.result,kt.ElMessage.success("保存成功")):kt.ElMessage.error("保存响应失败"),eb.setTableLoading(!1)}else{let re;if(s!=null&&s.parentTableId){let Me=await kt.getInsofDataApi({id:s==null?void 0:s.parentTableId});re=(W=(B=(U=(F=Me==null?void 0:Me.data)==null?void 0:F.result)==null?void 0:U[0])==null?void 0:B.key)==null?void 0:W.pageKey}let ce,Se=(q=Nu(a))==null?void 0:q.findIndex(Me=>Me==="operate");if(Se<((K=Nu(a))==null?void 0:K.length)-1){let Me=(he=Nu(a))==null?void 0:he.filter((me,pe)=>pe<Se),Y={},se={};for(let me in s==null?void 0:s.singleContent)Me!=null&&Me.find(pe=>pe===me)?se[me]=(ie=s==null?void 0:s.singleContent)==null?void 0:ie[me]:me!=="id"&&(Y[me]=(de=s==null?void 0:s.singleContent)==null?void 0:de[me]);if(s!=null&&s.filter&&((ee=s==null?void 0:s.filter)==null?void 0:ee.length)>0){let me=(Z=(J=s==null?void 0:s.filter)==null?void 0:J.split(":"))==null?void 0:Z[1];se[((le=me==null?void 0:me.split("="))==null?void 0:le[0])??""]=(X=me==null?void 0:me.split("="))==null?void 0:X[1]}let _e={key:{type:r,pageKey:c||re||e,tableId:s==null?void 0:s.parentTableId,systemKey:n},value:{tableData:se}};ce=await kt.createInsofDataApi(_e),await kt.createInsofDataApi({key:{type:r,pageKey:e,tableId:s==null?void 0:s.index,systemKey:n,parentId:(ae=ce==null?void 0:ce.data)==null?void 0:ae.result},value:{tableData:Y}})}else ce=await kt.createInsofDataApi({key:{type:r,pageKey:c||re||e,tableId:s!=null&&s.parentTableId?s==null?void 0:s.parentTableId:t,systemKey:n},value:{tableData:lg(i,(oe=Nu(a))==null?void 0:oe.filter(Me=>Me!=="操作"))}});((ue=ce==null?void 0:ce.data)==null?void 0:ue.code)===200?(u=(j=ce==null?void 0:ce.data)==null?void 0:j.result,kt.ElMessage.success("保存成功")):kt.ElMessage.error("保存响应失败"),eb.setTableLoading(!1)}return u},Lae=(r,e,t)=>{let n={},i={};if(t&&(t==null?void 0:t.length)>0){for(let a in r)t!=null&&t.find(s=>s===a)&&(r!=null&&r[a])&&(n[a]=r[a]);for(let a in e)t!=null&&t.find(s=>s===a)&&(e!=null&&e[a])&&(i[a]=e[a])}else n=r,i=e;if(!Object.keys(n).some(a=>a in i))return!1;for(let a in n)if((n==null?void 0:n[a])!==(i==null?void 0:i[a])&&!(!n[a]||!i[a]))return!1;return!0},Zxe=async(r,e,t,n,i,a,s,o)=>{var l,c,u,f,h,d,p,v,g,y,m,b,x,w,_,S,T,E,M,D,N,k,I,A,C,L,R,P,V,F,U,B,W,q,K,he,ie,de,ee,J,Z,le,X;if(n)if((o==null?void 0:o.parentTableId)===0){const ae=await kt.getInsofDataApi({id:n});let oe=((f=(u=(c=(l=ae==null?void 0:ae.data)==null?void 0:l.result)==null?void 0:c[0])==null?void 0:u.key)==null?void 0:f.tableId)??"",ue=((v=(p=(d=(h=ae==null?void 0:ae.data)==null?void 0:h.result)==null?void 0:d[0])==null?void 0:p.key)==null?void 0:v.pageKey)??"";if(oe&&oe!==""){const j=await kt.updateInsofDataApi({key:{type:r,pageKey:ue,tableId:oe,systemKey:i},value:{tableData:lg(a,(g=Nu(s))==null?void 0:g.filter(re=>re!=="操作"))},id:n});((y=j==null?void 0:j.data)==null?void 0:y.code)===200?kt.ElMessage.success("保存成功"):kt.ElMessage.error("保存响应失败"),eb.setTableLoading(!1)}else{const j=await kt.updateInsofDataApi({key:{type:r,pageKey:e,tableId:t,systemKey:i},value:{tableData:lg(a,(m=Nu(s))==null?void 0:m.filter(re=>re!=="操作"))},id:n});((b=j==null?void 0:j.data)==null?void 0:b.code)===200?kt.ElMessage.success("保存成功"):kt.ElMessage.error("保存响应失败"),eb.setTableLoading(!1)}}else{let ae=(x=Nu(s))==null?void 0:x.filter(Me=>Me!=="operate"),oe=lg(a,ae),ue=await kt.getInsofDataApi({key:{tableId:t}});ue=(_=(w=ue==null?void 0:ue.data)==null?void 0:w.result)==null?void 0:_.map(Me=>{var Y,se;return{id:Me==null?void 0:Me.id,value:(Y=Me==null?void 0:Me.value)==null?void 0:Y.tableData,parentId:(se=Me==null?void 0:Me.key)==null?void 0:se.parentId}});let j=await kt.getInsofDataApi({key:{tableId:o==null?void 0:o.parentTableId}});j=(T=(S=j==null?void 0:j.data)==null?void 0:S.result)==null?void 0:T.map(Me=>{var Y;return{id:Me==null?void 0:Me.id,value:(Y=Me==null?void 0:Me.value)==null?void 0:Y.tableData}});let re="";j==null||j.forEach(Me=>{if(re===""){let Y=Me==null?void 0:Me.value;Lae(Y,oe)&&(re=Me==null?void 0:Me.id)}});let ce=(E=ue==null?void 0:ue.find(Me=>(Me==null?void 0:Me.parentId)===re))==null?void 0:E.id;ce=n||ce;let Se=o==null?void 0:o.singleContent;if(Se==null||delete Se.id,typeof ce=="number"){let Me=((M=ue==null?void 0:ue.find(_e=>(_e==null?void 0:_e.id)===ce||(_e==null?void 0:_e.parentId)===ce))==null?void 0:M.parentId)??ce;Me===ce&&(ce=(D=ue==null?void 0:ue.find(_e=>(_e==null?void 0:_e.id)===ce||(_e==null?void 0:_e.parentId)===ce))==null?void 0:D.id);let Y=await kt.getInsofDataApi({id:Me??""});Y=(A=(I=(k=(N=Y==null?void 0:Y.data)==null?void 0:N.result)==null?void 0:k[0])==null?void 0:I.value)==null?void 0:A.tableData;let se={};for(let _e in Y)se[_e]=(Se==null?void 0:Se[_e])??(Y==null?void 0:Y[_e]);ce?await kt.batchUpdateInsofDataApi({dataList:[{id:ce,value:{tableData:Se}},{id:Me,value:{tableData:se}}]}):await kt.batchUpdateInsofDataApi({dataList:[{id:Me,value:{tableData:Se}}]})}else{let Me=await kt.getInsofDataApi({id:parseInt(ce)}),Y=Me;Me=(P=(R=(L=(C=Me==null?void 0:Me.data)==null?void 0:C.result)==null?void 0:L[0])==null?void 0:R.value)==null?void 0:P.tableData;let se={};for(let ne in Me)se[ne]=(Se==null?void 0:Se[ne])??(Me==null?void 0:Me[ne]);let _e=await kt.getInsofDataApi({id:t}),me=((B=(U=(F=(V=_e==null?void 0:_e.data)==null?void 0:V.result)==null?void 0:F[0])==null?void 0:U.key)==null?void 0:B.pageKey)??"",pe=((he=(K=(q=(W=Y==null?void 0:Y.data)==null?void 0:W.result)==null?void 0:q[0])==null?void 0:K.key)==null?void 0:he.parentId)??"";if(pe==="")await kt.createInsofDataApi({key:{type:r,pageKey:me,tableId:t,systemKey:i,version:1,parentId:parseInt(ce),createUserId:(ie=pL.value)==null?void 0:ie.id,createUserLayer:((de=pL.value)==null?void 0:de.dept)||((ee=pL.value)==null?void 0:ee.部门名称)},value:{tableData:Se}}),await kt.batchUpdateInsofDataApi({dataList:[{id:parseInt(ce),value:{tableData:se}}]});else{let ne=await kt.getInsofDataApi({id:pe}),ge=(X=(le=(Z=(J=ne==null?void 0:ne.data)==null?void 0:J.result)==null?void 0:Z[0])==null?void 0:le.value)==null?void 0:X.tableData,xe={};for(let Te in ge)xe[Te]=(Se==null?void 0:Se[Te])??(ge==null?void 0:ge[Te]);await kt.batchUpdateInsofDataApi({dataList:[{id:parseInt(ce),value:{tableData:se}},{id:parseInt(pe),value:{tableData:xe}}]})}}}},Jxe=async(r,e)=>{await kt.updateInsofDataApi({value:{pageData:e},id:r})},Qxe=async()=>{var r,e,t,n,i,a,s,o,l;try{const c=await kt.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),layer:"superAdmin"}});if(((r=c==null?void 0:c.data)==null?void 0:r.code)===200){const u=(i=(n=(t=(e=c==null?void 0:c.data)==null?void 0:e.result)==null?void 0:t[0])==null?void 0:n.key)==null?void 0:i.systemType;let f="browser";u==="制造系统"&&(f="client"),u==="三维系统"&&(f="three"),n9.setPlatform(f),n9.setPlatName(((l=(o=(s=(a=c==null?void 0:c.data)==null?void 0:a.result)==null?void 0:s[0])==null?void 0:o.key)==null?void 0:l.name)??"")}}catch(c){return Promise.reject(c)}},Tw=wae.ref(0),ewe=Th.useMenuState(kt.pinia),twe=E_(kt.pinia),{originalPath:rwe}=kt.storeToRefs(twe),nwe=kt.useLoginState(kt.pinia),iwe=OD(kt.pinia),{multipleTableConst:mc}=kt.storeToRefs(iwe),{loginUserInfo:_y}=kt.storeToRefs(nwe),{activeMenuPath:Q0t}=kt.storeToRefs(ewe),awe=Th.useModelComp(kt.pinia),{pageMapState:z6}=kt.storeToRefs(awe),fh=rwe.value,G2="/",V6=r=>r==null?void 0:r.map(t=>{var n;return Tw.value++,Array.isArray(t)?V6(t):{label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":(t==null?void 0:t.prop)??"a"+Tw.value,width:(t==null?void 0:t.label)==="操作"?"200":t!=null&&t.width?parseInt(t.width):"",fixed:(t==null?void 0:t.fixed)??void 0,sortable:(t==null?void 0:t.sortable)??!1,align:(t==null?void 0:t.align)??"left",showOverflowTooltip:(t==null?void 0:t.showOverflowTooltip)??!0,isNotDrag:(t==null?void 0:t.isNotDrag)??!1,isEditCol:(t==null?void 0:t.isEditCol)??!1,isOperate:(t==null?void 0:t.isOperate)??!1,id:(t==null?void 0:t.id)??Tw.value,type:(t==null?void 0:t.label)==="操作"?"operate":void 0,formType:(t==null?void 0:t.formType)??(t!=null&&t.groupSelect?"Select":""),isHidden:t==null?void 0:t.isHidden,options:(t==null?void 0:t.options)??[],children:V6(t.children)??void 0,formMenuSelect:(t==null?void 0:t.formMenuSelect)??[],groupSelect:t!=null&&t.groupSelect?(n=t==null?void 0:t.groupSelect)==null?void 0:n.replaceAll('"',"").split(":"):[],isMainKey:(t==null?void 0:t.isMainKey)||!!(t!=null&&t.directiveLabel),allSelectionContents:(t==null?void 0:t.allSelectionContents)??[],selectFilter:t==null?void 0:t.selectFilter}}),swe=r=>{const e=[];function t(n){if(Array.isArray(n))for(const i of n)!i.children||i.children.length===0?e.push(i):t(i.children)}return t(r),e},owe=r=>kt.cloneDeep(r).map(t=>(Array.isArray(t)&&(t=t.map(n=>{var i;return Array.isArray(n)?n=V6(n):(n={label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":(n==null?void 0:n.prop)??"a"+Tw.value,width:(n==null?void 0:n.label)==="操作"?"200":n!=null&&n.width?parseInt(n.width):"",fixed:(n==null?void 0:n.fixed)??void 0,sortable:(n==null?void 0:n.sortable)??!1,align:(n==null?void 0:n.align)??"left",showOverflowTooltip:(n==null?void 0:n.showOverflowTooltip)??!0,isNotDrag:(n==null?void 0:n.isNotDrag)??!1,isEditCol:(n==null?void 0:n.isEditCol)??!1,isOperate:(n==null?void 0:n.isOperate)??!1,id:(n==null?void 0:n.id)??Tw.value,type:(n==null?void 0:n.label)==="操作"?"operate":void 0,formType:(n==null?void 0:n.formType)??(n!=null&&n.groupSelect?"Select":""),isHidden:n==null?void 0:n.isHidden,options:(n==null?void 0:n.options)??[],children:V6(n.children),formMenuSelect:(n==null?void 0:n.formMenuSelect)??[],groupSelect:n!=null&&n.groupSelect?(i=n==null?void 0:n.groupSelect)==null?void 0:i.replaceAll('"',"").split(":"):[],isMainKey:(n==null?void 0:n.isMainKey)||!!(n!=null&&n.directiveLabel),allSelectionContents:(n==null?void 0:n.allSelectionContents)??[],selectFilter:n==null?void 0:n.selectFilter},Tw.value++),n})),t)),Xw=r=>{function e(t,n=[],i=""){if(!t||t.length===0)return[];let a=n;return Array.isArray(t)&&(t==null||t.forEach(s=>{var o,l,c,u,f,h,d,p,v,g,y,m,b;if(s!=null&&s.children&&((o=s.children)==null?void 0:o.length)>0){let x=i===""?i+((f=(l=s==null?void 0:s.prop)==null?void 0:l.split(mc.value))==null?void 0:f[((u=(c=s==null?void 0:s.prop)==null?void 0:c.split(mc.value))==null?void 0:u.length)-1]):i+mc.value+((v=(h=s==null?void 0:s.prop)==null?void 0:h.split(mc.value))==null?void 0:v[((p=(d=s==null?void 0:s.prop)==null?void 0:d.split(mc.value))==null?void 0:p.length)-1]);a=e(s==null?void 0:s.children,a,x)}else i!==""&&(s.prop=i+mc.value+((b=(g=s==null?void 0:s.prop)==null?void 0:g.split(mc.value))==null?void 0:b[((m=(y=s==null?void 0:s.prop)==null?void 0:y.split(mc.value))==null?void 0:m.length)-1])),a.push(s)})),a}return e(r)},lwe=r=>{function e(t,n=[],i=""){if(!t||t.length===0)return[];let a=n;return Array.isArray(t)&&(a=t==null?void 0:t.map(s=>{var o,l,c,u,f,h,d,p,v,g,y,m,b;if(s!=null&&s.children&&((o=s.children)==null?void 0:o.length)>0){let x=i===""?i+((f=(l=s==null?void 0:s.prop)==null?void 0:l.split(mc.value))==null?void 0:f[((u=(c=s==null?void 0:s.prop)==null?void 0:c.split(mc.value))==null?void 0:u.length)-1]):i+mc.value+((v=(h=s==null?void 0:s.prop)==null?void 0:h.split(mc.value))==null?void 0:v[((p=(d=s==null?void 0:s.prop)==null?void 0:d.split(mc.value))==null?void 0:p.length)-1]);s.children=e(s==null?void 0:s.children,a,x)}else i!==""&&(s.prop=i+mc.value+((b=(g=s==null?void 0:s.prop)==null?void 0:g.split(mc.value))==null?void 0:b[((m=(y=s==null?void 0:s.prop)==null?void 0:y.split(mc.value))==null?void 0:m.length)-1]));return s})),a}return e(r)},cwe=r=>{let e=kt.cloneDeep(r);return e=e==null?void 0:e.map(t=>((t==null?void 0:t.type)==="Select"?t={label:t==null?void 0:t.label,prop:t==null?void 0:t.prop,name:t==null?void 0:t.name,type:t==null?void 0:t.type,value:(t==null?void 0:t.value)??"",optionUrl:{groupSelect:t==null?void 0:t.groupSelect,menuSelect:t==null?void 0:t.menuSelect,type:"Select",selectRelateType:t==null?void 0:t.selectRelateType,multiple:t==null?void 0:t.multiple}}:(t==null?void 0:t.type)==="Date"&&(t.value=!(t!=null&&t.value)&&(t==null?void 0:t.isNewDate)!==!1?new Date:t==null?void 0:t.value),t.label=t.prop||t.label,t)),e},Pae=r=>{var e,t,n,i,a,s;if(((e=r==null?void 0:r.pageData)==null?void 0:e.comp)==="Form"){let o=(n=(t=r==null?void 0:r.pageData)==null?void 0:t.compData)==null?void 0:n.map(c=>{var u;return(c==null?void 0:c.key)==="formContent"&&(c.contents=(u=c.contents)==null?void 0:u.map(f=>((f==null?void 0:f.type)==="Date"&&(f.value=""),f))),c});return{pageData:{comp:(i=r==null?void 0:r.pageData)==null?void 0:i.comp,compData:o,name:(a=r==null?void 0:r.pageData)==null?void 0:a.name,isShow:(s=r==null?void 0:r.pageData)==null?void 0:s.isShow}}}else return r},Nae=(r,e)=>{var n,i,a,s,o,l,c,u,f;let t=(a=(i=(n=e==null?void 0:e.pageData)==null?void 0:n.compData)==null?void 0:i.find(h=>(h==null?void 0:h.key)==="formContent"))==null?void 0:a.contents;if(((s=r==null?void 0:r.pageData)==null?void 0:s.comp)==="Form"){let h=(l=(o=r==null?void 0:r.pageData)==null?void 0:o.compData)==null?void 0:l.map(p=>{var v;return(p==null?void 0:p.key)==="formContent"&&(p.contents=(v=p.contents)==null?void 0:v.map(g=>{var y;return g.value=(y=t==null?void 0:t.find(m=>(m==null?void 0:m.key)===(g==null?void 0:g.key)))==null?void 0:y.value,g})),p});return{pageData:{comp:(c=r==null?void 0:r.pageData)==null?void 0:c.comp,compData:h,name:(u=r==null?void 0:r.pageData)==null?void 0:u.name,isShow:(f=r==null?void 0:r.pageData)==null?void 0:f.isShow}}}else return r},Oae=async(r,e,t,n,i)=>{var v,g,y,m,b,x,w,_,S,T,E,M,D,N,k,I,A,C,L,R,P,V,F;let a=r;(a==null?void 0:a[(a==null?void 0:a.length)-1])!==fh&&(a="",(g=(v=kt.cloneDeep(r))==null?void 0:v.split(fh))==null||g.forEach((U,B)=>{var W,q;B!==((q=(W=kt.cloneDeep(r))==null?void 0:W.split(fh))==null?void 0:q.length)-1&&(a=a===""?a+U:a+"/"+U)}),a=a+fh);let s=[],o=await kt.getInsofDataApi({key:{pageKey:r,systemKey:sessionStorage.getItem("systemKey")}});const l={data:{result:(m=(y=o==null?void 0:o.data)==null?void 0:y.result)==null?void 0:m.filter(U=>{var B;return((B=U==null?void 0:U.key)==null?void 0:B.type)==="structure"})}};let c;(r==null?void 0:r[(r==null?void 0:r.length)-1])!==fh&&(c={data:{result:(b=z6.value[a])==null?void 0:b.filter(U=>{var B;return((B=U==null?void 0:U.key)==null?void 0:B.type)==="structure"})}},((w=(x=c==null?void 0:c.data)==null?void 0:x.result)==null?void 0:w.length)>0&&(c=(S=(_=kt.cloneDeep(c))==null?void 0:_.data)==null?void 0:S.result));const u={data:{result:(T=z6.value[a])==null?void 0:T.filter(U=>{var B;return((B=U==null?void 0:U.key)==null?void 0:B.type)==="structureMethod"})}},f={data:{result:(M=(E=o==null?void 0:o.data)==null?void 0:E.result)==null?void 0:M.filter(U=>{var B;return((B=U==null?void 0:U.key)==null?void 0:B.type)==="data"})}};if((r==null?void 0:r[(r==null?void 0:r.length)-1])!==fh){let U=(D=l==null?void 0:l.data)==null?void 0:D.result;if(!Array.isArray(c))return;c==null||c.forEach(B=>{var q,K,he,ie,de;let W=(q=U==null?void 0:U.find(ee=>{var J,Z,le,X;return((Z=(J=B==null?void 0:B.value)==null?void 0:J.pageData)==null?void 0:Z.name)===((X=(le=ee==null?void 0:ee.value)==null?void 0:le.pageData)==null?void 0:X.name)}))==null?void 0:q.value;W?W=W:W=void 0,s.push({key:{pageKey:e,parentTable:((K=W==null?void 0:W.key)==null?void 0:K.parentTable)??"",systemKey:(he=B==null?void 0:B.key)==null?void 0:he.systemKey,type:((ie=W==null?void 0:W.key)==null?void 0:ie.type)??((de=B==null?void 0:B.key)==null?void 0:de.type),version:1},value:Nae(B==null?void 0:B.value,W)})})}else(k=(N=l==null?void 0:l.data)==null?void 0:N.result)==null||k.forEach(U=>{var B,W,q;s.push({key:{pageKey:e,parentTable:(B=U==null?void 0:U.key)==null?void 0:B.parentTable,systemKey:(W=U==null?void 0:U.key)==null?void 0:W.systemKey,type:(q=U==null?void 0:U.key)==null?void 0:q.type,version:1},value:Pae(U==null?void 0:U.value)})});if((A=(I=u==null?void 0:u.data)==null?void 0:I.result)==null||A.forEach(U=>{var B,W;s.push({key:{pageKey:e,systemKey:(B=U==null?void 0:U.key)==null?void 0:B.systemKey,type:(W=U==null?void 0:U.key)==null?void 0:W.type,version:1},value:U==null?void 0:U.value})}),s=s==null?void 0:s.map(U=>{var B,W,q;return((W=(B=U==null?void 0:U.value)==null?void 0:B.pageData)==null?void 0:W.comp)==="Form"&&(U.value.pageData.compData=(q=U.value.pageData.compData)==null?void 0:q.map(K=>{var he;return(K==null?void 0:K.key)==="formContent"&&(K.contents=(he=K.contents)==null?void 0:he.map(ie=>(t!=null&&t[ie==null?void 0:ie.key]&&(ie==null?void 0:ie.type)!=="Date"&&(ie.value=t[ie.key]),ie))),K}),n&&U.value.pageData.compData.push({key:"parentFormPath",contents:n})),U}),(s==null?void 0:s.length)>0){let U;if(!i)U=s;else{const B=s==null?void 0:s.find(q=>{var K,he;return i==null?void 0:i.includes((he=(K=q==null?void 0:q.value)==null?void 0:K.pageData)==null?void 0:he.name)}),W=/^[A-Za-z]+$/;U=B?s==null?void 0:s.map(q=>{var K,he,ie,de,ee,J;return i!=null&&i.includes((he=(K=q==null?void 0:q.value)==null?void 0:K.pageData)==null?void 0:he.name)?{...q,value:{pageData:{...(ie=q==null?void 0:q.value)==null?void 0:ie.pageData,compData:(J=(ee=(de=q==null?void 0:q.value)==null?void 0:de.pageData)==null?void 0:ee.compData)==null?void 0:J.map(Z=>{var le;return(Z==null?void 0:Z.key)==="formContent"?{...Z,contents:(le=Z==null?void 0:Z.contents)==null?void 0:le.map(X=>W.test(X==null?void 0:X.prop)?X:{...X,value:""})}:Z})}}}:q}):s}await kt.batchAddInsofDataApi({dataList:U})}let h={};const d=await kt.getInsofDataApi({key:{pageKey:e,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});((L=(C=l==null?void 0:l.data)==null?void 0:C.result)==null?void 0:L.length)>0&&((P=(R=l==null?void 0:l.data)==null?void 0:R.result)==null||P.forEach(U=>{var B,W,q;h[U.id]=(q=(W=(B=d==null?void 0:d.data)==null?void 0:B.result)==null?void 0:W.find(K=>{var he,ie,de,ee;return((ie=(he=K==null?void 0:K.value)==null?void 0:he.pageData)==null?void 0:ie.name)===((ee=(de=U==null?void 0:U.value)==null?void 0:de.pageData)==null?void 0:ee.name)}))==null?void 0:q.id}));let p=[];(F=(V=f==null?void 0:f.data)==null?void 0:V.result)==null||F.forEach(U=>{var B,W,q;p.push({key:{pageKey:e,tableId:h[(B=U==null?void 0:U.key)==null?void 0:B.tableId],systemKey:(W=U==null?void 0:U.key)==null?void 0:W.systemKey,type:(q=U==null?void 0:U.key)==null?void 0:q.type},value:U==null?void 0:U.value})}),(p==null?void 0:p.length)>0&&await kt.batchAddInsofDataApi({dataList:p})},uwe=async(r,e,t,n,i)=>{var v,g,y,m,b,x,w,_,S,T,E,M,D,N,k,I,A,C,L,R,P,V,F;let a=r;(a==null?void 0:a[(a==null?void 0:a.length)-1])!==G2&&(a="",(g=(v=kt.cloneDeep(r))==null?void 0:v.split(G2))==null||g.forEach((U,B)=>{var W,q;B!==((q=(W=kt.cloneDeep(r))==null?void 0:W.split(G2))==null?void 0:q.length)-1&&(a=a===""?a+U:a+"/"+U)}),a=a+G2);let s=[],o=await kt.getInsofDataApi({key:{pageKey:r,systemKey:sessionStorage.getItem("systemKey")}});const l={data:{result:(m=(y=o==null?void 0:o.data)==null?void 0:y.result)==null?void 0:m.filter(U=>{var B;return((B=U==null?void 0:U.key)==null?void 0:B.type)==="structure"})}};let c;(r==null?void 0:r[(r==null?void 0:r.length)-1])!==G2&&(c={data:{result:(b=z6.value[r])==null?void 0:b.filter(U=>{var B;return((B=U==null?void 0:U.key)==null?void 0:B.type)==="structure"})}},((w=(x=c==null?void 0:c.data)==null?void 0:x.result)==null?void 0:w.length)>0&&(c=(S=(_=kt.cloneDeep(c))==null?void 0:_.data)==null?void 0:S.result));const u={data:{result:(T=z6.value[a])==null?void 0:T.filter(U=>{var B;return((B=U==null?void 0:U.key)==null?void 0:B.type)==="structureMethod"})}},f={data:{result:(M=(E=o==null?void 0:o.data)==null?void 0:E.result)==null?void 0:M.filter(U=>{var B;return((B=U==null?void 0:U.key)==null?void 0:B.type)==="data"})}};if((r==null?void 0:r[(r==null?void 0:r.length)-1])!==G2){let U=(D=l==null?void 0:l.data)==null?void 0:D.result;if(!Array.isArray(c))return;c==null||c.forEach(B=>{var q,K,he,ie,de;let W=(q=U==null?void 0:U.find(ee=>{var J,Z,le,X;return((Z=(J=B==null?void 0:B.value)==null?void 0:J.pageData)==null?void 0:Z.name)===((X=(le=ee==null?void 0:ee.value)==null?void 0:le.pageData)==null?void 0:X.name)}))==null?void 0:q.value;W?W=W:W=void 0,s.push({key:{pageKey:e,parentTable:((K=W==null?void 0:W.key)==null?void 0:K.parentTable)??"",systemKey:(he=B==null?void 0:B.key)==null?void 0:he.systemKey,type:((ie=W==null?void 0:W.key)==null?void 0:ie.type)??((de=B==null?void 0:B.key)==null?void 0:de.type),version:1},value:Nae(B==null?void 0:B.value,W)})})}else(k=(N=l==null?void 0:l.data)==null?void 0:N.result)==null||k.forEach(U=>{var B,W,q;s.push({key:{pageKey:e,parentTable:(B=U==null?void 0:U.key)==null?void 0:B.parentTable,systemKey:(W=U==null?void 0:U.key)==null?void 0:W.systemKey,type:(q=U==null?void 0:U.key)==null?void 0:q.type,version:1},value:Pae(U==null?void 0:U.value)})});if((A=(I=u==null?void 0:u.data)==null?void 0:I.result)==null||A.forEach(U=>{var B,W;s.push({key:{pageKey:e,systemKey:(B=U==null?void 0:U.key)==null?void 0:B.systemKey,type:(W=U==null?void 0:U.key)==null?void 0:W.type,version:1},value:U==null?void 0:U.value})}),s=s==null?void 0:s.map(U=>{var B,W;return(W=(B=U==null?void 0:U.value)==null?void 0:B.pageData)==null||W.comp,U}),(s==null?void 0:s.length)>0){let U;U=s,await kt.batchAddInsofDataApi({dataList:U})}let h={};const d=await kt.getInsofDataApi({key:{pageKey:e,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});((L=(C=l==null?void 0:l.data)==null?void 0:C.result)==null?void 0:L.length)>0&&((P=(R=l==null?void 0:l.data)==null?void 0:R.result)==null||P.forEach(U=>{var B,W,q;h[U.id]=(q=(W=(B=d==null?void 0:d.data)==null?void 0:B.result)==null?void 0:W.find(K=>{var he,ie,de,ee;return((ie=(he=K==null?void 0:K.value)==null?void 0:he.pageData)==null?void 0:ie.name)===((ee=(de=U==null?void 0:U.value)==null?void 0:de.pageData)==null?void 0:ee.name)}))==null?void 0:q.id}));let p=[];(F=(V=f==null?void 0:f.data)==null?void 0:V.result)==null||F.forEach(U=>{var B,W,q;p.push({key:{pageKey:e,tableId:h[(B=U==null?void 0:U.key)==null?void 0:B.tableId],systemKey:(W=U==null?void 0:U.key)==null?void 0:W.systemKey,type:(q=U==null?void 0:U.key)==null?void 0:q.type},value:U==null?void 0:U.value})}),(p==null?void 0:p.length)>0&&await kt.batchAddInsofDataApi({dataList:p})},Fae=(r,e)=>{let t=kt.cloneDeep(r);return t=t==null?void 0:t.map(i=>{var l,c,u;let a=[],s=[];for(let f in e)if(f!=null&&f.includes((c=(l=kt.cloneDeep(i))==null?void 0:l.key)==null?void 0:c.pageKey)){let h=(u=e[f])==null?void 0:u.filter(d=>{var p,v,g;return((p=d==null?void 0:d.key)==null?void 0:p.type)==="data"&&((v=d==null?void 0:d.key)==null?void 0:v.tableId)===((g=kt.cloneDeep(i))==null?void 0:g.id)});s=[...s,...h]}(s==null?void 0:s.length)>0&&(s==null||s.forEach(f=>{a.push(f.value.tableData)}));let o=kt.cloneDeep(i).value.pageData.compData;return o.push({key:"tableContents",contents:a}),i.value.pageData.compData=o,i}),t},Bae=(r,e)=>{if(!(r!=null&&r.includes("[")))return r;let t=r==null?void 0:r.replaceAll("[","").replaceAll("]","").split(":"),n=e==null?void 0:e.map(a=>{var s;return(s=a==null?void 0:a.value)==null?void 0:s.pageData}),i="";return n==null||n.forEach(a=>{var s;(a==null?void 0:a.name)===(t==null?void 0:t[0])&&((s=a==null?void 0:a.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="header"&&((l=o==null?void 0:o.contents)==null||l.forEach((c,u)=>{(c==null?void 0:c.prop)===(t==null?void 0:t[1])&&(i=u)}))}))}),i},Uae=(r,e)=>{if(!(r!=null&&r.includes("[")))return r;let t=r==null?void 0:r.replaceAll("[","").replaceAll("]","").split(":"),n=e==null?void 0:e.map(a=>{var s;return(s=a==null?void 0:a.value)==null?void 0:s.pageData}),i="";return n==null||n.forEach(a=>{var s;(a==null?void 0:a.name)===(t==null?void 0:t[0])&&((s=a==null?void 0:a.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(c=>{(c==null?void 0:c.prop)===(t==null?void 0:t[1])&&(i=c==null?void 0:c.value)}))}))}),i},Sj=(r,e,t,n)=>{var l,c,u;let i=(l=r==null?void 0:r[0])==null?void 0:l.formMenuSelect,a=r==null?void 0:r.map(f=>{var h,d;return(d=(h=f.groupSelect)==null?void 0:h.split(":"))==null?void 0:d[1]}),s="";i==null||i.forEach((f,h)=>{(i==null?void 0:i.length)-1!==h?s=s===""?s+f:s+"/"+f:s=s+fh+f});let o=[];for(let f in e)if(f!=null&&f.includes(s)){let h=(c=e[f])==null?void 0:c.filter(d=>{var p,v;return((p=d==null?void 0:d.key)==null?void 0:p.type)==="structure"&&((v=d==null?void 0:d.key)==null?void 0:v.parentTable)===""});o=[...o,...h]}if((o==null?void 0:o.length)>0){let f=o==null?void 0:o.filter(g=>{var y,m,b;return((y=g==null?void 0:g.key)==null?void 0:y.pageKey)!==s&&((b=(m=g==null?void 0:g.value)==null?void 0:m.pageData)==null?void 0:b.comp)==="Form"}),h=o==null?void 0:o.filter(g=>{var y,m,b;return((y=g==null?void 0:g.key)==null?void 0:y.pageKey)!==s&&((b=(m=g==null?void 0:g.value)==null?void 0:m.pageData)==null?void 0:b.comp)==="Table"});h=Fae(kt.cloneDeep(h),e),f=[...kt.cloneDeep(f),...h],f=f==null?void 0:f.map(g=>({[g.key.pageKey]:g}));let d=0;f=f.reduce((g,y)=>(Object.keys(y).forEach(m=>{g[m]||(g[m]=[],g[m].push({index:d})),g[m].push(y[m])}),d++,g),{});let p=(u=Object.values(f))==null?void 0:u.sort((g,y)=>{var x,w;let m=(x=g==null?void 0:g.find(_=>_==null?void 0:_.index))==null?void 0:x.index,b=(w=y==null?void 0:y.find(_=>_==null?void 0:_.index))==null?void 0:w.index;return m-b});f=p==null?void 0:p.map(g=>g==null?void 0:g.filter(y=>{var m,b,x,w;return!(y!=null&&y.index)&&(y==null?void 0:y.index)!==0&&!((b=(m=y==null?void 0:y.key)==null?void 0:m.pageKey)!=null&&b.includes("updateLoading"))&&!((w=(x=y==null?void 0:y.key)==null?void 0:x.pageKey)!=null&&w.includes("loading"))}));let v=[];if(f==null||f.forEach(g=>{var b,x,w,_,S,T,E,M,D,N;const y=g==null?void 0:g.find(k=>{var I,A,C,L,R;return((A=(I=k==null?void 0:k.value)==null?void 0:I.pageData)==null?void 0:A.name)===((R=(L=(C=r==null?void 0:r[0])==null?void 0:C.groupSelect)==null?void 0:L.split(":"))==null?void 0:R[0])});let m=(S=(_=(w=(x=(b=kt.cloneDeep(y))==null?void 0:b.value)==null?void 0:x.pageData)==null?void 0:w.compData)==null?void 0:_.find(k=>(k==null?void 0:k.key)==="formContent"))==null?void 0:S.contents;if(m){let k=[];a==null||a.forEach((I,A)=>{var R,P,V,F,U,B;let C=g==null?void 0:g.find(W=>{var q,K,he,ie,de;return((K=(q=W==null?void 0:W.value)==null?void 0:q.pageData)==null?void 0:K.name)===((de=(ie=(he=r==null?void 0:r[A])==null?void 0:he.groupSelect)==null?void 0:ie.split(":"))==null?void 0:de[0])}),L=(U=(F=(V=(P=(R=kt.cloneDeep(C))==null?void 0:R.value)==null?void 0:P.pageData)==null?void 0:V.compData)==null?void 0:F.find(W=>(W==null?void 0:W.key)==="formContent"))==null?void 0:U.contents;L!=null&&L.find(W=>(W==null?void 0:W.key)===I)?k.push((B=L==null?void 0:L.find(W=>(W==null?void 0:W.key)===I))==null?void 0:B.value):k.push("")}),v.push(k)}else m=(N=(D=(M=(E=(T=kt.cloneDeep(y))==null?void 0:T.value)==null?void 0:E.pageData)==null?void 0:M.compData)==null?void 0:D.find(k=>(k==null?void 0:k.key)==="tableContents"))==null?void 0:N.contents,m==null||m.forEach(k=>{let I=[];a==null||a.forEach(A=>{k!=null&&k[A]&&I.push(k==null?void 0:k[A])}),v.push(I)})}),(t==null?void 0:t.length)>0){let g={};t==null||t.forEach(y=>{var m;for(let b in y){let x=kt.cloneDeep(b);if(!(x!=null&&x.includes("[")))(m=y[b])!=null&&m.includes("[")||(g[x]=y[b]);else{let w=Uae(x,e[n]),_=Bae(y[b],e[n]);g[w]=_}}});for(let y in g)v=v==null?void 0:v.filter(m=>m[g[y]]===y)}return v}},fwe=(r,e,t,n)=>{var o,l,c,u,f;let i=kt.cloneDeep(r),a=e==null?void 0:e.map(h=>h==null?void 0:h.prop),s=[];for(let h in t)if(h!=null&&h.includes(i)){let d=(o=t[h])==null?void 0:o.filter(p=>{var v,g;return((v=p==null?void 0:p.key)==null?void 0:v.type)==="structure"&&((g=p==null?void 0:p.key)==null?void 0:g.parentTable)===""});s=[...s,...d]}if((s==null?void 0:s.length)>0){let h=s==null?void 0:s.filter(x=>{var w,_,S,T;return((w=x==null?void 0:x.key)==null?void 0:w.pageKey)!==i&&((S=(_=x==null?void 0:x.value)==null?void 0:_.pageData)==null?void 0:S.comp)==="Form"&&(x==null?void 0:x.key.pageKey.includes(i+fh))&&!((T=x==null?void 0:x.key.pageKey)!=null&&T.includes("@"))}),d=s==null?void 0:s.filter(x=>{var w,_,S,T;return((w=x==null?void 0:x.key)==null?void 0:w.pageKey)!==i&&((S=(_=x==null?void 0:x.value)==null?void 0:_.pageData)==null?void 0:S.comp)==="Table"&&(x==null?void 0:x.key.pageKey.includes(i+fh))&&!((T=x==null?void 0:x.key.pageKey)!=null&&T.includes("@"))});d=Fae(kt.cloneDeep(d),t),h=[...kt.cloneDeep(h),...d],h=h==null?void 0:h.map(x=>({[x.key.pageKey]:x}));let p=0;h=h.reduce((x,w)=>(Object.keys(w).forEach(_=>{x[_]||(x[_]=[],x[_].push({index:p})),x[_].push(w[_])}),p++,x),{}),h=Rae(h,!0,t);let v=(l=Object.values(h))==null?void 0:l.sort((x,w)=>{var T,E;let _=(T=x==null?void 0:x.find(M=>M==null?void 0:M.index))==null?void 0:T.index,S=(E=w==null?void 0:w.find(M=>M==null?void 0:M.index))==null?void 0:E.index;return _-S});h=v==null?void 0:v.map(x=>x==null?void 0:x.filter(w=>!(w!=null&&w.index)&&(w==null?void 0:w.index)!==0));let g=(c=kt.cloneDeep(h))==null?void 0:c.filter(x=>x==null?void 0:x.find(w=>{var _,S,T,E;return((E=(_=w==null?void 0:w.key)==null?void 0:_.pageKey)==null?void 0:E[((T=(S=w==null?void 0:w.key)==null?void 0:S.pageKey)==null?void 0:T.length)-1])===fh}));h=h==null?void 0:h.filter(x=>!(x!=null&&x.find(w=>{var _,S,T,E,M,D,N,k;return((E=(_=w==null?void 0:w.key)==null?void 0:_.pageKey)==null?void 0:E[((T=(S=w==null?void 0:w.key)==null?void 0:S.pageKey)==null?void 0:T.length)-1])===fh||((D=(M=w==null?void 0:w.key)==null?void 0:M.pageKey)==null?void 0:D.includes("updateLoading"))||((k=(N=w==null?void 0:w.key)==null?void 0:N.pageKey)==null?void 0:k.includes("loading"))})));let y=[],m=[];(u=g==null?void 0:g[0])==null||u.forEach(x=>{var w,_,S,T,E;((_=(w=x==null?void 0:x.value)==null?void 0:w.pageData)==null?void 0:_.comp)==="Form"&&((E=(T=(S=x==null?void 0:x.value)==null?void 0:S.pageData)==null?void 0:T.compData)==null||E.forEach(M=>{(M==null?void 0:M.key)==="formContent"&&(m=[...m,...M==null?void 0:M.contents])}))});let b=(f=m==null?void 0:m.find(x=>(x==null?void 0:x.isMain)===!0))==null?void 0:f.key;if(h==null||h.forEach(x=>{let w=[];x==null||x.forEach(S=>{var T,E,M,D,N;((E=(T=S==null?void 0:S.value)==null?void 0:T.pageData)==null?void 0:E.comp)==="Form"&&((N=(D=(M=S==null?void 0:S.value)==null?void 0:M.pageData)==null?void 0:D.compData)==null||N.forEach(k=>{(k==null?void 0:k.key)==="formContent"&&(w=[...w,...k==null?void 0:k.contents])}))});let _={};a==null||a.forEach(S=>{let T=w==null?void 0:w.find(E=>(E==null?void 0:E.key)===S);T!=null&&T.prop&&(_[T.prop]=(T==null?void 0:T.value)??"")}),y.push(_)}),(n==null?void 0:n.length)>0){let x=[];n==null||n.forEach(w=>{var E,M,D,N,k,I,A,C;let _={};for(let L in w){let R=kt.cloneDeep(L);if(!(R!=null&&R.includes("[")))w[L].toUpperCase()==="@LOGINUSER"?_[R]=((E=_y.value)==null?void 0:E.姓名)||((M=_y.value)==null?void 0:M.account)||((D=_y.value)==null?void 0:D.账号)||((N=_y.value)==null?void 0:N.姓名):(k=w[L])!=null&&k.includes("[")||(_[R]=w[L]);else{let P=Uae(R,t[r]),V=Bae(w[L],t[r]);_[P]=V}}let S=[],T=0;for(let L in _)((I=_[L])==null?void 0:I[0])!=="!"?S=(A=T>0?S:y)==null?void 0:A.filter(P=>P[L]===_[L]):S=(C=T>0?S:y)==null?void 0:C.filter(R=>{var P;return R[L]!==((P=_[L])==null?void 0:P.replaceAll("!",""))}),T=1;x=[...x,...S]}),y=[...new Set(x)]}return y=y==null?void 0:y.map(x=>Object.values(x)),{mainKey:b,tableContents:y}}},hwe=(r,e)=>{var i,a,s,o,l,c;let t=(a=(i=kt.cloneDeep(r))==null?void 0:i.split("/"))==null?void 0:a[0],n=[];for(let u in e)if(u!=null&&u.includes(t)){let f=(s=e[u])==null?void 0:s.filter(h=>{var d,p;return((d=h==null?void 0:h.key)==null?void 0:d.type)==="structure"&&((p=h==null?void 0:h.key)==null?void 0:p.parentTable)===""});n=[...n,...f]}return(n==null?void 0:n.length)>0?!!((c=(l=(o=n==null?void 0:n.filter(f=>{var h;return((h=f==null?void 0:f.key)==null?void 0:h.pageKey)===t}))==null?void 0:o[0])==null?void 0:l.key)==null?void 0:c.parentPageKey):!0},dwe=async(r,e,t,n)=>{var s,o,l,c,u,f,h,d,p;let i=(o=(s=kt.cloneDeep(r))==null?void 0:s.split("/"))==null?void 0:o[0],a=[];for(let v in n)if(v!=null&&v.includes(i)){let g=(l=n[v])==null?void 0:l.filter(y=>{var m,b;return((m=y==null?void 0:y.key)==null?void 0:m.type)==="structure"&&((b=y==null?void 0:y.key)==null?void 0:b.parentTable)===""});a=[...a,...g]}if((a==null?void 0:a.length)>0){let v=(f=(u=(c=a==null?void 0:a.filter(m=>{var b;return((b=m==null?void 0:m.key)==null?void 0:b.pageKey)===i}))==null?void 0:c[0])==null?void 0:u.key)==null?void 0:f.parentPageKey,g=[];if(v){for(let m in n)if(m!=null&&m.includes(v)){let b=(h=n[m])==null?void 0:h.filter(x=>{var w,_;return((w=x==null?void 0:x.key)==null?void 0:w.type)==="structure"&&((_=x==null?void 0:x.key)==null?void 0:_.parentTable)===""});g=[...g,...b]}}else g=a;let y="";if((g==null?void 0:g.length)>0){let m=[],b;b=(d=g==null?void 0:g.filter(M=>{var D,N,k,I,A,C;return((k=(N=(D=M==null?void 0:M.key)==null?void 0:D.pageKey)==null?void 0:N.split("/"))==null?void 0:k[0])===v&&((C=(A=(I=M==null?void 0:M.key)==null?void 0:I.pageKey)==null?void 0:A.split("/"))==null?void 0:C.length)===2}))==null?void 0:d.map(M=>{var D;return(D=M==null?void 0:M.key)==null?void 0:D.pageKey}),b=[...new Set(b)],b=b==null?void 0:b.filter(M=>!M.includes(fh));let x=(p=kt.cloneDeep(b))==null?void 0:p.map(async M=>{var A,C,L,R,P,V,F,U,B,W,q,K,he,ie,de;let D=await wh(M,sessionStorage.getItem("systemKey"),"",!1,[],!1,n),N=(R=(L=(C=(A=kt.cloneDeep(D))==null?void 0:A[0])==null?void 0:C.compData)==null?void 0:L.find(ee=>(ee==null?void 0:ee.key)==="tableContents"))==null?void 0:R.contents,k=(W=(B=(U=(F=(V=(P=kt.cloneDeep(D))==null?void 0:P[0])==null?void 0:V.compData)==null?void 0:F.find(ee=>(ee==null?void 0:ee.key)==="header"))==null?void 0:U.contents)==null?void 0:B.filter(ee=>(ee==null?void 0:ee.label)!=="操作"))==null?void 0:W.map(ee=>ee==null?void 0:ee.prop),I=[];return(de=(ie=(he=(K=(q=kt.cloneDeep(D))==null?void 0:q[0])==null?void 0:K.compData)==null?void 0:he.find(ee=>(ee==null?void 0:ee.key)==="header"))==null?void 0:ie.contents)==null||de.forEach(ee=>{(ee==null?void 0:ee.isMainKey)===!0&&(y=ee==null?void 0:ee.prop)}),N==null||N.forEach(ee=>{let J=lg(ee,k);I.push(J),m.push({key:J==null?void 0:J[y],routerContent:M})}),I}),w=await Promise.all(x),_=[];w==null||w.forEach(M=>{(M==null?void 0:M.length)>0&&(M==null||M.forEach(D=>{_.push(D)}))});let S=[];S=e==null?void 0:e.map(M=>{var N,k,I;let D={};for(let A in M)M[A].toUpperCase()==="@LOGINUSER"?D[A]=((N=_y.value)==null?void 0:N.姓名)||((k=_y.value)==null?void 0:k.account)||((I=_y.value)==null?void 0:I.账号):D[A]=M[A];return D});let T=[];_==null||_.forEach(M=>{let D=[];S==null||S.forEach(N=>{let k=[];for(let I in N)k.push(M[I]===N[I]);D.push(k)}),D.find(N=>N==null?void 0:N.every(k=>k===!0))&&T.push(M)});let E=[];return T==null||T.forEach(M=>{let D={};t==null||t.forEach(N=>{D[N.prop]=M[N.prop]??""}),E.push(D)}),E=E==null?void 0:E.map(M=>Object.values(M)),{mainKey:y,tableContents:E,mainKeys:m}}else return}else return},pwe=async(r,e,t,n)=>{var a,s,o,l;let i=(a=kt.cloneDeep(r))==null?void 0:a.filter(c=>(c==null?void 0:c.label)!=="操作");if((t==null?void 0:t.length)>0&&(i!=null&&i.every(c=>!(c!=null&&c.formMenuSelect)))&&hwe(e,n)){let c=await dwe(e,t,i,n);return c&&((s=c==null?void 0:c.tableContents)==null?void 0:s.length)>0?c:[]}if(!(i!=null&&i.every(c=>{var u,f,h,d;return((u=c==null?void 0:c.formMenuSelect)==null?void 0:u.length)>0&&((h=(f=c==null?void 0:c.groupSelect)==null?void 0:f.split(":"))==null?void 0:h.length)>0||((d=c==null?void 0:c.formMenuGroup)==null?void 0:d.length)>0})))return fwe(e,i,n,t);if(i!=null&&i.every(c=>!(c!=null&&c.formMenuGroup)))return Sj(i,n,t,e);{let c=[];(l=(o=i==null?void 0:i[0])==null?void 0:o.formMenuGroup)==null||l.forEach((d,p)=>{let v=[];i==null||i.forEach(g=>{var y,m,b,x,w,_;v.push({columnPath:g==null?void 0:g.columnPath,formMenuSelect:(b=((y=g==null?void 0:g.formMenuGroup)==null?void 0:y[p])??((m=g==null?void 0:g.formMenuGroup)==null?void 0:m[0]))==null?void 0:b.formMenuSelect,groupSelect:(_=((x=g==null?void 0:g.formMenuGroup)==null?void 0:x[p])??((w=g==null?void 0:g.formMenuGroup)==null?void 0:w[0]))==null?void 0:_.groupSelect,isRoute:g==null?void 0:g.isRoute,label:g==null?void 0:g.label,prop:g==null?void 0:g.label})}),c.push(v)});let u=[],h=c==null?void 0:c.map(async d=>Sj(d,n,t,e));return h==null||h.forEach(d=>{d==null||d.forEach(p=>{u.push(p)})}),u}},vwe=E_(kt.pinia),{originalPath:zae}=kt.storeToRefs(vwe),mwe=r=>r==null?void 0:r.map(t=>(t=Vae(t),t)),mz=async()=>{var t,n,i,a,s,o,l,c,u,f,h,d;let r;const e=await kt.getInsofDataApi({key:{type:"structure",pageKey:"menu",systemKey:sessionStorage.getItem("systemKey")}});return(o=(s=(a=(i=(n=(t=e.data.result)==null?void 0:t[0])==null?void 0:n.value)==null?void 0:i.pageData)==null?void 0:a.compData)==null?void 0:s[0])!=null&&o.contents&&(r=mwe((d=(h=(f=(u=(c=(l=e.data.result)==null?void 0:l[0])==null?void 0:c.value)==null?void 0:u.pageData)==null?void 0:f.compData)==null?void 0:h[0])==null?void 0:d.contents)),r},gwe=r=>{var n,i,a;const e=(i=(n=r==null?void 0:r.compData)==null?void 0:n.find(s=>(s==null?void 0:s.key)==="header"))==null?void 0:i.contents;return{label:r==null?void 0:r.name,value:r==null?void 0:r.name,children:e!=null&&e.every(s=>!Array.isArray(s))?e==null?void 0:e.map(s=>({label:s==null?void 0:s.label,value:s==null?void 0:s.label})):(a=Xw(e==null?void 0:e[0]))==null?void 0:a.map(s=>({label:s==null?void 0:s.label,value:s==null?void 0:s.label}))}},gz=async r=>{var i,a;let e="";(i=kt.cloneDeep(r))==null||i.forEach(s=>{e=e===""?e+s:e+"/"+s});let t="";(a=kt.cloneDeep(r))==null||a.forEach((s,o)=>{o!==(r==null?void 0:r.length)-1?t=t===""?t+s:t+"/"+s:t=t+zae.value+s});const n=await wh(e,sessionStorage.getItem("systemKey"),"");return n||await wh(t,sessionStorage.getItem("systemKey"),"")},ywe=r=>r.entries().next().done,bwe=async r=>{var n,i,a;const e=await gz(r);let t=[];return((n=e==null?void 0:e.data)==null?void 0:n.type)==="success"&&(t=(a=(i=e.data.result)==null?void 0:i.map(s=>s.value.pageData))==null?void 0:a.filter(s=>(s==null?void 0:s.comp)==="Table"),t=t==null?void 0:t.map(s=>gwe(s))),t},xwe=[{key:"单选",value:"Select"},{key:"日期",value:"Date"},{key:"长文本",value:"TextArea"},{key:"上传",value:"Upload"},{key:"富文本",value:"Quill"}],Sb=[{label:"输入框",value:"Input"},{label:"下拉框",value:"Select"},{label:"日期选择器",value:"Date"},{label:"长文本",value:"TextArea"},{label:"附件选择器",value:"Upload"},{label:"富文本",value:"Quill"},{label:"链接跳转",value:"Link"}],wwe=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Sb},{key:"originalContent",label:"初始值",type:"Input"},{key:"value",label:"固定值",type:"Input"},{key:"isFormColHidden",label:"是否隐藏",name:"是否隐藏",type:"radio",options:[{label:"否",value:!1},{label:"是",value:!0}],value:!1}],_we=async()=>{const r=await mz();return[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Sb},{key:"multiple",label:"多选",default:!1,type:"Switch"},{key:"originalContent",label:"初始值",type:"Select"},{key:"selectRelateType",label:"下拉绑定类型",type:"Select",options:[{label:"关联绑定列",value:"关联绑定列"},{label:"自定义绑定",value:"自定义绑定"}]},{key:"menuSelect",label:"菜单选项",type:"cascader",options:r},{key:"groupSelect",label:"组信息选项",type:"cascader",options:[]},{key:"contents",label:"选项值",type:"Input"}]},Swe=async()=>[{value:"",id:"v1",label:"菜单选项",name:"菜单选项",type:"cascader",contents:await mz()},{value:"",id:"v2",label:"组信息选项",name:"组信息选项",type:"cascader",contents:[]},{value:"",id:"v2",label:"选项值",name:"选项值",type:"Input",contents:[]}],Twe=wae.computed(async()=>await _we()),Ewe=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Sb},{key:"originalContent",label:"初始值",type:"Date"},{key:"isNewDate",label:"当前时间",type:"Switch",value:!1}],Awe=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Sb},{key:"value",label:"固定值",type:"Input"}],kwe=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Sb},{key:"originalContent",label:"初始值",type:"Input"}],Tj=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Sb}],Cwe=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Sb}],Mwe=[{key:"Input",value:wwe},{key:"Select",value:Twe},{key:"Date",value:Ewe},{key:"TextArea",value:kwe},{key:"Upload",value:Tj},{key:"DragUpload",value:Tj},{key:"Quill",value:Cwe},{key:"Link",value:Awe}],Dwe=[{value:"normal",label:"自定义"},{value:"add",label:"新增"},{value:"fix",label:"修改"},{value:"view",label:"查看"},{value:"delete",label:"删除"}],Rwe=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Dwe},{key:"background",label:"颜色",type:"Color"}],Iwe=r=>{var t,n,i,a,s,o,l,c;let e=kt.cloneDeep(r);if(((t=e==null?void 0:e.find(u=>(u==null?void 0:u.name)==="类型"))==null?void 0:t.type)==="Select"&&((a=(i=(n=kt.cloneDeep(e))==null?void 0:n.find(u=>(u==null?void 0:u.name)==="选项值"))==null?void 0:i.value)==null?void 0:a.length)>0){const u=(c=(l=(o=(s=kt.cloneDeep(e))==null?void 0:s.find(f=>(f==null?void 0:f.name)==="选项值"))==null?void 0:o.value)==null?void 0:l.split(","))==null?void 0:c.map(f=>({label:f,value:f}));e=e==null?void 0:e.map(f=>((f==null?void 0:f.name)==="初始值"&&(f.contents=u,f.value=(f==null?void 0:f.value)??""),f))}return e},Vae=r=>{var i;let e={};const t=(i=r==null?void 0:r.filter(a=>!Array.isArray(a)))==null?void 0:i[0];e.label=t,e.value=t;const n=r==null?void 0:r.filter(a=>Array.isArray(a));return n&&(n==null?void 0:n.length)>0&&(e.children=n==null?void 0:n.map(a=>Vae(a))),e},Lwe=async r=>{var a,s,o,l;let e=kt.cloneDeep(r);const t=(a=r==null?void 0:r.find(c=>(c==null?void 0:c.name)==="下拉绑定类型"))==null?void 0:a.value,n=(s=r==null?void 0:r.find(c=>(c==null?void 0:c.name)==="类型"))==null?void 0:s.value,i=await Swe();return n==="Select"&&t===""?e=e==null?void 0:e.filter(c=>(c==null?void 0:c.name)!=="菜单选项"&&(c==null?void 0:c.name)!=="组信息选项"&&(c==null?void 0:c.name)!=="选项值"):n==="Select"&&t==="关联绑定列"?e!=null&&e.find(c=>(c==null?void 0:c.name)==="菜单选项"||(c==null?void 0:c.name)==="组信息选项")?e=(o=kt.cloneDeep(e))==null?void 0:o.filter(c=>(c==null?void 0:c.name)!=="选项值"):e=[...kt.cloneDeep(e),...i].filter(c=>(c==null?void 0:c.name)!=="选项值"):n==="Select"&&t==="自定义绑定"&&(e!=null&&e.find(c=>(c==null?void 0:c.name)==="选项值")?e=(l=kt.cloneDeep(e))==null?void 0:l.filter(c=>(c==null?void 0:c.name)!=="菜单选项"&&(c==null?void 0:c.name)!=="组信息选项"):e=[...kt.cloneDeep(e),...i].filter(c=>(c==null?void 0:c.name)!=="菜单选项"&&(c==null?void 0:c.name)!=="组信息选项")),e},Pwe=(r,e)=>{var n;let t=!1;return(n=kt.cloneDeep(r))==null||n.forEach(i=>{var a;(i==null?void 0:i.key)==="formContent"&&((a=i==null?void 0:i.contents)==null||a.forEach(s=>{(s==null?void 0:s.key)===e?t=!0:t=t}))}),t},Hae=(r,e)=>{var s,o,l,c,u;const t=kt.cloneDeep(r);if(!t)return;let n="";(o=(s=kt.cloneDeep(t))==null?void 0:s.menuSelect)==null||o.forEach(f=>{f!=null&&f.includes("[")?n=n+zae.value:n=n===""?n+f:n+"/"+f});const i=(l=e==null?void 0:e[n])==null?void 0:l.map(f=>{var h;return(h=f==null?void 0:f.value)==null?void 0:h.pageData});let a=i==null?void 0:i.filter(f=>{var h,d;return(f==null?void 0:f.name)===((d=(h=kt.cloneDeep(t))==null?void 0:h.groupSelect)==null?void 0:d[0])});if((a==null?void 0:a.length)===1?a=a==null?void 0:a[0]:(c=kt.cloneDeep(a))==null||c.forEach(f=>{var h,d;(f==null?void 0:f.comp)==="Form"&&Pwe(f==null?void 0:f.compData,(d=(h=kt.cloneDeep(t))==null?void 0:h.groupSelect)==null?void 0:d[1])&&(a=f)}),(a==null?void 0:a.comp)==="Form"){let f="";return(u=a==null?void 0:a.compData)==null||u.forEach(h=>{var d;(h==null?void 0:h.key)==="formContent"&&((d=h==null?void 0:h.contents)==null||d.forEach(p=>{var v,g;(p==null?void 0:p.key)===((g=(v=kt.cloneDeep(t))==null?void 0:v.groupSelect)==null?void 0:g[1])&&(p.type==="Select"&&!(p!=null&&p.value)?f=void 0:f=p==null?void 0:p.value)}))}),f}},Nwe=kt.useLoginState(kt.pinia),{loginUserInfo:mL}=kt.storeToRefs(Nwe),Owe=async r=>{var i,a,s,o,l,c,u,f,h,d,p,v,g,y,m,b,x,w,_,S,T,E,M,D,N,k,I,A,C,L,R,P;let e=[];(i=r==null?void 0:r.menuSelect)==null||i.forEach(V=>{});let t="",n;if(r!=null&&r.menuSelect&&(n=await gz(r==null?void 0:r.menuSelect)),n==null||n.forEach(V=>{var F,U;(V==null?void 0:V.name)===(((U=(F=r==null?void 0:r.groupSelect)==null?void 0:F[0])==null?void 0:U.replaceAll("'",""))??"")&&(t=V==null?void 0:V.id)}),r!=null&&r.menuId){t=r==null?void 0:r.menuId;const V=await kt.getInsofDataApi({id:t}),F=(l=(o=(s=(a=V==null?void 0:V.data)==null?void 0:a.result)==null?void 0:s[0])==null?void 0:o.key)==null?void 0:l.pageKey;n=await wh(F,sessionStorage.getItem("systemKey"),"")}if(t!==""){const V=(f=(u=(c=n==null?void 0:n.find(B=>(B==null?void 0:B.id)===t))==null?void 0:c.compData)==null?void 0:u.find(B=>(B==null?void 0:B.key)==="header"))==null?void 0:f.contents;let F=0;V.every(B=>Array.isArray(B))?F=(h=V==null?void 0:V[0])==null?void 0:h.findIndex(B=>{var W,q,K;return(B==null?void 0:B.label)===((K=(q=(W=r==null?void 0:r.groupSelect)==null?void 0:W[1])==null?void 0:q.replaceAll("[",""))==null?void 0:K.replaceAll("]",""))}):F=V==null?void 0:V.findIndex(B=>{var W,q,K;return(B==null?void 0:B.label)===((K=(q=(W=r==null?void 0:r.groupSelect)==null?void 0:W[1])==null?void 0:q.replaceAll("[",""))==null?void 0:K.replaceAll("]",""))}),F===-1&&(F=0);let U=(g=(v=(p=(d=n==null?void 0:n.find(B=>(B==null?void 0:B.id)===t))==null?void 0:d.compData)==null?void 0:p.find(B=>(B==null?void 0:B.key)==="tableContents"))==null?void 0:v.contents)==null?void 0:g.map(B=>(B=B==null?void 0:B.filter(W=>!(W!=null&&W.id)),B));if((r==null?void 0:r.filter)!==""){let B={};B[(m=(y=r==null?void 0:r.filter)==null?void 0:y.split("#"))==null?void 0:m[0]]=(x=(b=r==null?void 0:r.filter)==null?void 0:b.split("#"))==null?void 0:x[1];let W=(_=(w=r==null?void 0:r.filter)==null?void 0:w.split("#"))==null?void 0:_[1];W==="@loginUser"&&(W=((S=mL.value)==null?void 0:S.姓名)||((T=mL.value)==null?void 0:T.account)||((E=mL.value)==null?void 0:E.账号));let q=V==null?void 0:V.findIndex(K=>{var he,ie;return(K==null?void 0:K.prop)===((ie=(he=Object.keys(B))==null?void 0:he[0])==null?void 0:ie.replaceAll("'",""))});U=U==null?void 0:U.filter(K=>(K==null?void 0:K[q])===W)}if((M=r==null?void 0:r.menuFilter)!=null&&M.find(B=>{var W;return(W=B==null?void 0:B.content)==null?void 0:W.includes("@Condition")})){let B=(I=(k=(N=(D=r==null?void 0:r.menuFilter)==null?void 0:D.find(q=>{var K;return(K=q==null?void 0:q.content)==null?void 0:K.includes("@Condition")}))==null?void 0:N.content)==null?void 0:k.split(":"))==null?void 0:I[1],W=(A=n==null?void 0:n.find(q=>(q==null?void 0:q.id)===t))==null?void 0:A.compData;U=(P=(R=(L=(C=Dae([W],B))==null?void 0:C[0])==null?void 0:L.find(q=>(q==null?void 0:q.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:P.map(q=>(q=q==null?void 0:q.filter(K=>!(K!=null&&K.id)),q))}U==null||U.forEach(B=>{e.push({label:B==null?void 0:B[F],value:B==null?void 0:B[F]})})}return e};/**!
|
|
2
2
|
* Sortable 1.15.6
|
|
3
3
|
* @author RubaXa <trash@rubaxa.org>
|
|
4
4
|
* @author owenm <owen23355@gmail.com>
|