ss-component-new 1.1.170 → 1.1.174

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/{array-Cohnw0WX.cjs → array-dc_wJZ01.cjs} +1 -1
  2. package/dist/{array-BXigaCVR.js → array-qzs6_ib1.js} +9 -9
  3. package/dist/{cloneDeep-CdCWpcPD.js → cloneDeep-B0pX5whW.js} +1 -1
  4. package/dist/{cloneDeep-rFPIpnMR.cjs → cloneDeep-D1tphovN.cjs} +1 -1
  5. package/dist/{formToTable-igsnYgcL.cjs → formToTable-BpUV5w1H.cjs} +1 -1
  6. package/dist/{formToTable-w5WNkThh.js → formToTable-qB2ZiY4M.js} +1 -1
  7. package/dist/{index-DGOrNmDU.js → index--sfGIlXS.js} +4 -4
  8. package/dist/{index-CbQgIZYr.js → index-AgObK4xj.js} +1 -1
  9. package/dist/{index-e-1cAl21.js → index-BA_yIOC_.js} +1 -1
  10. package/dist/{index-BhBAHcAB.cjs → index-BBVC2cyZ.cjs} +1 -1
  11. package/dist/{index-COieDyQi.js → index-BG7Ilk4d.js} +5 -5
  12. package/dist/{index-0c0QJLSW.cjs → index-BILiWzlu.cjs} +1 -1
  13. package/dist/{index-CffKSSJO.js → index-BLbETMA6.js} +1 -1
  14. package/dist/{index-SULOtg7H.cjs → index-BN8HnPqD.cjs} +1 -1
  15. package/dist/{index-k1uXqWYE.cjs → index-BRykBUeJ.cjs} +1 -1
  16. package/dist/{index-ZNc80Byz.js → index-BV5Q1DFQ.js} +6 -6
  17. package/dist/{index-BHALFIAj.cjs → index-BXtwWgd0.cjs} +1 -1
  18. package/dist/{index-DWKu5ewQ.js → index-BYZ5RpUQ.js} +7 -7
  19. package/dist/{index-CDfbK5K8.js → index-B__HhxN-.js} +4 -4
  20. package/dist/{index-BjeHRCnu.cjs → index-BbEzSHcm.cjs} +1 -1
  21. package/dist/{index-x0-dSMWC.cjs → index-BeIJG532.cjs} +1 -1
  22. package/dist/{index-BjjcgWSC.js → index-BfxABGYq.js} +11 -11
  23. package/dist/{index-CqqTKwBE.js → index-BkTS_fZm.js} +7 -7
  24. package/dist/{index-CpM4nUbj.js → index-BqRsXecW.js} +1 -1
  25. package/dist/{index-DAV9fTlV.cjs → index-Bqb9tYm8.cjs} +1 -1
  26. package/dist/{index-XMu4iGg8.cjs → index-C4ywU8U7.cjs} +1 -1
  27. package/dist/{index-CN-hqH2f.js → index-CNsGu3TP.js} +7 -7
  28. package/dist/{index-ChKtY20g.cjs → index-CQMEqu73.cjs} +1 -1
  29. package/dist/{index-Dmx3TmuC.cjs → index-CTMcMLEZ.cjs} +1 -1
  30. package/dist/{index-B3owqjNU.js → index-CY3mio5P.js} +12 -12
  31. package/dist/{index-DTW-ZmbW.js → index-Cyo3QMD9.js} +6 -6
  32. package/dist/{index-CVn4P4D_.cjs → index-D9hpN7fS.cjs} +2 -2
  33. package/dist/{index-C5bM0MD4.js → index-DUYaqiLC.js} +7 -7
  34. package/dist/{index-y65W5X_5.cjs → index-D_5b6Rl3.cjs} +1 -1
  35. package/dist/{index-TbTFAuZP.js → index-Df-Uum0o.js} +1 -1
  36. package/dist/{index-CwABN4Ki.cjs → index-DmVREnhW.cjs} +1 -1
  37. package/dist/{index-DUiwTLCd.cjs → index-Dq_7Nl7P.cjs} +1 -1
  38. package/dist/{index-F8lU1t0T.cjs → index-HS7fFAA_.cjs} +1 -1
  39. package/dist/{index-CtEpUxGy.cjs → index-PC7Ff99T.cjs} +1 -1
  40. package/dist/{index-B7lGrZJU.cjs → index-TqLK91nN.cjs} +1 -1
  41. package/dist/{index-C4mBcFf8.cjs → index-_pDIr0i6.cjs} +1 -1
  42. package/dist/{index-CkfGqD0t.cjs → index-aojSYYBv.cjs} +1 -1
  43. package/dist/{index-CMtHSHy1.js → index-asD1jELJ.js} +1 -1
  44. package/dist/{index-_PENA18R.js → index-ll1liVTf.js} +7 -7
  45. package/dist/{index-B63gtCe6.js → index-mZHi59nQ.js} +6 -6
  46. package/dist/{index-CbLn4-43.js → index-ueCV-o5_.js} +6 -6
  47. package/dist/{index.vue_vue_type_script_setup_true_lang-DngydjTF.cjs → index.vue_vue_type_script_setup_true_lang-C-GBj-OX.cjs} +1 -1
  48. package/dist/{index.vue_vue_type_script_setup_true_lang-B8sUYDxA.js → index.vue_vue_type_script_setup_true_lang-CaQOKkyM.js} +6 -6
  49. package/dist/{index.vue_vue_type_style_index_0_scoped_baf99455_lang-DysL00xa.cjs → index.vue_vue_type_style_index_0_scoped_baf99455_lang-BRy7BctN.cjs} +1 -1
  50. package/dist/{index.vue_vue_type_style_index_0_scoped_baf99455_lang-BLYX0foP.js → index.vue_vue_type_style_index_0_scoped_baf99455_lang-CnWgwHrg.js} +6 -6
  51. package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DJnwEx8u.cjs → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-B76i1aDc.cjs} +1 -1
  52. package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Dja-1mQf.js → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DtcTZ1Rx.js} +6 -6
  53. package/dist/{login-Cq_WM_xR.cjs → login-DjiB4X88.cjs} +1 -1
  54. package/dist/{login-DHC6ZGxM.js → login-dBg958Ox.js} +3 -3
  55. package/dist/{main-COHAHGgw.cjs → main-47BXrV3C.cjs} +1 -1
  56. package/dist/{main-D8SE_Pol.js → main-CUxRur_t.js} +6 -6
  57. package/dist/{menu-DN0kzBjU.js → menu-B1BAmj_c.js} +1 -1
  58. package/dist/{menu-BIsLvz0M.cjs → menu-Clp-LaI-.cjs} +1 -1
  59. package/dist/{modelComp-CLjPjY-k.js → modelComp-BJZLy5jL.js} +1 -1
  60. package/dist/{modelComp-h267nZ9S.cjs → modelComp-CQYpRLvU.cjs} +1 -1
  61. package/dist/{request-DiZL1i6U.cjs → request-CXfMIPUe.cjs} +1 -1
  62. package/dist/{request-DwXLObe9.js → request-KJHC93px.js} +1 -1
  63. package/dist/ss-component.cjs +1 -1
  64. package/dist/ss-component.css +1 -1
  65. package/dist/ss-component.js +7 -7
  66. package/dist/ss-component2.cjs +1 -1
  67. package/dist/ss-component2.js +1 -1
  68. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { g as y } from "./index-CpM4nUbj.js";
