ss-component-new 1.1.185 → 1.1.186

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/{array-Bo3p2itu.cjs → array-44rqEhha.cjs} +1 -1
  2. package/dist/{array-CTMBVA4w.js → array-CCLDO2NZ.js} +9 -9
  3. package/dist/{cloneDeep-gdyyfw9f.cjs → cloneDeep-C5Uiz3YI.cjs} +1 -1
  4. package/dist/{cloneDeep-BmTK4FEu.js → cloneDeep-DHVgGTlZ.js} +1 -1
  5. package/dist/{formToTable-9jLakigk.cjs → formToTable-C-tLm_KX.cjs} +1 -1
  6. package/dist/{formToTable-oMNwkiWt.js → formToTable-CYVBU8rV.js} +1 -1
  7. package/dist/{index-BRY3GVIU.cjs → index-1tsnH8Kt.cjs} +1 -1
  8. package/dist/{index-Dtd6S7I9.cjs → index-B-nbE-fj.cjs} +1 -1
  9. package/dist/{index-iL5QqqHE.js → index-BMmRphDR.js} +6 -6
  10. package/dist/{index-D1ICyLb8.cjs → index-BPdTbeaT.cjs} +1 -1
  11. package/dist/{index-bC8ZQAKp.cjs → index-BUXPBc5D.cjs} +1 -1
  12. package/dist/{index-B51X7O6x.js → index-BXBDDX-8.js} +1 -1
  13. package/dist/{index-B4VSd4FO.cjs → index-BlLflUGY.cjs} +1 -1
  14. package/dist/{index-GqsIl7hf.cjs → index-BvPP_NT7.cjs} +1 -1
  15. package/dist/{index-BXtYUiLa.js → index-Bwv4w4j5.js} +4 -4
  16. package/dist/{index-BEl2M4PP.js → index-BxiXAlPM.js} +1 -1
  17. package/dist/{index-hrnwsq1g.cjs → index-BycSmIJ9.cjs} +1 -1
  18. package/dist/{index-BLCmE0gH.js → index-BzwJS0kO.js} +1 -1
  19. package/dist/{index-DyEqiHy2.cjs → index-CCRbN8LA.cjs} +1 -1
  20. package/dist/{index-Dat5KfVY.cjs → index-CkRrBKAP.cjs} +2 -2
  21. package/dist/{index-t9jjDy7J.js → index-CkVVqiv4.js} +11 -11
  22. package/dist/{index-CWUIx9UX.cjs → index-CqGzezUw.cjs} +1 -1
  23. package/dist/{index--V7oWPMc.js → index-Cu5EU0qI.js} +6 -6
  24. package/dist/{index-BvmHLZq4.cjs → index-D0qzzml4.cjs} +1 -1
  25. package/dist/{index-B6If5wRP.js → index-DEha7mmD.js} +1 -1
  26. package/dist/{index-BIL2-5d5.js → index-DHBv4iw4.js} +5 -5
  27. package/dist/{index-D9kdeth5.js → index-DNuzKBy8.js} +7 -7
  28. package/dist/{index-D-r3mc6h.cjs → index-DUFyHpxi.cjs} +1 -1
  29. package/dist/{index-BW3rUIA3.cjs → index-DWo0GWcq.cjs} +1 -1
  30. package/dist/{index-CtsdHUOE.js → index-D_uzh8ri.js} +4 -4
  31. package/dist/{index-CiBIzvxQ.js → index-DarYr3-D.js} +6 -6
  32. package/dist/{index-Cii3X2D7.js → index-DcJGo7az.js} +7 -7
  33. package/dist/{index-DuwbY0QO.cjs → index-Dq5unQvW.cjs} +1 -1
  34. package/dist/{index-BHmQ-EAF.cjs → index-Du3fIvRp.cjs} +1 -1
  35. package/dist/{index-evEttDGY.js → index-DyJNZFnX.js} +1 -1
  36. package/dist/{index-6rLImJnk.js → index-DyRn9ITV.js} +7 -7
  37. package/dist/{index-DNtWZXYf.cjs → index-HPnBnPyA.cjs} +1 -1
  38. package/dist/{index-DZ4OPEoP.cjs → index-Lg-pZGU_.cjs} +1 -1
  39. package/dist/{index-DqaJEmiB.cjs → index-M_WPbVIu.cjs} +1 -1
  40. package/dist/{index-VmqxQPRp.cjs → index-NDarxxTc.cjs} +1 -1
  41. package/dist/{index-DfbsqJIq.js → index-O1XXJqFw.js} +7 -7
  42. package/dist/{index-gKxSxGyb.js → index-YrIIXYa_.js} +7 -7
  43. package/dist/{index-orWfMHps.js → index-hXMI-jit.js} +6 -6
  44. package/dist/{index-BxKY0INk.js → index-tNu-GkeE.js} +12 -12
  45. package/dist/{index-CsgtAFqn.cjs → index-uWAOQ35Y.cjs} +1 -1
  46. package/dist/{index-DzMB2hvj.js → index-xdIdsBJr.js} +1 -1
  47. package/dist/{index.vue_vue_type_script_setup_true_lang-B3tRQPw2.cjs → index.vue_vue_type_script_setup_true_lang-BNflYIAX.cjs} +1 -1
  48. package/dist/{index.vue_vue_type_script_setup_true_lang-Ov8SuBXY.js → index.vue_vue_type_script_setup_true_lang-DKCWmz-r.js} +6 -6
  49. package/dist/{index.vue_vue_type_style_index_0_scoped_baf99455_lang-CsH63ZiQ.cjs → index.vue_vue_type_style_index_0_scoped_baf99455_lang-D1f-PpXl.cjs} +1 -1
  50. package/dist/{index.vue_vue_type_style_index_0_scoped_baf99455_lang-B8gUfst7.js → index.vue_vue_type_style_index_0_scoped_baf99455_lang-Dwdb4ksE.js} +6 -6
  51. package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DeM2yeKn.cjs → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CMbrjkM1.cjs} +1 -1
  52. package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-BMtvW6OD.js → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CS5XMhtk.js} +6 -6
  53. package/dist/{login-BPlaS8oU.js → login-BbRzuv8e.js} +3 -3
  54. package/dist/{login-DSnvzDcT.cjs → login-DPfwDK8x.cjs} +1 -1
  55. package/dist/{main-DFONrwPN.cjs → main-BvYmwUDq.cjs} +1 -1
  56. package/dist/{main-DNhq7sqn.js → main-Df1V3b7e.js} +6 -6
  57. package/dist/{menu-Dgk7naNE.cjs → menu-BrKPZxak.cjs} +1 -1
  58. package/dist/{menu-CmjIVfwC.js → menu-BvmC7qb6.js} +1 -1
  59. package/dist/{modelComp-DgySA7lh.cjs → modelComp-BCiaU3TF.cjs} +1 -1
  60. package/dist/{modelComp-De5bf7vK.js → modelComp-Lk3RWAa8.js} +1 -1
  61. package/dist/{request-BaXl3oQ9.js → request-BZej_b04.js} +1 -1
  62. package/dist/{request-BCuBMd6Z.cjs → request-BuMG7bd8.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
@@ -1,4 +1,4 @@
1
- import { _ as c } from "./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-BMtvW6OD.js";
1
+ import { _ as c } from "./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CS5XMhtk.js";
2
2
  import { resolveComponent as o, createBlock as a, openBlock as u, withCtx as r, createVNode as l, createElementVNode as i, toDisplayString as p } from "vue";
3
3
  import { _ as m } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  function M(e, _, d, f, C, y) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./menu-Dgk7naNE.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S=e.defineComponent({__name:"menuItem",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu"],setup(u,{emit:i}){const l=i,c=n=>{l("clickMenu",n)},a=n=>{l("openMenu",n)},r=n=>{l("closeMenu",n)};return e.onMounted(()=>{}),(n,h)=>{const p=e.resolveComponent("MenuItem",!0),d=e.resolveComponent("el-sub-menu"),m=e.resolveComponent("el-menu-item");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.menuList,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show&&t.children&&t.children.length>0?(e.openBlock(),e.createBlock(d,{index:t.path,key:t.path},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),default:e.withCtx(()=>[e.createVNode(p,{menuList:t.children,onClickMenu:c,onOpenMenu:a,onCloseMenu:r},e.createSlots({_:2},[e.renderList(n.$slots,(k,s)=>({name:s,fn:e.withCtx(_=>[e.renderSlot(n.$slots,s,e.mergeProps({ref_for:!0},_))])}))]),1032,["menuList"])]),_:2},1032,["index"])):t.show?(e.openBlock(),e.createBlock(m,{index:t.path,key:t.path,onClick:k=>c(t)},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256)}}}),w=e.defineComponent({__name:"index",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu","changeMenuStyle"],setup(u,{emit:i}){const l=f.useMenuState(),{activeMenuPath:c,activeMenuOpenPaths:a}=f.storeToRefs(l),r=i,n=t=>{r("clickMenu",t)},h=t=>{r("openMenu",t)},p=t=>{r("closeMenu",t)},d=e.computed(()=>c.value),m=e.computed(()=>a.value);return(t,k)=>{const s=e.resolveComponent("el-sub-menu"),_=e.resolveComponent("el-menu-item"),C=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(C,{class:"menu-wrap","default-active":d.value,"default-openeds":m.value,"unique-opened":!0,"collapse-transition":!1,"popper-offset":12,onOpen:h,onClose:p},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.menuList,o=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.show&&o.children&&o.children.length>0?(e.openBlock(),e.createBlock(s,{index:o.path,key:o.path},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(S,{menuList:o.children,onClickMenu:n},e.createSlots({_:2},[e.renderList(t.$slots,(v,M)=>({name:M,fn:e.withCtx(B=>[e.renderSlot(t.$slots,M,e.mergeProps({ref_for:!0},B),void 0,!0)])}))]),1032,["menuList"])]),_:2},1032,["index"])):o.show?(e.openBlock(),e.createBlock(_,{index:o.path,key:o.path,onClick:v=>n(o)},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256))]),_:3},8,["default-active","default-openeds"])}}}),g=x._export_sfc(w,[["__scopeId","data-v-0fa7eb72"]]);exports.default=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./menu-BrKPZxak.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S=e.defineComponent({__name:"menuItem",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu"],setup(u,{emit:i}){const l=i,c=n=>{l("clickMenu",n)},a=n=>{l("openMenu",n)},r=n=>{l("closeMenu",n)};return e.onMounted(()=>{}),(n,h)=>{const p=e.resolveComponent("MenuItem",!0),d=e.resolveComponent("el-sub-menu"),m=e.resolveComponent("el-menu-item");return e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.menuList,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.show&&t.children&&t.children.length>0?(e.openBlock(),e.createBlock(d,{index:t.path,key:t.path},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),default:e.withCtx(()=>[e.createVNode(p,{menuList:t.children,onClickMenu:c,onOpenMenu:a,onCloseMenu:r},e.createSlots({_:2},[e.renderList(n.$slots,(k,s)=>({name:s,fn:e.withCtx(_=>[e.renderSlot(n.$slots,s,e.mergeProps({ref_for:!0},_))])}))]),1032,["menuList"])]),_:2},1032,["index"])):t.show?(e.openBlock(),e.createBlock(m,{index:t.path,key:t.path,onClick:k=>c(t)},{title:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{menu:t})]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256)}}}),w=e.defineComponent({__name:"index",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu","changeMenuStyle"],setup(u,{emit:i}){const l=f.useMenuState(),{activeMenuPath:c,activeMenuOpenPaths:a}=f.storeToRefs(l),r=i,n=t=>{r("clickMenu",t)},h=t=>{r("openMenu",t)},p=t=>{r("closeMenu",t)},d=e.computed(()=>c.value),m=e.computed(()=>a.value);return(t,k)=>{const s=e.resolveComponent("el-sub-menu"),_=e.resolveComponent("el-menu-item"),C=e.resolveComponent("el-menu");return e.openBlock(),e.createBlock(C,{class:"menu-wrap","default-active":d.value,"default-openeds":m.value,"unique-opened":!0,"collapse-transition":!1,"popper-offset":12,onOpen:h,onClose:p},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.menuList,o=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.show&&o.children&&o.children.length>0?(e.openBlock(),e.createBlock(s,{index:o.path,key:o.path},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(S,{menuList:o.children,onClickMenu:n},e.createSlots({_:2},[e.renderList(t.$slots,(v,M)=>({name:M,fn:e.withCtx(B=>[e.renderSlot(t.$slots,M,e.mergeProps({ref_for:!0},B),void 0,!0)])}))]),1032,["menuList"])]),_:2},1032,["index"])):o.show?(e.openBlock(),e.createBlock(_,{index:o.path,key:o.path,onClick:v=>n(o)},{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{menu:o},void 0,!0)]),_:2},1032,["index","onClick"])):e.createCommentVNode("",!0)],64))),256))]),_:3},8,["default-active","default-openeds"])}}}),g=x._export_sfc(w,[["__scopeId","data-v-0fa7eb72"]]);exports.default=g;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),y=require("./index-DyEqiHy2.cjs"),V=require("./index-Dat5KfVY.cjs"),g=require("./index-D1ICyLb8.cjs"),u=require("./menu-Dgk7naNE.cjs"),b=require("./modelComp-DgySA7lh.cjs"),v=require("vue-router"),w=require("./index-BW3rUIA3.cjs"),m=require("./cloneDeep-gdyyfw9f.cjs"),N=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),B={class:"role-wrapper"},S={class:"role-dialog-header"},q={class:"node-text"},T={class:"dialog-footer"},E=e.defineComponent({__name:"index",setup(z){const _=u.useMenuState(),{menus:C,activeMenuPath:d}=u.storeToRefs(_),t=e.reactive({...g.State}),{treeRef:k}=g.State,h=b.useModelComp(),{itemData:f}=u.storeToRefs(h),x=v.useRoute();return e.onMounted(()=>{w.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"/log",type:"system",logType:"operate"}}).then(a=>{var l;console.log("获取日志:",(l=a==null?void 0:a.data)==null?void 0:l.result)});const c=m.cloneDeep(f.value),o={comp:"Group",name:x.path,compData:t.pageData};h.setItemData([...c,o]),d.value&&t.getPageDataAsync(d.value).then(a=>{var l;t.pageData=(l=t.pageData)==null?void 0:l.map(r=>r.key==="tableContents"?{...r,contents:a}:r)})}),e.watch(()=>C.value,c=>{e.nextTick(()=>{const o=m.cloneDeep(c);t.menuData=t.addButtonsToTree(o,t.structureButtons)})},{immediate:!0,deep:!0}),(c,o)=>{const a=e.resolveComponent("el-checkbox"),l=e.resolveComponent("el-checkbox-group"),r=e.resolveComponent("el-tree"),p=e.resolveComponent("el-button"),D=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",B,[e.createVNode(y.ssForm,{class:"role-header",rowContents:t.queryFormData,isEnableWrap:!0,isEdit:!0,onChange:t.handleQueryChange},null,8,["rowContents","onChange"]),e.createVNode(V.ssTable,{class:"role-body",itemData:t.pageDataFiltered,changedContent:t.changedRow,onChange:t.handleItemDataChange,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","onChange","onOnButtonClick"])]),e.createVNode(D,{modelValue:t.authorizeDialog.show,"onUpdate:modelValue":o[0]||(o[0]=i=>t.authorizeDialog.show=i),width:t.authorizeDialog.width,draggable:t.authorizeDialog.draggable,"before-close":t.closeAuthorizeDialog,class:"role-dialog"},{header:e.withCtx(()=>[e.createElementVNode("div",S,e.toDisplayString(t.authorizeDialog.title),1)]),footer:e.withCtx(()=>[e.createElementVNode("div",T,[e.createVNode(p,{onClick:t.closeAuthorizeDialog},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(p,{type:"primary",onClick:t.clickSubmitAuthority},{default:e.withCtx(()=>o[2]||(o[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),default:e.withCtx(()=>[e.createVNode(r,{class:"role-tree",ref_key:"treeRef",ref:k,data:t.menuData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"title",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",onCheckChange:t.handleNodeCheckChange,style:{height:"500px","overflow-y":"auto"}},{default:e.withCtx(({node:i,data:s})=>[e.createElementVNode("span",q,e.toDisplayString(i.label),1),e.createVNode(l,{modelValue:s.checkedButtons,"onUpdate:modelValue":n=>s.checkedButtons=n,onChange:n=>t.handleNodeBtnChange(n,s),class:"node-buttons"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.renderButtons,n=>(e.openBlock(),e.createBlock(a,{key:n.title,label:n.title,value:n.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),_:2},1032,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:1},8,["data","onCheckChange"])]),_:1},8,["modelValue","width","draggable","before-close"])],64)}}}),R=N._export_sfc(E,[["__scopeId","data-v-4d655fb5"]]);exports.default=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),y=require("./index-CCRbN8LA.cjs"),V=require("./index-CkRrBKAP.cjs"),g=require("./index-BPdTbeaT.cjs"),u=require("./menu-BrKPZxak.cjs"),b=require("./modelComp-BCiaU3TF.cjs"),v=require("vue-router"),w=require("./index-DWo0GWcq.cjs"),m=require("./cloneDeep-C5Uiz3YI.cjs"),N=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),B={class:"role-wrapper"},S={class:"role-dialog-header"},q={class:"node-text"},T={class:"dialog-footer"},E=e.defineComponent({__name:"index",setup(z){const _=u.useMenuState(),{menus:C,activeMenuPath:d}=u.storeToRefs(_),t=e.reactive({...g.State}),{treeRef:k}=g.State,h=b.useModelComp(),{itemData:f}=u.storeToRefs(h),x=v.useRoute();return e.onMounted(()=>{w.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"/log",type:"system",logType:"operate"}}).then(a=>{var l;console.log("获取日志:",(l=a==null?void 0:a.data)==null?void 0:l.result)});const c=m.cloneDeep(f.value),o={comp:"Group",name:x.path,compData:t.pageData};h.setItemData([...c,o]),d.value&&t.getPageDataAsync(d.value).then(a=>{var l;t.pageData=(l=t.pageData)==null?void 0:l.map(r=>r.key==="tableContents"?{...r,contents:a}:r)})}),e.watch(()=>C.value,c=>{e.nextTick(()=>{const o=m.cloneDeep(c);t.menuData=t.addButtonsToTree(o,t.structureButtons)})},{immediate:!0,deep:!0}),(c,o)=>{const a=e.resolveComponent("el-checkbox"),l=e.resolveComponent("el-checkbox-group"),r=e.resolveComponent("el-tree"),p=e.resolveComponent("el-button"),D=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",B,[e.createVNode(y.ssForm,{class:"role-header",rowContents:t.queryFormData,isEnableWrap:!0,isEdit:!0,onChange:t.handleQueryChange},null,8,["rowContents","onChange"]),e.createVNode(V.ssTable,{class:"role-body",itemData:t.pageDataFiltered,changedContent:t.changedRow,onChange:t.handleItemDataChange,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","onChange","onOnButtonClick"])]),e.createVNode(D,{modelValue:t.authorizeDialog.show,"onUpdate:modelValue":o[0]||(o[0]=i=>t.authorizeDialog.show=i),width:t.authorizeDialog.width,draggable:t.authorizeDialog.draggable,"before-close":t.closeAuthorizeDialog,class:"role-dialog"},{header:e.withCtx(()=>[e.createElementVNode("div",S,e.toDisplayString(t.authorizeDialog.title),1)]),footer:e.withCtx(()=>[e.createElementVNode("div",T,[e.createVNode(p,{onClick:t.closeAuthorizeDialog},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(p,{type:"primary",onClick:t.clickSubmitAuthority},{default:e.withCtx(()=>o[2]||(o[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),default:e.withCtx(()=>[e.createVNode(r,{class:"role-tree",ref_key:"treeRef",ref:k,data:t.menuData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"title",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",onCheckChange:t.handleNodeCheckChange,style:{height:"500px","overflow-y":"auto"}},{default:e.withCtx(({node:i,data:s})=>[e.createElementVNode("span",q,e.toDisplayString(i.label),1),e.createVNode(l,{modelValue:s.checkedButtons,"onUpdate:modelValue":n=>s.checkedButtons=n,onChange:n=>t.handleNodeBtnChange(n,s),class:"node-buttons"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.renderButtons,n=>(e.openBlock(),e.createBlock(a,{key:n.title,label:n.title,value:n.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),_:2},1032,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:1},8,["data","onCheckChange"])]),_:1},8,["modelValue","width","draggable","before-close"])],64)}}}),R=N._export_sfc(E,[["__scopeId","data-v-4d655fb5"]]);exports.default=R;
@@ -1,7 +1,7 @@
1
- import { g as y } from "./index-BLCmE0gH.js";
2
- import { p } from "./request-BaXl3oQ9.js";
3
- import { u as D } from "./login-BPlaS8oU.js";
4
- import { u as K, E as g } from "./menu-CmjIVfwC.js";
1
+ import { g as y } from "./index-BzwJS0kO.js";
2
+ import { p } from "./request-BZej_b04.js";
3
+ import { u as D } from "./login-BbRzuv8e.js";
4
+ import { u as K, E as g } from "./menu-BvmC7qb6.js";
5
5
  const I = K(p), l = D(p), h = () => {
6
6
  const S = y({
7
7
  key: {
@@ -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-CmjIVfwC.js";
2
+ import { u as q, s as E } from "./menu-BvmC7qb6.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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),D=require("./index-DyEqiHy2.cjs"),h=require("./index-Dat5KfVY.cjs"),m=require("./index-BW3rUIA3.cjs"),g=require("./index-BRY3GVIU.cjs"),f=require("vue-router"),C=require("./modelComp-DgySA7lh.cjs"),u=require("./menu-Dgk7naNE.cjs"),v=require("./cloneDeep-gdyyfw9f.cjs"),_=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k=n.ref([{label:"机构名称",value:"",name:"deptName"}]),q=a=>{console.log("handleQueryChange",a)},S=n.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"tableIndex",contents:[]},{key:"header",contents:[{label:"机构名称",prop:"deptName"},{label:"机构类型",prop:"deptType",formType:"Select",options:[{label:"集团",value:"集团"},{label:"公司",value:"公司"},{label:"部门",value:"部门"},{label:"区域",value:"区域"},{label:"组",value:"组"}]},{label:"机构状态",formType:"Radio",prop:"deptStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"操作"}]},{key:"tableContents"}]),x=a=>{console.log("handleItemDataChange",a),g.submitTableAsyncByVerify(a.singleContent,a.buttonName)},w=a=>{console.log("onDoubleClick",a)},I=(a,t)=>{console.log("onButtonClick",a,t)},T=async a=>{const t=await g.handleSubmitAsync(m.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:a}},"查询"),l=t==null?void 0:t.map(e=>{var o;return{id:e.id,rowData:(o=e==null?void 0:e.value)==null?void 0:o.rowData}});return l==null?void 0:l.map(e=>{var o;if(Array.isArray(e==null?void 0:e.rowData)){let r={id:e.id};return(o=e==null?void 0:e.rowData)==null||o.forEach((p,s)=>{r[`a${s}`]=p}),r}else return{...e.rowData,id:e.id}})},A=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:T,handleItemDataChange:x,handleQueryChange:q,onButtonClick:I,onDoubleClick:w,pageData:S,queryFormData:k},Symbol.toStringTag,{value:"Module"})),B={class:"role-wrapper"},M=n.defineComponent({__name:"index",setup(a){const t=n.reactive({...A}),l=f.useRoute(),e=C.useModelComp(),{itemData:o}=u.storeToRefs(e),r=u.useMenuState(),{menus:p,activeMenuPath:s}=u.storeToRefs(r);return n.onMounted(()=>{const d=v.cloneDeep(o.value),i={comp:"Group",name:l.path,compData:t.pageData};e.setItemData([...d,i]),s.value&&t.getPageDataAsync(s.value).then(y=>{var b;t.pageData=(b=t.pageData)==null?void 0:b.map(c=>c.key==="tableContents"?{...c,contents:y}:c)})}),(d,i)=>(n.openBlock(),n.createElementBlock("div",B,[n.createVNode(D.ssForm,{class:"role-header",rowContents:t.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:t.handleQueryChange},null,8,["rowContents","onChange"]),n.createVNode(h.ssTable,{class:"role-body",itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}}),P=_._export_sfc(M,[["__scopeId","data-v-b5fc82ed"]]);exports.default=P;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),D=require("./index-CCRbN8LA.cjs"),h=require("./index-CkRrBKAP.cjs"),m=require("./index-DWo0GWcq.cjs"),g=require("./index-1tsnH8Kt.cjs"),f=require("vue-router"),C=require("./modelComp-BCiaU3TF.cjs"),u=require("./menu-BrKPZxak.cjs"),v=require("./cloneDeep-C5Uiz3YI.cjs"),_=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k=n.ref([{label:"机构名称",value:"",name:"deptName"}]),q=a=>{console.log("handleQueryChange",a)},S=n.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"tableIndex",contents:[]},{key:"header",contents:[{label:"机构名称",prop:"deptName"},{label:"机构类型",prop:"deptType",formType:"Select",options:[{label:"集团",value:"集团"},{label:"公司",value:"公司"},{label:"部门",value:"部门"},{label:"区域",value:"区域"},{label:"组",value:"组"}]},{label:"机构状态",formType:"Radio",prop:"deptStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"操作"}]},{key:"tableContents"}]),x=a=>{console.log("handleItemDataChange",a),g.submitTableAsyncByVerify(a.singleContent,a.buttonName)},w=a=>{console.log("onDoubleClick",a)},I=(a,t)=>{console.log("onButtonClick",a,t)},T=async a=>{const t=await g.handleSubmitAsync(m.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:a}},"查询"),l=t==null?void 0:t.map(e=>{var o;return{id:e.id,rowData:(o=e==null?void 0:e.value)==null?void 0:o.rowData}});return l==null?void 0:l.map(e=>{var o;if(Array.isArray(e==null?void 0:e.rowData)){let r={id:e.id};return(o=e==null?void 0:e.rowData)==null||o.forEach((p,s)=>{r[`a${s}`]=p}),r}else return{...e.rowData,id:e.id}})},A=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:T,handleItemDataChange:x,handleQueryChange:q,onButtonClick:I,onDoubleClick:w,pageData:S,queryFormData:k},Symbol.toStringTag,{value:"Module"})),B={class:"role-wrapper"},M=n.defineComponent({__name:"index",setup(a){const t=n.reactive({...A}),l=f.useRoute(),e=C.useModelComp(),{itemData:o}=u.storeToRefs(e),r=u.useMenuState(),{menus:p,activeMenuPath:s}=u.storeToRefs(r);return n.onMounted(()=>{const d=v.cloneDeep(o.value),i={comp:"Group",name:l.path,compData:t.pageData};e.setItemData([...d,i]),s.value&&t.getPageDataAsync(s.value).then(y=>{var b;t.pageData=(b=t.pageData)==null?void 0:b.map(c=>c.key==="tableContents"?{...c,contents:y}:c)})}),(d,i)=>(n.openBlock(),n.createElementBlock("div",B,[n.createVNode(D.ssForm,{class:"role-header",rowContents:t.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:t.handleQueryChange},null,8,["rowContents","onChange"]),n.createVNode(h.ssTable,{class:"role-body",itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}}),P=_._export_sfc(M,[["__scopeId","data-v-b5fc82ed"]]);exports.default=P;
@@ -1,4 +1,4 @@
1
- import { s as a } from "./request-BaXl3oQ9.js";
1
+ import { s as a } from "./request-BZej_b04.js";
2
2
  function o(t) {
3
3
  return a({
4
4
  url: "/api/insofData/add",
@@ -1,4 +1,4 @@
1
- "use strict";const a=require("vue"),xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ut=require("./cloneDeep-gdyyfw9f.cjs"),Ht=require("./menu-Dgk7naNE.cjs"),hn=require("./index-B4VSd4FO.cjs"),fn=require("./index-CWUIx9UX.cjs"),At=require("./index-bC8ZQAKp.cjs");function pn(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Je={exports:{}},mn=Je.exports,Pt;function gn(){return Pt||(Pt=1,function(o,e){(function(t,n){o.exports=n()})(mn,function(){var t=1e3,n=6e4,r=36e5,i="millisecond",s="second",l="minute",u="hour",c="day",d="week",h="month",w="quarter",m="year",f="date",y="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var b=["th","st","nd","rd"],g=x%100;return"["+x+(b[(g-20)%10]||b[g]||b[0])+"]"}},k=function(x,b,g){var C=String(x);return!C||C.length>=b?x:""+Array(b+1-C.length).join(g)+x},V={s:k,z:function(x){var b=-x.utcOffset(),g=Math.abs(b),C=Math.floor(g/60),_=g%60;return(b<=0?"+":"-")+k(C,2,"0")+":"+k(_,2,"0")},m:function x(b,g){if(b.date()<g.date())return-x(g,b);var C=12*(g.year()-b.year())+(g.month()-b.month()),_=b.clone().add(C,h),M=g-_<0,I=b.clone().add(C+(M?-1:1),h);return+(-(C+(g-_)/(M?_-I:I-_))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:h,y:m,w:d,d:c,D:f,h:u,m:l,s,ms:i,Q:w}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},W="en",E={};E[W]=p;var j="$isDayjsObject",S=function(x){return x instanceof ee||!(!x||!x[j])},B=function x(b,g,C){var _;if(!b)return W;if(typeof b=="string"){var M=b.toLowerCase();E[M]&&(_=M),g&&(E[M]=g,_=M);var I=b.split("-");if(!_&&I.length>1)return x(I[0])}else{var L=b.name;E[L]=b,_=L}return!C&&_&&(W=_),_||!C&&W},O=function(x,b){if(S(x))return x.clone();var g=typeof b=="object"?b:{};return g.date=x,g.args=arguments,new ee(g)},P=V;P.l=B,P.i=S,P.w=function(x,b){return O(x,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var ee=function(){function x(g){this.$L=B(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[j]=!0}var b=x.prototype;return b.parse=function(g){this.$d=function(C){var _=C.date,M=C.utc;if(_===null)return new Date(NaN);if(P.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var I=_.match(D);if(I){var L=I[2]-1||0,U=(I[7]||"0").substring(0,3);return M?new Date(Date.UTC(I[1],L,I[3]||1,I[4]||0,I[5]||0,I[6]||0,U)):new Date(I[1],L,I[3]||1,I[4]||0,I[5]||0,I[6]||0,U)}}return new Date(_)}(g),this.init()},b.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},b.$utils=function(){return P},b.isValid=function(){return this.$d.toString()!==y},b.isSame=function(g,C){var _=O(g);return this.startOf(C)<=_&&_<=this.endOf(C)},b.isAfter=function(g,C){return O(g)<this.startOf(C)},b.isBefore=function(g,C){return this.endOf(C)<O(g)},b.$g=function(g,C,_){return P.u(g)?this[C]:this.set(_,g)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(g,C){var _=this,M=!!P.u(C)||C,I=P.p(g),L=function(we,ne){var ge=P.w(_.$u?Date.UTC(_.$y,ne,we):new Date(_.$y,ne,we),_);return M?ge:ge.endOf(c)},U=function(we,ne){return P.w(_.toDate()[we].apply(_.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(ne)),_)},J=this.$W,Z=this.$M,le=this.$D,Ce="set"+(this.$u?"UTC":"");switch(I){case m:return M?L(1,0):L(31,11);case h:return M?L(1,Z):L(0,Z+1);case d:var _e=this.$locale().weekStart||0,Me=(J<_e?J+7:J)-_e;return L(M?le-Me:le+(6-Me),Z);case c:case f:return U(Ce+"Hours",0);case u:return U(Ce+"Minutes",1);case l:return U(Ce+"Seconds",2);case s:return U(Ce+"Milliseconds",3);default:return this.clone()}},b.endOf=function(g){return this.startOf(g,!1)},b.$set=function(g,C){var _,M=P.p(g),I="set"+(this.$u?"UTC":""),L=(_={},_[c]=I+"Date",_[f]=I+"Date",_[h]=I+"Month",_[m]=I+"FullYear",_[u]=I+"Hours",_[l]=I+"Minutes",_[s]=I+"Seconds",_[i]=I+"Milliseconds",_)[M],U=M===c?this.$D+(C-this.$W):C;if(M===h||M===m){var J=this.clone().set(f,1);J.$d[L](U),J.init(),this.$d=J.set(f,Math.min(this.$D,J.daysInMonth())).$d}else L&&this.$d[L](U);return this.init(),this},b.set=function(g,C){return this.clone().$set(g,C)},b.get=function(g){return this[P.p(g)]()},b.add=function(g,C){var _,M=this;g=Number(g);var I=P.p(C),L=function(Z){var le=O(M);return P.w(le.date(le.date()+Math.round(Z*g)),M)};if(I===h)return this.set(h,this.$M+g);if(I===m)return this.set(m,this.$y+g);if(I===c)return L(1);if(I===d)return L(7);var U=(_={},_[l]=n,_[u]=r,_[s]=t,_)[I]||1,J=this.$d.getTime()+g*U;return P.w(J,this)},b.subtract=function(g,C){return this.add(-1*g,C)},b.format=function(g){var C=this,_=this.$locale();if(!this.isValid())return _.invalidDate||y;var M=g||"YYYY-MM-DDTHH:mm:ssZ",I=P.z(this),L=this.$H,U=this.$m,J=this.$M,Z=_.weekdays,le=_.months,Ce=_.meridiem,_e=function(ne,ge,Ie,He){return ne&&(ne[ge]||ne(C,M))||Ie[ge].slice(0,He)},Me=function(ne){return P.s(L%12||12,ne,"0")},we=Ce||function(ne,ge,Ie){var He=ne<12?"AM":"PM";return Ie?He.toLowerCase():He};return M.replace(A,function(ne,ge){return ge||function(Ie){switch(Ie){case"YY":return String(C.$y).slice(-2);case"YYYY":return P.s(C.$y,4,"0");case"M":return J+1;case"MM":return P.s(J+1,2,"0");case"MMM":return _e(_.monthsShort,J,le,3);case"MMMM":return _e(le,J);case"D":return C.$D;case"DD":return P.s(C.$D,2,"0");case"d":return String(C.$W);case"dd":return _e(_.weekdaysMin,C.$W,Z,2);case"ddd":return _e(_.weekdaysShort,C.$W,Z,3);case"dddd":return Z[C.$W];case"H":return String(L);case"HH":return P.s(L,2,"0");case"h":return Me(1);case"hh":return Me(2);case"a":return we(L,U,!0);case"A":return we(L,U,!1);case"m":return String(U);case"mm":return P.s(U,2,"0");case"s":return String(C.$s);case"ss":return P.s(C.$s,2,"0");case"SSS":return P.s(C.$ms,3,"0");case"Z":return I}return null}(ne)||I.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(g,C,_){var M,I=this,L=P.p(C),U=O(g),J=(U.utcOffset()-this.utcOffset())*n,Z=this-U,le=function(){return P.m(I,U)};switch(L){case m:M=le()/12;break;case h:M=le();break;case w:M=le()/3;break;case d:M=(Z-J)/6048e5;break;case c:M=(Z-J)/864e5;break;case u:M=Z/r;break;case l:M=Z/n;break;case s:M=Z/t;break;default:M=Z}return _?M:P.a(M)},b.daysInMonth=function(){return this.endOf(h).$D},b.$locale=function(){return E[this.$L]},b.locale=function(g,C){if(!g)return this.$L;var _=this.clone(),M=B(g,C,!0);return M&&(_.$L=M),_},b.clone=function(){return P.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},x}(),q=ee.prototype;return O.prototype=q,[["$ms",i],["$s",s],["$m",l],["$H",u],["$W",c],["$M",h],["$y",m],["$D",f]].forEach(function(x){q[x[1]]=function(b){return this.$g(b,x[0],x[1])}}),O.extend=function(x,b){return x.$i||(x(b,ee,O),x.$i=!0),O},O.locale=B,O.isDayjs=S,O.unix=function(x){return O(1e3*x)},O.en=E[W],O.Ls=E,O.p={},O})}(Je)),Je.exports}var vn=gn();const jt=pn(vn),yn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-switch");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),"active-color":"#13ce66","inactive-color":"#ff4949"},null,8,["modelValue"])}}},bn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-input");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),disabled:!(e!=null&&e.isEdit)},null,8,["modelValue","disabled"])}}},_n={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-input");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),disabled:!(e!=null&&e.isEdit),type:"password","show-password":"",clearable:""},null,8,["modelValue","disabled"])}}},wn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-color-picker");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),"show-alpha":""},null,8,["modelValue"])}}},En={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-input");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),style:{height:"100%"},type:"number"},null,8,["modelValue"])}}},Sn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o;return(t,n)=>{var r,i,s,l,u,c;return a.openBlock(),a.createBlock(dn,{rowContents:((r=e==null?void 0:e.content)==null?void 0:r.rowContents)??[],buttonValue:((i=e==null?void 0:e.content)==null?void 0:i.buttonValue)??[],isEnableWrap:(s=e==null?void 0:e.content)==null?void 0:s.isEnableWrap,isRowFlex:(l=e==null?void 0:e.content)==null?void 0:l.isRowFlex,isButtonRow:(u=e==null?void 0:e.content)==null?void 0:u.isButtonRow,rowValues:((c=e==null?void 0:e.content)==null?void 0:c.rowValues)??[]},null,8,["rowContents","buttonValue","isEnableWrap","isRowFlex","isButtonRow","rowValues"])}}},Dn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-radio"),s=a.resolveComponent("el-radio-group");return a.openBlock(),a.createBlock(s,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=l=>t.value=l),style:{height:"100%"}},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.content,(l,u)=>(a.openBlock(),a.createBlock(i,{key:u,label:l.label},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l==null?void 0:l.value),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}},xn=["onDblclick"],Cn={key:1,class:"tabs-label"},kn={__name:"index",props:{tabsContents:{type:Array,default:()=>[]}},emits:["dblClick","dbChange"],setup(o,{emit:e}){var c;const t=o,n=e,r=a.ref([]),i=a.ref((c=t==null?void 0:t.tabsContents[0])==null?void 0:c.value),s=d=>$t(d),l=d=>{n("dblClick",d)},u=d=>{n("dbChange",d)};return a.watch(()=>t.tabsContents,()=>{r.value=ut.cloneDeep(t.tabsContents)},{deep:!0,immediate:!0}),(d,h)=>{const w=a.resolveComponent("el-tab-pane"),m=a.resolveComponent("el-tabs");return a.openBlock(),a.createBlock(m,{type:"card",modelValue:i.value,"onUpdate:modelValue":h[0]||(h[0]=f=>i.value=f)},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(f,y)=>(a.openBlock(),a.createBlock(w,{key:y,name:f==null?void 0:f.value},{label:a.withCtx(()=>{var D;return[f!=null&&f.label?(a.openBlock(),a.createElementBlock("div",{key:0,onDblclick:A=>l(f)},a.toDisplayString(f==null?void 0:f.label),41,xn)):a.createCommentVNode("",!0),f!=null&&f.contents&&((D=f==null?void 0:f.contents)==null?void 0:D.length)>0?(a.openBlock(),a.createElementBlock("div",Cn,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f==null?void 0:f.contents,(A,p)=>(a.openBlock(),a.createElementBlock("div",{key:p,class:"tabs-children"},[A!=null&&A.value||(A==null?void 0:A.value)===""?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(A==null?void 0:A.type)),{key:0,modelValue:A.value,"onUpdate:modelValue":k=>A.value=k,content:(A==null?void 0:A.contents)??[]},null,8,["modelValue","onUpdate:modelValue","content"])):a.createCommentVNode("",!0)]))),128))])):a.createCommentVNode("",!0),a.renderSlot(d.$slots,`${(f==null?void 0:f.value)??""}_header`,{},void 0,!0)]}),default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f==null?void 0:f.children,(D,A)=>(a.openBlock(),a.createElementBlock("div",{key:A,class:"tabs-contents"},[a.renderSlot(d.$slots,`${(D==null?void 0:D.value)??""}_operateButtons`,{},void 0,!0),D!=null&&D.value||(D==null?void 0:D.value)===""?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(D==null?void 0:D.type)),{key:0,modelValue:D.value,"onUpdate:modelValue":p=>D.value=p,onDbChange:u,content:D==null?void 0:D.content},a.createSlots({_:2},[a.renderList(d.$slots,(p,k)=>({name:k,fn:a.withCtx(V=>[a.renderSlot(d.$slots,k,a.mergeProps({ref_for:!0},V||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"])):a.createCommentVNode("",!0)]))),128))]),_:2},1032,["name"]))),128))]),_:3},8,["modelValue"])}}},Xt=xe._export_sfc(kn,[["__scopeId","data-v-c1c693d0"]]),Bn=Object.freeze(Object.defineProperty({__proto__:null,default:Xt},Symbol.toStringTag,{value:"Module"})),Tn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o;return a.onMounted(()=>{document.querySelectorAll(".el-tab-pane").forEach(n=>{n.style.display="block"})}),(t,n)=>{var r;return a.openBlock(),a.createBlock(Xt,{tabsContents:((r=e==null?void 0:e.content)==null?void 0:r.tabsContents)??[]},a.createSlots({_:2},[a.renderList(t.$slots,(i,s)=>({name:s,fn:a.withCtx(l=>[a.renderSlot(t.$slots,s,a.normalizeProps(a.guardReactiveProps(l||{})))])}))]),1032,["tabsContents"])}}};/**!
1
+ "use strict";const a=require("vue"),xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ut=require("./cloneDeep-C5Uiz3YI.cjs"),Ht=require("./menu-BrKPZxak.cjs"),hn=require("./index-BlLflUGY.cjs"),fn=require("./index-CqGzezUw.cjs"),At=require("./index-BUXPBc5D.cjs");function pn(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Je={exports:{}},mn=Je.exports,Pt;function gn(){return Pt||(Pt=1,function(o,e){(function(t,n){o.exports=n()})(mn,function(){var t=1e3,n=6e4,r=36e5,i="millisecond",s="second",l="minute",u="hour",c="day",d="week",h="month",w="quarter",m="year",f="date",y="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var b=["th","st","nd","rd"],g=x%100;return"["+x+(b[(g-20)%10]||b[g]||b[0])+"]"}},k=function(x,b,g){var C=String(x);return!C||C.length>=b?x:""+Array(b+1-C.length).join(g)+x},V={s:k,z:function(x){var b=-x.utcOffset(),g=Math.abs(b),C=Math.floor(g/60),_=g%60;return(b<=0?"+":"-")+k(C,2,"0")+":"+k(_,2,"0")},m:function x(b,g){if(b.date()<g.date())return-x(g,b);var C=12*(g.year()-b.year())+(g.month()-b.month()),_=b.clone().add(C,h),M=g-_<0,I=b.clone().add(C+(M?-1:1),h);return+(-(C+(g-_)/(M?_-I:I-_))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:h,y:m,w:d,d:c,D:f,h:u,m:l,s,ms:i,Q:w}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},W="en",E={};E[W]=p;var j="$isDayjsObject",S=function(x){return x instanceof ee||!(!x||!x[j])},B=function x(b,g,C){var _;if(!b)return W;if(typeof b=="string"){var M=b.toLowerCase();E[M]&&(_=M),g&&(E[M]=g,_=M);var I=b.split("-");if(!_&&I.length>1)return x(I[0])}else{var L=b.name;E[L]=b,_=L}return!C&&_&&(W=_),_||!C&&W},O=function(x,b){if(S(x))return x.clone();var g=typeof b=="object"?b:{};return g.date=x,g.args=arguments,new ee(g)},P=V;P.l=B,P.i=S,P.w=function(x,b){return O(x,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var ee=function(){function x(g){this.$L=B(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[j]=!0}var b=x.prototype;return b.parse=function(g){this.$d=function(C){var _=C.date,M=C.utc;if(_===null)return new Date(NaN);if(P.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var I=_.match(D);if(I){var L=I[2]-1||0,U=(I[7]||"0").substring(0,3);return M?new Date(Date.UTC(I[1],L,I[3]||1,I[4]||0,I[5]||0,I[6]||0,U)):new Date(I[1],L,I[3]||1,I[4]||0,I[5]||0,I[6]||0,U)}}return new Date(_)}(g),this.init()},b.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},b.$utils=function(){return P},b.isValid=function(){return this.$d.toString()!==y},b.isSame=function(g,C){var _=O(g);return this.startOf(C)<=_&&_<=this.endOf(C)},b.isAfter=function(g,C){return O(g)<this.startOf(C)},b.isBefore=function(g,C){return this.endOf(C)<O(g)},b.$g=function(g,C,_){return P.u(g)?this[C]:this.set(_,g)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(g,C){var _=this,M=!!P.u(C)||C,I=P.p(g),L=function(we,ne){var ge=P.w(_.$u?Date.UTC(_.$y,ne,we):new Date(_.$y,ne,we),_);return M?ge:ge.endOf(c)},U=function(we,ne){return P.w(_.toDate()[we].apply(_.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(ne)),_)},J=this.$W,Z=this.$M,le=this.$D,Ce="set"+(this.$u?"UTC":"");switch(I){case m:return M?L(1,0):L(31,11);case h:return M?L(1,Z):L(0,Z+1);case d:var _e=this.$locale().weekStart||0,Me=(J<_e?J+7:J)-_e;return L(M?le-Me:le+(6-Me),Z);case c:case f:return U(Ce+"Hours",0);case u:return U(Ce+"Minutes",1);case l:return U(Ce+"Seconds",2);case s:return U(Ce+"Milliseconds",3);default:return this.clone()}},b.endOf=function(g){return this.startOf(g,!1)},b.$set=function(g,C){var _,M=P.p(g),I="set"+(this.$u?"UTC":""),L=(_={},_[c]=I+"Date",_[f]=I+"Date",_[h]=I+"Month",_[m]=I+"FullYear",_[u]=I+"Hours",_[l]=I+"Minutes",_[s]=I+"Seconds",_[i]=I+"Milliseconds",_)[M],U=M===c?this.$D+(C-this.$W):C;if(M===h||M===m){var J=this.clone().set(f,1);J.$d[L](U),J.init(),this.$d=J.set(f,Math.min(this.$D,J.daysInMonth())).$d}else L&&this.$d[L](U);return this.init(),this},b.set=function(g,C){return this.clone().$set(g,C)},b.get=function(g){return this[P.p(g)]()},b.add=function(g,C){var _,M=this;g=Number(g);var I=P.p(C),L=function(Z){var le=O(M);return P.w(le.date(le.date()+Math.round(Z*g)),M)};if(I===h)return this.set(h,this.$M+g);if(I===m)return this.set(m,this.$y+g);if(I===c)return L(1);if(I===d)return L(7);var U=(_={},_[l]=n,_[u]=r,_[s]=t,_)[I]||1,J=this.$d.getTime()+g*U;return P.w(J,this)},b.subtract=function(g,C){return this.add(-1*g,C)},b.format=function(g){var C=this,_=this.$locale();if(!this.isValid())return _.invalidDate||y;var M=g||"YYYY-MM-DDTHH:mm:ssZ",I=P.z(this),L=this.$H,U=this.$m,J=this.$M,Z=_.weekdays,le=_.months,Ce=_.meridiem,_e=function(ne,ge,Ie,He){return ne&&(ne[ge]||ne(C,M))||Ie[ge].slice(0,He)},Me=function(ne){return P.s(L%12||12,ne,"0")},we=Ce||function(ne,ge,Ie){var He=ne<12?"AM":"PM";return Ie?He.toLowerCase():He};return M.replace(A,function(ne,ge){return ge||function(Ie){switch(Ie){case"YY":return String(C.$y).slice(-2);case"YYYY":return P.s(C.$y,4,"0");case"M":return J+1;case"MM":return P.s(J+1,2,"0");case"MMM":return _e(_.monthsShort,J,le,3);case"MMMM":return _e(le,J);case"D":return C.$D;case"DD":return P.s(C.$D,2,"0");case"d":return String(C.$W);case"dd":return _e(_.weekdaysMin,C.$W,Z,2);case"ddd":return _e(_.weekdaysShort,C.$W,Z,3);case"dddd":return Z[C.$W];case"H":return String(L);case"HH":return P.s(L,2,"0");case"h":return Me(1);case"hh":return Me(2);case"a":return we(L,U,!0);case"A":return we(L,U,!1);case"m":return String(U);case"mm":return P.s(U,2,"0");case"s":return String(C.$s);case"ss":return P.s(C.$s,2,"0");case"SSS":return P.s(C.$ms,3,"0");case"Z":return I}return null}(ne)||I.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(g,C,_){var M,I=this,L=P.p(C),U=O(g),J=(U.utcOffset()-this.utcOffset())*n,Z=this-U,le=function(){return P.m(I,U)};switch(L){case m:M=le()/12;break;case h:M=le();break;case w:M=le()/3;break;case d:M=(Z-J)/6048e5;break;case c:M=(Z-J)/864e5;break;case u:M=Z/r;break;case l:M=Z/n;break;case s:M=Z/t;break;default:M=Z}return _?M:P.a(M)},b.daysInMonth=function(){return this.endOf(h).$D},b.$locale=function(){return E[this.$L]},b.locale=function(g,C){if(!g)return this.$L;var _=this.clone(),M=B(g,C,!0);return M&&(_.$L=M),_},b.clone=function(){return P.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},x}(),q=ee.prototype;return O.prototype=q,[["$ms",i],["$s",s],["$m",l],["$H",u],["$W",c],["$M",h],["$y",m],["$D",f]].forEach(function(x){q[x[1]]=function(b){return this.$g(b,x[0],x[1])}}),O.extend=function(x,b){return x.$i||(x(b,ee,O),x.$i=!0),O},O.locale=B,O.isDayjs=S,O.unix=function(x){return O(1e3*x)},O.en=E[W],O.Ls=E,O.p={},O})}(Je)),Je.exports}var vn=gn();const jt=pn(vn),yn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-switch");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),"active-color":"#13ce66","inactive-color":"#ff4949"},null,8,["modelValue"])}}},bn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-input");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),disabled:!(e!=null&&e.isEdit)},null,8,["modelValue","disabled"])}}},_n={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-input");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),disabled:!(e!=null&&e.isEdit),type:"password","show-password":"",clearable:""},null,8,["modelValue","disabled"])}}},wn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-color-picker");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),"show-alpha":""},null,8,["modelValue"])}}},En={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-input");return a.openBlock(),a.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=s=>t.value=s),style:{height:"100%"},type:"number"},null,8,["modelValue"])}}},Sn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o;return(t,n)=>{var r,i,s,l,u,c;return a.openBlock(),a.createBlock(dn,{rowContents:((r=e==null?void 0:e.content)==null?void 0:r.rowContents)??[],buttonValue:((i=e==null?void 0:e.content)==null?void 0:i.buttonValue)??[],isEnableWrap:(s=e==null?void 0:e.content)==null?void 0:s.isEnableWrap,isRowFlex:(l=e==null?void 0:e.content)==null?void 0:l.isRowFlex,isButtonRow:(u=e==null?void 0:e.content)==null?void 0:u.isButtonRow,rowValues:((c=e==null?void 0:e.content)==null?void 0:c.rowValues)??[]},null,8,["rowContents","buttonValue","isEnableWrap","isRowFlex","isButtonRow","rowValues"])}}},Dn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=a.ref(e.value);return(n,r)=>{const i=a.resolveComponent("el-radio"),s=a.resolveComponent("el-radio-group");return a.openBlock(),a.createBlock(s,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=l=>t.value=l),style:{height:"100%"}},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.content,(l,u)=>(a.openBlock(),a.createBlock(i,{key:u,label:l.label},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l==null?void 0:l.value),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}},xn=["onDblclick"],Cn={key:1,class:"tabs-label"},kn={__name:"index",props:{tabsContents:{type:Array,default:()=>[]}},emits:["dblClick","dbChange"],setup(o,{emit:e}){var c;const t=o,n=e,r=a.ref([]),i=a.ref((c=t==null?void 0:t.tabsContents[0])==null?void 0:c.value),s=d=>$t(d),l=d=>{n("dblClick",d)},u=d=>{n("dbChange",d)};return a.watch(()=>t.tabsContents,()=>{r.value=ut.cloneDeep(t.tabsContents)},{deep:!0,immediate:!0}),(d,h)=>{const w=a.resolveComponent("el-tab-pane"),m=a.resolveComponent("el-tabs");return a.openBlock(),a.createBlock(m,{type:"card",modelValue:i.value,"onUpdate:modelValue":h[0]||(h[0]=f=>i.value=f)},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(f,y)=>(a.openBlock(),a.createBlock(w,{key:y,name:f==null?void 0:f.value},{label:a.withCtx(()=>{var D;return[f!=null&&f.label?(a.openBlock(),a.createElementBlock("div",{key:0,onDblclick:A=>l(f)},a.toDisplayString(f==null?void 0:f.label),41,xn)):a.createCommentVNode("",!0),f!=null&&f.contents&&((D=f==null?void 0:f.contents)==null?void 0:D.length)>0?(a.openBlock(),a.createElementBlock("div",Cn,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f==null?void 0:f.contents,(A,p)=>(a.openBlock(),a.createElementBlock("div",{key:p,class:"tabs-children"},[A!=null&&A.value||(A==null?void 0:A.value)===""?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(A==null?void 0:A.type)),{key:0,modelValue:A.value,"onUpdate:modelValue":k=>A.value=k,content:(A==null?void 0:A.contents)??[]},null,8,["modelValue","onUpdate:modelValue","content"])):a.createCommentVNode("",!0)]))),128))])):a.createCommentVNode("",!0),a.renderSlot(d.$slots,`${(f==null?void 0:f.value)??""}_header`,{},void 0,!0)]}),default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f==null?void 0:f.children,(D,A)=>(a.openBlock(),a.createElementBlock("div",{key:A,class:"tabs-contents"},[a.renderSlot(d.$slots,`${(D==null?void 0:D.value)??""}_operateButtons`,{},void 0,!0),D!=null&&D.value||(D==null?void 0:D.value)===""?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s(D==null?void 0:D.type)),{key:0,modelValue:D.value,"onUpdate:modelValue":p=>D.value=p,onDbChange:u,content:D==null?void 0:D.content},a.createSlots({_:2},[a.renderList(d.$slots,(p,k)=>({name:k,fn:a.withCtx(V=>[a.renderSlot(d.$slots,k,a.mergeProps({ref_for:!0},V||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"])):a.createCommentVNode("",!0)]))),128))]),_:2},1032,["name"]))),128))]),_:3},8,["modelValue"])}}},Xt=xe._export_sfc(kn,[["__scopeId","data-v-c1c693d0"]]),Bn=Object.freeze(Object.defineProperty({__proto__:null,default:Xt},Symbol.toStringTag,{value:"Module"})),Tn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o;return a.onMounted(()=>{document.querySelectorAll(".el-tab-pane").forEach(n=>{n.style.display="block"})}),(t,n)=>{var r;return a.openBlock(),a.createBlock(Xt,{tabsContents:((r=e==null?void 0:e.content)==null?void 0:r.tabsContents)??[]},a.createSlots({_:2},[a.renderList(t.$slots,(i,s)=>({name:s,fn:a.withCtx(l=>[a.renderSlot(t.$slots,s,a.normalizeProps(a.guardReactiveProps(l||{})))])}))]),1032,["tabsContents"])}}};/**!
2
2
  * Sortable 1.15.6
3
3
  * @author RubaXa <trash@rubaxa.org>
4
4
  * @author owenm <owen23355@gmail.com>
@@ -1,4 +1,4 @@
1
- "use strict";const J=require("vue"),Ms=require("./request-BCuBMd6Z.cjs"),Oo=require("./modelComp-DgySA7lh.cjs"),Dl=require("./index-bC8ZQAKp.cjs"),Ui=require("./index-DyEqiHy2.cjs"),ut=require("./cloneDeep-gdyyfw9f.cjs"),ca=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Fn=require("./menu-Dgk7naNE.cjs"),Ll=require("./formToTable-9jLakigk.cjs"),Hn=require("./index-BW3rUIA3.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),Cs=i=>(hi.value++,i==null?void 0:i.map(t=>Array.isArray(t)?Cs(t):{label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":(t==null?void 0:t.prop)??"a"+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:Cs(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=Cs(n):(n={label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":(n==null?void 0:n.prop)??"a"+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:Cs(n.children)},hi.value++),n))),t)),Bo=i=>{function e(t,n=[]){if(!t||t.length===0)return[];let s=n;return t==null||t.forEach(r=>{var a;r!=null&&r.children&&((a=r.children)==null?void 0:a.length)>0?s=e(r==null?void 0:r.children,s):s.push(r)}),s}return e(i)},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=Bo(ut.cloneDeep(h)))==null?void 0:u.filter(m=>(m==null?void 0:m.label)!==""&&(m==null?void 0:m.label)!=="操作"))==null?void 0:f.map(m=>({label:(m==null?void 0:m.label)??"",value:"",name:(m==null?void 0:m.prop)??"",isFormColHidden:m==null?void 0:m.isTableColHidden}))},c=h=>{s.value=!1};return J.onMounted(()=>{l(n.columns)}),J.watch(()=>n.columns,()=>{l(n.columns)},{deep:!0,immediate:!0}),(h,u)=>{var m;const f=J.resolveComponent("el-tooltip");return J.openBlock(),J.createElementBlock("div",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"),Ms=require("./request-BuMG7bd8.cjs"),Oo=require("./modelComp-BCiaU3TF.cjs"),Dl=require("./index-BUXPBc5D.cjs"),Ui=require("./index-CCRbN8LA.cjs"),ut=require("./cloneDeep-C5Uiz3YI.cjs"),ca=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Fn=require("./menu-BrKPZxak.cjs"),Ll=require("./formToTable-C-tLm_KX.cjs"),Hn=require("./index-DWo0GWcq.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),Cs=i=>(hi.value++,i==null?void 0:i.map(t=>Array.isArray(t)?Cs(t):{label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":(t==null?void 0:t.prop)??"a"+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:Cs(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=Cs(n):(n={label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":(n==null?void 0:n.prop)??"a"+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:Cs(n.children)},hi.value++),n))),t)),Bo=i=>{function e(t,n=[]){if(!t||t.length===0)return[];let s=n;return t==null||t.forEach(r=>{var a;r!=null&&r.children&&((a=r.children)==null?void 0:a.length)>0?s=e(r==null?void 0:r.children,s):s.push(r)}),s}return e(i)},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=Bo(ut.cloneDeep(h)))==null?void 0:u.filter(m=>(m==null?void 0:m.label)!==""&&(m==null?void 0:m.label)!=="操作"))==null?void 0:f.map(m=>({label:(m==null?void 0:m.label)??"",value:"",name:(m==null?void 0:m.prop)??"",isFormColHidden:m==null?void 0:m.isTableColHidden}))},c=h=>{s.value=!1};return J.onMounted(()=>{l(n.columns)}),J.watch(()=>n.columns,()=>{l(n.columns)},{deep:!0,immediate:!0}),(h,u)=>{var m;const f=J.resolveComponent("el-tooltip");return J.openBlock(),J.createElementBlock("div",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],D=S.name+"_"+S.smooth+"_"+_;let A=t.materials[D];if(this.materials!==null){if(A=this.materials.create(S.name),f&&A&&!(A instanceof ws)){const C=new ws;mn.prototype.copy.call(C,A),C.color.copy(A.color),A=C}else if(m&&A&&!(A instanceof 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 ws:m?A=new Ni({size:1,sizeAttenuation:!1}):A=new ll,A.name=S.name,A.flatShading=!S.smooth,A.vertexColors=_,t.materials[D]=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 hl(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(l){try{t(r.parse(l,a))}catch(c){s?s(c):console.error(c),r.manager.itemError(e)}},n,s)}setMaterialOptions(e){return this.materialOptions=e,this}parse(e,t){const n=e.split(`
3832
- `);let s={};const r=/\s+/,a={};for(let l=0;l<n.length;l++){let c=n[l];if(c=c.trim(),c.length===0||c.charAt(0)==="#")continue;const h=c.indexOf(" ");let u=h>=0?c.substring(0,h):c;u=u.toLowerCase();let f=h>=0?c.substring(h+1):"";if(f=f.trim(),u==="newmtl")s={name:f},a[f]=s;else if(u==="ka"||u==="kd"||u==="ks"||u==="ke"){const m=f.split(r,3);s[u]=[parseFloat(m[0]),parseFloat(m[1]),parseFloat(m[2])]}else s[u]=f}const o=new 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:Ps}setCrossOrigin(e){return this.crossOrigin=e,this}setManager(e){this.manager=e}setMaterials(e){this.materialsInfo=this.convert(e),this.materials={},this.materialsArray=[],this.nameLookup={}}convert(e){if(!this.options)return e;const t={};for(const n in e){const s=e[n],r={};t[n]=r;for(const a in s){let o=!0,l=s[a];const c=a.toLowerCase();switch(c){case"kd":case"ka":case"ks":this.options&&this.options.normalizeRGB&&(l=[l[0]/255,l[1]/255,l[2]/255]),this.options&&this.options.ignoreZeroRGBs&&l[0]===0&&l[1]===0&&l[2]===0&&(o=!1);break}o&&(r[c]=l)}}return t}preload(){for(const e in this.materialsInfo)this.create(e)}getIndex(e){return this.nameLookup[e]}getAsArray(){let e=0;for(const t in this.materialsInfo)this.materialsArray[e]=this.create(t),this.nameLookup[t]=e,e++;return this.materialsArray}create(e){return this.materials[e]===void 0&&this.createMaterial_(e),this.materials[e]}createMaterial_(e){const t=this,n=this.materialsInfo[e],s={name:e,side:this.side};function r(o,l){return typeof l!="string"||l===""?"":/^https?:\/\//i.test(l)?l:o+l}function a(o,l){if(s[o])return;const c=t.getTextureParams(l,s),h=t.loadTexture(r(t.baseUrl,c.url));h.repeat.copy(c.scale),h.offset.copy(c.offset),h.wrapS=t.wrap,h.wrapT=t.wrap,(o==="map"||o==="emissiveMap")&&(h.colorSpace=xt),s[o]=h}for(const o in n){const l=n[o];let c;if(l!=="")switch(o.toLowerCase()){case"kd":s.color=Ke.colorSpaceToWorking(new We().fromArray(l),xt);break;case"ks":s.specular=Ke.colorSpaceToWorking(new We().fromArray(l),xt);break;case"ke":s.emissive=Ke.colorSpaceToWorking(new We().fromArray(l),xt);break;case"map_kd":a("map",l);break;case"map_ks":a("specularMap",l);break;case"map_ke":a("emissiveMap",l);break;case"norm":a("normalMap",l);break;case"map_bump":case"bump":a("bumpMap",l);break;case"disp":a("displacementMap",l);break;case"map_d":a("alphaMap",l),s.transparent=!0;break;case"ns":s.shininess=parseFloat(l);break;case"d":c=parseFloat(l),c<1&&(s.opacity=c,s.transparent=!0);break;case"tr":c=parseFloat(l),this.options&&this.options.invertTrProperty&&(c=1-c),c>0&&(s.opacity=1-c,s.transparent=!0);break}}return this.materials[e]=new ll(s),this.materials[e]}getTextureParams(e,t){const n={scale:new Be(1,1),offset:new Be(0,0)},s=e.split(/\s+/);let r;return r=s.indexOf("-bm"),r>=0&&(t.bumpScale=parseFloat(s[r+1]),s.splice(r,2)),r=s.indexOf("-mm"),r>=0&&(t.displacementBias=parseFloat(s[r+1]),t.displacementScale=parseFloat(s[r+2]),s.splice(r,3)),r=s.indexOf("-s"),r>=0&&(n.scale.set(parseFloat(s[r+1]),parseFloat(s[r+2])),s.splice(r,4)),r=s.indexOf("-o"),r>=0&&(n.offset.set(parseFloat(s[r+1]),parseFloat(s[r+2])),s.splice(r,4)),n.url=s.join(" ").trim(),n}loadTexture(e,t,n,s,r){const a=this.manager!==void 0?this.manager:cl;let o=a.getHandler(e);o===null&&(o=new 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"},vl={type:"end"},xs=new Os,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 Gn,this._lastTargetPosition=new N,this._quat=new Gn().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(vl),this.state=nt.NONE;break;case 1:const e=this._pointers[0],t=this._pointerPositions[e];this._onTouchStart({pointerId:e,pageX:t.x,pageY:t.y});break}}function 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(vl))}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,n=Oo.useModelComp(Ms.pinia),{nodeDev:s}=Fn.storeToRefs(n);let r,a,o,l,c;const h=()=>{r=new rh,r.background=new We(15790320),a=new zt(75,e.value.clientWidth/e.value.clientHeight,.1,1e3),a.position.z=5,o=new rm({antialias:!0}),o.setSize(e.value.clientWidth,e.value.clientHeight),o.setPixelRatio(window.devicePixelRatio),e.value.appendChild(o.domElement),l=new mm(a,o.domElement),l.enableDamping=!0,l.dampingFactor=.05;const _=new vh(16777215,.5);r.add(_);const v=new gh(16777215,.8);v.position.set(1,1,1),r.add(v),u("model"),f()},u=_=>{new dm().load(s.value===""?"/obj/"+_+".mtl":"/"+s.value+"/obj/"+_+".mtl",p=>{p.preload();const d=new um;d.setMaterials(p),d.load(s.value===""?"/obj/"+_+".obj":"/"+s.value+"/obj/"+_+".obj",b=>{c=b,c.rotation.set(50,-20,200),r.add(c);const T=new Mi().setFromObject(c),S=T.getSize(new N).length(),D=T.getCenter(new N);a.position.copy(D),a.position.z+=S*.6,a.lookAt(D),l.target.copy(D)},b=>{console.log(b.loaded/b.total*100+"% loaded")},b=>{console.error("An error happened loading the OBJ model:",b)})},p=>{console.log(p.loaded/p.total*100+"% loaded")},p=>{console.error("An error happened loading the MTL materials:",p)})},f=()=>{requestAnimationFrame(f),l.update(),o.render(r,a)},m=()=>{a.aspect=e.value.clientWidth/e.value.clientHeight,a.updateProjectionMatrix(),o.setSize(e.value.clientWidth,e.value.clientHeight)};return J.onMounted(()=>{window.addEventListener("resize",m),h()}),J.watch(()=>t==null?void 0:t.isShow,()=>{t!=null&&t.isShow&&!l&&!o&&setTimeout(()=>{window.addEventListener("resize",m),h()},100)},{deep:!0,immediate:!0}),J.onBeforeUnmount(()=>{window.removeEventListener("resize",m),o&&o.dispose(),l&&l.dispose()}),(_,v)=>(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-cfe06b46"]]),xl=Fn.defineStore("unit",{state:()=>({selectIndex:"",selectMenu:"",selectTitle:[]}),actions:{setSelectIndex(i){this.selectIndex=i},setSelectMenu(i){this.selectMenu=i},setSelectTitle(i){this.selectTitle=i}}}),Ml=(i,e)=>{let t=i,n=e;return Array.isArray(t)&&(t=t==null?void 0:t.map((s,r)=>{if(Array.isArray(s)){let a={};return s=s==null?void 0:s.forEach((o,l)=>{var c;(c=n==null?void 0:n[l])!=null&&c.prop?a[n[l].prop]=o:Array.isArray(o)&&(a.children=Ml(o,n))}),Object.assign(a,{id:r})}else return s})),t},Sl=(i,e,t)=>{let n=i,s=e;return n=n==null?void 0:n.map((r,a)=>{var o,l;return!Array.isArray(r)||!((o=s==null?void 0:s[a])!=null&&o.label)&&!t||(r.unshift(((l=s==null?void 0:s[a])==null?void 0:l.label)??""),r.some(c=>Array.isArray(c))&&(r=r==null?void 0:r.map(c=>{var h;return Array.isArray(c)&&(c=Sl(c,(h=s==null?void 0:s[a])==null?void 0:h.children,t)),c}))),r}),n},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=El(r,s,t)),r)),n},El=(i,e,t)=>{var r,a;let n=i,s=e;return(s==null?void 0:s.length)===0?n.children=(r=n.children)==null?void 0:r.filter(o=>o.id!==t):n.children=(a=n.children)==null?void 0:a.map(o=>(o.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),o=El(o,s,t)),o)),n},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=yl(r,s,t)),r)),n},yl=(i,e,t)=>{var r;let n=i,s=e;return(s==null?void 0:s.length)===0?n.children=t:n.children=(r=n.children)==null?void 0:r.map(a=>(a.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),a=yl(a,s,t)),a)),n},Tl=async(i,e,t="")=>{var h,u,f,m,_,v;const n=await Hn.getInsofDataApi({key:{pageKey:i,systemKey:e,parentTable:t}}),s=await Hn.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=>Hn.getInsofDataApi({key:{pageKey:i,systemKey:e,tableId:p}})),o=await Promise.all(a),l=[];o==null||o.forEach(p=>{var T,S,D,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=(D=(S=p.data.result)==null?void 0:S[0])==null?void 0:D.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(D=>(D==null?void 0:D.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 D;D={name:"",compData:[d],comp:"calculator"},c.push(D)}}),((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 Hn.deleteInsofDataApi({id:i})},Fm=async(i,e,t,n,s)=>{await Hn.createInsofDataApi({key:{type:i,pageKey:e,tableId:t,systemKey:n},value:{tableData:s}})},Om=async(i,e,t,n,s,r)=>{await Hn.updateInsofDataApi({key:{type:i,pageKey:e,tableId:t,systemKey:s},value:{tableData:r},id:n})},Bm=async(i,e)=>{await Hn.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=Fn.useMenuState(),{activeMenuPath:a}=Fn.storeToRefs(r),o=Oo.useModelComp(Ms.pinia),{extraContents:l}=Fn.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([]),D=J.ref([]),A=J.ref(),C=J.ref(),F=Ll.useFormToTableComp(Ms.pinia),E=J.ref(),M=xl(Ms.pinia),{selectIndex:P,selectMenu:q,selectTitle:H}=Fn.storeToRefs(M),{selectString:j}=Fn.storeToRefs(F),ne=J.ref(720),K=()=>{p.value=!1},ae=(G,Y)=>{if(Object.values(Y).length!==0)return Object.values(Y).find(ie=>{var me,se;return((me=ie==null?void 0:ie.toString())==null?void 0:me.includes(".obj"))||((se=ie==null?void 0:ie.toString())==null?void 0:se.includes(".stl"))})?[...G,d.value]:G},V=async G=>{var ie,me,se,ce,we,Ie,w;let Y=await Tl(a.value,sessionStorage.getItem("systemKey"),G.id);if(Y=Y==null?void 0:Y.filter(rt=>rt.comp!=="methodButton"),Y&&Y.length>0){const rt=!Array.isArray(H.value)&&((ie=H.value)==null?void 0:ie.key)!=="main"?[]:H.value;rt.push({key:q.value===""?(me=G==null?void 0:G.id)==null?void 0:me.toString():q.value+"-"+((se=G==null?void 0:G.id)==null?void 0:se.toString()),value:G[(ce=Object.keys(G))==null?void 0:ce.filter(Xe=>Xe!=="index"&&Xe!=="id")[0]]}),M.setSelectMenu(q.value===""?(we=G==null?void 0:G.id)==null?void 0:we.toString():q.value+"-"+((Ie=G==null?void 0:G.id)==null?void 0:Ie.toString())),M.setSelectTitle(rt),M.setSelectIndex((w=G==null?void 0:G.id)==null?void 0:w.toString()),n("pageChange",Y)}},fe=G=>{var Y;(Y=ut.cloneDeep(t.itemData))==null||Y.map(ie=>((ie==null?void 0:ie.key)==="tableContents"&&(ie.contents=G),ie))},ve=(G,Y,ie)=>{n("contentClick",G,Y,ie,{id:t==null?void 0:t.index})};J.watch(()=>t.changedContent,()=>{var ie,me;if(!t.changedContent)return;let G=(ie=c.value)==null?void 0:ie.map(se=>{var ce;return se.id===((ce=t.changedContent)==null?void 0:ce.id)&&(se={...t.changedContent,id:t.changedContent.newId?t.changedContent.newId:t.changedContent.id},delete se.newId),se});const Y=(me=t.itemData)==null?void 0:me.map(se=>((se==null?void 0:se.key)==="tableContents"&&(se.contents=G),se));c.value=G,console.log(133,t.changedContent,G),n("contentChange",{contents:Y,index:t.index}),n("change",{content:G,index:t==null?void 0:t.index,buttonName:"",id:t==null?void 0:t.index})},{deep:!0,immediate:!0});const Ae=(G,Y)=>{var ie;if(u.value="",T.value=!0,f.value=!0,n("onButtonClick",G,Y),G==="删除"){c.value=(ie=ut.cloneDeep(c.value))==null?void 0:ie.filter(se=>(se==null?void 0:se.id)!==(Y==null?void 0:Y.id));const me=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=Bo((me=ut.cloneDeep(s.value))==null?void 0:me.filter(ce=>(ce==null?void 0:ce.label)!=="操作")))==null||se.forEach((ce,we)=>{ie.find(Ie=>Ie===(ce==null?void 0:ce.prop))||Y.push({label:(ce==null?void 0:ce.label)??"",name:(ce==null?void 0:ce.prop)??"t"+we,type:!(ce!=null&&ce.formType)||(ce==null?void 0:ce.formType)===""?"Input":ce==null?void 0:ce.formType,value:(G==null?void 0:G[ce==null?void 0:ce.prop])??"",id:(ce==null?void 0:ce.id)??we,contents:(ce==null?void 0:ce.options)??[],width:1,isFormColHidden:ce==null?void 0:ce.isFormColHidden})}),G===""||!G||(u.value=G==null?void 0:G.id),D.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=Sl(ut.cloneDeep(le),Ie==null?void 0:Ie.contents,te);const ge=[];le==null||le.forEach((z,U)=>{var Le;let ue={};if(Array.isArray(z)){let ze=[];z==null||z.filter(He=>!He.id).forEach((He,ht)=>{var It,yi,Ti,Kt,qn,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})?(qn=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:qn[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=Ml(He,be))})}else ue=z;Array.isArray(z)&&z.some(ze=>ze==null?void 0:ze.id)?ge.push(Object.assign(ue,{id:(Le=z==null?void 0:z.find(ze=>ze.id))==null?void 0:Le.id})):ue.id?ge.push(ue):ge.push(Object.assign(ue,{id:U}))}),c.value=ge}else s.value=[],c.value=[];((_e=ie==null?void 0:ie.contents)==null?void 0:_e.length)>0?b.value=ie==null?void 0:ie.contents:b.value=[],((De=me==null?void 0:me.contents)==null?void 0:De.length)>0?S.value=me==null?void 0:me.contents:S.value=[],m.value=((Pe=c==null?void 0:c.value)==null?void 0:Pe.length)??0,E.value=c.value},{deep:!0,immediate:!0}),(G,Y)=>{var ie;return J.openBlock(),J.createElementBlock("div",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:D.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=Tl;exports.ssTable=Wm;exports.useUnit=xl;
3832
+ `);let s={};const r=/\s+/,a={};for(let l=0;l<n.length;l++){let c=n[l];if(c=c.trim(),c.length===0||c.charAt(0)==="#")continue;const h=c.indexOf(" ");let u=h>=0?c.substring(0,h):c;u=u.toLowerCase();let f=h>=0?c.substring(h+1):"";if(f=f.trim(),u==="newmtl")s={name:f},a[f]=s;else if(u==="ka"||u==="kd"||u==="ks"||u==="ke"){const m=f.split(r,3);s[u]=[parseFloat(m[0]),parseFloat(m[1]),parseFloat(m[2])]}else s[u]=f}const o=new 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:Ps}setCrossOrigin(e){return this.crossOrigin=e,this}setManager(e){this.manager=e}setMaterials(e){this.materialsInfo=this.convert(e),this.materials={},this.materialsArray=[],this.nameLookup={}}convert(e){if(!this.options)return e;const t={};for(const n in e){const s=e[n],r={};t[n]=r;for(const a in s){let o=!0,l=s[a];const c=a.toLowerCase();switch(c){case"kd":case"ka":case"ks":this.options&&this.options.normalizeRGB&&(l=[l[0]/255,l[1]/255,l[2]/255]),this.options&&this.options.ignoreZeroRGBs&&l[0]===0&&l[1]===0&&l[2]===0&&(o=!1);break}o&&(r[c]=l)}}return t}preload(){for(const e in this.materialsInfo)this.create(e)}getIndex(e){return this.nameLookup[e]}getAsArray(){let e=0;for(const t in this.materialsInfo)this.materialsArray[e]=this.create(t),this.nameLookup[t]=e,e++;return this.materialsArray}create(e){return this.materials[e]===void 0&&this.createMaterial_(e),this.materials[e]}createMaterial_(e){const t=this,n=this.materialsInfo[e],s={name:e,side:this.side};function r(o,l){return typeof l!="string"||l===""?"":/^https?:\/\//i.test(l)?l:o+l}function a(o,l){if(s[o])return;const c=t.getTextureParams(l,s),h=t.loadTexture(r(t.baseUrl,c.url));h.repeat.copy(c.scale),h.offset.copy(c.offset),h.wrapS=t.wrap,h.wrapT=t.wrap,(o==="map"||o==="emissiveMap")&&(h.colorSpace=xt),s[o]=h}for(const o in n){const l=n[o];let c;if(l!=="")switch(o.toLowerCase()){case"kd":s.color=Ke.colorSpaceToWorking(new We().fromArray(l),xt);break;case"ks":s.specular=Ke.colorSpaceToWorking(new We().fromArray(l),xt);break;case"ke":s.emissive=Ke.colorSpaceToWorking(new We().fromArray(l),xt);break;case"map_kd":a("map",l);break;case"map_ks":a("specularMap",l);break;case"map_ke":a("emissiveMap",l);break;case"norm":a("normalMap",l);break;case"map_bump":case"bump":a("bumpMap",l);break;case"disp":a("displacementMap",l);break;case"map_d":a("alphaMap",l),s.transparent=!0;break;case"ns":s.shininess=parseFloat(l);break;case"d":c=parseFloat(l),c<1&&(s.opacity=c,s.transparent=!0);break;case"tr":c=parseFloat(l),this.options&&this.options.invertTrProperty&&(c=1-c),c>0&&(s.opacity=1-c,s.transparent=!0);break}}return this.materials[e]=new ll(s),this.materials[e]}getTextureParams(e,t){const n={scale:new Be(1,1),offset:new Be(0,0)},s=e.split(/\s+/);let r;return r=s.indexOf("-bm"),r>=0&&(t.bumpScale=parseFloat(s[r+1]),s.splice(r,2)),r=s.indexOf("-mm"),r>=0&&(t.displacementBias=parseFloat(s[r+1]),t.displacementScale=parseFloat(s[r+2]),s.splice(r,3)),r=s.indexOf("-s"),r>=0&&(n.scale.set(parseFloat(s[r+1]),parseFloat(s[r+2])),s.splice(r,4)),r=s.indexOf("-o"),r>=0&&(n.offset.set(parseFloat(s[r+1]),parseFloat(s[r+2])),s.splice(r,4)),n.url=s.join(" ").trim(),n}loadTexture(e,t,n,s,r){const a=this.manager!==void 0?this.manager:cl;let o=a.getHandler(e);o===null&&(o=new 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"},vl={type:"end"},xs=new Os,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 Gn,this._lastTargetPosition=new N,this._quat=new Gn().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(vl),this.state=nt.NONE;break;case 1:const e=this._pointers[0],t=this._pointerPositions[e];this._onTouchStart({pointerId:e,pageX:t.x,pageY:t.y});break}}function 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(vl))}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,n=Oo.useModelComp(Ms.pinia),{nodeDev:s}=Fn.storeToRefs(n);let r,a,o,l,c;const h=()=>{r=new rh,r.background=new We(15790320),a=new zt(75,e.value.clientWidth/e.value.clientHeight,.1,1e3),a.position.z=5,o=new rm({antialias:!0}),o.setSize(e.value.clientWidth,e.value.clientHeight),o.setPixelRatio(window.devicePixelRatio),e.value.appendChild(o.domElement),l=new mm(a,o.domElement),l.enableDamping=!0,l.dampingFactor=.05;const _=new vh(16777215,.5);r.add(_);const v=new gh(16777215,.8);v.position.set(1,1,1),r.add(v),u("model"),f()},u=_=>{new dm().load(s.value===""?"/obj/"+_+".mtl":"/"+s.value+"/resources/obj/"+_+".mtl",p=>{p.preload();const d=new um;d.setMaterials(p),d.load(s.value===""?"/obj/"+_+".obj":"/"+s.value+"/resources/obj/"+_+".obj",b=>{c=b,c.rotation.set(50,-20,200),r.add(c);const T=new Mi().setFromObject(c),S=T.getSize(new N).length(),D=T.getCenter(new N);a.position.copy(D),a.position.z+=S*.6,a.lookAt(D),l.target.copy(D)},b=>{console.log(b.loaded/b.total*100+"% loaded")},b=>{console.error("An error happened loading the OBJ model:",b)})},p=>{console.log(p.loaded/p.total*100+"% loaded")},p=>{console.error("An error happened loading the MTL materials:",p)})},f=()=>{requestAnimationFrame(f),l.update(),o.render(r,a)},m=()=>{a.aspect=e.value.clientWidth/e.value.clientHeight,a.updateProjectionMatrix(),o.setSize(e.value.clientWidth,e.value.clientHeight)};return J.onMounted(()=>{window.addEventListener("resize",m),h()}),J.watch(()=>t==null?void 0:t.isShow,()=>{t!=null&&t.isShow&&!l&&!o&&setTimeout(()=>{window.addEventListener("resize",m),h()},100)},{deep:!0,immediate:!0}),J.onBeforeUnmount(()=>{window.removeEventListener("resize",m),o&&o.dispose(),l&&l.dispose()}),(_,v)=>(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-b5a78a20"]]),xl=Fn.defineStore("unit",{state:()=>({selectIndex:"",selectMenu:"",selectTitle:[]}),actions:{setSelectIndex(i){this.selectIndex=i},setSelectMenu(i){this.selectMenu=i},setSelectTitle(i){this.selectTitle=i}}}),Ml=(i,e)=>{let t=i,n=e;return Array.isArray(t)&&(t=t==null?void 0:t.map((s,r)=>{if(Array.isArray(s)){let a={};return s=s==null?void 0:s.forEach((o,l)=>{var c;(c=n==null?void 0:n[l])!=null&&c.prop?a[n[l].prop]=o:Array.isArray(o)&&(a.children=Ml(o,n))}),Object.assign(a,{id:r})}else return s})),t},Sl=(i,e,t)=>{let n=i,s=e;return n=n==null?void 0:n.map((r,a)=>{var o,l;return!Array.isArray(r)||!((o=s==null?void 0:s[a])!=null&&o.label)&&!t||(r.unshift(((l=s==null?void 0:s[a])==null?void 0:l.label)??""),r.some(c=>Array.isArray(c))&&(r=r==null?void 0:r.map(c=>{var h;return Array.isArray(c)&&(c=Sl(c,(h=s==null?void 0:s[a])==null?void 0:h.children,t)),c}))),r}),n},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=El(r,s,t)),r)),n},El=(i,e,t)=>{var r,a;let n=i,s=e;return(s==null?void 0:s.length)===0?n.children=(r=n.children)==null?void 0:r.filter(o=>o.id!==t):n.children=(a=n.children)==null?void 0:a.map(o=>(o.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),o=El(o,s,t)),o)),n},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=yl(r,s,t)),r)),n},yl=(i,e,t)=>{var r;let n=i,s=e;return(s==null?void 0:s.length)===0?n.children=t:n.children=(r=n.children)==null?void 0:r.map(a=>(a.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),a=yl(a,s,t)),a)),n},Tl=async(i,e,t="")=>{var h,u,f,m,_,v;const n=await Hn.getInsofDataApi({key:{pageKey:i,systemKey:e,parentTable:t}}),s=await Hn.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=>Hn.getInsofDataApi({key:{pageKey:i,systemKey:e,tableId:p}})),o=await Promise.all(a),l=[];o==null||o.forEach(p=>{var T,S,D,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=(D=(S=p.data.result)==null?void 0:S[0])==null?void 0:D.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(D=>(D==null?void 0:D.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 D;D={name:"",compData:[d],comp:"calculator"},c.push(D)}}),((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 Hn.deleteInsofDataApi({id:i})},Fm=async(i,e,t,n,s)=>{await Hn.createInsofDataApi({key:{type:i,pageKey:e,tableId:t,systemKey:n},value:{tableData:s}})},Om=async(i,e,t,n,s,r)=>{await Hn.updateInsofDataApi({key:{type:i,pageKey:e,tableId:t,systemKey:s},value:{tableData:r},id:n})},Bm=async(i,e)=>{await Hn.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=Fn.useMenuState(),{activeMenuPath:a}=Fn.storeToRefs(r),o=Oo.useModelComp(Ms.pinia),{extraContents:l}=Fn.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([]),D=J.ref([]),A=J.ref(),C=J.ref(),F=Ll.useFormToTableComp(Ms.pinia),E=J.ref(),M=xl(Ms.pinia),{selectIndex:P,selectMenu:q,selectTitle:H}=Fn.storeToRefs(M),{selectString:j}=Fn.storeToRefs(F),ne=J.ref(720),K=()=>{p.value=!1},ae=(G,Y)=>{if(Object.values(Y).length!==0)return Object.values(Y).find(ie=>{var me,se;return((me=ie==null?void 0:ie.toString())==null?void 0:me.includes(".obj"))||((se=ie==null?void 0:ie.toString())==null?void 0:se.includes(".stl"))})?[...G,d.value]:G},V=async G=>{var ie,me,se,ce,we,Ie,w;let Y=await Tl(a.value,sessionStorage.getItem("systemKey"),G.id);if(Y=Y==null?void 0:Y.filter(rt=>rt.comp!=="methodButton"),Y&&Y.length>0){const rt=!Array.isArray(H.value)&&((ie=H.value)==null?void 0:ie.key)!=="main"?[]:H.value;rt.push({key:q.value===""?(me=G==null?void 0:G.id)==null?void 0:me.toString():q.value+"-"+((se=G==null?void 0:G.id)==null?void 0:se.toString()),value:G[(ce=Object.keys(G))==null?void 0:ce.filter(Xe=>Xe!=="index"&&Xe!=="id")[0]]}),M.setSelectMenu(q.value===""?(we=G==null?void 0:G.id)==null?void 0:we.toString():q.value+"-"+((Ie=G==null?void 0:G.id)==null?void 0:Ie.toString())),M.setSelectTitle(rt),M.setSelectIndex((w=G==null?void 0:G.id)==null?void 0:w.toString()),n("pageChange",Y)}},fe=G=>{var Y;(Y=ut.cloneDeep(t.itemData))==null||Y.map(ie=>((ie==null?void 0:ie.key)==="tableContents"&&(ie.contents=G),ie))},ve=(G,Y,ie)=>{n("contentClick",G,Y,ie,{id:t==null?void 0:t.index})};J.watch(()=>t.changedContent,()=>{var ie,me;if(!t.changedContent)return;let G=(ie=c.value)==null?void 0:ie.map(se=>{var ce;return se.id===((ce=t.changedContent)==null?void 0:ce.id)&&(se={...t.changedContent,id:t.changedContent.newId?t.changedContent.newId:t.changedContent.id},delete se.newId),se});const Y=(me=t.itemData)==null?void 0:me.map(se=>((se==null?void 0:se.key)==="tableContents"&&(se.contents=G),se));c.value=G,console.log(133,t.changedContent,G),n("contentChange",{contents:Y,index:t.index}),n("change",{content:G,index:t==null?void 0:t.index,buttonName:"",id:t==null?void 0:t.index})},{deep:!0,immediate:!0});const Ae=(G,Y)=>{var ie;if(u.value="",T.value=!0,f.value=!0,n("onButtonClick",G,Y),G==="删除"){c.value=(ie=ut.cloneDeep(c.value))==null?void 0:ie.filter(se=>(se==null?void 0:se.id)!==(Y==null?void 0:Y.id));const me=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=Bo((me=ut.cloneDeep(s.value))==null?void 0:me.filter(ce=>(ce==null?void 0:ce.label)!=="操作")))==null||se.forEach((ce,we)=>{ie.find(Ie=>Ie===(ce==null?void 0:ce.prop))||Y.push({label:(ce==null?void 0:ce.label)??"",name:(ce==null?void 0:ce.prop)??"t"+we,type:!(ce!=null&&ce.formType)||(ce==null?void 0:ce.formType)===""?"Input":ce==null?void 0:ce.formType,value:(G==null?void 0:G[ce==null?void 0:ce.prop])??"",id:(ce==null?void 0:ce.id)??we,contents:(ce==null?void 0:ce.options)??[],width:1,isFormColHidden:ce==null?void 0:ce.isFormColHidden})}),G===""||!G||(u.value=G==null?void 0:G.id),D.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=Sl(ut.cloneDeep(le),Ie==null?void 0:Ie.contents,te);const ge=[];le==null||le.forEach((z,U)=>{var Le;let ue={};if(Array.isArray(z)){let ze=[];z==null||z.filter(He=>!He.id).forEach((He,ht)=>{var It,yi,Ti,Kt,qn,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})?(qn=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:qn[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=Ml(He,be))})}else ue=z;Array.isArray(z)&&z.some(ze=>ze==null?void 0:ze.id)?ge.push(Object.assign(ue,{id:(Le=z==null?void 0:z.find(ze=>ze.id))==null?void 0:Le.id})):ue.id?ge.push(ue):ge.push(Object.assign(ue,{id:U}))}),c.value=ge}else s.value=[],c.value=[];((_e=ie==null?void 0:ie.contents)==null?void 0:_e.length)>0?b.value=ie==null?void 0:ie.contents:b.value=[],((De=me==null?void 0:me.contents)==null?void 0:De.length)>0?S.value=me==null?void 0:me.contents:S.value=[],m.value=((Pe=c==null?void 0:c.value)==null?void 0:Pe.length)??0,E.value=c.value},{deep:!0,immediate:!0}),(G,Y)=>{var ie;return J.openBlock(),J.createElementBlock("div",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:D.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=Tl;exports.ssTable=Wm;exports.useUnit=xl;
@@ -1,13 +1,13 @@
1
1
  import { ref as nt, watch as vi, nextTick as ql, resolveComponent as Yo, createBlock as ma, openBlock as Ht, withCtx as en, createElementVNode as qt, renderSlot as La, onMounted as _a, createElementBlock as pn, createCommentVNode as jo, Fragment as Ko, renderList as Zo, normalizeStyle as $o, toDisplayString as Ts, createVNode as Rn, unref as Yl, onBeforeUnmount as jl, createSlots as Kl } from "vue";
2
- import { p as bs } from "./request-BaXl3oQ9.js";
3
- import { u as Jo } from "./modelComp-De5bf7vK.js";
4
- import { a2 as Zl } from "./index-D9kdeth5.js";
5
- import { a as Qo, s as $l, b as Ua } from "./index-BIL2-5d5.js";
6
- import { c as ut } from "./cloneDeep-BmTK4FEu.js";
2
+ import { p as bs } from "./request-BZej_b04.js";
3
+ import { u as Jo } from "./modelComp-Lk3RWAa8.js";
4
+ import { a2 as Zl } from "./index-DNuzKBy8.js";
5
+ import { a as Qo, s as $l, b as Ua } from "./index-DHBv4iw4.js";
6
+ import { c as ut } from "./cloneDeep-DHVgGTlZ.js";
7
7
  import { _ as ga } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- import { s as Oi, d as Jl, u as Ql } from "./menu-CmjIVfwC.js";
9
- import { u as ec } from "./formToTable-oMNwkiWt.js";
10
- import { g as qs, u as el, d as tc, c as nc } from "./index-BLCmE0gH.js";
8
+ import { s as Oi, d as Jl, u as Ql } from "./menu-BvmC7qb6.js";
9
+ import { u as ec } from "./formToTable-CYVBU8rV.js";
10
+ import { g as qs, u as el, d as tc, c as nc } from "./index-BzwJS0kO.js";
11
11
  const ic = {
12
12
  __name: "index",
13
13
  props: {
@@ -21048,14 +21048,14 @@ const Jm = { class: "content-show" }, Qm = {
21048
21048
  }, u = (_) => {
21049
21049
  new Fm().load(
21050
21050
  // new URL('/obj/' + modelContent + '.mtl', import.meta.url).href,
21051
- s.value === "" ? "/obj/" + _ + ".mtl" : "/" + s.value + "/obj/" + _ + ".mtl",
21051
+ s.value === "" ? "/obj/" + _ + ".mtl" : "/" + s.value + "/resources/obj/" + _ + ".mtl",
21052
21052
  // 替换为你的MTL文件路径
21053
21053
  (p) => {
21054
21054
  p.preload();
21055
21055
  const d = new Nm();
21056
21056
  d.setMaterials(p), d.load(
21057
21057
  // new URL('/obj/' + modelContent + '.obj', import.meta.url).href,
21058
- s.value === "" ? "/obj/" + _ + ".obj" : "/" + s.value + "/obj/" + _ + ".obj",
21058
+ s.value === "" ? "/obj/" + _ + ".obj" : "/" + s.value + "/resources/obj/" + _ + ".obj",
21059
21059
  // 替换为你的OBJ文件路径
21060
21060
  (b) => {
21061
21061
  c = b, c.rotation.set(50, -20, 200), r.add(c);
@@ -21102,7 +21102,7 @@ const Jm = { class: "content-show" }, Qm = {
21102
21102
  }, null, 512)
21103
21103
  ]));
21104
21104
  }
21105
- }, e_ = /* @__PURE__ */ ga(Qm, [["__scopeId", "data-v-cfe06b46"]]), t_ = Jl("unit", {
21105
+ }, e_ = /* @__PURE__ */ ga(Qm, [["__scopeId", "data-v-b5a78a20"]]), t_ = Jl("unit", {
21106
21106
  state: () => ({
21107
21107
  selectIndex: "",
21108
21108
  selectMenu: "",
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),x=require("./index-bC8ZQAKp.cjs"),xe=require("./isNil-x28vo2CT.cjs"),Ht=require("./typescript-PERVJsDy.cjs"),ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),De="ElUpload";class Ee extends Error{constructor(t,i,e,o){super(t),this.name="UploadAjaxError",this.status=i,this.method=e,this.url=o}}function Xt(a,t,i){let e;return i.response?e=`${i.response.error||i.response}`:i.responseText?e=`${i.responseText}`:e=`fail to ${t.method} ${a} ${i.status}`,new Ee(e,i.status,t.method,a)}function Ce(a){const t=a.responseText||a.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Me=a=>{typeof XMLHttpRequest>"u"&&x.throwError(De,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,i=a.action;t.upload&&t.upload.addEventListener("progress",r=>{const n=r;n.percent=r.total>0?r.loaded/r.total*100:0,a.onProgress(n)});const e=new FormData;if(a.data)for(const[r,n]of Object.entries(a.data))x.isArray$1(n)&&n.length?e.append(r,...n):e.append(r,n);e.append(a.filename,a.file,a.file.name),t.addEventListener("error",()=>{a.onError(Xt(i,a,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return a.onError(Xt(i,a,t));a.onSuccess(Ce(t))}),t.open(a.method,i,!0),a.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=a.headers||{};if(o instanceof Headers)o.forEach((r,n)=>t.setRequestHeader(n,r));else for(const[r,n]of Object.entries(o))xe.isNil(n)||t.setRequestHeader(r,String(n));return t.send(e),t},Te=["text","picture","picture-card"];let Ne=1;const Oe=()=>Date.now()+Ne++,_e=x.buildProps({action:{type:String,default:"#"},headers:{type:x.definePropType(Object)},method:{type:String,default:"post"},data:{type:x.definePropType([Object,Function,Promise]),default:()=>Ht.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:x.definePropType(Array),default:()=>Ht.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:Te,default:"text"},httpRequest:{type:x.definePropType(Function),default:Me},disabled:Boolean,limit:Number});x.buildProps({..._e,beforeUpload:{type:x.definePropType(Function),default:x.NOOP},beforeRemove:{type:x.definePropType(Function)},onRemove:{type:x.definePropType(Function),default:x.NOOP},onChange:{type:x.definePropType(Function),default:x.NOOP},onPreview:{type:x.definePropType(Function),default:x.NOOP},onSuccess:{type:x.definePropType(Function),default:x.NOOP},onProgress:{type:x.definePropType(Function),default:x.NOOP},onError:{type:x.definePropType(Function),default:x.NOOP},onExceed:{type:x.definePropType(Function),default:x.NOOP},crossorigin:{type:x.definePropType(String)}});/*!
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),x=require("./index-BUXPBc5D.cjs"),xe=require("./isNil-x28vo2CT.cjs"),Ht=require("./typescript-PERVJsDy.cjs"),ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),De="ElUpload";class Ee extends Error{constructor(t,i,e,o){super(t),this.name="UploadAjaxError",this.status=i,this.method=e,this.url=o}}function Xt(a,t,i){let e;return i.response?e=`${i.response.error||i.response}`:i.responseText?e=`${i.responseText}`:e=`fail to ${t.method} ${a} ${i.status}`,new Ee(e,i.status,t.method,a)}function Ce(a){const t=a.responseText||a.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Me=a=>{typeof XMLHttpRequest>"u"&&x.throwError(De,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,i=a.action;t.upload&&t.upload.addEventListener("progress",r=>{const n=r;n.percent=r.total>0?r.loaded/r.total*100:0,a.onProgress(n)});const e=new FormData;if(a.data)for(const[r,n]of Object.entries(a.data))x.isArray$1(n)&&n.length?e.append(r,...n):e.append(r,n);e.append(a.filename,a.file,a.file.name),t.addEventListener("error",()=>{a.onError(Xt(i,a,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return a.onError(Xt(i,a,t));a.onSuccess(Ce(t))}),t.open(a.method,i,!0),a.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=a.headers||{};if(o instanceof Headers)o.forEach((r,n)=>t.setRequestHeader(n,r));else for(const[r,n]of Object.entries(o))xe.isNil(n)||t.setRequestHeader(r,String(n));return t.send(e),t},Te=["text","picture","picture-card"];let Ne=1;const Oe=()=>Date.now()+Ne++,_e=x.buildProps({action:{type:String,default:"#"},headers:{type:x.definePropType(Object)},method:{type:String,default:"post"},data:{type:x.definePropType([Object,Function,Promise]),default:()=>Ht.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:x.definePropType(Array),default:()=>Ht.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:Te,default:"text"},httpRequest:{type:x.definePropType(Function),default:Me},disabled:Boolean,limit:Number});x.buildProps({..._e,beforeUpload:{type:x.definePropType(Function),default:x.NOOP},beforeRemove:{type:x.definePropType(Function)},onRemove:{type:x.definePropType(Function),default:x.NOOP},onChange:{type:x.definePropType(Function),default:x.NOOP},onPreview:{type:x.definePropType(Function),default:x.NOOP},onSuccess:{type:x.definePropType(Function),default:x.NOOP},onProgress:{type:x.definePropType(Function),default:x.NOOP},onError:{type:x.definePropType(Function),default:x.NOOP},onExceed:{type:x.definePropType(Function),default:x.NOOP},crossorigin:{type:x.definePropType(String)}});/*!
2
2
  * Cropper.js v1.6.2
3
3
  * https://fengyuanchen.github.io/cropperjs
4
4
  *
@@ -1,11 +1,11 @@
1
1
  import { resolveComponent as o, createElementBlock as c, openBlock as d, createVNode as r } from "vue";
2
- import "./array-CTMBVA4w.js";
3
- import "./request-BaXl3oQ9.js";
2
+ import "./array-CCLDO2NZ.js";
3
+ import "./request-BZej_b04.js";
4
4
  import { _ as m } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import "./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-BMtvW6OD.js";
6
- import "./menu-CmjIVfwC.js";
7
- import "./index.vue_vue_type_style_index_0_scoped_baf99455_lang-B8gUfst7.js";
8
- import "./index-BXtYUiLa.js";
5
+ import "./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CS5XMhtk.js";
6
+ import "./menu-BvmC7qb6.js";
7
+ import "./index.vue_vue_type_style_index_0_scoped_baf99455_lang-Dwdb4ksE.js";
8
+ import "./index-Bwv4w4j5.js";
9
9
  const i = {
10
10
  __name: "index",
11
11
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),b=require("./index-DyEqiHy2.cjs"),m=require("./index-Dat5KfVY.cjs"),h=require("./index-BW3rUIA3.cjs"),y=require("./index-BRY3GVIU.cjs"),f=require("vue-router"),C=require("./modelComp-DgySA7lh.cjs"),u=require("./menu-Dgk7naNE.cjs"),_=require("./cloneDeep-gdyyfw9f.cjs"),k=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v=n.ref([{label:"机构名称",value:"",name:"deptName"}]),q=a=>{console.log("handleQueryChange",a)},x=n.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"tableIndex",contents:[]},{key:"header",contents:[{label:"职位名称",prop:"postName"},{label:"职位排序",formType:"Number",prop:"postOrder"},{label:"备注",formType:"TextArea",prop:"remark"},{label:"操作"}]},{key:"tableContents"}]),w=a=>{console.log("handleItemDataChange",a),y.submitTableAsyncByVerify(a.singleContent,a.buttonName)},S=a=>{console.log("onDoubleClick",a)},I=(a,t)=>{console.log("onButtonClick",a,t)},T=async a=>{const t=await y.handleSubmitAsync(h.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:a}},"查询"),r=t==null?void 0:t.map(e=>{var o;return{id:e.id,rowData:(o=e==null?void 0:e.value)==null?void 0:o.rowData}});return r==null?void 0:r.map(e=>{var o;if(Array.isArray(e==null?void 0:e.rowData)){let s={id:e.id};return(o=e==null?void 0:e.rowData)==null||o.forEach((p,l)=>{s[`a${l}`]=p}),s}else return{...e.rowData,id:e.id}})},A=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:T,handleItemDataChange:w,handleQueryChange:q,onButtonClick:I,onDoubleClick:S,pageData:x,queryFormData:v},Symbol.toStringTag,{value:"Module"})),B={class:"role-wrapper"},M=n.defineComponent({__name:"index",setup(a){const t=n.reactive({...A}),r=f.useRoute(),e=C.useModelComp(),{itemData:o}=u.storeToRefs(e),s=u.useMenuState(),{menus:p,activeMenuPath:l}=u.storeToRefs(s);return n.onMounted(()=>{const d=_.cloneDeep(o.value),i={comp:"Group",name:r.path,compData:t.pageData};e.setItemData([...d,i]),l.value&&t.getPageDataAsync(l.value).then(D=>{var g;t.pageData=(g=t.pageData)==null?void 0:g.map(c=>c.key==="tableContents"?{...c,contents:D}:c)})}),(d,i)=>(n.openBlock(),n.createElementBlock("div",B,[n.createVNode(b.ssForm,{class:"role-header",rowContents:t.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:t.handleQueryChange},null,8,["rowContents","onChange"]),n.createVNode(m.ssTable,{class:"role-body",itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}}),N=k._export_sfc(M,[["__scopeId","data-v-9f3189fe"]]);exports.default=N;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),b=require("./index-CCRbN8LA.cjs"),m=require("./index-CkRrBKAP.cjs"),h=require("./index-DWo0GWcq.cjs"),y=require("./index-1tsnH8Kt.cjs"),f=require("vue-router"),C=require("./modelComp-BCiaU3TF.cjs"),u=require("./menu-BrKPZxak.cjs"),_=require("./cloneDeep-C5Uiz3YI.cjs"),k=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v=n.ref([{label:"机构名称",value:"",name:"deptName"}]),q=a=>{console.log("handleQueryChange",a)},x=n.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"tableIndex",contents:[]},{key:"header",contents:[{label:"职位名称",prop:"postName"},{label:"职位排序",formType:"Number",prop:"postOrder"},{label:"备注",formType:"TextArea",prop:"remark"},{label:"操作"}]},{key:"tableContents"}]),w=a=>{console.log("handleItemDataChange",a),y.submitTableAsyncByVerify(a.singleContent,a.buttonName)},S=a=>{console.log("onDoubleClick",a)},I=(a,t)=>{console.log("onButtonClick",a,t)},T=async a=>{const t=await y.handleSubmitAsync(h.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:a}},"查询"),r=t==null?void 0:t.map(e=>{var o;return{id:e.id,rowData:(o=e==null?void 0:e.value)==null?void 0:o.rowData}});return r==null?void 0:r.map(e=>{var o;if(Array.isArray(e==null?void 0:e.rowData)){let s={id:e.id};return(o=e==null?void 0:e.rowData)==null||o.forEach((p,l)=>{s[`a${l}`]=p}),s}else return{...e.rowData,id:e.id}})},A=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:T,handleItemDataChange:w,handleQueryChange:q,onButtonClick:I,onDoubleClick:S,pageData:x,queryFormData:v},Symbol.toStringTag,{value:"Module"})),B={class:"role-wrapper"},M=n.defineComponent({__name:"index",setup(a){const t=n.reactive({...A}),r=f.useRoute(),e=C.useModelComp(),{itemData:o}=u.storeToRefs(e),s=u.useMenuState(),{menus:p,activeMenuPath:l}=u.storeToRefs(s);return n.onMounted(()=>{const d=_.cloneDeep(o.value),i={comp:"Group",name:r.path,compData:t.pageData};e.setItemData([...d,i]),l.value&&t.getPageDataAsync(l.value).then(D=>{var g;t.pageData=(g=t.pageData)==null?void 0:g.map(c=>c.key==="tableContents"?{...c,contents:D}:c)})}),(d,i)=>(n.openBlock(),n.createElementBlock("div",B,[n.createVNode(b.ssForm,{class:"role-header",rowContents:t.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:t.handleQueryChange},null,8,["rowContents","onChange"]),n.createVNode(m.ssTable,{class:"role-body",itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}}),N=k._export_sfc(M,[["__scopeId","data-v-9f3189fe"]]);exports.default=N;
@@ -1,5 +1,5 @@
1
1
  import { ref as a, defineComponent as l, reactive as i, onMounted as c, createElementBlock as d, openBlock as _, createElementVNode as e, createVNode as n } from "vue";
2
- import { _ as p, s as m } from "./index.vue_vue_type_script_setup_true_lang-Ov8SuBXY.js";
2
+ import { _ as p, s as m } from "./index.vue_vue_type_script_setup_true_lang-DKCWmz-r.js";
3
3
  import { _ as u } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const v = a(""), f = a([]), b = a([
5
5
  {
@@ -1,10 +1,10 @@
1
1
  import { ref as H, resolveComponent as X, createBlock as L, openBlock as _, withCtx as Y, createElementBlock as B, Fragment as st, renderList as ot, createTextVNode as he, toDisplayString as bt, watch as It, renderSlot as ct, createCommentVNode as J, resolveDynamicComponent as ae, createSlots as jt, mergeProps as He, onMounted as Ce, normalizeProps as Mn, guardReactiveProps as In, defineComponent as ze, nextTick as Ae, createVNode as xt, normalizeStyle as pt, createElementVNode as Et, unref as Ze, h as Qe, normalizeClass as On } from "vue";
2
2
  import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { c as Te } from "./cloneDeep-BmTK4FEu.js";
4
- import { E as pn } from "./menu-CmjIVfwC.js";
5
- import Rn from "./index-BEl2M4PP.js";
6
- import Nn from "./index-DzMB2hvj.js";
7
- import { a3 as tn } from "./index-D9kdeth5.js";
3
+ import { c as Te } from "./cloneDeep-DHVgGTlZ.js";
4
+ import { E as pn } from "./menu-BvmC7qb6.js";
5
+ import Rn from "./index-BxiXAlPM.js";
6
+ import Nn from "./index-xdIdsBJr.js";
7
+ import { a3 as tn } from "./index-DNuzKBy8.js";
8
8
  function Bn(o) {
9
9
  return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
10
10
  }