ss-component-new 1.1.657 → 1.1.658

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 (58) hide show
  1. package/dist/{OrbitControls-BEKKxuGm.cjs → OrbitControls-CUvjF1rf.cjs} +1 -1
  2. package/dist/{OrbitControls-BOEvop3S.js → OrbitControls-wZBl7uX5.js} +1 -1
  3. package/dist/{index-Dkaxtb_Q.js → index-BAPVtYNC.js} +2 -2
  4. package/dist/{index-QtUcw2wp.cjs → index-BdbMzzG9.cjs} +1 -1
  5. package/dist/{index-CCUBr4LA.js → index-BlPkKNG_.js} +1 -1
  6. package/dist/{index-DLKHwlVU.cjs → index-BmOGt9LR.cjs} +1 -1
  7. package/dist/{index-DP61HK9f.js → index-Brhs8-ho.js} +2 -2
  8. package/dist/{index-DrngtiGy.cjs → index-C3911xbm.cjs} +1 -1
  9. package/dist/{index-CzFQu8Xs.js → index-C8oNErGw.js} +1 -1
  10. package/dist/{index-18I80P2C.js → index-C9V70RX-.js} +5 -5
  11. package/dist/{index-BJ-_BFDQ.js → index-CC9NeaeO.js} +10 -10
  12. package/dist/{index-Ch8p7MB6.cjs → index-CM6HSS02.cjs} +1 -1
  13. package/dist/{index-CZYP6IBQ.js → index-CNoN_Z0U.js} +3 -3
  14. package/dist/{index-ZNJ6gJe4.cjs → index-CSj1FCx2.cjs} +1 -1
  15. package/dist/{index-C5DS2GFh.cjs → index-CYc_nQjl.cjs} +1 -1
  16. package/dist/{index-C-2-K8d_.js → index-CdEW-44q.js} +5 -5
  17. package/dist/{index-DXwPc9BY.js → index-CmUH8ftb.js} +1 -1
  18. package/dist/{index-BtaCqM9k.js → index-CodlQQtD.js} +1 -1
  19. package/dist/{index-DBP4GP7-.cjs → index-CyqhFAF6.cjs} +1 -1
  20. package/dist/{index-5Tz1CEi4.cjs → index-DB2u7BI2.cjs} +1 -1
  21. package/dist/{index-C-gEdNr0.js → index-DHoqIUK7.js} +1 -1
  22. package/dist/{index-D6bQX-A7.js → index-DK4Pnepl.js} +2 -2
  23. package/dist/{index-CXLF6NN2.js → index-DR62D4oC.js} +2 -2
  24. package/dist/{index-Cpq5CxLg.cjs → index-DhwVgmX4.cjs} +1 -1
  25. package/dist/{index-ByGdCG1z.cjs → index-DnGwDL1g.cjs} +1 -1
  26. package/dist/{index-bpyajBX1.cjs → index-DnaushyD.cjs} +1 -1
  27. package/dist/{index-xpn_cZWG.js → index-Fxs_qOj8.js} +1 -1
  28. package/dist/{index-CbOwdFfA.cjs → index-G2hFPRl4.cjs} +1 -1
  29. package/dist/{index-BEOtbIkr.js → index-ItBFv241.js} +2 -2
  30. package/dist/{index-BwgTgC3g.cjs → index-JWowiMDG.cjs} +1 -1
  31. package/dist/{index-DMXqCWi6.cjs → index-UE_pnzQo.cjs} +1 -1
  32. package/dist/{index-DwXqMKtB.cjs → index-dCHm4bqT.cjs} +1 -1
  33. package/dist/{index-B9EAWpHA.cjs → index-fSieD0VD.cjs} +1 -1
  34. package/dist/{index-BUUyeg1A.cjs → index-fhZ-JJZ8.cjs} +1 -1
  35. package/dist/{index-C7UOeJXE.js → index-pjqo-wKx.js} +2 -2
  36. package/dist/{index-CEgLrX1K.js → index-zs2vsQkw.js} +2 -2
  37. package/dist/{index.vue_vue_type_script_setup_true_lang-DraLJN1H.js → index.vue_vue_type_script_setup_true_lang-B9iSnLp7.js} +1 -1
  38. package/dist/{index.vue_vue_type_script_setup_true_lang-DrwwH91V.cjs → index.vue_vue_type_script_setup_true_lang-CfQmzicD.cjs} +1 -1
  39. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CbD8iBb1.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BB1q_NEl.cjs} +35 -35
  40. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CB9HaWen.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DKQiCWlb.js} +956 -961
  41. package/dist/{index.vue_vue_type_style_index_0_scoped_264dc673_lang-B5Qp2wHm.js → index.vue_vue_type_style_index_0_scoped_264dc673_lang-0YnLPSwu.js} +7 -7
  42. package/dist/{index.vue_vue_type_style_index_0_scoped_264dc673_lang-BcoocGYl.cjs → index.vue_vue_type_style_index_0_scoped_264dc673_lang-CunArNny.cjs} +1 -1
  43. package/dist/{index.vue_vue_type_style_index_0_scoped_f6ebd097_lang-CwddZPfc.js → index.vue_vue_type_style_index_0_scoped_f6ebd097_lang-BJ7HZIYs.js} +22 -14
  44. package/dist/index.vue_vue_type_style_index_0_scoped_f6ebd097_lang-CNLvOlhH.cjs +1 -0
  45. package/dist/{main-Bb1_RKkL.js → main-CxXnyLym.js} +2 -2
  46. package/dist/{main-rS8VYP_S.cjs → main-D_wAEXdn.cjs} +1 -1
  47. package/dist/ss-component.cjs +1 -1
  48. package/dist/ss-component.js +7 -7
  49. package/dist/ss-component2.cjs +1 -1
  50. package/dist/ss-component2.js +8 -8
  51. package/dist/{threeModel-DiIrep6b.js → threeModel-CcsboCSp.js} +2 -2
  52. package/dist/{threeModel-CkiW511u.cjs → threeModel-DBWCHeou.cjs} +1 -1
  53. package/package.json +1 -1
  54. package/dist/index.vue_vue_type_style_index_0_scoped_f6ebd097_lang-w8npdWDC.cjs +0 -1
  55. package/dist/obj/model.mtl +0 -42
  56. package/dist/obj/model.obj +0 -26110
  57. package/public/obj/model.mtl +0 -42
  58. package/public/obj/model.obj +0 -26110