2
- import { p } from "./request-DwXLObe9.js";
3
- import { u as D } from "./login-DHC6ZGxM.js";
4
- import { u as K, E as g } from "./menu-DN0kzBjU.js";
1
+ import { g as y } from "./index-BqRsXecW.js";
2
+ import { p } from "./request-KJHC93px.js";
3
+ import { u as D } from "./login-dBg958Ox.js";
4
+ import { u as K, E as g } from "./menu-B1BAmj_c.js";
5
5
  const I = K(p), l = D(p), h = () => {
6
6
  const S = y({
7
7
  key: {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const or=require("vue"),Iw=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ki=require("./cloneDeep-rFPIpnMR.cjs");/*! *****************************************************************************
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const or=require("vue"),Iw=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ki=require("./cloneDeep-D1tphovN.cjs");/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("vue"),ae=require("./index-y65W5X_5.cjs"),Y=require("./menu-BIsLvz0M.cjs"),$t=require("./index-CkfGqD0t.cjs"),re=require("./crypto-CRbcEKIz.cjs"),Kt=require("./login-Cq_WM_xR.cjs"),l=require("./index-DUiwTLCd.cjs"),Ut=require("./typescript-PERVJsDy.cjs"),F=require("./cloneDeep-rFPIpnMR.cjs"),gt=require("./isNil-x28vo2CT.cjs");function Wt(e){return e}function Yt(e,n,o){switch(o.length){case 0:return e.call(n);case 1:return e.call(n,o[0]);case 2:return e.call(n,o[0],o[1]);case 3:return e.call(n,o[0],o[1],o[2])}return e.apply(n,o)}var qt=800,jt=16,Gt=Date.now;function Xt(e){var n=0,o=0;return function(){var r=Gt(),a=jt-(r-o);if(o=r,a>0){if(++n>=qt)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}function Jt(e){return function(){return e}}var Zt=F.defineProperty?function(e,n){return F.defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:Jt(n),writable:!0})}:Wt,Qt=Xt(Zt),Ze=Math.max;function en(e,n,o){return n=Ze(n===void 0?e.length-1:n,0),function(){for(var r=arguments,a=-1,s=Ze(r.length-n,0),i=Array(s);++a<s;)i[a]=r[n+a];a=-1;for(var u=Array(n+1);++a<n;)u[a]=r[a];return u[n]=o(i),Yt(e,this,u)}}var Qe=l.Symbol?l.Symbol.isConcatSpreadable:void 0;function tn(e){return l.isArray(e)||F.isArguments(e)||!!(Qe&&e&&e[Qe])}function nn(e,n,o,r,a){var s=-1,i=e.length;for(o||(o=tn),a||(a=[]);++s<i;){var u=e[s];o(u)?F.arrayPush(a,u):a[a.length]=u}return a}function on(e){var n=e==null?0:e.length;return n?nn(e):[]}function rn(e){return Qt(en(e,void 0,on),e+"")}function an(e,n){return e!=null&&n in Object(e)}function sn(e,n,o){n=l.castPath(n,e);for(var r=-1,a=n.length,s=!1;++r<a;){var i=l.toKey(n[r]);if(!(s=e!=null&&o(e,i)))break;e=e[i]}return s||++r!=a?s:(a=e==null?0:e.length,!!a&&F.isLength(a)&&F.isIndex(i,a)&&(l.isArray(e)||F.isArguments(e)))}function ln(e,n){return e!=null&&sn(e,n,an)}function un(e,n,o,r){if(!l.isObject(e))return e;n=l.castPath(n,e);for(var a=-1,s=n.length,i=s-1,u=e;u!=null&&++a<s;){var f=l.toKey(n[a]),d=o;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(a!=i){var h=u[f];d=void 0,d===void 0&&(d=l.isObject(h)?h:F.isIndex(n[a+1])?[]:{})}F.assignValue(u,f,d),u=u[f]}return e}function cn(e,n,o){for(var r=-1,a=n.length,s={};++r<a;){var i=n[r],u=l.baseGet(e,i);o(u,i)&&un(s,l.castPath(i,e),u)}return s}function dn(e,n){return cn(e,n,function(o,r){return ln(e,r)})}var fn=rn(function(e,n){return e==null?{}:dn(e,n)});const xe="update:modelValue",et="change",tt="input";let ue;const pn=e=>{var n;if(!l.isClient)return 0;if(ue!==void 0)return ue;const o=document.createElement("div");o.className=`${e}-scrollbar__wrap`,o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const r=o.offsetWidth;o.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",o.appendChild(a);const s=a.offsetWidth;return(n=o.parentNode)==null||n.removeChild(o),ue=r-s,ue},vn=()=>l.isClient&&/firefox/i.test(window.navigator.userAgent);let A;const mn={height:"0",visibility:"hidden",overflow:vn()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},hn=["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 gn(e){const n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing"),r=Number.parseFloat(n.getPropertyValue("padding-bottom"))+Number.parseFloat(n.getPropertyValue("padding-top")),a=Number.parseFloat(n.getPropertyValue("border-bottom-width"))+Number.parseFloat(n.getPropertyValue("border-top-width"));return{contextStyle:hn.map(i=>[i,n.getPropertyValue(i)]),paddingSize:r,borderSize:a,boxSizing:o}}function nt(e,n=1,o){var r;A||(A=document.createElement("textarea"),document.body.appendChild(A));const{paddingSize:a,borderSize:s,boxSizing:i,contextStyle:u}=gn(e);u.forEach(([m,C])=>A==null?void 0:A.style.setProperty(m,C)),Object.entries(mn).forEach(([m,C])=>A==null?void 0:A.style.setProperty(m,C,"important")),A.value=e.value||e.placeholder||"";let f=A.scrollHeight;const d={};i==="border-box"?f=f+s:i==="content-box"&&(f=f-a),A.value="";const h=A.scrollHeight-a;if(l.isNumber(n)){let m=h*n;i==="border-box"&&(m=m+a+s),f=Math.max(m,f),d.minHeight=`${m}px`}if(l.isNumber(o)){let m=h*o;i==="border-box"&&(m=m+a+s),f=Math.min(m,f)}return d.height=`${f}px`,(r=A.parentNode)==null||r.removeChild(A),A=void 0,d}const bn=l.buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),yn=e=>fn(bn,e),En=l.buildProps({id:{type:String,default:void 0},size:l.useSizeProp,disabled:Boolean,modelValue:{type:l.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:l.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:l.iconPropType},prefixIcon:{type:l.iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:l.definePropType([Object,Array,String]),default:()=>Ut.mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...yn(["ariaLabel"])}),Cn={[xe]:e=>l.isString(e),input:e=>l.isString(e),change:e=>l.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},wn=["class","style"],Sn=/^on[A-Z]/,kn=(e={})=>{const{excludeListeners:n=!1,excludeKeys:o}=e,r=t.computed(()=>((o==null?void 0:o.value)||[]).concat(wn)),a=t.getCurrentInstance();return a?t.computed(()=>{var s;return l.fromPairs(Object.entries((s=a.proxy)==null?void 0:s.$attrs).filter(([i])=>!r.value.includes(i)&&!(n&&Sn.test(i))))}):(l.debugWarn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),t.computed(()=>({})))},Ae={prefix:Math.floor(Math.random()*1e4),current:0},Tn=Symbol("elIdInjection"),Bn=()=>t.getCurrentInstance()?t.inject(Tn,Ae):Ae,Re=e=>{const n=Bn();!l.isClient&&n===Ae&&l.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 t=require("vue"),ae=require("./index-D_5b6Rl3.cjs"),Y=require("./menu-Clp-LaI-.cjs"),$t=require("./index-aojSYYBv.cjs"),re=require("./crypto-CRbcEKIz.cjs"),Kt=require("./login-DjiB4X88.cjs"),l=require("./index-Dq_7Nl7P.cjs"),Ut=require("./typescript-PERVJsDy.cjs"),F=require("./cloneDeep-D1tphovN.cjs"),gt=require("./isNil-x28vo2CT.cjs");function Wt(e){return e}function Yt(e,n,o){switch(o.length){case 0:return e.call(n);case 1:return e.call(n,o[0]);case 2:return e.call(n,o[0],o[1]);case 3:return e.call(n,o[0],o[1],o[2])}return e.apply(n,o)}var qt=800,jt=16,Gt=Date.now;function Xt(e){var n=0,o=0;return function(){var r=Gt(),a=jt-(r-o);if(o=r,a>0){if(++n>=qt)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}function Jt(e){return function(){return e}}var Zt=F.defineProperty?function(e,n){return F.defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:Jt(n),writable:!0})}:Wt,Qt=Xt(Zt),Ze=Math.max;function en(e,n,o){return n=Ze(n===void 0?e.length-1:n,0),function(){for(var r=arguments,a=-1,s=Ze(r.length-n,0),i=Array(s);++a<s;)i[a]=r[n+a];a=-1;for(var u=Array(n+1);++a<n;)u[a]=r[a];return u[n]=o(i),Yt(e,this,u)}}var Qe=l.Symbol?l.Symbol.isConcatSpreadable:void 0;function tn(e){return l.isArray(e)||F.isArguments(e)||!!(Qe&&e&&e[Qe])}function nn(e,n,o,r,a){var s=-1,i=e.length;for(o||(o=tn),a||(a=[]);++s<i;){var u=e[s];o(u)?F.arrayPush(a,u):a[a.length]=u}return a}function on(e){var n=e==null?0:e.length;return n?nn(e):[]}function rn(e){return Qt(en(e,void 0,on),e+"")}function an(e,n){return e!=null&&n in Object(e)}function sn(e,n,o){n=l.castPath(n,e);for(var r=-1,a=n.length,s=!1;++r<a;){var i=l.toKey(n[r]);if(!(s=e!=null&&o(e,i)))break;e=e[i]}return s||++r!=a?s:(a=e==null?0:e.length,!!a&&F.isLength(a)&&F.isIndex(i,a)&&(l.isArray(e)||F.isArguments(e)))}function ln(e,n){return e!=null&&sn(e,n,an)}function un(e,n,o,r){if(!l.isObject(e))return e;n=l.castPath(n,e);for(var a=-1,s=n.length,i=s-1,u=e;u!=null&&++a<s;){var f=l.toKey(n[a]),d=o;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(a!=i){var h=u[f];d=void 0,d===void 0&&(d=l.isObject(h)?h:F.isIndex(n[a+1])?[]:{})}F.assignValue(u,f,d),u=u[f]}return e}function cn(e,n,o){for(var r=-1,a=n.length,s={};++r<a;){var i=n[r],u=l.baseGet(e,i);o(u,i)&&un(s,l.castPath(i,e),u)}return s}function dn(e,n){return cn(e,n,function(o,r){return ln(e,r)})}var fn=rn(function(e,n){return e==null?{}:dn(e,n)});const xe="update:modelValue",et="change",tt="input";let ue;const pn=e=>{var n;if(!l.isClient)return 0;if(ue!==void 0)return ue;const o=document.createElement("div");o.className=`${e}-scrollbar__wrap`,o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const r=o.offsetWidth;o.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",o.appendChild(a);const s=a.offsetWidth;return(n=o.parentNode)==null||n.removeChild(o),ue=r-s,ue},vn=()=>l.isClient&&/firefox/i.test(window.navigator.userAgent);let A;const mn={height:"0",visibility:"hidden",overflow:vn()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},hn=["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 gn(e){const n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing"),r=Number.parseFloat(n.getPropertyValue("padding-bottom"))+Number.parseFloat(n.getPropertyValue("padding-top")),a=Number.parseFloat(n.getPropertyValue("border-bottom-width"))+Number.parseFloat(n.getPropertyValue("border-top-width"));return{contextStyle:hn.map(i=>[i,n.getPropertyValue(i)]),paddingSize:r,borderSize:a,boxSizing:o}}function nt(e,n=1,o){var r;A||(A=document.createElement("textarea"),document.body.appendChild(A));const{paddingSize:a,borderSize:s,boxSizing:i,contextStyle:u}=gn(e);u.forEach(([m,C])=>A==null?void 0:A.style.setProperty(m,C)),Object.entries(mn).forEach(([m,C])=>A==null?void 0:A.style.setProperty(m,C,"important")),A.value=e.value||e.placeholder||"";let f=A.scrollHeight;const d={};i==="border-box"?f=f+s:i==="content-box"&&(f=f-a),A.value="";const h=A.scrollHeight-a;if(l.isNumber(n)){let m=h*n;i==="border-box"&&(m=m+a+s),f=Math.max(m,f),d.minHeight=`${m}px`}if(l.isNumber(o)){let m=h*o;i==="border-box"&&(m=m+a+s),f=Math.min(m,f)}return d.height=`${f}px`,(r=A.parentNode)==null||r.removeChild(A),A=void 0,d}const bn=l.buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),yn=e=>fn(bn,e),En=l.buildProps({id:{type:String,default:void 0},size:l.useSizeProp,disabled:Boolean,modelValue:{type:l.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:l.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:l.iconPropType},prefixIcon:{type:l.iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:l.definePropType([Object,Array,String]),default:()=>Ut.mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...yn(["ariaLabel"])}),Cn={[xe]:e=>l.isString(e),input:e=>l.isString(e),change:e=>l.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},wn=["class","style"],Sn=/^on[A-Z]/,kn=(e={})=>{const{excludeListeners:n=!1,excludeKeys:o}=e,r=t.computed(()=>((o==null?void 0:o.value)||[]).concat(wn)),a=t.getCurrentInstance();return a?t.computed(()=>{var s;return l.fromPairs(Object.entries((s=a.proxy)==null?void 0:s.$attrs).filter(([i])=>!r.value.includes(i)&&!(n&&Sn.test(i))))}):(l.debugWarn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),t.computed(()=>({})))},Ae={prefix:Math.floor(Math.random()*1e4),current:0},Tn=Symbol("elIdInjection"),Bn=()=>t.getCurrentInstance()?t.inject(Tn,Ae):Ae,Re=e=>{const n=Bn();!l.isClient&&n===Ae&&l.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,
@@ -1,13 +1,13 @@
1
1
  import { ref as nt, watch as vi, nextTick as Xl, resolveComponent as Yo, createBlock as ma, openBlock as Ht, withCtx as en, createElementVNode as qt, renderSlot as La, onMounted as _a, createElementBlock as pn, createCommentVNode as jo, Fragment as Ko, renderList as Zo, normalizeStyle as $o, toDisplayString as Ts, createVNode as Rn, unref as ql, onBeforeUnmount as Yl, createSlots as jl } from "vue";
2
- import { p as Xs } from "./request-DwXLObe9.js";
3
- import { u as Kl } from "./modelComp-CLjPjY-k.js";
4
- import { a2 as Zl } from "./index-C5bM0MD4.js";
5
- import { a as Jo, s as $l, b as Ua } from "./index-COieDyQi.js";
6
- import { c as ut } from "./cloneDeep-CdCWpcPD.js";
2
+ import { p as Xs } from "./request-KJHC93px.js";
3
+ import { u as Kl } from "./modelComp-BJZLy5jL.js";
4
+ import { a2 as Zl } from "./index-DUYaqiLC.js";
5
+ import { a as Jo, s as $l, b as Ua } from "./index-BG7Ilk4d.js";
6
+ import { c as ut } from "./cloneDeep-B0pX5whW.js";
7
7
  import { _ as ga } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- import { u as Jl } from "./formToTable-w5WNkThh.js";
9
- import { d as Ql, u as ec, s as Zi } from "./menu-DN0kzBjU.js";
10
- import { g as qs, u as Qo, d as tc, c as nc } from "./index-CpM4nUbj.js";
8
+ import { u as Jl } from "./formToTable-qB2ZiY4M.js";
9
+ import { d as Ql, u as ec, s as Zi } from "./menu-B1BAmj_c.js";
10
+ import { g as qs, u as Qo, d as tc, c as nc } from "./index-BqRsXecW.js";
11
11
  const ic = {
12
12
  __name: "index",
13
13
  props: {
@@ -21046,7 +21046,7 @@ const Jm = { class: "content-show" }, Qm = {
21046
21046
  const m = new kh(16777215, 0.8);
21047
21047
  m.position.set(1, 1, 1), n.add(m), c("model"), h();
21048
21048
  }, c = (f) => {
21049
- console.log(232, 111), new Fm().load(
21049
+ new Fm().load(
21050
21050
  new URL("/obj/" + f + ".mtl", import.meta.url).href,
21051
21051
  // '/obj/' + modelContent + '.mtl', // 替换为你的MTL文件路径
21052
21052
  (_) => {
@@ -21056,7 +21056,7 @@ const Jm = { class: "content-show" }, Qm = {
21056
21056
  new URL("/obj/" + f + ".obj", import.meta.url).href,
21057
21057
  // '/obj/' + modelContent + '.obj', // 替换为你的OBJ文件路径
21058
21058
  (p) => {
21059
- o = p, o.rotation.set(50, -20, 200), n.add(o), console.log(2321, o);
21059
+ o = p, o.rotation.set(50, -20, 200), n.add(o);
21060
21060
  const d = new Ti().setFromObject(o), b = d.getSize(new N()).length(), T = d.getCenter(new N());
21061
21061
  s.position.copy(T), s.position.z += b * 0.6, s.lookAt(T), a.target.copy(T);
21062
21062
  },
@@ -21100,7 +21100,7 @@ const Jm = { class: "content-show" }, Qm = {
21100
21100
  }, null, 512)
21101
21101
  ]));
21102
21102
  }
21103
- }, e_ = /* @__PURE__ */ ga(Qm, [["__scopeId", "data-v-3dbeff0a"]]), t_ = Ql("unit", {
21103
+ }, e_ = /* @__PURE__ */ ga(Qm, [["__scopeId", "data-v-76c55260"]]), t_ = Ql("unit", {
21104
21104
  state: () => ({
21105
21105
  selectIndex: "",
21106
21106
  selectMenu: "",
@@ -1,14 +1,14 @@
1
1
  import { createElementBlock as z, openBlock as L, createElementVNode as B, renderSlot as k, defineComponent as G, ref as K, resolveComponent as x, createVNode as n, withCtx as i, reactive as T, watch as b, unref as M, toDisplayString as l, createTextVNode as H } from "vue";
2
2
  import { _ as m } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { u as $, l as AA } from "./index-C5bM0MD4.js";
3
+ import { u as $, l as AA } from "./index-DUYaqiLC.js";
4
4
  import { useRouter as EA } from "vue-router";
5
- import { u as IA } from "./login-DHC6ZGxM.js";
6
- import { g as h } from "./index-CpM4nUbj.js";
7
- import { p as gA } from "./request-DwXLObe9.js";
8
- import { v as CA } from "./index-CDfbK5K8.js";
5
+ import { u as IA } from "./login-dBg958Ox.js";
6
+ import { g as h } from "./index-BqRsXecW.js";
7
+ import { p as gA } from "./request-KJHC93px.js";
8
+ import { v as CA } from "./index-B__HhxN-.js";
9
9
  import { d as BA } from "./crypto-BRyGpjGR.js";
10
- import "./index-CbLn4-43.js";
11
- import { E as j } from "./menu-DN0kzBjU.js";
10
+ import "./index-ueCV-o5_.js";
11
+ import { E as j } from "./menu-B1BAmj_c.js";
12
12
  const QA = {}, iA = { class: "header-wrapper" }, oA = { class: "header-horizontal" }, RA = { class: "header-logo" }, nA = { class: "header-cTitle" }, eA = { class: "header-horizontal" }, cA = { class: "header-eTitle" };
13
13
  function JA(F, r) {
14
14
  return L(), z("div", iA, [
@@ -1,4 +1,4 @@
1
- import { s as a } from "./request-DwXLObe9.js";
1
+ import { s as a } from "./request-KJHC93px.js";
2
2
  function o(t) {
3
3
  return a({
4
4
  url: "/api/insofData/add",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),q=require("./index-BHALFIAj.cjs"),y=require("./index-CVn4P4D_.cjs"),m=require("./index-x0-dSMWC.cjs"),r=require("./menu-BIsLvz0M.cjs"),x=require("./modelComp-h267nZ9S.cjs"),P=require("vue-router"),S=require("./cloneDeep-rFPIpnMR.cjs"),k=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),M={class:"role-wrapper"},N=n.defineComponent({__name:"index",setup(w){const g=r.useMenuState(),{activeMenuPath:h}=r.storeToRefs(g),s=x.useModelComp(),{itemData:D}=r.storeToRefs(s),_=P.useRoute(),e=n.reactive({...m.State});return n.onMounted(()=>{m.getModelSecretAsync();const c=S.cloneDeep(D.value),l={comp:"Group",name:_.path,compData:e.pageData};if(s.setItemData([...c,l]),h.value){e.refreshUserTableData();const C=e.getPageDataAsync("/role"),f=e.getPageDataAsync("/dept");Promise.all([C,f]).then(o=>{var u,i,p;const v=(u=o==null?void 0:o[0])==null?void 0:u.map(t=>({label:t.roleName,value:t.roleName})),b=(i=o==null?void 0:o[1])==null?void 0:i.map(t=>({label:t.deptName,value:t.deptName}));e.pageData=(p=e.pageData)==null?void 0:p.map(t=>{var d;return t.key==="header"?{...t,contents:(d=t.contents)==null?void 0:d.map(a=>a.label==="所属机构"?{...a,options:b}:a.label==="角色"?{...a,options:v}:a)}:t})})}}),(c,l)=>(n.openBlock(),n.createElementBlock("div",M,[n.createVNode(q.ssForm,{class:"role-header",rowContents:e.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:e.handleQueryChange},null,8,["rowContents","onChange"]),n.createVNode(y.ssTable,{class:"role-body",itemData:e.pageData,changedContent:e.changedRow,onChange:e.handleItemDataChange,onOnButtonClick:e.clickRowButton},null,8,["itemData","changedContent","onChange","onOnButtonClick"])]))}}),R=k._export_sfc(N,[["__scopeId","data-v-81d36540"]]);exports.default=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),q=require("./index-BXtwWgd0.cjs"),y=require("./index-D9hpN7fS.cjs"),m=require("./index-BeIJG532.cjs"),r=require("./menu-Clp-LaI-.cjs"),x=require("./modelComp-CQYpRLvU.cjs"),P=require("vue-router"),S=require("./cloneDeep-D1tphovN.cjs"),k=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),M={class:"role-wrapper"},N=n.defineComponent({__name:"index",setup(w){const g=r.useMenuState(),{activeMenuPath:h}=r.storeToRefs(g),s=x.useModelComp(),{itemData:D}=r.storeToRefs(s),_=P.useRoute(),e=n.reactive({...m.State});return n.onMounted(()=>{m.getModelSecretAsync();const c=S.cloneDeep(D.value),l={comp:"Group",name:_.path,compData:e.pageData};if(s.setItemData([...c,l]),h.value){e.refreshUserTableData();const C=e.getPageDataAsync("/role"),f=e.getPageDataAsync("/dept");Promise.all([C,f]).then(o=>{var u,i,p;const v=(u=o==null?void 0:o[0])==null?void 0:u.map(t=>({label:t.roleName,value:t.roleName})),b=(i=o==null?void 0:o[1])==null?void 0:i.map(t=>({label:t.deptName,value:t.deptName}));e.pageData=(p=e.pageData)==null?void 0:p.map(t=>{var d;return t.key==="header"?{...t,contents:(d=t.contents)==null?void 0:d.map(a=>a.label==="所属机构"?{...a,options:b}:a.label==="角色"?{...a,options:v}:a)}:t})})}}),(c,l)=>(n.openBlock(),n.createElementBlock("div",M,[n.createVNode(q.ssForm,{class:"role-header",rowContents:e.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:e.handleQueryChange},null,8,["rowContents","onChange"]),n.createVNode(y.ssTable,{class:"role-body",itemData:e.pageData,changedContent:e.changedRow,onChange:e.handleItemDataChange,onOnButtonClick:e.clickRowButton},null,8,["itemData","changedContent","onChange","onOnButtonClick"])]))}}),R=k._export_sfc(N,[["__scopeId","data-v-81d36540"]]);exports.default=R;
@@ -1 +1 @@
1
- "use strict";const y=require("./index-y65W5X_5.cjs"),S=require("./request-DiZL1i6U.cjs"),D=require("./login-Cq_WM_xR.cjs"),a=require("./menu-BIsLvz0M.cjs"),q=a.useMenuState(S.pinia),m=D.useLoginState(S.pinia),I=()=>{const d=y.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),p=y.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});Promise.all([d,p]).then(t=>{var r,o,u,n,i,c,g,l;const e=t==null?void 0:t[0],s=t==null?void 0:t[1];if(e.data.code===200){const f=(g=(c=(i=(n=(u=(o=(r=e==null?void 0:e.data)==null?void 0:r.result)==null?void 0:o[0])==null?void 0:u.value)==null?void 0:n.pageData)==null?void 0:i.compData)==null?void 0:c[0])==null?void 0:g.contents;q.setRawMenus(f??[])}else a.ElMessage.error("获取模型菜单响应失败");s.data.code===200?s.data.result&&((l=s.data.result)==null?void 0:l.length)>0&&(m.setStructureData(s.data.result),m.setIsStructureExist(!0)):a.ElMessage.error("获取模型结构响应失败")})};exports.verifyStructureDataToStore=I;
1
+ "use strict";const y=require("./index-D_5b6Rl3.cjs"),S=require("./request-CXfMIPUe.cjs"),D=require("./login-DjiB4X88.cjs"),a=require("./menu-Clp-LaI-.cjs"),q=a.useMenuState(S.pinia),m=D.useLoginState(S.pinia),I=()=>{const d=y.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),p=y.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});Promise.all([d,p]).then(t=>{var r,o,u,n,i,c,g,l;const e=t==null?void 0:t[0],s=t==null?void 0:t[1];if(e.data.code===200){const f=(g=(c=(i=(n=(u=(o=(r=e==null?void 0:e.data)==null?void 0:r.result)==null?void 0:o[0])==null?void 0:u.value)==null?void 0:n.pageData)==null?void 0:i.compData)==null?void 0:c[0])==null?void 0:g.contents;q.setRawMenus(f??[])}else a.ElMessage.error("获取模型菜单响应失败");s.data.code===200?s.data.result&&((l=s.data.result)==null?void 0:l.length)>0&&(m.setStructureData(s.data.result),m.setIsStructureExist(!0)):a.ElMessage.error("获取模型结构响应失败")})};exports.verifyStructureDataToStore=I;
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as T, reactive as I, onMounted as R, watch as A, nextTick as M, resolveComponent as c, createElementBlock as C, openBlock as p, Fragment as D, createElementVNode as d, createVNode as s, withCtx as a, toDisplayString as h, renderList as N, createBlock as E, createTextVNode as g } from "vue";
2
- import { a as F } from "./index-COieDyQi.js";
3
- import { s as K } from "./index-BjjcgWSC.js";
4
- import { S as y } from "./index-DGOrNmDU.js";
5
- import { u as P, s as b } from "./menu-DN0kzBjU.js";
6
- import { u as U } from "./modelComp-CLjPjY-k.js";
2
+ import { a as F } from "./index-BG7Ilk4d.js";
3
+ import { s as K } from "./index-BfxABGYq.js";
4
+ import { S as y } from "./index--sfGIlXS.js";
5
+ import { u as P, s as b } from "./menu-B1BAmj_c.js";
6
+ import { u as U } from "./modelComp-BJZLy5jL.js";
7
7
  import { useRoute as O } from "vue-router";
8
- import { g as q } from "./index-CpM4nUbj.js";
9
- import { c as x } from "./cloneDeep-CdCWpcPD.js";
8
+ import { g as q } from "./index-BqRsXecW.js";
9
+ import { c as x } from "./cloneDeep-B0pX5whW.js";
10
10
  import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  const L = { class: "role-wrapper" }, Q = { class: "role-dialog-header" }, W = { class: "node-text" }, j = { class: "dialog-footer" }, H = /* @__PURE__ */ T({
12
12
  __name: "index",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./menu-BIsLvz0M.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S=e.defineComponent({__name:"menuItem",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu"],setup(u,{emit:i}){const l=i,c=n=>{l("clickMenu",n)},a=n=>{l("openMenu",n)},r=n=>{l("closeMenu",n)};return e.onMounted(()=>{}),(n,h)=>{const p=e.resolveComponent("MenuItem",!0),d=e.resolveComponent("el-sub-menu"),m=e.resolveComponent("el-menu-item");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.menuList,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show&&t.children&&t.children.length>0?(e.openBlock(),e.createBlock(d,{index:t.path,key:t.path},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),default:e.withCtx(()=>[e.createVNode(p,{menuList:t.children,onClickMenu:c,onOpenMenu:a,onCloseMenu:r},e.createSlots({_:2},[e.renderList(n.$slots,(k,s)=>({name:s,fn:e.withCtx(_=>[e.renderSlot(n.$slots,s,e.mergeProps({ref_for:!0},_))])}))]),1032,["menuList"])]),_:2},1032,["index"])):t.show?(e.openBlock(),e.createBlock(m,{index:t.path,key:t.path,onClick:k=>c(t)},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256)}}}),w=e.defineComponent({__name:"index",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu","changeMenuStyle"],setup(u,{emit:i}){const l=f.useMenuState(),{activeMenuPath:c,activeMenuOpenPaths:a}=f.storeToRefs(l),r=i,n=t=>{r("clickMenu",t)},h=t=>{r("openMenu",t)},p=t=>{r("closeMenu",t)},d=e.computed(()=>c.value),m=e.computed(()=>a.value);return(t,k)=>{const s=e.resolveComponent("el-sub-menu"),_=e.resolveComponent("el-menu-item"),C=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(C,{class:"menu-wrap","default-active":d.value,"default-openeds":m.value,"unique-opened":!0,"collapse-transition":!1,"popper-offset":12,onOpen:h,onClose:p},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.menuList,o=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.show&&o.children&&o.children.length>0?(e.openBlock(),e.createBlock(s,{index:o.path,key:o.path},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(S,{menuList:o.children,onClickMenu:n},e.createSlots({_:2},[e.renderList(t.$slots,(v,M)=>({name:M,fn:e.withCtx(B=>[e.renderSlot(t.$slots,M,e.mergeProps({ref_for:!0},B),void 0,!0)])}))]),1032,["menuList"])]),_:2},1032,["index"])):o.show?(e.openBlock(),e.createBlock(_,{index:o.path,key:o.path,onClick:v=>n(o)},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256))]),_:3},8,["default-active","default-openeds"])}}}),g=x._export_sfc(w,[["__scopeId","data-v-0fa7eb72"]]);exports.default=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./menu-Clp-LaI-.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S=e.defineComponent({__name:"menuItem",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu"],setup(u,{emit:i}){const l=i,c=n=>{l("clickMenu",n)},a=n=>{l("openMenu",n)},r=n=>{l("closeMenu",n)};return e.onMounted(()=>{}),(n,h)=>{const p=e.resolveComponent("MenuItem",!0),d=e.resolveComponent("el-sub-menu"),m=e.resolveComponent("el-menu-item");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.menuList,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show&&t.children&&t.children.length>0?(e.openBlock(),e.createBlock(d,{index:t.path,key:t.path},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),default:e.withCtx(()=>[e.createVNode(p,{menuList:t.children,onClickMenu:c,onOpenMenu:a,onCloseMenu:r},e.createSlots({_:2},[e.renderList(n.$slots,(k,s)=>({name:s,fn:e.withCtx(_=>[e.renderSlot(n.$slots,s,e.mergeProps({ref_for:!0},_))])}))]),1032,["menuList"])]),_:2},1032,["index"])):t.show?(e.openBlock(),e.createBlock(m,{index:t.path,key:t.path,onClick:k=>c(t)},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256)}}}),w=e.defineComponent({__name:"index",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu","changeMenuStyle"],setup(u,{emit:i}){const l=f.useMenuState(),{activeMenuPath:c,activeMenuOpenPaths:a}=f.storeToRefs(l),r=i,n=t=>{r("clickMenu",t)},h=t=>{r("openMenu",t)},p=t=>{r("closeMenu",t)},d=e.computed(()=>c.value),m=e.computed(()=>a.value);return(t,k)=>{const s=e.resolveComponent("el-sub-menu"),_=e.resolveComponent("el-menu-item"),C=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(C,{class:"menu-wrap","default-active":d.value,"default-openeds":m.value,"unique-opened":!0,"collapse-transition":!1,"popper-offset":12,onOpen:h,onClose:p},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.menuList,o=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.show&&o.children&&o.children.length>0?(e.openBlock(),e.createBlock(s,{index:o.path,key:o.path},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(S,{menuList:o.children,onClickMenu:n},e.createSlots({_:2},[e.renderList(t.$slots,(v,M)=>({name:M,fn:e.withCtx(B=>[e.renderSlot(t.$slots,M,e.mergeProps({ref_for:!0},B),void 0,!0)])}))]),1032,["menuList"])]),_:2},1032,["index"])):o.show?(e.openBlock(),e.createBlock(_,{index:o.path,key:o.path,onClick:v=>n(o)},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256))]),_:3},8,["default-active","default-openeds"])}}}),g=x._export_sfc(w,[["__scopeId","data-v-0fa7eb72"]]);exports.default=g;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index.vue_vue_type_script_setup_true_lang-DngydjTF.cjs"),s=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),l=e.ref(""),c=e.ref([]),i=e.ref([{label:"",name:"",type:"Input",value:"",id:0,width:1,isFormColHidden:!1}]),d=()=>{},u=Object.freeze(Object.defineProperty({__proto__:null,avatarUrl:l,clickFormButton:d,pageData:c,rowContents:i},Symbol.toStringTag,{value:"Module"})),_={class:"personal-wrapper"},p={span:8,class:"personal-box left"},v={class:"base-avatar"},m={class:"center-avatar"},b={class:"base-info"},f=e.defineComponent({__name:"index",setup(E){const t=e.reactive({...u}),r=a=>{t.avatarUrl=a,console.log(1231,t.avatarUrl)};return e.onMounted(()=>{console.log(1233,t.avatarUrl)}),(a,o)=>(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("div",p,[e.createElementVNode("div",v,[e.createElementVNode("div",m,[e.createVNode(n._sfc_main,{avatarUrl:t.avatarUrl,onSubmitImage:r},null,8,["avatarUrl"])])]),e.createElementVNode("div",b,[e.createVNode(n.ssForm,{rowContents:t.rowContents,isEnableWrap:!1,onChange:t.clickFormButton,isEdit:!0},null,8,["rowContents","onChange"])]),o[0]||(o[0]=e.createElementVNode("div",{class:"base-signature"},null,-1))]),o[1]||(o[1]=e.createElementVNode("div",{span:16,class:"personal-box right"},null,-1))]))}}),g=s._export_sfc(f,[["__scopeId","data-v-b5688086"]]);exports.default=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index.vue_vue_type_script_setup_true_lang-C-GBj-OX.cjs"),s=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),l=e.ref(""),c=e.ref([]),i=e.ref([{label:"",name:"",type:"Input",value:"",id:0,width:1,isFormColHidden:!1}]),d=()=>{},u=Object.freeze(Object.defineProperty({__proto__:null,avatarUrl:l,clickFormButton:d,pageData:c,rowContents:i},Symbol.toStringTag,{value:"Module"})),_={class:"personal-wrapper"},p={span:8,class:"personal-box left"},v={class:"base-avatar"},m={class:"center-avatar"},b={class:"base-info"},f=e.defineComponent({__name:"index",setup(E){const t=e.reactive({...u}),r=a=>{t.avatarUrl=a,console.log(1231,t.avatarUrl)};return e.onMounted(()=>{console.log(1233,t.avatarUrl)}),(a,o)=>(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("div",p,[e.createElementVNode("div",v,[e.createElementVNode("div",m,[e.createVNode(n._sfc_main,{avatarUrl:t.avatarUrl,onSubmitImage:r},null,8,["avatarUrl"])])]),e.createElementVNode("div",b,[e.createVNode(n.ssForm,{rowContents:t.rowContents,isEnableWrap:!1,onChange:t.clickFormButton,isEdit:!0},null,8,["rowContents","onChange"])]),o[0]||(o[0]=e.createElementVNode("div",{class:"base-signature"},null,-1))]),o[1]||(o[1]=e.createElementVNode("div",{span:16,class:"personal-box right"},null,-1))]))}}),g=s._export_sfc(f,[["__scopeId","data-v-b5688086"]]);exports.default=g;
