ss-component-new 1.1.968 → 1.1.970
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/{animationData-CgXg3aWP.js → animationData-Cs1xyi1A.js} +3 -3
- package/dist/{animationData-vIUPsax5.cjs → animationData-DkzG4wWh.cjs} +1 -1
- package/dist/{array-CAtuJ0Ce.cjs → array-DecM9H4l.cjs} +1 -1
- package/dist/{array-CJ3NaEEf.js → array-NKfRbH0h.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-C_uHbUqr.cjs → index-0lr165xC.cjs} +1 -1
- package/dist/{index-_lT_HEqC.js → index-2Yqq67IU.js} +6 -6
- package/dist/{index-CYhfJZ5v.js → index-B39shW3q.js} +1 -1
- package/dist/{index-Dedec4ge.cjs → index-B3S02VaR.cjs} +1 -1
- package/dist/{index-CIYgpADx.cjs → index-BA9qwfKE.cjs} +1 -1
- package/dist/{index-D6KPdpP0.cjs → index-BDdnhKwm.cjs} +1 -1
- package/dist/{index-CUwwHEzW.js → index-BDmRbPuQ.js} +2 -2
- package/dist/{index-CcuOHcIO.cjs → index-BEKa9i86.cjs} +1 -1
- package/dist/{index-DQ828YJ3.cjs → index-BGpDTuVY.cjs} +1 -1
- package/dist/{index-0VYkrhJG.cjs → index-BIDCc1G8.cjs} +1 -1
- package/dist/{index-DRTFRXRa.js → index-BNbgnFHv.js} +1 -1
- package/dist/{index-CdfTuxGb.cjs → index-BOA7HMCD.cjs} +1 -1
- package/dist/{index-EJijm_gT.cjs → index-BavrW-fo.cjs} +1 -1
- package/dist/{index-De5eoiw8.js → index-Bd-euVm_.js} +2962 -2958
- package/dist/{index-CHaodEQ4.cjs → index-BgPOSTQs.cjs} +1 -1
- package/dist/{index-BbqNb19X.cjs → index-Bn1aDzTt.cjs} +1 -1
- package/dist/index-BpO_tdLl.cjs +1 -0
- package/dist/{index-rn9SX9Nl.cjs → index-Bpf2owNM.cjs} +1 -1
- package/dist/{index-Cq3syoIX.js → index-Brhf4ViU.js} +806 -806
- package/dist/{index-CBbAqPtN.js → index-BwPZurBP.js} +3 -3
- package/dist/{index-D9F8SKLx.cjs → index-BzC6eWC8.cjs} +1 -1
- package/dist/{index-D0iUTRGH.js → index-C0HRdd_c.js} +3 -3
- package/dist/{index-i-G3yrP3.cjs → index-C4R0CfEE.cjs} +1 -1
- package/dist/{index-ClbwQSnc.cjs → index-C8G_IwB1.cjs} +13 -13
- package/dist/{index-Cn1CAT5v.js → index-CEKH6kdU.js} +1 -1
- package/dist/{index-CdMRtchd.js → index-CExK-pXu.js} +2 -2
- package/dist/{index-DepJzm_V.js → index-CFyNIMNy.js} +2 -2
- package/dist/{index-DKUUYMq4.cjs → index-CHyYHZBB.cjs} +1 -1
- package/dist/{index-BKqNnsf0.cjs → index-CN6vGDE8.cjs} +1 -1
- package/dist/{index-BwL4IL28.cjs → index-CNb3G2v8.cjs} +1 -1
- package/dist/{index-BxEki0jM.cjs → index-CXLYjBEr.cjs} +1 -1
- package/dist/{index-disrgkJ3.js → index-CYkldwGL.js} +2 -2
- package/dist/{index-VNfOCqKl.cjs → index-CZxB1qs5.cjs} +1 -1
- package/dist/{index-DjFfYbPX.js → index-Ca2f0VUg.js} +6 -6
- package/dist/{index-B1XIkz_I.js → index-CcWv2JMn.js} +2 -2
- package/dist/{index-C_rCUjYa.js → index-ClwnmBI2.js} +2 -2
- package/dist/{index-BxGHSUPl.cjs → index-CmSvv5sz.cjs} +1 -1
- package/dist/{index-B6SS1Bmw.js → index-CtFW037j.js} +1 -1
- package/dist/{index-D5-da4-g.js → index-CwH74rkT.js} +5 -5
- package/dist/{index-Bt91L-4V.cjs → index-CwyjIWlq.cjs} +1 -1
- package/dist/{index-jsWJ1pPX.cjs → index-D1qiSl4z.cjs} +1 -1
- package/dist/{index-ZZPgG1-B.cjs → index-D5qQ230r.cjs} +1 -1
- package/dist/{index-BdHcdEnw.cjs → index-D6XpMz35.cjs} +1 -1
- package/dist/{index-9_77UsVI.js → index-D7G9AJWF.js} +2 -2
- package/dist/{index-DpsBCJ_W.js → index-DGk8PC6I.js} +2 -2
- package/dist/{index-BITQf-IP.js → index-DXQvtODI.js} +3 -3
- package/dist/{index-iWe5mgri.cjs → index-DZ1Lftny.cjs} +1 -1
- package/dist/{index-B2rYLxXt.js → index-DZezlj6e.js} +4 -4
- package/dist/{index-HASvh5ZQ.js → index-D_0XLuS9.js} +3 -3
- package/dist/{index-Cysq1-Lh.js → index-D_We23lH.js} +11 -11
- package/dist/{index-BZFlG1sR.js → index-DmMJJ0Jf.js} +3 -3
- package/dist/{index-U_9xRe4o.js → index-DmuGYM5h.js} +19 -19
- package/dist/{index-x-j1smHg.cjs → index-DuQHeRpA.cjs} +1 -1
- package/dist/{index-D5npP3EM.cjs → index-DvWyTRLB.cjs} +1 -1
- package/dist/{index-CsQHODXt.js → index-Dzd34mso.js} +1 -1
- package/dist/{index-CP_TZr3w.cjs → index-Ekt8m_1C.cjs} +1 -1
- package/dist/{index-CP3-EZXr.js → index-LB81kaSe.js} +6 -6
- package/dist/{index-4bnmiKnw.js → index-UpV405LB.js} +10 -10
- package/dist/{index-BzwifOO1.js → index-c1LZxfv-.js} +6 -6
- package/dist/{index-CRKAT5Xa.js → index-cu1e_o9m.js} +2 -2
- package/dist/{index-BPHEc-g6.cjs → index-dSxc93u_.cjs} +1 -1
- package/dist/{index-C_EQzYyN.js → index-enkFmdPq.js} +4 -4
- package/dist/{index-ChrTJ1W6.js → index-iKElN44U.js} +1 -1
- package/dist/{index-CgJJ7PbV.cjs → index-wJwy2tSX.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DBQPkAbZ.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bkf-CuS1.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-9oJPX8GC.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Ct7whq54.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-Cvm84UNX.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-Cx0s-ean.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-CC00QRwn.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-Dbljel7j.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CzQC3P3d.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-9YdwQa2u.js} +14 -14
- package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CQa0CS1h.cjs → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-DKICgO-I.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-DnIBHMkQ.cjs → index.vue_vue_type_style_index_1_lang-BpnUtA8o.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-IgCzvgcg.cjs → index.vue_vue_type_style_index_1_lang-CletbRcG.cjs} +2 -2
- package/dist/{index.vue_vue_type_style_index_1_lang-F_FjApJY.js → index.vue_vue_type_style_index_1_lang-DEUcHlZd.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_1_lang-ChD2Hmhy.js → index.vue_vue_type_style_index_1_lang-DQF03uWi.js} +2 -2
- package/dist/{isString-DRPPYOfx.js → isString-BMd91i2E.js} +1 -1
- package/dist/{isString-9uUnZx8o.cjs → isString-CS7YCv9X.cjs} +1 -1
- package/dist/{isUndefined-0SDwo3OT.js → isUndefined-BAPZm5c1.js} +1 -1
- package/dist/{isUndefined-BMUWuDCd.cjs → isUndefined-CkboWss0.cjs} +1 -1
- package/dist/{main-SYj23ymE.cjs → main-BmmcLWmM.cjs} +1 -1
- package/dist/{main-V_8TBVI5.js → main-FbCHbEH9.js} +5 -5
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeLatheView-CVb17wAI.cjs → threeLatheView-B__-ooFI.cjs} +1 -1
- package/dist/{threeLatheView-BwdNkKJr.js → threeLatheView-Bl2igq1g.js} +2 -2
- package/dist/{threeModel-84rNSik2.js → threeModel-4uFHxx8P.js} +3 -3
- package/dist/{threeModel-wxWlWxtG.cjs → threeModel-DqqiLPCU.cjs} +1 -1
- package/dist/{threePreview-CCPOdEt6.js → threePreview-1VkG7-qJ.js} +1 -1
- package/dist/{threePreview-D8GMBJD2.cjs → threePreview-BuRwDPP-.cjs} +1 -1
- package/dist/{threeSceneView-DRmiFIah.cjs → threeSceneView-BRCKwrsg.cjs} +1 -1
- package/dist/{threeSceneView-C1G0Mt5Y.js → threeSceneView-CRWQXkBv.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-DtZV5jVr.cjs → threeSceneViewForCPMPIP-DeKWat2R.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-Dody72Vh.js → threeSceneViewForCPMPIP-rdRrOQgn.js} +3 -3
- package/dist/{threeViewerHost-DW1H-gNy.cjs → threeViewerHost-C7J24Dzw.cjs} +1 -1
- package/dist/{threeViewerHost-DdFJuluc.js → threeViewerHost-EDXsKeN5.js} +4 -4
- package/package.json +1 -1
- package/public/config.js +1 -1
- package/dist/index-D26u2Y9X.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const f=require("./index-x-j1smHg.cjs"),l=require("vue");function Xr(e){return e}function vo(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}var mo=800,bo=16,So=Date.now;function Eo(e){var n=0,t=0;return function(){var r=So(),i=bo-(r-t);if(t=r,i>0){if(++n>=mo)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}function To(e){return function(){return e}}var wo=f.defineProperty?function(e,n){return f.defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:To(n),writable:!0})}:Xr,Qr=Eo(wo),fr=Math.max;function ei(e,n,t){return n=fr(n===void 0?e.length-1:n,0),function(){for(var r=arguments,i=-1,o=fr(r.length-n,0),a=Array(o);++i<o;)a[i]=r[n+i];i=-1;for(var s=Array(n+1);++i<n;)s[i]=r[i];return s[n]=t(a),vo(e,this,s)}}var hr=f.Symbol?f.Symbol.isConcatSpreadable:void 0;function Do(e){return f.isArray(e)||f.isArguments(e)||!!(hr&&e&&e[hr])}function Nn(e,n,t,r,i){var o=-1,a=e.length;for(t||(t=Do),i||(i=[]);++o<a;){var s=e[o];n>0&&t(s)?n>1?Nn(s,n-1,t,r,i):f.arrayPush(i,s):r||(i[i.length]=s)}return i}function ti(e){var n=e==null?0:e.length;return n?Nn(e,1):[]}function ni(e){return Qr(ei(e,void 0,ti),e+"")}var Ao="__lodash_hash_undefined__";function ko(e){return this.__data__.set(e,Ao),this}function Co(e){return this.__data__.has(e)}function bt(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new f.MapCache;++n<t;)this.add(e[n])}bt.prototype.add=bt.prototype.push=ko;bt.prototype.has=Co;function Io(e,n){for(var t=-1,r=e==null?0:e.length;++t<r;)if(n(e[t],t,e))return!0;return!1}function ri(e,n){return e.has(n)}var xo=1,Bo=2;function ii(e,n,t,r,i,o){var a=t&xo,s=e.length,c=n.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(e),h=o.get(n);if(u&&h)return u==n&&h==e;var p=-1,d=!0,v=t&Bo?new bt:void 0;for(o.set(e,n),o.set(n,e);++p<s;){var g=e[p],b=n[p];if(r)var y=a?r(b,g,p,n,e,o):r(g,b,p,e,n,o);if(y!==void 0){if(y)continue;d=!1;break}if(v){if(!Io(n,function(m,S){if(!ri(v,S)&&(g===m||i(g,m,t,r,o)))return v.push(S)})){d=!1;break}}else if(!(g===b||i(g,b,t,r,o))){d=!1;break}}return o.delete(e),o.delete(n),d}function Ro(e){var n=-1,t=Array(e.size);return e.forEach(function(r,i){t[++n]=[i,r]}),t}function oi(e){var n=-1,t=Array(e.size);return e.forEach(function(r){t[++n]=r}),t}var Mo=1,No=2,Oo="[object Boolean]",Po="[object Date]",Vo="[object Error]",Fo="[object Map]",Lo="[object Number]",Ko="[object RegExp]",_o="[object Set]",Ho="[object String]",Uo="[object Symbol]",$o="[object ArrayBuffer]",zo="[object DataView]",pr=f.Symbol?f.Symbol.prototype:void 0,ln=pr?pr.valueOf:void 0;function jo(e,n,t,r,i,o,a){switch(t){case zo:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case $o:return!(e.byteLength!=n.byteLength||!o(new f.Uint8Array(e),new f.Uint8Array(n)));case Oo:case Po:case Lo:return f.eq(+e,+n);case Vo:return e.name==n.name&&e.message==n.message;case Ko:case Ho:return e==n+"";case Fo:var s=Ro;case _o:var c=r&Mo;if(s||(s=oi),e.size!=n.size&&!c)return!1;var u=a.get(e);if(u)return u==n;r|=No,a.set(e,n);var h=ii(s(e),s(n),r,i,o,a);return a.delete(e),h;case Uo:if(ln)return ln.call(e)==ln.call(n)}return!1}var qo=1,Go=Object.prototype,Wo=Go.hasOwnProperty;function Yo(e,n,t,r,i,o){var a=t&qo,s=f.getAllKeys(e),c=s.length,u=f.getAllKeys(n),h=u.length;if(c!=h&&!a)return!1;for(var p=c;p--;){var d=s[p];if(!(a?d in n:Wo.call(n,d)))return!1}var v=o.get(e),g=o.get(n);if(v&&g)return v==n&&g==e;var b=!0;o.set(e,n),o.set(n,e);for(var y=a;++p<c;){d=s[p];var m=e[d],S=n[d];if(r)var B=a?r(S,m,d,n,e,o):r(m,S,d,e,n,o);if(!(B===void 0?m===S||i(m,S,t,r,o):B)){b=!1;break}y||(y=d=="constructor")}if(b&&!y){var E=e.constructor,C=n.constructor;E!=C&&"constructor"in e&&"constructor"in n&&!(typeof E=="function"&&E instanceof E&&typeof C=="function"&&C instanceof C)&&(b=!1)}return o.delete(e),o.delete(n),b}var Zo=1,dr="[object Arguments]",gr="[object Array]",Ct="[object Object]",Jo=Object.prototype,yr=Jo.hasOwnProperty;function Xo(e,n,t,r,i,o){var a=f.isArray(e),s=f.isArray(n),c=a?gr:f.getTag(e),u=s?gr:f.getTag(n);c=c==dr?Ct:c,u=u==dr?Ct:u;var h=c==Ct,p=u==Ct,d=c==u;if(d&&f.isBuffer(e)){if(!f.isBuffer(n))return!1;a=!0,h=!1}if(d&&!h)return o||(o=new f.Stack),a||f.isTypedArray(e)?ii(e,n,t,r,i,o):jo(e,n,c,t,r,i,o);if(!(t&Zo)){var v=h&&yr.call(e,"__wrapped__"),g=p&&yr.call(n,"__wrapped__");if(v||g){var b=v?e.value():e,y=g?n.value():n;return o||(o=new f.Stack),i(b,y,t,r,o)}}return d?(o||(o=new f.Stack),Yo(e,n,t,r,i,o)):!1}function On(e,n,t,r,i){return e===n?!0:e==null||n==null||!f.isObjectLike(e)&&!f.isObjectLike(n)?e!==e&&n!==n:Xo(e,n,t,r,On,i)}function Qo(e,n){return e!=null&&n in Object(e)}function ea(e,n,t){n=f.castPath(n,e);for(var r=-1,i=n.length,o=!1;++r<i;){var a=f.toKey(n[r]);if(!(o=e!=null&&t(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&f.isLength(i)&&f.isIndex(a,i)&&(f.isArray(e)||f.isArguments(e)))}function ai(e,n){return e!=null&&ea(e,n,Qo)}function si(e,n){return On(e,n)}function ta(e,n,t){for(var r=-1,i=n.length,o={};++r<i;){var a=n[r],s=f.baseGet(e,a);t(s,a)&&f.baseSet(o,f.castPath(a,e),s)}return o}function na(e,n){return ta(e,n,function(t,r){return ai(e,r)})}var li=ni(function(e,n){return e==null?{}:na(e,n)});const $t="update:modelValue",Sn="change",En="input";function ra(e,n,t,r){const i=t-n;return e/=r/2,e<1?i/2*e*e*e+n:i/2*((e-=2)*e*e+2)+n}const ui=e=>f.isClient?window.requestAnimationFrame(e):setTimeout(e,16),ci=e=>f.isClient?window.cancelAnimationFrame(e):clearTimeout(e),ia=(e,n)=>{if(!f.isClient)return!1;const t={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(n)],r=f.getStyle(e,t);return["scroll","auto","overlay"].some(i=>r.includes(i))},oa=(e,n)=>{if(!f.isClient)return;let t=e;for(;t;){if([window,document,document.documentElement].includes(t))return window;if(ia(t,n))return t;t=t.parentNode}return t};let It;const fi=e=>{var n;if(!f.isClient)return 0;if(It!==void 0)return It;const t=document.createElement("div");t.className=`${e}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const r=t.offsetWidth;t.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",t.appendChild(i);const o=i.offsetWidth;return(n=t.parentNode)==null||n.removeChild(t),It=r-o,It};function aa(e,n){if(!f.isClient)return;if(!n){e.scrollTop=0;return}const t=[];let r=n.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)t.push(r),r=r.offsetParent;const i=n.offsetTop+t.reduce((c,u)=>c+u.offsetTop,0),o=i+n.offsetHeight,a=e.scrollTop,s=a+e.clientHeight;i<a?e.scrollTop=i:o>s&&(e.scrollTop=o-e.clientHeight)}function sa(e,n,t,r,i){const o=Date.now();let a;const s=()=>{const u=Date.now()-o,h=ra(u>r?r:u,n,t,r);f.isWindow(e)?e.scrollTo(window.pageXOffset,h):e.scrollTop=h,u<r?a=ui(s):f.isFunction(i)&&i()};return s(),()=>{a&&ci(a)}}const la=(e,n)=>f.isWindow(n)?e.ownerDocument.documentElement:n,ua=e=>f.isWindow(e)?window.scrollY:e.scrollTop,hi=()=>f.isClient&&/firefox/i.test(window.navigator.userAgent);let be;const ca={height:"0",visibility:"hidden",overflow:hi()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},fa=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function ha(e){const n=window.getComputedStyle(e),t=n.getPropertyValue("box-sizing"),r=Number.parseFloat(n.getPropertyValue("padding-bottom"))+Number.parseFloat(n.getPropertyValue("padding-top")),i=Number.parseFloat(n.getPropertyValue("border-bottom-width"))+Number.parseFloat(n.getPropertyValue("border-top-width"));return{contextStyle:fa.map(a=>[a,n.getPropertyValue(a)]),paddingSize:r,borderSize:i,boxSizing:t}}function vr(e,n=1,t){var r;be||(be=document.createElement("textarea"),document.body.appendChild(be));const{paddingSize:i,borderSize:o,boxSizing:a,contextStyle:s}=ha(e);s.forEach(([p,d])=>be==null?void 0:be.style.setProperty(p,d)),Object.entries(ca).forEach(([p,d])=>be==null?void 0:be.style.setProperty(p,d,"important")),be.value=e.value||e.placeholder||"";let c=be.scrollHeight;const u={};a==="border-box"?c=c+o:a==="content-box"&&(c=c-i),be.value="";const h=be.scrollHeight-i;if(f.isNumber(n)){let p=h*n;a==="border-box"&&(p=p+i+o),c=Math.max(p,c),u.minHeight=`${p}px`}if(f.isNumber(t)){let p=h*t;a==="border-box"&&(p=p+i+o),c=Math.min(p,c)}return u.height=`${c}px`,(r=be.parentNode)==null||r.removeChild(be),be=void 0,u}const pa=f.buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),pi=e=>li(pa,e),di=f.buildProps({id:{type:String,default:void 0},size:f.useSizeProp,disabled:Boolean,modelValue:{type:f.definePropType([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:f.definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:f.iconPropType},prefixIcon:{type:f.iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:f.definePropType([Object,Array,String]),default:()=>f.mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...pi(["ariaLabel"])}),da={[$t]:e=>f.isString(e),input:e=>f.isString(e),change:e=>f.isString(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},ga=["class","style"],ya=/^on[A-Z]/,gi=(e={})=>{const{excludeListeners:n=!1,excludeKeys:t}=e,r=l.computed(()=>((t==null?void 0:t.value)||[]).concat(ga)),i=l.getCurrentInstance();return i?l.computed(()=>{var o;return f.fromPairs(Object.entries((o=i.proxy)==null?void 0:o.$attrs).filter(([a])=>!r.value.includes(a)&&!(n&&ya.test(a))))}):(f.debugWarn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),l.computed(()=>({})))},Tn={prefix:Math.floor(Math.random()*1e4),current:0},va=Symbol("elIdInjection"),yi=()=>l.getCurrentInstance()?l.inject(va,Tn):Tn,zt=e=>{const n=yi();!f.isClient&&n===Tn&&f.debugWarn("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
1
|
+
"use strict";const f=require("./index-DuQHeRpA.cjs"),l=require("vue");function Xr(e){return e}function vo(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}var mo=800,bo=16,So=Date.now;function Eo(e){var n=0,t=0;return function(){var r=So(),i=bo-(r-t);if(t=r,i>0){if(++n>=mo)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}function To(e){return function(){return e}}var wo=f.defineProperty?function(e,n){return f.defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:To(n),writable:!0})}:Xr,Qr=Eo(wo),fr=Math.max;function ei(e,n,t){return n=fr(n===void 0?e.length-1:n,0),function(){for(var r=arguments,i=-1,o=fr(r.length-n,0),a=Array(o);++i<o;)a[i]=r[n+i];i=-1;for(var s=Array(n+1);++i<n;)s[i]=r[i];return s[n]=t(a),vo(e,this,s)}}var hr=f.Symbol?f.Symbol.isConcatSpreadable:void 0;function Do(e){return f.isArray(e)||f.isArguments(e)||!!(hr&&e&&e[hr])}function Nn(e,n,t,r,i){var o=-1,a=e.length;for(t||(t=Do),i||(i=[]);++o<a;){var s=e[o];n>0&&t(s)?n>1?Nn(s,n-1,t,r,i):f.arrayPush(i,s):r||(i[i.length]=s)}return i}function ti(e){var n=e==null?0:e.length;return n?Nn(e,1):[]}function ni(e){return Qr(ei(e,void 0,ti),e+"")}var Ao="__lodash_hash_undefined__";function ko(e){return this.__data__.set(e,Ao),this}function Co(e){return this.__data__.has(e)}function bt(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new f.MapCache;++n<t;)this.add(e[n])}bt.prototype.add=bt.prototype.push=ko;bt.prototype.has=Co;function Io(e,n){for(var t=-1,r=e==null?0:e.length;++t<r;)if(n(e[t],t,e))return!0;return!1}function ri(e,n){return e.has(n)}var xo=1,Bo=2;function ii(e,n,t,r,i,o){var a=t&xo,s=e.length,c=n.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(e),h=o.get(n);if(u&&h)return u==n&&h==e;var p=-1,d=!0,v=t&Bo?new bt:void 0;for(o.set(e,n),o.set(n,e);++p<s;){var g=e[p],b=n[p];if(r)var y=a?r(b,g,p,n,e,o):r(g,b,p,e,n,o);if(y!==void 0){if(y)continue;d=!1;break}if(v){if(!Io(n,function(m,S){if(!ri(v,S)&&(g===m||i(g,m,t,r,o)))return v.push(S)})){d=!1;break}}else if(!(g===b||i(g,b,t,r,o))){d=!1;break}}return o.delete(e),o.delete(n),d}function Ro(e){var n=-1,t=Array(e.size);return e.forEach(function(r,i){t[++n]=[i,r]}),t}function oi(e){var n=-1,t=Array(e.size);return e.forEach(function(r){t[++n]=r}),t}var Mo=1,No=2,Oo="[object Boolean]",Po="[object Date]",Vo="[object Error]",Fo="[object Map]",Lo="[object Number]",Ko="[object RegExp]",_o="[object Set]",Ho="[object String]",Uo="[object Symbol]",$o="[object ArrayBuffer]",zo="[object DataView]",pr=f.Symbol?f.Symbol.prototype:void 0,ln=pr?pr.valueOf:void 0;function jo(e,n,t,r,i,o,a){switch(t){case zo:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case $o:return!(e.byteLength!=n.byteLength||!o(new f.Uint8Array(e),new f.Uint8Array(n)));case Oo:case Po:case Lo:return f.eq(+e,+n);case Vo:return e.name==n.name&&e.message==n.message;case Ko:case Ho:return e==n+"";case Fo:var s=Ro;case _o:var c=r&Mo;if(s||(s=oi),e.size!=n.size&&!c)return!1;var u=a.get(e);if(u)return u==n;r|=No,a.set(e,n);var h=ii(s(e),s(n),r,i,o,a);return a.delete(e),h;case Uo:if(ln)return ln.call(e)==ln.call(n)}return!1}var qo=1,Go=Object.prototype,Wo=Go.hasOwnProperty;function Yo(e,n,t,r,i,o){var a=t&qo,s=f.getAllKeys(e),c=s.length,u=f.getAllKeys(n),h=u.length;if(c!=h&&!a)return!1;for(var p=c;p--;){var d=s[p];if(!(a?d in n:Wo.call(n,d)))return!1}var v=o.get(e),g=o.get(n);if(v&&g)return v==n&&g==e;var b=!0;o.set(e,n),o.set(n,e);for(var y=a;++p<c;){d=s[p];var m=e[d],S=n[d];if(r)var B=a?r(S,m,d,n,e,o):r(m,S,d,e,n,o);if(!(B===void 0?m===S||i(m,S,t,r,o):B)){b=!1;break}y||(y=d=="constructor")}if(b&&!y){var E=e.constructor,C=n.constructor;E!=C&&"constructor"in e&&"constructor"in n&&!(typeof E=="function"&&E instanceof E&&typeof C=="function"&&C instanceof C)&&(b=!1)}return o.delete(e),o.delete(n),b}var Zo=1,dr="[object Arguments]",gr="[object Array]",Ct="[object Object]",Jo=Object.prototype,yr=Jo.hasOwnProperty;function Xo(e,n,t,r,i,o){var a=f.isArray(e),s=f.isArray(n),c=a?gr:f.getTag(e),u=s?gr:f.getTag(n);c=c==dr?Ct:c,u=u==dr?Ct:u;var h=c==Ct,p=u==Ct,d=c==u;if(d&&f.isBuffer(e)){if(!f.isBuffer(n))return!1;a=!0,h=!1}if(d&&!h)return o||(o=new f.Stack),a||f.isTypedArray(e)?ii(e,n,t,r,i,o):jo(e,n,c,t,r,i,o);if(!(t&Zo)){var v=h&&yr.call(e,"__wrapped__"),g=p&&yr.call(n,"__wrapped__");if(v||g){var b=v?e.value():e,y=g?n.value():n;return o||(o=new f.Stack),i(b,y,t,r,o)}}return d?(o||(o=new f.Stack),Yo(e,n,t,r,i,o)):!1}function On(e,n,t,r,i){return e===n?!0:e==null||n==null||!f.isObjectLike(e)&&!f.isObjectLike(n)?e!==e&&n!==n:Xo(e,n,t,r,On,i)}function Qo(e,n){return e!=null&&n in Object(e)}function ea(e,n,t){n=f.castPath(n,e);for(var r=-1,i=n.length,o=!1;++r<i;){var a=f.toKey(n[r]);if(!(o=e!=null&&t(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&f.isLength(i)&&f.isIndex(a,i)&&(f.isArray(e)||f.isArguments(e)))}function ai(e,n){return e!=null&&ea(e,n,Qo)}function si(e,n){return On(e,n)}function ta(e,n,t){for(var r=-1,i=n.length,o={};++r<i;){var a=n[r],s=f.baseGet(e,a);t(s,a)&&f.baseSet(o,f.castPath(a,e),s)}return o}function na(e,n){return ta(e,n,function(t,r){return ai(e,r)})}var li=ni(function(e,n){return e==null?{}:na(e,n)});const $t="update:modelValue",Sn="change",En="input";function ra(e,n,t,r){const i=t-n;return e/=r/2,e<1?i/2*e*e*e+n:i/2*((e-=2)*e*e+2)+n}const ui=e=>f.isClient?window.requestAnimationFrame(e):setTimeout(e,16),ci=e=>f.isClient?window.cancelAnimationFrame(e):clearTimeout(e),ia=(e,n)=>{if(!f.isClient)return!1;const t={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(n)],r=f.getStyle(e,t);return["scroll","auto","overlay"].some(i=>r.includes(i))},oa=(e,n)=>{if(!f.isClient)return;let t=e;for(;t;){if([window,document,document.documentElement].includes(t))return window;if(ia(t,n))return t;t=t.parentNode}return t};let It;const fi=e=>{var n;if(!f.isClient)return 0;if(It!==void 0)return It;const t=document.createElement("div");t.className=`${e}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const r=t.offsetWidth;t.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",t.appendChild(i);const o=i.offsetWidth;return(n=t.parentNode)==null||n.removeChild(t),It=r-o,It};function aa(e,n){if(!f.isClient)return;if(!n){e.scrollTop=0;return}const t=[];let r=n.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)t.push(r),r=r.offsetParent;const i=n.offsetTop+t.reduce((c,u)=>c+u.offsetTop,0),o=i+n.offsetHeight,a=e.scrollTop,s=a+e.clientHeight;i<a?e.scrollTop=i:o>s&&(e.scrollTop=o-e.clientHeight)}function sa(e,n,t,r,i){const o=Date.now();let a;const s=()=>{const u=Date.now()-o,h=ra(u>r?r:u,n,t,r);f.isWindow(e)?e.scrollTo(window.pageXOffset,h):e.scrollTop=h,u<r?a=ui(s):f.isFunction(i)&&i()};return s(),()=>{a&&ci(a)}}const la=(e,n)=>f.isWindow(n)?e.ownerDocument.documentElement:n,ua=e=>f.isWindow(e)?window.scrollY:e.scrollTop,hi=()=>f.isClient&&/firefox/i.test(window.navigator.userAgent);let be;const ca={height:"0",visibility:"hidden",overflow:hi()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},fa=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function ha(e){const n=window.getComputedStyle(e),t=n.getPropertyValue("box-sizing"),r=Number.parseFloat(n.getPropertyValue("padding-bottom"))+Number.parseFloat(n.getPropertyValue("padding-top")),i=Number.parseFloat(n.getPropertyValue("border-bottom-width"))+Number.parseFloat(n.getPropertyValue("border-top-width"));return{contextStyle:fa.map(a=>[a,n.getPropertyValue(a)]),paddingSize:r,borderSize:i,boxSizing:t}}function vr(e,n=1,t){var r;be||(be=document.createElement("textarea"),document.body.appendChild(be));const{paddingSize:i,borderSize:o,boxSizing:a,contextStyle:s}=ha(e);s.forEach(([p,d])=>be==null?void 0:be.style.setProperty(p,d)),Object.entries(ca).forEach(([p,d])=>be==null?void 0:be.style.setProperty(p,d,"important")),be.value=e.value||e.placeholder||"";let c=be.scrollHeight;const u={};a==="border-box"?c=c+o:a==="content-box"&&(c=c-i),be.value="";const h=be.scrollHeight-i;if(f.isNumber(n)){let p=h*n;a==="border-box"&&(p=p+i+o),c=Math.max(p,c),u.minHeight=`${p}px`}if(f.isNumber(t)){let p=h*t;a==="border-box"&&(p=p+i+o),c=Math.min(p,c)}return u.height=`${c}px`,(r=be.parentNode)==null||r.removeChild(be),be=void 0,u}const pa=f.buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),pi=e=>li(pa,e),di=f.buildProps({id:{type:String,default:void 0},size:f.useSizeProp,disabled:Boolean,modelValue:{type:f.definePropType([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:f.definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:f.iconPropType},prefixIcon:{type:f.iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:f.definePropType([Object,Array,String]),default:()=>f.mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...pi(["ariaLabel"])}),da={[$t]:e=>f.isString(e),input:e=>f.isString(e),change:e=>f.isString(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},ga=["class","style"],ya=/^on[A-Z]/,gi=(e={})=>{const{excludeListeners:n=!1,excludeKeys:t}=e,r=l.computed(()=>((t==null?void 0:t.value)||[]).concat(ga)),i=l.getCurrentInstance();return i?l.computed(()=>{var o;return f.fromPairs(Object.entries((o=i.proxy)==null?void 0:o.$attrs).filter(([a])=>!r.value.includes(a)&&!(n&&ya.test(a))))}):(f.debugWarn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),l.computed(()=>({})))},Tn={prefix:Math.floor(Math.random()*1e4),current:0},va=Symbol("elIdInjection"),yi=()=>l.getCurrentInstance()?l.inject(va,Tn):Tn,zt=e=>{const n=yi();!f.isClient&&n===Tn&&f.debugWarn("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
2
2
|
usage: app.provide(ID_INJECTION_KEY, {
|
|
3
3
|
prefix: number,
|
|
4
4
|
current: number,
|
|
@@ -29,4 +29,4 @@ version: 2.9.0
|
|
|
29
29
|
`;return t+=n.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
30
30
|
`,t+="-----END RSA PRIVATE KEY-----",t},n.prototype.getPublicKey=function(){var t=`-----BEGIN PUBLIC KEY-----
|
|
31
31
|
`;return t+=n.wordwrap(this.getPublicBaseKeyB64())+`
|
|
32
|
-
`,t+="-----END PUBLIC KEY-----",t},n.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},n.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},n.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},n}(Kl),vn,zl=typeof process<"u"?(vn=process.env)===null||vn===void 0?void 0:vn.npm_package_version:void 0,an=function(){function e(n){n===void 0&&(n={}),n=n||{},this.default_key_size=n.default_key_size?parseInt(n.default_key_size,10):1024,this.default_public_exponent=n.default_public_exponent||"010001",this.log=n.log||!1,this.key=null}return e.prototype.setKey=function(n){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new jr(n)},e.prototype.setPrivateKey=function(n){this.setKey(n)},e.prototype.setPublicKey=function(n){this.setKey(n)},e.prototype.decrypt=function(n){try{return this.getKey().decrypt(Lr(n))}catch{return!1}},e.prototype.encrypt=function(n){try{return qt(this.getKey().encrypt(n))}catch{return!1}},e.prototype.sign=function(n,t,r){try{return qt(this.getKey().sign(n,t,r))}catch{return!1}},e.prototype.verify=function(n,t,r){try{return this.getKey().verify(n,Lr(t),r)}catch{return!1}},e.prototype.getKey=function(n){if(!this.key){if(this.key=new jr,n&&{}.toString.call(n)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,n);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=zl,e}();function jl(){const e=new an({default_key_size:"2048"});return{publicKey:e.getPublicKey(),privateKey:e.getPrivateKey()}}function yt(e,n){const t=new an;return t.setPublicKey(n),t.encrypt(e)||""}function Jn(e,n){const t=new an;return t.setPrivateKey(n),t.decrypt(e)||""}function qr(){return typeof new an().encrypt=="function"}const io=f.useLoginState(f.pinia),{superAdminInfo:ql,cryptoInfo:me,loginUserInfo:mn}=f.storeToRefs(io),Gl=Dt(f.pinia),{activeMenuPath:mt}=f.storeToRefs(Gl),Bn=ft(f.pinia),st="123456",Wl=Un(f.pinia),{routerPageStructures:Yl}=f.storeToRefs(Wl),Xn=l.ref(0),Zl=l.ref([{label:"用户名称",value:"",name:"userName"}]),et=l.computed(()=>{const e=sessionStorage.getItem("isSuperAdmin");return e?JSON.parse(e):!1}),Jl=e=>{console.log("handleQueryChange",e)},Gt=l.ref([]),oo=l.ref(""),Wt=l.computed(()=>{var n,t,r,i,o;const e=(n=Yl.value)==null?void 0:n.find(a=>{var s;return((s=a==null?void 0:a.comp)==null?void 0:s.toUpperCase())==="TABLE"});return e?(oo.value=e.name,Gt.value=(i=(r=(t=e==null?void 0:e.compData)==null?void 0:t.find(s=>(s==null?void 0:s.key)==="header"))==null?void 0:r.contents)==null?void 0:i.filter(s=>(s==null?void 0:s.label)!=="操作"),(o=e==null?void 0:e.compData)==null?void 0:o.map(s=>{var c;if((s==null?void 0:s.key)==="rowButton"){const u=[...s==null?void 0:s.contents,{label:"重置密码"}];return{...s,contents:u}}return(s==null?void 0:s.key)==="header"?{...s,contents:(c=s==null?void 0:s.contents)==null?void 0:c.map(u=>{var h,p,d,v;return{...u,isTableColHidden:((h=u==null?void 0:u.prop)==null?void 0:h.includes("头像"))||((p=u==null?void 0:u.prop)==null?void 0:p.includes("签名")),isFormColHidden:((d=u==null?void 0:u.prop)==null?void 0:d.includes("头像"))||((v=u==null?void 0:u.prop)==null?void 0:v.includes("签名"))}})}:s})):[]}),Xl=e=>{Bn.setRefreshCurStructure(!1),sn(e.singleContent,e.buttonName,Xn.value,e==null?void 0:e.selectItems)},Rn=l.ref(),Ql=e=>{console.log("onDoubleClick",e)},eu=(e,n)=>{e==="重置密码"&&Ki.confirm(`该操作将会重置【${(n==null?void 0:n.account)||(n==null?void 0:n.账号)}】的密码为【${st}】,确认重置?`,"警告",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Rn.value={...n,password:st},sn(Rn.value,e,Xn.value)}).catch(()=>{f.ElMessage.info("取消重置")})},tu=()=>{Yt(mt.value).then(e=>{var t;const n=Array.isArray(e)&&(e==null?void 0:e.filter(r=>(r==null?void 0:r.account)!==ql.value.account));Wt.value=(t=Wt.value)==null?void 0:t.map(r=>r.key==="tableContents"?{...r,contents:n==null?void 0:n.map(i=>{var o;return{...i,password:Jn(i==null?void 0:i.password,(o=me==null?void 0:me.value)==null?void 0:o.privateKey)}})}:r)})},lt=async(e,n,t)=>{var r,i;try{const o=await e(n);return((r=o==null?void 0:o.data)==null?void 0:r.code)===200?(t!=="查询"&&await io.setLogRecordAsync({type:t,data:n},mt.value),f.ElMessage.success("保存成功"),Bn.setRefreshCurStructure(!0),o.data.result||((i=o==null?void 0:o.data)==null?void 0:i.code)===200):null}catch(o){f.ElMessage.error(o)}finally{Bn.setCacheUpdatingData(null)}},nu=async(e,n)=>{var o,a;let t=[];Array.isArray(e)?t=f.cloneDeep(e):t=[f.cloneDeep(e)];const r=(o=t==null?void 0:t.filter(s=>typeof(s==null?void 0:s.id)=="string"))==null?void 0:o.map(s=>{var u,h,p,d,v,g,b;const c=Tt(s,Gt.value);return qr()&&c&&(!c.password&&et.value?c.password=yt(st,(u=me==null?void 0:me.value)==null?void 0:u.publicKey):c.password&&et.value&&(c.password=yt(c==null?void 0:c.password,(h=me==null?void 0:me.value)==null?void 0:h.publicKey))),{key:{type:"data",layer:s==null?void 0:s.layer,systemKey:sessionStorage.getItem("systemKey"),pageKey:(p=mt.value)!=null&&p.startsWith("/")?(d=mt.value)==null?void 0:d.substring(1):mt.value,tableId:n,createUserId:(v=mn.value)==null?void 0:v.id,createUserOrg:((g=mn.value)==null?void 0:g.dept)||((b=mn.value)==null?void 0:b.部门名称)},value:{tableData:c}}}),i=(a=t==null?void 0:t.filter(s=>typeof(s==null?void 0:s.id)=="number"))==null?void 0:a.map(s=>{var u,h;const c=Tt(s,Gt.value);return qr()&&c&&(!c.password&&et.value?c.password=yt(st,(u=me==null?void 0:me.value)==null?void 0:u.publicKey):c.password&&et.value&&(c.password=yt(c==null?void 0:c.password,(h=me==null?void 0:me.value)==null?void 0:h.publicKey))),{id:s==null?void 0:s.id,value:{tableData:c}}});r.length>0&&await lt(f.batchAddInsofDataApi,{dataList:r},"新增"),i.length>0&&(await lt(f.batchUpdateInsofDataApi,{dataList:i},"编辑"),qe.show=!1)},sn=async(e,n,t,r)=>{if(!(n!=null&&n.includes("删除")))await nu(e,t);else{let i=[];n!=null&&n.includes("批量")?i=r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map(o=>o==null?void 0:o.id):[]:i=[e==null?void 0:e.id],await lt(f.batchDeleteInsofDataApi,{ids:i},"编辑")}},Yt=async e=>{const n=await lt(f.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),t=n==null?void 0:n.map(r=>{var i,o;return{id:r.id,layer:(i=r.key)==null?void 0:i.layer,tableData:(o=r==null?void 0:r.value)==null?void 0:o.tableData}});return t==null?void 0:t.map(r=>{var i;if(!Array.isArray(r==null?void 0:r.tableData))return{...r.tableData,layer:(i=r.key)==null?void 0:i.layer,id:r.id}})},ru={comp:"Group",name:"/系统管理/用户管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:Wt.value,name:""}]}]},iu=Object.freeze(Object.defineProperty({__proto__:null,changedRow:Rn,clickRowButton:eu,columns:Gt,compName:oo,getPageDataAsync:Yt,handleItemDataChange:Xl,handleQueryChange:Jl,handleSubmitAsync:lt,loginUserIsSuper:et,onDoubleClick:Ql,pageData:Wt,queryFormData:Zl,refreshUserTableData:tu,resetPassword:st,structureId:Xn,submitTableAsyncByVerify:sn,tempUserPageData:ru},Symbol.toStringTag,{value:"Module"})),At=f.defineStore("originalState",{state:()=>({originalPath:"^"}),actions:{}}),ou=ft(f.pinia),{routeToChildPath:Gr}=f.storeToRefs(ou),au=f.useLoginState(f.pinia),{loginUserInfo:Zt,cryptoInfo:bn}=f.storeToRefs(au),su=At(f.pinia),{originalPath:Wr}=f.storeToRefs(su),lu=e=>{var n,t,r;return((t=(n=Zt.value)==null?void 0:n.layer)==null?void 0:t.toUpperCase())==="SUPERADMIN"?!0:((r=Zt.value)==null?void 0:r.account)===(e==null?void 0:e.account)},uu=async(e,n,t)=>{const r=Yt("/系统管理/角色管理"),i=Yt("/系统管理/部门管理");return await Promise.all([r,i]).then(a=>{var u,h;const s=(u=a==null?void 0:a[0])==null?void 0:u.map(p=>({label:p==null?void 0:p.roleName,value:p==null?void 0:p.roleName})),c=(h=a==null?void 0:a[1])==null?void 0:h.map(p=>({label:p==null?void 0:p.deptName,value:p==null?void 0:p.deptName}));return e==null?void 0:e.map(p=>{var d;return{...p,compData:(d=p==null?void 0:p.compData)==null?void 0:d.map(v=>{var g,b;return(v==null?void 0:v.key)==="header"?{...v,contents:(g=v==null?void 0:v.contents)==null?void 0:g.map(y=>y.prop==="userDept"?{...y,options:c}:y.prop==="userRoles"?{...y,options:s}:y)}:(v==null?void 0:v.key)==="tableContents"?{...v,contents:(b=v==null?void 0:v.contents)==null?void 0:b.map(y=>{var m;return{...y,password:lu(y)?Jn(y==null?void 0:y.password,(m=bn==null?void 0:bn.value)==null?void 0:m.privateKey):y==null?void 0:y.password}})}:v})}})})},cu=async(e,n)=>{const t=sessionStorage.getItem("authority"),r=JSON.parse(t||"");if(Array.isArray(r)){let i;Gr.value?i=Array.isArray(r)&&(r==null?void 0:r.filter(s=>(s==null?void 0:s.includes(e))||(s==null?void 0:s.includes(Gr.value)))):i=Array.isArray(r)&&(r==null?void 0:r.filter(s=>s==null?void 0:s.includes(e)));const o=i==null?void 0:i.map(s=>{var c;return((c=s==null?void 0:s.split("/"))==null?void 0:c.pop())||""});return n==null?void 0:n.map(s=>{var c;return{...s,compData:(c=s==null?void 0:s.compData)==null?void 0:c.map(u=>{var h;return(u==null?void 0:u.key)==="rowButton"||(u==null?void 0:u.key)==="extraButton"?{...u,contents:(h=u==null?void 0:u.contents)==null?void 0:h.filter(p=>o==null?void 0:o.includes(p==null?void 0:p.label))}:u})}})}else return typeof r=="string"&&(r==null?void 0:r.toUpperCase())==="SUPERADMIN"?e==="/系统管理/用户管理"?await uu(n):n:[]},fu=(e,n)=>{var o,a,s,c;const t=(a=(o=n["系统管理/角色管理"])==null?void 0:o.filter(u=>{var h;return((h=u==null?void 0:u.key)==null?void 0:h.type)==="data"}))==null?void 0:a.map(u=>u.value.tableData),r=(c=(s=e==null?void 0:e.value)==null?void 0:s.tableData)==null?void 0:c.角色名称,i=t==null?void 0:t.find(u=>(u==null?void 0:u.角色名称)===r);return i==null?void 0:i.数据范围};var Ut=(e=>(e[e.全部数据权限=0]="全部数据权限",e[e.本部门数据权限=1]="本部门数据权限",e[e.本部门及以下数据权限=2]="本部门及以下数据权限",e[e.仅本人数据权限=3]="仅本人数据权限",e[e.自定义数据权限=4]="自定义数据权限",e))(Ut||{});const ao=(e,n,t)=>{var a,s,c,u;if(((c=(s=(a=Zt.value)==null?void 0:a.key)==null?void 0:s.layer)==null?void 0:c.toUpperCase())==="SUPERADMIN"||!t)return e;const r=(u=t==null?void 0:t["系统管理/用户管理"])==null?void 0:u.find(h=>{var p;return(h==null?void 0:h.id)===((p=Zt.value)==null?void 0:p.id)}),i=fu(r,t);if(!i)return e;switch(Ut==null?void 0:Ut[i]){case 0:return e;case 1:return n?e===null&&typeof e!="object"?e:Object.fromEntries(Object.entries(e).filter(([p,d])=>{var b,y,m,S,B,E,C,D,A;const v=d==null?void 0:d[1],g=p[(p==null?void 0:p.length)-1]===Wr.value;return((y=(b=v==null?void 0:v.key)==null?void 0:b.createUserLayer)==null?void 0:y.toUpperCase())==="SUPERADMIN"||((m=v==null?void 0:v.key)==null?void 0:m.createUserOrg)===((B=(S=r==null?void 0:r.value)==null?void 0:S.tableData)==null?void 0:B.部门名称)||((E=v==null?void 0:v.key)==null?void 0:E.createUserOrg)===((D=(C=r==null?void 0:r.value)==null?void 0:C.tableData)==null?void 0:D.部门名称)&&((A=v==null?void 0:v.key)==null?void 0:A.createUserId)===(r==null?void 0:r.id)||g})):e==null?void 0:e.filter(h=>{var p,d,v,g,b,y,m,S,B;return((d=(p=h==null?void 0:h.key)==null?void 0:p.createUserLayer)==null?void 0:d.toUpperCase())==="SUPERADMIN"||((v=h==null?void 0:h.key)==null?void 0:v.createUserOrg)===((b=(g=r==null?void 0:r.value)==null?void 0:g.tableData)==null?void 0:b.部门名称)||((y=h==null?void 0:h.key)==null?void 0:y.createUserOrg)===((S=(m=r==null?void 0:r.value)==null?void 0:m.tableData)==null?void 0:S.部门名称)&&((B=h==null?void 0:h.key)==null?void 0:B.createUserId)===(r==null?void 0:r.id)});case 2:break;case 3:return n?e===null&&typeof e!="object"?e:Object.fromEntries(Object.entries(e).filter(([p,d])=>{var b;const v=d==null?void 0:d[1],g=p[(p==null?void 0:p.length)-1]===Wr.value;return((b=v==null?void 0:v.key)==null?void 0:b.createUserId)===(r==null?void 0:r.id)||g})):e==null?void 0:e.filter(h=>{var p;return((p=h==null?void 0:h.key)==null?void 0:p.createUserId)===(r==null?void 0:r.id)})}},Mn=Dt(f.pinia),{activeMenuPath:hu}=f.storeToRefs(Mn),ut=ft(f.pinia),pu=At(f.pinia),{originalPath:so}=f.storeToRefs(pu),du=async(e,n,t,r)=>{var g,b,y,m,S,B,E,C,D,A,T,N,w,I,M,P,j,J,O,K,$,ie,ae,k,F,_,H,ne,oe,V,Z,re,q,ce,W,Ae,ke;const i=(b=(g=e==null?void 0:e.find(X=>(X==null?void 0:X.key)==="header"))==null?void 0:g.contents)==null?void 0:b.find(X=>X==null?void 0:X.columnPath);let o=(D=(C=(E=(B=(y=f.cloneDeep(i==null?void 0:i.columnPath))==null?void 0:y.split("["))==null?void 0:B[((S=(m=i==null?void 0:i.columnPath)==null?void 0:m.split("["))==null?void 0:S.length)-1])==null?void 0:E.split("]"))==null?void 0:C[0])==null?void 0:D.replaceAll("'",""),a=(T=(A=f.cloneDeep(i==null?void 0:i.columnPath))==null?void 0:A.split("['"+o+"']"))==null?void 0:T[0],s="",c="",u="";if(a.includes("[")){let X=(M=(I=(w=(N=a==null?void 0:a.split("["))==null?void 0:N[1])==null?void 0:w.split("]"))==null?void 0:I[0])==null?void 0:M.split("/");c=a,s=(J=(j=(P=a==null?void 0:a.split("["))==null?void 0:P[1])==null?void 0:j.split("]"))==null?void 0:J[0];let Q="";t==null||t.forEach(le=>{var ge,Ee,Te,xe,z;((Ee=(ge=le==null?void 0:le.value)==null?void 0:ge.pageData)==null?void 0:Ee.name)===(X==null?void 0:X[0])&&((z=(xe=(Te=le==null?void 0:le.value)==null?void 0:Te.pageData)==null?void 0:xe.compData)==null||z.forEach(ee=>{var R;(ee==null?void 0:ee.key)==="formContent"&&((R=ee==null?void 0:ee.contents)==null||R.forEach(U=>{var ye;if((U==null?void 0:U.prop)===(X==null?void 0:X[1])){let Be=yo((ye=f.cloneDeep(U))==null?void 0:ye.optionUrl,r);Q=(U==null?void 0:U.value)||Be}}))}))}),u=Q,a=((O=a==null?void 0:a.split("["))==null?void 0:O[0])+Q}let h=[];const p=await f.getInsofDataApi({key:{pageKey:a,systemKey:sessionStorage.getItem("systemKey"),type:"structure"}}),d=await f.getInsofDataApi({key:{pageKey:hu.value,systemKey:sessionStorage.getItem("systemKey"),tableId:parseInt(n),type:"data"}}),v=[];if(($=(K=d==null?void 0:d.data)==null?void 0:K.result)==null||$.forEach(X=>{v.push([{id:X==null?void 0:X.id},X.value.tableData])}),Array.isArray((ie=p==null?void 0:p.data)==null?void 0:ie.result)&&((k=(ae=p==null?void 0:p.data)==null?void 0:ae.result)==null?void 0:k.length)>0){let X;(_=(F=p==null?void 0:p.data)==null?void 0:F.result)!=null&&_.find(Q=>{var le,ge;return((ge=(le=Q==null?void 0:Q.value)==null?void 0:le.pageData)==null?void 0:ge.name)===o})&&(X=await((ne=(H=p==null?void 0:p.data)==null?void 0:H.result)==null?void 0:ne.map(async Q=>{var le,ge,Ee,Te,xe,z,ee,R,U,ye,Be,fe,er,tr,nr,rr,ir,or,ar,sr,lr,ur;if(((ge=(le=Q==null?void 0:Q.value)==null?void 0:le.pageData)==null?void 0:ge.name)===o){h=f.cloneDeep((Te=(Ee=Q==null?void 0:Q.value)==null?void 0:Ee.pageData)==null?void 0:Te.compData);const Ge=await f.getInsofDataApi({key:{pageKey:a,systemKey:sessionStorage.getItem("systemKey"),tableId:Q==null?void 0:Q.id,type:"data"}});let kt;if(((z=(xe=Ge==null?void 0:Ge.data)==null?void 0:xe.result)==null?void 0:z.length)>0)kt=(R=(ee=Ge==null?void 0:Ge.data)==null?void 0:ee.result)==null?void 0:R.map(L=>{var cr;let te=[];return te.push({id:L==null?void 0:L.id}),te.push((cr=L==null?void 0:L.value)==null?void 0:cr.tableData),te}),h.push({key:"tableContents",contents:tt(kt,(fe=(Be=(ye=(U=Q==null?void 0:Q.value)==null?void 0:U.pageData)==null?void 0:ye.compData)==null?void 0:Be.find(L=>(L==null?void 0:L.key)==="header"))==null?void 0:fe.contents)}),h.push({key:"contentTableId",contents:Q==null?void 0:Q.id});else{let L=await He(a,sessionStorage.getItem("systemKey"),"");h=(tr=(er=L==null?void 0:L.find(te=>(te==null?void 0:te.name)===o))==null?void 0:er.compData)==null?void 0:tr.filter(te=>(te==null?void 0:te.key)!=="tableContents"),L=(ir=(rr=(nr=L==null?void 0:L.find(te=>(te==null?void 0:te.name)===o))==null?void 0:nr.compData)==null?void 0:rr.find(te=>(te==null?void 0:te.key)==="tableContents"))==null?void 0:ir.contents,kt=L,h.push({key:"tableContents",contents:tt(kt,(sr=(ar=(or=L==null?void 0:L.find(te=>(te==null?void 0:te.name)===o))==null?void 0:or.compData)==null?void 0:ar.find(te=>(te==null?void 0:te.key)==="header"))==null?void 0:sr.contents)}),h.push({key:"contentTableId",contents:(L==null?void 0:L.length)!==0?(ur=(lr=L==null?void 0:L.find(te=>(te==null?void 0:te.name)===o))==null?void 0:lr.compData)==null?void 0:ur.id:Q==null?void 0:Q.id})}s!==""&&(h!=null&&h.find(L=>(L==null?void 0:L.key)==="pageColumn")&&(h=h==null?void 0:h.filter(L=>(L==null?void 0:L.key)!=="pageColumn")),h.push({key:"pageColumn",contents:c}),h!=null&&h.find(L=>(L==null?void 0:L.key)==="columnPath")&&(h=h==null?void 0:h.filter(L=>(L==null?void 0:L.key)!=="columnPath")),h.push({key:"columnPath",contents:s}),h!=null&&h.find(L=>(L==null?void 0:L.key)==="columnUsingPath")&&(h=h==null?void 0:h.filter(L=>(L==null?void 0:L.key)!=="columnUsingPath")),h.push({key:"columnUsingPath",contents:u}),h!=null&&h.find(L=>(L==null?void 0:L.key)==="pageGroup")&&(h=h==null?void 0:h.filter(L=>(L==null?void 0:L.key)!=="pageGroup")),h.push({key:"pageGroup",contents:o}))}})),await Promise.all(X))}else{let X="",Q="";(oe=a==null?void 0:a.split("/"))==null||oe.forEach((z,ee)=>{var R;ee<((R=a==null?void 0:a.split("/"))==null?void 0:R.length)-1?X=X===""?X+z:X+"/"+z:Q=z});let le=await He(X,sessionStorage.getItem("systemKey"),""),ge;(q=(re=(Z=(V=le==null?void 0:le[0])==null?void 0:V.compData)==null?void 0:Z.find(z=>(z==null?void 0:z.key)==="header"))==null?void 0:re.contents)==null||q.forEach((z,ee)=>{z!=null&&z.isMainKey&&(ge=ee)});let Ee=[];(ke=(Ae=(W=(ce=le==null?void 0:le[0])==null?void 0:ce.compData)==null?void 0:W.find(z=>(z==null?void 0:z.key)==="tableContents"))==null?void 0:Ae.contents)==null||ke.forEach(z=>{z.find(ee=>ee===Q)&&(ge||ge===0)&&Ee.push(z==null?void 0:z[ge])});let Te=[],xe=await(Ee==null?void 0:Ee.map(async z=>{let ee=await He(X+so.value+z,sessionStorage.getItem("systemKey"),""),R=ee==null?void 0:ee.find(U=>(U==null?void 0:U.name)===o);Te.push(R)}));await Promise.all(xe),Te==null||Te.forEach(z=>{var R,U,ye,Be;let ee=f.cloneDeep(z==null?void 0:z.compData);ee&&(ee=ee==null?void 0:ee.filter(fe=>(fe==null?void 0:fe.key)!=="tableContents"),ee.push({key:"tableContents",contents:tt((U=(R=z==null?void 0:z.compData)==null?void 0:R.find(fe=>(fe==null?void 0:fe.key)==="tableContents"))==null?void 0:U.contents,(Be=(ye=z==null?void 0:z.compData)==null?void 0:ye.find(fe=>(fe==null?void 0:fe.key)==="header"))==null?void 0:Be.contents)}),ee.push({key:"contentTableId",contents:z==null?void 0:z.id}),h.push(ee))})}return h},He=async(e,n,t="",r=!1,i,o,a)=>{var y,m,S,B,E,C,D;let s,c=new WeakMap;a?c=a:(m=(y=(await f.getPageInsofDataApi({systemKey:n,type:"data,structure,structureMethod"})).data.result)==null?void 0:y.filter(T=>{var N,w;return((N=T==null?void 0:T.key)==null?void 0:N.pageKey)!=="menu"&&((w=T==null?void 0:T.key)==null?void 0:w.pageKey)!=="secret"}))==null||m.forEach(T=>{c[T.key.pageKey]?c[T.key.pageKey]=[...c[T.key.pageKey],T]:c[T.key.pageKey]=[T]}),(!r||!i)&&(s=(S=c[e])==null?void 0:S.filter(A=>{var T;return((T=A==null?void 0:A.key)==null?void 0:T.parentTable)===t})),ut.setPageMapState(c);const u=(B=c[e])==null?void 0:B.filter(A=>{var T;return((T=A==null?void 0:A.key)==null?void 0:T.type)==="structureMethod"}),h=s==null?void 0:s.map(A=>A.id);if(!h)return;let p=(E=c[e])==null?void 0:E.filter(A=>{var T,N,w,I;return((T=A==null?void 0:A.key)==null?void 0:T.type)==="data"&&(h.includes((N=A==null?void 0:A.key)==null?void 0:N.tableId)||h.includes((I=(w=A==null?void 0:A.key)==null?void 0:w.tableId)==null?void 0:I.toString()))});const d=c[e+so.value]??[];(d==null?void 0:d.length)===0&&(p=ao(p,!1,c));let v=[];p==null||p.forEach(A=>{var w;const T=Array.isArray(A.value.tableData)?A.value.tableData:[A.value.tableData];T.unshift({id:A.id});const N=(w=A==null?void 0:A.key)==null?void 0:w.tableId;v!=null&&v.find(I=>(I==null?void 0:I.key)===N)?v=v==null?void 0:v.map(I=>((I==null?void 0:I.key)===N&&(I.contents=[...I.contents,T]),I)):v.push({key:N,contents:[T]})});let g=[];const b=await(s==null?void 0:s.map(async A=>{var I,M,P,j,J,O,K,$,ie,ae,k,F,_,H,ne,oe;const T=A.value.pageData,N=A==null?void 0:A.id;let w=(I=f.cloneDeep(T==null?void 0:T.compData))==null?void 0:I.filter(V=>(V==null?void 0:V.key)!=="tableContents");if(w&&(w!=null&&w.find(V=>(V==null?void 0:V.key)==="header"))&&((P=(M=w==null?void 0:w.find(V=>(V==null?void 0:V.key)==="header"))==null?void 0:M.contents)!=null&&P.every(V=>!(V!=null&&V.columnPath)))){let V=tt((j=v==null?void 0:v.find(W=>(W==null?void 0:W.key)===A.id))==null?void 0:j.contents,(J=w==null?void 0:w.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:J.contents),Z=await Pu((O=w==null?void 0:w.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:O.contents,e,(K=w==null?void 0:w.find(W=>(W==null?void 0:W.key)==="tableFilter"))==null?void 0:K.contents,c);Z!=null&&Z.mainKeys&&w.push({key:"mainRouters",contents:Z==null?void 0:Z.mainKeys});let re=[],q=[];Array.isArray(Z)&&(re=tt(Z,($=w==null?void 0:w.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:$.contents)),Array.isArray(Z==null?void 0:Z.tableContents)&&(q=tt(Z==null?void 0:Z.tableContents,(ie=w==null?void 0:w.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:ie.contents));let ce=[...re,...q];Array.isArray(V)&&(V==null?void 0:V.length)>0&&(ce=[...ce,...V]),w.push({key:"tableContents",contents:ce}),w=w==null?void 0:w.map(W=>{var Ae;return(W==null?void 0:W.key)==="header"&&(W.contents=(Ae=W.contents)==null?void 0:Ae.map(ke=>((ke==null?void 0:ke.prop)===(Z==null?void 0:Z.mainKey)&&(ke.isMainKey=!0),ke))),W})}else w&&(w!=null&&w.find(V=>(V==null?void 0:V.key)==="header"))&&(w=await du(f.cloneDeep(w),N,s,c),T.tableId=(ae=w==null?void 0:w.find(V=>(V==null?void 0:V.key)==="contentTableId"))==null?void 0:ae.contents);if(T.id=A==null?void 0:A.id,T.isShow=(F=(k=A==null?void 0:A.value)==null?void 0:k.pageData)==null?void 0:F.isShow,T.compData=w,((_=A.key)==null?void 0:_.type)!=="method")(H=T==null?void 0:T.compData)!=null&&H.every(V=>Array.isArray(V))?((ne=T==null?void 0:T.compData)==null?void 0:ne.length)===0?g.push(T):(oe=T==null?void 0:T.compData)==null||oe.forEach((V,Z)=>{let re;Z===0?re={comp:T==null?void 0:T.comp,compData:V,id:T==null?void 0:T.id,name:T==null?void 0:T.name,isShow:T==null?void 0:T.isShow}:re={comp:T==null?void 0:T.comp,compData:V,id:T==null?void 0:T.id,name:"",isShow:T==null?void 0:T.isShow},g.push(re)}):g.push(T);else{let V;V={name:"",compData:[T],comp:"calculator"},g.push(V)}}));return await Promise.all(b),((C=u==null?void 0:u.map(A=>A.value.pageData))==null?void 0:C.filter(A=>Object.values(A).length>0).length)>0&&g.push({comp:"methodButton",name:"",compData:(D=u==null?void 0:u.map(A=>A.value.pageData))==null?void 0:D.filter(A=>Object.values(A).length>0)}),g=g.sort((A,T)=>A.id-T.id),o?g:await cu(e,g)},gu=async e=>{await f.deleteInsofDataApi({id:e}),ut.setTableLoading(!1)},yu=async(e,n,t,r,i,o,a,s)=>{var h,p,d,v,g,b,y,m,S,B,E,C,D,A,T,N,w,I,M,P,j,J;let c=((p=(h=a==null?void 0:a.content)==null?void 0:h[0])==null?void 0:p.id)??"",u=(d=s==null?void 0:s.param)==null?void 0:d.url;if(c!==""&&((v=a==null?void 0:a.content)==null?void 0:v.length)>1&&typeof((b=(g=a==null?void 0:a.content)==null?void 0:g[0])==null?void 0:b.id)!="string"){const O=await f.getInsofDataApi({id:c});let K=((B=(S=(m=(y=O==null?void 0:O.data)==null?void 0:y.result)==null?void 0:m[0])==null?void 0:S.key)==null?void 0:B.tableId)??"",$=((A=(D=(C=(E=O==null?void 0:O.data)==null?void 0:E.result)==null?void 0:C[0])==null?void 0:D.key)==null?void 0:A.pageKey)??"";const ie=await f.createInsofDataApi({key:{type:e,pageKey:u||$||n,tableId:K||t,systemKey:r},value:{tableData:ot(i,(T=je(o))==null?void 0:T.filter(ae=>ae!=="操作"))}});((N=ie==null?void 0:ie.data)==null?void 0:N.code)===200?f.ElMessage.success("保存成功"):f.ElMessage.error("保存响应失败"),ut.setTableLoading(!1)}else{let O;if(a!=null&&a.parentTableId){let $=await f.getInsofDataApi({id:a==null?void 0:a.parentTableId});O=(P=(M=(I=(w=$==null?void 0:$.data)==null?void 0:w.result)==null?void 0:I[0])==null?void 0:M.key)==null?void 0:P.pageKey}const K=await f.createInsofDataApi({key:{type:e,pageKey:u||O||n,tableId:a!=null&&a.parentTableId?a==null?void 0:a.parentTableId:t,systemKey:r},value:{tableData:ot(i,(j=je(o))==null?void 0:j.filter($=>$!=="操作"))}});((J=K==null?void 0:K.data)==null?void 0:J.code)===200?f.ElMessage.success("保存成功"):f.ElMessage.error("保存响应失败"),ut.setTableLoading(!1)}},vu=async(e,n,t,r,i,o,a)=>{var h,p,d,v,g,b,y,m,S,B,E,C;if(!r)return;const s=await f.getInsofDataApi({id:r});let c=((v=(d=(p=(h=s==null?void 0:s.data)==null?void 0:h.result)==null?void 0:p[0])==null?void 0:d.key)==null?void 0:v.tableId)??"",u=((m=(y=(b=(g=s==null?void 0:s.data)==null?void 0:g.result)==null?void 0:b[0])==null?void 0:y.key)==null?void 0:m.pageKey)??"";if(c&&c!==""){const D=await f.updateInsofDataApi({key:{type:e,pageKey:u,tableId:c,systemKey:i},value:{tableData:ot(o,(S=je(a))==null?void 0:S.filter(A=>A!=="操作"))},id:r});((B=D==null?void 0:D.data)==null?void 0:B.code)===200?f.ElMessage.success("保存成功"):f.ElMessage.error("保存响应失败"),ut.setTableLoading(!1)}else{const D=await f.updateInsofDataApi({key:{type:e,pageKey:n,tableId:t,systemKey:i},value:{tableData:ot(o,(E=je(a))==null?void 0:E.filter(A=>A!=="操作"))},id:r});((C=D==null?void 0:D.data)==null?void 0:C.code)===200?f.ElMessage.success("保存成功"):f.ElMessage.error("保存响应失败"),ut.setTableLoading(!1)}},mu=async(e,n)=>{await f.updateInsofDataApi({value:{pageData:n},id:e})},bu=async()=>{var e,n,t,r,i,o,a,s,c;try{const u=await f.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),layer:"superAdmin"}});if(((e=u==null?void 0:u.data)==null?void 0:e.code)===200){const h=(i=(r=(t=(n=u==null?void 0:u.data)==null?void 0:n.result)==null?void 0:t[0])==null?void 0:r.key)==null?void 0:i.systemType;let p="browser";h==="制造系统"&&(p="client"),h==="三维系统"&&(p="three"),Mn.setPlatform(p),Mn.setPlatName(((c=(s=(a=(o=u==null?void 0:u.data)==null?void 0:o.result)==null?void 0:a[0])==null?void 0:s.key)==null?void 0:c.name)??"")}}catch(u){return Promise.reject(u)}},it=l.ref(0),Su=Dt(f.pinia),Eu=At(f.pinia),{originalPath:Tu}=f.storeToRefs(Eu),wu=f.useLoginState(f.pinia),Du=Hn(f.pinia),{multipleTableConst:de}=f.storeToRefs(Du),{loginUserInfo:Ke}=f.storeToRefs(wu),{activeMenuPath:ec}=f.storeToRefs(Su),Au=ft(f.pinia),{pageMapState:Yr}=f.storeToRefs(Au),we=Tu.value,Jt=e=>e==null?void 0:e.map(t=>{var r;return it.value++,Array.isArray(t)?Jt(t):{label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":(t==null?void 0:t.prop)??"a"+it.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)??it.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:Jt(t.children)??void 0,formMenuSelect:(t==null?void 0:t.formMenuSelect)??[],groupSelect:t!=null&&t.groupSelect?(r=t==null?void 0:t.groupSelect)==null?void 0:r.replaceAll('"',"").split(":"):[]}}),ku=e=>{const n=[];function t(r){if(Array.isArray(r))for(const i of r)!i.children||i.children.length===0?n.push(i):t(i.children)}return t(e),n},Cu=e=>f.cloneDeep(e).map(t=>(Array.isArray(t)&&(t=t.map(r=>{var i;return Array.isArray(r)?r=Jt(r):(r={label:(r==null?void 0:r.label)??"",prop:(r==null?void 0:r.label)==="操作"?"operate":(r==null?void 0:r.prop)??"a"+it.value,width:(r==null?void 0:r.label)==="操作"?"200":r!=null&&r.width?parseInt(r.width):"",fixed:(r==null?void 0:r.fixed)??void 0,sortable:(r==null?void 0:r.sortable)??!1,align:(r==null?void 0:r.align)??"left",showOverflowTooltip:(r==null?void 0:r.showOverflowTooltip)??!0,isNotDrag:(r==null?void 0:r.isNotDrag)??!1,isEditCol:(r==null?void 0:r.isEditCol)??!1,isOperate:(r==null?void 0:r.isOperate)??!1,id:(r==null?void 0:r.id)??it.value,type:(r==null?void 0:r.label)==="操作"?"operate":void 0,formType:(r==null?void 0:r.formType)??(r!=null&&r.groupSelect?"Select":""),isHidden:r==null?void 0:r.isHidden,options:(r==null?void 0:r.options)??[],children:Jt(r.children),formMenuSelect:(r==null?void 0:r.formMenuSelect)??[],groupSelect:r!=null&&r.groupSelect?(i=r==null?void 0:r.groupSelect)==null?void 0:i.replaceAll('"',"").split(":"):[]},it.value++),r})),t)),Xt=e=>{function n(t,r=[],i=""){if(!t||t.length===0)return[];let o=r;return Array.isArray(t)&&(t==null||t.forEach(a=>{var s,c,u,h,p,d,v,g,b,y,m,S,B;if(a!=null&&a.children&&((s=a.children)==null?void 0:s.length)>0){let E=i===""?i+((p=(c=a==null?void 0:a.prop)==null?void 0:c.split(de.value))==null?void 0:p[((h=(u=a==null?void 0:a.prop)==null?void 0:u.split(de.value))==null?void 0:h.length)-1]):i+de.value+((b=(d=a==null?void 0:a.prop)==null?void 0:d.split(de.value))==null?void 0:b[((g=(v=a==null?void 0:a.prop)==null?void 0:v.split(de.value))==null?void 0:g.length)-1]);o=n(a==null?void 0:a.children,o,E)}else i!==""&&(a.prop=i+de.value+((B=(y=a==null?void 0:a.prop)==null?void 0:y.split(de.value))==null?void 0:B[((S=(m=a==null?void 0:a.prop)==null?void 0:m.split(de.value))==null?void 0:S.length)-1])),o.push(a)})),o}return n(e)},Iu=e=>{function n(t,r=[],i=""){if(!t||t.length===0)return[];let o=r;return Array.isArray(t)&&(o=t==null?void 0:t.map(a=>{var s,c,u,h,p,d,v,g,b,y,m,S,B;if(a!=null&&a.children&&((s=a.children)==null?void 0:s.length)>0){let E=i===""?i+((p=(c=a==null?void 0:a.prop)==null?void 0:c.split(de.value))==null?void 0:p[((h=(u=a==null?void 0:a.prop)==null?void 0:u.split(de.value))==null?void 0:h.length)-1]):i+de.value+((b=(d=a==null?void 0:a.prop)==null?void 0:d.split(de.value))==null?void 0:b[((g=(v=a==null?void 0:a.prop)==null?void 0:v.split(de.value))==null?void 0:g.length)-1]);a.children=n(a==null?void 0:a.children,o,E)}else i!==""&&(a.prop=i+de.value+((B=(y=a==null?void 0:a.prop)==null?void 0:y.split(de.value))==null?void 0:B[((S=(m=a==null?void 0:a.prop)==null?void 0:m.split(de.value))==null?void 0:S.length)-1]));return a})),o}return n(e)},xu=e=>{let n=f.cloneDeep(e);return n=n==null?void 0:n.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)),n},Bu=e=>{var n,t,r,i,o,a;if(((n=e==null?void 0:e.pageData)==null?void 0:n.comp)==="Form"){let s=(r=(t=e==null?void 0:e.pageData)==null?void 0:t.compData)==null?void 0:r.map(u=>{var h;return(u==null?void 0:u.key)==="formContent"&&(u.contents=(h=u.contents)==null?void 0:h.map(p=>((p==null?void 0:p.type)==="Date"&&(p.value=""),p))),u});return{pageData:{comp:(i=e==null?void 0:e.pageData)==null?void 0:i.comp,compData:s,name:(o=e==null?void 0:e.pageData)==null?void 0:o.name,isShow:(a=e==null?void 0:e.pageData)==null?void 0:a.isShow}}}else return e},Ru=(e,n)=>{var r,i,o,a,s,c,u,h,p;let t=(o=(i=(r=n==null?void 0:n.pageData)==null?void 0:r.compData)==null?void 0:i.find(d=>(d==null?void 0:d.key)==="formContent"))==null?void 0:o.contents;if(((a=e==null?void 0:e.pageData)==null?void 0:a.comp)==="Form"){let d=(c=(s=e==null?void 0:e.pageData)==null?void 0:s.compData)==null?void 0:c.map(g=>{var b;return(g==null?void 0:g.key)==="formContent"&&(g.contents=(b=g.contents)==null?void 0:b.map(y=>{var m;return y.value=(m=t==null?void 0:t.find(S=>(S==null?void 0:S.key)===(y==null?void 0:y.key)))==null?void 0:m.value,y})),g});return{pageData:{comp:(u=e==null?void 0:e.pageData)==null?void 0:u.comp,compData:d,name:(h=e==null?void 0:e.pageData)==null?void 0:h.name,isShow:(p=e==null?void 0:e.pageData)==null?void 0:p.isShow}}}else return e},lo=async(e,n,t,r)=>{var g,b,y,m,S,B,E,C,D,A,T,N,w,I,M,P,j,J,O,K,$,ie,ae;let i=e;(i==null?void 0:i[(i==null?void 0:i.length)-1])!==we&&(i="",(b=(g=f.cloneDeep(e))==null?void 0:g.split(we))==null||b.forEach((k,F)=>{var _,H;F!==((H=(_=f.cloneDeep(e))==null?void 0:_.split(we))==null?void 0:H.length)-1&&(i=i===""?i+k:i+"/"+k)}),i=i+we);let o=[],a=await f.getInsofDataApi({key:{pageKey:e,systemKey:sessionStorage.getItem("systemKey")}});const s={data:{result:(m=(y=a==null?void 0:a.data)==null?void 0:y.result)==null?void 0:m.filter(k=>{var F;return((F=k==null?void 0:k.key)==null?void 0:F.type)==="structure"})}};let c;(e==null?void 0:e[(e==null?void 0:e.length)-1])!==we&&(c={data:{result:(S=Yr.value[i])==null?void 0:S.filter(k=>{var F;return((F=k==null?void 0:k.key)==null?void 0:F.type)==="structure"})}},((E=(B=c==null?void 0:c.data)==null?void 0:B.result)==null?void 0:E.length)>0&&(c=(D=(C=f.cloneDeep(c))==null?void 0:C.data)==null?void 0:D.result));const u={data:{result:(A=Yr.value[i])==null?void 0:A.filter(k=>{var F;return((F=k==null?void 0:k.key)==null?void 0:F.type)==="structureMethod"})}},h={data:{result:(N=(T=a==null?void 0:a.data)==null?void 0:T.result)==null?void 0:N.filter(k=>{var F;return((F=k==null?void 0:k.key)==null?void 0:F.type)==="data"})}};if((e==null?void 0:e[(e==null?void 0:e.length)-1])!==we){let k=(w=s==null?void 0:s.data)==null?void 0:w.result;if(!Array.isArray(c))return;c==null||c.forEach(F=>{var H,ne,oe,V,Z;let _=(H=k==null?void 0:k.find(re=>{var q,ce,W,Ae;return((ce=(q=F==null?void 0:F.value)==null?void 0:q.pageData)==null?void 0:ce.name)===((Ae=(W=re==null?void 0:re.value)==null?void 0:W.pageData)==null?void 0:Ae.name)}))==null?void 0:H.value;_?_=_:_=void 0,o.push({key:{pageKey:n,parentTable:((ne=_==null?void 0:_.key)==null?void 0:ne.parentTable)??"",systemKey:(oe=F==null?void 0:F.key)==null?void 0:oe.systemKey,type:((V=_==null?void 0:_.key)==null?void 0:V.type)??((Z=F==null?void 0:F.key)==null?void 0:Z.type),version:1},value:Ru(F==null?void 0:F.value,_)})})}else(M=(I=s==null?void 0:s.data)==null?void 0:I.result)==null||M.forEach(k=>{var F,_,H;o.push({key:{pageKey:n,parentTable:(F=k==null?void 0:k.key)==null?void 0:F.parentTable,systemKey:(_=k==null?void 0:k.key)==null?void 0:_.systemKey,type:(H=k==null?void 0:k.key)==null?void 0:H.type,version:1},value:Bu(k==null?void 0:k.value)})});(j=(P=u==null?void 0:u.data)==null?void 0:P.result)==null||j.forEach(k=>{var F,_;o.push({key:{pageKey:n,systemKey:(F=k==null?void 0:k.key)==null?void 0:F.systemKey,type:(_=k==null?void 0:k.key)==null?void 0:_.type,version:1},value:k==null?void 0:k.value})}),o=o==null?void 0:o.map(k=>{var F,_,H;return((_=(F=k==null?void 0:k.value)==null?void 0:F.pageData)==null?void 0:_.comp)==="Form"&&(k.value.pageData.compData=(H=k.value.pageData.compData)==null?void 0:H.map(ne=>{var oe;return(ne==null?void 0:ne.key)==="formContent"&&(ne.contents=(oe=ne.contents)==null?void 0:oe.map(V=>(t!=null&&t[V==null?void 0:V.key]&&(V==null?void 0:V.type)!=="Date"&&(V.value=t[V.key]),V))),ne}),r&&k.value.pageData.compData.push({key:"parentFormPath",contents:r})),k}),(o==null?void 0:o.length)>0&&await f.batchAddInsofDataApi({dataList:o});let p={};const d=await f.getInsofDataApi({key:{pageKey:n,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});((O=(J=s==null?void 0:s.data)==null?void 0:J.result)==null?void 0:O.length)>0&&(($=(K=s==null?void 0:s.data)==null?void 0:K.result)==null||$.forEach(k=>{var F,_,H;p[k.id]=(H=(_=(F=d==null?void 0:d.data)==null?void 0:F.result)==null?void 0:_.find(ne=>{var oe,V,Z,re;return((V=(oe=ne==null?void 0:ne.value)==null?void 0:oe.pageData)==null?void 0:V.name)===((re=(Z=k==null?void 0:k.value)==null?void 0:Z.pageData)==null?void 0:re.name)}))==null?void 0:H.id}));let v=[];(ae=(ie=h==null?void 0:h.data)==null?void 0:ie.result)==null||ae.forEach(k=>{var F,_,H;v.push({key:{pageKey:n,tableId:p[(F=k==null?void 0:k.key)==null?void 0:F.tableId],systemKey:(_=k==null?void 0:k.key)==null?void 0:_.systemKey,type:(H=k==null?void 0:k.key)==null?void 0:H.type},value:k==null?void 0:k.value})}),(v==null?void 0:v.length)>0&&await f.batchAddInsofDataApi({dataList:v})},uo=(e,n)=>{let t=f.cloneDeep(e);return t=t==null?void 0:t.map(i=>{var c,u,h;let o=[],a=[];for(let p in n)if(p!=null&&p.includes((u=(c=f.cloneDeep(i))==null?void 0:c.key)==null?void 0:u.pageKey)){let d=(h=n[p])==null?void 0:h.filter(v=>{var g,b,y;return((g=v==null?void 0:v.key)==null?void 0:g.type)==="data"&&((b=v==null?void 0:v.key)==null?void 0:b.tableId)===((y=f.cloneDeep(i))==null?void 0:y.id)});a=[...a,...d]}(a==null?void 0:a.length)>0&&(a==null||a.forEach(p=>{o.push(p.value.tableData)}));let s=f.cloneDeep(i).value.pageData.compData;return s.push({key:"tableContents",contents:o}),i.value.pageData.compData=s,i}),t},co=(e,n)=>{if(!(e!=null&&e.includes("[")))return e;let t=e==null?void 0:e.replaceAll("[","").replaceAll("]","").split(":"),r=n==null?void 0:n.map(o=>{var a;return(a=o==null?void 0:o.value)==null?void 0:a.pageData}),i="";return r==null||r.forEach(o=>{var a;(o==null?void 0:o.name)===(t==null?void 0:t[0])&&((a=o==null?void 0:o.compData)==null||a.forEach(s=>{var c;(s==null?void 0:s.key)==="header"&&((c=s==null?void 0:s.contents)==null||c.forEach((u,h)=>{(u==null?void 0:u.prop)===(t==null?void 0:t[1])&&(i=h)}))}))}),i},fo=(e,n)=>{if(!(e!=null&&e.includes("[")))return e;let t=e==null?void 0:e.replaceAll("[","").replaceAll("]","").split(":"),r=n==null?void 0:n.map(o=>{var a;return(a=o==null?void 0:o.value)==null?void 0:a.pageData}),i="";return r==null||r.forEach(o=>{var a;(o==null?void 0:o.name)===(t==null?void 0:t[0])&&((a=o==null?void 0:o.compData)==null||a.forEach(s=>{var c;(s==null?void 0:s.key)==="formContent"&&((c=s==null?void 0:s.contents)==null||c.forEach(u=>{(u==null?void 0:u.prop)===(t==null?void 0:t[1])&&(i=u==null?void 0:u.value)}))}))}),i},Zr=(e,n,t,r)=>{var c,u,h;let i=(c=e==null?void 0:e[0])==null?void 0:c.formMenuSelect,o=e==null?void 0:e.map(p=>{var d,v;return(v=(d=p.groupSelect)==null?void 0:d.split(":"))==null?void 0:v[1]}),a="";i==null||i.forEach((p,d)=>{(i==null?void 0:i.length)-1!==d?a=a===""?a+p:a+"/"+p:a=a+we+p});let s=[];for(let p in n)if(p!=null&&p.includes(a)){let d=(u=n[p])==null?void 0:u.filter(v=>{var g,b;return((g=v==null?void 0:v.key)==null?void 0:g.type)==="structure"&&((b=v==null?void 0:v.key)==null?void 0:b.parentTable)===""});s=[...s,...d]}if((s==null?void 0:s.length)>0){let p=s==null?void 0:s.filter(y=>{var m,S,B;return((m=y==null?void 0:y.key)==null?void 0:m.pageKey)!==a&&((B=(S=y==null?void 0:y.value)==null?void 0:S.pageData)==null?void 0:B.comp)==="Form"}),d=s==null?void 0:s.filter(y=>{var m,S,B;return((m=y==null?void 0:y.key)==null?void 0:m.pageKey)!==a&&((B=(S=y==null?void 0:y.value)==null?void 0:S.pageData)==null?void 0:B.comp)==="Table"});d=uo(f.cloneDeep(d),n),p=[...f.cloneDeep(p),...d],p=p==null?void 0:p.map(y=>({[y.key.pageKey]:y}));let v=0;p=p.reduce((y,m)=>(Object.keys(m).forEach(S=>{y[S]||(y[S]=[],y[S].push({index:v})),y[S].push(m[S])}),v++,y),{});let g=(h=Object.values(p))==null?void 0:h.sort((y,m)=>{var E,C;let S=(E=y==null?void 0:y.find(D=>D==null?void 0:D.index))==null?void 0:E.index,B=(C=m==null?void 0:m.find(D=>D==null?void 0:D.index))==null?void 0:C.index;return S-B});p=g==null?void 0:g.map(y=>y==null?void 0:y.filter(m=>{var S,B,E,C;return!(m!=null&&m.index)&&(m==null?void 0:m.index)!==0&&!((B=(S=m==null?void 0:m.key)==null?void 0:S.pageKey)!=null&&B.includes("updateLoading"))&&!((C=(E=m==null?void 0:m.key)==null?void 0:E.pageKey)!=null&&C.includes("loading"))}));let b=[];if(p==null||p.forEach(y=>{var B,E,C,D,A,T,N,w,I,M;const m=y==null?void 0:y.find(P=>{var j,J,O,K,$;return((J=(j=P==null?void 0:P.value)==null?void 0:j.pageData)==null?void 0:J.name)===(($=(K=(O=e==null?void 0:e[0])==null?void 0:O.groupSelect)==null?void 0:K.split(":"))==null?void 0:$[0])});let S=(A=(D=(C=(E=(B=f.cloneDeep(m))==null?void 0:B.value)==null?void 0:E.pageData)==null?void 0:C.compData)==null?void 0:D.find(P=>(P==null?void 0:P.key)==="formContent"))==null?void 0:A.contents;if(S){let P=[];o==null||o.forEach((j,J)=>{var $,ie,ae,k,F,_;let O=y==null?void 0:y.find(H=>{var ne,oe,V,Z,re;return((oe=(ne=H==null?void 0:H.value)==null?void 0:ne.pageData)==null?void 0:oe.name)===((re=(Z=(V=e==null?void 0:e[J])==null?void 0:V.groupSelect)==null?void 0:Z.split(":"))==null?void 0:re[0])}),K=(F=(k=(ae=(ie=($=f.cloneDeep(O))==null?void 0:$.value)==null?void 0:ie.pageData)==null?void 0:ae.compData)==null?void 0:k.find(H=>(H==null?void 0:H.key)==="formContent"))==null?void 0:F.contents;K!=null&&K.find(H=>(H==null?void 0:H.key)===j)?P.push((_=K==null?void 0:K.find(H=>(H==null?void 0:H.key)===j))==null?void 0:_.value):P.push("")}),b.push(P)}else S=(M=(I=(w=(N=(T=f.cloneDeep(m))==null?void 0:T.value)==null?void 0:N.pageData)==null?void 0:w.compData)==null?void 0:I.find(P=>(P==null?void 0:P.key)==="tableContents"))==null?void 0:M.contents,S==null||S.forEach(P=>{let j=[];o==null||o.forEach(J=>{P!=null&&P[J]&&j.push(P==null?void 0:P[J])}),b.push(j)})}),(t==null?void 0:t.length)>0){let y={};t==null||t.forEach(m=>{var S;for(let B in m){let E=f.cloneDeep(B);if(!(E!=null&&E.includes("[")))(S=m[B])!=null&&S.includes("[")||(y[E]=m[B]);else{let C=fo(E,n[r]),D=co(m[B],n[r]);y[C]=D}}});for(let m in y)b=b==null?void 0:b.filter(S=>S[y[m]]===m)}return b}},Mu=(e,n,t,r)=>{var s,c,u,h,p;let i=f.cloneDeep(e),o=n==null?void 0:n.map(d=>d==null?void 0:d.prop),a=[];for(let d in t)if(d!=null&&d.includes(i)){let v=(s=t[d])==null?void 0:s.filter(g=>{var b,y;return((b=g==null?void 0:g.key)==null?void 0:b.type)==="structure"&&((y=g==null?void 0:g.key)==null?void 0:y.parentTable)===""});a=[...a,...v]}if((a==null?void 0:a.length)>0){let d=a==null?void 0:a.filter(E=>{var C,D,A,T;return((C=E==null?void 0:E.key)==null?void 0:C.pageKey)!==i&&((A=(D=E==null?void 0:E.value)==null?void 0:D.pageData)==null?void 0:A.comp)==="Form"&&(E==null?void 0:E.key.pageKey.includes(i+we))&&!((T=E==null?void 0:E.key.pageKey)!=null&&T.includes("@"))}),v=a==null?void 0:a.filter(E=>{var C,D,A,T;return((C=E==null?void 0:E.key)==null?void 0:C.pageKey)!==i&&((A=(D=E==null?void 0:E.value)==null?void 0:D.pageData)==null?void 0:A.comp)==="Table"&&(E==null?void 0:E.key.pageKey.includes(i+we))&&!((T=E==null?void 0:E.key.pageKey)!=null&&T.includes("@"))});v=uo(f.cloneDeep(v),t),d=[...f.cloneDeep(d),...v],d=d==null?void 0:d.map(E=>({[E.key.pageKey]:E}));let g=0;d=d.reduce((E,C)=>(Object.keys(C).forEach(D=>{E[D]||(E[D]=[],E[D].push({index:g})),E[D].push(C[D])}),g++,E),{}),d=ao(d,!0,t);let b=(c=Object.values(d))==null?void 0:c.sort((E,C)=>{var T,N;let D=(T=E==null?void 0:E.find(w=>w==null?void 0:w.index))==null?void 0:T.index,A=(N=C==null?void 0:C.find(w=>w==null?void 0:w.index))==null?void 0:N.index;return D-A});d=b==null?void 0:b.map(E=>E==null?void 0:E.filter(C=>!(C!=null&&C.index)&&(C==null?void 0:C.index)!==0));let y=(u=f.cloneDeep(d))==null?void 0:u.filter(E=>E==null?void 0:E.find(C=>{var D,A,T,N;return((N=(D=C==null?void 0:C.key)==null?void 0:D.pageKey)==null?void 0:N[((T=(A=C==null?void 0:C.key)==null?void 0:A.pageKey)==null?void 0:T.length)-1])===we}));d=d==null?void 0:d.filter(E=>!(E!=null&&E.find(C=>{var D,A,T,N,w,I,M,P;return((N=(D=C==null?void 0:C.key)==null?void 0:D.pageKey)==null?void 0:N[((T=(A=C==null?void 0:C.key)==null?void 0:A.pageKey)==null?void 0:T.length)-1])===we||((I=(w=C==null?void 0:C.key)==null?void 0:w.pageKey)==null?void 0:I.includes("updateLoading"))||((P=(M=C==null?void 0:C.key)==null?void 0:M.pageKey)==null?void 0:P.includes("loading"))})));let m=[],S=[];(h=y==null?void 0:y[0])==null||h.forEach(E=>{var C,D,A,T,N;((D=(C=E==null?void 0:E.value)==null?void 0:C.pageData)==null?void 0:D.comp)==="Form"&&((N=(T=(A=E==null?void 0:E.value)==null?void 0:A.pageData)==null?void 0:T.compData)==null||N.forEach(w=>{(w==null?void 0:w.key)==="formContent"&&(S=[...S,...w==null?void 0:w.contents])}))});let B=(p=S==null?void 0:S.find(E=>(E==null?void 0:E.isMain)===!0))==null?void 0:p.key;if(d==null||d.forEach(E=>{let C=[];E==null||E.forEach(A=>{var T,N,w,I,M;((N=(T=A==null?void 0:A.value)==null?void 0:T.pageData)==null?void 0:N.comp)==="Form"&&((M=(I=(w=A==null?void 0:A.value)==null?void 0:w.pageData)==null?void 0:I.compData)==null||M.forEach(P=>{(P==null?void 0:P.key)==="formContent"&&(C=[...C,...P==null?void 0:P.contents])}))});let D={};o==null||o.forEach(A=>{let T=C==null?void 0:C.find(N=>(N==null?void 0:N.key)===A);T!=null&&T.prop&&(D[T.prop]=(T==null?void 0:T.value)??"")}),m.push(D)}),(r==null?void 0:r.length)>0){let E={};r==null||r.forEach(C=>{var D,A,T,N,w;for(let I in C){let M=f.cloneDeep(I);if(!(M!=null&&M.includes("[")))C[I].toUpperCase()==="@LOGINUSER"?E[M]=(D=Ke.value)!=null&&D.account?(A=Ke.value)==null?void 0:A.account:((T=Ke.value)==null?void 0:T.姓名)??((N=Ke.value)==null?void 0:N.账号):(w=C[I])!=null&&w.includes("[")||(E[M]=C[I]);else{let P=fo(M,t[e]),j=co(C[I],t[e]);E[P]=j}}});for(let C in E)m=m==null?void 0:m.filter(D=>D[C]===E[C])}return m=m==null?void 0:m.map(E=>Object.values(E)),{mainKey:B,tableContents:m}}},Nu=(e,n)=>{var i,o,a,s,c,u;let t=(o=(i=f.cloneDeep(e))==null?void 0:i.split("/"))==null?void 0:o[0],r=[];for(let h in n)if(h!=null&&h.includes(t)){let p=(a=n[h])==null?void 0:a.filter(d=>{var v,g;return((v=d==null?void 0:d.key)==null?void 0:v.type)==="structure"&&((g=d==null?void 0:d.key)==null?void 0:g.parentTable)===""});r=[...r,...p]}return(r==null?void 0:r.length)>0?!!((u=(c=(s=r==null?void 0:r.filter(p=>{var d;return((d=p==null?void 0:p.key)==null?void 0:d.pageKey)===t}))==null?void 0:s[0])==null?void 0:c.key)==null?void 0:u.parentPageKey):!0},Ou=async(e,n,t,r)=>{var a,s,c,u,h,p,d,v,g;let i=(s=(a=f.cloneDeep(e))==null?void 0:a.split("/"))==null?void 0:s[0],o=[];for(let b in r)if(b!=null&&b.includes(i)){let y=(c=r[b])==null?void 0:c.filter(m=>{var S,B;return((S=m==null?void 0:m.key)==null?void 0:S.type)==="structure"&&((B=m==null?void 0:m.key)==null?void 0:B.parentTable)===""});o=[...o,...y]}if((o==null?void 0:o.length)>0){let b=(p=(h=(u=o==null?void 0:o.filter(S=>{var B;return((B=S==null?void 0:S.key)==null?void 0:B.pageKey)===i}))==null?void 0:u[0])==null?void 0:h.key)==null?void 0:p.parentPageKey,y=[];if(b){for(let S in r)if(S!=null&&S.includes(b)){let B=(d=r[S])==null?void 0:d.filter(E=>{var C,D;return((C=E==null?void 0:E.key)==null?void 0:C.type)==="structure"&&((D=E==null?void 0:E.key)==null?void 0:D.parentTable)===""});y=[...y,...B]}}else y=o;let m="";if((y==null?void 0:y.length)>0){let S=[],B;B=(v=y==null?void 0:y.filter(w=>{var I,M,P,j,J,O;return((P=(M=(I=w==null?void 0:w.key)==null?void 0:I.pageKey)==null?void 0:M.split("/"))==null?void 0:P[0])===b&&((O=(J=(j=w==null?void 0:w.key)==null?void 0:j.pageKey)==null?void 0:J.split("/"))==null?void 0:O.length)===2}))==null?void 0:v.map(w=>{var I;return(I=w==null?void 0:w.key)==null?void 0:I.pageKey}),B=[...new Set(B)],B=B==null?void 0:B.filter(w=>!w.includes(we));let E=(g=f.cloneDeep(B))==null?void 0:g.map(async w=>{var J,O,K,$,ie,ae,k,F,_,H,ne,oe,V,Z,re;let I=await He(w,sessionStorage.getItem("systemKey"),"",!1,[],!1,r),M=($=(K=(O=(J=f.cloneDeep(I))==null?void 0:J[0])==null?void 0:O.compData)==null?void 0:K.find(q=>(q==null?void 0:q.key)==="tableContents"))==null?void 0:$.contents,P=(H=(_=(F=(k=(ae=(ie=f.cloneDeep(I))==null?void 0:ie[0])==null?void 0:ae.compData)==null?void 0:k.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:F.contents)==null?void 0:_.filter(q=>(q==null?void 0:q.label)!=="操作"))==null?void 0:H.map(q=>q==null?void 0:q.prop),j=[];return(re=(Z=(V=(oe=(ne=f.cloneDeep(I))==null?void 0:ne[0])==null?void 0:oe.compData)==null?void 0:V.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:Z.contents)==null||re.forEach(q=>{(q==null?void 0:q.isMainKey)===!0&&(m=q==null?void 0:q.prop)}),M==null||M.forEach(q=>{let ce=ot(q,P);j.push(ce),S.push({key:ce==null?void 0:ce[m],routerContent:w})}),j}),C=await Promise.all(E),D=[];C==null||C.forEach(w=>{(w==null?void 0:w.length)>0&&(w==null||w.forEach(I=>{D.push(I)}))});let A=[];A=n==null?void 0:n.map(w=>{var M,P,j,J;let I={};for(let O in w)w[O].toUpperCase()==="@LOGINUSER"?I[O]=(M=Ke.value)!=null&&M.account?(P=Ke.value)==null?void 0:P.account:((j=Ke.value)==null?void 0:j.姓名)??((J=Ke.value)==null?void 0:J.账号):I[O]=w[O];return I});let T=[];D==null||D.forEach(w=>{let I=[];A==null||A.forEach(M=>{let P=[];for(let j in M)P.push(w[j]===M[j]);I.push(P)}),I.find(M=>M==null?void 0:M.every(P=>P===!0))&&T.push(w)});let N=[];return T==null||T.forEach(w=>{let I={};t==null||t.forEach(M=>{I[M.prop]=w[M.prop]??""}),N.push(I)}),N=N==null?void 0:N.map(w=>Object.values(w)),{mainKey:m,tableContents:N,mainKeys:S}}else return}else return},Pu=async(e,n,t,r)=>{var o,a,s,c;let i=(o=f.cloneDeep(e))==null?void 0:o.filter(u=>(u==null?void 0:u.label)!=="操作");if((t==null?void 0:t.length)>0&&(i!=null&&i.every(u=>!(u!=null&&u.formMenuSelect)))&&Nu(n,r)){let u=await Ou(n,t,i,r);return u&&((a=u==null?void 0:u.tableContents)==null?void 0:a.length)>0?u:[]}if(!(i!=null&&i.every(u=>{var h,p,d,v;return((h=u==null?void 0:u.formMenuSelect)==null?void 0:h.length)>0&&((d=(p=u==null?void 0:u.groupSelect)==null?void 0:p.split(":"))==null?void 0:d.length)>0||((v=u==null?void 0:u.formMenuGroup)==null?void 0:v.length)>0})))return Mu(n,i,r,t);if(i!=null&&i.every(u=>!(u!=null&&u.formMenuGroup)))return Zr(i,r,t,n);{let u=[];(c=(s=i==null?void 0:i[0])==null?void 0:s.formMenuGroup)==null||c.forEach((v,g)=>{let b=[];i==null||i.forEach(y=>{var m,S,B,E,C,D;b.push({columnPath:y==null?void 0:y.columnPath,formMenuSelect:(B=((m=y==null?void 0:y.formMenuGroup)==null?void 0:m[g])??((S=y==null?void 0:y.formMenuGroup)==null?void 0:S[0]))==null?void 0:B.formMenuSelect,groupSelect:(D=((E=y==null?void 0:y.formMenuGroup)==null?void 0:E[g])??((C=y==null?void 0:y.formMenuGroup)==null?void 0:C[0]))==null?void 0:D.groupSelect,isRoute:y==null?void 0:y.isRoute,label:y==null?void 0:y.label,prop:y==null?void 0:y.label})}),u.push(b)});let h=[],d=u==null?void 0:u.map(async v=>Zr(v,r,t,n));return d==null||d.forEach(v=>{v==null||v.forEach(g=>{h.push(g)})}),h}},Vu=At(f.pinia),{originalPath:ho}=f.storeToRefs(Vu),Fu=e=>e==null?void 0:e.map(t=>(t=go(t),t)),Qn=async()=>{var t,r,i,o,a,s,c,u,h,p,d,v;let e;const n=await f.getInsofDataApi({key:{type:"structure",pageKey:"menu",systemKey:sessionStorage.getItem("systemKey")}});return(s=(a=(o=(i=(r=(t=n.data.result)==null?void 0:t[0])==null?void 0:r.value)==null?void 0:i.pageData)==null?void 0:o.compData)==null?void 0:a[0])!=null&&s.contents&&(e=Fu((v=(d=(p=(h=(u=(c=n.data.result)==null?void 0:c[0])==null?void 0:u.value)==null?void 0:h.pageData)==null?void 0:p.compData)==null?void 0:d[0])==null?void 0:v.contents)),e},Lu=e=>{var r,i,o;const n=(i=(r=e==null?void 0:e.compData)==null?void 0:r.find(a=>(a==null?void 0:a.key)==="header"))==null?void 0:i.contents;return{label:e==null?void 0:e.name,value:e==null?void 0:e.name,children:n!=null&&n.every(a=>!Array.isArray(a))?n==null?void 0:n.map(a=>({label:a==null?void 0:a.label,value:a==null?void 0:a.label})):(o=Xt(n==null?void 0:n[0]))==null?void 0:o.map(a=>({label:a==null?void 0:a.label,value:a==null?void 0:a.label}))}},po=async e=>{var i,o;let n="";(i=f.cloneDeep(e))==null||i.forEach(a=>{n=n===""?n+a:n+"/"+a});let t="";(o=f.cloneDeep(e))==null||o.forEach((a,s)=>{s!==(e==null?void 0:e.length)-1?t=t===""?t+a:t+"/"+a:t=t+ho.value+a});const r=await He(n,sessionStorage.getItem("systemKey"),"");return r||await He(t,sessionStorage.getItem("systemKey"),"")},Ku=async e=>{var r,i,o;const n=await po(e);let t=[];return((r=n==null?void 0:n.data)==null?void 0:r.type)==="success"&&(t=(o=(i=n.data.result)==null?void 0:i.map(a=>a.value.pageData))==null?void 0:o.filter(a=>(a==null?void 0:a.comp)==="Table"),t=t==null?void 0:t.map(a=>Lu(a))),t},_u=[{key:"单选",value:"Select"},{key:"日期",value:"Date"},{key:"长文本",value:"TextArea"},{key:"上传",value:"Upload"},{key:"富文本",value:"Quill"}],pt=[{label:"输入框",value:"Input"},{label:"下拉框",value:"Select"},{label:"日期选择器",value:"Date"},{label:"长文本",value:"TextArea"},{label:"附件选择器",value:"Upload"},{label:"富文本",value:"Quill"}],Hu=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:pt},{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}],Uu=async()=>{const e=await Qn();return[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:pt},{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:e},{key:"groupSelect",label:"组信息选项",type:"cascader",options:[]},{key:"contents",label:"选项值",type:"Input"}]},$u=async()=>[{value:"",id:"v1",label:"菜单选项",name:"菜单选项",type:"cascader",contents:await Qn()},{value:"",id:"v2",label:"组信息选项",name:"组信息选项",type:"cascader",contents:[]},{value:"",id:"v2",label:"选项值",name:"选项值",type:"Input",contents:[]}],zu=l.computed(async()=>await Uu()),ju=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:pt},{key:"originalContent",label:"初始值",type:"Date"},{key:"isNewDate",label:"当前时间",type:"Switch",value:!1}],qu=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:pt},{key:"originalContent",label:"初始值",type:"Input"}],Jr=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:pt}],Gu=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:pt}],Wu=[{key:"Input",value:Hu},{key:"Select",value:zu},{key:"Date",value:ju},{key:"TextArea",value:qu},{key:"Upload",value:Jr},{key:"DragUpload",value:Jr},{key:"Quill",value:Gu}],Yu=[{value:"normal",label:"自定义"},{value:"add",label:"新增"},{value:"fix",label:"修改"},{value:"view",label:"查看"},{value:"delete",label:"删除"}],Zu=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Yu},{key:"background",label:"颜色",type:"Color"}],Ju=e=>{var t,r,i,o,a,s,c,u;let n=f.cloneDeep(e);if(((t=n==null?void 0:n.find(h=>(h==null?void 0:h.name)==="类型"))==null?void 0:t.type)==="Select"&&((o=(i=(r=f.cloneDeep(n))==null?void 0:r.find(h=>(h==null?void 0:h.name)==="选项值"))==null?void 0:i.value)==null?void 0:o.length)>0){const h=(u=(c=(s=(a=f.cloneDeep(n))==null?void 0:a.find(p=>(p==null?void 0:p.name)==="选项值"))==null?void 0:s.value)==null?void 0:c.split(","))==null?void 0:u.map(p=>({label:p,value:p}));n=n==null?void 0:n.map(p=>((p==null?void 0:p.name)==="初始值"&&(p.contents=h,p.value=(p==null?void 0:p.value)??""),p))}return n},go=e=>{var i;let n={};const t=(i=e==null?void 0:e.filter(o=>!Array.isArray(o)))==null?void 0:i[0];n.label=t,n.value=t;const r=e==null?void 0:e.filter(o=>Array.isArray(o));return r&&(r==null?void 0:r.length)>0&&(n.children=r==null?void 0:r.map(o=>go(o))),n},Xu=async e=>{var o,a,s,c;let n=f.cloneDeep(e);const t=(o=e==null?void 0:e.find(u=>(u==null?void 0:u.name)==="下拉绑定类型"))==null?void 0:o.value,r=(a=e==null?void 0:e.find(u=>(u==null?void 0:u.name)==="类型"))==null?void 0:a.value,i=await $u();return r==="Select"&&t===""?n=n==null?void 0:n.filter(u=>(u==null?void 0:u.name)!=="菜单选项"&&(u==null?void 0:u.name)!=="组信息选项"&&(u==null?void 0:u.name)!=="选项值"):r==="Select"&&t==="关联绑定列"?n!=null&&n.find(u=>(u==null?void 0:u.name)==="菜单选项"||(u==null?void 0:u.name)==="组信息选项")?n=(s=f.cloneDeep(n))==null?void 0:s.filter(u=>(u==null?void 0:u.name)!=="选项值"):n=[...f.cloneDeep(n),...i].filter(u=>(u==null?void 0:u.name)!=="选项值"):r==="Select"&&t==="自定义绑定"&&(n!=null&&n.find(u=>(u==null?void 0:u.name)==="选项值")?n=(c=f.cloneDeep(n))==null?void 0:c.filter(u=>(u==null?void 0:u.name)!=="菜单选项"&&(u==null?void 0:u.name)!=="组信息选项"):n=[...f.cloneDeep(n),...i].filter(u=>(u==null?void 0:u.name)!=="菜单选项"&&(u==null?void 0:u.name)!=="组信息选项")),n},Qu=(e,n)=>{var r;let t=!1;return(r=f.cloneDeep(e))==null||r.forEach(i=>{var o;(i==null?void 0:i.key)==="formContent"&&((o=i==null?void 0:i.contents)==null||o.forEach(a=>{(a==null?void 0:a.key)===n?t=!0:t=t}))}),t},yo=(e,n)=>{var a,s,c,u,h;const t=f.cloneDeep(e);if(!t)return;let r="";(s=(a=f.cloneDeep(t))==null?void 0:a.menuSelect)==null||s.forEach(p=>{p!=null&&p.includes("[")?r=r+ho.value:r=r===""?r+p:r+"/"+p});const i=(c=n==null?void 0:n[r])==null?void 0:c.map(p=>{var d;return(d=p==null?void 0:p.value)==null?void 0:d.pageData});let o=i==null?void 0:i.filter(p=>{var d,v;return(p==null?void 0:p.name)===((v=(d=f.cloneDeep(t))==null?void 0:d.groupSelect)==null?void 0:v[0])});if((o==null?void 0:o.length)===1?o=o==null?void 0:o[0]:(u=f.cloneDeep(o))==null||u.forEach(p=>{var d,v;(p==null?void 0:p.comp)==="Form"&&Qu(p==null?void 0:p.compData,(v=(d=f.cloneDeep(t))==null?void 0:d.groupSelect)==null?void 0:v[1])&&(o=p)}),(o==null?void 0:o.comp)==="Form"){let p="";return(h=o==null?void 0:o.compData)==null||h.forEach(d=>{var v;(d==null?void 0:d.key)==="formContent"&&((v=d==null?void 0:d.contents)==null||v.forEach(g=>{var b,y;(g==null?void 0:g.key)===((y=(b=f.cloneDeep(t))==null?void 0:b.groupSelect)==null?void 0:y[1])&&(g.type==="Select"&&!(g!=null&&g.value)?p=void 0:p=g==null?void 0:g.value)}))}),p}};exports.CHANGE_EVENT=Sn;exports.ElButton=Ni;exports.ElButtonGroup=ls;exports.ElFocusTrap=ki;exports.ElInput=wi;exports.ElMessageBox=Ki;exports.ElOverlay=Pi;exports.FOCUS_TRAP_INJECTION_KEY=Di;exports.FormButton=Zu;exports.FormContent=Wu;exports.FormType=_u;exports.INPUT_EVENT=En;exports.IsJson=Bs;exports.PatchFlags=vt;exports.SetCache=bt;exports.State=iu;exports.State$1=El;exports.TinyColor=Ri;exports.UPDATE_MODEL_EVENT=$t;exports.addPathToTree=nn;exports.addTableContents=yu;exports.animateScrollTo=sa;exports.baseFlatten=Nn;exports.baseIsEqual=On;exports.buttonTypes=xi;exports.cAF=ci;exports.cacheHas=ri;exports.convertArrayToTree=jn;exports.decryptData=Jn;exports.deleteTableContents=gu;exports.encryptData=yt;exports.ensureOnlyChild=ps;exports.fixFormContents=mu;exports.fixTableContents=vu;exports.flatRest=ni;exports.flattedChildren=dt;exports.flatten=ti;exports.focusNode=Ta;exports.formContextKey=Qt;exports.formItemContextKey=Pn;exports.formToOptionsContents=Ju;exports.generateKeyPair=jl;exports.getActivePageStructureId=Ji;exports.getAllLeafNodes=ku;exports.getColumnChild=Xt;exports.getColumnContents=je;exports.getFirstArrayProperty=zn;exports.getFormContents=Os;exports.getGradeColumns=Cu;exports.getItemData=He;exports.getLeafNodesRecursive=Gn;exports.getMenusContent=Qn;exports.getNewColumnChild=Iu;exports.getNormalizedProps=hs;exports.getParentConstruct=js;exports.getParentContents=Ps;exports.getParentKey=zs;exports.getScrollBarWidth=fi;exports.getScrollContainer=oa;exports.getScrollElement=la;exports.getScrollTop=ua;exports.getSibling=Ea;exports.getTableFormToForm=xu;exports.getValueToObjectValue=ot;exports.groupByField=qn;exports.handleRowAuthorityRender=Wn;exports.handleSubmitAsync=lt;exports.hasIn=ai;exports.identity=Xr;exports.inputProps=di;exports.isEqual=si;exports.isFirefox=hi;exports.isFocusable=en;exports.isFragment=Oi;exports.isLeaf=bi;exports.isValidComponentSize=Li;exports.isValidElementNode=fs;exports.judgeContents=yo;exports.loadingConstruct=lo;exports.loadingSystemType=bu;exports.menuToContentType=Ku;exports.menuToParent=po;exports.methodTableToContent=Ns;exports.overRest=ei;exports.pick=li;exports.rAF=ui;exports.resetPassword=st;exports.scrollIntoView=aa;exports.selectToBase=Xu;exports.setToArray=oi;exports.setToString=Qr;exports.submitTableAsyncByVerify=sn;exports.tableEveryContents=$s;exports.tableToContents=Fs;exports.tableToStruct=Vs;exports.triggerEvent=Sa;exports.tryFocus=Me;exports.useAriaProps=pi;exports.useAttrs=gi;exports.useAuthorityState=Un;exports.useComposition=Ei;exports.useDeprecated=Ii;exports.useDraggable=Vi;exports.useFocusController=Si;exports.useFormDisabled=wt;exports.useFormItem=Vn;exports.useFormItemInputId=vi;exports.useFormSize=Fn;exports.useId=zt;exports.useIdInjection=yi;exports.useLockscreen=Fi;exports.useMenuState=Dt;exports.useModelComp=ft;exports.useOriginalState=At;exports.useSameTarget=_n;exports.useTableComp=Hn;
|
|
32
|
+
`,t+="-----END PUBLIC KEY-----",t},n.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},n.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},n.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},n}(Kl),vn,zl=typeof process<"u"?(vn=process.env)===null||vn===void 0?void 0:vn.npm_package_version:void 0,an=function(){function e(n){n===void 0&&(n={}),n=n||{},this.default_key_size=n.default_key_size?parseInt(n.default_key_size,10):1024,this.default_public_exponent=n.default_public_exponent||"010001",this.log=n.log||!1,this.key=null}return e.prototype.setKey=function(n){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new jr(n)},e.prototype.setPrivateKey=function(n){this.setKey(n)},e.prototype.setPublicKey=function(n){this.setKey(n)},e.prototype.decrypt=function(n){try{return this.getKey().decrypt(Lr(n))}catch{return!1}},e.prototype.encrypt=function(n){try{return qt(this.getKey().encrypt(n))}catch{return!1}},e.prototype.sign=function(n,t,r){try{return qt(this.getKey().sign(n,t,r))}catch{return!1}},e.prototype.verify=function(n,t,r){try{return this.getKey().verify(n,Lr(t),r)}catch{return!1}},e.prototype.getKey=function(n){if(!this.key){if(this.key=new jr,n&&{}.toString.call(n)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,n);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=zl,e}();function jl(){const e=new an({default_key_size:"2048"});return{publicKey:e.getPublicKey(),privateKey:e.getPrivateKey()}}function yt(e,n){const t=new an;return t.setPublicKey(n),t.encrypt(e)||""}function Jn(e,n){const t=new an;return t.setPrivateKey(n),t.decrypt(e)||""}function qr(){return typeof new an().encrypt=="function"}const io=f.useLoginState(f.pinia),{superAdminInfo:ql,cryptoInfo:me,loginUserInfo:mn}=f.storeToRefs(io),Gl=Dt(f.pinia),{activeMenuPath:mt}=f.storeToRefs(Gl),Bn=ft(f.pinia),st="123456",Wl=Un(f.pinia),{routerPageStructures:Yl}=f.storeToRefs(Wl),Xn=l.ref(0),Zl=l.ref([{label:"用户名称",value:"",name:"userName"}]),et=l.computed(()=>{const e=sessionStorage.getItem("isSuperAdmin");return e?JSON.parse(e):!1}),Jl=e=>{console.log("handleQueryChange",e)},Gt=l.ref([]),oo=l.ref(""),Wt=l.computed(()=>{var n,t,r,i,o;const e=(n=Yl.value)==null?void 0:n.find(a=>{var s;return((s=a==null?void 0:a.comp)==null?void 0:s.toUpperCase())==="TABLE"});return e?(oo.value=e.name,Gt.value=(i=(r=(t=e==null?void 0:e.compData)==null?void 0:t.find(s=>(s==null?void 0:s.key)==="header"))==null?void 0:r.contents)==null?void 0:i.filter(s=>(s==null?void 0:s.label)!=="操作"),(o=e==null?void 0:e.compData)==null?void 0:o.map(s=>{var c;if((s==null?void 0:s.key)==="rowButton"){const u=[...s==null?void 0:s.contents,{label:"重置密码"}];return{...s,contents:u}}return(s==null?void 0:s.key)==="header"?{...s,contents:(c=s==null?void 0:s.contents)==null?void 0:c.map(u=>{var h,p,d,v;return{...u,isTableColHidden:((h=u==null?void 0:u.prop)==null?void 0:h.includes("头像"))||((p=u==null?void 0:u.prop)==null?void 0:p.includes("签名")),isFormColHidden:((d=u==null?void 0:u.prop)==null?void 0:d.includes("头像"))||((v=u==null?void 0:u.prop)==null?void 0:v.includes("签名"))}})}:s})):[]}),Xl=e=>{Bn.setRefreshCurStructure(!1),sn(e.singleContent,e.buttonName,Xn.value,e==null?void 0:e.selectItems)},Rn=l.ref(),Ql=e=>{console.log("onDoubleClick",e)},eu=(e,n)=>{e==="重置密码"&&Ki.confirm(`该操作将会重置【${(n==null?void 0:n.account)||(n==null?void 0:n.账号)}】的密码为【${st}】,确认重置?`,"警告",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Rn.value={...n,password:st},sn(Rn.value,e,Xn.value)}).catch(()=>{f.ElMessage.info("取消重置")})},tu=()=>{Yt(mt.value).then(e=>{var t;const n=Array.isArray(e)&&(e==null?void 0:e.filter(r=>(r==null?void 0:r.account)!==ql.value.account));Wt.value=(t=Wt.value)==null?void 0:t.map(r=>r.key==="tableContents"?{...r,contents:n==null?void 0:n.map(i=>{var o;return{...i,password:Jn(i==null?void 0:i.password,(o=me==null?void 0:me.value)==null?void 0:o.privateKey)}})}:r)})},lt=async(e,n,t)=>{var r,i;try{const o=await e(n);return((r=o==null?void 0:o.data)==null?void 0:r.code)===200?(t!=="查询"&&await io.setLogRecordAsync({type:t,data:n},mt.value),f.ElMessage.success("保存成功"),Bn.setRefreshCurStructure(!0),o.data.result||((i=o==null?void 0:o.data)==null?void 0:i.code)===200):null}catch(o){f.ElMessage.error(o)}finally{Bn.setCacheUpdatingData(null)}},nu=async(e,n)=>{var o,a;let t=[];Array.isArray(e)?t=f.cloneDeep(e):t=[f.cloneDeep(e)];const r=(o=t==null?void 0:t.filter(s=>typeof(s==null?void 0:s.id)=="string"))==null?void 0:o.map(s=>{var u,h,p,d,v,g,b;const c=Tt(s,Gt.value);return qr()&&c&&(!c.password&&et.value?c.password=yt(st,(u=me==null?void 0:me.value)==null?void 0:u.publicKey):c.password&&et.value&&(c.password=yt(c==null?void 0:c.password,(h=me==null?void 0:me.value)==null?void 0:h.publicKey))),{key:{type:"data",layer:s==null?void 0:s.layer,systemKey:sessionStorage.getItem("systemKey"),pageKey:(p=mt.value)!=null&&p.startsWith("/")?(d=mt.value)==null?void 0:d.substring(1):mt.value,tableId:n,createUserId:(v=mn.value)==null?void 0:v.id,createUserOrg:((g=mn.value)==null?void 0:g.dept)||((b=mn.value)==null?void 0:b.部门名称)},value:{tableData:c}}}),i=(a=t==null?void 0:t.filter(s=>typeof(s==null?void 0:s.id)=="number"))==null?void 0:a.map(s=>{var u,h;const c=Tt(s,Gt.value);return qr()&&c&&(!c.password&&et.value?c.password=yt(st,(u=me==null?void 0:me.value)==null?void 0:u.publicKey):c.password&&et.value&&(c.password=yt(c==null?void 0:c.password,(h=me==null?void 0:me.value)==null?void 0:h.publicKey))),{id:s==null?void 0:s.id,value:{tableData:c}}});r.length>0&&await lt(f.batchAddInsofDataApi,{dataList:r},"新增"),i.length>0&&(await lt(f.batchUpdateInsofDataApi,{dataList:i},"编辑"),qe.show=!1)},sn=async(e,n,t,r)=>{if(!(n!=null&&n.includes("删除")))await nu(e,t);else{let i=[];n!=null&&n.includes("批量")?i=r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map(o=>o==null?void 0:o.id):[]:i=[e==null?void 0:e.id],await lt(f.batchDeleteInsofDataApi,{ids:i},"编辑")}},Yt=async e=>{const n=await lt(f.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),t=n==null?void 0:n.map(r=>{var i,o;return{id:r.id,layer:(i=r.key)==null?void 0:i.layer,tableData:(o=r==null?void 0:r.value)==null?void 0:o.tableData}});return t==null?void 0:t.map(r=>{var i;if(!Array.isArray(r==null?void 0:r.tableData))return{...r.tableData,layer:(i=r.key)==null?void 0:i.layer,id:r.id}})},ru={comp:"Group",name:"/系统管理/用户管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:Wt.value,name:""}]}]},iu=Object.freeze(Object.defineProperty({__proto__:null,changedRow:Rn,clickRowButton:eu,columns:Gt,compName:oo,getPageDataAsync:Yt,handleItemDataChange:Xl,handleQueryChange:Jl,handleSubmitAsync:lt,loginUserIsSuper:et,onDoubleClick:Ql,pageData:Wt,queryFormData:Zl,refreshUserTableData:tu,resetPassword:st,structureId:Xn,submitTableAsyncByVerify:sn,tempUserPageData:ru},Symbol.toStringTag,{value:"Module"})),At=f.defineStore("originalState",{state:()=>({originalPath:"^"}),actions:{}}),ou=ft(f.pinia),{routeToChildPath:Gr}=f.storeToRefs(ou),au=f.useLoginState(f.pinia),{loginUserInfo:Zt,cryptoInfo:bn}=f.storeToRefs(au),su=At(f.pinia),{originalPath:Wr}=f.storeToRefs(su),lu=e=>{var n,t,r;return((t=(n=Zt.value)==null?void 0:n.layer)==null?void 0:t.toUpperCase())==="SUPERADMIN"?!0:((r=Zt.value)==null?void 0:r.account)===(e==null?void 0:e.account)},uu=async(e,n,t)=>{const r=Yt("/系统管理/角色管理"),i=Yt("/系统管理/部门管理");return await Promise.all([r,i]).then(a=>{var u,h;const s=(u=a==null?void 0:a[0])==null?void 0:u.map(p=>({label:p==null?void 0:p.roleName,value:p==null?void 0:p.roleName})),c=(h=a==null?void 0:a[1])==null?void 0:h.map(p=>({label:p==null?void 0:p.deptName,value:p==null?void 0:p.deptName}));return e==null?void 0:e.map(p=>{var d;return{...p,compData:(d=p==null?void 0:p.compData)==null?void 0:d.map(v=>{var g,b;return(v==null?void 0:v.key)==="header"?{...v,contents:(g=v==null?void 0:v.contents)==null?void 0:g.map(y=>y.prop==="userDept"?{...y,options:c}:y.prop==="userRoles"?{...y,options:s}:y)}:(v==null?void 0:v.key)==="tableContents"?{...v,contents:(b=v==null?void 0:v.contents)==null?void 0:b.map(y=>{var m;return{...y,password:lu(y)?Jn(y==null?void 0:y.password,(m=bn==null?void 0:bn.value)==null?void 0:m.privateKey):y==null?void 0:y.password}})}:v})}})})},cu=async(e,n)=>{const t=sessionStorage.getItem("authority"),r=JSON.parse(t||"");if(Array.isArray(r)){let i;Gr.value?i=Array.isArray(r)&&(r==null?void 0:r.filter(s=>(s==null?void 0:s.includes(e))||(s==null?void 0:s.includes(Gr.value)))):i=Array.isArray(r)&&(r==null?void 0:r.filter(s=>s==null?void 0:s.includes(e)));const o=i==null?void 0:i.map(s=>{var c;return((c=s==null?void 0:s.split("/"))==null?void 0:c.pop())||""});return n==null?void 0:n.map(s=>{var c;return{...s,compData:(c=s==null?void 0:s.compData)==null?void 0:c.map(u=>{var h;return(u==null?void 0:u.key)==="rowButton"||(u==null?void 0:u.key)==="extraButton"?{...u,contents:(h=u==null?void 0:u.contents)==null?void 0:h.filter(p=>o==null?void 0:o.includes(p==null?void 0:p.label))}:u})}})}else return typeof r=="string"&&(r==null?void 0:r.toUpperCase())==="SUPERADMIN"?e==="/系统管理/用户管理"?await uu(n):n:[]},fu=(e,n)=>{var o,a,s,c;const t=(a=(o=n["系统管理/角色管理"])==null?void 0:o.filter(u=>{var h;return((h=u==null?void 0:u.key)==null?void 0:h.type)==="data"}))==null?void 0:a.map(u=>u.value.tableData),r=(c=(s=e==null?void 0:e.value)==null?void 0:s.tableData)==null?void 0:c.角色名称,i=t==null?void 0:t.find(u=>(u==null?void 0:u.角色名称)===r);return i==null?void 0:i.数据范围};var Ut=(e=>(e[e.全部数据权限=0]="全部数据权限",e[e.本部门数据权限=1]="本部门数据权限",e[e.本部门及以下数据权限=2]="本部门及以下数据权限",e[e.仅本人数据权限=3]="仅本人数据权限",e[e.自定义数据权限=4]="自定义数据权限",e))(Ut||{});const ao=(e,n,t)=>{var a,s,c,u;if(((c=(s=(a=Zt.value)==null?void 0:a.key)==null?void 0:s.layer)==null?void 0:c.toUpperCase())==="SUPERADMIN"||!t)return e;const r=(u=t==null?void 0:t["系统管理/用户管理"])==null?void 0:u.find(h=>{var p;return(h==null?void 0:h.id)===((p=Zt.value)==null?void 0:p.id)}),i=fu(r,t);if(!i)return e;switch(Ut==null?void 0:Ut[i]){case 0:return e;case 1:return n?e===null&&typeof e!="object"?e:Object.fromEntries(Object.entries(e).filter(([p,d])=>{var b,y,m,S,B,E,C,D,A;const v=d==null?void 0:d[1],g=p[(p==null?void 0:p.length)-1]===Wr.value;return((y=(b=v==null?void 0:v.key)==null?void 0:b.createUserLayer)==null?void 0:y.toUpperCase())==="SUPERADMIN"||((m=v==null?void 0:v.key)==null?void 0:m.createUserOrg)===((B=(S=r==null?void 0:r.value)==null?void 0:S.tableData)==null?void 0:B.部门名称)||((E=v==null?void 0:v.key)==null?void 0:E.createUserOrg)===((D=(C=r==null?void 0:r.value)==null?void 0:C.tableData)==null?void 0:D.部门名称)&&((A=v==null?void 0:v.key)==null?void 0:A.createUserId)===(r==null?void 0:r.id)||g})):e==null?void 0:e.filter(h=>{var p,d,v,g,b,y,m,S,B;return((d=(p=h==null?void 0:h.key)==null?void 0:p.createUserLayer)==null?void 0:d.toUpperCase())==="SUPERADMIN"||((v=h==null?void 0:h.key)==null?void 0:v.createUserOrg)===((b=(g=r==null?void 0:r.value)==null?void 0:g.tableData)==null?void 0:b.部门名称)||((y=h==null?void 0:h.key)==null?void 0:y.createUserOrg)===((S=(m=r==null?void 0:r.value)==null?void 0:m.tableData)==null?void 0:S.部门名称)&&((B=h==null?void 0:h.key)==null?void 0:B.createUserId)===(r==null?void 0:r.id)});case 2:break;case 3:return n?e===null&&typeof e!="object"?e:Object.fromEntries(Object.entries(e).filter(([p,d])=>{var b;const v=d==null?void 0:d[1],g=p[(p==null?void 0:p.length)-1]===Wr.value;return((b=v==null?void 0:v.key)==null?void 0:b.createUserId)===(r==null?void 0:r.id)||g})):e==null?void 0:e.filter(h=>{var p;return((p=h==null?void 0:h.key)==null?void 0:p.createUserId)===(r==null?void 0:r.id)})}},Mn=Dt(f.pinia),{activeMenuPath:hu}=f.storeToRefs(Mn),ut=ft(f.pinia),pu=At(f.pinia),{originalPath:so}=f.storeToRefs(pu),du=async(e,n,t,r)=>{var g,b,y,m,S,B,E,C,D,A,T,N,w,I,M,P,j,J,O,K,$,ie,ae,k,F,_,H,ne,oe,V,Z,re,q,ce,W,Ae,ke;const i=(b=(g=e==null?void 0:e.find(X=>(X==null?void 0:X.key)==="header"))==null?void 0:g.contents)==null?void 0:b.find(X=>X==null?void 0:X.columnPath);let o=(D=(C=(E=(B=(y=f.cloneDeep(i==null?void 0:i.columnPath))==null?void 0:y.split("["))==null?void 0:B[((S=(m=i==null?void 0:i.columnPath)==null?void 0:m.split("["))==null?void 0:S.length)-1])==null?void 0:E.split("]"))==null?void 0:C[0])==null?void 0:D.replaceAll("'",""),a=(T=(A=f.cloneDeep(i==null?void 0:i.columnPath))==null?void 0:A.split("['"+o+"']"))==null?void 0:T[0],s="",c="",u="";if(a.includes("[")){let X=(M=(I=(w=(N=a==null?void 0:a.split("["))==null?void 0:N[1])==null?void 0:w.split("]"))==null?void 0:I[0])==null?void 0:M.split("/");c=a,s=(J=(j=(P=a==null?void 0:a.split("["))==null?void 0:P[1])==null?void 0:j.split("]"))==null?void 0:J[0];let Q="";t==null||t.forEach(le=>{var ge,Ee,Te,xe,z;((Ee=(ge=le==null?void 0:le.value)==null?void 0:ge.pageData)==null?void 0:Ee.name)===(X==null?void 0:X[0])&&((z=(xe=(Te=le==null?void 0:le.value)==null?void 0:Te.pageData)==null?void 0:xe.compData)==null||z.forEach(ee=>{var R;(ee==null?void 0:ee.key)==="formContent"&&((R=ee==null?void 0:ee.contents)==null||R.forEach(U=>{var ye;if((U==null?void 0:U.prop)===(X==null?void 0:X[1])){let Be=yo((ye=f.cloneDeep(U))==null?void 0:ye.optionUrl,r);Q=(U==null?void 0:U.value)||Be||""}}))}))}),u=Q,a=((O=a==null?void 0:a.split("["))==null?void 0:O[0])+Q}let h=[];const p=await f.getInsofDataApi({key:{pageKey:a,systemKey:sessionStorage.getItem("systemKey"),type:"structure"}}),d=await f.getInsofDataApi({key:{pageKey:hu.value,systemKey:sessionStorage.getItem("systemKey"),tableId:parseInt(n),type:"data"}}),v=[];if(($=(K=d==null?void 0:d.data)==null?void 0:K.result)==null||$.forEach(X=>{v.push([{id:X==null?void 0:X.id},X.value.tableData])}),Array.isArray((ie=p==null?void 0:p.data)==null?void 0:ie.result)&&((k=(ae=p==null?void 0:p.data)==null?void 0:ae.result)==null?void 0:k.length)>0){let X;(_=(F=p==null?void 0:p.data)==null?void 0:F.result)!=null&&_.find(Q=>{var le,ge;return((ge=(le=Q==null?void 0:Q.value)==null?void 0:le.pageData)==null?void 0:ge.name)===o})&&(X=await((ne=(H=p==null?void 0:p.data)==null?void 0:H.result)==null?void 0:ne.map(async Q=>{var le,ge,Ee,Te,xe,z,ee,R,U,ye,Be,fe,er,tr,nr,rr,ir,or,ar,sr,lr,ur;if(((ge=(le=Q==null?void 0:Q.value)==null?void 0:le.pageData)==null?void 0:ge.name)===o){h=f.cloneDeep((Te=(Ee=Q==null?void 0:Q.value)==null?void 0:Ee.pageData)==null?void 0:Te.compData);const Ge=await f.getInsofDataApi({key:{pageKey:a,systemKey:sessionStorage.getItem("systemKey"),tableId:Q==null?void 0:Q.id,type:"data"}});let kt;if(((z=(xe=Ge==null?void 0:Ge.data)==null?void 0:xe.result)==null?void 0:z.length)>0)kt=(R=(ee=Ge==null?void 0:Ge.data)==null?void 0:ee.result)==null?void 0:R.map(L=>{var cr;let te=[];return te.push({id:L==null?void 0:L.id}),te.push((cr=L==null?void 0:L.value)==null?void 0:cr.tableData),te}),h.push({key:"tableContents",contents:tt(kt,(fe=(Be=(ye=(U=Q==null?void 0:Q.value)==null?void 0:U.pageData)==null?void 0:ye.compData)==null?void 0:Be.find(L=>(L==null?void 0:L.key)==="header"))==null?void 0:fe.contents)}),h.push({key:"contentTableId",contents:Q==null?void 0:Q.id});else{let L=await He(a,sessionStorage.getItem("systemKey"),"");h=(tr=(er=L==null?void 0:L.find(te=>(te==null?void 0:te.name)===o))==null?void 0:er.compData)==null?void 0:tr.filter(te=>(te==null?void 0:te.key)!=="tableContents"),L=(ir=(rr=(nr=L==null?void 0:L.find(te=>(te==null?void 0:te.name)===o))==null?void 0:nr.compData)==null?void 0:rr.find(te=>(te==null?void 0:te.key)==="tableContents"))==null?void 0:ir.contents,kt=L,h.push({key:"tableContents",contents:tt(kt,(sr=(ar=(or=L==null?void 0:L.find(te=>(te==null?void 0:te.name)===o))==null?void 0:or.compData)==null?void 0:ar.find(te=>(te==null?void 0:te.key)==="header"))==null?void 0:sr.contents)}),h.push({key:"contentTableId",contents:(L==null?void 0:L.length)!==0?(ur=(lr=L==null?void 0:L.find(te=>(te==null?void 0:te.name)===o))==null?void 0:lr.compData)==null?void 0:ur.id:Q==null?void 0:Q.id})}s!==""&&(h!=null&&h.find(L=>(L==null?void 0:L.key)==="pageColumn")&&(h=h==null?void 0:h.filter(L=>(L==null?void 0:L.key)!=="pageColumn")),h.push({key:"pageColumn",contents:c}),h!=null&&h.find(L=>(L==null?void 0:L.key)==="columnPath")&&(h=h==null?void 0:h.filter(L=>(L==null?void 0:L.key)!=="columnPath")),h.push({key:"columnPath",contents:s}),h!=null&&h.find(L=>(L==null?void 0:L.key)==="columnUsingPath")&&(h=h==null?void 0:h.filter(L=>(L==null?void 0:L.key)!=="columnUsingPath")),h.push({key:"columnUsingPath",contents:u}),h!=null&&h.find(L=>(L==null?void 0:L.key)==="pageGroup")&&(h=h==null?void 0:h.filter(L=>(L==null?void 0:L.key)!=="pageGroup")),h.push({key:"pageGroup",contents:o}))}})),await Promise.all(X))}else{let X="",Q="";(oe=a==null?void 0:a.split("/"))==null||oe.forEach((z,ee)=>{var R;ee<((R=a==null?void 0:a.split("/"))==null?void 0:R.length)-1?X=X===""?X+z:X+"/"+z:Q=z});let le=await He(X,sessionStorage.getItem("systemKey"),""),ge;(q=(re=(Z=(V=le==null?void 0:le[0])==null?void 0:V.compData)==null?void 0:Z.find(z=>(z==null?void 0:z.key)==="header"))==null?void 0:re.contents)==null||q.forEach((z,ee)=>{z!=null&&z.isMainKey&&(ge=ee)});let Ee=[];(ke=(Ae=(W=(ce=le==null?void 0:le[0])==null?void 0:ce.compData)==null?void 0:W.find(z=>(z==null?void 0:z.key)==="tableContents"))==null?void 0:Ae.contents)==null||ke.forEach(z=>{z.find(ee=>ee===Q)&&(ge||ge===0)&&Ee.push(z==null?void 0:z[ge])});let Te=[],xe=await(Ee==null?void 0:Ee.map(async z=>{let ee=await He(X+so.value+z,sessionStorage.getItem("systemKey"),""),R=ee==null?void 0:ee.find(U=>(U==null?void 0:U.name)===o);Te.push(R)}));await Promise.all(xe),Te==null||Te.forEach(z=>{var R,U,ye,Be;let ee=f.cloneDeep(z==null?void 0:z.compData);ee&&(ee=ee==null?void 0:ee.filter(fe=>(fe==null?void 0:fe.key)!=="tableContents"),ee.push({key:"tableContents",contents:tt((U=(R=z==null?void 0:z.compData)==null?void 0:R.find(fe=>(fe==null?void 0:fe.key)==="tableContents"))==null?void 0:U.contents,(Be=(ye=z==null?void 0:z.compData)==null?void 0:ye.find(fe=>(fe==null?void 0:fe.key)==="header"))==null?void 0:Be.contents)}),ee.push({key:"contentTableId",contents:z==null?void 0:z.id}),h.push(ee))})}return h},He=async(e,n,t="",r=!1,i,o,a)=>{var y,m,S,B,E,C,D;let s,c=new WeakMap;a?c=a:(m=(y=(await f.getPageInsofDataApi({systemKey:n,type:"data,structure,structureMethod"})).data.result)==null?void 0:y.filter(T=>{var N,w;return((N=T==null?void 0:T.key)==null?void 0:N.pageKey)!=="menu"&&((w=T==null?void 0:T.key)==null?void 0:w.pageKey)!=="secret"}))==null||m.forEach(T=>{c[T.key.pageKey]?c[T.key.pageKey]=[...c[T.key.pageKey],T]:c[T.key.pageKey]=[T]}),(!r||!i)&&(s=(S=c[e])==null?void 0:S.filter(A=>{var T;return((T=A==null?void 0:A.key)==null?void 0:T.parentTable)===t})),ut.setPageMapState(c);const u=(B=c[e])==null?void 0:B.filter(A=>{var T;return((T=A==null?void 0:A.key)==null?void 0:T.type)==="structureMethod"}),h=s==null?void 0:s.map(A=>A.id);if(!h)return;let p=(E=c[e])==null?void 0:E.filter(A=>{var T,N,w,I;return((T=A==null?void 0:A.key)==null?void 0:T.type)==="data"&&(h.includes((N=A==null?void 0:A.key)==null?void 0:N.tableId)||h.includes((I=(w=A==null?void 0:A.key)==null?void 0:w.tableId)==null?void 0:I.toString()))});const d=c[e+so.value]??[];(d==null?void 0:d.length)===0&&(p=ao(p,!1,c));let v=[];p==null||p.forEach(A=>{var w;const T=Array.isArray(A.value.tableData)?A.value.tableData:[A.value.tableData];T.unshift({id:A.id});const N=(w=A==null?void 0:A.key)==null?void 0:w.tableId;v!=null&&v.find(I=>(I==null?void 0:I.key)===N)?v=v==null?void 0:v.map(I=>((I==null?void 0:I.key)===N&&(I.contents=[...I.contents,T]),I)):v.push({key:N,contents:[T]})});let g=[];const b=await(s==null?void 0:s.map(async A=>{var I,M,P,j,J,O,K,$,ie,ae,k,F,_,H,ne,oe;const T=A.value.pageData,N=A==null?void 0:A.id;let w=(I=f.cloneDeep(T==null?void 0:T.compData))==null?void 0:I.filter(V=>(V==null?void 0:V.key)!=="tableContents");if(w&&(w!=null&&w.find(V=>(V==null?void 0:V.key)==="header"))&&((P=(M=w==null?void 0:w.find(V=>(V==null?void 0:V.key)==="header"))==null?void 0:M.contents)!=null&&P.every(V=>!(V!=null&&V.columnPath)))){let V=tt((j=v==null?void 0:v.find(W=>(W==null?void 0:W.key)===A.id))==null?void 0:j.contents,(J=w==null?void 0:w.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:J.contents),Z=await Pu((O=w==null?void 0:w.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:O.contents,e,(K=w==null?void 0:w.find(W=>(W==null?void 0:W.key)==="tableFilter"))==null?void 0:K.contents,c);Z!=null&&Z.mainKeys&&w.push({key:"mainRouters",contents:Z==null?void 0:Z.mainKeys});let re=[],q=[];Array.isArray(Z)&&(re=tt(Z,($=w==null?void 0:w.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:$.contents)),Array.isArray(Z==null?void 0:Z.tableContents)&&(q=tt(Z==null?void 0:Z.tableContents,(ie=w==null?void 0:w.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:ie.contents));let ce=[...re,...q];Array.isArray(V)&&(V==null?void 0:V.length)>0&&(ce=[...ce,...V]),w.push({key:"tableContents",contents:ce}),w=w==null?void 0:w.map(W=>{var Ae;return(W==null?void 0:W.key)==="header"&&(W.contents=(Ae=W.contents)==null?void 0:Ae.map(ke=>((ke==null?void 0:ke.prop)===(Z==null?void 0:Z.mainKey)&&(ke.isMainKey=!0),ke))),W})}else w&&(w!=null&&w.find(V=>(V==null?void 0:V.key)==="header"))&&(w=await du(f.cloneDeep(w),N,s,c),T.tableId=(ae=w==null?void 0:w.find(V=>(V==null?void 0:V.key)==="contentTableId"))==null?void 0:ae.contents);if(T.id=A==null?void 0:A.id,T.isShow=(F=(k=A==null?void 0:A.value)==null?void 0:k.pageData)==null?void 0:F.isShow,T.compData=w,((_=A.key)==null?void 0:_.type)!=="method")(H=T==null?void 0:T.compData)!=null&&H.every(V=>Array.isArray(V))?((ne=T==null?void 0:T.compData)==null?void 0:ne.length)===0?g.push(T):(oe=T==null?void 0:T.compData)==null||oe.forEach((V,Z)=>{let re;Z===0?re={comp:T==null?void 0:T.comp,compData:V,id:T==null?void 0:T.id,name:T==null?void 0:T.name,isShow:T==null?void 0:T.isShow}:re={comp:T==null?void 0:T.comp,compData:V,id:T==null?void 0:T.id,name:"",isShow:T==null?void 0:T.isShow},g.push(re)}):g.push(T);else{let V;V={name:"",compData:[T],comp:"calculator"},g.push(V)}}));return await Promise.all(b),((C=u==null?void 0:u.map(A=>A.value.pageData))==null?void 0:C.filter(A=>Object.values(A).length>0).length)>0&&g.push({comp:"methodButton",name:"",compData:(D=u==null?void 0:u.map(A=>A.value.pageData))==null?void 0:D.filter(A=>Object.values(A).length>0)}),g=g.sort((A,T)=>A.id-T.id),o?g:await cu(e,g)},gu=async e=>{await f.deleteInsofDataApi({id:e}),ut.setTableLoading(!1)},yu=async(e,n,t,r,i,o,a,s)=>{var h,p,d,v,g,b,y,m,S,B,E,C,D,A,T,N,w,I,M,P,j,J;let c=((p=(h=a==null?void 0:a.content)==null?void 0:h[0])==null?void 0:p.id)??"",u=(d=s==null?void 0:s.param)==null?void 0:d.url;if(c!==""&&((v=a==null?void 0:a.content)==null?void 0:v.length)>1&&typeof((b=(g=a==null?void 0:a.content)==null?void 0:g[0])==null?void 0:b.id)!="string"){const O=await f.getInsofDataApi({id:c});let K=((B=(S=(m=(y=O==null?void 0:O.data)==null?void 0:y.result)==null?void 0:m[0])==null?void 0:S.key)==null?void 0:B.tableId)??"",$=((A=(D=(C=(E=O==null?void 0:O.data)==null?void 0:E.result)==null?void 0:C[0])==null?void 0:D.key)==null?void 0:A.pageKey)??"";const ie=await f.createInsofDataApi({key:{type:e,pageKey:u||$||n,tableId:K||t,systemKey:r},value:{tableData:ot(i,(T=je(o))==null?void 0:T.filter(ae=>ae!=="操作"))}});((N=ie==null?void 0:ie.data)==null?void 0:N.code)===200?f.ElMessage.success("保存成功"):f.ElMessage.error("保存响应失败"),ut.setTableLoading(!1)}else{let O;if(a!=null&&a.parentTableId){let $=await f.getInsofDataApi({id:a==null?void 0:a.parentTableId});O=(P=(M=(I=(w=$==null?void 0:$.data)==null?void 0:w.result)==null?void 0:I[0])==null?void 0:M.key)==null?void 0:P.pageKey}const K=await f.createInsofDataApi({key:{type:e,pageKey:u||O||n,tableId:a!=null&&a.parentTableId?a==null?void 0:a.parentTableId:t,systemKey:r},value:{tableData:ot(i,(j=je(o))==null?void 0:j.filter($=>$!=="操作"))}});((J=K==null?void 0:K.data)==null?void 0:J.code)===200?f.ElMessage.success("保存成功"):f.ElMessage.error("保存响应失败"),ut.setTableLoading(!1)}},vu=async(e,n,t,r,i,o,a)=>{var h,p,d,v,g,b,y,m,S,B,E,C;if(!r)return;const s=await f.getInsofDataApi({id:r});let c=((v=(d=(p=(h=s==null?void 0:s.data)==null?void 0:h.result)==null?void 0:p[0])==null?void 0:d.key)==null?void 0:v.tableId)??"",u=((m=(y=(b=(g=s==null?void 0:s.data)==null?void 0:g.result)==null?void 0:b[0])==null?void 0:y.key)==null?void 0:m.pageKey)??"";if(c&&c!==""){const D=await f.updateInsofDataApi({key:{type:e,pageKey:u,tableId:c,systemKey:i},value:{tableData:ot(o,(S=je(a))==null?void 0:S.filter(A=>A!=="操作"))},id:r});((B=D==null?void 0:D.data)==null?void 0:B.code)===200?f.ElMessage.success("保存成功"):f.ElMessage.error("保存响应失败"),ut.setTableLoading(!1)}else{const D=await f.updateInsofDataApi({key:{type:e,pageKey:n,tableId:t,systemKey:i},value:{tableData:ot(o,(E=je(a))==null?void 0:E.filter(A=>A!=="操作"))},id:r});((C=D==null?void 0:D.data)==null?void 0:C.code)===200?f.ElMessage.success("保存成功"):f.ElMessage.error("保存响应失败"),ut.setTableLoading(!1)}},mu=async(e,n)=>{await f.updateInsofDataApi({value:{pageData:n},id:e})},bu=async()=>{var e,n,t,r,i,o,a,s,c;try{const u=await f.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),layer:"superAdmin"}});if(((e=u==null?void 0:u.data)==null?void 0:e.code)===200){const h=(i=(r=(t=(n=u==null?void 0:u.data)==null?void 0:n.result)==null?void 0:t[0])==null?void 0:r.key)==null?void 0:i.systemType;let p="browser";h==="制造系统"&&(p="client"),h==="三维系统"&&(p="three"),Mn.setPlatform(p),Mn.setPlatName(((c=(s=(a=(o=u==null?void 0:u.data)==null?void 0:o.result)==null?void 0:a[0])==null?void 0:s.key)==null?void 0:c.name)??"")}}catch(u){return Promise.reject(u)}},it=l.ref(0),Su=Dt(f.pinia),Eu=At(f.pinia),{originalPath:Tu}=f.storeToRefs(Eu),wu=f.useLoginState(f.pinia),Du=Hn(f.pinia),{multipleTableConst:de}=f.storeToRefs(Du),{loginUserInfo:Ke}=f.storeToRefs(wu),{activeMenuPath:ec}=f.storeToRefs(Su),Au=ft(f.pinia),{pageMapState:Yr}=f.storeToRefs(Au),we=Tu.value,Jt=e=>e==null?void 0:e.map(t=>{var r;return it.value++,Array.isArray(t)?Jt(t):{label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":(t==null?void 0:t.prop)??"a"+it.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)??it.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:Jt(t.children)??void 0,formMenuSelect:(t==null?void 0:t.formMenuSelect)??[],groupSelect:t!=null&&t.groupSelect?(r=t==null?void 0:t.groupSelect)==null?void 0:r.replaceAll('"',"").split(":"):[]}}),ku=e=>{const n=[];function t(r){if(Array.isArray(r))for(const i of r)!i.children||i.children.length===0?n.push(i):t(i.children)}return t(e),n},Cu=e=>f.cloneDeep(e).map(t=>(Array.isArray(t)&&(t=t.map(r=>{var i;return Array.isArray(r)?r=Jt(r):(r={label:(r==null?void 0:r.label)??"",prop:(r==null?void 0:r.label)==="操作"?"operate":(r==null?void 0:r.prop)??"a"+it.value,width:(r==null?void 0:r.label)==="操作"?"200":r!=null&&r.width?parseInt(r.width):"",fixed:(r==null?void 0:r.fixed)??void 0,sortable:(r==null?void 0:r.sortable)??!1,align:(r==null?void 0:r.align)??"left",showOverflowTooltip:(r==null?void 0:r.showOverflowTooltip)??!0,isNotDrag:(r==null?void 0:r.isNotDrag)??!1,isEditCol:(r==null?void 0:r.isEditCol)??!1,isOperate:(r==null?void 0:r.isOperate)??!1,id:(r==null?void 0:r.id)??it.value,type:(r==null?void 0:r.label)==="操作"?"operate":void 0,formType:(r==null?void 0:r.formType)??(r!=null&&r.groupSelect?"Select":""),isHidden:r==null?void 0:r.isHidden,options:(r==null?void 0:r.options)??[],children:Jt(r.children),formMenuSelect:(r==null?void 0:r.formMenuSelect)??[],groupSelect:r!=null&&r.groupSelect?(i=r==null?void 0:r.groupSelect)==null?void 0:i.replaceAll('"',"").split(":"):[]},it.value++),r})),t)),Xt=e=>{function n(t,r=[],i=""){if(!t||t.length===0)return[];let o=r;return Array.isArray(t)&&(t==null||t.forEach(a=>{var s,c,u,h,p,d,v,g,b,y,m,S,B;if(a!=null&&a.children&&((s=a.children)==null?void 0:s.length)>0){let E=i===""?i+((p=(c=a==null?void 0:a.prop)==null?void 0:c.split(de.value))==null?void 0:p[((h=(u=a==null?void 0:a.prop)==null?void 0:u.split(de.value))==null?void 0:h.length)-1]):i+de.value+((b=(d=a==null?void 0:a.prop)==null?void 0:d.split(de.value))==null?void 0:b[((g=(v=a==null?void 0:a.prop)==null?void 0:v.split(de.value))==null?void 0:g.length)-1]);o=n(a==null?void 0:a.children,o,E)}else i!==""&&(a.prop=i+de.value+((B=(y=a==null?void 0:a.prop)==null?void 0:y.split(de.value))==null?void 0:B[((S=(m=a==null?void 0:a.prop)==null?void 0:m.split(de.value))==null?void 0:S.length)-1])),o.push(a)})),o}return n(e)},Iu=e=>{function n(t,r=[],i=""){if(!t||t.length===0)return[];let o=r;return Array.isArray(t)&&(o=t==null?void 0:t.map(a=>{var s,c,u,h,p,d,v,g,b,y,m,S,B;if(a!=null&&a.children&&((s=a.children)==null?void 0:s.length)>0){let E=i===""?i+((p=(c=a==null?void 0:a.prop)==null?void 0:c.split(de.value))==null?void 0:p[((h=(u=a==null?void 0:a.prop)==null?void 0:u.split(de.value))==null?void 0:h.length)-1]):i+de.value+((b=(d=a==null?void 0:a.prop)==null?void 0:d.split(de.value))==null?void 0:b[((g=(v=a==null?void 0:a.prop)==null?void 0:v.split(de.value))==null?void 0:g.length)-1]);a.children=n(a==null?void 0:a.children,o,E)}else i!==""&&(a.prop=i+de.value+((B=(y=a==null?void 0:a.prop)==null?void 0:y.split(de.value))==null?void 0:B[((S=(m=a==null?void 0:a.prop)==null?void 0:m.split(de.value))==null?void 0:S.length)-1]));return a})),o}return n(e)},xu=e=>{let n=f.cloneDeep(e);return n=n==null?void 0:n.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)),n},Bu=e=>{var n,t,r,i,o,a;if(((n=e==null?void 0:e.pageData)==null?void 0:n.comp)==="Form"){let s=(r=(t=e==null?void 0:e.pageData)==null?void 0:t.compData)==null?void 0:r.map(u=>{var h;return(u==null?void 0:u.key)==="formContent"&&(u.contents=(h=u.contents)==null?void 0:h.map(p=>((p==null?void 0:p.type)==="Date"&&(p.value=""),p))),u});return{pageData:{comp:(i=e==null?void 0:e.pageData)==null?void 0:i.comp,compData:s,name:(o=e==null?void 0:e.pageData)==null?void 0:o.name,isShow:(a=e==null?void 0:e.pageData)==null?void 0:a.isShow}}}else return e},Ru=(e,n)=>{var r,i,o,a,s,c,u,h,p;let t=(o=(i=(r=n==null?void 0:n.pageData)==null?void 0:r.compData)==null?void 0:i.find(d=>(d==null?void 0:d.key)==="formContent"))==null?void 0:o.contents;if(((a=e==null?void 0:e.pageData)==null?void 0:a.comp)==="Form"){let d=(c=(s=e==null?void 0:e.pageData)==null?void 0:s.compData)==null?void 0:c.map(g=>{var b;return(g==null?void 0:g.key)==="formContent"&&(g.contents=(b=g.contents)==null?void 0:b.map(y=>{var m;return y.value=(m=t==null?void 0:t.find(S=>(S==null?void 0:S.key)===(y==null?void 0:y.key)))==null?void 0:m.value,y})),g});return{pageData:{comp:(u=e==null?void 0:e.pageData)==null?void 0:u.comp,compData:d,name:(h=e==null?void 0:e.pageData)==null?void 0:h.name,isShow:(p=e==null?void 0:e.pageData)==null?void 0:p.isShow}}}else return e},lo=async(e,n,t,r)=>{var g,b,y,m,S,B,E,C,D,A,T,N,w,I,M,P,j,J,O,K,$,ie,ae;let i=e;(i==null?void 0:i[(i==null?void 0:i.length)-1])!==we&&(i="",(b=(g=f.cloneDeep(e))==null?void 0:g.split(we))==null||b.forEach((k,F)=>{var _,H;F!==((H=(_=f.cloneDeep(e))==null?void 0:_.split(we))==null?void 0:H.length)-1&&(i=i===""?i+k:i+"/"+k)}),i=i+we);let o=[],a=await f.getInsofDataApi({key:{pageKey:e,systemKey:sessionStorage.getItem("systemKey")}});const s={data:{result:(m=(y=a==null?void 0:a.data)==null?void 0:y.result)==null?void 0:m.filter(k=>{var F;return((F=k==null?void 0:k.key)==null?void 0:F.type)==="structure"})}};let c;(e==null?void 0:e[(e==null?void 0:e.length)-1])!==we&&(c={data:{result:(S=Yr.value[i])==null?void 0:S.filter(k=>{var F;return((F=k==null?void 0:k.key)==null?void 0:F.type)==="structure"})}},((E=(B=c==null?void 0:c.data)==null?void 0:B.result)==null?void 0:E.length)>0&&(c=(D=(C=f.cloneDeep(c))==null?void 0:C.data)==null?void 0:D.result));const u={data:{result:(A=Yr.value[i])==null?void 0:A.filter(k=>{var F;return((F=k==null?void 0:k.key)==null?void 0:F.type)==="structureMethod"})}},h={data:{result:(N=(T=a==null?void 0:a.data)==null?void 0:T.result)==null?void 0:N.filter(k=>{var F;return((F=k==null?void 0:k.key)==null?void 0:F.type)==="data"})}};if((e==null?void 0:e[(e==null?void 0:e.length)-1])!==we){let k=(w=s==null?void 0:s.data)==null?void 0:w.result;if(!Array.isArray(c))return;c==null||c.forEach(F=>{var H,ne,oe,V,Z;let _=(H=k==null?void 0:k.find(re=>{var q,ce,W,Ae;return((ce=(q=F==null?void 0:F.value)==null?void 0:q.pageData)==null?void 0:ce.name)===((Ae=(W=re==null?void 0:re.value)==null?void 0:W.pageData)==null?void 0:Ae.name)}))==null?void 0:H.value;_?_=_:_=void 0,o.push({key:{pageKey:n,parentTable:((ne=_==null?void 0:_.key)==null?void 0:ne.parentTable)??"",systemKey:(oe=F==null?void 0:F.key)==null?void 0:oe.systemKey,type:((V=_==null?void 0:_.key)==null?void 0:V.type)??((Z=F==null?void 0:F.key)==null?void 0:Z.type),version:1},value:Ru(F==null?void 0:F.value,_)})})}else(M=(I=s==null?void 0:s.data)==null?void 0:I.result)==null||M.forEach(k=>{var F,_,H;o.push({key:{pageKey:n,parentTable:(F=k==null?void 0:k.key)==null?void 0:F.parentTable,systemKey:(_=k==null?void 0:k.key)==null?void 0:_.systemKey,type:(H=k==null?void 0:k.key)==null?void 0:H.type,version:1},value:Bu(k==null?void 0:k.value)})});(j=(P=u==null?void 0:u.data)==null?void 0:P.result)==null||j.forEach(k=>{var F,_;o.push({key:{pageKey:n,systemKey:(F=k==null?void 0:k.key)==null?void 0:F.systemKey,type:(_=k==null?void 0:k.key)==null?void 0:_.type,version:1},value:k==null?void 0:k.value})}),o=o==null?void 0:o.map(k=>{var F,_,H;return((_=(F=k==null?void 0:k.value)==null?void 0:F.pageData)==null?void 0:_.comp)==="Form"&&(k.value.pageData.compData=(H=k.value.pageData.compData)==null?void 0:H.map(ne=>{var oe;return(ne==null?void 0:ne.key)==="formContent"&&(ne.contents=(oe=ne.contents)==null?void 0:oe.map(V=>(t!=null&&t[V==null?void 0:V.key]&&(V==null?void 0:V.type)!=="Date"&&(V.value=t[V.key]),V))),ne}),r&&k.value.pageData.compData.push({key:"parentFormPath",contents:r})),k}),(o==null?void 0:o.length)>0&&await f.batchAddInsofDataApi({dataList:o});let p={};const d=await f.getInsofDataApi({key:{pageKey:n,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});((O=(J=s==null?void 0:s.data)==null?void 0:J.result)==null?void 0:O.length)>0&&(($=(K=s==null?void 0:s.data)==null?void 0:K.result)==null||$.forEach(k=>{var F,_,H;p[k.id]=(H=(_=(F=d==null?void 0:d.data)==null?void 0:F.result)==null?void 0:_.find(ne=>{var oe,V,Z,re;return((V=(oe=ne==null?void 0:ne.value)==null?void 0:oe.pageData)==null?void 0:V.name)===((re=(Z=k==null?void 0:k.value)==null?void 0:Z.pageData)==null?void 0:re.name)}))==null?void 0:H.id}));let v=[];(ae=(ie=h==null?void 0:h.data)==null?void 0:ie.result)==null||ae.forEach(k=>{var F,_,H;v.push({key:{pageKey:n,tableId:p[(F=k==null?void 0:k.key)==null?void 0:F.tableId],systemKey:(_=k==null?void 0:k.key)==null?void 0:_.systemKey,type:(H=k==null?void 0:k.key)==null?void 0:H.type},value:k==null?void 0:k.value})}),(v==null?void 0:v.length)>0&&await f.batchAddInsofDataApi({dataList:v})},uo=(e,n)=>{let t=f.cloneDeep(e);return t=t==null?void 0:t.map(i=>{var c,u,h;let o=[],a=[];for(let p in n)if(p!=null&&p.includes((u=(c=f.cloneDeep(i))==null?void 0:c.key)==null?void 0:u.pageKey)){let d=(h=n[p])==null?void 0:h.filter(v=>{var g,b,y;return((g=v==null?void 0:v.key)==null?void 0:g.type)==="data"&&((b=v==null?void 0:v.key)==null?void 0:b.tableId)===((y=f.cloneDeep(i))==null?void 0:y.id)});a=[...a,...d]}(a==null?void 0:a.length)>0&&(a==null||a.forEach(p=>{o.push(p.value.tableData)}));let s=f.cloneDeep(i).value.pageData.compData;return s.push({key:"tableContents",contents:o}),i.value.pageData.compData=s,i}),t},co=(e,n)=>{if(!(e!=null&&e.includes("[")))return e;let t=e==null?void 0:e.replaceAll("[","").replaceAll("]","").split(":"),r=n==null?void 0:n.map(o=>{var a;return(a=o==null?void 0:o.value)==null?void 0:a.pageData}),i="";return r==null||r.forEach(o=>{var a;(o==null?void 0:o.name)===(t==null?void 0:t[0])&&((a=o==null?void 0:o.compData)==null||a.forEach(s=>{var c;(s==null?void 0:s.key)==="header"&&((c=s==null?void 0:s.contents)==null||c.forEach((u,h)=>{(u==null?void 0:u.prop)===(t==null?void 0:t[1])&&(i=h)}))}))}),i},fo=(e,n)=>{if(!(e!=null&&e.includes("[")))return e;let t=e==null?void 0:e.replaceAll("[","").replaceAll("]","").split(":"),r=n==null?void 0:n.map(o=>{var a;return(a=o==null?void 0:o.value)==null?void 0:a.pageData}),i="";return r==null||r.forEach(o=>{var a;(o==null?void 0:o.name)===(t==null?void 0:t[0])&&((a=o==null?void 0:o.compData)==null||a.forEach(s=>{var c;(s==null?void 0:s.key)==="formContent"&&((c=s==null?void 0:s.contents)==null||c.forEach(u=>{(u==null?void 0:u.prop)===(t==null?void 0:t[1])&&(i=u==null?void 0:u.value)}))}))}),i},Zr=(e,n,t,r)=>{var c,u,h;let i=(c=e==null?void 0:e[0])==null?void 0:c.formMenuSelect,o=e==null?void 0:e.map(p=>{var d,v;return(v=(d=p.groupSelect)==null?void 0:d.split(":"))==null?void 0:v[1]}),a="";i==null||i.forEach((p,d)=>{(i==null?void 0:i.length)-1!==d?a=a===""?a+p:a+"/"+p:a=a+we+p});let s=[];for(let p in n)if(p!=null&&p.includes(a)){let d=(u=n[p])==null?void 0:u.filter(v=>{var g,b;return((g=v==null?void 0:v.key)==null?void 0:g.type)==="structure"&&((b=v==null?void 0:v.key)==null?void 0:b.parentTable)===""});s=[...s,...d]}if((s==null?void 0:s.length)>0){let p=s==null?void 0:s.filter(y=>{var m,S,B;return((m=y==null?void 0:y.key)==null?void 0:m.pageKey)!==a&&((B=(S=y==null?void 0:y.value)==null?void 0:S.pageData)==null?void 0:B.comp)==="Form"}),d=s==null?void 0:s.filter(y=>{var m,S,B;return((m=y==null?void 0:y.key)==null?void 0:m.pageKey)!==a&&((B=(S=y==null?void 0:y.value)==null?void 0:S.pageData)==null?void 0:B.comp)==="Table"});d=uo(f.cloneDeep(d),n),p=[...f.cloneDeep(p),...d],p=p==null?void 0:p.map(y=>({[y.key.pageKey]:y}));let v=0;p=p.reduce((y,m)=>(Object.keys(m).forEach(S=>{y[S]||(y[S]=[],y[S].push({index:v})),y[S].push(m[S])}),v++,y),{});let g=(h=Object.values(p))==null?void 0:h.sort((y,m)=>{var E,C;let S=(E=y==null?void 0:y.find(D=>D==null?void 0:D.index))==null?void 0:E.index,B=(C=m==null?void 0:m.find(D=>D==null?void 0:D.index))==null?void 0:C.index;return S-B});p=g==null?void 0:g.map(y=>y==null?void 0:y.filter(m=>{var S,B,E,C;return!(m!=null&&m.index)&&(m==null?void 0:m.index)!==0&&!((B=(S=m==null?void 0:m.key)==null?void 0:S.pageKey)!=null&&B.includes("updateLoading"))&&!((C=(E=m==null?void 0:m.key)==null?void 0:E.pageKey)!=null&&C.includes("loading"))}));let b=[];if(p==null||p.forEach(y=>{var B,E,C,D,A,T,N,w,I,M;const m=y==null?void 0:y.find(P=>{var j,J,O,K,$;return((J=(j=P==null?void 0:P.value)==null?void 0:j.pageData)==null?void 0:J.name)===(($=(K=(O=e==null?void 0:e[0])==null?void 0:O.groupSelect)==null?void 0:K.split(":"))==null?void 0:$[0])});let S=(A=(D=(C=(E=(B=f.cloneDeep(m))==null?void 0:B.value)==null?void 0:E.pageData)==null?void 0:C.compData)==null?void 0:D.find(P=>(P==null?void 0:P.key)==="formContent"))==null?void 0:A.contents;if(S){let P=[];o==null||o.forEach((j,J)=>{var $,ie,ae,k,F,_;let O=y==null?void 0:y.find(H=>{var ne,oe,V,Z,re;return((oe=(ne=H==null?void 0:H.value)==null?void 0:ne.pageData)==null?void 0:oe.name)===((re=(Z=(V=e==null?void 0:e[J])==null?void 0:V.groupSelect)==null?void 0:Z.split(":"))==null?void 0:re[0])}),K=(F=(k=(ae=(ie=($=f.cloneDeep(O))==null?void 0:$.value)==null?void 0:ie.pageData)==null?void 0:ae.compData)==null?void 0:k.find(H=>(H==null?void 0:H.key)==="formContent"))==null?void 0:F.contents;K!=null&&K.find(H=>(H==null?void 0:H.key)===j)?P.push((_=K==null?void 0:K.find(H=>(H==null?void 0:H.key)===j))==null?void 0:_.value):P.push("")}),b.push(P)}else S=(M=(I=(w=(N=(T=f.cloneDeep(m))==null?void 0:T.value)==null?void 0:N.pageData)==null?void 0:w.compData)==null?void 0:I.find(P=>(P==null?void 0:P.key)==="tableContents"))==null?void 0:M.contents,S==null||S.forEach(P=>{let j=[];o==null||o.forEach(J=>{P!=null&&P[J]&&j.push(P==null?void 0:P[J])}),b.push(j)})}),(t==null?void 0:t.length)>0){let y={};t==null||t.forEach(m=>{var S;for(let B in m){let E=f.cloneDeep(B);if(!(E!=null&&E.includes("[")))(S=m[B])!=null&&S.includes("[")||(y[E]=m[B]);else{let C=fo(E,n[r]),D=co(m[B],n[r]);y[C]=D}}});for(let m in y)b=b==null?void 0:b.filter(S=>S[y[m]]===m)}return b}},Mu=(e,n,t,r)=>{var s,c,u,h,p;let i=f.cloneDeep(e),o=n==null?void 0:n.map(d=>d==null?void 0:d.prop),a=[];for(let d in t)if(d!=null&&d.includes(i)){let v=(s=t[d])==null?void 0:s.filter(g=>{var b,y;return((b=g==null?void 0:g.key)==null?void 0:b.type)==="structure"&&((y=g==null?void 0:g.key)==null?void 0:y.parentTable)===""});a=[...a,...v]}if((a==null?void 0:a.length)>0){let d=a==null?void 0:a.filter(E=>{var C,D,A,T;return((C=E==null?void 0:E.key)==null?void 0:C.pageKey)!==i&&((A=(D=E==null?void 0:E.value)==null?void 0:D.pageData)==null?void 0:A.comp)==="Form"&&(E==null?void 0:E.key.pageKey.includes(i+we))&&!((T=E==null?void 0:E.key.pageKey)!=null&&T.includes("@"))}),v=a==null?void 0:a.filter(E=>{var C,D,A,T;return((C=E==null?void 0:E.key)==null?void 0:C.pageKey)!==i&&((A=(D=E==null?void 0:E.value)==null?void 0:D.pageData)==null?void 0:A.comp)==="Table"&&(E==null?void 0:E.key.pageKey.includes(i+we))&&!((T=E==null?void 0:E.key.pageKey)!=null&&T.includes("@"))});v=uo(f.cloneDeep(v),t),d=[...f.cloneDeep(d),...v],d=d==null?void 0:d.map(E=>({[E.key.pageKey]:E}));let g=0;d=d.reduce((E,C)=>(Object.keys(C).forEach(D=>{E[D]||(E[D]=[],E[D].push({index:g})),E[D].push(C[D])}),g++,E),{}),d=ao(d,!0,t);let b=(c=Object.values(d))==null?void 0:c.sort((E,C)=>{var T,N;let D=(T=E==null?void 0:E.find(w=>w==null?void 0:w.index))==null?void 0:T.index,A=(N=C==null?void 0:C.find(w=>w==null?void 0:w.index))==null?void 0:N.index;return D-A});d=b==null?void 0:b.map(E=>E==null?void 0:E.filter(C=>!(C!=null&&C.index)&&(C==null?void 0:C.index)!==0));let y=(u=f.cloneDeep(d))==null?void 0:u.filter(E=>E==null?void 0:E.find(C=>{var D,A,T,N;return((N=(D=C==null?void 0:C.key)==null?void 0:D.pageKey)==null?void 0:N[((T=(A=C==null?void 0:C.key)==null?void 0:A.pageKey)==null?void 0:T.length)-1])===we}));d=d==null?void 0:d.filter(E=>!(E!=null&&E.find(C=>{var D,A,T,N,w,I,M,P;return((N=(D=C==null?void 0:C.key)==null?void 0:D.pageKey)==null?void 0:N[((T=(A=C==null?void 0:C.key)==null?void 0:A.pageKey)==null?void 0:T.length)-1])===we||((I=(w=C==null?void 0:C.key)==null?void 0:w.pageKey)==null?void 0:I.includes("updateLoading"))||((P=(M=C==null?void 0:C.key)==null?void 0:M.pageKey)==null?void 0:P.includes("loading"))})));let m=[],S=[];(h=y==null?void 0:y[0])==null||h.forEach(E=>{var C,D,A,T,N;((D=(C=E==null?void 0:E.value)==null?void 0:C.pageData)==null?void 0:D.comp)==="Form"&&((N=(T=(A=E==null?void 0:E.value)==null?void 0:A.pageData)==null?void 0:T.compData)==null||N.forEach(w=>{(w==null?void 0:w.key)==="formContent"&&(S=[...S,...w==null?void 0:w.contents])}))});let B=(p=S==null?void 0:S.find(E=>(E==null?void 0:E.isMain)===!0))==null?void 0:p.key;if(d==null||d.forEach(E=>{let C=[];E==null||E.forEach(A=>{var T,N,w,I,M;((N=(T=A==null?void 0:A.value)==null?void 0:T.pageData)==null?void 0:N.comp)==="Form"&&((M=(I=(w=A==null?void 0:A.value)==null?void 0:w.pageData)==null?void 0:I.compData)==null||M.forEach(P=>{(P==null?void 0:P.key)==="formContent"&&(C=[...C,...P==null?void 0:P.contents])}))});let D={};o==null||o.forEach(A=>{let T=C==null?void 0:C.find(N=>(N==null?void 0:N.key)===A);T!=null&&T.prop&&(D[T.prop]=(T==null?void 0:T.value)??"")}),m.push(D)}),(r==null?void 0:r.length)>0){let E={};r==null||r.forEach(C=>{var D,A,T,N,w;for(let I in C){let M=f.cloneDeep(I);if(!(M!=null&&M.includes("[")))C[I].toUpperCase()==="@LOGINUSER"?E[M]=(D=Ke.value)!=null&&D.account?(A=Ke.value)==null?void 0:A.account:((T=Ke.value)==null?void 0:T.姓名)??((N=Ke.value)==null?void 0:N.账号):(w=C[I])!=null&&w.includes("[")||(E[M]=C[I]);else{let P=fo(M,t[e]),j=co(C[I],t[e]);E[P]=j}}});for(let C in E)m=m==null?void 0:m.filter(D=>D[C]===E[C])}return m=m==null?void 0:m.map(E=>Object.values(E)),{mainKey:B,tableContents:m}}},Nu=(e,n)=>{var i,o,a,s,c,u;let t=(o=(i=f.cloneDeep(e))==null?void 0:i.split("/"))==null?void 0:o[0],r=[];for(let h in n)if(h!=null&&h.includes(t)){let p=(a=n[h])==null?void 0:a.filter(d=>{var v,g;return((v=d==null?void 0:d.key)==null?void 0:v.type)==="structure"&&((g=d==null?void 0:d.key)==null?void 0:g.parentTable)===""});r=[...r,...p]}return(r==null?void 0:r.length)>0?!!((u=(c=(s=r==null?void 0:r.filter(p=>{var d;return((d=p==null?void 0:p.key)==null?void 0:d.pageKey)===t}))==null?void 0:s[0])==null?void 0:c.key)==null?void 0:u.parentPageKey):!0},Ou=async(e,n,t,r)=>{var a,s,c,u,h,p,d,v,g;let i=(s=(a=f.cloneDeep(e))==null?void 0:a.split("/"))==null?void 0:s[0],o=[];for(let b in r)if(b!=null&&b.includes(i)){let y=(c=r[b])==null?void 0:c.filter(m=>{var S,B;return((S=m==null?void 0:m.key)==null?void 0:S.type)==="structure"&&((B=m==null?void 0:m.key)==null?void 0:B.parentTable)===""});o=[...o,...y]}if((o==null?void 0:o.length)>0){let b=(p=(h=(u=o==null?void 0:o.filter(S=>{var B;return((B=S==null?void 0:S.key)==null?void 0:B.pageKey)===i}))==null?void 0:u[0])==null?void 0:h.key)==null?void 0:p.parentPageKey,y=[];if(b){for(let S in r)if(S!=null&&S.includes(b)){let B=(d=r[S])==null?void 0:d.filter(E=>{var C,D;return((C=E==null?void 0:E.key)==null?void 0:C.type)==="structure"&&((D=E==null?void 0:E.key)==null?void 0:D.parentTable)===""});y=[...y,...B]}}else y=o;let m="";if((y==null?void 0:y.length)>0){let S=[],B;B=(v=y==null?void 0:y.filter(w=>{var I,M,P,j,J,O;return((P=(M=(I=w==null?void 0:w.key)==null?void 0:I.pageKey)==null?void 0:M.split("/"))==null?void 0:P[0])===b&&((O=(J=(j=w==null?void 0:w.key)==null?void 0:j.pageKey)==null?void 0:J.split("/"))==null?void 0:O.length)===2}))==null?void 0:v.map(w=>{var I;return(I=w==null?void 0:w.key)==null?void 0:I.pageKey}),B=[...new Set(B)],B=B==null?void 0:B.filter(w=>!w.includes(we));let E=(g=f.cloneDeep(B))==null?void 0:g.map(async w=>{var J,O,K,$,ie,ae,k,F,_,H,ne,oe,V,Z,re;let I=await He(w,sessionStorage.getItem("systemKey"),"",!1,[],!1,r),M=($=(K=(O=(J=f.cloneDeep(I))==null?void 0:J[0])==null?void 0:O.compData)==null?void 0:K.find(q=>(q==null?void 0:q.key)==="tableContents"))==null?void 0:$.contents,P=(H=(_=(F=(k=(ae=(ie=f.cloneDeep(I))==null?void 0:ie[0])==null?void 0:ae.compData)==null?void 0:k.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:F.contents)==null?void 0:_.filter(q=>(q==null?void 0:q.label)!=="操作"))==null?void 0:H.map(q=>q==null?void 0:q.prop),j=[];return(re=(Z=(V=(oe=(ne=f.cloneDeep(I))==null?void 0:ne[0])==null?void 0:oe.compData)==null?void 0:V.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:Z.contents)==null||re.forEach(q=>{(q==null?void 0:q.isMainKey)===!0&&(m=q==null?void 0:q.prop)}),M==null||M.forEach(q=>{let ce=ot(q,P);j.push(ce),S.push({key:ce==null?void 0:ce[m],routerContent:w})}),j}),C=await Promise.all(E),D=[];C==null||C.forEach(w=>{(w==null?void 0:w.length)>0&&(w==null||w.forEach(I=>{D.push(I)}))});let A=[];A=n==null?void 0:n.map(w=>{var M,P,j,J;let I={};for(let O in w)w[O].toUpperCase()==="@LOGINUSER"?I[O]=(M=Ke.value)!=null&&M.account?(P=Ke.value)==null?void 0:P.account:((j=Ke.value)==null?void 0:j.姓名)??((J=Ke.value)==null?void 0:J.账号):I[O]=w[O];return I});let T=[];D==null||D.forEach(w=>{let I=[];A==null||A.forEach(M=>{let P=[];for(let j in M)P.push(w[j]===M[j]);I.push(P)}),I.find(M=>M==null?void 0:M.every(P=>P===!0))&&T.push(w)});let N=[];return T==null||T.forEach(w=>{let I={};t==null||t.forEach(M=>{I[M.prop]=w[M.prop]??""}),N.push(I)}),N=N==null?void 0:N.map(w=>Object.values(w)),{mainKey:m,tableContents:N,mainKeys:S}}else return}else return},Pu=async(e,n,t,r)=>{var o,a,s,c;let i=(o=f.cloneDeep(e))==null?void 0:o.filter(u=>(u==null?void 0:u.label)!=="操作");if((t==null?void 0:t.length)>0&&(i!=null&&i.every(u=>!(u!=null&&u.formMenuSelect)))&&Nu(n,r)){let u=await Ou(n,t,i,r);return u&&((a=u==null?void 0:u.tableContents)==null?void 0:a.length)>0?u:[]}if(!(i!=null&&i.every(u=>{var h,p,d,v;return((h=u==null?void 0:u.formMenuSelect)==null?void 0:h.length)>0&&((d=(p=u==null?void 0:u.groupSelect)==null?void 0:p.split(":"))==null?void 0:d.length)>0||((v=u==null?void 0:u.formMenuGroup)==null?void 0:v.length)>0})))return Mu(n,i,r,t);if(i!=null&&i.every(u=>!(u!=null&&u.formMenuGroup)))return Zr(i,r,t,n);{let u=[];(c=(s=i==null?void 0:i[0])==null?void 0:s.formMenuGroup)==null||c.forEach((v,g)=>{let b=[];i==null||i.forEach(y=>{var m,S,B,E,C,D;b.push({columnPath:y==null?void 0:y.columnPath,formMenuSelect:(B=((m=y==null?void 0:y.formMenuGroup)==null?void 0:m[g])??((S=y==null?void 0:y.formMenuGroup)==null?void 0:S[0]))==null?void 0:B.formMenuSelect,groupSelect:(D=((E=y==null?void 0:y.formMenuGroup)==null?void 0:E[g])??((C=y==null?void 0:y.formMenuGroup)==null?void 0:C[0]))==null?void 0:D.groupSelect,isRoute:y==null?void 0:y.isRoute,label:y==null?void 0:y.label,prop:y==null?void 0:y.label})}),u.push(b)});let h=[],d=u==null?void 0:u.map(async v=>Zr(v,r,t,n));return d==null||d.forEach(v=>{v==null||v.forEach(g=>{h.push(g)})}),h}},Vu=At(f.pinia),{originalPath:ho}=f.storeToRefs(Vu),Fu=e=>e==null?void 0:e.map(t=>(t=go(t),t)),Qn=async()=>{var t,r,i,o,a,s,c,u,h,p,d,v;let e;const n=await f.getInsofDataApi({key:{type:"structure",pageKey:"menu",systemKey:sessionStorage.getItem("systemKey")}});return(s=(a=(o=(i=(r=(t=n.data.result)==null?void 0:t[0])==null?void 0:r.value)==null?void 0:i.pageData)==null?void 0:o.compData)==null?void 0:a[0])!=null&&s.contents&&(e=Fu((v=(d=(p=(h=(u=(c=n.data.result)==null?void 0:c[0])==null?void 0:u.value)==null?void 0:h.pageData)==null?void 0:p.compData)==null?void 0:d[0])==null?void 0:v.contents)),e},Lu=e=>{var r,i,o;const n=(i=(r=e==null?void 0:e.compData)==null?void 0:r.find(a=>(a==null?void 0:a.key)==="header"))==null?void 0:i.contents;return{label:e==null?void 0:e.name,value:e==null?void 0:e.name,children:n!=null&&n.every(a=>!Array.isArray(a))?n==null?void 0:n.map(a=>({label:a==null?void 0:a.label,value:a==null?void 0:a.label})):(o=Xt(n==null?void 0:n[0]))==null?void 0:o.map(a=>({label:a==null?void 0:a.label,value:a==null?void 0:a.label}))}},po=async e=>{var i,o;let n="";(i=f.cloneDeep(e))==null||i.forEach(a=>{n=n===""?n+a:n+"/"+a});let t="";(o=f.cloneDeep(e))==null||o.forEach((a,s)=>{s!==(e==null?void 0:e.length)-1?t=t===""?t+a:t+"/"+a:t=t+ho.value+a});const r=await He(n,sessionStorage.getItem("systemKey"),"");return r||await He(t,sessionStorage.getItem("systemKey"),"")},Ku=async e=>{var r,i,o;const n=await po(e);let t=[];return((r=n==null?void 0:n.data)==null?void 0:r.type)==="success"&&(t=(o=(i=n.data.result)==null?void 0:i.map(a=>a.value.pageData))==null?void 0:o.filter(a=>(a==null?void 0:a.comp)==="Table"),t=t==null?void 0:t.map(a=>Lu(a))),t},_u=[{key:"单选",value:"Select"},{key:"日期",value:"Date"},{key:"长文本",value:"TextArea"},{key:"上传",value:"Upload"},{key:"富文本",value:"Quill"}],pt=[{label:"输入框",value:"Input"},{label:"下拉框",value:"Select"},{label:"日期选择器",value:"Date"},{label:"长文本",value:"TextArea"},{label:"附件选择器",value:"Upload"},{label:"富文本",value:"Quill"}],Hu=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:pt},{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}],Uu=async()=>{const e=await Qn();return[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:pt},{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:e},{key:"groupSelect",label:"组信息选项",type:"cascader",options:[]},{key:"contents",label:"选项值",type:"Input"}]},$u=async()=>[{value:"",id:"v1",label:"菜单选项",name:"菜单选项",type:"cascader",contents:await Qn()},{value:"",id:"v2",label:"组信息选项",name:"组信息选项",type:"cascader",contents:[]},{value:"",id:"v2",label:"选项值",name:"选项值",type:"Input",contents:[]}],zu=l.computed(async()=>await Uu()),ju=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:pt},{key:"originalContent",label:"初始值",type:"Date"},{key:"isNewDate",label:"当前时间",type:"Switch",value:!1}],qu=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:pt},{key:"originalContent",label:"初始值",type:"Input"}],Jr=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:pt}],Gu=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:pt}],Wu=[{key:"Input",value:Hu},{key:"Select",value:zu},{key:"Date",value:ju},{key:"TextArea",value:qu},{key:"Upload",value:Jr},{key:"DragUpload",value:Jr},{key:"Quill",value:Gu}],Yu=[{value:"normal",label:"自定义"},{value:"add",label:"新增"},{value:"fix",label:"修改"},{value:"view",label:"查看"},{value:"delete",label:"删除"}],Zu=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Yu},{key:"background",label:"颜色",type:"Color"}],Ju=e=>{var t,r,i,o,a,s,c,u;let n=f.cloneDeep(e);if(((t=n==null?void 0:n.find(h=>(h==null?void 0:h.name)==="类型"))==null?void 0:t.type)==="Select"&&((o=(i=(r=f.cloneDeep(n))==null?void 0:r.find(h=>(h==null?void 0:h.name)==="选项值"))==null?void 0:i.value)==null?void 0:o.length)>0){const h=(u=(c=(s=(a=f.cloneDeep(n))==null?void 0:a.find(p=>(p==null?void 0:p.name)==="选项值"))==null?void 0:s.value)==null?void 0:c.split(","))==null?void 0:u.map(p=>({label:p,value:p}));n=n==null?void 0:n.map(p=>((p==null?void 0:p.name)==="初始值"&&(p.contents=h,p.value=(p==null?void 0:p.value)??""),p))}return n},go=e=>{var i;let n={};const t=(i=e==null?void 0:e.filter(o=>!Array.isArray(o)))==null?void 0:i[0];n.label=t,n.value=t;const r=e==null?void 0:e.filter(o=>Array.isArray(o));return r&&(r==null?void 0:r.length)>0&&(n.children=r==null?void 0:r.map(o=>go(o))),n},Xu=async e=>{var o,a,s,c;let n=f.cloneDeep(e);const t=(o=e==null?void 0:e.find(u=>(u==null?void 0:u.name)==="下拉绑定类型"))==null?void 0:o.value,r=(a=e==null?void 0:e.find(u=>(u==null?void 0:u.name)==="类型"))==null?void 0:a.value,i=await $u();return r==="Select"&&t===""?n=n==null?void 0:n.filter(u=>(u==null?void 0:u.name)!=="菜单选项"&&(u==null?void 0:u.name)!=="组信息选项"&&(u==null?void 0:u.name)!=="选项值"):r==="Select"&&t==="关联绑定列"?n!=null&&n.find(u=>(u==null?void 0:u.name)==="菜单选项"||(u==null?void 0:u.name)==="组信息选项")?n=(s=f.cloneDeep(n))==null?void 0:s.filter(u=>(u==null?void 0:u.name)!=="选项值"):n=[...f.cloneDeep(n),...i].filter(u=>(u==null?void 0:u.name)!=="选项值"):r==="Select"&&t==="自定义绑定"&&(n!=null&&n.find(u=>(u==null?void 0:u.name)==="选项值")?n=(c=f.cloneDeep(n))==null?void 0:c.filter(u=>(u==null?void 0:u.name)!=="菜单选项"&&(u==null?void 0:u.name)!=="组信息选项"):n=[...f.cloneDeep(n),...i].filter(u=>(u==null?void 0:u.name)!=="菜单选项"&&(u==null?void 0:u.name)!=="组信息选项")),n},Qu=(e,n)=>{var r;let t=!1;return(r=f.cloneDeep(e))==null||r.forEach(i=>{var o;(i==null?void 0:i.key)==="formContent"&&((o=i==null?void 0:i.contents)==null||o.forEach(a=>{(a==null?void 0:a.key)===n?t=!0:t=t}))}),t},yo=(e,n)=>{var a,s,c,u,h;const t=f.cloneDeep(e);if(!t)return;let r="";(s=(a=f.cloneDeep(t))==null?void 0:a.menuSelect)==null||s.forEach(p=>{p!=null&&p.includes("[")?r=r+ho.value:r=r===""?r+p:r+"/"+p});const i=(c=n==null?void 0:n[r])==null?void 0:c.map(p=>{var d;return(d=p==null?void 0:p.value)==null?void 0:d.pageData});let o=i==null?void 0:i.filter(p=>{var d,v;return(p==null?void 0:p.name)===((v=(d=f.cloneDeep(t))==null?void 0:d.groupSelect)==null?void 0:v[0])});if((o==null?void 0:o.length)===1?o=o==null?void 0:o[0]:(u=f.cloneDeep(o))==null||u.forEach(p=>{var d,v;(p==null?void 0:p.comp)==="Form"&&Qu(p==null?void 0:p.compData,(v=(d=f.cloneDeep(t))==null?void 0:d.groupSelect)==null?void 0:v[1])&&(o=p)}),(o==null?void 0:o.comp)==="Form"){let p="";return(h=o==null?void 0:o.compData)==null||h.forEach(d=>{var v;(d==null?void 0:d.key)==="formContent"&&((v=d==null?void 0:d.contents)==null||v.forEach(g=>{var b,y;(g==null?void 0:g.key)===((y=(b=f.cloneDeep(t))==null?void 0:b.groupSelect)==null?void 0:y[1])&&(g.type==="Select"&&!(g!=null&&g.value)?p=void 0:p=g==null?void 0:g.value)}))}),p}};exports.CHANGE_EVENT=Sn;exports.ElButton=Ni;exports.ElButtonGroup=ls;exports.ElFocusTrap=ki;exports.ElInput=wi;exports.ElMessageBox=Ki;exports.ElOverlay=Pi;exports.FOCUS_TRAP_INJECTION_KEY=Di;exports.FormButton=Zu;exports.FormContent=Wu;exports.FormType=_u;exports.INPUT_EVENT=En;exports.IsJson=Bs;exports.PatchFlags=vt;exports.SetCache=bt;exports.State=iu;exports.State$1=El;exports.TinyColor=Ri;exports.UPDATE_MODEL_EVENT=$t;exports.addPathToTree=nn;exports.addTableContents=yu;exports.animateScrollTo=sa;exports.baseFlatten=Nn;exports.baseIsEqual=On;exports.buttonTypes=xi;exports.cAF=ci;exports.cacheHas=ri;exports.convertArrayToTree=jn;exports.decryptData=Jn;exports.deleteTableContents=gu;exports.encryptData=yt;exports.ensureOnlyChild=ps;exports.fixFormContents=mu;exports.fixTableContents=vu;exports.flatRest=ni;exports.flattedChildren=dt;exports.flatten=ti;exports.focusNode=Ta;exports.formContextKey=Qt;exports.formItemContextKey=Pn;exports.formToOptionsContents=Ju;exports.generateKeyPair=jl;exports.getActivePageStructureId=Ji;exports.getAllLeafNodes=ku;exports.getColumnChild=Xt;exports.getColumnContents=je;exports.getFirstArrayProperty=zn;exports.getFormContents=Os;exports.getGradeColumns=Cu;exports.getItemData=He;exports.getLeafNodesRecursive=Gn;exports.getMenusContent=Qn;exports.getNewColumnChild=Iu;exports.getNormalizedProps=hs;exports.getParentConstruct=js;exports.getParentContents=Ps;exports.getParentKey=zs;exports.getScrollBarWidth=fi;exports.getScrollContainer=oa;exports.getScrollElement=la;exports.getScrollTop=ua;exports.getSibling=Ea;exports.getTableFormToForm=xu;exports.getValueToObjectValue=ot;exports.groupByField=qn;exports.handleRowAuthorityRender=Wn;exports.handleSubmitAsync=lt;exports.hasIn=ai;exports.identity=Xr;exports.inputProps=di;exports.isEqual=si;exports.isFirefox=hi;exports.isFocusable=en;exports.isFragment=Oi;exports.isLeaf=bi;exports.isValidComponentSize=Li;exports.isValidElementNode=fs;exports.judgeContents=yo;exports.loadingConstruct=lo;exports.loadingSystemType=bu;exports.menuToContentType=Ku;exports.menuToParent=po;exports.methodTableToContent=Ns;exports.overRest=ei;exports.pick=li;exports.rAF=ui;exports.resetPassword=st;exports.scrollIntoView=aa;exports.selectToBase=Xu;exports.setToArray=oi;exports.setToString=Qr;exports.submitTableAsyncByVerify=sn;exports.tableEveryContents=$s;exports.tableToContents=Fs;exports.tableToStruct=Vs;exports.triggerEvent=Sa;exports.tryFocus=Me;exports.useAriaProps=pi;exports.useAttrs=gi;exports.useAuthorityState=Un;exports.useComposition=Ei;exports.useDeprecated=Ii;exports.useDraggable=Vi;exports.useFocusController=Si;exports.useFormDisabled=wt;exports.useFormItem=Vn;exports.useFormItemInputId=vi;exports.useFormSize=Fn;exports.useId=zt;exports.useIdInjection=yi;exports.useLockscreen=Fi;exports.useMenuState=Dt;exports.useModelComp=ft;exports.useOriginalState=At;exports.useSameTarget=_n;exports.useTableComp=Hn;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { S as t3, O as e3, M as a3 } from "./STLLoader-NMLJVHBO.js";
|
|
2
2
|
import { v as H3, F as g3, C as L3, b as c3, p as z3, w as N, I as V3, x as f3, y as u3, n as o3, z as B3, o as _3, e as O, B as C3, V as s3, J as p3, h as k, i as W, K as q3, r as A3, N as S3, O as F3 } from "./three-viewport-gizmo-B276WnhL.js";
|
|
3
|
-
import { d as D3 } from "./threeViewerHost-
|
|
4
|
-
import { b as l3, s as T3, p as U3 } from "./index-
|
|
3
|
+
import { d as D3 } from "./threeViewerHost-EDXsKeN5.js";
|
|
4
|
+
import { b as l3, s as T3, p as U3 } from "./index-BNbgnFHv.js";
|
|
5
5
|
import { ref as j3 } from "vue";
|
|
6
|
-
import { a as I3 } from "./index.vue_vue_type_style_index_1_lang-
|
|
6
|
+
import { a as I3 } from "./index.vue_vue_type_style_index_1_lang-DQF03uWi.js";
|
|
7
7
|
import { U as E3 } from "./URDFLoader-CWayVfX0.js";
|
|
8
8
|
class O3 extends H3 {
|
|
9
9
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bN as ii, bO as Rn, m as Bn, bJ as ia, bP as us, bQ as fs, bA as cs, bR as ai, bS as si, bT as oi, bE as li, bM as er, bF as hs, bu as ui, o as aa, t as ds, bU as ps, bz as gs, n as ys, bV as vs, K as Fe, ap as sa, bi as Nr, a9 as Ot, x as fi, y as $n, O as gt, ah as bs, z as xt, V as Cn, a6 as oa, a2 as ut, aH as ms, bW as Ss, b9 as Es, aS as Ts, G as _t, aI as jt, _ as en, A as vt, aM as ws, bX as As, bY as Ds, ai as la, a3 as ks, L as it, P as Tn, ae as Is, N as Mn, H as ua, aa as Fr, aw as xs, R as yr, $ as Rs, U as wn, aj as vr, bZ as Bs, D as ci, F as Cs, ar as hi, aN as Ms, aO as Os, W as Ps, M as Ns, bm as Fs, T as di, I as Ls, bx as tn, c as M, s as ve, p as ge, bo as Gt, u as zn, g as Ne, E as Ce, d as fa, bp as ca, f as br, bq as Vs, e as pi, bw as Ks } from "./index-
|
|
1
|
+
import { bN as ii, bO as Rn, m as Bn, bJ as ia, bP as us, bQ as fs, bA as cs, bR as ai, bS as si, bT as oi, bE as li, bM as er, bF as hs, bu as ui, o as aa, t as ds, bU as ps, bz as gs, n as ys, bV as vs, K as Fe, ap as sa, bi as Nr, a9 as Ot, x as fi, y as $n, O as gt, ah as bs, z as xt, V as Cn, a6 as oa, a2 as ut, aH as ms, bW as Ss, b9 as Es, aS as Ts, G as _t, aI as jt, _ as en, A as vt, aM as ws, bX as As, bY as Ds, ai as la, a3 as ks, L as it, P as Tn, ae as Is, N as Mn, H as ua, aa as Fr, aw as xs, R as yr, $ as Rs, U as wn, aj as vr, bZ as Bs, D as ci, F as Cs, ar as hi, aN as Ms, aO as Os, W as Ps, M as Ns, bm as Fs, T as di, I as Ls, bx as tn, c as M, s as ve, p as ge, bo as Gt, u as zn, g as Ne, E as Ce, d as fa, bp as ca, f as br, bq as Vs, e as pi, bw as Ks } from "./index-BNbgnFHv.js";
|
|
2
2
|
import { computed as $, getCurrentInstance as qn, inject as bt, unref as B, ref as Y, onMounted as ct, watch as Oe, toRef as On, onUnmounted as _s, shallowRef as An, nextTick as Be, defineComponent as Qe, useAttrs as Hs, useSlots as ha, createElementBlock as we, openBlock as X, normalizeStyle as Pn, normalizeClass as ee, createCommentVNode as fe, Fragment as zt, createElementVNode as Re, renderSlot as He, createBlock as he, withCtx as Se, resolveDynamicComponent as _e, mergeProps as mr, withModifiers as Ut, createVNode as at, toDisplayString as Je, onBeforeUnmount as nn, provide as da, Text as Us, reactive as jn, isVNode as Ye, Comment as $s, h as zs, watchEffect as qs, isRef as js, onScopeDispose as Gs, markRaw as Sr, toRefs as Ws, resolveComponent as Ht, Transition as Ys, withDirectives as tr, withKeys as sn, createTextVNode as nr, vShow as rr, render as pa } from "vue";
|
|
3
3
|
function Zs(e) {
|
|
4
4
|
return e;
|
|
@@ -6127,7 +6127,7 @@ const ts = (e, n, t) => {
|
|
|
6127
6127
|
var ke;
|
|
6128
6128
|
if ((U == null ? void 0 : U.prop) === (ne == null ? void 0 : ne[1])) {
|
|
6129
6129
|
let We = Pc((ke = M(U)) == null ? void 0 : ke.optionUrl, r);
|
|
6130
|
-
re = (U == null ? void 0 : U.value) || We;
|
|
6130
|
+
re = (U == null ? void 0 : U.value) || We || "";
|
|
6131
6131
|
}
|
|
6132
6132
|
}));
|
|
6133
6133
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./index-
|
|
1
|
+
"use strict";const t=require("./index-DuQHeRpA.cjs");var r="[object String]";function n(i){return typeof i=="string"||!t.isArray(i)&&t.isObjectLike(i)&&t.baseGetTag(i)==r}exports.isString=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("./index-
|
|
1
|
+
"use strict";const l=require("./index-DuQHeRpA.cjs");var L=/\s/;function M(e){for(var i=e.length;i--&&L.test(e.charAt(i)););return i}var N=/^\s+/;function j(e){return e&&e.slice(0,M(e)+1).replace(N,"")}var O=NaN,B=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,U=/^0o[0-7]+$/i,$=parseInt;function k(e){if(typeof e=="number")return e;if(l.isSymbol(e))return O;if(l.isObject(e)){var i=typeof e.valueOf=="function"?e.valueOf():e;e=l.isObject(i)?i+"":i}if(typeof e!="string")return e===0?e:+e;e=j(e);var t=R.test(e);return t||U.test(e)?$(e.slice(2),t?2:8):B.test(e)?O:+e}var h=function(){return l.root.Date.now()},F="Expected a function",_=Math.max,q=Math.min;function D(e,i,t){var u,d,g,c,r,a,s=0,v=!1,o=!1,x=!0;if(typeof e!="function")throw new TypeError(F);i=k(i)||0,l.isObject(t)&&(v=!!t.leading,o="maxWait"in t,g=o?_(k(t.maxWait)||0,i):g,x="trailing"in t?!!t.trailing:x);function I(n){var f=u,m=d;return u=d=void 0,s=n,c=e.apply(m,f),c}function S(n){return s=n,r=setTimeout(T,i),v?I(n):c}function W(n){var f=n-a,m=n-s,p=i-f;return o?q(p,g-m):p}function y(n){var f=n-a,m=n-s;return a===void 0||f>=i||f<0||o&&m>=g}function T(){var n=h();if(y(n))return E(n);r=setTimeout(T,W(n))}function E(n){return r=void 0,x&&u?I(n):(u=d=void 0,c)}function A(){r!==void 0&&clearTimeout(r),s=0,u=a=d=r=void 0}function C(){return r===void 0?c:E(h())}function b(){var n=h(),f=y(n);if(u=arguments,d=this,a=n,f){if(r===void 0)return S(a);if(o)return clearTimeout(r),r=setTimeout(T,i),I(a)}return r===void 0&&(r=setTimeout(T,i)),c}return b.cancel=A,b.flush=C,b}function H(e){return e===void 0}exports.debounce=D;exports.isUndefined=H;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("./index-dSxc93u_.cjs"),i=require("./index-DuQHeRpA.cjs"),T=require("./index.vue_vue_type_style_index_1_lang-CletbRcG.cjs"),Z=require("./index-BpO_tdLl.cjs"),G=require("./array-DecM9H4l.cjs"),K=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"}],s=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"LineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"}],v={key:0,class:"show-content"},ee={class:"item-view-group"},te={__name:"index",props:{content:String,jsonContents:Array},emits:["change"],setup(x,{emit:E}){const t=x,j=E,h=T.useModelComp(i.pinia),{itemData:_}=i.storeToRefs(h),p=e.ref([]),C=e.ref([]),I=c=>{j("change",{wholeValue:p.value,editValue:c})},S=c=>{const g=i.cloneDeep(p.value),B=g==null?void 0:g.map((d,b)=>(b===(c==null?void 0:c.index)&&(d.compData=c==null?void 0:c.contents),d));p.value=B};e.watch(()=>_.value,()=>{var c;!_.value||((c=_.value)==null?void 0:c.length)===0||(C.value=_.value,p.value=_.value)},{deep:!0,immediate:!0}),e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],()=>{var g;if(((g=t==null?void 0:t.jsonContents)==null?void 0:g.length)>0){h.setOriginalData(t==null?void 0:t.jsonContents),h.setItemData(t==null?void 0:t.jsonContents);return}if(!(t!=null&&t.content)||(t==null?void 0:t.content)==="")return;const c=G.expandStringToJson(t==null?void 0:t.content);h.setOriginalData(c),h.setItemData(c)},{deep:!0,immediate:!0});const w=c=>Z.getComponent(c);return(c,g)=>{var B;return((B=C.value)==null?void 0:B.length)>0?(e.openBlock(),e.createElementBlock("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(d,b)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:b},[e.createElementVNode("div",ee,e.toDisplayString(d.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w(d.comp)),{itemData:d==null?void 0:d.compData,childItemData:d==null?void 0:d.itemChildData,key:b,onChange:I,index:b,onContentChange:S},null,40,["itemData","childItemData","index"]))]))),128))])):e.createCommentVNode("",!0)}}},ne=K._export_sfc(te,[["__scopeId","data-v-1c04adc8"]]),oe={class:"add-model-content"},ae={key:0,class:"model-import-data"},re={class:"import-button"},le={key:0},ce={key:1,class:"model-operate"},se={class:"model-select"},ue={class:"model-fill"},ie={key:2,class:"model-view ssComponent"},de={__name:"main",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0}},emits:["change"],setup(x,{emit:E}){const t=x,j=E,h=e.ref(""),_=e.ref([]),p=e.ref(0),C=T.useModelComp(i.pinia);T.useMenuState(i.pinia);const{itemData:I,originalData:S}=i.storeToRefs(C),w=e.ref(null),c=e.ref(0),g=e.ref(""),B=()=>{p.value=window.innerWidth},d=async r=>{var u;const a=(u=i.cloneDeep(r==null?void 0:r.wholeValue))==null?void 0:u.map(o=>{var f;return(o==null?void 0:o.comp)==="Form"&&(o.compData=(f=o.compData)==null?void 0:f.map(k=>((k==null?void 0:k.key)==="formContent"&&(k.contents=G.arrayToNumberArray(k==null?void 0:k.contents)),k))),o});j("change",{originalContents:S.value,currentContents:r==null?void 0:r.wholeValue,editContent:r==null?void 0:r.editValue,stringContent:b(i.cloneDeep(r==null?void 0:r.wholeValue)),arrayToContents:a})},b=r=>{var u;let a=[];return(u=i.cloneDeep(r))==null||u.forEach(o=>{var f,k;V!=null&&V.find(n=>(n==null?void 0:n.value)===(o==null?void 0:o.comp))&&a.push(((f=V==null?void 0:V.find(n=>(n==null?void 0:n.value)===(o==null?void 0:o.comp)))==null?void 0:f.key)+"="+o.name+"/r/n"),(k=o==null?void 0:o.compData)==null||k.forEach(n=>{var F,$,J,A,q,M,L,R,z,W,H,P;if(s!=null&&s.find(m=>(m==null?void 0:m.value)===(n==null?void 0:n.key)))if(!((F=n==null?void 0:n.contents)!=null&&F.length))a.push((($=s==null?void 0:s.find(m=>(m==null?void 0:m.value)===(n==null?void 0:n.key)))==null?void 0:$.key)+"="+(n.contents===!0?'""':"Vertical")+"/r/n");else{let m=(J=n==null?void 0:n.contents)==null?void 0:J[0];if(!m)return;if(Object.keys(m).includes("label")&&Object.keys(m).includes("key")&&Object.keys(m).includes("width"))if(((q=(A=n.contents)==null?void 0:A.filter(y=>y.width!==1))==null?void 0:q.length)===0){const y=(M=i.cloneDeep(n==null?void 0:n.contents))==null?void 0:M.map(l=>({[l.label]:l.value}));a.push(((L=s==null?void 0:s.find(l=>(l==null?void 0:l.value)===(n==null?void 0:n.key)))==null?void 0:L.key)+"="+JSON.stringify(y)+"/r/n")}else{let y=[];(R=i.cloneDeep(n==null?void 0:n.contents))==null||R.reduce((l,D)=>{var U;return l[D.label]=D.key,((U=Object.keys(i.cloneDeep(l)))==null?void 0:U.length)>=D.width&&(y.push(i.cloneDeep(l)),l={}),l},{}),a.push(((z=s==null?void 0:s.find(l=>(l==null?void 0:l.value)===(n==null?void 0:n.key)))==null?void 0:z.key)+"="+JSON.stringify(y)+"/r/n")}else if(Object.keys(m).includes("label")){const y=(W=i.cloneDeep(n==null?void 0:n.contents))==null?void 0:W.map(l=>l.label);a.push(((H=s==null?void 0:s.find(l=>(l==null?void 0:l.value)===(n==null?void 0:n.key)))==null?void 0:H.key)+"="+JSON.stringify(y)+"/r/n")}else a.push(((P=s==null?void 0:s.find(y=>(y==null?void 0:y.value)===(n==null?void 0:n.key)))==null?void 0:P.key)+"="+JSON.stringify(n==null?void 0:n.contents)+"/r/n")}})}),JSON.stringify(a)},N=e.ref([]),Q=()=>{w.value.click()},X=r=>{const a=r.target.files[0];if(!a)return;const u=new FileReader;u.onload=o=>{try{h.value=o.target.result,N.value=Y(o.target.result),c.value++}catch(f){console.error("解析失败:",f)}},u.onerror=o=>{console.error("文件读取错误:",o)},u.readAsText(a)};e.onMounted(()=>{window.addEventListener("resize",B)}),e.onUnmounted(()=>{window.removeEventListener("resize",B)}),e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],()=>{h.value=t==null?void 0:t.content,_.value=t==null?void 0:t.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>c.value,()=>{var r;((r=N.value)==null?void 0:r.length)!==0&&(C.setOriginalData(N.value),C.setItemData(N.value))},{deep:!0,immediate:!0});const Y=r=>{let a=r.replace(/,/g,",").replace(/;/g,";").replace(/:/g,":");a=a.replace(/(\w+)\s*:/g,"$1:"),a=a.replace(/\r\n/g,"").replace(/\n/g,"").replace(/\t/g,"").replace(/\s+/g," ").trim(),a=a.replace(/,\s*([}\]])/g,"$1"),a=a.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g,": $2$4");try{return JSON.parse(a)}catch(u){try{const f=new Function(`return ${a}`)();if(Array.isArray(f)||typeof f=="object")return f;throw new Error(`解析结果不是有效的数组或对象: ${u}`)}catch(o){throw new Error(`无法解析JSON: ${o.message}`)}}};return(r,a)=>{var u;return e.openBlock(),e.createElementBlock("div",oe,[((u=t==null?void 0:t.jsonContents)==null?void 0:u.length)===0?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",re,[e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:w,accept:".txt",onChange:X,style:{display:"none"}},null,544),e.createElementVNode("button",{onClick:Q,class:"import-button-content"},"导入文件"),g.value?(e.openBlock(),e.createElementBlock("span",le,e.toDisplayString(g.value),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",se,[e.createVNode(O.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:p.value},[e.createVNode(O.modelShow)])),e.createElementVNode("div",ue,[e.createVNode(O.modelFill)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="view"?(e.openBlock(),e.createElementBlock("div",ie,[(e.openBlock(),e.createBlock(ne,{content:h.value,onChange:d,jsonContents:_.value,key:p.value},null,8,["content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},me=K._export_sfc(de,[["__scopeId","data-v-91ce80be"]]);exports.default=me;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as _, watch as V, createElementBlock as C, createCommentVNode as I, openBlock as f, Fragment as le, renderList as se, createElementVNode as O, createBlock as Z, toDisplayString as v, resolveDynamicComponent as ue, onMounted as ce, onUnmounted as ie, createVNode as A } from "vue";
|
|
2
|
-
import { m as me, a as de, b as ye } from "./index-
|
|
3
|
-
import { p as E, s as ee, c as k } from "./index-
|
|
4
|
-
import { a as te, u as fe } from "./index.vue_vue_type_style_index_1_lang-
|
|
5
|
-
import { g as ge } from "./index-
|
|
6
|
-
import { e as he, a as ke } from "./array-
|
|
2
|
+
import { m as me, a as de, b as ye } from "./index-Ca2f0VUg.js";
|
|
3
|
+
import { p as E, s as ee, c as k } from "./index-BNbgnFHv.js";
|
|
4
|
+
import { a as te, u as fe } from "./index.vue_vue_type_style_index_1_lang-DQF03uWi.js";
|
|
5
|
+
import { g as ge } from "./index-Brhf4ViU.js";
|
|
6
|
+
import { e as he, a as ke } from "./array-NKfRbH0h.js";
|
|
7
7
|
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const x = [
|
|
9
9
|
{
|
package/dist/ss-component.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),v=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),v=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Ct7whq54.cjs");const C=require("./index.vue_vue_type_style_index_1_lang-CletbRcG.cjs");require("./index-DuQHeRpA.cjs");const s=require("./ss-component2.cjs"),t=require("./index-9hspBVrQ.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-BmmcLWmM.cjs")));r.install=e=>{e.component("ssComponent",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-C8G_IwB1.cjs")).then(e=>e.index$1));i.install=e=>{e.component("ssTab",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BzC6eWC8.cjs")));c.install=e=>{e.component("ssMenu",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-0lr165xC.cjs")));l.install=e=>{e.component("ssMenuComponent",l)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-wJwy2tSX.cjs")));m.install=e=>{e.component("ssCanvas",m)};const u=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DEEZPcpU.cjs")));u.install=e=>{e.component("ssFold",u)};const a=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-D5qQ230r.cjs")).then(e=>e.index));a.install=e=>{e.component("ssAvatar",a)};const h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-DqqiLPCU.cjs")));h.install=e=>{e.component("ssThree",h)};const f=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeViewerHost-C7J24Dzw.cjs")).then(e=>e.threeViewerHost));f.install=e=>{e.component("threeViewerHost",f)};const p=C.useMenuState(),P=[r,i,c,l,m,u,a,h,f],q=e=>{P.forEach(o=>{e.use(o)}),e.use(s),e.config.globalProperties.$router=s},g=e=>{switch(e){case"browser":return t.browserThemeConfig;case"client":return t.clientThemeConfig;case"three":return t.threeThemeConfig}},y=e=>{const o=document.documentElement;e==null||e.forEach(d=>{o.style.setProperty(d.name,d.value)})},A=e=>{p.setPlatform(e);const o=g(e);y(o)},T={getPlatform:p.getPlatform,setPlatform:p.setPlatform,initPlatform:A};exports.SvgIcon=v.SvgIcon;exports.router=s;exports.default=q;exports.platformApi=T;
|