@@ -1 +1 @@
1
- "use strict";const s=require("./index-BwgTgC3g.cjs"),y={type:"change"},m={type:"start"},g={type:"end"},_=new s.Ray,b=new s.Plane,E=Math.cos(70*s.MathUtils.DEG2RAD),h=new s.Vector3,l=2*Math.PI,a={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},u=1e-6;class P extends s.Controls{constructor(t,e=null){super(t,e),this.state=a.NONE,this.target=new s.Vector3,this.cursor=new s.Vector3,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:s.MOUSE.ROTATE,MIDDLE:s.MOUSE.DOLLY,RIGHT:s.MOUSE.PAN},this.touches={ONE:s.TOUCH.ROTATE,TWO:s.TOUCH.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this._lastPosition=new s.Vector3,this._lastQuaternion=new s.Quaternion,this._lastTargetPosition=new s.Vector3,this._quat=new s.Quaternion().setFromUnitVectors(t.up,new s.Vector3(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new s.Spherical,this._sphericalDelta=new s.Spherical,this._scale=1,this._panOffset=new s.Vector3,this._rotateStart=new s.Vector2,this._rotateEnd=new s.Vector2,this._rotateDelta=new s.Vector2,this._panStart=new s.Vector2,this._panEnd=new s.Vector2,this._panDelta=new s.Vector2,this._dollyStart=new s.Vector2,this._dollyEnd=new s.Vector2,this._dollyDelta=new s.Vector2,this._dollyDirection=new s.Vector3,this._mouse=new s.Vector2,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=D.bind(this),this._onPointerDown=T.bind(this),this._onPointerUp=M.bind(this),this._onContextMenu=L.bind(this),this._onMouseWheel=w.bind(this),this._onKeyDown=R.bind(this),this._onTouchStart=j.bind(this),this._onTouchMove=A.bind(this),this._onMouseDown=S.bind(this),this._onMouseMove=O.bind(this),this._interceptControlDown=C.bind(this),this._interceptControlUp=k.bind(this),this.domElement!==null&&this.connect(this.domElement),this.update()}connect(t){super.connect(t),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(t){t.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=t}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(y),this.update(),this.state=a.NONE}update(t=null){const e=this.object.position;h.copy(e).sub(this.target),h.applyQuaternion(this._quat),this._spherical.setFromVector3(h),this.autoRotate&&this.state===a.NONE&&this._rotateLeft(this._getAutoRotationAngle(t)),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 o=this.minAzimuthAngle,n=this.maxAzimuthAngle;isFinite(o)&&isFinite(n)&&(o<-Math.PI?o+=l:o>Math.PI&&(o-=l),n<-Math.PI?n+=l:n>Math.PI&&(n-=l),o<=n?this._spherical.theta=Math.max(o,Math.min(n,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(o+n)/2?Math.max(o,this._spherical.theta):Math.min(n,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 c=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),r=c!=this._spherical.radius}if(h.setFromSpherical(this._spherical),h.applyQuaternion(this._quatInverse),e.copy(this.target).add(h),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 c=null;if(this.object.isPerspectiveCamera){const p=h.length();c=this._clampDistance(p*this._scale);const d=p-c;this.object.position.addScaledVector(this._dollyDirection,d),this.object.updateMatrixWorld(),r=!!d}else if(this.object.isOrthographicCamera){const p=new s.Vector3(this._mouse.x,this._mouse.y,0);p.unproject(this.object);const d=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),r=d!==this.object.zoom;const f=new s.Vector3(this._mouse.x,this._mouse.y,0);f.unproject(this.object),this.object.position.sub(f).add(p),this.object.updateMatrixWorld(),c=h.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;c!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(c).add(this.object.position):(_.origin.copy(this.object.position),_.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(_.direction))<E?this.object.lookAt(this.target):(b.setFromNormalAndCoplanarPoint(this.object.up,this.target),_.intersectPlane(b,this.target))))}else if(this.object.isOrthographicCamera){const c=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),c!==this.object.zoom&&(this.object.updateProjectionMatrix(),r=!0)}return this._scale=1,this._performCursorZoom=!1,r||this._lastPosition.distanceToSquared(this.object.position)>u||8*(1-this._lastQuaternion.dot(this.object.quaternion))>u||this._lastTargetPosition.distanceToSquared(this.target)>u?(this.dispatchEvent(y),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(t){return t!==null?l/60*this.autoRotateSpeed*t:l/60/60*this.autoRotateSpeed}_getZoomScale(t){const e=Math.abs(t*.01);return Math.pow(.95,this.zoomSpeed*e)}_rotateLeft(t){this._sphericalDelta.theta-=t}_rotateUp(t){this._sphericalDelta.phi-=t}_panLeft(t,e){h.setFromMatrixColumn(e,0),h.multiplyScalar(-t),this._panOffset.add(h)}_panUp(t,e){this.screenSpacePanning===!0?h.setFromMatrixColumn(e,1):(h.setFromMatrixColumn(e,0),h.crossVectors(this.object.up,h)),h.multiplyScalar(t),this._panOffset.add(h)}_pan(t,e){const o=this.domElement;if(this.object.isPerspectiveCamera){const n=this.object.position;h.copy(n).sub(this.target);let r=h.length();r*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*t*r/o.clientHeight,this.object.matrix),this._panUp(2*e*r/o.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(t*(this.object.right-this.object.left)/this.object.zoom/o.clientWidth,this.object.matrix),this._panUp(e*(this.object.top-this.object.bottom)/this.object.zoom/o.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(t,e){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const o=this.domElement.getBoundingClientRect(),n=t-o.left,r=e-o.top,c=o.width,p=o.height;this._mouse.x=n/c*2-1,this._mouse.y=-(r/p)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(t){return Math.max(this.minDistance,Math.min(this.maxDistance,t))}_handleMouseDownRotate(t){this._rotateStart.set(t.clientX,t.clientY)}_handleMouseDownDolly(t){this._updateZoomParameters(t.clientX,t.clientX),this._dollyStart.set(t.clientX,t.clientY)}_handleMouseDownPan(t){this._panStart.set(t.clientX,t.clientY)}_handleMouseMoveRotate(t){this._rotateEnd.set(t.clientX,t.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const e=this.domElement;this._rotateLeft(l*this._rotateDelta.x/e.clientHeight),this._rotateUp(l*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(t){this._dollyEnd.set(t.clientX,t.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(t){this._panEnd.set(t.clientX,t.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(t){this._updateZoomParameters(t.clientX,t.clientY),t.deltaY<0?this._dollyIn(this._getZoomScale(t.deltaY)):t.deltaY>0&&this._dollyOut(this._getZoomScale(t.deltaY)),this.update()}_handleKeyDown(t){let e=!1;switch(t.code){case this.keys.UP:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),e=!0;break;case this.keys.BOTTOM:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(-l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),e=!0;break;case this.keys.LEFT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),e=!0;break;case this.keys.RIGHT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(-l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),e=!0;break}e&&(t.preventDefault(),this.update())}_handleTouchStartRotate(t){if(this._pointers.length===1)this._rotateStart.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),o=.5*(t.pageX+e.x),n=.5*(t.pageY+e.y);this._rotateStart.set(o,n)}}_handleTouchStartPan(t){if(this._pointers.length===1)this._panStart.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),o=.5*(t.pageX+e.x),n=.5*(t.pageY+e.y);this._panStart.set(o,n)}}_handleTouchStartDolly(t){const e=this._getSecondPointerPosition(t),o=t.pageX-e.x,n=t.pageY-e.y,r=Math.sqrt(o*o+n*n);this._dollyStart.set(0,r)}_handleTouchStartDollyPan(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enablePan&&this._handleTouchStartPan(t)}_handleTouchStartDollyRotate(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enableRotate&&this._handleTouchStartRotate(t)}_handleTouchMoveRotate(t){if(this._pointers.length==1)this._rotateEnd.set(t.pageX,t.pageY);else{const o=this._getSecondPointerPosition(t),n=.5*(t.pageX+o.x),r=.5*(t.pageY+o.y);this._rotateEnd.set(n,r)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const e=this.domElement;this._rotateLeft(l*this._rotateDelta.x/e.clientHeight),this._rotateUp(l*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(t){if(this._pointers.length===1)this._panEnd.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),o=.5*(t.pageX+e.x),n=.5*(t.pageY+e.y);this._panEnd.set(o,n)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(t){const e=this._getSecondPointerPosition(t),o=t.pageX-e.x,n=t.pageY-e.y,r=Math.sqrt(o*o+n*n);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 c=(t.pageX+e.x)*.5,p=(t.pageY+e.y)*.5;this._updateZoomParameters(c,p)}_handleTouchMoveDollyPan(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enablePan&&this._handleTouchMovePan(t)}_handleTouchMoveDollyRotate(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enableRotate&&this._handleTouchMoveRotate(t)}_addPointer(t){this._pointers.push(t.pointerId)}_removePointer(t){delete this._pointerPositions[t.pointerId];for(let e=0;e<this._pointers.length;e++)if(this._pointers[e]==t.pointerId){this._pointers.splice(e,1);return}}_isTrackingPointer(t){for(let e=0;e<this._pointers.length;e++)if(this._pointers[e]==t.pointerId)return!0;return!1}_trackPointer(t){let e=this._pointerPositions[t.pointerId];e===void 0&&(e=new s.Vector2,this._pointerPositions[t.pointerId]=e),e.set(t.pageX,t.pageY)}_getSecondPointerPosition(t){const e=t.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[e]}_customWheelEvent(t){const e=t.deltaMode,o={clientX:t.clientX,clientY:t.clientY,deltaY:t.deltaY};switch(e){case 1:o.deltaY*=16;break;case 2:o.deltaY*=100;break}return t.ctrlKey&&!this._controlActive&&(o.deltaY*=10),o}}function T(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 D(i){this.enabled!==!1&&(i.pointerType==="touch"?this._onTouchMove(i):this._onMouseMove(i))}function M(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(g),this.state=a.NONE;break;case 1:const t=this._pointers[0],e=this._pointerPositions[t];this._onTouchStart({pointerId:t,pageX:e.x,pageY:e.y});break}}function S(i){let t;switch(i.button){case 0:t=this.mouseButtons.LEFT;break;case 1:t=this.mouseButtons.MIDDLE;break;case 2:t=this.mouseButtons.RIGHT;break;default:t=-1}switch(t){case s.MOUSE.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(i),this.state=a.DOLLY;break;case s.MOUSE.ROTATE:if(i.ctrlKey||i.metaKey||i.shiftKey){if(this.enablePan===!1)return;this._handleMouseDownPan(i),this.state=a.PAN}else{if(this.enableRotate===!1)return;this._handleMouseDownRotate(i),this.state=a.ROTATE}break;case s.MOUSE.PAN:if(i.ctrlKey||i.metaKey||i.shiftKey){if(this.enableRotate===!1)return;this._handleMouseDownRotate(i),this.state=a.ROTATE}else{if(this.enablePan===!1)return;this._handleMouseDownPan(i),this.state=a.PAN}break;default:this.state=a.NONE}this.state!==a.NONE&&this.dispatchEvent(m)}function O(i){switch(this.state){case a.ROTATE:if(this.enableRotate===!1)return;this._handleMouseMoveRotate(i);break;case a.DOLLY:if(this.enableZoom===!1)return;this._handleMouseMoveDolly(i);break;case a.PAN:if(this.enablePan===!1)return;this._handleMouseMovePan(i);break}}function w(i){this.enabled===!1||this.enableZoom===!1||this.state!==a.NONE||(i.preventDefault(),this.dispatchEvent(m),this._handleMouseWheel(this._customWheelEvent(i)),this.dispatchEvent(g))}function R(i){this.enabled!==!1&&this._handleKeyDown(i)}function j(i){switch(this._trackPointer(i),this._pointers.length){case 1:switch(this.touches.ONE){case s.TOUCH.ROTATE:if(this.enableRotate===!1)return;this._handleTouchStartRotate(i),this.state=a.TOUCH_ROTATE;break;case s.TOUCH.PAN:if(this.enablePan===!1)return;this._handleTouchStartPan(i),this.state=a.TOUCH_PAN;break;default:this.state=a.NONE}break;case 2:switch(this.touches.TWO){case s.TOUCH.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(i),this.state=a.TOUCH_DOLLY_PAN;break;case s.TOUCH.DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchStartDollyRotate(i),this.state=a.TOUCH_DOLLY_ROTATE;break;default:this.state=a.NONE}break;default:this.state=a.NONE}this.state!==a.NONE&&this.dispatchEvent(m)}function A(i){switch(this._trackPointer(i),this.state){case a.TOUCH_ROTATE:if(this.enableRotate===!1)return;this._handleTouchMoveRotate(i),this.update();break;case a.TOUCH_PAN:if(this.enablePan===!1)return;this._handleTouchMovePan(i),this.update();break;case a.TOUCH_DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchMoveDollyPan(i),this.update();break;case a.TOUCH_DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchMoveDollyRotate(i),this.update();break;default:this.state=a.NONE}}function L(i){this.enabled!==!1&&i.preventDefault()}function C(i){i.key==="Control"&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function k(i){i.key==="Control"&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}exports.OrbitControls=P;
1
+ "use strict";const s=require("./index-JWowiMDG.cjs"),y={type:"change"},m={type:"start"},g={type:"end"},_=new s.Ray,b=new s.Plane,E=Math.cos(70*s.MathUtils.DEG2RAD),h=new s.Vector3,l=2*Math.PI,a={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},u=1e-6;class P extends s.Controls{constructor(t,e=null){super(t,e),this.state=a.NONE,this.target=new s.Vector3,this.cursor=new s.Vector3,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:s.MOUSE.ROTATE,MIDDLE:s.MOUSE.DOLLY,RIGHT:s.MOUSE.PAN},this.touches={ONE:s.TOUCH.ROTATE,TWO:s.TOUCH.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this._lastPosition=new s.Vector3,this._lastQuaternion=new s.Quaternion,this._lastTargetPosition=new s.Vector3,this._quat=new s.Quaternion().setFromUnitVectors(t.up,new s.Vector3(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new s.Spherical,this._sphericalDelta=new s.Spherical,this._scale=1,this._panOffset=new s.Vector3,this._rotateStart=new s.Vector2,this._rotateEnd=new s.Vector2,this._rotateDelta=new s.Vector2,this._panStart=new s.Vector2,this._panEnd=new s.Vector2,this._panDelta=new s.Vector2,this._dollyStart=new s.Vector2,this._dollyEnd=new s.Vector2,this._dollyDelta=new s.Vector2,this._dollyDirection=new s.Vector3,this._mouse=new s.Vector2,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=D.bind(this),this._onPointerDown=T.bind(this),this._onPointerUp=M.bind(this),this._onContextMenu=L.bind(this),this._onMouseWheel=w.bind(this),this._onKeyDown=R.bind(this),this._onTouchStart=j.bind(this),this._onTouchMove=A.bind(this),this._onMouseDown=S.bind(this),this._onMouseMove=O.bind(this),this._interceptControlDown=C.bind(this),this._interceptControlUp=k.bind(this),this.domElement!==null&&this.connect(this.domElement),this.update()}connect(t){super.connect(t),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(t){t.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=t}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(y),this.update(),this.state=a.NONE}update(t=null){const e=this.object.position;h.copy(e).sub(this.target),h.applyQuaternion(this._quat),this._spherical.setFromVector3(h),this.autoRotate&&this.state===a.NONE&&this._rotateLeft(this._getAutoRotationAngle(t)),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 o=this.minAzimuthAngle,n=this.maxAzimuthAngle;isFinite(o)&&isFinite(n)&&(o<-Math.PI?o+=l:o>Math.PI&&(o-=l),n<-Math.PI?n+=l:n>Math.PI&&(n-=l),o<=n?this._spherical.theta=Math.max(o,Math.min(n,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(o+n)/2?Math.max(o,this._spherical.theta):Math.min(n,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 c=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),r=c!=this._spherical.radius}if(h.setFromSpherical(this._spherical),h.applyQuaternion(this._quatInverse),e.copy(this.target).add(h),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 c=null;if(this.object.isPerspectiveCamera){const p=h.length();c=this._clampDistance(p*this._scale);const d=p-c;this.object.position.addScaledVector(this._dollyDirection,d),this.object.updateMatrixWorld(),r=!!d}else if(this.object.isOrthographicCamera){const p=new s.Vector3(this._mouse.x,this._mouse.y,0);p.unproject(this.object);const d=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),r=d!==this.object.zoom;const f=new s.Vector3(this._mouse.x,this._mouse.y,0);f.unproject(this.object),this.object.position.sub(f).add(p),this.object.updateMatrixWorld(),c=h.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;c!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(c).add(this.object.position):(_.origin.copy(this.object.position),_.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(_.direction))<E?this.object.lookAt(this.target):(b.setFromNormalAndCoplanarPoint(this.object.up,this.target),_.intersectPlane(b,this.target))))}else if(this.object.isOrthographicCamera){const c=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),c!==this.object.zoom&&(this.object.updateProjectionMatrix(),r=!0)}return this._scale=1,this._performCursorZoom=!1,r||this._lastPosition.distanceToSquared(this.object.position)>u||8*(1-this._lastQuaternion.dot(this.object.quaternion))>u||this._lastTargetPosition.distanceToSquared(this.target)>u?(this.dispatchEvent(y),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(t){return t!==null?l/60*this.autoRotateSpeed*t:l/60/60*this.autoRotateSpeed}_getZoomScale(t){const e=Math.abs(t*.01);return Math.pow(.95,this.zoomSpeed*e)}_rotateLeft(t){this._sphericalDelta.theta-=t}_rotateUp(t){this._sphericalDelta.phi-=t}_panLeft(t,e){h.setFromMatrixColumn(e,0),h.multiplyScalar(-t),this._panOffset.add(h)}_panUp(t,e){this.screenSpacePanning===!0?h.setFromMatrixColumn(e,1):(h.setFromMatrixColumn(e,0),h.crossVectors(this.object.up,h)),h.multiplyScalar(t),this._panOffset.add(h)}_pan(t,e){const o=this.domElement;if(this.object.isPerspectiveCamera){const n=this.object.position;h.copy(n).sub(this.target);let r=h.length();r*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*t*r/o.clientHeight,this.object.matrix),this._panUp(2*e*r/o.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(t*(this.object.right-this.object.left)/this.object.zoom/o.clientWidth,this.object.matrix),this._panUp(e*(this.object.top-this.object.bottom)/this.object.zoom/o.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(t,e){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const o=this.domElement.getBoundingClientRect(),n=t-o.left,r=e-o.top,c=o.width,p=o.height;this._mouse.x=n/c*2-1,this._mouse.y=-(r/p)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(t){return Math.max(this.minDistance,Math.min(this.maxDistance,t))}_handleMouseDownRotate(t){this._rotateStart.set(t.clientX,t.clientY)}_handleMouseDownDolly(t){this._updateZoomParameters(t.clientX,t.clientX),this._dollyStart.set(t.clientX,t.clientY)}_handleMouseDownPan(t){this._panStart.set(t.clientX,t.clientY)}_handleMouseMoveRotate(t){this._rotateEnd.set(t.clientX,t.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const e=this.domElement;this._rotateLeft(l*this._rotateDelta.x/e.clientHeight),this._rotateUp(l*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(t){this._dollyEnd.set(t.clientX,t.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(t){this._panEnd.set(t.clientX,t.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(t){this._updateZoomParameters(t.clientX,t.clientY),t.deltaY<0?this._dollyIn(this._getZoomScale(t.deltaY)):t.deltaY>0&&this._dollyOut(this._getZoomScale(t.deltaY)),this.update()}_handleKeyDown(t){let e=!1;switch(t.code){case this.keys.UP:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),e=!0;break;case this.keys.BOTTOM:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(-l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),e=!0;break;case this.keys.LEFT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),e=!0;break;case this.keys.RIGHT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(-l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),e=!0;break}e&&(t.preventDefault(),this.update())}_handleTouchStartRotate(t){if(this._pointers.length===1)this._rotateStart.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),o=.5*(t.pageX+e.x),n=.5*(t.pageY+e.y);this._rotateStart.set(o,n)}}_handleTouchStartPan(t){if(this._pointers.length===1)this._panStart.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),o=.5*(t.pageX+e.x),n=.5*(t.pageY+e.y);this._panStart.set(o,n)}}_handleTouchStartDolly(t){const e=this._getSecondPointerPosition(t),o=t.pageX-e.x,n=t.pageY-e.y,r=Math.sqrt(o*o+n*n);this._dollyStart.set(0,r)}_handleTouchStartDollyPan(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enablePan&&this._handleTouchStartPan(t)}_handleTouchStartDollyRotate(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enableRotate&&this._handleTouchStartRotate(t)}_handleTouchMoveRotate(t){if(this._pointers.length==1)this._rotateEnd.set(t.pageX,t.pageY);else{const o=this._getSecondPointerPosition(t),n=.5*(t.pageX+o.x),r=.5*(t.pageY+o.y);this._rotateEnd.set(n,r)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const e=this.domElement;this._rotateLeft(l*this._rotateDelta.x/e.clientHeight),this._rotateUp(l*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(t){if(this._pointers.length===1)this._panEnd.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),o=.5*(t.pageX+e.x),n=.5*(t.pageY+e.y);this._panEnd.set(o,n)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(t){const e=this._getSecondPointerPosition(t),o=t.pageX-e.x,n=t.pageY-e.y,r=Math.sqrt(o*o+n*n);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 c=(t.pageX+e.x)*.5,p=(t.pageY+e.y)*.5;this._updateZoomParameters(c,p)}_handleTouchMoveDollyPan(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enablePan&&this._handleTouchMovePan(t)}_handleTouchMoveDollyRotate(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enableRotate&&this._handleTouchMoveRotate(t)}_addPointer(t){this._pointers.push(t.pointerId)}_removePointer(t){delete this._pointerPositions[t.pointerId];for(let e=0;e<this._pointers.length;e++)if(this._pointers[e]==t.pointerId){this._pointers.splice(e,1);return}}_isTrackingPointer(t){for(let e=0;e<this._pointers.length;e++)if(this._pointers[e]==t.pointerId)return!0;return!1}_trackPointer(t){let e=this._pointerPositions[t.pointerId];e===void 0&&(e=new s.Vector2,this._pointerPositions[t.pointerId]=e),e.set(t.pageX,t.pageY)}_getSecondPointerPosition(t){const e=t.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[e]}_customWheelEvent(t){const e=t.deltaMode,o={clientX:t.clientX,clientY:t.clientY,deltaY:t.deltaY};switch(e){case 1:o.deltaY*=16;break;case 2:o.deltaY*=100;break}return t.ctrlKey&&!this._controlActive&&(o.deltaY*=10),o}}function T(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 D(i){this.enabled!==!1&&(i.pointerType==="touch"?this._onTouchMove(i):this._onMouseMove(i))}function M(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(g),this.state=a.NONE;break;case 1:const t=this._pointers[0],e=this._pointerPositions[t];this._onTouchStart({pointerId:t,pageX:e.x,pageY:e.y});break}}function S(i){let t;switch(i.button){case 0:t=this.mouseButtons.LEFT;break;case 1:t=this.mouseButtons.MIDDLE;break;case 2:t=this.mouseButtons.RIGHT;break;default:t=-1}switch(t){case s.MOUSE.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(i),this.state=a.DOLLY;break;case s.MOUSE.ROTATE:if(i.ctrlKey||i.metaKey||i.shiftKey){if(this.enablePan===!1)return;this._handleMouseDownPan(i),this.state=a.PAN}else{if(this.enableRotate===!1)return;this._handleMouseDownRotate(i),this.state=a.ROTATE}break;case s.MOUSE.PAN:if(i.ctrlKey||i.metaKey||i.shiftKey){if(this.enableRotate===!1)return;this._handleMouseDownRotate(i),this.state=a.ROTATE}else{if(this.enablePan===!1)return;this._handleMouseDownPan(i),this.state=a.PAN}break;default:this.state=a.NONE}this.state!==a.NONE&&this.dispatchEvent(m)}function O(i){switch(this.state){case a.ROTATE:if(this.enableRotate===!1)return;this._handleMouseMoveRotate(i);break;case a.DOLLY:if(this.enableZoom===!1)return;this._handleMouseMoveDolly(i);break;case a.PAN:if(this.enablePan===!1)return;this._handleMouseMovePan(i);break}}function w(i){this.enabled===!1||this.enableZoom===!1||this.state!==a.NONE||(i.preventDefault(),this.dispatchEvent(m),this._handleMouseWheel(this._customWheelEvent(i)),this.dispatchEvent(g))}function R(i){this.enabled!==!1&&this._handleKeyDown(i)}function j(i){switch(this._trackPointer(i),this._pointers.length){case 1:switch(this.touches.ONE){case s.TOUCH.ROTATE:if(this.enableRotate===!1)return;this._handleTouchStartRotate(i),this.state=a.TOUCH_ROTATE;break;case s.TOUCH.PAN:if(this.enablePan===!1)return;this._handleTouchStartPan(i),this.state=a.TOUCH_PAN;break;default:this.state=a.NONE}break;case 2:switch(this.touches.TWO){case s.TOUCH.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(i),this.state=a.TOUCH_DOLLY_PAN;break;case s.TOUCH.DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchStartDollyRotate(i),this.state=a.TOUCH_DOLLY_ROTATE;break;default:this.state=a.NONE}break;default:this.state=a.NONE}this.state!==a.NONE&&this.dispatchEvent(m)}function A(i){switch(this._trackPointer(i),this.state){case a.TOUCH_ROTATE:if(this.enableRotate===!1)return;this._handleTouchMoveRotate(i),this.update();break;case a.TOUCH_PAN:if(this.enablePan===!1)return;this._handleTouchMovePan(i),this.update();break;case a.TOUCH_DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchMoveDollyPan(i),this.update();break;case a.TOUCH_DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchMoveDollyRotate(i),this.update();break;default:this.state=a.NONE}}function L(i){this.enabled!==!1&&i.preventDefault()}function C(i){i.key==="Control"&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function k(i){i.key==="Control"&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}exports.OrbitControls=P;
@@ -1,4 +1,4 @@
1
- import { _ as S, V as p, M as u, $ as _, a0 as E, a1 as P, a2 as c, a3 as w, j as O, J as R } from "./index-DP61HK9f.js";
1
+ import { _ as S, V as p, M as u, $ as _, a0 as E, a1 as P, a2 as c, a3 as w, j as O, J as R } from "./index-Brhs8-ho.js";
2
2
  const D = { type: "change" }, b = { type: "start" }, M = { type: "end" }, f = new w(), T = new O(), j = Math.cos(70 * R.DEG2RAD), n = new p(), r = 2 * Math.PI, o = {
3
3
  NONE: -1,
4
4
  ROTATE: 0,
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as o, reactive as n, onMounted as r, createElementBlock as s, openBlock as m, createVNode as c } from "vue";
2
2
  import "./index-BHtNKL1L.js";
3
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CB9HaWen.js";
3
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DKQiCWlb.js";
4
4
  import { u as i, s as u } from "./menu-Bj0eSg6d.js";
5
- import { z as p } from "./index-DP61HK9f.js";
5
+ import { z as p } from "./index-Brhs8-ho.js";
6
6
  import { S as l } from "./index-C9dpcELX.js";
7
7
  import { i as d } from "./index--UImh9jo.js";
8
8
  const M = /* @__PURE__ */ o({
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),ae=require("./index-C5DS2GFh.cjs"),xe=require("./index.vue_vue_type_style_index_0_scoped_f6ebd097_lang-w8npdWDC.cjs"),re=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S=require("./index.vue_vue_type_style_index_0_scoped_264dc673_lang-BcoocGYl.cjs"),Ee=require("./login-9FT8kgSz.cjs"),m=require("./menu-ScIJ5kqr.cjs"),fe=require("./index-BpPyaNFa.cjs"),_e=require("./modelComp-CkSDfH0-.cjs"),Ne=require("./index-DwXqMKtB.cjs"),Fe=require("./array-A9Rs-yNQ.cjs"),Te=require("./index-BwgTgC3g.cjs"),Y=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CbD8iBb1.cjs");require("vue-router");const Me=require("./index-Cpq5CxLg.cjs"),be=require("./threeModel-CkiW511u.cjs"),Q=require("./index-Ch8p7MB6.cjs"),$e=require("./index.vue_vue_type_script_setup_true_lang-DrwwH91V.cjs"),Ae={class:"horizontal-f-18"};function Pe(V,H,t,B,E,U){const a=e.resolveComponent("svg-icon"),q=e.resolveComponent("ssMenu");return e.openBlock(),e.createBlock(q,{mode:V.mode,menuList:V.renderMenuList,onClickMenu:V.clickMenu,onOpenMenu:V.openMenu,onCloseMenu:V.closeMenu},{title:e.withCtx(({menu:F})=>[e.createVNode(a,{class:"horizontal-icon-18",name:F.icon??"default",style:{"margin-right":"8px"}},null,8,["name"]),e.createElementVNode("span",Ae,e.toDisplayString(F.title??""),1)]),_:1},8,["mode","menuList","onClickMenu","onOpenMenu","onCloseMenu"])}const Re=re._export_sfc(S._sfc_main,[["render",Pe],["__scopeId","data-v-6d1fb5a2"]]),je={class:"bread-content"},Ie=["onClick"],qe={key:0,class:"split-title"},Le={__name:"index",props:{breadArray:{type:Array,default:()=>[]}},emits:["click"],setup(V,{emit:H}){const t=V,B=e.ref([]),E=H;e.onMounted(()=>{B.value=t==null?void 0:t.breadArray}),e.watch(()=>t==null?void 0:t.breadArray,()=>{B.value=t==null?void 0:t.breadArray},{deep:!0,immediate:!0});const U=a=>{E("click",a)};return(a,q)=>(e.openBlock(),e.createElementBlock("div",je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(F,P)=>{var g;return e.openBlock(),e.createElementBlock("div",{key:P,class:"bread-item"},[e.createElementVNode("div",{class:"bread-title",onClick:Z=>U(F),style:e.normalizeStyle({opacity:((g=B.value)==null?void 0:g.length)-1===P?"0.7":"1"})},e.toDisplayString(F.value),13,Ie),P!==B.value.length-1&&Array.isArray(B.value)?(e.openBlock(),e.createElementBlock("div",qe,e.toDisplayString("/"))):e.createCommentVNode("",!0)])}),128))]))}},Ue=re._export_sfc(Le,[["__scopeId","data-v-ded7e2bd"]]),he=[{key:"型线生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources/sampling_points_20.cpt"},{key:"曲面生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources/output.obj"},{key:"叶片生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources/output_TwoSections_completed.obj"},{key:"轨迹规划",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources/complete_data.txt"},{key:"加工规划",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources/NC_BC.NC"},{key:"产品检测",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/source.pcd,http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/target.pcd"},{key:"参数筛选训练方法",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources/fitness_iteration.png"}],Ke={class:"structure-buttons"},Oe={class:"structure-paths"},ze={class:"client-header-user"},Ge={class:"model-select"},He={class:"model-show"},Xe={class:"model-fill"},Je={class:"client-header-menu"},We={class:"client-header-user"},Qe={class:"drop-menu"},Ye={class:"client-main-operate","element-loading-text":"正在加载页面数据..."},Ze={key:0,class:"main-back-btn"},et={class:"main-body"},tt={key:0,class:"item-view-group"},ot={key:2,class:"item-view-child-content"},nt=e.defineComponent({__name:"index",props:{windowConfig:{type:Object,default:()=>{}},showButton:{type:Boolean,default:!0}},emits:["buildContent"],setup(V,{emit:H}){const t=Te.useUnit(m.pinia),{selectTitle:B}=m.storeToRefs(t),E=e.ref(!1),U=e.ref(),a=e.ref(null),q=e.ref(),F=e.ref(!1),P=Ne.useFormComp(m.pinia),{blobUrls:g}=m.storeToRefs(P),Z=e.ref(!1),x=e.ref(!1),R=e.ref(!1),K=e.ref(!1),z=Ee.useLoginState(),{loginUserInfo:j}=m.storeToRefs(z),X=_e.useModelComp(m.pinia),{isEdit:L,routeToChildPath:ie}=m.storeToRefs(X),ue=H,oe=m.useMenuState(m.pinia),{importLoading:de,activeAsideMenu:me,contentLoading:pe,platName:h,activeMenuPath:T}=m.storeToRefs(oe),$=e.ref(""),N=e.computed(()=>me.value.isRouter),I=()=>{sessionStorage.clear(),window.location.reload()},u=()=>{ue("buildContent")},G=async()=>{let s={};const r=await Y.getItemData("弯管仿真加工管理/仿真动画生成",sessionStorage.getItem("systemKey"),""),f=await Y.getItemData("弯管仿真加工管理/管件解析",sessionStorage.getItem("systemKey"),"");let o=["管长","外径"],w={};f==null||f.forEach(l=>{var d;(l==null?void 0:l.comp)==="Form"&&((d=l==null?void 0:l.compData)==null||d.forEach(n=>{var v;(n==null?void 0:n.key)==="formContent"&&((v=n==null?void 0:n.contents)==null||v.forEach(_=>{o.includes(_==null?void 0:_.key)&&(w[_.key]=_.value)}))}))}),r==null||r.forEach(l=>{var d,n,v,_,i,D;if((l==null?void 0:l.comp)==="Table"){let M=[],C=(v=(n=(d=l==null?void 0:l.compData)==null?void 0:d.find(c=>(c==null?void 0:c.key)==="header"))==null?void 0:n.contents)==null?void 0:v.map(c=>c==null?void 0:c.label),k=(D=(i=(_=l==null?void 0:l.compData)==null?void 0:_.find(c=>(c==null?void 0:c.key)==="tableContents"))==null?void 0:i.contents)==null?void 0:D.map(c=>(c=c==null?void 0:c.filter(y=>!(y!=null&&y.id)),c));k==null||k.forEach(c=>{M.push(Y.getValueToObjectValue(c,C==null?void 0:C.filter(y=>y!=="操作")))}),s[l.name]=M,s[l.name+"Content"]=l}}),s.extra=w,U.value=s},A=s=>{let r=m.cloneDeep(s),f=[],o=[];return r==null||r.forEach((w,l)=>{l===(s==null?void 0:s.length)-1?(o.push(w),f.push(o)):((o==null?void 0:o.length)!==0&&w.includes(".obj")&&(f.push(o),o=[]),o.push(w))}),f},ee=async()=>{var s,r;if(E.value=!0,q.value){const f=q.value;let o=[];if(typeof(f==null?void 0:f.url)=="string"){let w=(s=f==null?void 0:f.url)==null?void 0:s.split(","),l=(r=A(w))==null?void 0:r.map(async d=>{var n,v;if((d==null?void 0:d.length)===1){let _=d==null?void 0:d.map(async i=>{var k,c;let D=await m.axios.get(i,{responseType:"blob",headers:{"Content-Type":"application/json"}});const M=new Blob([D.data],{type:"application/octet-stream;charset=UTF-8"});let C={suffix:"."+((c=i==null?void 0:i.split("."))==null?void 0:c[((k=i==null?void 0:i.split("."))==null?void 0:k.length)-1]),blob:M,mtlBlobs:[]};return o.push(C),C});return await Promise.all(_),_}else{let _=d==null?void 0:d.find(y=>y==null?void 0:y.includes(".obj")),i=await m.axios.get(_,{responseType:"blob",headers:{"Content-Type":"application/json"}});const D=new Blob([i.data],{type:"application/octet-stream;charset=UTF-8"});let M=d==null?void 0:d.filter(y=>y==null?void 0:y.includes(".mtl")),C=[],k=M==null?void 0:M.map(async y=>{let p=await m.axios.get(_,{responseType:"blob",headers:{"Content-Type":"application/json"}});const J=new Blob([p.data],{type:"application/octet-stream;charset=UTF-8"});return C.push(J),p});await Promise.all(k);let c={suffix:"."+((v=_==null?void 0:_.split("."))==null?void 0:v[((n=_==null?void 0:_.split("."))==null?void 0:n.length)-1]),blob:D,mtlBlobs:C};return o.push(c),c}});await Promise.all(l)}a.value.loadModelByDefaultPath(o)}},O=()=>{F.value=!1,a.value=null};e.watch(()=>T.value,async s=>{s&&(x.value=!0),s==="弯管仿真加工管理/仿真动画生成"?R.value=!0:R.value=!1,s==="弯管仿真加工管理/程序输出"?K.value=!0:K.value=!1,he!=null&&he.find(r=>{var f;return(r==null?void 0:r.key)===((f=s==null?void 0:s.split("/"))==null?void 0:f[(s==null?void 0:s.split("/").length)-1])})?Z.value=!0:Z.value=!1},{immediate:!0}),e.watch(()=>[g==null?void 0:g.value],async()=>{var s,r,f,o,w;if(g!=null&&g.value&&((s=g==null?void 0:g.value)==null?void 0:s.length)>0&&!Z.value&&!((r=S.showItems.value)!=null&&r.find(l=>(l==null?void 0:l.name)==="输入")&&((f=S.showItems.value)!=null&&f.find(l=>(l==null?void 0:l.name)==="输出")))){F.value=!0;let l=[];const d=await((o=m.cloneDeep(g==null?void 0:g.value))==null?void 0:o.map(async n=>{var M,C,k,c,y,p,J,le,ye,Ce;let v,_,i;n!=null&&n.blob.includes("undefined")?i=(C=(M=n==null?void 0:n.blob)==null?void 0:M.split("undefined,"))==null?void 0:C[1]:i=n==null?void 0:n.blob;let D=i==null?void 0:i.split(",");if((D==null?void 0:D.length)>1){let te=await(D==null?void 0:D.map(async b=>{var W,ge,we,ke,Be,ve;v=await m.axios.get(b,{responseType:"blob",headers:{"Content-Type":"application/json"}});let ne=[];if(((W=n==null?void 0:n.mtlBlobs)==null?void 0:W.length)>0){let Se=await((ge=n==null?void 0:n.mtlBlobs)==null?void 0:ge.map(async De=>{let Ve=await m.axios.get(De,{responseType:"blob",headers:{"Content-Type":"application/json"}});return ne.push(new Blob([Ve.data],{type:"application/octet-stream;charset=UTF-8"})),Ve}));await Promise.all(Se)}return((ke=b==null?void 0:b.split("."))==null?void 0:ke[((we=b==null?void 0:b.split("."))==null?void 0:we.length)-1])!=="undefined"&&l.push({suffix:"."+((ve=b==null?void 0:b.split("."))==null?void 0:ve[((Be=b==null?void 0:b.split("."))==null?void 0:Be.length)-1]),blob:new Blob([v.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:ne}),v}));await Promise.all(te)}else if(!(i!=null&&i.includes("https://"))&&!(i!=null&&i.includes("http://"))){v=await Q.downloadAvatarApi({url:i});let te=[];if(((k=n==null?void 0:n.mtlBlobs)==null?void 0:k.length)>0){let b=await((c=n==null?void 0:n.mtlBlobs)==null?void 0:c.map(async ne=>{let W=await Q.downloadAvatarApi({url:ne});return te.push(new Blob([W.data],{type:"application/octet-stream;charset=UTF-8"})),W}));await Promise.all(b)}_={suffix:"."+((p=i==null?void 0:i.split("."))==null?void 0:p[((y=i==null?void 0:i.split("."))==null?void 0:y.length)-1]),blob:new Blob([v.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:te}}else{v=await m.axios.get(i,{responseType:"blob",headers:{"Content-Type":"application/json"}});let te=[];if(((J=n==null?void 0:n.mtlBlobs)==null?void 0:J.length)>0){let b=await((le=n==null?void 0:n.mtlBlobs)==null?void 0:le.map(async ne=>{let W=await m.axios.get(ne,{responseType:"blob",headers:{"Content-Type":"application/json"}});return te.push(new Blob([W.data],{type:"application/octet-stream;charset=UTF-8"})),W}));await Promise.all(b)}_={suffix:"."+((Ce=i==null?void 0:i.split("."))==null?void 0:Ce[((ye=i==null?void 0:i.split("."))==null?void 0:ye.length)-1]),blob:new Blob([v.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:te}}_&&l.push(_)}));await Promise.all(d),(l==null?void 0:l.length)!==0&&((w=a.value)==null||w.loadModelByDefaultPath(l))}},{immediate:!0,deep:!0});const se=async()=>{var r,f,o,w;oe.setImportLoading(!0);const s=await m.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey")}});if(((r=s==null?void 0:s.data)==null?void 0:r.code)===200){let l=(w=(o=(f=s==null?void 0:s.data)==null?void 0:f.result)==null?void 0:o.map(d=>{var n;if(((n=d==null?void 0:d.key)==null?void 0:n.layer)!=="superAdmin")return d==null?void 0:d.id}))==null?void 0:w.filter(d=>d);await m.batchDeleteInsofDataApi({ids:l}),oe.setRawMenus([])}oe.setImportLoading(!1)},ce=async()=>{await Ne.onSaveBack()};return(s,r)=>{const f=e.resolveComponent("el-dialog"),o=e.resolveComponent("el-button"),w=e.resolveComponent("el-avatar"),l=e.resolveComponent("el-header"),d=e.resolveComponent("el-container"),n=e.resolveComponent("el-icon"),v=e.resolveComponent("el-input"),_=e.resolveComponent("el-aside"),i=e.resolveComponent("router-view"),D=e.resolveComponent("el-main"),M=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(f,{modelValue:E.value,"onUpdate:modelValue":r[0]||(r[0]=C=>E.value=C),style:{height:"700px",width:"1800px"}},{default:e.withCtx(()=>[e.createVNode(be.default,{ref_key:"threeModelRef",ref:a,onGetAnimationData:G,animationData:U.value},null,8,["animationData"])]),_:1},8,["modelValue"]),e.withDirectives(e.createVNode(d,{class:"client-container"},{default:e.withCtx(()=>[e.createVNode(l,{class:"client-structure-header"},{default:e.withCtx(()=>{var C;return[e.createElementVNode("div",Ke,[e.createVNode(o,{id:"transparentBgButton",onClick:e.unref(S.onBack)},{default:e.withCtx(()=>r[4]||(r[4]=[e.createTextVNode(" 返回页面 ")])),_:1,__:[4]},8,["onClick"]),e.createVNode(o,{id:"transparentBgButton",onClick:r[1]||(r[1]=k=>{var c,y;return e.unref(S.clickSavePage)((y=(c=e.unref(B))==null?void 0:c.map(p=>p.value))==null?void 0:y.join("/"))})},{icon:e.withCtx(()=>[e.createVNode(fe.SvgIcon,{name:"Store"})]),default:e.withCtx(()=>[r[5]||(r[5]=e.createTextVNode(" 保存页面 "))]),_:1,__:[5]})]),e.createElementVNode("div",Oe,[e.createVNode(Ue,{breadArray:e.unref(B),onClick:e.unref(S.onClick)},null,8,["breadArray","onClick"])]),e.createElementVNode("div",ze,[e.renderSlot(s.$slots,"default",{},void 0,!0),e.createVNode(w,{size:35,src:(C=e.unref(j))==null?void 0:C.avatarUrl},{default:e.withCtx(()=>{var k;return[e.createTextVNode(e.toDisplayString(((k=e.unref(j))==null?void 0:k.account)??"未知"),1)]}),_:1},8,["src"])])]}),_:3}),e.unref(L)==="edit"?(e.openBlock(),e.createBlock(d,{key:0,class:"model-operate",style:{"margin-top":"10px",height:"0px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Ge,[e.createVNode(ae.modelSelect)]),e.createElementVNode("div",He,[e.createVNode(ae.modelShow)]),e.createElementVNode("div",Xe,[e.createVNode(ae.modelFill)])]),_:1})):e.createCommentVNode("",!0)]),_:3},512),[[e.vShow,e.unref(L)==="edit"]]),e.withDirectives((e.openBlock(),e.createBlock(d,{class:"client-container","element-loading-text":"正在加载页面数据..."},{default:e.withCtx(()=>[e.createVNode(l,{class:"client-header"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"client-header-logo",onClick:ee},e.toDisplayString(e.unref(h)===""?"ISIP":e.unref(h)),1),e.createElementVNode("div",Je,[e.createVNode(Re,{mode:"horizontal"})]),e.createElementVNode("div",We,[e.createVNode(v,{modelValue:$.value,"onUpdate:modelValue":r[2]||(r[2]=C=>$.value=C),clearable:"",placeholder:"搜索"},{prefix:e.withCtx(()=>[e.createVNode(n,{class:"el-input__icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(m.search_default))]),_:1})]),_:1},8,["modelValue"]),V.showButton?(e.openBlock(),e.createBlock(o,{key:0,id:"transparentBgButton",onClick:u},{icon:e.withCtx(()=>[e.createVNode(fe.SvgIcon,{name:"App"})]),default:e.withCtx(()=>[r[6]||(r[6]=e.createTextVNode(" 生成APP "))]),_:1,__:[6]})):e.createCommentVNode("",!0),V.showButton&&e.unref(L)==="view"?(e.openBlock(),e.createBlock(o,{key:1,id:"transparentBgButton",onClick:e.unref(S.onSelectFixContent)},{icon:e.withCtx(()=>[e.createVNode(fe.SvgIcon,{name:"write"})]),default:e.withCtx(()=>[r[7]||(r[7]=e.createTextVNode(" 修改布局 "))]),_:1,__:[7]},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default",{},void 0,!0),e.createVNode(Q._sfc_main,null,{dropTitle:e.withCtx(()=>{var C;return[e.createVNode($e._sfc_main,{size:"35",avatarUrl:(C=e.unref(j))==null?void 0:C.avatarUrl,showCropper:!1,banClick:!0},{avatarDefault:e.withCtx(()=>{var k,c,y;return[e.createTextVNode(e.toDisplayString((k=e.unref(j))!=null&&k.account?(c=e.unref(j))==null?void 0:c.account:((y=e.unref(j))==null?void 0:y.账号)??"未知"),1)]}),_:1},8,["avatarUrl"])]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Qe,[e.createVNode(Q._sfc_main$1,{emptyColor:!0,class:"menu-button",onClickTrigger:se,modelValue:"清空数据",buttonType:""}),e.createVNode(Q._sfc_main$1,{emptyColor:!0,class:"menu-button",onClickTrigger:I,modelValue:"退出登录",buttonType:""})])]),_:1})])]),_:3}),e.createVNode(d,{class:"client-body"},{default:e.withCtx(()=>[e.createVNode(D,{class:"client-main"},{default:e.withCtx(()=>{var C,k,c,y;return[e.createVNode(_,{class:"client-aside"},{default:e.withCtx(()=>[e.createVNode(Me.default,{mode:"vertical"})]),_:1}),e.withDirectives((e.openBlock(),e.createElementBlock("div",Ye,[e.unref(ie)!==""?(e.openBlock(),e.createElementBlock("div",Ze,[e.createVNode(Q._sfc_main$1,{class:"calculator-content back-content",onClickTrigger:r[3]||(r[3]=p=>e.unref(S.onPageBack)()),modelValue:"返回"})])):e.createCommentVNode("",!0),e.createElementVNode("div",et,[N.value?(e.openBlock(),e.createBlock(i,{key:0})):e.createCommentVNode("",!0),N.value?e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList((C=e.unref(m.cloneDeep)(e.unref(S.showItems)))==null?void 0:C.filter(p=>p.comp!=="FormTop"),(p,J)=>{var le;return e.openBlock(),e.createElementBlock("div",{class:"item-view-content",key:J},[((le=p==null?void 0:p.comp)==null?void 0:le.toUpperCase())!=="TABLE"&&p.name?(e.openBlock(),e.createElementBlock("div",tt,e.toDisplayString(p.name),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(S.getComponents)(p.comp)),{compName:p.name,itemData:p==null?void 0:p.compData,childItemData:p==null?void 0:p.itemChildData,key:(p==null?void 0:p.id)??J,onChange:e.unref(S.onChange),index:(p==null?void 0:p.id)??J,onContentChange:e.unref(S.onContentChange),onPageChange:e.unref(S.onPageChange)},null,40,["compName","itemData","childItemData","onChange","index","onContentChange","onPageChange"]))])}),128)),!N.value&&!((k=e.unref(m.cloneDeep)(e.unref(S.showItems)))!=null&&k.find(p=>p.comp==="methodButton"))?(e.openBlock(),e.createElementBlock("div",ot,[e.unref(ie)!==""&&((y=e.unref(T))==null?void 0:y[((c=e.unref(T))==null?void 0:c.length)-1])!=="/"?(e.openBlock(),e.createBlock(Q._sfc_main$1,{key:0,class:"calculator-content",onClickTrigger:ce,modelValue:"保存"})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])),[[M,e.unref(pe)]])]}),_:1})]),_:1}),e.createElementVNode("div",null,[e.createVNode(Q.ssDialog,{visible:F.value,onBeforeDestroy:O,style:{height:"700px",width:"1000px"}},{default:e.withCtx(()=>[e.createVNode(be.default,{ref_key:"threeModelRef",ref:a},null,512)]),_:1},8,["visible"])])]),_:3})),[[e.vShow,e.unref(L)==="view"],[M,e.unref(de)]])],64)}}}),at=re._export_sfc(nt,[["__scopeId","data-v-41821190"]]),lt={class:"system-wrap"},rt={__name:"index",props:{windowConfig:{type:Object,default:()=>{}},platform:{type:String,default:"browser"},showButton:{type:Boolean,default:!0},content:String,jsonContents:Array},emits:["buildContent","showChild"],setup(V,{emit:H}){const t=_e.useModelComp(m.pinia),B=Te.useUnit(m.pinia),E=m.useMenuState();e.ref(!1);const U=e.ref(!0),a=V,q=H,F=x=>{q("showChild",x)},P=e.computed(()=>{switch(a==null?void 0:a.platform){case"browser":return xe.browserThemeConfig;case"client":return xe.clientThemeConfig}}),g=x=>{const R=document.documentElement;x==null||x.forEach(K=>{R.style.setProperty(K.name,K.value)})};e.watch(()=>a.platform,(x,R)=>{x&&g(P.value)},{immediate:!0});const Z=()=>{q("buildContent")};return e.watch(()=>[a==null?void 0:a.content,a==null?void 0:a.jsonContents],async()=>{var K,z,j,X;if(((K=a==null?void 0:a.jsonContents)==null?void 0:K.length)>0){t.setOriginalData(a==null?void 0:a.jsonContents);return}if(!(a!=null&&a.content)||((z=a==null?void 0:a.content)==null?void 0:z.length)===0)return;U.value=!0,E.setImportLoading(!0);let x=[],R=[];B.setSelectTitle([]),B.setSelectIndex(""),B.setSelectMenu(""),(X=(j=a==null?void 0:a.content)==null?void 0:j.filter(L=>L!==""))==null||X.forEach(L=>{R.push(S.expandToNewContents(L))}),x=R==null?void 0:R[0],await S.savePageDataAsync(x),await Y.loadingSystemType(),t.setOriginalData(x),E.setImportLoading(!1)},{deep:!0,immediate:!0}),(x,R)=>(e.openBlock(),e.createElementBlock("div",lt,[e.createVNode(at,{windowConfig:V.windowConfig,showButton:V.showButton,onBuildContent:Z,onShowChild:F},{default:e.withCtx(()=>[e.renderSlot(x.$slots,"default",{},void 0,!0)]),_:3},8,["windowConfig","showButton"])]))}},it=re._export_sfc(rt,[["__scopeId","data-v-9ee9b396"]]),st={class:"add-model-content"},ct={key:0,class:"model-operate"},ut={class:"model-select"},dt={class:"model-fill"},mt={key:1,class:"model-view"},pt={__name:"index",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},pathContent:{type:String,default:""},pageKey:{type:String,default:""}},emits:["change","contentChange","buildContent","openThreeBuild","threeData"],setup(V,{emit:H}){const t=V,B=H,E=e.ref([]),U=e.ref(0),a=e.ref([]),q=e.ref([]),F=e.ref(0),P=_e.useModelComp(m.pinia),g=m.useMenuState(m.pinia),{itemData:Z,originalData:x}=m.storeToRefs(P),{activeMenuPath:R,platform:K}=m.storeToRefs(g),z=e.ref(null),j=e.ref(0),X=e.ref([]);e.ref("");const L=e.ref(0),ie=()=>{B("buildContent")};e.watch(()=>t==null?void 0:t.pageKey,async()=>{let h={};if((t==null?void 0:t.pageKey)!==""){const T=await Y.getItemData(t==null?void 0:t.pageKey,sessionStorage.getItem("systemKey"),""),$=await Y.getItemData("弯管仿真加工管理/管件解析",sessionStorage.getItem("systemKey"),"");let N=["管长","外径"],I={};$==null||$.forEach(u=>{var G;(u==null?void 0:u.comp)==="Form"&&((G=u==null?void 0:u.compData)==null||G.forEach(A=>{var ee;(A==null?void 0:A.key)==="formContent"&&((ee=A==null?void 0:A.contents)==null||ee.forEach(O=>{N.includes(O==null?void 0:O.key)&&(I[O.key]=O.value)}))}))}),T==null||T.forEach(u=>{var G,A,ee,O,se,ce;if((u==null?void 0:u.comp)==="Table"){let s=[],r=(ee=(A=(G=u==null?void 0:u.compData)==null?void 0:G.find(o=>(o==null?void 0:o.key)==="header"))==null?void 0:A.contents)==null?void 0:ee.map(o=>o==null?void 0:o.label),f=(ce=(se=(O=u==null?void 0:u.compData)==null?void 0:O.find(o=>(o==null?void 0:o.key)==="tableContents"))==null?void 0:se.contents)==null?void 0:ce.map(o=>(o=o==null?void 0:o.filter(w=>!(w!=null&&w.id)),o));f==null||f.forEach(o=>{s.push(Y.getValueToObjectValue(o,r==null?void 0:r.filter(w=>w!=="操作")))}),h[u.name]=s,h[u.name+"Content"]=u}}),h.extra=I,B("threeData",h)}},{deep:!0,immediate:!0});const ue=h=>{B("openThreeBuild",h)};e.watch(()=>t==null?void 0:t.pathContent,()=>{(t==null?void 0:t.pathContent)!==""&&P.setSystemPath(t==null?void 0:t.pathContent)},{deep:!0,immediate:!0});const oe=h=>{B("contentChange",h)},de=h=>{var $;const T=($=m.cloneDeep(h==null?void 0:h.wholeValue))==null?void 0:$.map(N=>{var I;return(N==null?void 0:N.comp)==="Form"&&(N.compData=(I=N.compData)==null?void 0:I.map(u=>((u==null?void 0:u.key)==="formContent"&&(u.contents=Fe.arrayToNumberArray(u==null?void 0:u.contents)),u))),N});B("change",{originalContents:x.value,currentContents:h==null?void 0:h.wholeValue,editContent:h==null?void 0:h.editValue,arrayToContents:T})};e.watch(()=>a.value,()=>{L.value===a.value.length&&a.value.length!==0&&(E.value=a.value)},{deep:!0,immediate:!0});const me=()=>{z.value!==null&&z.value.click()},pe=async h=>{g.setActiveMenuPath(""),g.setActiveTopMenuPath(""),g.setAsideMenus([]);const T=h.target.files;if(!T)return;new FileReader,E.value=[],a.value=[],L.value=T.length;const $=Array.from(T).map(async N=>await new Promise(I=>{const u=new FileReader;u.onload=G=>{try{a.value.push(G.target.result),j.value++}catch(A){console.error("解析失败:",A);return}},u.onerror=()=>I(`读取 ${N.name} 失败`),u.readAsText(N),h.target.value="",z.value=null,U.value++}));await Promise.all($)};return e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],async()=>{await Y.loadingSystemType(),E.value=t.content,q.value=t==null?void 0:t.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>j.value,()=>{var h;((h=X.value)==null?void 0:h.length)!==0&&(P.setOriginalData(X.value),P.setItemData(X.value))},{deep:!0,immediate:!0}),(h,T)=>{const $=e.resolveComponent("svg-icon"),N=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",st,[(t==null?void 0:t.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",ct,[e.createElementVNode("div",ut,[e.createVNode(ae.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:F.value},[e.createVNode(ae.modelShow)])),e.createElementVNode("div",dt,[e.createVNode(ae.modelFill)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="view"?(e.openBlock(),e.createElementBlock("div",mt,[(e.openBlock(),e.createBlock(it,{showButton:V.showButton,platform:e.unref(K),content:E.value,onChange:de,jsonContents:q.value,onContentChange:oe,onBuildContent:ie,key:F.value,onShowChild:ue},{default:e.withCtx(()=>{var I;return[((I=t==null?void 0:t.jsonContents)==null?void 0:I.length)===0&&(t!=null&&t.showButton)?(e.openBlock(),e.createBlock(N,{key:0,id:"transparentBgButton",onClick:me},{icon:e.withCtx(()=>[e.createVNode($,{name:"import"})]),default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("input",{type:"file",key:U.value,ref_key:"fileInput",ref:z,accept:".txt, .inm, .iml, .imd",onChange:pe,style:{display:"none"},multiple:""},null,32)),T[0]||(T[0]=e.createTextVNode(" 导入模型 "))]),_:1,__:[0]})):e.createCommentVNode("",!0)]}),_:1},8,["showButton","platform","content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},ft=re._export_sfc(pt,[["__scopeId","data-v-264dc673"]]);exports.default=ft;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),ae=require("./index-CYc_nQjl.cjs"),xe=require("./index.vue_vue_type_style_index_0_scoped_f6ebd097_lang-CNLvOlhH.cjs"),re=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S=require("./index.vue_vue_type_style_index_0_scoped_264dc673_lang-CunArNny.cjs"),Ee=require("./login-9FT8kgSz.cjs"),m=require("./menu-ScIJ5kqr.cjs"),fe=require("./index-BpPyaNFa.cjs"),_e=require("./modelComp-CkSDfH0-.cjs"),Ne=require("./index-dCHm4bqT.cjs"),Fe=require("./array-A9Rs-yNQ.cjs"),Te=require("./index-JWowiMDG.cjs"),Y=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BB1q_NEl.cjs");require("vue-router");const Me=require("./index-DhwVgmX4.cjs"),be=require("./threeModel-DBWCHeou.cjs"),Q=require("./index-CM6HSS02.cjs"),$e=require("./index.vue_vue_type_script_setup_true_lang-CfQmzicD.cjs"),Ae={class:"horizontal-f-18"};function Pe(V,H,t,B,E,U){const a=e.resolveComponent("svg-icon"),q=e.resolveComponent("ssMenu");return e.openBlock(),e.createBlock(q,{mode:V.mode,menuList:V.renderMenuList,onClickMenu:V.clickMenu,onOpenMenu:V.openMenu,onCloseMenu:V.closeMenu},{title:e.withCtx(({menu:F})=>[e.createVNode(a,{class:"horizontal-icon-18",name:F.icon??"default",style:{"margin-right":"8px"}},null,8,["name"]),e.createElementVNode("span",Ae,e.toDisplayString(F.title??""),1)]),_:1},8,["mode","menuList","onClickMenu","onOpenMenu","onCloseMenu"])}const Re=re._export_sfc(S._sfc_main,[["render",Pe],["__scopeId","data-v-6d1fb5a2"]]),je={class:"bread-content"},Ie=["onClick"],qe={key:0,class:"split-title"},Le={__name:"index",props:{breadArray:{type:Array,default:()=>[]}},emits:["click"],setup(V,{emit:H}){const t=V,B=e.ref([]),E=H;e.onMounted(()=>{B.value=t==null?void 0:t.breadArray}),e.watch(()=>t==null?void 0:t.breadArray,()=>{B.value=t==null?void 0:t.breadArray},{deep:!0,immediate:!0});const U=a=>{E("click",a)};return(a,q)=>(e.openBlock(),e.createElementBlock("div",je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(F,P)=>{var g;return e.openBlock(),e.createElementBlock("div",{key:P,class:"bread-item"},[e.createElementVNode("div",{class:"bread-title",onClick:Z=>U(F),style:e.normalizeStyle({opacity:((g=B.value)==null?void 0:g.length)-1===P?"0.7":"1"})},e.toDisplayString(F.value),13,Ie),P!==B.value.length-1&&Array.isArray(B.value)?(e.openBlock(),e.createElementBlock("div",qe,e.toDisplayString("/"))):e.createCommentVNode("",!0)])}),128))]))}},Ue=re._export_sfc(Le,[["__scopeId","data-v-ded7e2bd"]]),he=[{key:"型线生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources/sampling_points_20.cpt"},{key:"曲面生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources/output.obj"},{key:"叶片生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources/output_TwoSections_completed.obj"},{key:"轨迹规划",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources/complete_data.txt"},{key:"加工规划",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources/NC_BC.NC"},{key:"产品检测",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/source.pcd,http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/target.pcd"},{key:"参数筛选训练方法",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources/fitness_iteration.png"}],Ke={class:"structure-buttons"},Oe={class:"structure-paths"},ze={class:"client-header-user"},Ge={class:"model-select"},He={class:"model-show"},Xe={class:"model-fill"},Je={class:"client-header-menu"},We={class:"client-header-user"},Qe={class:"drop-menu"},Ye={class:"client-main-operate","element-loading-text":"正在加载页面数据..."},Ze={key:0,class:"main-back-btn"},et={class:"main-body"},tt={key:0,class:"item-view-group"},ot={key:2,class:"item-view-child-content"},nt=e.defineComponent({__name:"index",props:{windowConfig:{type:Object,default:()=>{}},showButton:{type:Boolean,default:!0}},emits:["buildContent"],setup(V,{emit:H}){const t=Te.useUnit(m.pinia),{selectTitle:B}=m.storeToRefs(t),E=e.ref(!1),U=e.ref(),a=e.ref(null),q=e.ref(),F=e.ref(!1),P=Ne.useFormComp(m.pinia),{blobUrls:g}=m.storeToRefs(P),Z=e.ref(!1),x=e.ref(!1),R=e.ref(!1),K=e.ref(!1),z=Ee.useLoginState(),{loginUserInfo:j}=m.storeToRefs(z),X=_e.useModelComp(m.pinia),{isEdit:L,routeToChildPath:ie}=m.storeToRefs(X),ue=H,oe=m.useMenuState(m.pinia),{importLoading:de,activeAsideMenu:me,contentLoading:pe,platName:h,activeMenuPath:T}=m.storeToRefs(oe),$=e.ref(""),N=e.computed(()=>me.value.isRouter),I=()=>{sessionStorage.clear(),window.location.reload()},u=()=>{ue("buildContent")},G=async()=>{let s={};const r=await Y.getItemData("弯管仿真加工管理/仿真动画生成",sessionStorage.getItem("systemKey"),""),f=await Y.getItemData("弯管仿真加工管理/管件解析",sessionStorage.getItem("systemKey"),"");let o=["管长","外径"],w={};f==null||f.forEach(l=>{var d;(l==null?void 0:l.comp)==="Form"&&((d=l==null?void 0:l.compData)==null||d.forEach(n=>{var v;(n==null?void 0:n.key)==="formContent"&&((v=n==null?void 0:n.contents)==null||v.forEach(_=>{o.includes(_==null?void 0:_.key)&&(w[_.key]=_.value)}))}))}),r==null||r.forEach(l=>{var d,n,v,_,i,D;if((l==null?void 0:l.comp)==="Table"){let M=[],C=(v=(n=(d=l==null?void 0:l.compData)==null?void 0:d.find(c=>(c==null?void 0:c.key)==="header"))==null?void 0:n.contents)==null?void 0:v.map(c=>c==null?void 0:c.label),k=(D=(i=(_=l==null?void 0:l.compData)==null?void 0:_.find(c=>(c==null?void 0:c.key)==="tableContents"))==null?void 0:i.contents)==null?void 0:D.map(c=>(c=c==null?void 0:c.filter(y=>!(y!=null&&y.id)),c));k==null||k.forEach(c=>{M.push(Y.getValueToObjectValue(c,C==null?void 0:C.filter(y=>y!=="操作")))}),s[l.name]=M,s[l.name+"Content"]=l}}),s.extra=w,U.value=s},A=s=>{let r=m.cloneDeep(s),f=[],o=[];return r==null||r.forEach((w,l)=>{l===(s==null?void 0:s.length)-1?(o.push(w),f.push(o)):((o==null?void 0:o.length)!==0&&w.includes(".obj")&&(f.push(o),o=[]),o.push(w))}),f},ee=async()=>{var s,r;if(E.value=!0,q.value){const f=q.value;let o=[];if(typeof(f==null?void 0:f.url)=="string"){let w=(s=f==null?void 0:f.url)==null?void 0:s.split(","),l=(r=A(w))==null?void 0:r.map(async d=>{var n,v;if((d==null?void 0:d.length)===1){let _=d==null?void 0:d.map(async i=>{var k,c;let D=await m.axios.get(i,{responseType:"blob",headers:{"Content-Type":"application/json"}});const M=new Blob([D.data],{type:"application/octet-stream;charset=UTF-8"});let C={suffix:"."+((c=i==null?void 0:i.split("."))==null?void 0:c[((k=i==null?void 0:i.split("."))==null?void 0:k.length)-1]),blob:M,mtlBlobs:[]};return o.push(C),C});return await Promise.all(_),_}else{let _=d==null?void 0:d.find(y=>y==null?void 0:y.includes(".obj")),i=await m.axios.get(_,{responseType:"blob",headers:{"Content-Type":"application/json"}});const D=new Blob([i.data],{type:"application/octet-stream;charset=UTF-8"});let M=d==null?void 0:d.filter(y=>y==null?void 0:y.includes(".mtl")),C=[],k=M==null?void 0:M.map(async y=>{let p=await m.axios.get(_,{responseType:"blob",headers:{"Content-Type":"application/json"}});const J=new Blob([p.data],{type:"application/octet-stream;charset=UTF-8"});return C.push(J),p});await Promise.all(k);let c={suffix:"."+((v=_==null?void 0:_.split("."))==null?void 0:v[((n=_==null?void 0:_.split("."))==null?void 0:n.length)-1]),blob:D,mtlBlobs:C};return o.push(c),c}});await Promise.all(l)}a.value.loadModelByDefaultPath(o)}},O=()=>{F.value=!1,a.value=null};e.watch(()=>T.value,async s=>{s&&(x.value=!0),s==="弯管仿真加工管理/仿真动画生成"?R.value=!0:R.value=!1,s==="弯管仿真加工管理/程序输出"?K.value=!0:K.value=!1,he!=null&&he.find(r=>{var f;return(r==null?void 0:r.key)===((f=s==null?void 0:s.split("/"))==null?void 0:f[(s==null?void 0:s.split("/").length)-1])})?Z.value=!0:Z.value=!1},{immediate:!0}),e.watch(()=>[g==null?void 0:g.value],async()=>{var s,r,f,o,w;if(g!=null&&g.value&&((s=g==null?void 0:g.value)==null?void 0:s.length)>0&&!Z.value&&!((r=S.showItems.value)!=null&&r.find(l=>(l==null?void 0:l.name)==="输入")&&((f=S.showItems.value)!=null&&f.find(l=>(l==null?void 0:l.name)==="输出")))){F.value=!0;let l=[];const d=await((o=m.cloneDeep(g==null?void 0:g.value))==null?void 0:o.map(async n=>{var M,C,k,c,y,p,J,le,ye,Ce;let v,_,i;n!=null&&n.blob.includes("undefined")?i=(C=(M=n==null?void 0:n.blob)==null?void 0:M.split("undefined,"))==null?void 0:C[1]:i=n==null?void 0:n.blob;let D=i==null?void 0:i.split(",");if((D==null?void 0:D.length)>1){let te=await(D==null?void 0:D.map(async b=>{var W,ge,we,ke,Be,ve;v=await m.axios.get(b,{responseType:"blob",headers:{"Content-Type":"application/json"}});let ne=[];if(((W=n==null?void 0:n.mtlBlobs)==null?void 0:W.length)>0){let Se=await((ge=n==null?void 0:n.mtlBlobs)==null?void 0:ge.map(async De=>{let Ve=await m.axios.get(De,{responseType:"blob",headers:{"Content-Type":"application/json"}});return ne.push(new Blob([Ve.data],{type:"application/octet-stream;charset=UTF-8"})),Ve}));await Promise.all(Se)}return((ke=b==null?void 0:b.split("."))==null?void 0:ke[((we=b==null?void 0:b.split("."))==null?void 0:we.length)-1])!=="undefined"&&l.push({suffix:"."+((ve=b==null?void 0:b.split("."))==null?void 0:ve[((Be=b==null?void 0:b.split("."))==null?void 0:Be.length)-1]),blob:new Blob([v.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:ne}),v}));await Promise.all(te)}else if(!(i!=null&&i.includes("https://"))&&!(i!=null&&i.includes("http://"))){v=await Q.downloadAvatarApi({url:i});let te=[];if(((k=n==null?void 0:n.mtlBlobs)==null?void 0:k.length)>0){let b=await((c=n==null?void 0:n.mtlBlobs)==null?void 0:c.map(async ne=>{let W=await Q.downloadAvatarApi({url:ne});return te.push(new Blob([W.data],{type:"application/octet-stream;charset=UTF-8"})),W}));await Promise.all(b)}_={suffix:"."+((p=i==null?void 0:i.split("."))==null?void 0:p[((y=i==null?void 0:i.split("."))==null?void 0:y.length)-1]),blob:new Blob([v.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:te}}else{v=await m.axios.get(i,{responseType:"blob",headers:{"Content-Type":"application/json"}});let te=[];if(((J=n==null?void 0:n.mtlBlobs)==null?void 0:J.length)>0){let b=await((le=n==null?void 0:n.mtlBlobs)==null?void 0:le.map(async ne=>{let W=await m.axios.get(ne,{responseType:"blob",headers:{"Content-Type":"application/json"}});return te.push(new Blob([W.data],{type:"application/octet-stream;charset=UTF-8"})),W}));await Promise.all(b)}_={suffix:"."+((Ce=i==null?void 0:i.split("."))==null?void 0:Ce[((ye=i==null?void 0:i.split("."))==null?void 0:ye.length)-1]),blob:new Blob([v.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:te}}_&&l.push(_)}));await Promise.all(d),(l==null?void 0:l.length)!==0&&((w=a.value)==null||w.loadModelByDefaultPath(l))}},{immediate:!0,deep:!0});const se=async()=>{var r,f,o,w;oe.setImportLoading(!0);const s=await m.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey")}});if(((r=s==null?void 0:s.data)==null?void 0:r.code)===200){let l=(w=(o=(f=s==null?void 0:s.data)==null?void 0:f.result)==null?void 0:o.map(d=>{var n;if(((n=d==null?void 0:d.key)==null?void 0:n.layer)!=="superAdmin")return d==null?void 0:d.id}))==null?void 0:w.filter(d=>d);await m.batchDeleteInsofDataApi({ids:l}),oe.setRawMenus([])}oe.setImportLoading(!1)},ce=async()=>{await Ne.onSaveBack()};return(s,r)=>{const f=e.resolveComponent("el-dialog"),o=e.resolveComponent("el-button"),w=e.resolveComponent("el-avatar"),l=e.resolveComponent("el-header"),d=e.resolveComponent("el-container"),n=e.resolveComponent("el-icon"),v=e.resolveComponent("el-input"),_=e.resolveComponent("el-aside"),i=e.resolveComponent("router-view"),D=e.resolveComponent("el-main"),M=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(f,{modelValue:E.value,"onUpdate:modelValue":r[0]||(r[0]=C=>E.value=C),style:{height:"700px",width:"1800px"}},{default:e.withCtx(()=>[e.createVNode(be.default,{ref_key:"threeModelRef",ref:a,onGetAnimationData:G,animationData:U.value},null,8,["animationData"])]),_:1},8,["modelValue"]),e.withDirectives(e.createVNode(d,{class:"client-container"},{default:e.withCtx(()=>[e.createVNode(l,{class:"client-structure-header"},{default:e.withCtx(()=>{var C;return[e.createElementVNode("div",Ke,[e.createVNode(o,{id:"transparentBgButton",onClick:e.unref(S.onBack)},{default:e.withCtx(()=>r[4]||(r[4]=[e.createTextVNode(" 返回页面 ")])),_:1,__:[4]},8,["onClick"]),e.createVNode(o,{id:"transparentBgButton",onClick:r[1]||(r[1]=k=>{var c,y;return e.unref(S.clickSavePage)((y=(c=e.unref(B))==null?void 0:c.map(p=>p.value))==null?void 0:y.join("/"))})},{icon:e.withCtx(()=>[e.createVNode(fe.SvgIcon,{name:"Store"})]),default:e.withCtx(()=>[r[5]||(r[5]=e.createTextVNode(" 保存页面 "))]),_:1,__:[5]})]),e.createElementVNode("div",Oe,[e.createVNode(Ue,{breadArray:e.unref(B),onClick:e.unref(S.onClick)},null,8,["breadArray","onClick"])]),e.createElementVNode("div",ze,[e.renderSlot(s.$slots,"default",{},void 0,!0),e.createVNode(w,{size:35,src:(C=e.unref(j))==null?void 0:C.avatarUrl},{default:e.withCtx(()=>{var k;return[e.createTextVNode(e.toDisplayString(((k=e.unref(j))==null?void 0:k.account)??"未知"),1)]}),_:1},8,["src"])])]}),_:3}),e.unref(L)==="edit"?(e.openBlock(),e.createBlock(d,{key:0,class:"model-operate",style:{"margin-top":"10px",height:"0px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Ge,[e.createVNode(ae.modelSelect)]),e.createElementVNode("div",He,[e.createVNode(ae.modelShow)]),e.createElementVNode("div",Xe,[e.createVNode(ae.modelFill)])]),_:1})):e.createCommentVNode("",!0)]),_:3},512),[[e.vShow,e.unref(L)==="edit"]]),e.withDirectives((e.openBlock(),e.createBlock(d,{class:"client-container","element-loading-text":"正在加载页面数据..."},{default:e.withCtx(()=>[e.createVNode(l,{class:"client-header"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"client-header-logo",onClick:ee},e.toDisplayString(e.unref(h)===""?"ISIP":e.unref(h)),1),e.createElementVNode("div",Je,[e.createVNode(Re,{mode:"horizontal"})]),e.createElementVNode("div",We,[e.createVNode(v,{modelValue:$.value,"onUpdate:modelValue":r[2]||(r[2]=C=>$.value=C),clearable:"",placeholder:"搜索"},{prefix:e.withCtx(()=>[e.createVNode(n,{class:"el-input__icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(m.search_default))]),_:1})]),_:1},8,["modelValue"]),V.showButton?(e.openBlock(),e.createBlock(o,{key:0,id:"transparentBgButton",onClick:u},{icon:e.withCtx(()=>[e.createVNode(fe.SvgIcon,{name:"App"})]),default:e.withCtx(()=>[r[6]||(r[6]=e.createTextVNode(" 生成APP "))]),_:1,__:[6]})):e.createCommentVNode("",!0),V.showButton&&e.unref(L)==="view"?(e.openBlock(),e.createBlock(o,{key:1,id:"transparentBgButton",onClick:e.unref(S.onSelectFixContent)},{icon:e.withCtx(()=>[e.createVNode(fe.SvgIcon,{name:"write"})]),default:e.withCtx(()=>[r[7]||(r[7]=e.createTextVNode(" 修改布局 "))]),_:1,__:[7]},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"default",{},void 0,!0),e.createVNode(Q._sfc_main,null,{dropTitle:e.withCtx(()=>{var C;return[e.createVNode($e._sfc_main,{size:"35",avatarUrl:(C=e.unref(j))==null?void 0:C.avatarUrl,showCropper:!1,banClick:!0},{avatarDefault:e.withCtx(()=>{var k,c,y;return[e.createTextVNode(e.toDisplayString((k=e.unref(j))!=null&&k.account?(c=e.unref(j))==null?void 0:c.account:((y=e.unref(j))==null?void 0:y.账号)??"未知"),1)]}),_:1},8,["avatarUrl"])]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Qe,[e.createVNode(Q._sfc_main$1,{emptyColor:!0,class:"menu-button",onClickTrigger:se,modelValue:"清空数据",buttonType:""}),e.createVNode(Q._sfc_main$1,{emptyColor:!0,class:"menu-button",onClickTrigger:I,modelValue:"退出登录",buttonType:""})])]),_:1})])]),_:3}),e.createVNode(d,{class:"client-body"},{default:e.withCtx(()=>[e.createVNode(D,{class:"client-main"},{default:e.withCtx(()=>{var C,k,c,y;return[e.createVNode(_,{class:"client-aside"},{default:e.withCtx(()=>[e.createVNode(Me.default,{mode:"vertical"})]),_:1}),e.withDirectives((e.openBlock(),e.createElementBlock("div",Ye,[e.unref(ie)!==""?(e.openBlock(),e.createElementBlock("div",Ze,[e.createVNode(Q._sfc_main$1,{class:"calculator-content back-content",onClickTrigger:r[3]||(r[3]=p=>e.unref(S.onPageBack)()),modelValue:"返回"})])):e.createCommentVNode("",!0),e.createElementVNode("div",et,[N.value?(e.openBlock(),e.createBlock(i,{key:0})):e.createCommentVNode("",!0),N.value?e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList((C=e.unref(m.cloneDeep)(e.unref(S.showItems)))==null?void 0:C.filter(p=>p.comp!=="FormTop"),(p,J)=>{var le;return e.openBlock(),e.createElementBlock("div",{class:"item-view-content",key:J},[((le=p==null?void 0:p.comp)==null?void 0:le.toUpperCase())!=="TABLE"&&p.name?(e.openBlock(),e.createElementBlock("div",tt,e.toDisplayString(p.name),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(S.getComponents)(p.comp)),{compName:p.name,itemData:p==null?void 0:p.compData,childItemData:p==null?void 0:p.itemChildData,key:(p==null?void 0:p.id)??J,onChange:e.unref(S.onChange),index:(p==null?void 0:p.id)??J,onContentChange:e.unref(S.onContentChange),onPageChange:e.unref(S.onPageChange)},null,40,["compName","itemData","childItemData","onChange","index","onContentChange","onPageChange"]))])}),128)),!N.value&&!((k=e.unref(m.cloneDeep)(e.unref(S.showItems)))!=null&&k.find(p=>p.comp==="methodButton"))?(e.openBlock(),e.createElementBlock("div",ot,[e.unref(ie)!==""&&((y=e.unref(T))==null?void 0:y[((c=e.unref(T))==null?void 0:c.length)-1])!=="/"?(e.openBlock(),e.createBlock(Q._sfc_main$1,{key:0,class:"calculator-content",onClickTrigger:ce,modelValue:"保存"})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])),[[M,e.unref(pe)]])]}),_:1})]),_:1}),e.createElementVNode("div",null,[e.createVNode(Q.ssDialog,{visible:F.value,onBeforeDestroy:O,style:{height:"700px",width:"1000px"}},{default:e.withCtx(()=>[e.createVNode(be.default,{ref_key:"threeModelRef",ref:a},null,512)]),_:1},8,["visible"])])]),_:3})),[[e.vShow,e.unref(L)==="view"],[M,e.unref(de)]])],64)}}}),at=re._export_sfc(nt,[["__scopeId","data-v-41821190"]]),lt={class:"system-wrap"},rt={__name:"index",props:{windowConfig:{type:Object,default:()=>{}},platform:{type:String,default:"browser"},showButton:{type:Boolean,default:!0},content:String,jsonContents:Array},emits:["buildContent","showChild"],setup(V,{emit:H}){const t=_e.useModelComp(m.pinia),B=Te.useUnit(m.pinia),E=m.useMenuState();e.ref(!1);const U=e.ref(!0),a=V,q=H,F=x=>{q("showChild",x)},P=e.computed(()=>{switch(a==null?void 0:a.platform){case"browser":return xe.browserThemeConfig;case"client":return xe.clientThemeConfig}}),g=x=>{const R=document.documentElement;x==null||x.forEach(K=>{R.style.setProperty(K.name,K.value)})};e.watch(()=>a.platform,(x,R)=>{x&&g(P.value)},{immediate:!0});const Z=()=>{q("buildContent")};return e.watch(()=>[a==null?void 0:a.content,a==null?void 0:a.jsonContents],async()=>{var K,z,j,X;if(((K=a==null?void 0:a.jsonContents)==null?void 0:K.length)>0){t.setOriginalData(a==null?void 0:a.jsonContents);return}if(!(a!=null&&a.content)||((z=a==null?void 0:a.content)==null?void 0:z.length)===0)return;U.value=!0,E.setImportLoading(!0);let x=[],R=[];B.setSelectTitle([]),B.setSelectIndex(""),B.setSelectMenu(""),(X=(j=a==null?void 0:a.content)==null?void 0:j.filter(L=>L!==""))==null||X.forEach(L=>{R.push(S.expandToNewContents(L))}),x=R==null?void 0:R[0],await S.savePageDataAsync(x),await Y.loadingSystemType(),t.setOriginalData(x),E.setImportLoading(!1)},{deep:!0,immediate:!0}),(x,R)=>(e.openBlock(),e.createElementBlock("div",lt,[e.createVNode(at,{windowConfig:V.windowConfig,showButton:V.showButton,onBuildContent:Z,onShowChild:F},{default:e.withCtx(()=>[e.renderSlot(x.$slots,"default",{},void 0,!0)]),_:3},8,["windowConfig","showButton"])]))}},it=re._export_sfc(rt,[["__scopeId","data-v-9ee9b396"]]),st={class:"add-model-content"},ct={key:0,class:"model-operate"},ut={class:"model-select"},dt={class:"model-fill"},mt={key:1,class:"model-view"},pt={__name:"index",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},pathContent:{type:String,default:""},pageKey:{type:String,default:""}},emits:["change","contentChange","buildContent","openThreeBuild","threeData"],setup(V,{emit:H}){const t=V,B=H,E=e.ref([]),U=e.ref(0),a=e.ref([]),q=e.ref([]),F=e.ref(0),P=_e.useModelComp(m.pinia),g=m.useMenuState(m.pinia),{itemData:Z,originalData:x}=m.storeToRefs(P),{activeMenuPath:R,platform:K}=m.storeToRefs(g),z=e.ref(null),j=e.ref(0),X=e.ref([]);e.ref("");const L=e.ref(0),ie=()=>{B("buildContent")};e.watch(()=>t==null?void 0:t.pageKey,async()=>{let h={};if((t==null?void 0:t.pageKey)!==""){const T=await Y.getItemData(t==null?void 0:t.pageKey,sessionStorage.getItem("systemKey"),""),$=await Y.getItemData("弯管仿真加工管理/管件解析",sessionStorage.getItem("systemKey"),"");let N=["管长","外径"],I={};$==null||$.forEach(u=>{var G;(u==null?void 0:u.comp)==="Form"&&((G=u==null?void 0:u.compData)==null||G.forEach(A=>{var ee;(A==null?void 0:A.key)==="formContent"&&((ee=A==null?void 0:A.contents)==null||ee.forEach(O=>{N.includes(O==null?void 0:O.key)&&(I[O.key]=O.value)}))}))}),T==null||T.forEach(u=>{var G,A,ee,O,se,ce;if((u==null?void 0:u.comp)==="Table"){let s=[],r=(ee=(A=(G=u==null?void 0:u.compData)==null?void 0:G.find(o=>(o==null?void 0:o.key)==="header"))==null?void 0:A.contents)==null?void 0:ee.map(o=>o==null?void 0:o.label),f=(ce=(se=(O=u==null?void 0:u.compData)==null?void 0:O.find(o=>(o==null?void 0:o.key)==="tableContents"))==null?void 0:se.contents)==null?void 0:ce.map(o=>(o=o==null?void 0:o.filter(w=>!(w!=null&&w.id)),o));f==null||f.forEach(o=>{s.push(Y.getValueToObjectValue(o,r==null?void 0:r.filter(w=>w!=="操作")))}),h[u.name]=s,h[u.name+"Content"]=u}}),h.extra=I,B("threeData",h)}},{deep:!0,immediate:!0});const ue=h=>{B("openThreeBuild",h)};e.watch(()=>t==null?void 0:t.pathContent,()=>{(t==null?void 0:t.pathContent)!==""&&P.setSystemPath(t==null?void 0:t.pathContent)},{deep:!0,immediate:!0});const oe=h=>{B("contentChange",h)},de=h=>{var $;const T=($=m.cloneDeep(h==null?void 0:h.wholeValue))==null?void 0:$.map(N=>{var I;return(N==null?void 0:N.comp)==="Form"&&(N.compData=(I=N.compData)==null?void 0:I.map(u=>((u==null?void 0:u.key)==="formContent"&&(u.contents=Fe.arrayToNumberArray(u==null?void 0:u.contents)),u))),N});B("change",{originalContents:x.value,currentContents:h==null?void 0:h.wholeValue,editContent:h==null?void 0:h.editValue,arrayToContents:T})};e.watch(()=>a.value,()=>{L.value===a.value.length&&a.value.length!==0&&(E.value=a.value)},{deep:!0,immediate:!0});const me=()=>{z.value!==null&&z.value.click()},pe=async h=>{g.setActiveMenuPath(""),g.setActiveTopMenuPath(""),g.setAsideMenus([]);const T=h.target.files;if(!T)return;new FileReader,E.value=[],a.value=[],L.value=T.length;const $=Array.from(T).map(async N=>await new Promise(I=>{const u=new FileReader;u.onload=G=>{try{a.value.push(G.target.result),j.value++}catch(A){console.error("解析失败:",A);return}},u.onerror=()=>I(`读取 ${N.name} 失败`),u.readAsText(N),h.target.value="",z.value=null,U.value++}));await Promise.all($)};return e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],async()=>{await Y.loadingSystemType(),E.value=t.content,q.value=t==null?void 0:t.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>j.value,()=>{var h;((h=X.value)==null?void 0:h.length)!==0&&(P.setOriginalData(X.value),P.setItemData(X.value))},{deep:!0,immediate:!0}),(h,T)=>{const $=e.resolveComponent("svg-icon"),N=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",st,[(t==null?void 0:t.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",ct,[e.createElementVNode("div",ut,[e.createVNode(ae.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:F.value},[e.createVNode(ae.modelShow)])),e.createElementVNode("div",dt,[e.createVNode(ae.modelFill)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="view"?(e.openBlock(),e.createElementBlock("div",mt,[(e.openBlock(),e.createBlock(it,{showButton:V.showButton,platform:e.unref(K),content:E.value,onChange:de,jsonContents:q.value,onContentChange:oe,onBuildContent:ie,key:F.value,onShowChild:ue},{default:e.withCtx(()=>{var I;return[((I=t==null?void 0:t.jsonContents)==null?void 0:I.length)===0&&(t!=null&&t.showButton)?(e.openBlock(),e.createBlock(N,{key:0,id:"transparentBgButton",onClick:me},{icon:e.withCtx(()=>[e.createVNode($,{name:"import"})]),default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("input",{type:"file",key:U.value,ref_key:"fileInput",ref:z,accept:".txt, .inm, .iml, .imd",onChange:pe,style:{display:"none"},multiple:""},null,32)),T[0]||(T[0]=e.createTextVNode(" 导入模型 "))]),_:1,__:[0]})):e.createCommentVNode("",!0)]}),_:1},8,["showButton","platform","content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},ft=re._export_sfc(pt,[["__scopeId","data-v-264dc673"]]);exports.default=ft;
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./index.vue_vue_type_script_setup_true_lang-DraLJN1H.js";
1
+ import { _ as f } from "./index.vue_vue_type_script_setup_true_lang-B9iSnLp7.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_lang-DrwwH91V.cjs");exports.default=e._sfc_main;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_lang-CfQmzicD.cjs");exports.default=e._sfc_main;
@@ -1,8 +1,8 @@
1
1
  import { ref as Ut, watch as Is, nextTick as Oo, resolveComponent as Zn, createBlock as ts, openBlock as gn, withCtx as tn, createElementVNode as _n, renderSlot as cc, onMounted as Il, createElementBlock as zn, normalizeClass as hd, toDisplayString as Si, createCommentVNode as rr, createVNode as ln, unref as du, Fragment as ya, renderList as Ma, normalizeStyle as fu, createTextVNode as Ds, defineComponent as pu, computed as ud, createSlots as dd } from "vue";
2
2
  import { d as fd, c as tt, b as Va, s as Rs, p as Ls, bB as Nl, u as pd, b2 as md, E as gd, g as _d } from "./menu-Bj0eSg6d.js";
3
- import { e as ba, d as mu, k as vd, s as hc, f as xd } from "./index-D6bQX-A7.js";
3
+ import { e as ba, d as mu, k as vd, s as hc, f as xd } from "./index-DK4Pnepl.js";
4
4
  import { u as gu } from "./modelComp-CUCWitDo.js";
5
- import { A as ha, R as yd, a as Md, T as uc, U as bd, V as Sd, F as dc, g as Ha, W as fc, X as Ed, Y as Ad, Z as wd } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CB9HaWen.js";
5
+ import { A as ha, R as yd, a as Md, T as uc, U as bd, V as Sd, F as dc, g as Ha, W as fc, X as Ed, Y as Ad, Z as wd } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DKQiCWlb.js";
6
6
  import { _ as Fl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  import { u as Td } from "./login-Ct7wC1jE.js";
8
8
  const pc = (s) => s.match(/\((.*)\)/)[1], Cd = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),p=require("./menu-ScIJ5kqr.cjs"),B=require("./login-9FT8kgSz.cjs"),U=require("./crypto-CRbcEKIz.cjs"),A=require("./index-B9EAWpHA.cjs"),I=require("./index-Ch8p7MB6.cjs"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),R=B.useLoginState(p.pinia),{loginUserInfo:u,cryptoInfo:m}=p.storeToRefs(R),O=p.useMenuState(p.pinia),{activeMenuPath:h}=p.storeToRefs(O),_=n.ref(0);var T,E,k,N;const j=n.ref([{label:"",name:"account",value:(T=u.value)==null?void 0:T.account},{label:"",name:"userDept",value:(E=u.value)==null?void 0:E.userDept},{label:"",name:"userRoles",value:(N=(k=u.value)==null?void 0:k.userRoles)==null?void 0:N.join("、")}]),W=()=>{},b=n.ref(!1),w=n.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),D=n.ref([{label:"签字版",icon:p.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:p.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:p.upload_filled_default,type:"buttonUpload",disabled:!1}]),V=n.ref(!1),q=n.computed(()=>{var t;const s=sessionStorage.getItem("authority"),e=JSON.parse(s||"");return Array.isArray(e)?(V.value=!(e!=null&&e.includes(`${h.value}/上传头像`)),(t=D.value)==null?void 0:t.map(r=>({...r,disabled:!(e!=null&&e.includes(`${h.value}/签名`))}))):typeof e=="string"&&(e==null?void 0:e.toUpperCase())==="SUPERADMIN"?D.value:[]}),H=n.computed(()=>[{key:"signConfig",contents:w},{key:"signTypeList",contents:q.value}]),z=s=>{w.dialogShow=s.label==="电子签名"},x=()=>{w.dialogShow=!1},M=async s=>{var t,r,o,l,a,i,c,g,f;const e=await p.getInsofDataApi({id:s,key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:"/系统管理/用户管理"}});if(((t=e==null?void 0:e.data)==null?void 0:t.code)===200&&e.data.result&&Array.isArray(e.data.result)&&e.data.result.length>0){const y={...(l=(o=(r=e.data.result)==null?void 0:r[0])==null?void 0:o.value)==null?void 0:l.tableData,id:(i=(a=e.data.result)==null?void 0:a[0])==null?void 0:i.id,layer:(f=(g=(c=e.data.result)==null?void 0:c[0])==null?void 0:g.key)==null?void 0:f.layer};R.setLoginUserInfo(y)}},K=async s=>{var e,t,r;try{const o=await p.updateInsofDataApi({id:(e=u.value)==null?void 0:e.id,value:{tableData:s}});((t=o==null?void 0:o.data)==null?void 0:t.code)===200&&(x(),p.ElMessage.success("修改成功"),await M((r=u.value)==null?void 0:r.id),b.value=!1)}catch{p.ElMessage.error("修改响应失败"),b.value=!1}},J=async(s,e)=>{var r;const t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",[s]:e};b.value=!0,await K(t)},v=n.reactive({baseCols:[],otherCols:[]}),P=n.ref([]),$=n.ref(),Z=(s,e,t)=>{var l,a,i,c,g;let r;const o=e;((a=(l=u.value)==null?void 0:l.layer)==null?void 0:a.toUpperCase())!=="SUPERADMIN"?r=U.decryptData((i=u.value)==null?void 0:i.password,(c=m==null?void 0:m.value)==null?void 0:c.privateKey):r=(g=u.value)==null?void 0:g.password,r===o?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},G=(s,e,t)=>{e?/^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[!@#$%^&*(),.?":{}|<>]).{6,}$/.test(e)?t():t(new Error("密码必须包含大写字母、小写字母、数字和特殊字符,并且长度至少为6个字符")):t(new Error("请输入密码"))},Q=(s,e,t)=>{var r;e!==((r=$.value)==null?void 0:r.newtPass)?t(new Error("两次输入的密码不一致")):t()},X=async()=>{var e,t,r,o,l,a,i,c,g;const s=await p.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"/系统管理/用户管理"}});if(((e=s==null?void 0:s.data)==null?void 0:e.code)===200&&s.data.result&&((t=s.data.result)==null?void 0:t.length)>0){const f=(i=(a=(l=(o=(r=s.data.result)==null?void 0:r[0])==null?void 0:o.value)==null?void 0:l.pageData)==null?void 0:a.compData)==null?void 0:i.find(d=>(d==null?void 0:d.key)==="header"),y=["password","status","userDept","avatar","signature","account","userRoles","layer"];v.baseCols=f&&((c=f.contents)==null?void 0:c.map(d=>({...d,isFormColHidden:(y==null?void 0:y.includes(d==null?void 0:d.prop))||(d==null?void 0:d.label)==="操作"})));const C=(g=f.contents)==null?void 0:g.find(d=>(d==null?void 0:d.prop)==="password"),L=[{...C,label:"当前密码",prop:"currentPass",validator:Z},{...C,label:"新密码",prop:"newtPass",validator:G},{...C,label:"确认密码",prop:"confirmNewPass",validator:Q}];v.otherCols=L,te(u.value)}},Y=s=>{$.value=s},ee=async({content:s,buttonName:e})=>{var r,o,l,a,i;let t;e==="确定"&&(t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",password:((l=(o=u.value)==null?void 0:o.layer)==null?void 0:l.toUpperCase())==="SUPERADMIN"?s==null?void 0:s.confirmNewPass:U.encryptData(s==null?void 0:s.confirmNewPass,(a=m.value)==null?void 0:a.publicKey)}),e==="保存基本信息"&&(t={...u.value,...s,status:((i=u.value)==null?void 0:i.status)??"启用"}),b.value=!0,await K(t)},S=()=>{const s={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},e=sessionStorage.getItem("authority"),t=JSON.parse(e||"");if(Array.isArray(t)){const r=t!=null&&t.includes(`${h.value}/基本信息`)?s==null?void 0:s.base:[],o=t!=null&&t.includes(`${h.value}/修改密码`)?s==null?void 0:s.other:[];return{base:r,other:o}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?s:null},te=s=>{var e,t,r,o,l;S(),P.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(e=v.baseCols)==null?void 0:e.map(a=>({...a,width:2,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options,value:s[a==null?void 0:a.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=S())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(r=v.otherCols)==null?void 0:r.map(a=>({...a,width:1,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options})),formRules:(o=v.otherCols)==null?void 0:o.reduce((a,i)=>(a[i.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(c,g,f)=>i.validator(c,g,f),trigger:"blur"}],a),{}),buttonValue:(l=S())==null?void 0:l.other,isEnableWrap:!1},value:""}]}]},ae=Object.freeze(Object.defineProperty({__proto__:null,beforeSignDestroy:x,changeFormTrigger:Y,clickFormButton:W,clickSignButton:z,clickTabButton:ee,getUserTableHeadersAsync:X,itemData:H,loading:b,refreshLoginUserInfoAsync:M,rowContents:j,signPadInfo:w,signTypes:q,submitImageAsync:J,tabKey:_,tabsContents:P,tempSignTypes:D,uploadDisabled:V},Symbol.toStringTag,{value:"Module"})),se={class:"personal-wrapper"},re={class:"personal-box left"},ne={class:"base-avatar"},oe={class:"center-avatar"},le={class:"base-info"},ie={class:"base-signature"},ue={class:"personal-box right"},de=n.defineComponent({__name:"index",setup(s){const e=n.reactive({...ae}),t=B.useLoginState(),{loginUserInfo:r}=p.storeToRefs(t);return n.onMounted(()=>{var o;e.getUserTableHeadersAsync(),e.refreshLoginUserInfoAsync((o=r==null?void 0:r.value)==null?void 0:o.id),_.value++}),(o,l)=>{const a=n.resolveDirective("loading");return n.openBlock(),n.createElementBlock("div",se,[n.createElementVNode("div",re,[n.createElementVNode("div",ne,[n.withDirectives((n.openBlock(),n.createElementBlock("div",oe,[n.createVNode(A.ssAvatar,{disabled:e.uploadDisabled,userInfo:n.unref(r),onSubmitImage:l[0]||(l[0]=i=>e.submitImageAsync("avatarUrl",i))},null,8,["disabled","userInfo"])])),[[a,e.loading]])]),n.createElementVNode("div",le,[n.createVNode(I.ssForm,{rowContents:e.rowContents,isEnableWrap:!1,isButtonRow:!0,isEdit:!1},null,8,["rowContents"])]),n.createElementVNode("div",ie,[n.createVNode(A.ssSignature,{userInfo:n.unref(r),itemData:e.itemData,onClickSignButton:e.clickSignButton,onBeforeDestroy:e.beforeSignDestroy,onClickSubmitSign:l[1]||(l[1]=i=>e.submitImageAsync("signature",i))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"])])]),n.createElementVNode("div",ue,[(n.openBlock(),n.createBlock(I.ssTab,{key:n.unref(_),tabsContents:e.tabsContents,onChangeTrigger:e.changeFormTrigger,onClickTrigger:e.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])])}}}),pe=F._export_sfc(de,[["__scopeId","data-v-a55e627c"]]);exports.default=pe;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),p=require("./menu-ScIJ5kqr.cjs"),B=require("./login-9FT8kgSz.cjs"),U=require("./crypto-CRbcEKIz.cjs"),A=require("./index-fSieD0VD.cjs"),I=require("./index-CM6HSS02.cjs"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),R=B.useLoginState(p.pinia),{loginUserInfo:u,cryptoInfo:m}=p.storeToRefs(R),O=p.useMenuState(p.pinia),{activeMenuPath:h}=p.storeToRefs(O),_=n.ref(0);var T,E,k,N;const j=n.ref([{label:"",name:"account",value:(T=u.value)==null?void 0:T.account},{label:"",name:"userDept",value:(E=u.value)==null?void 0:E.userDept},{label:"",name:"userRoles",value:(N=(k=u.value)==null?void 0:k.userRoles)==null?void 0:N.join("、")}]),W=()=>{},b=n.ref(!1),w=n.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),D=n.ref([{label:"签字版",icon:p.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:p.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:p.upload_filled_default,type:"buttonUpload",disabled:!1}]),V=n.ref(!1),q=n.computed(()=>{var t;const s=sessionStorage.getItem("authority"),e=JSON.parse(s||"");return Array.isArray(e)?(V.value=!(e!=null&&e.includes(`${h.value}/上传头像`)),(t=D.value)==null?void 0:t.map(r=>({...r,disabled:!(e!=null&&e.includes(`${h.value}/签名`))}))):typeof e=="string"&&(e==null?void 0:e.toUpperCase())==="SUPERADMIN"?D.value:[]}),H=n.computed(()=>[{key:"signConfig",contents:w},{key:"signTypeList",contents:q.value}]),z=s=>{w.dialogShow=s.label==="电子签名"},x=()=>{w.dialogShow=!1},M=async s=>{var t,r,o,l,a,i,c,g,f;const e=await p.getInsofDataApi({id:s,key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:"/系统管理/用户管理"}});if(((t=e==null?void 0:e.data)==null?void 0:t.code)===200&&e.data.result&&Array.isArray(e.data.result)&&e.data.result.length>0){const y={...(l=(o=(r=e.data.result)==null?void 0:r[0])==null?void 0:o.value)==null?void 0:l.tableData,id:(i=(a=e.data.result)==null?void 0:a[0])==null?void 0:i.id,layer:(f=(g=(c=e.data.result)==null?void 0:c[0])==null?void 0:g.key)==null?void 0:f.layer};R.setLoginUserInfo(y)}},K=async s=>{var e,t,r;try{const o=await p.updateInsofDataApi({id:(e=u.value)==null?void 0:e.id,value:{tableData:s}});((t=o==null?void 0:o.data)==null?void 0:t.code)===200&&(x(),p.ElMessage.success("修改成功"),await M((r=u.value)==null?void 0:r.id),b.value=!1)}catch{p.ElMessage.error("修改响应失败"),b.value=!1}},J=async(s,e)=>{var r;const t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",[s]:e};b.value=!0,await K(t)},v=n.reactive({baseCols:[],otherCols:[]}),P=n.ref([]),$=n.ref(),Z=(s,e,t)=>{var l,a,i,c,g;let r;const o=e;((a=(l=u.value)==null?void 0:l.layer)==null?void 0:a.toUpperCase())!=="SUPERADMIN"?r=U.decryptData((i=u.value)==null?void 0:i.password,(c=m==null?void 0:m.value)==null?void 0:c.privateKey):r=(g=u.value)==null?void 0:g.password,r===o?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},G=(s,e,t)=>{e?/^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[!@#$%^&*(),.?":{}|<>]).{6,}$/.test(e)?t():t(new Error("密码必须包含大写字母、小写字母、数字和特殊字符,并且长度至少为6个字符")):t(new Error("请输入密码"))},Q=(s,e,t)=>{var r;e!==((r=$.value)==null?void 0:r.newtPass)?t(new Error("两次输入的密码不一致")):t()},X=async()=>{var e,t,r,o,l,a,i,c,g;const s=await p.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"/系统管理/用户管理"}});if(((e=s==null?void 0:s.data)==null?void 0:e.code)===200&&s.data.result&&((t=s.data.result)==null?void 0:t.length)>0){const f=(i=(a=(l=(o=(r=s.data.result)==null?void 0:r[0])==null?void 0:o.value)==null?void 0:l.pageData)==null?void 0:a.compData)==null?void 0:i.find(d=>(d==null?void 0:d.key)==="header"),y=["password","status","userDept","avatar","signature","account","userRoles","layer"];v.baseCols=f&&((c=f.contents)==null?void 0:c.map(d=>({...d,isFormColHidden:(y==null?void 0:y.includes(d==null?void 0:d.prop))||(d==null?void 0:d.label)==="操作"})));const C=(g=f.contents)==null?void 0:g.find(d=>(d==null?void 0:d.prop)==="password"),L=[{...C,label:"当前密码",prop:"currentPass",validator:Z},{...C,label:"新密码",prop:"newtPass",validator:G},{...C,label:"确认密码",prop:"confirmNewPass",validator:Q}];v.otherCols=L,te(u.value)}},Y=s=>{$.value=s},ee=async({content:s,buttonName:e})=>{var r,o,l,a,i;let t;e==="确定"&&(t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",password:((l=(o=u.value)==null?void 0:o.layer)==null?void 0:l.toUpperCase())==="SUPERADMIN"?s==null?void 0:s.confirmNewPass:U.encryptData(s==null?void 0:s.confirmNewPass,(a=m.value)==null?void 0:a.publicKey)}),e==="保存基本信息"&&(t={...u.value,...s,status:((i=u.value)==null?void 0:i.status)??"启用"}),b.value=!0,await K(t)},S=()=>{const s={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},e=sessionStorage.getItem("authority"),t=JSON.parse(e||"");if(Array.isArray(t)){const r=t!=null&&t.includes(`${h.value}/基本信息`)?s==null?void 0:s.base:[],o=t!=null&&t.includes(`${h.value}/修改密码`)?s==null?void 0:s.other:[];return{base:r,other:o}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?s:null},te=s=>{var e,t,r,o,l;S(),P.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(e=v.baseCols)==null?void 0:e.map(a=>({...a,width:2,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options,value:s[a==null?void 0:a.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=S())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(r=v.otherCols)==null?void 0:r.map(a=>({...a,width:1,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options})),formRules:(o=v.otherCols)==null?void 0:o.reduce((a,i)=>(a[i.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(c,g,f)=>i.validator(c,g,f),trigger:"blur"}],a),{}),buttonValue:(l=S())==null?void 0:l.other,isEnableWrap:!1},value:""}]}]},ae=Object.freeze(Object.defineProperty({__proto__:null,beforeSignDestroy:x,changeFormTrigger:Y,clickFormButton:W,clickSignButton:z,clickTabButton:ee,getUserTableHeadersAsync:X,itemData:H,loading:b,refreshLoginUserInfoAsync:M,rowContents:j,signPadInfo:w,signTypes:q,submitImageAsync:J,tabKey:_,tabsContents:P,tempSignTypes:D,uploadDisabled:V},Symbol.toStringTag,{value:"Module"})),se={class:"personal-wrapper"},re={class:"personal-box left"},ne={class:"base-avatar"},oe={class:"center-avatar"},le={class:"base-info"},ie={class:"base-signature"},ue={class:"personal-box right"},de=n.defineComponent({__name:"index",setup(s){const e=n.reactive({...ae}),t=B.useLoginState(),{loginUserInfo:r}=p.storeToRefs(t);return n.onMounted(()=>{var o;e.getUserTableHeadersAsync(),e.refreshLoginUserInfoAsync((o=r==null?void 0:r.value)==null?void 0:o.id),_.value++}),(o,l)=>{const a=n.resolveDirective("loading");return n.openBlock(),n.createElementBlock("div",se,[n.createElementVNode("div",re,[n.createElementVNode("div",ne,[n.withDirectives((n.openBlock(),n.createElementBlock("div",oe,[n.createVNode(A.ssAvatar,{disabled:e.uploadDisabled,userInfo:n.unref(r),onSubmitImage:l[0]||(l[0]=i=>e.submitImageAsync("avatarUrl",i))},null,8,["disabled","userInfo"])])),[[a,e.loading]])]),n.createElementVNode("div",le,[n.createVNode(I.ssForm,{rowContents:e.rowContents,isEnableWrap:!1,isButtonRow:!0,isEdit:!1},null,8,["rowContents"])]),n.createElementVNode("div",ie,[n.createVNode(A.ssSignature,{userInfo:n.unref(r),itemData:e.itemData,onClickSignButton:e.clickSignButton,onBeforeDestroy:e.beforeSignDestroy,onClickSubmitSign:l[1]||(l[1]=i=>e.submitImageAsync("signature",i))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"])])]),n.createElementVNode("div",ue,[(n.openBlock(),n.createBlock(I.ssTab,{key:n.unref(_),tabsContents:e.tabsContents,onChangeTrigger:e.changeFormTrigger,onClickTrigger:e.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])])}}}),pe=F._export_sfc(de,[["__scopeId","data-v-a55e627c"]]);exports.default=pe;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as w, reactive as M, onMounted as y, watch as V, nextTick as z, resolveComponent as s, createElementBlock as C, openBlock as u, createVNode as r, withCtx as l, createElementVNode as p, toDisplayString as g, Fragment as N, renderList as S, createBlock as R, createTextVNode as _ } from "vue";