@@ -1,17 +1,17 @@
1
1
  import { ref as C, onMounted as H, watch as T, createElementBlock as f, openBlock as d, Fragment as Q, renderList as X, createElementVNode as I, createCommentVNode as b, toDisplayString as K, resolveComponent as O, createVNode as x, withCtx as U, createBlock as P, unref as k, resolveDynamicComponent as ae } from "vue";
2
- import { m as te, a as se, b as ne } from "./index-DTW-ZmbW.js";
3
- import re from "./index-CbQgIZYr.js";
4
- import { p as N } from "./request-DwXLObe9.js";
5
- import { u as Y } from "./modelComp-CLjPjY-k.js";
6
- import { u as Z, s as M } from "./menu-DN0kzBjU.js";
7
- import { i as le, e as oe, b as G, c as ie, g as ue, a as de } from "./array-BXigaCVR.js";
8
- import { u as ce } from "./formToTable-w5WNkThh.js";
9
- import { s as me } from "./index.vue_vue_type_style_index_0_scoped_baf99455_lang-BLYX0foP.js";
2
+ import { m as te, a as se, b as ne } from "./index-Cyo3QMD9.js";
3
+ import re from "./index-AgObK4xj.js";
4
+ import { p as N } from "./request-KJHC93px.js";
5
+ import { u as Y } from "./modelComp-BJZLy5jL.js";
6
+ import { u as Z, s as M } from "./menu-B1BAmj_c.js";
7
+ import { i as le, e as oe, b as G, c as ie, g as ue, a as de } from "./array-qzs6_ib1.js";
8
+ import { u as ce } from "./formToTable-qB2ZiY4M.js";
9
+ import { s as me } from "./index.vue_vue_type_style_index_0_scoped_baf99455_lang-CnWgwHrg.js";
10
10
  import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- import { u as ge, g as J, f as ye, d as ve, a as fe, b as he } from "./index-BjjcgWSC.js";
