ss-component-new 1.1.182 → 1.1.183

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 (70) hide show
  1. package/dist/{array-BOPS5m8_.js → array-CKFeRuXx.js} +9 -9
  2. package/dist/{array-Bu5vBZdn.cjs → array-yS93GpFh.cjs} +1 -1
  3. package/dist/{cloneDeep-0yH-hote.js → cloneDeep-ptqcNoLQ.js} +1 -1
  4. package/dist/{cloneDeep-BP-2mJP0.cjs → cloneDeep-wWT7F5V9.cjs} +1 -1
  5. package/dist/{formToTable-BFF3cN45.cjs → formToTable-D8p_7BL5.cjs} +1 -1
  6. package/dist/{formToTable-BEfXQdIR.js → formToTable-kzbUTMeG.js} +1 -1
  7. package/dist/{index-WTsu7Kxj.js → index-32zMKTCS.js} +1 -1
  8. package/dist/index-5gIyT35D.cjs +1 -0
  9. package/dist/{index-Bc4ECpW1.js → index-B1RwU1Yy.js} +7 -7
  10. package/dist/{index-DQ_AISiu.js → index-B2reOYdD.js} +6 -6
  11. package/dist/{index-DSNHkESk.cjs → index-BHNpXM7v.cjs} +1 -1
  12. package/dist/{index-B6nfWxrH.cjs → index-BTqzaKZG.cjs} +2 -2
  13. package/dist/{index-BNiSvl0o.js → index-BcmfEVff.js} +1 -1
  14. package/dist/{index-BvIOoGTh.cjs → index-Bi5QL47F.cjs} +1 -1
  15. package/dist/{index-QZx2dgJj.js → index-Bl-0RurV.js} +7 -7
  16. package/dist/{index-BgZAn-Lf.js → index-BuHfHCU0.js} +57 -56
  17. package/dist/{index-B8Ter2NG.cjs → index-CMLwNzie.cjs} +1 -1
  18. package/dist/{index-C8le_wu8.js → index-CMlB-TxD.js} +7 -7
  19. package/dist/{index-BBLKXcoj.js → index-CRRxsIoM.js} +1 -1
  20. package/dist/{index-Du4PpCzC.cjs → index-CWXiZ_39.cjs} +1 -1
  21. package/dist/{index-BQ1KWVcN.cjs → index-CYFbyJP1.cjs} +1 -1
  22. package/dist/{index-CHE104E-.cjs → index-Ce8y7b6N.cjs} +1 -1
  23. package/dist/{index-BMxkOcQf.cjs → index-CiwAmPI1.cjs} +1 -1
  24. package/dist/{index-D5MredWL.js → index-Cj9MeB6d.js} +6 -6
  25. package/dist/{index-CmqBTZma.js → index-Cv5UrSOt.js} +6 -6
  26. package/dist/{index-MZVyuWj0.js → index-Cvw7aXmX.js} +1 -1
  27. package/dist/{index-Cdsw4LNz.js → index-CxuWwQFp.js} +4 -4
  28. package/dist/{index-D-AZZbJC.cjs → index-DSFOuo8T.cjs} +1 -1
  29. package/dist/{index-DfnJrHeI.cjs → index-DXF8TgyC.cjs} +1 -1
  30. package/dist/{index-ls8mDJZJ.cjs → index-DZVCmcCJ.cjs} +1 -1
  31. package/dist/{index-C7r0LnNf.js → index-DZbaNTdt.js} +7 -7
  32. package/dist/{index-BHn6q4s8.cjs → index-DjHji-RQ.cjs} +1 -1
  33. package/dist/{index-V-Crw6ej.js → index-Dm2-njPX.js} +1 -1
  34. package/dist/{index-DFvn1kqD.js → index-DtcZSXc9.js} +1 -1
  35. package/dist/{index-KNliDdWk.cjs → index-DxVrxHU9.cjs} +1 -1
  36. package/dist/{index-BrnwKj7D.js → index-ZFCchT5E.js} +20 -15
  37. package/dist/{index-BI6W69Js.cjs → index-Zqbph7id.cjs} +1 -1
  38. package/dist/{index-B27f0Exg.js → index-_xD-UozG.js} +5 -5
  39. package/dist/{index-CBTIIjfC.js → index-fYUwhoC0.js} +7 -7
  40. package/dist/{index-CWGQlCq-.js → index-pgg0WYJD.js} +11 -11
  41. package/dist/{index-DDA2ID7_.js → index-sTBMcpga.js} +4 -4
  42. package/dist/{index-3dFsDHVK.cjs → index-uUIiw9fx.cjs} +1 -1
  43. package/dist/{index-njQP31Ok.cjs → index-ubJq0geI.cjs} +1 -1
  44. package/dist/{index-zzft0vfE.cjs → index-vDxkLZCX.cjs} +1 -1
  45. package/dist/index-xA6oBKw1.cjs +1 -0
  46. package/dist/{index-BpVAr33y.cjs → index-xbVcs94X.cjs} +1 -1
  47. package/dist/{index.vue_vue_type_script_setup_true_lang-BBt861N1.cjs → index.vue_vue_type_script_setup_true_lang-B94GQi7O.cjs} +1 -1
  48. package/dist/{index.vue_vue_type_script_setup_true_lang-Bx64s7No.js → index.vue_vue_type_script_setup_true_lang-CAm1lczB.js} +6 -6
  49. package/dist/{index.vue_vue_type_style_index_0_scoped_baf99455_lang-LSYQ5x3K.js → index.vue_vue_type_style_index_0_scoped_baf99455_lang-DypM_Bv9.js} +6 -6
  50. package/dist/{index.vue_vue_type_style_index_0_scoped_baf99455_lang-Cy0xqqRM.cjs → index.vue_vue_type_style_index_0_scoped_baf99455_lang-FcIBePX9.cjs} +1 -1
  51. package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-B6qKUJ3x.cjs → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DnCr2hHT.cjs} +1 -1
  52. package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DdJC7cdL.js → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Fr0sgpOo.js} +6 -6
  53. package/dist/{login-CmwElFt0.js → login-BZA9GhM1.js} +3 -3
  54. package/dist/{login-DBtfJ37x.cjs → login-bbTyKyTk.cjs} +1 -1
  55. package/dist/{main-CHXZ1W6g.js → main-DQaIGKLX.js} +6 -6
  56. package/dist/{main-DtwkR8sX.cjs → main-b_H3WxtI.cjs} +1 -1
  57. package/dist/{menu-Ct8N85CU.cjs → menu-IE9q9ekO.cjs} +1 -1
  58. package/dist/{menu-jcJH6mMj.js → menu-WPQ8JcMg.js} +1 -1
  59. package/dist/{modelComp-DyjsOdsu.cjs → modelComp-B54FcUDU.cjs} +1 -1
  60. package/dist/{modelComp-DGOJeakI.js → modelComp-L3gGUSiO.js} +1 -1
  61. package/dist/{request-BsJ0cN51.js → request-MJiCtaDl.js} +1 -1
  62. package/dist/{request-Bcv3sX8k.cjs → request-r_sL_ASa.cjs} +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
  69. package/dist/index-C-1eA_9B.cjs +0 -1
  70. package/dist/index-CyxDF1Vt.cjs +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";const J=require("vue"),ks=require("./request-Bcv3sX8k.cjs"),Pl=require("./modelComp-DyjsOdsu.cjs"),Dl=require("./index-zzft0vfE.cjs"),Ui=require("./index-CHE104E-.cjs"),ut=require("./cloneDeep-BP-2mJP0.cjs"),ca=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ll=require("./formToTable-BFF3cN45.cjs"),oi=require("./menu-Ct8N85CU.cjs"),kn=require("./index-BHn6q4s8.cjs"),Ul={__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"])}}},hi=J.ref(0),Rs=i=>(hi.value++,i==null?void 0:i.map(t=>Array.isArray(t)?Rs(t):{label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":(t==null?void 0:t.prop)??"a"+hi.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)??hi.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:Rs(t.children)??void 0})),Il=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},Ta=i=>ut.cloneDeep(i).map(t=>(Array.isArray(t)&&(t=t.map(n=>(Array.isArray(n)?n=Rs(n):(n={label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":(n==null?void 0:n.prop)??"a"+hi.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)??hi.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:Rs(n.children)},hi.value++),n))),t)),Oo=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)},Nl={class:"extra-button-content"},Fl={key:0,class:"extra-header"},Ol=["onClick"],Bl={class:"extra-button-filter"},zl={class:"form-content-value"},kl={__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=Oo(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",Nl,[n!=null&&n.buttons&&((m=n==null?void 0:n.buttons)==null?void 0:m.length)>0?(J.openBlock(),J.createElementBlock("div",Fl,[(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,Ol)]))),128))])):J.createCommentVNode("",!0),J.createElementVNode("div",Bl,[J.createVNode(Ul,{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(Dl.filter_default),{color:"var(--ssComponent-black)"})])]),_:1})]),content:J.withCtx(()=>[J.createElementVNode("div",zl,[(J.openBlock(),J.createBlock(Ui.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"])])])}}},Hl=ca._export_sfc(kl,[["__scopeId","data-v-3cf75373"]]);/**
1
+ "use strict";const J=require("vue"),ks=require("./request-r_sL_ASa.cjs"),Pl=require("./modelComp-B54FcUDU.cjs"),Dl=require("./index-vDxkLZCX.cjs"),Ui=require("./index-Ce8y7b6N.cjs"),ut=require("./cloneDeep-wWT7F5V9.cjs"),ca=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ll=require("./formToTable-D8p_7BL5.cjs"),oi=require("./menu-IE9q9ekO.cjs"),kn=require("./index-DjHji-RQ.cjs"),Ul={__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"])}}},hi=J.ref(0),Rs=i=>(hi.value++,i==null?void 0:i.map(t=>Array.isArray(t)?Rs(t):{label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":(t==null?void 0:t.prop)??"a"+hi.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)??hi.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:Rs(t.children)??void 0})),Il=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},Ta=i=>ut.cloneDeep(i).map(t=>(Array.isArray(t)&&(t=t.map(n=>(Array.isArray(n)?n=Rs(n):(n={label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":(n==null?void 0:n.prop)??"a"+hi.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)??hi.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:Rs(n.children)},hi.value++),n))),t)),Oo=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)},Nl={class:"extra-button-content"},Fl={key:0,class:"extra-header"},Ol=["onClick"],Bl={class:"extra-button-filter"},zl={class:"form-content-value"},kl={__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=Oo(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",Nl,[n!=null&&n.buttons&&((m=n==null?void 0:n.buttons)==null?void 0:m.length)>0?(J.openBlock(),J.createElementBlock("div",Fl,[(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,Ol)]))),128))])):J.createCommentVNode("",!0),J.createElementVNode("div",Bl,[J.createVNode(Ul,{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(Dl.filter_default),{color:"var(--ssComponent-black)"})])]),_:1})]),content:J.withCtx(()=>[J.createElementVNode("div",zl,[(J.openBlock(),J.createBlock(Ui.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"])])])}}},Hl=ca._export_sfc(kl,[["__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(Do);switch(u[0]){case"v":t.vertices.push(parseFloat(u[1]),parseFloat(u[2]),parseFloat(u[3])),u.length>=7?(vs.setRGB(parseFloat(u[4]),parseFloat(u[5]),parseFloat(u[6]),xt),t.colors.push(vs.r,vs.g,vs.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(Do),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=am.exec(c))!==null){const u=(" "+s[0].slice(1).trim()).slice(1);t.startObject(u)}else if(lm.test(c))t.object.startMaterial(c.substring(7).trim(),t.materialLibraries);else if(om.test(c))t.materialLibraries.push(c.substring(7).trim());else if(cm.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 Ii;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 As)){const C=new As;mn.prototype.copy.call(C,A),C.color.copy(A.color),A=C}else if(m&&A&&!(A instanceof Ni)){const C=new Ni({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 As:m?A=new Ni({size:1,sizeAttenuation:!1}):A=new ol,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 Qa(v,p):m?d=new dr(v,p):d=new qt(v,p)}else f?d=new Qa(v,p[0]):m?d=new dr(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 Ni({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 dr(l,o);r.add(c)}return r}}class dm extends Si{constructor(e){super(e)}load(e,t,n,s){const r=this,a=this.path===""?xh.extractUrlBase(e):this.path,o=new cl(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 fm(this.resourcePath||t,this.materialOptions);return o.setCrossOrigin(this.crossOrigin),o.setManager(this.manager),o.setMaterials(a),o}}class fm{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:Cs}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 ol(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:ll;let o=a.getHandler(e);o===null&&(o=new ph(a)),o.setCrossOrigin&&o.setCrossOrigin(this.crossOrigin);const l=o.load(e,n,s,r);return t!==void 0&&(l.mapping=t),l}}const No={type:"change"},Sa={type:"start"},gl={type:"end"},xs=new Fs,Fo=new yn,pm=Math.cos(70*Pc.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},Sr=1e-6;class mm extends Sh{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:ui.ROTATE,MIDDLE:ui.DOLLY,RIGHT:ui.PAN},this.touches={ONE:li.ROTATE,TWO:li.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 so,this._sphericalDelta=new so,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=gm.bind(this),this._onPointerDown=_m.bind(this),this._onPointerUp=vm.bind(this),this._onContextMenu=bm.bind(this),this._onMouseWheel=Sm.bind(this),this._onKeyDown=Em.bind(this),this._onTouchStart=ym.bind(this),this._onTouchMove=Tm.bind(this),this._onMouseDown=xm.bind(this),this._onMouseMove=Mm.bind(this),this._interceptControlDown=Am.bind(this),this._interceptControlUp=wm.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(No),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):(xs.origin.copy(this.object.position),xs.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(xs.direction))<pm?this.object.lookAt(this.target):(Fo.setFromNormalAndCoplanarPoint(this.object.up,this.target),xs.intersectPlane(Fo,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)>Sr||8*(1-this._lastQuaternion.dot(this.object.quaternion))>Sr||this._lastTargetPosition.distanceToSquared(this.target)>Sr?(this.dispatchEvent(No),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 _m(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 gm(i){this.enabled!==!1&&(i.pointerType==="touch"?this._onTouchMove(i):this._onMouseMove(i))}function vm(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(gl),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 xm(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 ui.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(i),this.state=nt.DOLLY;break;case ui.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 ui.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(Sa)}function Mm(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 Sm(i){this.enabled===!1||this.enableZoom===!1||this.state!==nt.NONE||(i.preventDefault(),this.dispatchEvent(Sa),this._handleMouseWheel(this._customWheelEvent(i)),this.dispatchEvent(gl))}function Em(i){this.enabled!==!1&&this._handleKeyDown(i)}function ym(i){switch(this._trackPointer(i),this._pointers.length){case 1:switch(this.touches.ONE){case li.ROTATE:if(this.enableRotate===!1)return;this._handleTouchStartRotate(i),this.state=nt.TOUCH_ROTATE;break;case li.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 li.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(i),this.state=nt.TOUCH_DOLLY_PAN;break;case li.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(Sa)}function Tm(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 bm(i){this.enabled!==!1&&i.preventDefault()}function Am(i){i.key==="Control"&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function wm(i){i.key==="Control"&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}const Rm={class:"content-show"},Cm={__name:"threeModel",props:{isShow:Boolean},setup(i){const e=J.ref(null),t=i;let n,s,r,a,o;const l=()=>{n=new rh,n.background=new We(15790320),s=new zt(75,e.value.clientWidth/e.value.clientHeight,.1,1e3),s.position.z=5,r=new rm({antialias:!0}),r.setSize(e.value.clientWidth,e.value.clientHeight),r.setPixelRatio(window.devicePixelRatio),e.value.appendChild(r.domElement),a=new mm(s,r.domElement),a.enableDamping=!0,a.dampingFactor=.05;const f=new vh(16777215,.5);n.add(f);const m=new gh(16777215,.8);m.position.set(1,1,1),n.add(m),c("model"),h()},c=f=>{new dm().load("falseobj/"+f+".mtl",_=>{_.preload();const v=new um;v.setMaterials(_),v.load("falseobj/"+f+".obj",p=>{o=p,o.rotation.set(50,-20,200),n.add(o);const d=new Mi().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",Rm,[J.createElementVNode("div",{ref_key:"container",ref:e,class:"three-container"},null,512)]))}},Pm=ca._export_sfc(Cm,[["__scopeId","data-v-69886fd5"]]),vl=oi.defineStore("unit",{state:()=>({selectIndex:"",selectMenu:"",selectTitle:[]}),actions:{setSelectIndex(i){this.selectIndex=i},setSelectMenu(i){this.selectMenu=i},setSelectTitle(i){this.selectTitle=i}}}),xl=(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=xl(o,n))}),Object.assign(a,{id:r})}else return s})),t},Ml=(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=Ml(c,(h=s==null?void 0:s[a])==null?void 0:h.children,t)),c}))),r}),n},Dm=(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 Lm(i,n,t)}},Lm=(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=Sl(r,s,t)),r)),n},Sl=(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=Sl(o,s,t)),o)),n},Um=(i,e,t)=>{if(e==="")return t;{const n=e.split("-");return Im(i,n,t)}},Im=(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=El(r,s,t)),r)),n},El=(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=El(a,s,t)),a)),n},yl=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},Nm=async i=>{await kn.deleteInsofDataApi({id:i})},Fm=async(i,e,t,n,s)=>{await kn.createInsofDataApi({key:{type:i,pageKey:e,tableId:t,systemKey:n},value:{tableData:s}})},Om=async(i,e,t,n,s,r)=>{await kn.updateInsofDataApi({key:{type:i,pageKey:e,tableId:t,systemKey:s},value:{tableData:r},id:n})},Bm=async(i,e)=>{await kn.updateInsofDataApi({value:{pageData:e},id:i})},zm={class:"table-content"},km=["onClick"],Hm={class:"form-content"},Vm={key:0,class:"dialog-footer"},Gm={__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=oi.useMenuState(),{activeMenuPath:a}=oi.storeToRefs(r),o=Pl.useModelComp(ks.pinia),{extraContents:l}=oi.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=Ll.useFormToTableComp(ks.pinia),E=J.ref(),M=vl(ks.pinia),{selectIndex:P,selectMenu:q,selectTitle:H}=oi.storeToRefs(M),{selectString:j}=oi.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 yl(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=Dm(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=Oo((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=Um(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=Ta(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=Ta(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=Il(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=Ml(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,yi,Ti,Kt,Xn,bi;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&&((yi=l==null?void 0:l.value)==null?void 0:yi.length)>0&&((Ti=l==null?void 0:l.value)!=null&&Ti.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")&&((bi=be[ht])!=null&&bi.prop)?ue[be[ht].prop]=He:ue.children=xl(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",zm,[(J.openBlock(),J.createBlock(Ui.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(Hl,{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,km)]))),128))]),key:"0"}:void 0]),1032,["columns","tableData","isShowPagination","extraButton"])),J.createVNode(Ui.ssDialog,{title:v.value,visible:p.value,width:ne.value,onBeforeDestroy:K},{default:J.withCtx(()=>[J.createElementVNode("div",Hm,[J.createVNode(Ui.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",Vm,[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(Ui.ssDialog,{visible:h.value,fullScreen:"",onBeforeDestroy:Ge},{default:J.withCtx(()=>[J.createVNode(Pm,{isShow:h.value},null,8,["isShow"])]),_:1},8,["visible"])])}}},Wm=ca._export_sfc(Gm,[["__scopeId","data-v-3d3fe2f2"]]);exports.addTableContents=Fm;exports.deleteTableContents=Nm;exports.fixFormContents=Bm;exports.fixTableContents=Om;exports.getItemData=yl;exports.ssTable=Wm;exports.useUnit=vl;
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 fm(this.resourcePath||t,this.materialOptions);return o.setCrossOrigin(this.crossOrigin),o.setManager(this.manager),o.setMaterials(a),o}}class fm{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:Cs}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 ol(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:ll;let o=a.getHandler(e);o===null&&(o=new ph(a)),o.setCrossOrigin&&o.setCrossOrigin(this.crossOrigin);const l=o.load(e,n,s,r);return t!==void 0&&(l.mapping=t),l}}const No={type:"change"},Sa={type:"start"},gl={type:"end"},xs=new Fs,Fo=new yn,pm=Math.cos(70*Pc.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},Sr=1e-6;class mm extends Sh{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:ui.ROTATE,MIDDLE:ui.DOLLY,RIGHT:ui.PAN},this.touches={ONE:li.ROTATE,TWO:li.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 so,this._sphericalDelta=new so,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=gm.bind(this),this._onPointerDown=_m.bind(this),this._onPointerUp=vm.bind(this),this._onContextMenu=bm.bind(this),this._onMouseWheel=Sm.bind(this),this._onKeyDown=Em.bind(this),this._onTouchStart=ym.bind(this),this._onTouchMove=Tm.bind(this),this._onMouseDown=xm.bind(this),this._onMouseMove=Mm.bind(this),this._interceptControlDown=Am.bind(this),this._interceptControlUp=wm.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(No),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):(xs.origin.copy(this.object.position),xs.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(xs.direction))<pm?this.object.lookAt(this.target):(Fo.setFromNormalAndCoplanarPoint(this.object.up,this.target),xs.intersectPlane(Fo,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)>Sr||8*(1-this._lastQuaternion.dot(this.object.quaternion))>Sr||this._lastTargetPosition.distanceToSquared(this.target)>Sr?(this.dispatchEvent(No),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 _m(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 gm(i){this.enabled!==!1&&(i.pointerType==="touch"?this._onTouchMove(i):this._onMouseMove(i))}function vm(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(gl),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 xm(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 ui.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(i),this.state=nt.DOLLY;break;case ui.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 ui.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(Sa)}function Mm(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 Sm(i){this.enabled===!1||this.enableZoom===!1||this.state!==nt.NONE||(i.preventDefault(),this.dispatchEvent(Sa),this._handleMouseWheel(this._customWheelEvent(i)),this.dispatchEvent(gl))}function Em(i){this.enabled!==!1&&this._handleKeyDown(i)}function ym(i){switch(this._trackPointer(i),this._pointers.length){case 1:switch(this.touches.ONE){case li.ROTATE:if(this.enableRotate===!1)return;this._handleTouchStartRotate(i),this.state=nt.TOUCH_ROTATE;break;case li.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 li.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(i),this.state=nt.TOUCH_DOLLY_PAN;break;case li.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(Sa)}function Tm(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 bm(i){this.enabled!==!1&&i.preventDefault()}function Am(i){i.key==="Control"&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function wm(i){i.key==="Control"&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}const Rm={class:"content-show"},Cm={__name:"threeModel",props:{isShow:Boolean},setup(i){const e=J.ref(null),t=i;let n,s,r,a,o;const l=()=>{n=new rh,n.background=new We(15790320),s=new zt(75,e.value.clientWidth/e.value.clientHeight,.1,1e3),s.position.z=5,r=new rm({antialias:!0}),r.setSize(e.value.clientWidth,e.value.clientHeight),r.setPixelRatio(window.devicePixelRatio),e.value.appendChild(r.domElement),a=new mm(s,r.domElement),a.enableDamping=!0,a.dampingFactor=.05;const f=new vh(16777215,.5);n.add(f);const m=new gh(16777215,.8);m.position.set(1,1,1),n.add(m),c("model"),h()},c=f=>{new dm().load("./obj/"+f+".mtl",_=>{_.preload();const v=new um;v.setMaterials(_),v.load("./obj/"+f+".obj",p=>{o=p,o.rotation.set(50,-20,200),n.add(o);const d=new Mi().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",Rm,[J.createElementVNode("div",{ref_key:"container",ref:e,class:"three-container"},null,512)]))}},Pm=ca._export_sfc(Cm,[["__scopeId","data-v-46052afd"]]),vl=oi.defineStore("unit",{state:()=>({selectIndex:"",selectMenu:"",selectTitle:[]}),actions:{setSelectIndex(i){this.selectIndex=i},setSelectMenu(i){this.selectMenu=i},setSelectTitle(i){this.selectTitle=i}}}),xl=(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=xl(o,n))}),Object.assign(a,{id:r})}else return s})),t},Ml=(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=Ml(c,(h=s==null?void 0:s[a])==null?void 0:h.children,t)),c}))),r}),n},Dm=(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 Lm(i,n,t)}},Lm=(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=Sl(r,s,t)),r)),n},Sl=(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=Sl(o,s,t)),o)),n},Um=(i,e,t)=>{if(e==="")return t;{const n=e.split("-");return Im(i,n,t)}},Im=(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=El(r,s,t)),r)),n},El=(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=El(a,s,t)),a)),n},yl=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},Nm=async i=>{await kn.deleteInsofDataApi({id:i})},Fm=async(i,e,t,n,s)=>{await kn.createInsofDataApi({key:{type:i,pageKey:e,tableId:t,systemKey:n},value:{tableData:s}})},Om=async(i,e,t,n,s,r)=>{await kn.updateInsofDataApi({key:{type:i,pageKey:e,tableId:t,systemKey:s},value:{tableData:r},id:n})},Bm=async(i,e)=>{await kn.updateInsofDataApi({value:{pageData:e},id:i})},zm={class:"table-content"},km=["onClick"],Hm={class:"form-content"},Vm={key:0,class:"dialog-footer"},Gm={__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=oi.useMenuState(),{activeMenuPath:a}=oi.storeToRefs(r),o=Pl.useModelComp(ks.pinia),{extraContents:l}=oi.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=Ll.useFormToTableComp(ks.pinia),E=J.ref(),M=vl(ks.pinia),{selectIndex:P,selectMenu:q,selectTitle:H}=oi.storeToRefs(M),{selectString:j}=oi.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 yl(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=Dm(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=Oo((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=Um(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=Ta(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=Ta(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=Il(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=Ml(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,yi,Ti,Kt,Xn,bi;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&&((yi=l==null?void 0:l.value)==null?void 0:yi.length)>0&&((Ti=l==null?void 0:l.value)!=null&&Ti.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")&&((bi=be[ht])!=null&&bi.prop)?ue[be[ht].prop]=He:ue.children=xl(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",zm,[(J.openBlock(),J.createBlock(Ui.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(Hl,{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,km)]))),128))]),key:"0"}:void 0]),1032,["columns","tableData","isShowPagination","extraButton"])),J.createVNode(Ui.ssDialog,{title:v.value,visible:p.value,width:ne.value,onBeforeDestroy:K},{default:J.withCtx(()=>[J.createElementVNode("div",Hm,[J.createVNode(Ui.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",Vm,[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(Ui.ssDialog,{visible:h.value,fullScreen:"",onBeforeDestroy:Ge},{default:J.withCtx(()=>[J.createVNode(Pm,{isShow:h.value},null,8,["isShow"])]),_:1},8,["visible"])])}}},Wm=ca._export_sfc(Gm,[["__scopeId","data-v-3d3fe2f2"]]);exports.addTableContents=Fm;exports.deleteTableContents=Nm;exports.fixFormContents=Bm;exports.fixTableContents=Om;exports.getItemData=yl;exports.ssTable=Wm;exports.useUnit=vl;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as w, onMounted as V, resolveComponent as l, createElementBlock as d, openBlock as o, Fragment as _, renderList as m, createBlock as r, createCommentVNode as I, withCtx as s, createVNode as b, createSlots as g, renderSlot as u, mergeProps as O, computed as S } from "vue";
2
- import { u as q, s as E } from "./menu-jcJH6mMj.js";
2
+ import { u as q, s as E } from "./menu-WPQ8JcMg.js";
3
3
  import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const R = /* @__PURE__ */ w({
5
5
  __name: "menuItem",
@@ -1 +1 @@
1
- "use strict";const y=require("./index-BHn6q4s8.cjs"),S=require("./request-Bcv3sX8k.cjs"),D=require("./login-DBtfJ37x.cjs"),a=require("./menu-Ct8N85CU.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-DjHji-RQ.cjs"),S=require("./request-r_sL_ASa.cjs"),D=require("./login-bbTyKyTk.cjs"),a=require("./menu-IE9q9ekO.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,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-C8le_wu8.js";
3
+ import { u as $, l as AA } from "./index-CMlB-TxD.js";
4
4
  import { useRouter as EA } from "vue-router";
5
- import { u as IA } from "./login-CmwElFt0.js";
6
- import { g as h } from "./index-MZVyuWj0.js";
7
- import { p as gA } from "./request-BsJ0cN51.js";
8
- import { v as CA } from "./index-DDA2ID7_.js";
5
+ import { u as IA } from "./login-BZA9GhM1.js";
6
+ import { g as h } from "./index-Cvw7aXmX.js";
7
+ import { p as gA } from "./request-MJiCtaDl.js";
8
+ import { v as CA } from "./index-sTBMcpga.js";
9
9
  import { d as BA } from "./crypto-BRyGpjGR.js";
10
- import "./index-DQ_AISiu.js";
11
- import { E as j } from "./menu-jcJH6mMj.js";
10
+ import "./index-B2reOYdD.js";
11
+ import { E as j } from "./menu-WPQ8JcMg.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,18 +1,18 @@
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-D5MredWL.js";
3
- import re from "./index-BBLKXcoj.js";
4
- import { p as N } from "./request-BsJ0cN51.js";
5
- import { u as Y } from "./modelComp-DGOJeakI.js";
6
- import { u as Z, s as M } from "./menu-jcJH6mMj.js";
7
- import { i as le, e as oe, b as G, c as ie, g as ue, a as de } from "./array-BOPS5m8_.js";
8
- import { u as ce } from "./formToTable-BEfXQdIR.js";
9
- import { s as me } from "./index.vue_vue_type_style_index_0_scoped_baf99455_lang-LSYQ5x3K.js";
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 D, createCommentVNode as b, toDisplayString as K, resolveComponent as O, createVNode as I, 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-Cj9MeB6d.js";
3
+ import re from "./index-CRRxsIoM.js";
4
+ import { p as N } from "./request-MJiCtaDl.js";
5
+ import { u as Y } from "./modelComp-L3gGUSiO.js";
6
+ import { u as Z, s as M } from "./menu-WPQ8JcMg.js";
7
+ import { i as le, e as oe, b as G, c as ie, g as ue, a as de } from "./array-CKFeRuXx.js";
8
+ import { u as ce } from "./formToTable-kzbUTMeG.js";
9
+ import { s as me } from "./index.vue_vue_type_style_index_0_scoped_baf99455_lang-DypM_Bv9.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-CWGQlCq-.js";
12
- import { v as Ce } from "./index-DDA2ID7_.js";
13
- import { E as _e } from "./index-C8le_wu8.js";
14
- import { c as L } from "./cloneDeep-0yH-hote.js";
15
- const we = { class: "bread-content" }, ke = ["onClick"], pe = { key: 0 }, Se = {
11
+ import { u as ge, g as J, f as ye, d as ve, a as fe, b as he } from "./index-pgg0WYJD.js";
12
+ import { v as Ce } from "./index-sTBMcpga.js";
13
+ import { E as _e } from "./index-CMlB-TxD.js";
14
+ import { c as L } from "./cloneDeep-ptqcNoLQ.js";
15
+ const we = { class: "bread-content" }, ke = ["onClick"], Se = { key: 0 }, pe = {
16
16
  __name: "index",
17
17
  props: {
18
18
  breadArray: {
@@ -22,7 +22,7 @@ const we = { class: "bread-content" }, ke = ["onClick"], pe = { key: 0 }, Se = {
22
22
  },
23
23
  emits: ["click"],
24
24
  setup($, { emit: E }) {
25
- const a = $, c = C([]), p = E;
25
+ const a = $, c = C([]), S = E;
26
26
  H(() => {
27
27
  c.value = a == null ? void 0 : a.breadArray;
28
28
  }), T(
@@ -32,23 +32,23 @@ const we = { class: "bread-content" }, ke = ["onClick"], pe = { key: 0 }, Se = {
32
32
  },
33
33
  { deep: !0, immediate: !0 }
34
34
  );
35
- const w = (D) => {
36
- p("click", D);
35
+ const w = (x) => {
36
+ S("click", x);
37
37
  };
38
- return (D, y) => (d(), f("div", we, [
38
+ return (x, y) => (d(), f("div", we, [
39
39
  (d(!0), f(Q, null, X(c.value, (_, j) => (d(), f("div", {
40
40
  key: j,
41
41
  class: "bread-item"
42
42
  }, [
43
- I("div", {
43
+ D("div", {
44
44
  class: "bread-title",
45
45
  onClick: (q) => w(_)
46
46
  }, K(_.value), 9, ke),
47
- j !== c.value.length - 1 && Array.isArray(c.value) ? (d(), f("div", pe, K("/"))) : b("", !0)
47
+ j !== c.value.length - 1 && Array.isArray(c.value) ? (d(), f("div", Se, K("/"))) : b("", !0)
48
48
  ]))), 128))
49
49
  ]));
50
50
  }
51
- }, Ie = /* @__PURE__ */ W(Se, [["__scopeId", "data-v-ebb4c8e5"]]), xe = { class: "system-wrap" }, De = {
51
+ }, De = /* @__PURE__ */ W(pe, [["__scopeId", "data-v-ebb4c8e5"]]), Ie = { class: "system-wrap" }, xe = {
52
52
  key: 0,
53
53
  class: "show-content"
54
54
  }, Ae = {
@@ -58,7 +58,8 @@ const we = { class: "bread-content" }, ke = ["onClick"], pe = { key: 0 }, Se = {
58
58
  __name: "index",
59
59
  props: {
60
60
  content: String,
61
- jsonContents: Array
61
+ jsonContents: Array,
62
+ nodeDev: String
62
63
  },
63
64
  emits: ["change", "contentChange"],
64
65
  setup($, { emit: E }) {
@@ -68,13 +69,13 @@ const we = { class: "bread-content" }, ke = ["onClick"], pe = { key: 0 }, Se = {
68
69
  type: "success",
69
70
  message: "欢迎使用系统",
70
71
  duration: 1e3
71
- });
72
+ }), console.log(232, a == null ? void 0 : a.nodeDev);
72
73
  });
73
74
  const a = $, c = Y(N);
74
75
  ce(N);
75
- const p = C(!0), w = Z();
76
+ const S = C(!0), w = Z();
76
77
  C(!0);
77
- const { itemData: D } = M(c), y = ge(N), { activeMenuPath: _, activeMenuOpenPaths: j, menuTriggerType: q, menus: z } = M(w), { selectIndex: ee, selectTitle: m } = M(y);
78
+ const { itemData: x } = M(c), y = ge(N), { activeMenuPath: _, activeMenuOpenPaths: j, menuTriggerType: q, menus: z } = M(w), { selectIndex: ee, selectTitle: m } = M(y);
78
79
  C([]);
79
80
  const g = C([]), A = async (e, i = "data") => {
80
81
  var t, s, o, n, u, l;
@@ -87,8 +88,8 @@ const we = { class: "bread-content" }, ke = ["onClick"], pe = { key: 0 }, Se = {
87
88
  await fe(i, _.value, e == null ? void 0 : e.index, sessionStorage.getItem("systemKey"), Object.values(h));
88
89
  } else if ((e == null ? void 0 : e.buttonName) === "编辑") {
89
90
  let h = {}, r = (s = e == null ? void 0 : e.singleContent) == null ? void 0 : s.id;
90
- for (let S in e == null ? void 0 : e.singleContent)
91
- S !== "id" && S !== "index" && (h[S] = e == null ? void 0 : e.singleContent[S]);
91
+ for (let p in e == null ? void 0 : e.singleContent)
92
+ p !== "id" && p !== "index" && (h[p] = e == null ? void 0 : e.singleContent[p]);
92
93
  await he(i, _.value, e == null ? void 0 : e.index, r, sessionStorage.getItem("systemKey"), Object.values(h));
93
94
  }
94
95
  let v = (n = (o = m.value) == null ? void 0 : o[m.value.length - 1]) != null && n.key ? parseInt((l = (u = m.value) == null ? void 0 : u[m.value.length - 1]) == null ? void 0 : l.key) : "";
@@ -156,7 +157,7 @@ const we = { class: "bread-content" }, ke = ["onClick"], pe = { key: 0 }, Se = {
156
157
  return;
157
158
  }
158
159
  if (!(a != null && a.content) || ((t = a == null ? void 0 : a.content) == null ? void 0 : t.length) === 0) return;
159
- p.value = !0;
160
+ S.value = !0;
160
161
  let e = [], i = [];
161
162
  y.setSelectTitle([]), y.setSelectIndex(""), y.setSelectMenu(""), (o = (s = a == null ? void 0 : a.content) == null ? void 0 : s.filter((n) => n !== "")) == null || o.forEach((n) => {
162
163
  le(n) ? i.push(oe(n)) : G(n) ? i.push(G(n)) : i.push(ie(n));
@@ -167,39 +168,39 @@ const we = { class: "bread-content" }, ke = ["onClick"], pe = { key: 0 }, Se = {
167
168
  const R = (e) => ue(e);
168
169
  return (e, i) => {
169
170
  const v = O("el-aside"), t = O("router-view"), s = O("el-main"), o = O("el-container");
170
- return d(), f("div", xe, [
171
- x(o, null, {
171
+ return d(), f("div", Ie, [
172
+ I(o, null, {
172
173
  default: U(() => [
173
- x(v, { width: "250px" }, {
174
+ I(v, { width: "250px" }, {
174
175
  default: U(() => [
175
- x(re)
176
+ I(re)
176
177
  ]),
177
178
  _: 1
178
179
  }),
179
- x(s, null, {
180
+ I(s, null, {
180
181
  default: U(() => {
181
182
  var n, u, l, h;
182
183
  return [
183
- e.$route.path === "/" && ((n = g.value) == null ? void 0 : n.length) > 0 ? (d(), f("div", De, [
184
+ e.$route.path === "/" && ((n = g.value) == null ? void 0 : n.length) > 0 ? (d(), f("div", xe, [
184
185
  Array.isArray(k(m)) && ((u = k(m)) == null ? void 0 : u.length) > 1 || Array.isArray(k(m)) && !((l = k(m)) != null && l.find((r) => (r == null ? void 0 : r.key) === "main")) && ((h = k(m)) == null ? void 0 : h.length) === 1 || !Array.isArray(k(m)) && k(m).key !== "main" ? (d(), f("div", Ae, [
185
- (d(), P(Ie, {
186
+ (d(), P(De, {
186
187
  key: k(m),
187
188
  breadArray: k(m),
188
189
  onClick: V
189
190
  }, null, 8, ["breadArray"]))
190
191
  ])) : b("", !0),
191
- I("div", null, [
192
- (d(!0), f(Q, null, X(g.value, (r, S) => (d(), f("div", {
192
+ D("div", null, [
193
+ (d(!0), f(Q, null, X(g.value, (r, p) => (d(), f("div", {
193
194
  class: "item-content",
194
- key: S
195
+ key: p
195
196
  }, [
196
- I("div", be, K(r.name), 1),
197
+ D("div", be, K(r.name), 1),
197
198
  (d(), P(ae(R(r.comp)), {
198
199
  itemData: r == null ? void 0 : r.compData,
199
200
  childItemData: r == null ? void 0 : r.itemChildData,
200
- key: (r == null ? void 0 : r.id) ?? S,
201
+ key: (r == null ? void 0 : r.id) ?? p,
201
202
  onChange: A,
202
- index: (r == null ? void 0 : r.id) ?? S,
203
+ index: (r == null ? void 0 : r.id) ?? p,
203
204
  onContentChange: B,
204
205
  onPageChange: F
205
206
  }, null, 40, ["itemData", "childItemData", "index"]))
@@ -216,7 +217,7 @@ const we = { class: "bread-content" }, ke = ["onClick"], pe = { key: 0 }, Se = {
216
217
  ]);
217
218
  };
218
219
  }
219
- }, $e = /* @__PURE__ */ W(Te, [["__scopeId", "data-v-66472540"]]), je = { class: "add-model-content" }, Ne = {
220
+ }, $e = /* @__PURE__ */ W(Te, [["__scopeId", "data-v-6e015eaa"]]), je = { class: "add-model-content" }, Ne = {
220
221
  key: 0,
221
222
  class: "model-import-data"
222
223
  }, Me = { class: "import-button" }, Ee = { key: 0 }, Fe = {
@@ -247,7 +248,7 @@ const we = { class: "bread-content" }, ke = ["onClick"], pe = { key: 0 }, Se = {
247
248
  },
248
249
  emits: ["change", "contentChange"],
249
250
  setup($, { emit: E }) {
250
- const a = $, c = E, p = C([]), w = C([]), D = C([]), y = C(0), _ = Y(N), j = Z(N), { itemData: q, originalData: z } = M(_), { activeMenuPath: ee } = M(j), m = C(null), g = C(0), A = C([]), F = C(""), B = C(0), V = (t) => {
251
+ const a = $, c = E, S = C([]), w = C([]), x = C([]), y = C(0), _ = Y(N), j = Z(N), { itemData: q, originalData: z } = M(_), { activeMenuPath: ee } = M(j), m = C(null), g = C(0), A = C([]), F = C(""), B = C(0), V = (t) => {
251
252
  c("contentChange", t);
252
253
  }, R = (t) => {
253
254
  var o;
@@ -265,7 +266,7 @@ const we = { class: "bread-content" }, ke = ["onClick"], pe = { key: 0 }, Se = {
265
266
  T(
266
267
  () => w.value,
267
268
  () => {
268
- B.value === w.value.length && w.value.length !== 0 && (p.value = w.value);
269
+ B.value === w.value.length && w.value.length !== 0 && (S.value = w.value);
269
270
  },
270
271
  { deep: !0, immediate: !0 }
271
272
  );
@@ -274,7 +275,7 @@ const we = { class: "bread-content" }, ke = ["onClick"], pe = { key: 0 }, Se = {
274
275
  }, i = async (t) => {
275
276
  const s = t.target.files;
276
277
  if (!s) return;
277
- new FileReader(), p.value = [], w.value = [], B.value = s.length;
278
+ new FileReader(), S.value = [], w.value = [], B.value = s.length;
278
279
  const o = Array.from(s).map(async (n) => await new Promise((u) => {
279
280
  const l = new FileReader();
280
281
  l.onload = (h) => {
@@ -291,7 +292,7 @@ const we = { class: "bread-content" }, ke = ["onClick"], pe = { key: 0 }, Se = {
291
292
  T(
292
293
  () => [a == null ? void 0 : a.content, a == null ? void 0 : a.jsonContents],
293
294
  () => {
294
- p.value = a.content, D.value = a == null ? void 0 : a.jsonContents;
295
+ S.value = a.content, x.value = a == null ? void 0 : a.jsonContents;
295
296
  },
296
297
  { deep: !0, immediate: !0 }
297
298
  ), T(
@@ -322,8 +323,8 @@ const we = { class: "bread-content" }, ke = ["onClick"], pe = { key: 0 }, Se = {
322
323
  var o;
323
324
  return d(), f("div", je, [
324
325
  ((o = a == null ? void 0 : a.jsonContents) == null ? void 0 : o.length) === 0 && (a != null && a.showButton) ? (d(), f("div", Ne, [
325
- I("div", Me, [
326
- I("input", {
326
+ D("div", Me, [
327
+ D("input", {
327
328
  type: "file",
328
329
  ref_key: "fileInput",
329
330
  ref: m,
@@ -332,7 +333,7 @@ const we = { class: "bread-content" }, ke = ["onClick"], pe = { key: 0 }, Se = {
332
333
  style: { display: "none" },
333
334
  multiple: ""
334
335
  }, null, 544),
335
- I("button", {
336
+ D("button", {
336
337
  onClick: e,
337
338
  class: "import-button-content"
338
339
  }, "导入文件"),
@@ -340,24 +341,24 @@ const we = { class: "bread-content" }, ke = ["onClick"], pe = { key: 0 }, Se = {
340
341
  ])
341
342
  ])) : b("", !0),
342
343
  (a == null ? void 0 : a.mode) === "edit" ? (d(), f("div", Fe, [
343
- I("div", Be, [
344
- x(te)
344
+ D("div", Be, [
345
+ I(te)
345
346
  ]),
346
347
  (d(), f("div", {
347
348
  class: "model-show",
348
349
  key: y.value
349
350
  }, [
350
- x(se)
351
+ I(se)
351
352
  ])),
352
- I("div", Oe, [
353
- x(ne)
353
+ D("div", Oe, [
354
+ I(ne)
354
355
  ])
355
356
  ])) : b("", !0),
356
357
  (a == null ? void 0 : a.mode) === "view" ? (d(), f("div", Je, [
357
358
  (d(), P($e, {
358
- content: p.value,
359
+ content: S.value,
359
360
  onChange: R,
360
- jsonContents: D.value,
361
+ jsonContents: x.value,
361
362
  onContentChange: V,
362
363
  key: y.value
363
364
  }, null, 8, ["content", "jsonContents"]))
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("vue"),ae=require("./index-BHn6q4s8.cjs"),Y=require("./menu-Ct8N85CU.cjs"),$t=require("./index-BpVAr33y.cjs"),re=require("./crypto-CRbcEKIz.cjs"),Kt=require("./login-DBtfJ37x.cjs"),l=require("./index-zzft0vfE.cjs"),Ut=require("./typescript-PERVJsDy.cjs"),F=require("./cloneDeep-BP-2mJP0.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-DjHji-RQ.cjs"),Y=require("./menu-IE9q9ekO.cjs"),$t=require("./index-xbVcs94X.cjs"),re=require("./crypto-CRbcEKIz.cjs"),Kt=require("./login-bbTyKyTk.cjs"),l=require("./index-vDxkLZCX.cjs"),Ut=require("./typescript-PERVJsDy.cjs"),F=require("./cloneDeep-wWT7F5V9.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,