2
- import { z as T } from "./index-DP61HK9f.js";
2
+ import { z as T } from "./index-Brhs8-ho.js";
3
3
  import { j as m } from "./index--UImh9jo.js";
4
4
  import { u as A, s as I, c as P } from "./menu-Bj0eSg6d.js";
5
5
  import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,14 +1,14 @@
1
- import { V as xe, B as al, S as S1, C as L1, P as T1, W as V1, a as P1, A as O1, b as R1, M as s1, X as H1, G as U1, c as cl, d as j1, e as r2, f as N1, D as wl, H as K1, g as i1, h as y2, i as x2, j as Al, E as kl, L as J1, U as y1, k as E2, l as ul, m as dl, O as pl, n as W1, o as G1, p as X1, q as n1, r as q1, F as Y1, s as Z1, t as Q1, v as ea, w as la, x as aa, y as sa, z as g1, I as Z2, J as ia, K as na, T as oa, N as ta, Q as ra, R as ca, Y as b1 } from "./index-DP61HK9f.js";
1
+ import { V as xe, B as al, S as S1, C as L1, P as T1, W as V1, a as P1, A as O1, b as R1, M as s1, X as H1, G as U1, c as cl, d as j1, e as r2, f as N1, D as wl, H as K1, g as i1, h as y2, i as x2, j as Al, E as kl, L as J1, U as y1, k as E2, l as ul, m as dl, O as pl, n as W1, o as G1, p as X1, q as n1, r as q1, F as Y1, s as Z1, t as Q1, v as ea, w as la, x as aa, y as sa, z as g1, I as Z2, J as ia, K as na, T as oa, N as ta, Q as ra, R as ca, Y as b1 } from "./index-Brhs8-ho.js";
2
2
  import { ref as Q, watch as Ue, createElementBlock as be, openBlock as he, createBlock as Ie, computed as b2, onMounted as w1, onUnmounted as ua, Fragment as Se, renderList as Re, createElementVNode as B, createCommentVNode as Je, toDisplayString as Ce, resolveComponent as Ee, createVNode as ie, defineComponent as C2, normalizeStyle as Dl, normalizeClass as o1, nextTick as t1, onBeforeUnmount as da, withDirectives as A2, unref as Oe, withCtx as we, isRef as il, vModelRadio as nl, vShow as ol, createTextVNode as Be, reactive as Il, resolveDynamicComponent as sl, renderSlot as hl, createSlots as pa, mergeProps as ha, withModifiers as Q2 } from "vue";