12
- import { v as Ce } from "./index-CDfbK5K8.js";
13
- import { E as _e } from "./index-C5bM0MD4.js";
14
- import { c as L } from "./cloneDeep-CdCWpcPD.js";
11
+ import { u as ge, g as J, f as ye, d as ve, a as fe, b as he } from "./index-BfxABGYq.js";
12
+ import { v as Ce } from "./index-B__HhxN-.js";
13
+ import { E as _e } from "./index-DUYaqiLC.js";
14
+ import { c as L } from "./cloneDeep-B0pX5whW.js";
15
15
  const we = { class: "bread-content" }, ke = ["onClick"], pe = { key: 0 }, Se = {
16
16
  __name: "index",
17
17
  props: {
@@ -1,11 +1,11 @@
1
1
  import { createElementBlock as r, openBlock as n, Fragment as k, renderList as y, unref as F, createElementVNode as c, createBlock as h, resolveDynamicComponent as $, toDisplayString as C, ref as I, watch as L, resolveComponent as b, createVNode as R, withCtx as g, createCommentVNode as T } from "vue";
2
- import { s as U, g as M } from "./array-BXigaCVR.js";
3
- import { p as V } from "./request-DwXLObe9.js";
4
- import { a as j } from "./index-C5bM0MD4.js";
5
- import { u as w } from "./modelComp-CLjPjY-k.js";
6
- import { s as x } from "./menu-DN0kzBjU.js";
2
+ import { s as U, g as M } from "./array-qzs6_ib1.js";
3
+ import { p as V } from "./request-KJHC93px.js";
4
+ import { a as j } from "./index-DUYaqiLC.js";
5
+ import { u as w } from "./modelComp-BJZLy5jL.js";
6
+ import { s as x } from "./menu-B1BAmj_c.js";
7
7
  import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- import { c as v } from "./cloneDeep-CdCWpcPD.js";
8
+ import { c as v } from "./cloneDeep-B0pX5whW.js";
9
9
  const q = { class: "type-select" }, z = ["onClick"], A = { class: "list-icon" }, G = {
10
10
  __name: "index",
11
11
  setup(B) {
@@ -1,4 +1,4 @@
1
- "use strict";const J=require("vue"),Hs=require("./request-DiZL1i6U.cjs"),Dl=require("./modelComp-h267nZ9S.cjs"),Ll=require("./index-DUiwTLCd.cjs"),Ii=require("./index-BHALFIAj.cjs"),ut=require("./cloneDeep-rFPIpnMR.cjs"),ha=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ul=require("./formToTable-igsnYgcL.cjs"),li=require("./menu-BIsLvz0M.cjs"),kn=require("./index-y65W5X_5.cjs");var Yn=typeof document<"u"?document.currentScript:null;const Il={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:Number,default:200}},setup(i){const e=i,t=J.ref(null),n=J.ref(!1),s=J.ref(null);return J.watch(()=>e==null?void 0:e.isVisible,()=>{n.value=e==null?void 0:e.isVisible},{deep:!0,immediate:!0}),J.watch(()=>s.value,()=>{J.nextTick(()=>{var r,a;(a=(r=t.value)==null?void 0:r.updatePopper)==null||a.call(r)})},{deep:!0,immediate:!0}),(r,a)=>{const o=J.resolveComponent("el-popover");return J.openBlock(),J.createBlock(o,{visible:n.value,placement:"bottom",title:e==null?void 0:e.title,width:e==null?void 0:e.width,ref_key:"popOverRef",ref:t},{reference:J.withCtx(()=>[J.createElementVNode("div",null,[J.renderSlot(r.$slots,"reference",{ref_key:"referenceRef",ref:s})])]),default:J.withCtx(()=>[J.createElementVNode("div",null,[J.renderSlot(r.$slots,"content")])]),_:3},8,["visible","title","width"])}}},ui=J.ref(0),Cs=i=>(ui.value++,i==null?void 0:i.map(t=>Array.isArray(t)?Cs(t):{label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":(t==null?void 0:t.prop)??"a"+ui.value,width:(t==null?void 0:t.label)==="操作"?"160":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)??"center",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)??ui.value,type:(t==null?void 0:t.label)==="操作"?"operate":void 0,formType:(t==null?void 0:t.formType)??"",isHidden:t==null?void 0:t.isHidden,options:(t==null?void 0:t.options)??[],children:Cs(t.children)??void 0})),Nl=i=>{const e=[];function t(n){if(Array.isArray(n))for(const s of n)!s.children||s.children.length===0?e.push(s):t(s.children)}return t(i),e},ba=i=>ut.cloneDeep(i).map(t=>(Array.isArray(t)&&(t=t.map(n=>(Array.isArray(n)?n=Cs(n):(n={label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":(n==null?void 0:n.prop)??"a"+ui.value,width:(n==null?void 0:n.label)==="操作"?"160":n!=null&&n.width?parseInt(n.width):"",fixed:(n==null?void 0:n.fixed)??void 0,sortable:(n==null?void 0:n.sortable)??!1,align:(n==null?void 0:n.align)??"center",showOverflowTooltip:(n==null?void 0:n.showOverflowTooltip)??!0,isNotDrag:(n==null?void 0:n.isNotDrag)??!1,isEditCol:(n==null?void 0:n.isEditCol)??!1,isOperate:(n==null?void 0:n.isOperate)??!1,id:(n==null?void 0:n.id)??ui.value,type:(n==null?void 0:n.label)==="操作"?"operate":void 0,formType:(n==null?void 0:n.formType)??"",isHidden:n==null?void 0:n.isHidden,options:(n==null?void 0:n.options)??[],children:Cs(n.children)},ui.value++),n))),t)),Bo=i=>{function e(t,n=[]){if(!t||t.length===0)return[];let s=n;return t==null||t.forEach(r=>{var a;r!=null&&r.children&&((a=r.children)==null?void 0:a.length)>0?s=e(r==null?void 0:r.children,s):s.push(r)}),s}return e(i)},Fl={class:"extra-button-content"},Ol={key:0,class:"extra-header"},Bl=["onClick"],zl={class:"extra-button-filter"},kl={class:"form-content-value"},Hl={__name:"header",props:{buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(i,{emit:e}){const t=e,n=i,s=J.ref(!1),r=J.ref([]),a=J.ref([{label:"取消"},{label:"确认"}]),o=h=>{t("buttonClick",h)},l=h=>{var u,f;r.value=(f=(u=Bo(ut.cloneDeep(h)))==null?void 0:u.filter(m=>(m==null?void 0:m.label)!==""&&(m==null?void 0:m.label)!=="操作"))==null?void 0:f.map(m=>({label:(m==null?void 0:m.label)??"",value:"",name:(m==null?void 0:m.prop)??"",isFormColHidden:m==null?void 0:m.isTableColHidden}))},c=h=>{s.value=!1};return J.onMounted(()=>{l(n.columns)}),J.watch(()=>n.columns,()=>{l(n.columns)},{deep:!0,immediate:!0}),(h,u)=>{var m;const f=J.resolveComponent("el-tooltip");return J.openBlock(),J.createElementBlock("div",Fl,[n!=null&&n.buttons&&((m=n==null?void 0:n.buttons)==null?void 0:m.length)>0?(J.openBlock(),J.createElementBlock("div",Ol,[(J.openBlock(!0),J.createElementBlock(J.Fragment,null,J.renderList(n==null?void 0:n.buttons,(_,v)=>(J.openBlock(),J.createElementBlock("div",{class:"extra-contents",key:v},[J.createElementVNode("div",{class:"extra-content",style:J.normalizeStyle({background:(_==null?void 0:_.background)??"var(--ssComponent-primary-color)",color:"var(--system-bg)"}),onClick:p=>o(_==null?void 0:_.label)},J.toDisplayString(_==null?void 0:_.label),13,Bl)]))),128))])):J.createCommentVNode("",!0),J.createElementVNode("div",zl,[J.createVNode(Il,{title:"筛选数据",width:500,isVisible:s.value},{reference:J.withCtx(()=>[J.createVNode(f,{content:"筛选",placement:"top-start"},{default:J.withCtx(()=>[J.createElementVNode("div",{class:"button-style",onClick:u[0]||(u[0]=_=>s.value=!s.value)},[J.createVNode(J.unref(Ll.filter_default),{color:"var(--ssComponent-black)"})])]),_:1})]),content:J.withCtx(()=>[J.createElementVNode("div",kl,[(J.openBlock(),J.createBlock(Ii.ssForm,{rowContents:r.value,buttonValue:a.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:a.value,isStartJustify:!1,onOnButtonClick:c},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])])])}}},Vl=ha._export_sfc(Hl,[["__scopeId","data-v-3cf75373"]]);/**
1
+ "use strict";const J=require("vue"),Hs=require("./request-CXfMIPUe.cjs"),Dl=require("./modelComp-CQYpRLvU.cjs"),Ll=require("./index-Dq_7Nl7P.cjs"),Ii=require("./index-BXtwWgd0.cjs"),ut=require("./cloneDeep-D1tphovN.cjs"),ha=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ul=require("./formToTable-BpUV5w1H.cjs"),li=require("./menu-Clp-LaI-.cjs"),kn=require("./index-D_5b6Rl3.cjs");var Yn=typeof document<"u"?document.currentScript:null;const Il={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:Number,default:200}},setup(i){const e=i,t=J.ref(null),n=J.ref(!1),s=J.ref(null);return J.watch(()=>e==null?void 0:e.isVisible,()=>{n.value=e==null?void 0:e.isVisible},{deep:!0,immediate:!0}),J.watch(()=>s.value,()=>{J.nextTick(()=>{var r,a;(a=(r=t.value)==null?void 0:r.updatePopper)==null||a.call(r)})},{deep:!0,immediate:!0}),(r,a)=>{const o=J.resolveComponent("el-popover");return J.openBlock(),J.createBlock(o,{visible:n.value,placement:"bottom",title:e==null?void 0:e.title,width:e==null?void 0:e.width,ref_key:"popOverRef",ref:t},{reference:J.withCtx(()=>[J.createElementVNode("div",null,[J.renderSlot(r.$slots,"reference",{ref_key:"referenceRef",ref:s})])]),default:J.withCtx(()=>[J.createElementVNode("div",null,[J.renderSlot(r.$slots,"content")])]),_:3},8,["visible","title","width"])}}},ui=J.ref(0),Cs=i=>(ui.value++,i==null?void 0:i.map(t=>Array.isArray(t)?Cs(t):{label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":(t==null?void 0:t.prop)??"a"+ui.value,width:(t==null?void 0:t.label)==="操作"?"160":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)??"center",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)??ui.value,type:(t==null?void 0:t.label)==="操作"?"operate":void 0,formType:(t==null?void 0:t.formType)??"",isHidden:t==null?void 0:t.isHidden,options:(t==null?void 0:t.options)??[],children:Cs(t.children)??void 0})),Nl=i=>{const e=[];function t(n){if(Array.isArray(n))for(const s of n)!s.children||s.children.length===0?e.push(s):t(s.children)}return t(i),e},ba=i=>ut.cloneDeep(i).map(t=>(Array.isArray(t)&&(t=t.map(n=>(Array.isArray(n)?n=Cs(n):(n={label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":(n==null?void 0:n.prop)??"a"+ui.value,width:(n==null?void 0:n.label)==="操作"?"160":n!=null&&n.width?parseInt(n.width):"",fixed:(n==null?void 0:n.fixed)??void 0,sortable:(n==null?void 0:n.sortable)??!1,align:(n==null?void 0:n.align)??"center",showOverflowTooltip:(n==null?void 0:n.showOverflowTooltip)??!0,isNotDrag:(n==null?void 0:n.isNotDrag)??!1,isEditCol:(n==null?void 0:n.isEditCol)??!1,isOperate:(n==null?void 0:n.isOperate)??!1,id:(n==null?void 0:n.id)??ui.value,type:(n==null?void 0:n.label)==="操作"?"operate":void 0,formType:(n==null?void 0:n.formType)??"",isHidden:n==null?void 0:n.isHidden,options:(n==null?void 0:n.options)??[],children:Cs(n.children)},ui.value++),n))),t)),Bo=i=>{function e(t,n=[]){if(!t||t.length===0)return[];let s=n;return t==null||t.forEach(r=>{var a;r!=null&&r.children&&((a=r.children)==null?void 0:a.length)>0?s=e(r==null?void 0:r.children,s):s.push(r)}),s}return e(i)},Fl={class:"extra-button-content"},Ol={key:0,class:"extra-header"},Bl=["onClick"],zl={class:"extra-button-filter"},kl={class:"form-content-value"},Hl={__name:"header",props:{buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(i,{emit:e}){const t=e,n=i,s=J.ref(!1),r=J.ref([]),a=J.ref([{label:"取消"},{label:"确认"}]),o=h=>{t("buttonClick",h)},l=h=>{var u,f;r.value=(f=(u=Bo(ut.cloneDeep(h)))==null?void 0:u.filter(m=>(m==null?void 0:m.label)!==""&&(m==null?void 0:m.label)!=="操作"))==null?void 0:f.map(m=>({label:(m==null?void 0:m.label)??"",value:"",name:(m==null?void 0:m.prop)??"",isFormColHidden:m==null?void 0:m.isTableColHidden}))},c=h=>{s.value=!1};return J.onMounted(()=>{l(n.columns)}),J.watch(()=>n.columns,()=>{l(n.columns)},{deep:!0,immediate:!0}),(h,u)=>{var m;const f=J.resolveComponent("el-tooltip");return J.openBlock(),J.createElementBlock("div",Fl,[n!=null&&n.buttons&&((m=n==null?void 0:n.buttons)==null?void 0:m.length)>0?(J.openBlock(),J.createElementBlock("div",Ol,[(J.openBlock(!0),J.createElementBlock(J.Fragment,null,J.renderList(n==null?void 0:n.buttons,(_,v)=>(J.openBlock(),J.createElementBlock("div",{class:"extra-contents",key:v},[J.createElementVNode("div",{class:"extra-content",style:J.normalizeStyle({background:(_==null?void 0:_.background)??"var(--ssComponent-primary-color)",color:"var(--system-bg)"}),onClick:p=>o(_==null?void 0:_.label)},J.toDisplayString(_==null?void 0:_.label),13,Bl)]))),128))])):J.createCommentVNode("",!0),J.createElementVNode("div",zl,[J.createVNode(Il,{title:"筛选数据",width:500,isVisible:s.value},{reference:J.withCtx(()=>[J.createVNode(f,{content:"筛选",placement:"top-start"},{default:J.withCtx(()=>[J.createElementVNode("div",{class:"button-style",onClick:u[0]||(u[0]=_=>s.value=!s.value)},[J.createVNode(J.unref(Ll.filter_default),{color:"var(--ssComponent-black)"})])]),_:1})]),content:J.withCtx(()=>[J.createElementVNode("div",kl,[(J.openBlock(),J.createBlock(Ii.ssForm,{rowContents:r.value,buttonValue:a.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:a.value,isStartJustify:!1,onOnButtonClick:c},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])])])}}},Vl=ha._export_sfc(Hl,[["__scopeId","data-v-3cf75373"]]);/**
2
2
  * @license
3
3
  * Copyright 2010-2025 Three.js Authors
4
4
  * SPDX-License-Identifier: MIT
@@ -3829,4 +3829,4 @@ void main() {
3829
3829
  `)),e.indexOf(`\\
3830
3830
  `)!==-1&&(e=e.replace(/\\\n/g,""));const n=e.split(`
3831
3831
  `);let s=[];for(let o=0,l=n.length;o<l;o++){const c=n[o].trimStart();if(c.length===0)continue;const h=c.charAt(0);if(h!=="#")if(h==="v"){const u=c.split(Lo);switch(u[0]){case"v":t.vertices.push(parseFloat(u[1]),parseFloat(u[2]),parseFloat(u[3])),u.length>=7?(xs.setRGB(parseFloat(u[4]),parseFloat(u[5]),parseFloat(u[6]),xt),t.colors.push(xs.r,xs.g,xs.b)):t.colors.push(void 0,void 0,void 0);break;case"vn":t.normals.push(parseFloat(u[1]),parseFloat(u[2]),parseFloat(u[3]));break;case"vt":t.uvs.push(parseFloat(u[1]),parseFloat(u[2]));break}}else if(h==="f"){const f=c.slice(1).trim().split(Lo),m=[];for(let v=0,p=f.length;v<p;v++){const d=f[v];if(d.length>0){const b=d.split("/");m.push(b)}}const _=m[0];for(let v=1,p=m.length-1;v<p;v++){const d=m[v],b=m[v+1];t.addFace(_[0],d[0],b[0],_[1],d[1],b[1],_[2],d[2],b[2])}}else if(h==="l"){const u=c.substring(1).trim().split(" ");let f=[];const m=[];if(c.indexOf("/")===-1)f=u;else for(let _=0,v=u.length;_<v;_++){const p=u[_].split("/");p[0]!==""&&f.push(p[0]),p[1]!==""&&m.push(p[1])}t.addLineGeometry(f,m)}else if(h==="p"){const f=c.slice(1).trim().split(" ");t.addPointGeometry(f)}else if((s=om.exec(c))!==null){const u=(" "+s[0].slice(1).trim()).slice(1);t.startObject(u)}else if(cm.test(c))t.object.startMaterial(c.substring(7).trim(),t.materialLibraries);else if(lm.test(c))t.materialLibraries.push(c.substring(7).trim());else if(hm.test(c))console.warn('THREE.OBJLoader: Rendering identifier "usemap" not supported. Textures must be defined in MTL files.');else if(h==="s"){if(s=c.split(" "),s.length>1){const f=s[1].trim().toLowerCase();t.object.smooth=f!=="0"&&f!=="off"}else t.object.smooth=!0;const u=t.object.currentMaterial();u&&(u.smooth=t.object.smooth)}else{if(c==="\0")continue;console.warn('THREE.OBJLoader: Unexpected line: "'+c+'"')}}t.finalize();const r=new Ni;if(r.materialLibraries=[].concat(t.materialLibraries),!(t.objects.length===1&&t.objects[0].geometry.vertices.length===0)===!0)for(let o=0,l=t.objects.length;o<l;o++){const c=t.objects[o],h=c.geometry,u=c.materials,f=h.type==="Line",m=h.type==="Points";let _=!1;if(h.vertices.length===0)continue;const v=new jt;v.setAttribute("position",new bt(h.vertices,3)),h.normals.length>0&&v.setAttribute("normal",new bt(h.normals,3)),h.colors.length>0&&(_=!0,v.setAttribute("color",new bt(h.colors,3))),h.hasUVIndices===!0&&v.setAttribute("uv",new bt(h.uvs,2));const p=[];for(let b=0,T=u.length;b<T;b++){const S=u[b],L=S.name+"_"+S.smooth+"_"+_;let A=t.materials[L];if(this.materials!==null){if(A=this.materials.create(S.name),f&&A&&!(A instanceof ws)){const C=new ws;mn.prototype.copy.call(C,A),C.color.copy(A.color),A=C}else if(m&&A&&!(A instanceof Fi)){const C=new Fi({size:10,sizeAttenuation:!1});mn.prototype.copy.call(C,A),C.color.copy(A.color),C.map=A.map,A=C}}A===void 0&&(f?A=new ws:m?A=new Fi({size:1,sizeAttenuation:!1}):A=new ll,A.name=S.name,A.flatShading=!S.smooth,A.vertexColors=_,t.materials[L]=A),p.push(A)}let d;if(p.length>1){for(let b=0,T=u.length;b<T;b++){const S=u[b];v.addGroup(S.groupStart,S.groupCount,b)}f?d=new eo(v,p):m?d=new fr(v,p):d=new qt(v,p)}else f?d=new eo(v,p[0]):m?d=new fr(v,p[0]):d=new qt(v,p[0]);d.name=c.name,r.add(d)}else if(t.vertices.length>0){const o=new Fi({size:1,sizeAttenuation:!1}),l=new jt;l.setAttribute("position",new bt(t.vertices,3)),t.colors.length>0&&t.colors[0]!==void 0&&(l.setAttribute("color",new bt(t.colors,3)),o.vertexColors=!0);const c=new fr(l,o);r.add(c)}return r}}class fm extends Ei{constructor(e){super(e)}load(e,t,n,s){const r=this,a=this.path===""?Mh.extractUrlBase(e):this.path,o=new hl(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(l){try{t(r.parse(l,a))}catch(c){s?s(c):console.error(c),r.manager.itemError(e)}},n,s)}setMaterialOptions(e){return this.materialOptions=e,this}parse(e,t){const n=e.split(`
3832
- `);let s={};const r=/\s+/,a={};for(let l=0;l<n.length;l++){let c=n[l];if(c=c.trim(),c.length===0||c.charAt(0)==="#")continue;const h=c.indexOf(" ");let u=h>=0?c.substring(0,h):c;u=u.toLowerCase();let f=h>=0?c.substring(h+1):"";if(f=f.trim(),u==="newmtl")s={name:f},a[f]=s;else if(u==="ka"||u==="kd"||u==="ks"||u==="ke"){const m=f.split(r,3);s[u]=[parseFloat(m[0]),parseFloat(m[1]),parseFloat(m[2])]}else s[u]=f}const o=new pm(this.resourcePath||t,this.materialOptions);return o.setCrossOrigin(this.crossOrigin),o.setManager(this.manager),o.setMaterials(a),o}}class pm{constructor(e="",t={}){this.baseUrl=e,this.options=t,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.crossOrigin="anonymous",this.side=this.options.side!==void 0?this.options.side:pn,this.wrap=this.options.wrap!==void 0?this.options.wrap:Ps}setCrossOrigin(e){return this.crossOrigin=e,this}setManager(e){this.manager=e}setMaterials(e){this.materialsInfo=this.convert(e),this.materials={},this.materialsArray=[],this.nameLookup={}}convert(e){if(!this.options)return e;const t={};for(const n in e){const s=e[n],r={};t[n]=r;for(const a in s){let o=!0,l=s[a];const c=a.toLowerCase();switch(c){case"kd":case"ka":case"ks":this.options&&this.options.normalizeRGB&&(l=[l[0]/255,l[1]/255,l[2]/255]),this.options&&this.options.ignoreZeroRGBs&&l[0]===0&&l[1]===0&&l[2]===0&&(o=!1);break}o&&(r[c]=l)}}return t}preload(){for(const e in this.materialsInfo)this.create(e)}getIndex(e){return this.nameLookup[e]}getAsArray(){let e=0;for(const t in this.materialsInfo)this.materialsArray[e]=this.create(t),this.nameLookup[t]=e,e++;return this.materialsArray}create(e){return this.materials[e]===void 0&&this.createMaterial_(e),this.materials[e]}createMaterial_(e){const t=this,n=this.materialsInfo[e],s={name:e,side:this.side};function r(o,l){return typeof l!="string"||l===""?"":/^https?:\/\//i.test(l)?l:o+l}function a(o,l){if(s[o])return;const c=t.getTextureParams(l,s),h=t.loadTexture(r(t.baseUrl,c.url));h.repeat.copy(c.scale),h.offset.copy(c.offset),h.wrapS=t.wrap,h.wrapT=t.wrap,(o==="map"||o==="emissiveMap")&&(h.colorSpace=xt),s[o]=h}for(const o in n){const l=n[o];let c;if(l!=="")switch(o.toLowerCase()){case"kd":s.color=Ke.colorSpaceToWorking(new We().fromArray(l),xt);break;case"ks":s.specular=Ke.colorSpaceToWorking(new We().fromArray(l),xt);break;case"ke":s.emissive=Ke.colorSpaceToWorking(new We().fromArray(l),xt);break;case"map_kd":a("map",l);break;case"map_ks":a("specularMap",l);break;case"map_ke":a("emissiveMap",l);break;case"norm":a("normalMap",l);break;case"map_bump":case"bump":a("bumpMap",l);break;case"disp":a("displacementMap",l);break;case"map_d":a("alphaMap",l),s.transparent=!0;break;case"ns":s.shininess=parseFloat(l);break;case"d":c=parseFloat(l),c<1&&(s.opacity=c,s.transparent=!0);break;case"tr":c=parseFloat(l),this.options&&this.options.invertTrProperty&&(c=1-c),c>0&&(s.opacity=1-c,s.transparent=!0);break}}return this.materials[e]=new ll(s),this.materials[e]}getTextureParams(e,t){const n={scale:new Be(1,1),offset:new Be(0,0)},s=e.split(/\s+/);let r;return r=s.indexOf("-bm"),r>=0&&(t.bumpScale=parseFloat(s[r+1]),s.splice(r,2)),r=s.indexOf("-mm"),r>=0&&(t.displacementBias=parseFloat(s[r+1]),t.displacementScale=parseFloat(s[r+2]),s.splice(r,3)),r=s.indexOf("-s"),r>=0&&(n.scale.set(parseFloat(s[r+1]),parseFloat(s[r+2])),s.splice(r,4)),r=s.indexOf("-o"),r>=0&&(n.offset.set(parseFloat(s[r+1]),parseFloat(s[r+2])),s.splice(r,4)),n.url=s.join(" ").trim(),n}loadTexture(e,t,n,s,r){const a=this.manager!==void 0?this.manager:cl;let o=a.getHandler(e);o===null&&(o=new mh(a)),o.setCrossOrigin&&o.setCrossOrigin(this.crossOrigin);const l=o.load(e,n,s,r);return t!==void 0&&(l.mapping=t),l}}const Fo={type:"change"},Ea={type:"start"},vl={type:"end"},Ms=new Os,Oo=new yn,mm=Math.cos(70*Dc.DEG2RAD),ft=new N,Ct=2*Math.PI,nt={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},Er=1e-6;class _m extends Eh{constructor(e,t=null){super(e,t),this.state=nt.NONE,this.target=new N,this.cursor=new N,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.keyRotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:di.ROTATE,MIDDLE:di.DOLLY,RIGHT:di.PAN},this.touches={ONE:ci.ROTATE,TWO:ci.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this._lastPosition=new N,this._lastQuaternion=new Vn,this._lastTargetPosition=new N,this._quat=new Vn().setFromUnitVectors(e.up,new N(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new ro,this._sphericalDelta=new ro,this._scale=1,this._panOffset=new N,this._rotateStart=new Be,this._rotateEnd=new Be,this._rotateDelta=new Be,this._panStart=new Be,this._panEnd=new Be,this._panDelta=new Be,this._dollyStart=new Be,this._dollyEnd=new Be,this._dollyDelta=new Be,this._dollyDirection=new N,this._mouse=new Be,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=vm.bind(this),this._onPointerDown=gm.bind(this),this._onPointerUp=xm.bind(this),this._onContextMenu=Am.bind(this),this._onMouseWheel=Em.bind(this),this._onKeyDown=ym.bind(this),this._onTouchStart=Tm.bind(this),this._onTouchMove=bm.bind(this),this._onMouseDown=Mm.bind(this),this._onMouseMove=Sm.bind(this),this._interceptControlDown=wm.bind(this),this._interceptControlUp=Rm.bind(this),this.domElement!==null&&this.connect(this.domElement),this.update()}connect(e){super.connect(e),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerUp),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1}),this.domElement.getRootNode().addEventListener("keydown",this._interceptControlDown,{passive:!0,capture:!0}),this.domElement.style.touchAction="none"}disconnect(){this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerUp),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.stopListenToKeyEvents(),this.domElement.getRootNode().removeEventListener("keydown",this._interceptControlDown,{capture:!0}),this.domElement.style.touchAction="auto"}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(e){e.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=e}stopListenToKeyEvents(){this._domElementKeyEvents!==null&&(this._domElementKeyEvents.removeEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(Fo),this.update(),this.state=nt.NONE}update(e=null){const t=this.object.position;ft.copy(t).sub(this.target),ft.applyQuaternion(this._quat),this._spherical.setFromVector3(ft),this.autoRotate&&this.state===nt.NONE&&this._rotateLeft(this._getAutoRotationAngle(e)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let n=this.minAzimuthAngle,s=this.maxAzimuthAngle;isFinite(n)&&isFinite(s)&&(n<-Math.PI?n+=Ct:n>Math.PI&&(n-=Ct),s<-Math.PI?s+=Ct:s>Math.PI&&(s-=Ct),n<=s?this._spherical.theta=Math.max(n,Math.min(s,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(n+s)/2?Math.max(n,this._spherical.theta):Math.min(s,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),this.enableDamping===!0?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let r=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const a=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),r=a!=this._spherical.radius}if(ft.setFromSpherical(this._spherical),ft.applyQuaternion(this._quatInverse),t.copy(this.target).add(ft),this.object.lookAt(this.target),this.enableDamping===!0?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let a=null;if(this.object.isPerspectiveCamera){const o=ft.length();a=this._clampDistance(o*this._scale);const l=o-a;this.object.position.addScaledVector(this._dollyDirection,l),this.object.updateMatrixWorld(),r=!!l}else if(this.object.isOrthographicCamera){const o=new N(this._mouse.x,this._mouse.y,0);o.unproject(this.object);const l=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),r=l!==this.object.zoom;const c=new N(this._mouse.x,this._mouse.y,0);c.unproject(this.object),this.object.position.sub(c).add(o),this.object.updateMatrixWorld(),a=ft.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;a!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(a).add(this.object.position):(Ms.origin.copy(this.object.position),Ms.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(Ms.direction))<mm?this.object.lookAt(this.target):(Oo.setFromNormalAndCoplanarPoint(this.object.up,this.target),Ms.intersectPlane(Oo,this.target))))}else if(this.object.isOrthographicCamera){const a=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),a!==this.object.zoom&&(this.object.updateProjectionMatrix(),r=!0)}return this._scale=1,this._performCursorZoom=!1,r||this._lastPosition.distanceToSquared(this.object.position)>Er||8*(1-this._lastQuaternion.dot(this.object.quaternion))>Er||this._lastTargetPosition.distanceToSquared(this.target)>Er?(this.dispatchEvent(Fo),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(e){return e!==null?Ct/60*this.autoRotateSpeed*e:Ct/60/60*this.autoRotateSpeed}_getZoomScale(e){const t=Math.abs(e*.01);return Math.pow(.95,this.zoomSpeed*t)}_rotateLeft(e){this._sphericalDelta.theta-=e}_rotateUp(e){this._sphericalDelta.phi-=e}_panLeft(e,t){ft.setFromMatrixColumn(t,0),ft.multiplyScalar(-e),this._panOffset.add(ft)}_panUp(e,t){this.screenSpacePanning===!0?ft.setFromMatrixColumn(t,1):(ft.setFromMatrixColumn(t,0),ft.crossVectors(this.object.up,ft)),ft.multiplyScalar(e),this._panOffset.add(ft)}_pan(e,t){const n=this.domElement;if(this.object.isPerspectiveCamera){const s=this.object.position;ft.copy(s).sub(this.target);let r=ft.length();r*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*e*r/n.clientHeight,this.object.matrix),this._panUp(2*t*r/n.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(e*(this.object.right-this.object.left)/this.object.zoom/n.clientWidth,this.object.matrix),this._panUp(t*(this.object.top-this.object.bottom)/this.object.zoom/n.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(e,t){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const n=this.domElement.getBoundingClientRect(),s=e-n.left,r=t-n.top,a=n.width,o=n.height;this._mouse.x=s/a*2-1,this._mouse.y=-(r/o)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(e){return Math.max(this.minDistance,Math.min(this.maxDistance,e))}_handleMouseDownRotate(e){this._rotateStart.set(e.clientX,e.clientY)}_handleMouseDownDolly(e){this._updateZoomParameters(e.clientX,e.clientX),this._dollyStart.set(e.clientX,e.clientY)}_handleMouseDownPan(e){this._panStart.set(e.clientX,e.clientY)}_handleMouseMoveRotate(e){this._rotateEnd.set(e.clientX,e.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const t=this.domElement;this._rotateLeft(Ct*this._rotateDelta.x/t.clientHeight),this._rotateUp(Ct*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(e){this._dollyEnd.set(e.clientX,e.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(e){this._panEnd.set(e.clientX,e.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(e){this._updateZoomParameters(e.clientX,e.clientY),e.deltaY<0?this._dollyIn(this._getZoomScale(e.deltaY)):e.deltaY>0&&this._dollyOut(this._getZoomScale(e.deltaY)),this.update()}_handleKeyDown(e){let t=!1;switch(e.code){case this.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(Ct*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),t=!0;break;case this.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(-Ct*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),t=!0;break;case this.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(Ct*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),t=!0;break;case this.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(-Ct*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),t=!0;break}t&&(e.preventDefault(),this.update())}_handleTouchStartRotate(e){if(this._pointers.length===1)this._rotateStart.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),s=.5*(e.pageY+t.y);this._rotateStart.set(n,s)}}_handleTouchStartPan(e){if(this._pointers.length===1)this._panStart.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),s=.5*(e.pageY+t.y);this._panStart.set(n,s)}}_handleTouchStartDolly(e){const t=this._getSecondPointerPosition(e),n=e.pageX-t.x,s=e.pageY-t.y,r=Math.sqrt(n*n+s*s);this._dollyStart.set(0,r)}_handleTouchStartDollyPan(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enablePan&&this._handleTouchStartPan(e)}_handleTouchStartDollyRotate(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enableRotate&&this._handleTouchStartRotate(e)}_handleTouchMoveRotate(e){if(this._pointers.length==1)this._rotateEnd.set(e.pageX,e.pageY);else{const n=this._getSecondPointerPosition(e),s=.5*(e.pageX+n.x),r=.5*(e.pageY+n.y);this._rotateEnd.set(s,r)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const t=this.domElement;this._rotateLeft(Ct*this._rotateDelta.x/t.clientHeight),this._rotateUp(Ct*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(e){if(this._pointers.length===1)this._panEnd.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),s=.5*(e.pageY+t.y);this._panEnd.set(n,s)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(e){const t=this._getSecondPointerPosition(e),n=e.pageX-t.x,s=e.pageY-t.y,r=Math.sqrt(n*n+s*s);this._dollyEnd.set(0,r),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);const a=(e.pageX+t.x)*.5,o=(e.pageY+t.y)*.5;this._updateZoomParameters(a,o)}_handleTouchMoveDollyPan(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enablePan&&this._handleTouchMovePan(e)}_handleTouchMoveDollyRotate(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enableRotate&&this._handleTouchMoveRotate(e)}_addPointer(e){this._pointers.push(e.pointerId)}_removePointer(e){delete this._pointerPositions[e.pointerId];for(let t=0;t<this._pointers.length;t++)if(this._pointers[t]==e.pointerId){this._pointers.splice(t,1);return}}_isTrackingPointer(e){for(let t=0;t<this._pointers.length;t++)if(this._pointers[t]==e.pointerId)return!0;return!1}_trackPointer(e){let t=this._pointerPositions[e.pointerId];t===void 0&&(t=new Be,this._pointerPositions[e.pointerId]=t),t.set(e.pageX,e.pageY)}_getSecondPointerPosition(e){const t=e.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[t]}_customWheelEvent(e){const t=e.deltaMode,n={clientX:e.clientX,clientY:e.clientY,deltaY:e.deltaY};switch(t){case 1:n.deltaY*=16;break;case 2:n.deltaY*=100;break}return e.ctrlKey&&!this._controlActive&&(n.deltaY*=10),n}}function gm(i){this.enabled!==!1&&(this._pointers.length===0&&(this.domElement.setPointerCapture(i.pointerId),this.domElement.addEventListener("pointermove",this._onPointerMove),this.domElement.addEventListener("pointerup",this._onPointerUp)),!this._isTrackingPointer(i)&&(this._addPointer(i),i.pointerType==="touch"?this._onTouchStart(i):this._onMouseDown(i)))}function vm(i){this.enabled!==!1&&(i.pointerType==="touch"?this._onTouchMove(i):this._onMouseMove(i))}function xm(i){switch(this._removePointer(i),this._pointers.length){case 0:this.domElement.releasePointerCapture(i.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.dispatchEvent(vl),this.state=nt.NONE;break;case 1:const e=this._pointers[0],t=this._pointerPositions[e];this._onTouchStart({pointerId:e,pageX:t.x,pageY:t.y});break}}function Mm(i){let e;switch(i.button){case 0:e=this.mouseButtons.LEFT;break;case 1:e=this.mouseButtons.MIDDLE;break;case 2:e=this.mouseButtons.RIGHT;break;default:e=-1}switch(e){case di.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(i),this.state=nt.DOLLY;break;case di.ROTATE:if(i.ctrlKey||i.metaKey||i.shiftKey){if(this.enablePan===!1)return;this._handleMouseDownPan(i),this.state=nt.PAN}else{if(this.enableRotate===!1)return;this._handleMouseDownRotate(i),this.state=nt.ROTATE}break;case di.PAN:if(i.ctrlKey||i.metaKey||i.shiftKey){if(this.enableRotate===!1)return;this._handleMouseDownRotate(i),this.state=nt.ROTATE}else{if(this.enablePan===!1)return;this._handleMouseDownPan(i),this.state=nt.PAN}break;default:this.state=nt.NONE}this.state!==nt.NONE&&this.dispatchEvent(Ea)}function Sm(i){switch(this.state){case nt.ROTATE:if(this.enableRotate===!1)return;this._handleMouseMoveRotate(i);break;case nt.DOLLY:if(this.enableZoom===!1)return;this._handleMouseMoveDolly(i);break;case nt.PAN:if(this.enablePan===!1)return;this._handleMouseMovePan(i);break}}function Em(i){this.enabled===!1||this.enableZoom===!1||this.state!==nt.NONE||(i.preventDefault(),this.dispatchEvent(Ea),this._handleMouseWheel(this._customWheelEvent(i)),this.dispatchEvent(vl))}function ym(i){this.enabled!==!1&&this._handleKeyDown(i)}function Tm(i){switch(this._trackPointer(i),this._pointers.length){case 1:switch(this.touches.ONE){case ci.ROTATE:if(this.enableRotate===!1)return;this._handleTouchStartRotate(i),this.state=nt.TOUCH_ROTATE;break;case ci.PAN:if(this.enablePan===!1)return;this._handleTouchStartPan(i),this.state=nt.TOUCH_PAN;break;default:this.state=nt.NONE}break;case 2:switch(this.touches.TWO){case ci.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(i),this.state=nt.TOUCH_DOLLY_PAN;break;case ci.DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchStartDollyRotate(i),this.state=nt.TOUCH_DOLLY_ROTATE;break;default:this.state=nt.NONE}break;default:this.state=nt.NONE}this.state!==nt.NONE&&this.dispatchEvent(Ea)}function bm(i){switch(this._trackPointer(i),this.state){case nt.TOUCH_ROTATE:if(this.enableRotate===!1)return;this._handleTouchMoveRotate(i),this.update();break;case nt.TOUCH_PAN:if(this.enablePan===!1)return;this._handleTouchMovePan(i),this.update();break;case nt.TOUCH_DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchMoveDollyPan(i),this.update();break;case nt.TOUCH_DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchMoveDollyRotate(i),this.update();break;default:this.state=nt.NONE}}function Am(i){this.enabled!==!1&&i.preventDefault()}function wm(i){i.key==="Control"&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function Rm(i){i.key==="Control"&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}const Cm={class:"content-show"},Pm={__name:"threeModel",props:{isShow:Boolean},setup(i){const e=J.ref(null),t=i;let n,s,r,a,o;const l=()=>{n=new ah,n.background=new We(15790320),s=new zt(75,e.value.clientWidth/e.value.clientHeight,.1,1e3),s.position.z=5,r=new am({antialias:!0}),r.setSize(e.value.clientWidth,e.value.clientHeight),r.setPixelRatio(window.devicePixelRatio),e.value.appendChild(r.domElement),a=new _m(s,r.domElement),a.enableDamping=!0,a.dampingFactor=.05;const f=new xh(16777215,.5);n.add(f);const m=new vh(16777215,.8);m.position.set(1,1,1),n.add(m),c("model"),h()},c=f=>{console.log(232,111),new fm().load(new URL("/obj/"+f+".mtl",typeof document>"u"?require("url").pathToFileURL(__filename).href:Yn&&Yn.tagName.toUpperCase()==="SCRIPT"&&Yn.src||new URL("index-CVn4P4D_.cjs",document.baseURI).href).href,_=>{_.preload();const v=new dm;v.setMaterials(_),v.load(new URL("/obj/"+f+".obj",typeof document>"u"?require("url").pathToFileURL(__filename).href:Yn&&Yn.tagName.toUpperCase()==="SCRIPT"&&Yn.src||new URL("index-CVn4P4D_.cjs",document.baseURI).href).href,p=>{o=p,o.rotation.set(50,-20,200),n.add(o),console.log(2321,o);const d=new Si().setFromObject(o),b=d.getSize(new N).length(),T=d.getCenter(new N);s.position.copy(T),s.position.z+=b*.6,s.lookAt(T),a.target.copy(T)},p=>{console.log(p.loaded/p.total*100+"% loaded")},p=>{console.error("An error happened loading the OBJ model:",p)})},_=>{console.log(_.loaded/_.total*100+"% loaded")},_=>{console.error("An error happened loading the MTL materials:",_)})},h=()=>{requestAnimationFrame(h),a.update(),r.render(n,s)},u=()=>{s.aspect=e.value.clientWidth/e.value.clientHeight,s.updateProjectionMatrix(),r.setSize(e.value.clientWidth,e.value.clientHeight)};return J.onMounted(()=>{window.addEventListener("resize",u),l()}),J.watch(()=>t==null?void 0:t.isShow,()=>{t!=null&&t.isShow&&!a&&!r&&setTimeout(()=>{window.addEventListener("resize",u),l()},100)},{deep:!0,immediate:!0}),J.onBeforeUnmount(()=>{window.removeEventListener("resize",u),r&&r.dispose(),a&&a.dispose()}),(f,m)=>(J.openBlock(),J.createElementBlock("div",Cm,[J.createElementVNode("div",{ref_key:"container",ref:e,class:"three-container"},null,512)]))}},Dm=ha._export_sfc(Pm,[["__scopeId","data-v-3dbeff0a"]]),xl=li.defineStore("unit",{state:()=>({selectIndex:"",selectMenu:"",selectTitle:[]}),actions:{setSelectIndex(i){this.selectIndex=i},setSelectMenu(i){this.selectMenu=i},setSelectTitle(i){this.selectTitle=i}}}),Ml=(i,e)=>{let t=i,n=e;return Array.isArray(t)&&(t=t==null?void 0:t.map((s,r)=>{if(Array.isArray(s)){let a={};return s=s==null?void 0:s.forEach((o,l)=>{var c;(c=n==null?void 0:n[l])!=null&&c.prop?a[n[l].prop]=o:Array.isArray(o)&&(a.children=Ml(o,n))}),Object.assign(a,{id:r})}else return s})),t},Sl=(i,e,t)=>{let n=i,s=e;return n=n==null?void 0:n.map((r,a)=>{var o,l;return!Array.isArray(r)||!((o=s==null?void 0:s[a])!=null&&o.label)&&!t||(r.unshift(((l=s==null?void 0:s[a])==null?void 0:l.label)??""),r.some(c=>Array.isArray(c))&&(r=r==null?void 0:r.map(c=>{var h;return Array.isArray(c)&&(c=Sl(c,(h=s==null?void 0:s[a])==null?void 0:h.children,t)),c}))),r}),n},Lm=(i,e,t)=>{if(e==="")return i==null?void 0:i.filter(n=>(n==null?void 0:n.id)!==t);{const n=e.split("-");return Um(i,n,t)}},Um=(i,e,t)=>{let n=i,s=e;return(s==null?void 0:s.length)===0?n=n==null?void 0:n.filter(r=>r.id!==t):n=n==null?void 0:n.map(r=>(r.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),r=El(r,s,t)),r)),n},El=(i,e,t)=>{var r,a;let n=i,s=e;return(s==null?void 0:s.length)===0?n.children=(r=n.children)==null?void 0:r.filter(o=>o.id!==t):n.children=(a=n.children)==null?void 0:a.map(o=>(o.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),o=El(o,s,t)),o)),n},Im=(i,e,t)=>{if(e==="")return t;{const n=e.split("-");return Nm(i,n,t)}},Nm=(i,e,t)=>{let n=i,s=e;return(s==null?void 0:s.length)===0?n=t:n=n==null?void 0:n.map(r=>(r.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),r=yl(r,s,t)),r)),n},yl=(i,e,t)=>{var r;let n=i,s=e;return(s==null?void 0:s.length)===0?n.children=t:n.children=(r=n.children)==null?void 0:r.map(a=>(a.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),a=yl(a,s,t)),a)),n},Tl=async(i,e,t="")=>{var h,u,f,m,_,v;const n=await kn.getInsofDataApi({key:{pageKey:i,systemKey:e,parentTable:t}}),s=await kn.getInsofDataApi({key:{pageKey:i,systemKey:e,type:"structureMethod"}}),r=(h=n.data.result)==null?void 0:h.map(p=>p.id),a=r==null?void 0:r.map(p=>kn.getInsofDataApi({key:{pageKey:i,systemKey:e,tableId:p}})),o=await Promise.all(a),l=[];o==null||o.forEach(p=>{var T,S,L,A;const d=(T=p.data.result)==null?void 0:T.map(C=>{const F=C.value.tableData;return F.unshift({id:C.id}),F}),b=(A=(L=(S=p.data.result)==null?void 0:S[0])==null?void 0:L.key)==null?void 0:A.tableId;l.push({key:b,contents:d})});const c=[];return(u=n.data.result)==null||u.forEach(p=>{var T,S;const d=p.value.pageData,b=ut.cloneDeep(d.compData);if(b.push({key:"tableContents",contents:(T=l==null?void 0:l.find(L=>(L==null?void 0:L.key)===p.id))==null?void 0:T.contents}),d.compData=b,d.id=p.id,((S=p.key)==null?void 0:S.type)!=="method")c.push(d);else{let L;L={name:"",compData:[d],comp:"calculator"},c.push(L)}}),((m=(f=s.data.result)==null?void 0:f.map(p=>p.value.pageData))==null?void 0:m.filter(p=>Object.values(p).length>0).length)>0&&c.push({comp:"methodButton",name:"",compData:(v=(_=s.data.result)==null?void 0:_.map(p=>p.value.pageData))==null?void 0:v.filter(p=>Object.values(p).length>0)}),c},Fm=async i=>{await kn.deleteInsofDataApi({id:i})},Om=async(i,e,t,n,s)=>{await kn.createInsofDataApi({key:{type:i,pageKey:e,tableId:t,systemKey:n},value:{tableData:s}})},Bm=async(i,e,t,n,s,r)=>{await kn.updateInsofDataApi({key:{type:i,pageKey:e,tableId:t,systemKey:s},value:{tableData:r},id:n})},zm=async(i,e)=>{await kn.updateInsofDataApi({value:{pageData:e},id:i})},km={class:"table-content"},Hm=["onClick"],Vm={class:"form-content"},Gm={key:0,class:"dialog-footer"},Wm={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change","contentChange","onButtonClick","contentClick","pageChange"],setup(i,{emit:e}){const t=i,n=e,s=J.ref([]),r=li.useMenuState(),{activeMenuPath:a}=li.storeToRefs(r),o=Dl.useModelComp(Hs.pinia),{extraContents:l}=li.storeToRefs(o),c=J.ref([]),h=J.ref(!1),u=J.ref("");J.ref();const f=J.ref(!0),m=J.ref(0),_=J.ref(!1),v=J.ref(""),p=J.ref(!1),d=J.ref({label:"查看三维模型"}),b=J.ref([]),T=J.ref(!1),S=J.ref([]),L=J.ref([]),A=J.ref(),C=J.ref(),F=Ul.useFormToTableComp(Hs.pinia),E=J.ref(),M=xl(Hs.pinia),{selectIndex:P,selectMenu:q,selectTitle:H}=li.storeToRefs(M),{selectString:j}=li.storeToRefs(F),ne=J.ref(720),K=()=>{p.value=!1},ae=(G,Y)=>{if(Object.values(Y).length!==0)return Object.values(Y).find(ie=>{var me,se;return((me=ie==null?void 0:ie.toString())==null?void 0:me.includes(".obj"))||((se=ie==null?void 0:ie.toString())==null?void 0:se.includes(".stl"))})?[...G,d.value]:G},V=async G=>{var ie,me,se,ce,we,Ie,w;let Y=await Tl(a.value,sessionStorage.getItem("systemKey"),G.id);if(Y=Y==null?void 0:Y.filter(rt=>rt.comp!=="methodButton"),Y&&Y.length>0){const rt=!Array.isArray(H.value)&&((ie=H.value)==null?void 0:ie.key)!=="main"?[]:H.value;rt.push({key:q.value===""?(me=G==null?void 0:G.id)==null?void 0:me.toString():q.value+"-"+((se=G==null?void 0:G.id)==null?void 0:se.toString()),value:G[(ce=Object.keys(G))==null?void 0:ce.filter(Xe=>Xe!=="index"&&Xe!=="id")[0]]}),M.setSelectMenu(q.value===""?(we=G==null?void 0:G.id)==null?void 0:we.toString():q.value+"-"+((Ie=G==null?void 0:G.id)==null?void 0:Ie.toString())),M.setSelectTitle(rt),M.setSelectIndex((w=G==null?void 0:G.id)==null?void 0:w.toString()),n("pageChange",Y)}},fe=G=>{var Y;(Y=ut.cloneDeep(t.itemData))==null||Y.map(ie=>((ie==null?void 0:ie.key)==="tableContents"&&(ie.contents=G),ie))},ve=(G,Y,ie)=>{n("contentClick",G,Y,ie,{id:t==null?void 0:t.index})};J.watch(()=>t.changedContent,()=>{var ie,me;if(!t.changedContent)return;let G=(ie=c.value)==null?void 0:ie.map(se=>{var ce;return se.id===((ce=t.changedContent)==null?void 0:ce.id)&&(se={...t.changedContent,id:t.changedContent.newId?t.changedContent.newId:t.changedContent.id},delete se.newId),se});const Y=(me=t.itemData)==null?void 0:me.map(se=>((se==null?void 0:se.key)==="tableContents"&&(se.contents=G),se));c.value=G,console.log(133,t.changedContent,G),n("contentChange",{contents:Y,index:t.index}),n("change",{content:G,index:t==null?void 0:t.index,buttonName:"",id:t==null?void 0:t.index})},{deep:!0,immediate:!0});const Ae=(G,Y)=>{var ie;if(u.value="",T.value=!0,f.value=!0,n("onButtonClick",G,Y),G==="删除"){c.value=(ie=ut.cloneDeep(c.value))==null?void 0:ie.filter(se=>(se==null?void 0:se.id)!==(Y==null?void 0:Y.id));const me=Lm(E.value,q.value,Y==null?void 0:Y.id);fe(me),n("change",{content:c.value,singleContent:Y,index:t==null?void 0:t.index,type:"delete",buttonName:G})}else G==="新增"?(v.value="新增",$e(""),p.value=!0):G==="编辑"?(v.value="编辑",$e(Y),p.value=!0):G==="查看"?(v.value="查看",$e(Y),T.value=!1,f.value=!1,p.value=!0):G==="查看三维模型"&&(h.value=!0)},Ge=()=>{h.value=!1},$e=G=>{var me,se;const Y=[];let ie=[];for(let ce in G)Array.isArray(G==null?void 0:G[ce])&&ie.push(ce);(se=Bo((me=ut.cloneDeep(s.value))==null?void 0:me.filter(ce=>(ce==null?void 0:ce.label)!=="操作")))==null||se.forEach((ce,we)=>{ie.find(Ie=>Ie===(ce==null?void 0:ce.prop))||Y.push({label:(ce==null?void 0:ce.label)??"",name:(ce==null?void 0:ce.prop)??"t"+we,type:!(ce!=null&&ce.formType)||(ce==null?void 0:ce.formType)===""?"Input":ce==null?void 0:ce.formType,value:(G==null?void 0:G[ce==null?void 0:ce.prop])??"",id:(ce==null?void 0:ce.id)??we,contents:(ce==null?void 0:ce.options)??[],width:1,isFormColHidden:ce==null?void 0:ce.isFormColHidden})}),G===""||!G||(u.value=G==null?void 0:G.id),L.value=Y};J.onMounted(()=>{});const $=()=>{let G,Y=ut.cloneDeep(c.value);u.value===""?(m.value++,Y.push(Object.assign(C.value,{id:m.value})),G=Object.assign(C.value,{id:m.value})):Y=Y==null?void 0:Y.map(me=>((me==null?void 0:me.id)===u.value&&(me=Object.assign(me,C.value),G=me),me)),c.value=Y;const ie=Im(E.value,q.value,Y);fe(ie),p.value=!1,n("change",{content:ie,singleContent:G,index:t==null?void 0:t.index,buttonName:v.value})},oe=G=>{C.value=G};return J.watch(()=>[t.itemData,j.value,P.value,q.value,l==null?void 0:l.value],()=>{var w,rt,Xe,Qe,Ee,Ye,Re,Oe,ot,y,g,O,Z,Q,W,ye,he,Me,Te,ee,_e,De,Pe;const G=(w=ut.cloneDeep(t.itemData))==null?void 0:w.filter(X=>(X==null?void 0:X.key)==="header");(rt=ut.cloneDeep(t.itemData))==null||rt.filter(X=>(X==null?void 0:X.key)==="tableIndexColumn")[0];const Y=(Xe=ut.cloneDeep(t.itemData))==null?void 0:Xe.find(X=>(X==null?void 0:X.key)==="page"),ie=(Qe=ut.cloneDeep(t.itemData))==null?void 0:Qe.find(X=>(X==null?void 0:X.key)==="rowButton"),me=(Ee=ut.cloneDeep(t.itemData))==null?void 0:Ee.find(X=>(X==null?void 0:X.key)==="extraButton"),se=(Ye=ut.cloneDeep(t.itemData))==null?void 0:Ye.filter(X=>(X==null?void 0:X.key)==="tableContents"),ce=(Re=ut.cloneDeep(t.itemData))==null?void 0:Re.filter(X=>(X==null?void 0:X.key)==="tableIndex");_.value=(Y==null?void 0:Y.contents)??!0;let we=[];j.value===""?we=G==null?void 0:G[0]:we=(G==null?void 0:G.find(X=>(X==null?void 0:X.selectLabel)==="("+j.value+")"))??(G==null?void 0:G.find(X=>!(X!=null&&X.selectLabel)));let Ie=[];if(j.value===""?Ie=ce==null?void 0:ce[0]:Ie=(ce==null?void 0:ce.find(X=>(X==null?void 0:X.selectLabel)==="("+j.value+")"))??(ce==null?void 0:ce.find(X=>!(X!=null&&X.selectLabel))),((Oe=we==null?void 0:we.contents)==null?void 0:Oe.length)>0){let X=[];if(we!=null&&we.contents.some(z=>Array.isArray(z)&&(z==null?void 0:z.find(U=>U.children))))q.value===""?X=(y=(ot=ba(ut.cloneDeep(we==null?void 0:we.contents)))==null?void 0:ot[0])==null?void 0:y.filter(z=>!Array.isArray(z)):(q.value.split("-"),X=(g=ba(ut.cloneDeep(we==null?void 0:we.contents)))==null?void 0:g[0]);else{const z=we!=null&&we.contents.some(U=>Array.isArray(U))?(O=we==null?void 0:we.contents)==null?void 0:O[0]:we==null?void 0:we.contents;z==null||z.forEach((U,ue)=>{X.push({label:(U==null?void 0:U.label)??"",prop:(U==null?void 0:U.label)==="操作"?"operate":(U==null?void 0:U.prop)??"a"+ue,width:(U==null?void 0:U.label)==="操作"?"200":U!=null&&U.width?parseInt(U.width):"",fixed:(U==null?void 0:U.fixed)??void 0,sortable:(U==null?void 0:U.sortable)??!1,align:(U==null?void 0:U.align)??"center",showOverflowTooltip:(U==null?void 0:U.showOverflowTooltip)??!0,isNotDrag:(U==null?void 0:U.isNotDrag)??!1,isEditCol:(U==null?void 0:U.isEditCol)??!1,isOperate:(U==null?void 0:U.isOperate)??!1,id:(U==null?void 0:U.id)??ue,type:(U==null?void 0:U.label)==="操作"?"operate":void 0,formType:(U==null?void 0:U.formType)??"",isTableColHidden:U==null?void 0:U.isTableColHidden,isFormColHidden:U==null?void 0:U.isFormColHidden,options:(U==null?void 0:U.options)??[]})})}s.value=X;let be=(Q=(Z=Nl(ut.cloneDeep(s.value)))==null?void 0:Z.filter(z=>(z==null?void 0:z.type)!=="operate"))==null?void 0:Q.map((z,U)=>({prop:(z==null?void 0:z.prop)??"a"+U,column:z.label}));A.value=be;let R=[];j.value===""?R=se==null?void 0:se[0]:R=(se==null?void 0:se.find(z=>(z==null?void 0:z.selectLabel)==="("+j.value+")"))??(se==null?void 0:se.find(z=>!(z!=null&&z.selectLabel)));let le=Array.isArray((W=R==null?void 0:R.contents)==null?void 0:W[0])&&((ye=R==null?void 0:R.contents)!=null&&ye[0].every(z=>Array.isArray(z)))?(he=ut.cloneDeep(R==null?void 0:R.contents))==null?void 0:he[0]:ut.cloneDeep(R==null?void 0:R.contents);Ie!=null&&Ie.contents&&((Me=Ie==null?void 0:Ie.contents)==null?void 0:Me.length)!==0&&(le=(Te=ut.cloneDeep(le))==null?void 0:Te.map((z,U)=>{if(!Array.isArray(z)){let ue={};for(let Le in z)Le!=="id"&&Le!=="index"&&(ue[Le]=z[Le]);z=Object.values(ue)}return z}));const te=!!((ee=s.value)!=null&&ee.find(z=>z.prop==="index"));le=Sl(ut.cloneDeep(le),Ie==null?void 0:Ie.contents,te);const ge=[];le==null||le.forEach((z,U)=>{var Le;let ue={};if(Array.isArray(z)){let ze=[];z==null||z.filter(He=>!He.id).forEach((He,ht)=>{var It,Ti,bi,Kt,Xn,Ai;if((It=be==null?void 0:be[ht])!=null&&It.prop&&!Array.isArray(He)){let Zt={};Zt[be[ht].column]=He,l!=null&&l.value&&((Ti=l==null?void 0:l.value)==null?void 0:Ti.length)>0&&((bi=l==null?void 0:l.value)!=null&&bi.find(Mt=>JSON.stringify(Mt==null?void 0:Mt[0])===JSON.stringify(Zt)))&&(ze=(Kt=l==null?void 0:l.value)==null?void 0:Kt.find(Mt=>JSON.stringify(Mt==null?void 0:Mt[0])===JSON.stringify(Zt))),ze&&ze.length>0?ue[be[ht].prop]=ze!=null&&ze.find(Mt=>{var _n;return((_n=Object.keys(Mt))==null?void 0:_n[0])===be[ht].column})?(Xn=ze==null?void 0:ze.find(Mt=>{var _n;return((_n=Object.keys(Mt))==null?void 0:_n[0])===be[ht].column}))==null?void 0:Xn[be[ht].column]:He:ue[be[ht].prop]=He}else Array.isArray(He)&&(He.find(Zt=>(Zt==null?void 0:Zt.key)==="tableContentName")&&((Ai=be[ht])!=null&&Ai.prop)?ue[be[ht].prop]=He:ue.children=Ml(He,be))})}else ue=z;Array.isArray(z)&&z.some(ze=>ze==null?void 0:ze.id)?ge.push(Object.assign(ue,{id:(Le=z==null?void 0:z.find(ze=>ze.id))==null?void 0:Le.id})):ue.id?ge.push(ue):ge.push(Object.assign(ue,{id:U}))}),c.value=ge}else s.value=[],c.value=[];((_e=ie==null?void 0:ie.contents)==null?void 0:_e.length)>0?b.value=ie==null?void 0:ie.contents:b.value=[],((De=me==null?void 0:me.contents)==null?void 0:De.length)>0?S.value=me==null?void 0:me.contents:S.value=[],m.value=((Pe=c==null?void 0:c.value)==null?void 0:Pe.length)??0,E.value=c.value},{deep:!0,immediate:!0}),(G,Y)=>{var ie;return J.openBlock(),J.createElementBlock("div",km,[(J.openBlock(),J.createBlock(Ii.ssTable,{columns:s.value,key:s.value,tableData:c.value,isShowPagination:_.value,isShowEdit:!1,isShowDelete:!1,onDbClickRow:V,extraButton:S.value,onButtonClick:Y[1]||(Y[1]=me=>Ae(me,"")),onContentClick:ve},J.createSlots({headerButton:J.withCtx(me=>[J.createVNode(Vl,{buttons:me.buttons,onButtonClick:Y[0]||(Y[0]=se=>Ae(se,"")),columns:s.value},null,8,["buttons","columns"])]),_:2},[((ie=b.value)==null?void 0:ie.length)>0?{name:"actions",fn:J.withCtx(({item:me})=>[(J.openBlock(!0),J.createElementBlock(J.Fragment,null,J.renderList(ae(b.value,me),(se,ce)=>(J.openBlock(),J.createElementBlock("div",{key:ce},[J.createElementVNode("div",{style:J.normalizeStyle({color:se==null?void 0:se.textColor}),class:"extra-button-label",onClick:we=>Ae(se==null?void 0:se.label,me)},J.toDisplayString(se==null?void 0:se.label),13,Hm)]))),128))]),key:"0"}:void 0]),1032,["columns","tableData","isShowPagination","extraButton"])),J.createVNode(Ii.ssDialog,{title:v.value,visible:p.value,width:ne.value,onBeforeDestroy:K},{default:J.withCtx(()=>[J.createElementVNode("div",Vm,[J.createVNode(Ii.ssForm,{rowContents:L.value,isEnableWrap:!1,onChange:oe,isEdit:f.value},null,8,["rowContents","isEdit"])])]),footer:J.withCtx(()=>[T.value?(J.openBlock(),J.createElementBlock("div",Gm,[J.createElementVNode("div",{onClick:Y[2]||(Y[2]=me=>p.value=!1),class:"cancel-button"},J.toDisplayString("取消")),J.createElementVNode("div",{class:"ok-button",onClick:$},J.toDisplayString("确认"))])):J.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),J.createVNode(Ii.ssDialog,{visible:h.value,fullScreen:"",onBeforeDestroy:Ge},{default:J.withCtx(()=>[J.createVNode(Dm,{isShow:h.value},null,8,["isShow"])]),_:1},8,["visible"])])}}},Xm=ha._export_sfc(Wm,[["__scopeId","data-v-3d3fe2f2"]]);exports.addTableContents=Om;exports.deleteTableContents=Fm;exports.fixFormContents=zm;exports.fixTableContents=Bm;exports.getItemData=Tl;exports.ssTable=Xm;exports.useUnit=xl;
3832
+ `);let s={};const r=/\s+/,a={};for(let l=0;l<n.length;l++){let c=n[l];if(c=c.trim(),c.length===0||c.charAt(0)==="#")continue;const h=c.indexOf(" ");let u=h>=0?c.substring(0,h):c;u=u.toLowerCase();let f=h>=0?c.substring(h+1):"";if(f=f.trim(),u==="newmtl")s={name:f},a[f]=s;else if(u==="ka"||u==="kd"||u==="ks"||u==="ke"){const m=f.split(r,3);s[u]=[parseFloat(m[0]),parseFloat(m[1]),parseFloat(m[2])]}else s[u]=f}const o=new pm(this.resourcePath||t,this.materialOptions);return o.setCrossOrigin(this.crossOrigin),o.setManager(this.manager),o.setMaterials(a),o}}class pm{constructor(e="",t={}){this.baseUrl=e,this.options=t,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.crossOrigin="anonymous",this.side=this.options.side!==void 0?this.options.side:pn,this.wrap=this.options.wrap!==void 0?this.options.wrap:Ps}setCrossOrigin(e){return this.crossOrigin=e,this}setManager(e){this.manager=e}setMaterials(e){this.materialsInfo=this.convert(e),this.materials={},this.materialsArray=[],this.nameLookup={}}convert(e){if(!this.options)return e;const t={};for(const n in e){const s=e[n],r={};t[n]=r;for(const a in s){let o=!0,l=s[a];const c=a.toLowerCase();switch(c){case"kd":case"ka":case"ks":this.options&&this.options.normalizeRGB&&(l=[l[0]/255,l[1]/255,l[2]/255]),this.options&&this.options.ignoreZeroRGBs&&l[0]===0&&l[1]===0&&l[2]===0&&(o=!1);break}o&&(r[c]=l)}}return t}preload(){for(const e in this.materialsInfo)this.create(e)}getIndex(e){return this.nameLookup[e]}getAsArray(){let e=0;for(const t in this.materialsInfo)this.materialsArray[e]=this.create(t),this.nameLookup[t]=e,e++;return this.materialsArray}create(e){return this.materials[e]===void 0&&this.createMaterial_(e),this.materials[e]}createMaterial_(e){const t=this,n=this.materialsInfo[e],s={name:e,side:this.side};function r(o,l){return typeof l!="string"||l===""?"":/^https?:\/\//i.test(l)?l:o+l}function a(o,l){if(s[o])return;const c=t.getTextureParams(l,s),h=t.loadTexture(r(t.baseUrl,c.url));h.repeat.copy(c.scale),h.offset.copy(c.offset),h.wrapS=t.wrap,h.wrapT=t.wrap,(o==="map"||o==="emissiveMap")&&(h.colorSpace=xt),s[o]=h}for(const o in n){const l=n[o];let c;if(l!=="")switch(o.toLowerCase()){case"kd":s.color=Ke.colorSpaceToWorking(new We().fromArray(l),xt);break;case"ks":s.specular=Ke.colorSpaceToWorking(new We().fromArray(l),xt);break;case"ke":s.emissive=Ke.colorSpaceToWorking(new We().fromArray(l),xt);break;case"map_kd":a("map",l);break;case"map_ks":a("specularMap",l);break;case"map_ke":a("emissiveMap",l);break;case"norm":a("normalMap",l);break;case"map_bump":case"bump":a("bumpMap",l);break;case"disp":a("displacementMap",l);break;case"map_d":a("alphaMap",l),s.transparent=!0;break;case"ns":s.shininess=parseFloat(l);break;case"d":c=parseFloat(l),c<1&&(s.opacity=c,s.transparent=!0);break;case"tr":c=parseFloat(l),this.options&&this.options.invertTrProperty&&(c=1-c),c>0&&(s.opacity=1-c,s.transparent=!0);break}}return this.materials[e]=new ll(s),this.materials[e]}getTextureParams(e,t){const n={scale:new Be(1,1),offset:new Be(0,0)},s=e.split(/\s+/);let r;return r=s.indexOf("-bm"),r>=0&&(t.bumpScale=parseFloat(s[r+1]),s.splice(r,2)),r=s.indexOf("-mm"),r>=0&&(t.displacementBias=parseFloat(s[r+1]),t.displacementScale=parseFloat(s[r+2]),s.splice(r,3)),r=s.indexOf("-s"),r>=0&&(n.scale.set(parseFloat(s[r+1]),parseFloat(s[r+2])),s.splice(r,4)),r=s.indexOf("-o"),r>=0&&(n.offset.set(parseFloat(s[r+1]),parseFloat(s[r+2])),s.splice(r,4)),n.url=s.join(" ").trim(),n}loadTexture(e,t,n,s,r){const a=this.manager!==void 0?this.manager:cl;let o=a.getHandler(e);o===null&&(o=new mh(a)),o.setCrossOrigin&&o.setCrossOrigin(this.crossOrigin);const l=o.load(e,n,s,r);return t!==void 0&&(l.mapping=t),l}}const Fo={type:"change"},Ea={type:"start"},vl={type:"end"},Ms=new Os,Oo=new yn,mm=Math.cos(70*Dc.DEG2RAD),ft=new N,Ct=2*Math.PI,nt={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},Er=1e-6;class _m extends Eh{constructor(e,t=null){super(e,t),this.state=nt.NONE,this.target=new N,this.cursor=new N,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.keyRotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:di.ROTATE,MIDDLE:di.DOLLY,RIGHT:di.PAN},this.touches={ONE:ci.ROTATE,TWO:ci.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this._lastPosition=new N,this._lastQuaternion=new Vn,this._lastTargetPosition=new N,this._quat=new Vn().setFromUnitVectors(e.up,new N(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new ro,this._sphericalDelta=new ro,this._scale=1,this._panOffset=new N,this._rotateStart=new Be,this._rotateEnd=new Be,this._rotateDelta=new Be,this._panStart=new Be,this._panEnd=new Be,this._panDelta=new Be,this._dollyStart=new Be,this._dollyEnd=new Be,this._dollyDelta=new Be,this._dollyDirection=new N,this._mouse=new Be,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=vm.bind(this),this._onPointerDown=gm.bind(this),this._onPointerUp=xm.bind(this),this._onContextMenu=Am.bind(this),this._onMouseWheel=Em.bind(this),this._onKeyDown=ym.bind(this),this._onTouchStart=Tm.bind(this),this._onTouchMove=bm.bind(this),this._onMouseDown=Mm.bind(this),this._onMouseMove=Sm.bind(this),this._interceptControlDown=wm.bind(this),this._interceptControlUp=Rm.bind(this),this.domElement!==null&&this.connect(this.domElement),this.update()}connect(e){super.connect(e),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerUp),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1}),this.domElement.getRootNode().addEventListener("keydown",this._interceptControlDown,{passive:!0,capture:!0}),this.domElement.style.touchAction="none"}disconnect(){this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerUp),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.stopListenToKeyEvents(),this.domElement.getRootNode().removeEventListener("keydown",this._interceptControlDown,{capture:!0}),this.domElement.style.touchAction="auto"}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(e){e.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=e}stopListenToKeyEvents(){this._domElementKeyEvents!==null&&(this._domElementKeyEvents.removeEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(Fo),this.update(),this.state=nt.NONE}update(e=null){const t=this.object.position;ft.copy(t).sub(this.target),ft.applyQuaternion(this._quat),this._spherical.setFromVector3(ft),this.autoRotate&&this.state===nt.NONE&&this._rotateLeft(this._getAutoRotationAngle(e)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let n=this.minAzimuthAngle,s=this.maxAzimuthAngle;isFinite(n)&&isFinite(s)&&(n<-Math.PI?n+=Ct:n>Math.PI&&(n-=Ct),s<-Math.PI?s+=Ct:s>Math.PI&&(s-=Ct),n<=s?this._spherical.theta=Math.max(n,Math.min(s,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(n+s)/2?Math.max(n,this._spherical.theta):Math.min(s,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),this.enableDamping===!0?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let r=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const a=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),r=a!=this._spherical.radius}if(ft.setFromSpherical(this._spherical),ft.applyQuaternion(this._quatInverse),t.copy(this.target).add(ft),this.object.lookAt(this.target),this.enableDamping===!0?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let a=null;if(this.object.isPerspectiveCamera){const o=ft.length();a=this._clampDistance(o*this._scale);const l=o-a;this.object.position.addScaledVector(this._dollyDirection,l),this.object.updateMatrixWorld(),r=!!l}else if(this.object.isOrthographicCamera){const o=new N(this._mouse.x,this._mouse.y,0);o.unproject(this.object);const l=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),r=l!==this.object.zoom;const c=new N(this._mouse.x,this._mouse.y,0);c.unproject(this.object),this.object.position.sub(c).add(o),this.object.updateMatrixWorld(),a=ft.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;a!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(a).add(this.object.position):(Ms.origin.copy(this.object.position),Ms.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(Ms.direction))<mm?this.object.lookAt(this.target):(Oo.setFromNormalAndCoplanarPoint(this.object.up,this.target),Ms.intersectPlane(Oo,this.target))))}else if(this.object.isOrthographicCamera){const a=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),a!==this.object.zoom&&(this.object.updateProjectionMatrix(),r=!0)}return this._scale=1,this._performCursorZoom=!1,r||this._lastPosition.distanceToSquared(this.object.position)>Er||8*(1-this._lastQuaternion.dot(this.object.quaternion))>Er||this._lastTargetPosition.distanceToSquared(this.target)>Er?(this.dispatchEvent(Fo),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(e){return e!==null?Ct/60*this.autoRotateSpeed*e:Ct/60/60*this.autoRotateSpeed}_getZoomScale(e){const t=Math.abs(e*.01);return Math.pow(.95,this.zoomSpeed*t)}_rotateLeft(e){this._sphericalDelta.theta-=e}_rotateUp(e){this._sphericalDelta.phi-=e}_panLeft(e,t){ft.setFromMatrixColumn(t,0),ft.multiplyScalar(-e),this._panOffset.add(ft)}_panUp(e,t){this.screenSpacePanning===!0?ft.setFromMatrixColumn(t,1):(ft.setFromMatrixColumn(t,0),ft.crossVectors(this.object.up,ft)),ft.multiplyScalar(e),this._panOffset.add(ft)}_pan(e,t){const n=this.domElement;if(this.object.isPerspectiveCamera){const s=this.object.position;ft.copy(s).sub(this.target);let r=ft.length();r*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*e*r/n.clientHeight,this.object.matrix),this._panUp(2*t*r/n.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(e*(this.object.right-this.object.left)/this.object.zoom/n.clientWidth,this.object.matrix),this._panUp(t*(this.object.top-this.object.bottom)/this.object.zoom/n.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(e,t){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const n=this.domElement.getBoundingClientRect(),s=e-n.left,r=t-n.top,a=n.width,o=n.height;this._mouse.x=s/a*2-1,this._mouse.y=-(r/o)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(e){return Math.max(this.minDistance,Math.min(this.maxDistance,e))}_handleMouseDownRotate(e){this._rotateStart.set(e.clientX,e.clientY)}_handleMouseDownDolly(e){this._updateZoomParameters(e.clientX,e.clientX),this._dollyStart.set(e.clientX,e.clientY)}_handleMouseDownPan(e){this._panStart.set(e.clientX,e.clientY)}_handleMouseMoveRotate(e){this._rotateEnd.set(e.clientX,e.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const t=this.domElement;this._rotateLeft(Ct*this._rotateDelta.x/t.clientHeight),this._rotateUp(Ct*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(e){this._dollyEnd.set(e.clientX,e.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(e){this._panEnd.set(e.clientX,e.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(e){this._updateZoomParameters(e.clientX,e.clientY),e.deltaY<0?this._dollyIn(this._getZoomScale(e.deltaY)):e.deltaY>0&&this._dollyOut(this._getZoomScale(e.deltaY)),this.update()}_handleKeyDown(e){let t=!1;switch(e.code){case this.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(Ct*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),t=!0;break;case this.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(-Ct*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),t=!0;break;case this.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(Ct*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),t=!0;break;case this.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(-Ct*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),t=!0;break}t&&(e.preventDefault(),this.update())}_handleTouchStartRotate(e){if(this._pointers.length===1)this._rotateStart.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),s=.5*(e.pageY+t.y);this._rotateStart.set(n,s)}}_handleTouchStartPan(e){if(this._pointers.length===1)this._panStart.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),s=.5*(e.pageY+t.y);this._panStart.set(n,s)}}_handleTouchStartDolly(e){const t=this._getSecondPointerPosition(e),n=e.pageX-t.x,s=e.pageY-t.y,r=Math.sqrt(n*n+s*s);this._dollyStart.set(0,r)}_handleTouchStartDollyPan(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enablePan&&this._handleTouchStartPan(e)}_handleTouchStartDollyRotate(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enableRotate&&this._handleTouchStartRotate(e)}_handleTouchMoveRotate(e){if(this._pointers.length==1)this._rotateEnd.set(e.pageX,e.pageY);else{const n=this._getSecondPointerPosition(e),s=.5*(e.pageX+n.x),r=.5*(e.pageY+n.y);this._rotateEnd.set(s,r)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const t=this.domElement;this._rotateLeft(Ct*this._rotateDelta.x/t.clientHeight),this._rotateUp(Ct*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(e){if(this._pointers.length===1)this._panEnd.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),n=.5*(e.pageX+t.x),s=.5*(e.pageY+t.y);this._panEnd.set(n,s)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(e){const t=this._getSecondPointerPosition(e),n=e.pageX-t.x,s=e.pageY-t.y,r=Math.sqrt(n*n+s*s);this._dollyEnd.set(0,r),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);const a=(e.pageX+t.x)*.5,o=(e.pageY+t.y)*.5;this._updateZoomParameters(a,o)}_handleTouchMoveDollyPan(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enablePan&&this._handleTouchMovePan(e)}_handleTouchMoveDollyRotate(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enableRotate&&this._handleTouchMoveRotate(e)}_addPointer(e){this._pointers.push(e.pointerId)}_removePointer(e){delete this._pointerPositions[e.pointerId];for(let t=0;t<this._pointers.length;t++)if(this._pointers[t]==e.pointerId){this._pointers.splice(t,1);return}}_isTrackingPointer(e){for(let t=0;t<this._pointers.length;t++)if(this._pointers[t]==e.pointerId)return!0;return!1}_trackPointer(e){let t=this._pointerPositions[e.pointerId];t===void 0&&(t=new Be,this._pointerPositions[e.pointerId]=t),t.set(e.pageX,e.pageY)}_getSecondPointerPosition(e){const t=e.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[t]}_customWheelEvent(e){const t=e.deltaMode,n={clientX:e.clientX,clientY:e.clientY,deltaY:e.deltaY};switch(t){case 1:n.deltaY*=16;break;case 2:n.deltaY*=100;break}return e.ctrlKey&&!this._controlActive&&(n.deltaY*=10),n}}function gm(i){this.enabled!==!1&&(this._pointers.length===0&&(this.domElement.setPointerCapture(i.pointerId),this.domElement.addEventListener("pointermove",this._onPointerMove),this.domElement.addEventListener("pointerup",this._onPointerUp)),!this._isTrackingPointer(i)&&(this._addPointer(i),i.pointerType==="touch"?this._onTouchStart(i):this._onMouseDown(i)))}function vm(i){this.enabled!==!1&&(i.pointerType==="touch"?this._onTouchMove(i):this._onMouseMove(i))}function xm(i){switch(this._removePointer(i),this._pointers.length){case 0:this.domElement.releasePointerCapture(i.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.dispatchEvent(vl),this.state=nt.NONE;break;case 1:const e=this._pointers[0],t=this._pointerPositions[e];this._onTouchStart({pointerId:e,pageX:t.x,pageY:t.y});break}}function Mm(i){let e;switch(i.button){case 0:e=this.mouseButtons.LEFT;break;case 1:e=this.mouseButtons.MIDDLE;break;case 2:e=this.mouseButtons.RIGHT;break;default:e=-1}switch(e){case di.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(i),this.state=nt.DOLLY;break;case di.ROTATE:if(i.ctrlKey||i.metaKey||i.shiftKey){if(this.enablePan===!1)return;this._handleMouseDownPan(i),this.state=nt.PAN}else{if(this.enableRotate===!1)return;this._handleMouseDownRotate(i),this.state=nt.ROTATE}break;case di.PAN:if(i.ctrlKey||i.metaKey||i.shiftKey){if(this.enableRotate===!1)return;this._handleMouseDownRotate(i),this.state=nt.ROTATE}else{if(this.enablePan===!1)return;this._handleMouseDownPan(i),this.state=nt.PAN}break;default:this.state=nt.NONE}this.state!==nt.NONE&&this.dispatchEvent(Ea)}function Sm(i){switch(this.state){case nt.ROTATE:if(this.enableRotate===!1)return;this._handleMouseMoveRotate(i);break;case nt.DOLLY:if(this.enableZoom===!1)return;this._handleMouseMoveDolly(i);break;case nt.PAN:if(this.enablePan===!1)return;this._handleMouseMovePan(i);break}}function Em(i){this.enabled===!1||this.enableZoom===!1||this.state!==nt.NONE||(i.preventDefault(),this.dispatchEvent(Ea),this._handleMouseWheel(this._customWheelEvent(i)),this.dispatchEvent(vl))}function ym(i){this.enabled!==!1&&this._handleKeyDown(i)}function Tm(i){switch(this._trackPointer(i),this._pointers.length){case 1:switch(this.touches.ONE){case ci.ROTATE:if(this.enableRotate===!1)return;this._handleTouchStartRotate(i),this.state=nt.TOUCH_ROTATE;break;case ci.PAN:if(this.enablePan===!1)return;this._handleTouchStartPan(i),this.state=nt.TOUCH_PAN;break;default:this.state=nt.NONE}break;case 2:switch(this.touches.TWO){case ci.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(i),this.state=nt.TOUCH_DOLLY_PAN;break;case ci.DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchStartDollyRotate(i),this.state=nt.TOUCH_DOLLY_ROTATE;break;default:this.state=nt.NONE}break;default:this.state=nt.NONE}this.state!==nt.NONE&&this.dispatchEvent(Ea)}function bm(i){switch(this._trackPointer(i),this.state){case nt.TOUCH_ROTATE:if(this.enableRotate===!1)return;this._handleTouchMoveRotate(i),this.update();break;case nt.TOUCH_PAN:if(this.enablePan===!1)return;this._handleTouchMovePan(i),this.update();break;case nt.TOUCH_DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchMoveDollyPan(i),this.update();break;case nt.TOUCH_DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchMoveDollyRotate(i),this.update();break;default:this.state=nt.NONE}}function Am(i){this.enabled!==!1&&i.preventDefault()}function wm(i){i.key==="Control"&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function Rm(i){i.key==="Control"&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}const Cm={class:"content-show"},Pm={__name:"threeModel",props:{isShow:Boolean},setup(i){const e=J.ref(null),t=i;let n,s,r,a,o;const l=()=>{n=new ah,n.background=new We(15790320),s=new zt(75,e.value.clientWidth/e.value.clientHeight,.1,1e3),s.position.z=5,r=new am({antialias:!0}),r.setSize(e.value.clientWidth,e.value.clientHeight),r.setPixelRatio(window.devicePixelRatio),e.value.appendChild(r.domElement),a=new _m(s,r.domElement),a.enableDamping=!0,a.dampingFactor=.05;const f=new xh(16777215,.5);n.add(f);const m=new vh(16777215,.8);m.position.set(1,1,1),n.add(m),c("model"),h()},c=f=>{new fm().load(new URL("/obj/"+f+".mtl",typeof document>"u"?require("url").pathToFileURL(__filename).href:Yn&&Yn.tagName.toUpperCase()==="SCRIPT"&&Yn.src||new URL("index-D9hpN7fS.cjs",document.baseURI).href).href,_=>{_.preload();const v=new dm;v.setMaterials(_),v.load(new URL("/obj/"+f+".obj",typeof document>"u"?require("url").pathToFileURL(__filename).href:Yn&&Yn.tagName.toUpperCase()==="SCRIPT"&&Yn.src||new URL("index-D9hpN7fS.cjs",document.baseURI).href).href,p=>{o=p,o.rotation.set(50,-20,200),n.add(o);const d=new Si().setFromObject(o),b=d.getSize(new N).length(),T=d.getCenter(new N);s.position.copy(T),s.position.z+=b*.6,s.lookAt(T),a.target.copy(T)},p=>{console.log(p.loaded/p.total*100+"% loaded")},p=>{console.error("An error happened loading the OBJ model:",p)})},_=>{console.log(_.loaded/_.total*100+"% loaded")},_=>{console.error("An error happened loading the MTL materials:",_)})},h=()=>{requestAnimationFrame(h),a.update(),r.render(n,s)},u=()=>{s.aspect=e.value.clientWidth/e.value.clientHeight,s.updateProjectionMatrix(),r.setSize(e.value.clientWidth,e.value.clientHeight)};return J.onMounted(()=>{window.addEventListener("resize",u),l()}),J.watch(()=>t==null?void 0:t.isShow,()=>{t!=null&&t.isShow&&!a&&!r&&setTimeout(()=>{window.addEventListener("resize",u),l()},100)},{deep:!0,immediate:!0}),J.onBeforeUnmount(()=>{window.removeEventListener("resize",u),r&&r.dispose(),a&&a.dispose()}),(f,m)=>(J.openBlock(),J.createElementBlock("div",Cm,[J.createElementVNode("div",{ref_key:"container",ref:e,class:"three-container"},null,512)]))}},Dm=ha._export_sfc(Pm,[["__scopeId","data-v-76c55260"]]),xl=li.defineStore("unit",{state:()=>({selectIndex:"",selectMenu:"",selectTitle:[]}),actions:{setSelectIndex(i){this.selectIndex=i},setSelectMenu(i){this.selectMenu=i},setSelectTitle(i){this.selectTitle=i}}}),Ml=(i,e)=>{let t=i,n=e;return Array.isArray(t)&&(t=t==null?void 0:t.map((s,r)=>{if(Array.isArray(s)){let a={};return s=s==null?void 0:s.forEach((o,l)=>{var c;(c=n==null?void 0:n[l])!=null&&c.prop?a[n[l].prop]=o:Array.isArray(o)&&(a.children=Ml(o,n))}),Object.assign(a,{id:r})}else return s})),t},Sl=(i,e,t)=>{let n=i,s=e;return n=n==null?void 0:n.map((r,a)=>{var o,l;return!Array.isArray(r)||!((o=s==null?void 0:s[a])!=null&&o.label)&&!t||(r.unshift(((l=s==null?void 0:s[a])==null?void 0:l.label)??""),r.some(c=>Array.isArray(c))&&(r=r==null?void 0:r.map(c=>{var h;return Array.isArray(c)&&(c=Sl(c,(h=s==null?void 0:s[a])==null?void 0:h.children,t)),c}))),r}),n},Lm=(i,e,t)=>{if(e==="")return i==null?void 0:i.filter(n=>(n==null?void 0:n.id)!==t);{const n=e.split("-");return Um(i,n,t)}},Um=(i,e,t)=>{let n=i,s=e;return(s==null?void 0:s.length)===0?n=n==null?void 0:n.filter(r=>r.id!==t):n=n==null?void 0:n.map(r=>(r.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),r=El(r,s,t)),r)),n},El=(i,e,t)=>{var r,a;let n=i,s=e;return(s==null?void 0:s.length)===0?n.children=(r=n.children)==null?void 0:r.filter(o=>o.id!==t):n.children=(a=n.children)==null?void 0:a.map(o=>(o.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),o=El(o,s,t)),o)),n},Im=(i,e,t)=>{if(e==="")return t;{const n=e.split("-");return Nm(i,n,t)}},Nm=(i,e,t)=>{let n=i,s=e;return(s==null?void 0:s.length)===0?n=t:n=n==null?void 0:n.map(r=>(r.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),r=yl(r,s,t)),r)),n},yl=(i,e,t)=>{var r;let n=i,s=e;return(s==null?void 0:s.length)===0?n.children=t:n.children=(r=n.children)==null?void 0:r.map(a=>(a.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),a=yl(a,s,t)),a)),n},Tl=async(i,e,t="")=>{var h,u,f,m,_,v;const n=await kn.getInsofDataApi({key:{pageKey:i,systemKey:e,parentTable:t}}),s=await kn.getInsofDataApi({key:{pageKey:i,systemKey:e,type:"structureMethod"}}),r=(h=n.data.result)==null?void 0:h.map(p=>p.id),a=r==null?void 0:r.map(p=>kn.getInsofDataApi({key:{pageKey:i,systemKey:e,tableId:p}})),o=await Promise.all(a),l=[];o==null||o.forEach(p=>{var T,S,L,A;const d=(T=p.data.result)==null?void 0:T.map(C=>{const F=C.value.tableData;return F.unshift({id:C.id}),F}),b=(A=(L=(S=p.data.result)==null?void 0:S[0])==null?void 0:L.key)==null?void 0:A.tableId;l.push({key:b,contents:d})});const c=[];return(u=n.data.result)==null||u.forEach(p=>{var T,S;const d=p.value.pageData,b=ut.cloneDeep(d.compData);if(b.push({key:"tableContents",contents:(T=l==null?void 0:l.find(L=>(L==null?void 0:L.key)===p.id))==null?void 0:T.contents}),d.compData=b,d.id=p.id,((S=p.key)==null?void 0:S.type)!=="method")c.push(d);else{let L;L={name:"",compData:[d],comp:"calculator"},c.push(L)}}),((m=(f=s.data.result)==null?void 0:f.map(p=>p.value.pageData))==null?void 0:m.filter(p=>Object.values(p).length>0).length)>0&&c.push({comp:"methodButton",name:"",compData:(v=(_=s.data.result)==null?void 0:_.map(p=>p.value.pageData))==null?void 0:v.filter(p=>Object.values(p).length>0)}),c},Fm=async i=>{await kn.deleteInsofDataApi({id:i})},Om=async(i,e,t,n,s)=>{await kn.createInsofDataApi({key:{type:i,pageKey:e,tableId:t,systemKey:n},value:{tableData:s}})},Bm=async(i,e,t,n,s,r)=>{await kn.updateInsofDataApi({key:{type:i,pageKey:e,tableId:t,systemKey:s},value:{tableData:r},id:n})},zm=async(i,e)=>{await kn.updateInsofDataApi({value:{pageData:e},id:i})},km={class:"table-content"},Hm=["onClick"],Vm={class:"form-content"},Gm={key:0,class:"dialog-footer"},Wm={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change","contentChange","onButtonClick","contentClick","pageChange"],setup(i,{emit:e}){const t=i,n=e,s=J.ref([]),r=li.useMenuState(),{activeMenuPath:a}=li.storeToRefs(r),o=Dl.useModelComp(Hs.pinia),{extraContents:l}=li.storeToRefs(o),c=J.ref([]),h=J.ref(!1),u=J.ref("");J.ref();const f=J.ref(!0),m=J.ref(0),_=J.ref(!1),v=J.ref(""),p=J.ref(!1),d=J.ref({label:"查看三维模型"}),b=J.ref([]),T=J.ref(!1),S=J.ref([]),L=J.ref([]),A=J.ref(),C=J.ref(),F=Ul.useFormToTableComp(Hs.pinia),E=J.ref(),M=xl(Hs.pinia),{selectIndex:P,selectMenu:q,selectTitle:H}=li.storeToRefs(M),{selectString:j}=li.storeToRefs(F),ne=J.ref(720),K=()=>{p.value=!1},ae=(G,Y)=>{if(Object.values(Y).length!==0)return Object.values(Y).find(ie=>{var me,se;return((me=ie==null?void 0:ie.toString())==null?void 0:me.includes(".obj"))||((se=ie==null?void 0:ie.toString())==null?void 0:se.includes(".stl"))})?[...G,d.value]:G},V=async G=>{var ie,me,se,ce,we,Ie,w;let Y=await Tl(a.value,sessionStorage.getItem("systemKey"),G.id);if(Y=Y==null?void 0:Y.filter(rt=>rt.comp!=="methodButton"),Y&&Y.length>0){const rt=!Array.isArray(H.value)&&((ie=H.value)==null?void 0:ie.key)!=="main"?[]:H.value;rt.push({key:q.value===""?(me=G==null?void 0:G.id)==null?void 0:me.toString():q.value+"-"+((se=G==null?void 0:G.id)==null?void 0:se.toString()),value:G[(ce=Object.keys(G))==null?void 0:ce.filter(Xe=>Xe!=="index"&&Xe!=="id")[0]]}),M.setSelectMenu(q.value===""?(we=G==null?void 0:G.id)==null?void 0:we.toString():q.value+"-"+((Ie=G==null?void 0:G.id)==null?void 0:Ie.toString())),M.setSelectTitle(rt),M.setSelectIndex((w=G==null?void 0:G.id)==null?void 0:w.toString()),n("pageChange",Y)}},fe=G=>{var Y;(Y=ut.cloneDeep(t.itemData))==null||Y.map(ie=>((ie==null?void 0:ie.key)==="tableContents"&&(ie.contents=G),ie))},ve=(G,Y,ie)=>{n("contentClick",G,Y,ie,{id:t==null?void 0:t.index})};J.watch(()=>t.changedContent,()=>{var ie,me;if(!t.changedContent)return;let G=(ie=c.value)==null?void 0:ie.map(se=>{var ce;return se.id===((ce=t.changedContent)==null?void 0:ce.id)&&(se={...t.changedContent,id:t.changedContent.newId?t.changedContent.newId:t.changedContent.id},delete se.newId),se});const Y=(me=t.itemData)==null?void 0:me.map(se=>((se==null?void 0:se.key)==="tableContents"&&(se.contents=G),se));c.value=G,console.log(133,t.changedContent,G),n("contentChange",{contents:Y,index:t.index}),n("change",{content:G,index:t==null?void 0:t.index,buttonName:"",id:t==null?void 0:t.index})},{deep:!0,immediate:!0});const Ae=(G,Y)=>{var ie;if(u.value="",T.value=!0,f.value=!0,n("onButtonClick",G,Y),G==="删除"){c.value=(ie=ut.cloneDeep(c.value))==null?void 0:ie.filter(se=>(se==null?void 0:se.id)!==(Y==null?void 0:Y.id));const me=Lm(E.value,q.value,Y==null?void 0:Y.id);fe(me),n("change",{content:c.value,singleContent:Y,index:t==null?void 0:t.index,type:"delete",buttonName:G})}else G==="新增"?(v.value="新增",$e(""),p.value=!0):G==="编辑"?(v.value="编辑",$e(Y),p.value=!0):G==="查看"?(v.value="查看",$e(Y),T.value=!1,f.value=!1,p.value=!0):G==="查看三维模型"&&(h.value=!0)},Ge=()=>{h.value=!1},$e=G=>{var me,se;const Y=[];let ie=[];for(let ce in G)Array.isArray(G==null?void 0:G[ce])&&ie.push(ce);(se=Bo((me=ut.cloneDeep(s.value))==null?void 0:me.filter(ce=>(ce==null?void 0:ce.label)!=="操作")))==null||se.forEach((ce,we)=>{ie.find(Ie=>Ie===(ce==null?void 0:ce.prop))||Y.push({label:(ce==null?void 0:ce.label)??"",name:(ce==null?void 0:ce.prop)??"t"+we,type:!(ce!=null&&ce.formType)||(ce==null?void 0:ce.formType)===""?"Input":ce==null?void 0:ce.formType,value:(G==null?void 0:G[ce==null?void 0:ce.prop])??"",id:(ce==null?void 0:ce.id)??we,contents:(ce==null?void 0:ce.options)??[],width:1,isFormColHidden:ce==null?void 0:ce.isFormColHidden})}),G===""||!G||(u.value=G==null?void 0:G.id),L.value=Y};J.onMounted(()=>{});const $=()=>{let G,Y=ut.cloneDeep(c.value);u.value===""?(m.value++,Y.push(Object.assign(C.value,{id:m.value})),G=Object.assign(C.value,{id:m.value})):Y=Y==null?void 0:Y.map(me=>((me==null?void 0:me.id)===u.value&&(me=Object.assign(me,C.value),G=me),me)),c.value=Y;const ie=Im(E.value,q.value,Y);fe(ie),p.value=!1,n("change",{content:ie,singleContent:G,index:t==null?void 0:t.index,buttonName:v.value})},oe=G=>{C.value=G};return J.watch(()=>[t.itemData,j.value,P.value,q.value,l==null?void 0:l.value],()=>{var w,rt,Xe,Qe,Ee,Ye,Re,Oe,ot,y,g,O,Z,Q,W,ye,he,Me,Te,ee,_e,De,Pe;const G=(w=ut.cloneDeep(t.itemData))==null?void 0:w.filter(X=>(X==null?void 0:X.key)==="header");(rt=ut.cloneDeep(t.itemData))==null||rt.filter(X=>(X==null?void 0:X.key)==="tableIndexColumn")[0];const Y=(Xe=ut.cloneDeep(t.itemData))==null?void 0:Xe.find(X=>(X==null?void 0:X.key)==="page"),ie=(Qe=ut.cloneDeep(t.itemData))==null?void 0:Qe.find(X=>(X==null?void 0:X.key)==="rowButton"),me=(Ee=ut.cloneDeep(t.itemData))==null?void 0:Ee.find(X=>(X==null?void 0:X.key)==="extraButton"),se=(Ye=ut.cloneDeep(t.itemData))==null?void 0:Ye.filter(X=>(X==null?void 0:X.key)==="tableContents"),ce=(Re=ut.cloneDeep(t.itemData))==null?void 0:Re.filter(X=>(X==null?void 0:X.key)==="tableIndex");_.value=(Y==null?void 0:Y.contents)??!0;let we=[];j.value===""?we=G==null?void 0:G[0]:we=(G==null?void 0:G.find(X=>(X==null?void 0:X.selectLabel)==="("+j.value+")"))??(G==null?void 0:G.find(X=>!(X!=null&&X.selectLabel)));let Ie=[];if(j.value===""?Ie=ce==null?void 0:ce[0]:Ie=(ce==null?void 0:ce.find(X=>(X==null?void 0:X.selectLabel)==="("+j.value+")"))??(ce==null?void 0:ce.find(X=>!(X!=null&&X.selectLabel))),((Oe=we==null?void 0:we.contents)==null?void 0:Oe.length)>0){let X=[];if(we!=null&&we.contents.some(z=>Array.isArray(z)&&(z==null?void 0:z.find(U=>U.children))))q.value===""?X=(y=(ot=ba(ut.cloneDeep(we==null?void 0:we.contents)))==null?void 0:ot[0])==null?void 0:y.filter(z=>!Array.isArray(z)):(q.value.split("-"),X=(g=ba(ut.cloneDeep(we==null?void 0:we.contents)))==null?void 0:g[0]);else{const z=we!=null&&we.contents.some(U=>Array.isArray(U))?(O=we==null?void 0:we.contents)==null?void 0:O[0]:we==null?void 0:we.contents;z==null||z.forEach((U,ue)=>{X.push({label:(U==null?void 0:U.label)??"",prop:(U==null?void 0:U.label)==="操作"?"operate":(U==null?void 0:U.prop)??"a"+ue,width:(U==null?void 0:U.label)==="操作"?"200":U!=null&&U.width?parseInt(U.width):"",fixed:(U==null?void 0:U.fixed)??void 0,sortable:(U==null?void 0:U.sortable)??!1,align:(U==null?void 0:U.align)??"center",showOverflowTooltip:(U==null?void 0:U.showOverflowTooltip)??!0,isNotDrag:(U==null?void 0:U.isNotDrag)??!1,isEditCol:(U==null?void 0:U.isEditCol)??!1,isOperate:(U==null?void 0:U.isOperate)??!1,id:(U==null?void 0:U.id)??ue,type:(U==null?void 0:U.label)==="操作"?"operate":void 0,formType:(U==null?void 0:U.formType)??"",isTableColHidden:U==null?void 0:U.isTableColHidden,isFormColHidden:U==null?void 0:U.isFormColHidden,options:(U==null?void 0:U.options)??[]})})}s.value=X;let be=(Q=(Z=Nl(ut.cloneDeep(s.value)))==null?void 0:Z.filter(z=>(z==null?void 0:z.type)!=="operate"))==null?void 0:Q.map((z,U)=>({prop:(z==null?void 0:z.prop)??"a"+U,column:z.label}));A.value=be;let R=[];j.value===""?R=se==null?void 0:se[0]:R=(se==null?void 0:se.find(z=>(z==null?void 0:z.selectLabel)==="("+j.value+")"))??(se==null?void 0:se.find(z=>!(z!=null&&z.selectLabel)));let le=Array.isArray((W=R==null?void 0:R.contents)==null?void 0:W[0])&&((ye=R==null?void 0:R.contents)!=null&&ye[0].every(z=>Array.isArray(z)))?(he=ut.cloneDeep(R==null?void 0:R.contents))==null?void 0:he[0]:ut.cloneDeep(R==null?void 0:R.contents);Ie!=null&&Ie.contents&&((Me=Ie==null?void 0:Ie.contents)==null?void 0:Me.length)!==0&&(le=(Te=ut.cloneDeep(le))==null?void 0:Te.map((z,U)=>{if(!Array.isArray(z)){let ue={};for(let Le in z)Le!=="id"&&Le!=="index"&&(ue[Le]=z[Le]);z=Object.values(ue)}return z}));const te=!!((ee=s.value)!=null&&ee.find(z=>z.prop==="index"));le=Sl(ut.cloneDeep(le),Ie==null?void 0:Ie.contents,te);const ge=[];le==null||le.forEach((z,U)=>{var Le;let ue={};if(Array.isArray(z)){let ze=[];z==null||z.filter(He=>!He.id).forEach((He,ht)=>{var It,Ti,bi,Kt,Xn,Ai;if((It=be==null?void 0:be[ht])!=null&&It.prop&&!Array.isArray(He)){let Zt={};Zt[be[ht].column]=He,l!=null&&l.value&&((Ti=l==null?void 0:l.value)==null?void 0:Ti.length)>0&&((bi=l==null?void 0:l.value)!=null&&bi.find(Mt=>JSON.stringify(Mt==null?void 0:Mt[0])===JSON.stringify(Zt)))&&(ze=(Kt=l==null?void 0:l.value)==null?void 0:Kt.find(Mt=>JSON.stringify(Mt==null?void 0:Mt[0])===JSON.stringify(Zt))),ze&&ze.length>0?ue[be[ht].prop]=ze!=null&&ze.find(Mt=>{var _n;return((_n=Object.keys(Mt))==null?void 0:_n[0])===be[ht].column})?(Xn=ze==null?void 0:ze.find(Mt=>{var _n;return((_n=Object.keys(Mt))==null?void 0:_n[0])===be[ht].column}))==null?void 0:Xn[be[ht].column]:He:ue[be[ht].prop]=He}else Array.isArray(He)&&(He.find(Zt=>(Zt==null?void 0:Zt.key)==="tableContentName")&&((Ai=be[ht])!=null&&Ai.prop)?ue[be[ht].prop]=He:ue.children=Ml(He,be))})}else ue=z;Array.isArray(z)&&z.some(ze=>ze==null?void 0:ze.id)?ge.push(Object.assign(ue,{id:(Le=z==null?void 0:z.find(ze=>ze.id))==null?void 0:Le.id})):ue.id?ge.push(ue):ge.push(Object.assign(ue,{id:U}))}),c.value=ge}else s.value=[],c.value=[];((_e=ie==null?void 0:ie.contents)==null?void 0:_e.length)>0?b.value=ie==null?void 0:ie.contents:b.value=[],((De=me==null?void 0:me.contents)==null?void 0:De.length)>0?S.value=me==null?void 0:me.contents:S.value=[],m.value=((Pe=c==null?void 0:c.value)==null?void 0:Pe.length)??0,E.value=c.value},{deep:!0,immediate:!0}),(G,Y)=>{var ie;return J.openBlock(),J.createElementBlock("div",km,[(J.openBlock(),J.createBlock(Ii.ssTable,{columns:s.value,key:s.value,tableData:c.value,isShowPagination:_.value,isShowEdit:!1,isShowDelete:!1,onDbClickRow:V,extraButton:S.value,onButtonClick:Y[1]||(Y[1]=me=>Ae(me,"")),onContentClick:ve},J.createSlots({headerButton:J.withCtx(me=>[J.createVNode(Vl,{buttons:me.buttons,onButtonClick:Y[0]||(Y[0]=se=>Ae(se,"")),columns:s.value},null,8,["buttons","columns"])]),_:2},[((ie=b.value)==null?void 0:ie.length)>0?{name:"actions",fn:J.withCtx(({item:me})=>[(J.openBlock(!0),J.createElementBlock(J.Fragment,null,J.renderList(ae(b.value,me),(se,ce)=>(J.openBlock(),J.createElementBlock("div",{key:ce},[J.createElementVNode("div",{style:J.normalizeStyle({color:se==null?void 0:se.textColor}),class:"extra-button-label",onClick:we=>Ae(se==null?void 0:se.label,me)},J.toDisplayString(se==null?void 0:se.label),13,Hm)]))),128))]),key:"0"}:void 0]),1032,["columns","tableData","isShowPagination","extraButton"])),J.createVNode(Ii.ssDialog,{title:v.value,visible:p.value,width:ne.value,onBeforeDestroy:K},{default:J.withCtx(()=>[J.createElementVNode("div",Vm,[J.createVNode(Ii.ssForm,{rowContents:L.value,isEnableWrap:!1,onChange:oe,isEdit:f.value},null,8,["rowContents","isEdit"])])]),footer:J.withCtx(()=>[T.value?(J.openBlock(),J.createElementBlock("div",Gm,[J.createElementVNode("div",{onClick:Y[2]||(Y[2]=me=>p.value=!1),class:"cancel-button"},J.toDisplayString("取消")),J.createElementVNode("div",{class:"ok-button",onClick:$},J.toDisplayString("确认"))])):J.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),J.createVNode(Ii.ssDialog,{visible:h.value,fullScreen:"",onBeforeDestroy:Ge},{default:J.withCtx(()=>[J.createVNode(Dm,{isShow:h.value},null,8,["isShow"])]),_:1},8,["visible"])])}}},Xm=ha._export_sfc(Wm,[["__scopeId","data-v-3d3fe2f2"]]);exports.addTableContents=Om;exports.deleteTableContents=Fm;exports.fixFormContents=zm;exports.fixTableContents=Bm;exports.getItemData=Tl;exports.ssTable=Xm;exports.useUnit=xl;
@@ -6017,12 +6017,12 @@ const I9 = N4(P, "$notify"), D9 = [
6017
6017
  {
6018
6018
  path: "/login",
6019
6019
  name: "Login",
6020
- component: async () => import("./index-CqqTKwBE.js")
6020
+ component: async () => import("./index-BkTS_fZm.js")
6021
6021
  },
6022
6022
  {
6023
6023
  path: "/",
6024
6024
  name: "Model",
6025
- component: async () => import("./index-B3owqjNU.js"),
6025
+ component: async () => import("./index-CY3mio5P.js"),
6026
6026
  // component: async ()=>import('@/components/views/model/component/main.vue'),
6027
6027
  // component: async ()=>import('@/components/views/canvas/index.vue'),
6028
6028
  // component: async ()=>import('@/components/views/test/index.vue'),
@@ -6030,27 +6030,27 @@ const I9 = N4(P, "$notify"), D9 = [
6030
6030
  {
6031
6031
  path: "personalCenter",
6032
6032
  name: "PersonalCenter",
6033
- component: async () => import("./index-CffKSSJO.js")
6033
+ component: async () => import("./index-BLbETMA6.js")
6034
6034
  },
6035
6035
  {
6036
6036
  path: "post",
6037
6037
  name: "Post",
6038
- component: async () => import("./index-_PENA18R.js")
6038
+ component: async () => import("./index-ll1liVTf.js")
6039
6039
  },
6040
6040
  {
6041
6041
  path: "user",
6042
6042
  name: "User",
6043
- component: async () => import("./index-B63gtCe6.js")
6043
+ component: async () => import("./index-mZHi59nQ.js")
6044
6044
  },
6045
6045
  {
6046
6046
  path: "role",
6047
6047
  name: "Role",
6048
- component: async () => import("./index-CN-hqH2f.js")
6048
+ component: async () => import("./index-CNsGu3TP.js")
6049
6049
  },
6050
6050
  {
6051
6051
  path: "dept",
6052
6052
  name: "Dept",
6053
- component: async () => import("./index-DWKu5ewQ.js")
6053
+ component: async () => import("./index-BYZ5RpUQ.js")
6054
6054
  },
6055
6055
  {
6056
6056
  path: "priority",
@@ -1 +1 @@
1
- "use strict";const e=require("./request-DiZL1i6U.cjs");function a(t){return e.service({url:"/api/insofData/add",method:"post",data:t})}function i(t){return e.service({url:"/api/insofData/get",method:"post",data:t})}function n(t){return e.service({url:"/api/insofData/update",method:"post",data:t})}function o(t){return e.service({url:"/api/insofData/delete",method:"post",data:t})}exports.createInsofDataApi=a;exports.deleteInsofDataApi=o;exports.getInsofDataApi=i;exports.updateInsofDataApi=n;
1
+ "use strict";const e=require("./request-CXfMIPUe.cjs");function a(t){return e.service({url:"/api/insofData/add",method:"post",data:t})}function i(t){return e.service({url:"/api/insofData/get",method:"post",data:t})}function n(t){return e.service({url:"/api/insofData/update",method:"post",data:t})}function o(t){return e.service({url:"/api/insofData/delete",method:"post",data:t})}exports.createInsofDataApi=a;exports.deleteInsofDataApi=o;exports.getInsofDataApi=i;exports.updateInsofDataApi=n;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as se, ref as he, reactive as Re, resolveComponent as it, createElementBlock as ce, openBlock as le, createVNode as Y, withCtx as H, createElementVNode as _, createTextVNode as gt, toDisplayString as Ae, nextTick as Ie, Fragment as Le, renderSlot as Be } from "vue";
2
- import { Q as ke, a4 as Pe, j as pe, m as R, N as V } from "./index-C5bM0MD4.js";
2
+ import { Q as ke, a4 as Pe, j as pe, m as R, N as V } from "./index-DUYaqiLC.js";
3
3
  import { i as He } from "./isNil-CjWwlQS3.js";
4
4
  import { m as Wt } from "./typescript-BpuhIBuJ.js";
5
5
  import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";