3
3
  import { bB as A1, b as F2, s as l2, p as qe, c as i, E as Xe, g as _2, e as fa, u as k1, bx as _1, by as r1, bw as c1 } from "./menu-Bj0eSg6d.js";
4
- import { d as va, e as e2, f as ma, s as a2, h as C1, a as u1, i as ya, j as ga, b as ba } from "./index-D6bQX-A7.js";
5
- import { F as d1, z as wa, I as d2, A as Aa, B as We, C as S2, D as u2, E as D2, G as _l, g as k2, H as ka, J as _a, K as Ca, L as za, M as Ma, N as p1, O as xa, P as Da, Q as Fa } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CB9HaWen.js";
6
- import { O as Ba } from "./OrbitControls-BOEvop3S.js";
4
+ import { d as va, e as e2, f as ma, s as a2, h as C1, a as u1, i as ya, j as ga, b as ba } from "./index-DK4Pnepl.js";
5
+ import { F as d1, z as wa, I as d2, A as Aa, B as We, C as S2, D as u2, E as D2, G as _l, g as k2, H as ka, J as _a, K as Ca, L as za, M as Ma, N as p1, O as xa, P as Da, Q as Fa } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DKQiCWlb.js";
6
+ import { O as Ba } from "./OrbitControls-wZBl7uX5.js";
7
7
  import { u as vl } from "./modelComp-CUCWitDo.js";
8
8
  import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  import { u as El } from "./login-Ct7wC1jE.js";
10
10
  import { E as g2 } from "./index-CL7Kg1Kn.js";
11
- import { s as $a, a as Ia } from "./index-CEgLrX1K.js";
11
+ import { s as $a, a as Ia } from "./index-zs2vsQkw.js";
12
12
  import Ea from "./index-CZtXRS3l.js";
13
13
  const Sa = A1("formComp", {
14
14
  state: () => ({
@@ -1,21 +1,21 @@
1
1
  import { resolveComponent as I, createBlock as Q, openBlock as _, withCtx as y, createVNode as c, createElementVNode as $, toDisplayString as me, ref as v, onMounted as at, watch as Y, createElementBlock as A, Fragment as Ae, renderList as Xe, createCommentVNode as K, normalizeStyle as nt, defineComponent as ot, computed as He, resolveDirective as lt, withDirectives as Fe, unref as u, createTextVNode as ue, renderSlot as Pe, vShow as Ne, resolveDynamicComponent as st } from "vue";
2
- import { m as Je, a as We, b as qe } from "./index-BEOtbIkr.js";
3
- import { c as it, b as rt } from "./index.vue_vue_type_style_index_0_scoped_f6ebd097_lang-CwddZPfc.js";
2
+ import { m as Je, a as We, b as qe } from "./index-ItBFv241.js";
3
+ import { c as it, b as rt } from "./index.vue_vue_type_style_index_0_scoped_f6ebd097_lang-BJ7HZIYs.js";
4
4
  import { _ as ge } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import { _ as ct, s as ve, o as ut, c as dt, a as mt, b as pt, d as ht, g as ft, e as yt, f as gt, h as _t, i as Ct, j as wt } from "./index.vue_vue_type_style_index_0_scoped_264dc673_lang-B5Qp2wHm.js";
5
+ import { _ as ct, s as ve, o as ut, c as dt, a as mt, b as pt, d as ht, g as ft, e as yt, f as gt, h as _t, i as Ct, j as wt } from "./index.vue_vue_type_style_index_0_scoped_264dc673_lang-0YnLPSwu.js";
6
6
  import { u as vt } from "./login-Ct7wC1jE.js";
7
7
  import { p as le, s as de, u as $e, c as ye, b as ce, d as kt, g as Bt, e as bt } from "./menu-Bj0eSg6d.js";
8
8
  import { S as xe } from "./index-BHtNKL1L.js";
9
9
  import { u as Ve } from "./modelComp-CUCWitDo.js";
10
- import { u as Tt, o as Dt } from "./index-18I80P2C.js";
10
+ import { u as Tt, o as Dt } from "./index-C9V70RX-.js";
11
11
  import { a as St } from "./array-CrFbJF1B.js";
12
- import { u as Qe } from "./index-DP61HK9f.js";
13
- import { g as Be, a as Ye, l as Ze } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CB9HaWen.js";
12
+ import { u as Qe } from "./index-Brhs8-ho.js";
13
+ import { g as Be, a as Ye, l as Ze } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DKQiCWlb.js";
14
14
  import "vue-router";
15
- import Ft from "./index-C-gEdNr0.js";
16
- import ze from "./threeModel-DiIrep6b.js";
17
- import { d as Ge, _ as xt, a as ke, s as Mt } from "./index-D6bQX-A7.js";
18
- import { _ as At } from "./index.vue_vue_type_script_setup_true_lang-DraLJN1H.js";
15
+ import Ft from "./index-DHoqIUK7.js";
16
+ import ze from "./threeModel-CcsboCSp.js";
17
+ import { d as Ge, _ as xt, a as ke, s as Mt } from "./index-DK4Pnepl.js";
18
+ import { _ as At } from "./index.vue_vue_type_script_setup_true_lang-B9iSnLp7.js";
19
19
  const Pt = { class: "horizontal-f-18" };
20
20
  function $t(S, te, e, T, R, J) {
21
21
  const n = I("svg-icon"), X = I("ssMenu");