@wandelbots/wandelbots-js-react-components 6.3.0 → 6.4.0-pr.chore-public-names.673.cb7ee37

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 (196) hide show
  1. package/README.md +255 -122
  2. package/dist/3d.cjs +1 -1
  3. package/dist/3d.d.ts +7 -3
  4. package/dist/3d.js +20 -20
  5. package/dist/CurrentPoseBar/index.cjs +1 -0
  6. package/dist/CurrentPoseBar/index.d.ts +2 -0
  7. package/dist/CurrentPoseBar/index.js +5 -0
  8. package/dist/JoggingButtons/index.cjs +1 -0
  9. package/dist/JoggingButtons/index.d.ts +3 -0
  10. package/dist/JoggingButtons/index.js +5 -0
  11. package/dist/JoggingGizmo/index.cjs +1 -0
  12. package/dist/JoggingGizmo/index.d.ts +5 -0
  13. package/dist/JoggingGizmo/index.js +6 -0
  14. package/dist/JoggingJointSlider/index.cjs +1 -0
  15. package/dist/JoggingJointSlider/index.d.ts +2 -0
  16. package/dist/JoggingJointSlider/index.js +5 -0
  17. package/dist/SafetyBar/index.cjs +1 -1
  18. package/dist/SafetyBar/index.js +1 -1
  19. package/dist/chunks/ConnectedMotionGroup-D9JJSyXB.js +1822 -0
  20. package/dist/chunks/ConnectedMotionGroup-ir7Vf690.cjs +3 -0
  21. package/dist/chunks/CurrentPoseBar-Cbz4AO36.cjs +1 -0
  22. package/dist/chunks/CurrentPoseBar-CpwvWpEY.js +619 -0
  23. package/dist/chunks/JoggingButtons-i8FdMpCx.js +108 -0
  24. package/dist/chunks/JoggingButtons-paQCBXf4.cjs +1 -0
  25. package/dist/chunks/JoggingGizmoOrientation-CKZeLcMp.js +893 -0
  26. package/dist/chunks/JoggingGizmoOrientation-EPtBeAun.cjs +1 -0
  27. package/dist/chunks/JoggingJointSlider-DQhJOmcc.js +378 -0
  28. package/dist/chunks/JoggingJointSlider-YcEBMgF1.cjs +1 -0
  29. package/dist/chunks/Pose3-Ci1bxEvz.js +1373 -0
  30. package/dist/chunks/Pose3-DwMOSTKO.cjs +1 -0
  31. package/dist/chunks/SafetyBar-Be1c6Vz9.cjs +1 -0
  32. package/dist/chunks/{SafetyBar-Cy9DiXp9.js → SafetyBar-WXLP3Yi0.js} +34 -32
  33. package/dist/chunks/{externalizeComponent-EDymnaGR.js → externalizeComponent-7OVHUIUh.js} +84 -134
  34. package/dist/chunks/externalizeComponent-B0n_tR3v.cjs +2 -0
  35. package/dist/chunks/holdSafety-Cbej6-Kc.js +62 -0
  36. package/dist/chunks/holdSafety-TeMXlYQe.cjs +1 -0
  37. package/dist/chunks/joggingColors-BKRoSGQu.js +132 -0
  38. package/dist/chunks/joggingColors-BkPm75Hr.cjs +1 -0
  39. package/dist/chunks/json-3cqBD7UQ.js +18 -0
  40. package/dist/chunks/json-Bd6uGfgP.cjs +1 -0
  41. package/dist/chunks/loadRobotSession-Bt1-Brjp.js +3761 -0
  42. package/dist/chunks/loadRobotSession-DHVuK_pj.cjs +1 -0
  43. package/dist/chunks/novaConnection-BTSIgWd1.cjs +1 -0
  44. package/dist/chunks/novaConnection-J6_ohIQ0.js +14 -0
  45. package/dist/chunks/poseText-BXUaQWnK.cjs +1 -0
  46. package/dist/chunks/poseText-CtdXIeT_.js +41 -0
  47. package/dist/chunks/useSmoothedMotionState-C_Vo0py0.js +202 -0
  48. package/dist/chunks/useSmoothedMotionState-Ce9NjwBu.cjs +1 -0
  49. package/dist/components/AppHeader.d.ts +1 -1
  50. package/dist/components/VelocitySlider.d.ts +6 -1
  51. package/dist/components/currentPoseBar/CurrentPoseBar.d.ts +48 -0
  52. package/dist/components/currentPoseBar/OrientationFormatPopover.d.ts +19 -0
  53. package/dist/components/currentPoseBar/StreamStatus.d.ts +10 -0
  54. package/dist/components/currentPoseBar/orientation.d.ts +34 -0
  55. package/dist/components/currentPoseBar/poseValues.d.ts +15 -0
  56. package/dist/components/jogging/JoggingButtons.d.ts +18 -0
  57. package/dist/components/jogging/JoggingCartesianAxisControl.d.ts +8 -2
  58. package/dist/components/jogging/JoggingCartesianTab.d.ts +3 -0
  59. package/dist/components/jogging/JoggingJointTab.d.ts +4 -1
  60. package/dist/components/jogging/JoggingJointValueControl.d.ts +7 -1
  61. package/dist/components/jogging/JoggingPanel.d.ts +6 -3
  62. package/dist/components/jogging/JoggingRefusedError.d.ts +24 -0
  63. package/dist/components/jogging/JoggingStore.d.ts +382 -40
  64. package/dist/components/jogging/gizmo/JoggingGizmo.d.ts +53 -0
  65. package/dist/components/jogging/gizmo/JoggingGizmoOrientation.d.ts +26 -0
  66. package/dist/components/jogging/gizmo/RotationHandles.d.ts +7 -0
  67. package/dist/components/jogging/gizmo/RotationScene.d.ts +6 -0
  68. package/dist/components/jogging/gizmo/TranslationHandles.d.ts +6 -0
  69. package/dist/components/jogging/gizmo/TranslationScene.d.ts +6 -0
  70. package/dist/components/jogging/gizmo/arcGrabAreas.d.ts +58 -0
  71. package/dist/components/jogging/gizmo/arcs.d.ts +54 -0
  72. package/dist/components/jogging/gizmo/arrows.d.ts +63 -0
  73. package/dist/components/jogging/gizmo/gizmoShared.d.ts +135 -0
  74. package/dist/components/jogging/gizmo/gizmoView.d.ts +42 -0
  75. package/dist/components/jogging/gizmo/useGizmoTurn.d.ts +11 -0
  76. package/dist/components/jogging/holdSafety.d.ts +82 -0
  77. package/dist/components/jogging/jogError.d.ts +9 -0
  78. package/dist/components/jogging/jogHandle.d.ts +23 -0
  79. package/dist/components/jogging/joggingColors.d.ts +30 -0
  80. package/dist/components/jogging/joggingVelocity.d.ts +21 -0
  81. package/dist/components/jogging/joint/JoggingJointSlider.d.ts +56 -0
  82. package/dist/components/jogging/joint/JointSliderTrack.d.ts +27 -0
  83. package/dist/components/jogging/joint/jointJog.d.ts +55 -0
  84. package/dist/components/jogging/joint/useJointJogHold.d.ts +43 -0
  85. package/dist/components/jogging/useHold.d.ts +42 -0
  86. package/dist/components/jogging/useJogControls.d.ts +44 -0
  87. package/dist/components/robotControl/PanelSelect.d.ts +13 -0
  88. package/dist/components/robotControl/SmallSelect.d.ts +15 -0
  89. package/dist/components/robotControl/poseText.d.ts +43 -0
  90. package/dist/components/robotControl/robotControlTypes.d.ts +36 -0
  91. package/dist/components/robotControl/useCopyText.d.ts +12 -0
  92. package/dist/components/robotControl/useEveryFrame.d.ts +6 -0
  93. package/dist/components/robots/GenericRobot.d.ts +2 -1
  94. package/dist/components/robots/LinearAxis.d.ts +1 -1
  95. package/dist/components/robots/LinearAxisAnimator.d.ts +11 -2
  96. package/dist/components/robots/Robot.d.ts +1 -1
  97. package/dist/components/robots/robotModelLogic.d.ts +11 -9
  98. package/dist/components/utils/converters.d.ts +0 -2
  99. package/dist/components/utils/hooks.d.ts +1 -6
  100. package/dist/components/utils/json.d.ts +4 -0
  101. package/dist/components/utils/useSmoothedMotionState.d.ts +11 -2
  102. package/dist/components/utils/useWebGLRenderer.d.ts +32 -0
  103. package/dist/components/utils/webglSupport.d.ts +11 -0
  104. package/dist/core.cjs +1 -1
  105. package/dist/core.d.ts +28 -20
  106. package/dist/core.js +57 -54
  107. package/dist/index.cjs +1 -1
  108. package/dist/index.js +73 -70
  109. package/dist/lib/ConnectedMotionGroup.d.ts +9 -8
  110. package/dist/lib/ControllerStateStream.d.ts +125 -0
  111. package/dist/lib/JoggerConnection.d.ts +172 -27
  112. package/dist/lib/MotionStreamConnection.d.ts +16 -6
  113. package/dist/lib/Pose3.d.ts +22 -0
  114. package/dist/lib/PoseTransformer.d.ts +44 -0
  115. package/dist/lib/TrajectoryExecutionStore.d.ts +260 -0
  116. package/dist/lib/connectionLogger.d.ts +9 -0
  117. package/dist/lib/controllerStateSource.d.ts +38 -0
  118. package/dist/lib/incrementalCartesianMotion.d.ts +40 -0
  119. package/dist/lib/motionGroupModelResources.d.ts +1 -0
  120. package/dist/lib/motionStateUpdate.d.ts +44 -0
  121. package/dist/lib/nats/natsControllerStateSource.d.ts +27 -0
  122. package/dist/lib/novaConnection.d.ts +23 -0
  123. package/dist/lib/planErrorTranslation.d.ts +8 -0
  124. package/dist/lib/poseMath.d.ts +51 -0
  125. package/dist/lib/robotSession/RobotActivation.d.ts +90 -0
  126. package/dist/lib/robotSession/RobotDescription.d.ts +84 -0
  127. package/dist/lib/robotSession/RobotLiveState.d.ts +65 -0
  128. package/dist/lib/robotSession/RobotLoadProgress.d.ts +72 -0
  129. package/dist/lib/robotSession/RobotSafety.d.ts +59 -0
  130. package/dist/lib/robotSession/RobotSession.d.ts +117 -0
  131. package/dist/lib/robotSession/RobotTargetPose.d.ts +116 -0
  132. package/dist/lib/robotSession/loadRobotResources.d.ts +46 -0
  133. package/dist/lib/robotSession/loadRobotSession.d.ts +81 -0
  134. package/dist/lib/robotSession/robotPose.d.ts +27 -0
  135. package/dist/lib/rotation.d.ts +12 -0
  136. package/dist/nats.cjs +1 -0
  137. package/dist/nats.d.ts +4 -0
  138. package/dist/nats.js +131 -0
  139. package/dist/session.cjs +1 -0
  140. package/dist/session.d.ts +22 -0
  141. package/dist/session.js +33 -0
  142. package/package.json +68 -66
  143. package/dist/Setup.d.ts +0 -11
  144. package/dist/chunks/MotionGroupVisualizer-DshWR1wY.js +0 -1653
  145. package/dist/chunks/MotionGroupVisualizer-eD7yFEcF.cjs +0 -1
  146. package/dist/chunks/SafetyBar-DPrv_OQA.cjs +0 -1
  147. package/dist/chunks/externalizeComponent-OO4jcrz5.cjs +0 -2
  148. package/dist/chunks/theming-DfSy4-Ic.cjs +0 -4
  149. package/dist/chunks/theming-mF9Rt8SS.js +0 -5542
  150. package/dist/chunks/useSmoothedMotionState-DyDgSVYX.js +0 -478
  151. package/dist/chunks/useSmoothedMotionState-VYxEIyfr.cjs +0 -1
  152. package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts +0 -11
  153. package/dist/components/AdornedTextField.d.ts +0 -7
  154. package/dist/components/CopyableText.d.ts +0 -6
  155. package/dist/components/CycleTimer/CycleTimer.d.ts +0 -3
  156. package/dist/components/CycleTimer/DefaultVariant.d.ts +0 -9
  157. package/dist/components/CycleTimer/SmallVariant.d.ts +0 -10
  158. package/dist/components/CycleTimer/index.d.ts +0 -27
  159. package/dist/components/CycleTimer/types.d.ts +0 -49
  160. package/dist/components/CycleTimer/useAnimations.d.ts +0 -14
  161. package/dist/components/CycleTimer/useTimerLogic.d.ts +0 -24
  162. package/dist/components/CycleTimer/utils.d.ts +0 -21
  163. package/dist/components/CycleTimer.d.ts +0 -3
  164. package/dist/components/DataGrid.d.ts +0 -66
  165. package/dist/components/LogPanel.d.ts +0 -38
  166. package/dist/components/LogStore.d.ts +0 -12
  167. package/dist/components/LogViewer.d.ts +0 -46
  168. package/dist/components/ProgramControl.d.ts +0 -55
  169. package/dist/components/ProgramStateIndicator.d.ts +0 -26
  170. package/dist/components/RobotCard.d.ts +0 -98
  171. package/dist/components/RobotListItem.d.ts +0 -34
  172. package/dist/components/RobotSetupReadinessIndicator.d.ts +0 -37
  173. package/dist/components/SelectableFab.d.ts +0 -7
  174. package/dist/components/TabBar.d.ts +0 -45
  175. package/dist/components/ThemeSelect.d.ts +0 -6
  176. package/dist/components/Timer/Timer.d.ts +0 -3
  177. package/dist/components/Timer/TimerDefaultVariant.d.ts +0 -9
  178. package/dist/components/Timer/TimerSmallVariant.d.ts +0 -10
  179. package/dist/components/Timer/index.d.ts +0 -19
  180. package/dist/components/Timer/types.d.ts +0 -35
  181. package/dist/components/Timer/useTimerAnimations.d.ts +0 -10
  182. package/dist/components/Timer/useTimerLogic.d.ts +0 -19
  183. package/dist/components/Timer/utils.d.ts +0 -17
  184. package/dist/components/Timer.d.ts +0 -3
  185. package/dist/components/TransparentOverlay.d.ts +0 -4
  186. package/dist/components/jogging/JoggingFreedriveTab.d.ts +0 -1
  187. package/dist/components/jogging/PoseCartesianValues.d.ts +0 -9
  188. package/dist/components/jogging/PoseJointValues.d.ts +0 -8
  189. package/dist/components/robots/AxisConfig.d.ts +0 -2
  190. package/dist/components/robots/manufacturerHomePositions.d.ts +0 -20
  191. package/dist/icons/DropdownArrowIcon.d.ts +0 -2
  192. package/dist/icons/index.d.ts +0 -12
  193. package/dist/lib/novaCompat.d.ts +0 -16
  194. package/dist/themes/createDarkTheme.d.ts +0 -7
  195. package/dist/themes/themeTypes.d.ts +0 -40
  196. package/dist/themes/theming.d.ts +0 -24
@@ -0,0 +1 @@
1
+ "use strict";const i=require("react/jsx-runtime"),d=require("three"),P=require("three-stdlib"),S=require("@react-three/drei"),m=require("react"),L=require("@wandelbots/nova-js/v2"),v=require("./externalizeComponent-B0n_tR3v.cjs"),V=require("./useSmoothedMotionState-Ce9NjwBu.cjs"),D=require("react-error-boundary"),U=require("@react-three/fiber"),ie=require("./novaConnection-BTSIgWd1.cjs");function se(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const g=se(d);function ae(e){switch(e.shape_type){case"convex_hull":return new P.ConvexGeometry(e.vertices.map(t=>new g.Vector3(t[0]/1e3,t[1]/1e3,t[2]/1e3)));case"box":return new g.BoxGeometry(e.size_x/1e3,e.size_y/1e3,e.size_z/1e3);case"sphere":return new g.SphereGeometry(e.radius/1e3);case"capsule":return new g.CapsuleGeometry(e.radius/1e3,e.cylinder_height/1e3);case"cylinder":return new g.CylinderGeometry(e.radius/1e3,e.radius/1e3,e.height/1e3);case"rectangle":return new g.BoxGeometry(e.size_x/1e3,e.size_y/1e3,0);default:return console.warn(`${e.shape_type} is not supported`),new g.BufferGeometry}}function ce({name:e,collider:n,children:t}){var a,l;const o=((a=n.pose)==null?void 0:a.position)??[0,0,0],r=((l=n.pose)==null?void 0:l.orientation)??[0,0,0];return n.margin&&console.warn(`${e} margin is not supported`),i.jsx("mesh",{name:e,position:new g.Vector3(o[0],o[1],o[2]).divideScalar(1e3),rotation:new g.Euler(r[0],r[1],r[2],"XYZ"),geometry:ae(n.shape),children:t})}function le({name:e,colliders:n,meshChildrenProvider:t,...o}){return i.jsx("group",{name:e,...o,children:Object.entries(n).map(([r,a])=>i.jsx(ce,{name:r,collider:a,children:t(r,a)},r))})}function ue({scene:e,meshChildrenProvider:n}){const t=e.colliders;return i.jsx("group",{children:t&&i.jsx(le,{meshChildrenProvider:n,colliders:t})})}function fe(e){const n=(e==null?void 0:e.position)??[],t=(e==null?void 0:e.orientation)??[],o=new d.Vector3(t[0]??0,t[1]??0,t[2]??0),r=o.length(),a=r>0?new d.Quaternion().setFromAxisAngle(o.normalize(),r):new d.Quaternion;return new d.Matrix4().compose(new d.Vector3(n[0]??0,n[1]??0,n[2]??0).divideScalar(1e3),a,new d.Vector3(1,1,1))}function pe(e,n=null,t=[]){const o=fe(n);return e.map((r,a)=>{const l=o.clone(),s=(r.reverse_rotation_direction?-1:1)*(t[a]??0),c=r.type==="PRISMATIC_JOINT",u=(r.theta??0)+(c?0:s),p=(r.d??0)+(c?s:0);return o.multiply(new d.Matrix4().makeRotationZ(u)).multiply(new d.Matrix4().makeTranslation((r.a??0)/1e3,0,p/1e3)).multiply(new d.Matrix4().makeRotationX(r.alpha??0)),l})}const G="#ff4b4b",Q="#2fa8ff",me="#8a8d9e",he=96,de=.15,xe=new g.Vector3(0,1,0),ge=.2,ye=2;function we(e){const{lower_limit:n,upper_limit:t}=e??{};return typeof n!="number"||typeof t!="number"||!Number.isFinite(n)||!Number.isFinite(t)||!(n<t)?null:{lower_limit:n,upper_limit:t}}function k({base:e,direction:n,size:t,color:o,opacity:r}){const a=new g.Quaternion().setFromUnitVectors(xe,n.clone().normalize()),l=e.clone().addScaledVector(n.clone().normalize(),t/2);return i.jsxs("mesh",{position:l,quaternion:a,renderOrder:10,children:[i.jsx("coneGeometry",{args:[t*.35,t,16]}),i.jsx("meshBasicMaterial",{color:o,depthTest:!1,transparent:!0,opacity:r})]})}function I({points:e,color:n,width:t,opacity:o}){return i.jsx(S.Line,{points:e,color:n,lineWidth:t,depthTest:!1,transparent:!0,opacity:o,renderOrder:10})}function q(e,n){const t=[...e];let o=n;for(;t.length>1;){const r=t[t.length-1],a=t[t.length-2],l=r.distanceTo(a);if(l>o)return t[t.length-1]=r.clone().lerp(a,o/l),t;o-=l,t.pop()}return t}function Re(e,n,t,o){const r=t*e,a=t*n,l=Math.abs(a-r),s=Math.max(2,Math.ceil(l/(2*Math.PI)*he));return Array.from({length:s+1},(c,u)=>{const p=r+(a-r)*u/s,f=l*u/s/(2*Math.PI),R=o*(1+de*f);return new g.Vector3(Math.cos(p)*R,Math.sin(p)*R,0)})}function je(e,n,t,o){const r=e.theta??0,a=e.d??0,l=e.type==="PRISMATIC_JOINT",s=e.reverse_rotation_direction?-1:1,{lower_limit:c,upper_limit:u}=n;return m.useMemo(()=>{const p=new g.Matrix4().makeRotationZ(r).multiply(new g.Matrix4().makeTranslation(0,0,l?a/1e3:0)),f=(b,T,_)=>new g.Vector3(b,T,_).applyMatrix4(p),R=new g.Vector3().applyMatrix4(p),j=f(0,0,t),x=(l?[f(t*.25,0,s*c/1e3),f(t*.25,0,s*u/1e3)]:Re(c,u,s,t*.6)).map(b=>l?b:b.applyMatrix4(p)),h=f(l?t*.25:t*.6,0,0),M=x.slice(1).reduce((b,T,_)=>b+T.distanceTo(x[_]),0),y=Math.min(o,M/3),w=q(q(x,y).reverse(),y).reverse();return{axisPoints:[R,j],axisTip:j,origin:R,restPoints:[R,h],range:x,limitPoints:w,rangeStart:w[0],rangeEnd:w[w.length-1]}},[r,a,l,s,t,c,u,o])}function Me({frame:e,dh:n,limit:t,size:o,emphasis:r}){const a=r==="highlighted"?ye:1,l=r==="dimmed"?ge:1,s=o*.2*(r==="highlighted"?1.4:1),c=2*a,{axisPoints:u,axisTip:p,origin:f,restPoints:R,range:j,limitPoints:x,rangeStart:h,rangeEnd:M}=je(n,t,o,s),{position:y,quaternion:w}=m.useMemo(()=>{const b=new g.Vector3,T=new g.Quaternion;return e.decompose(b,T,new g.Vector3),{position:b,quaternion:T}},[e]);return i.jsxs("group",{position:y,quaternion:w,children:[i.jsx(I,{points:u,color:Q,width:c,opacity:l}),i.jsx(k,{base:p,direction:p.clone().sub(f),size:s,color:Q,opacity:l}),i.jsx(I,{points:R,color:me,width:1.5*a,opacity:l}),i.jsx(I,{points:x,color:G,width:c,opacity:l}),i.jsx(k,{base:h,direction:j[0].clone().sub(h),size:h.distanceTo(j[0]),color:G,opacity:l}),i.jsx(k,{base:M,direction:j[j.length-1].clone().sub(M),size:M.distanceTo(j[j.length-1]),color:G,opacity:l})]})}function be({dhParameters:e,chainOffset:n=null,limits:t,jointPositions:o,size:r=.15,highlightedJoint:a=null}){const l=m.useMemo(()=>pe(e,n,o),[e,n,o]);return i.jsx("group",{children:l.map((s,c)=>{const u=we(t[c]);return u?i.jsx(Me,{frame:s,dh:e[c],limit:u,size:r,emphasis:a===null?"normal":a===c?"highlighted":"dimmed"},c):null})})}function Se(){return i.jsx(S.Environment,{frames:1,children:i.jsx(_e,{})})}const Te=[2,0,2,0,2,0,2,0];function _e({positions:e=Te}){return i.jsxs(i.Fragment,{children:[i.jsx(S.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),i.jsx("group",{rotation:[0,.5,0],children:i.jsx("group",{children:e.map((n,t)=>i.jsx(S.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[n,4,t*4],scale:[3,1,1]},t))})}),i.jsx(S.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),i.jsx(S.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),i.jsx(S.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),i.jsx(S.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),i.jsx(S.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function Oe(e){const n=e.length(),t=new g.Quaternion;if(n>1e-6){const o=e.clone().normalize();t.setFromAxisAngle(o,n)}return t}function ve(e){if(!e||e.length===0)return 5;const o=e.reduce((r,a)=>r+Math.abs(a.a??0)/1e3+Math.abs(a.d??0)/1e3,0)*2;return!Number.isFinite(o)||o<=0?5:o}function Ve(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const n=new g.Vector3(e[0].x,e[0].y,e[0].z),t=new g.Vector3(e[1].x,e[1].y,e[1].z),o=new g.Vector3(e[2].x,e[2].y,e[2].z),r=new g.Vector3().subVectors(t,n),a=new g.Vector3().subVectors(o,n),l=new g.Vector3().crossVectors(r,a).normalize();for(let s=3;s<e.length;s++){const c=new g.Vector3(e[s].x,e[s].y,e[s].z),u=new g.Vector3().subVectors(c,n),p=l.dot(u);if(Math.abs(p)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:l}}const J={attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0};function Ee({safetyZones:e,dhParameters:n,...t}){const o=m.useMemo(()=>ve(n??[]),[n]),r=(l,s)=>{var R,j;if(!((R=s==null?void 0:s.pose)!=null&&R.position)||!((j=s==null?void 0:s.pose)!=null&&j.orientation))return null;const c=new g.Vector3(s.pose.position[0]/1e3,s.pose.position[1]/1e3,s.pose.position[2]/1e3),u=new g.Vector3(s.pose.orientation[0],s.pose.orientation[1],s.pose.orientation[2]);let p;const f=s.shape.shape_type==="plane"?{...J,side:g.DoubleSide}:{...J,side:g.FrontSide};switch(s.shape.shape_type){case"plane":p=i.jsx("planeGeometry",{args:[o,o]});break;case"sphere":{const x=(s==null?void 0:s.shape).radius/1e3;p=i.jsx("sphereGeometry",{args:[x]});break}case"capsule":{const x=(s==null?void 0:s.shape).radius/1e3,h=(s==null?void 0:s.shape).cylinder_height/1e3;p=i.jsx("capsuleGeometry",{args:[x,h]});break}case"convex_hull":{const x=(s==null?void 0:s.shape).vertices.map(M=>new g.Vector3(M[0]/1e3,M[1]/1e3,M[2]/1e3)),h=Ve(x);if(h.isCoplanar&&h.normal){const y=new g.Vector3().addVectors(x[0],h.normal.multiplyScalar(1e-4));x.push(y)}try{p=i.jsx("primitive",{object:new P.ConvexGeometry(x),attach:"geometry"})}catch(M){return console.log("Error creating ConvexGeometry:",M),null}break}case"rectangular_capsule":{const x=s.shape,h=x.radius/1e3,M=x.sphere_center_distance_x/1e3,y=x.sphere_center_distance_y/1e3,w=h*2;p=i.jsx("primitive",{object:new P.RoundedBoxGeometry(M,y,w,2,h),attach:"geometry"});break}default:console.warn("Unsupported safety zone shape type:",s.shape.shape_type),p=null}return i.jsxs("mesh",{renderOrder:l,position:c,quaternion:Oe(u),children:[p,i.jsx("meshStandardMaterial",{...f,polygonOffsetFactor:-l})]},`safety-zone-${s.shape.shape_type}-${l}`)},a=m.useMemo(()=>Object.values(e??{}).map((l,s)=>r(s,l)),[e,o]);return i.jsx("group",{...t,children:a})}function Le({trajectory:e,...n}){const t=(e==null?void 0:e.map(o=>{if(o.position&&o.position.length>=3){const[r,a,l]=o.position;if(Number.isFinite(r)&&Number.isFinite(a)&&Number.isFinite(l))return new g.Vector3(r/1e3,l/1e3,-a/1e3)}return null}).filter(o=>o!==null))||[];return i.jsx("group",{...n,children:t.length>0&&i.jsx(S.Line,{points:t,lineWidth:3,polygonOffset:!0,polygonOffsetFactor:10,polygonOffsetUnits:10})})}const A=new Map;async function E(e,n){const t=n||"";if(!t)throw new Error(`Cannot download the model "${e}": no NOVA instance. Give defaultGetModel the URL of the instance or a NOVA client, or give the component its instanceUrl or getModel.`);const o=`${Ae(t)} ${e}`,r=A.get(o);if(r)return r;const a=(async()=>{const l=ie.createNovaClient(t);try{const s=await l.api.motionGroupModels.getMotionGroupGlbModel(e,{responseType:"blob"});return URL.createObjectURL(s)}catch(s){throw console.error("Failed to fetch model:",s),s}})();return A.set(o,a),a.catch(()=>{A.get(o)===a&&A.delete(o)}),a}function Ae(e){return typeof e=="string"?e:e.config.instanceUrl}function $(e){function n(t){return t.children.length===0?[t]:[t,...t.children.flatMap(o=>n(o))]}return n(e).filter(t=>H(t))}function W(e){return e.name.endsWith("_FLG")}function H(e){return/_J[0-9]+$/.test(e.name)}function Ce(e,n){let t;function o(r){if(W(r)){if(t)throw Error(`Found multiple flange groups in robot model ${n}; first ${t.name} then ${r.name}. Only one _FLG group is allowed.`);t=r}H(r),r.children.map(o)}if(o(e.scene),!t)throw Error(`No flange group found in robot model ${n}. Flange must be identified with a name ending in _FLG.`);return{gltf:e}}const B=m.forwardRef(function({rapidlyChangingMotionState:n,dhParameters:t,chainOffsetPosition:o,chainOffsetQuaternion:r,onTranslationChanged:a,children:l},s){const c=m.useRef(null),u=m.useRef([]),p=m.useRef(n.joint_position.filter(y=>y!==void 0)),{invalidate:f}=U.useThree(),R=m.useRef(n);R.current=n;function j(y){c.current=y,y&&x()}function x(){c.current&&(u.current=$(c.current),h(),f())}m.useImperativeHandle(s,()=>({recollectJoints:x}));function h(){const y=p.current;if(a)a(u.current,y);else for(const[w,b]of u.current.entries()){const _=t[w].reverse_rotation_direction?-1:1;b.position.y=_*(y[w]||0)/1e3}}function M(y){p.current=y.joint_position.filter(w=>w!==void 0),h(),f()}return V.useAutorun(()=>{M(R.current)}),i.jsx("group",{ref:j,position:o,quaternion:r,children:l})});function X({rapidlyChangingMotionState:e,dhParameters:n,...t}){const o=new d.Matrix4,r=m.useRef(null),a=m.useRef(null);function l(u){const p=new d.Matrix4;for(let x=0;x<n.length;x++){const h=n[x],M=u[x]??0,y=new d.Matrix4().makeRotationY(h.theta).multiply(new d.Matrix4().makeTranslation(h.a/1e3,(h.d+M*(h.reverse_rotation_direction?-1:1))/1e3,0)).multiply(new d.Matrix4().makeRotationX(h.alpha));p.multiply(y)}const f=new d.Vector3,R=new d.Quaternion,j=new d.Vector3;return p.decompose(f,R,j),f}const s=l(e.joint_position);function c(u,p){o.identity();let f=new d.Vector3;for(let h=0;h<n.length;h++){const M=p[h]??0,y=n[h],w=new d.Matrix4().makeRotationY(y.theta).multiply(new d.Matrix4().makeTranslation(y.a/1e3,(y.d+M*(y.reverse_rotation_direction?-1:1))/1e3,0)).multiply(new d.Matrix4().makeRotationX(y.alpha));o.multiply(w)}const R=new d.Vector3,j=new d.Quaternion,x=new d.Vector3;if(o.decompose(R,j,x),f=R,r.current&&r.current.position.set(f.x,f.y,f.z),a.current){const h=a.current.geometry;h!=null&&h.setPositions&&h.setPositions([0,0,0,f.x,f.y,f.z])}}return i.jsx(B,{rapidlyChangingMotionState:e,dhParameters:n,onTranslationChanged:c,children:i.jsxs("group",{...t,name:"Scene",children:[i.jsxs("mesh",{name:"Base",position:[0,0,0],children:[i.jsx("sphereGeometry",{args:[.02,32,32]}),i.jsx("meshStandardMaterial",{color:"green",depthTest:!0})]}),i.jsx(S.Line,{ref:a,points:[new d.Vector3(0,0,0),s],color:"White",lineWidth:5}),i.jsxs("mesh",{ref:r,name:"TCP",position:s,children:[i.jsx("sphereGeometry",{args:[.025,32,32]}),i.jsx("meshStandardMaterial",{color:"red",depthTest:!0})]})]})})}const Ge=console.warn;function Y(){return m.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&Ge(e)}},[]),null}function ke(e){return e.type==="Mesh"}function Ie({url:e,flangeRef:n,postModelRender:t,...o}){const r=S.useGLTF(e),l=Ce(r,"robot.glb").gltf;m.useEffect(()=>{t==null||t()},[e,t]);function s(c){try{return ke(c)?c.geometry?i.jsx("mesh",{name:c.name,geometry:c.geometry,material:c.material,position:c.position,rotation:c.rotation},c.uuid):i.jsx("group",{name:c.name,position:c.position,rotation:c.rotation},c.uuid):i.jsx("group",{name:c.name,position:c.position,rotation:c.rotation,ref:W(c)?n:void 0,children:c.children.map(s)},c.uuid)}catch(u){return console.warn("Error rendering node",c.name,u),null}}return i.jsx("group",{...o,dispose:null,children:s(l.scene)})}function Z({modelURL:e,flangeRef:n,postModelRender:t,...o}){const[r,a]=m.useState(null);return m.useEffect(()=>{let l=!1;return(async()=>{try{const c=typeof e=="string"?e:await e;l||a(u=>u===c?u:c)}catch(c){console.error("Failed to resolve model URL:",c)}})(),()=>{l=!0}},[e]),r?i.jsx(Ie,{url:r,flangeRef:n,postModelRender:t,...o}):null}const z=(e,n)=>{e.userData.isGhost||(e.traverse(t=>{if(t instanceof g.Mesh){t.material instanceof g.Material&&(t.material.colorWrite=!1);const o=t.clone(),r=t.clone();o.material=new g.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:-1,side:g.DoubleSide}),o.userData.isGhost=!0,r.material=new g.MeshStandardMaterial({color:n,opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-2,side:g.DoubleSide}),r.userData.isGhost=!0,t.parent&&(t.parent.add(o),t.parent.add(r))}}),e.userData.isGhost=!0)},K=e=>{if(!e.userData.isGhost)return;const n=[];e.traverse(t=>{var o;t instanceof g.Mesh&&((o=t.userData)!=null&&o.isGhost?n.push(t):t.material instanceof g.Material&&(t.material.colorWrite=!0))}),n.forEach(t=>{t.parent&&t.parent.remove(t)}),e.userData.isGhost=!1},N=v.externalizeComponent(({rapidlyChangingMotionState:e,modelFromController:n,dhParameters:t,chainOffsetPosition:o,chainOffsetQuaternion:r,getModel:a=E,flangeRef:l,postModelRender:s,transparentColor:c,instanceUrl:u,...p})=>{const[f,R]=m.useState(null),j=m.useRef(null),x=m.useCallback(w=>{R(w)},[]),h=m.useCallback(()=>{var w;(w=j.current)==null||w.recollectJoints(),s==null||s()},[s]);m.useEffect(()=>{f&&(c?z(f,c):K(f))},[f,c]);const M=m.useMemo(()=>{const w=a(n,u);if(!w){const b=new Blob([],{type:"model/gltf-binary"}),T=new File([b],`${n}.glb`,{type:"model/gltf-binary"});return Promise.resolve(URL.createObjectURL(T))}return w},[n,u,a]),y=i.jsx(X,{rapidlyChangingMotionState:e,dhParameters:t,...p});return i.jsxs(D.ErrorBoundary,{fallback:y,onError:w=>{console.warn(w)},children:[i.jsx(m.Suspense,{fallback:y,children:i.jsx("group",{ref:x,children:i.jsx(B,{ref:j,rapidlyChangingMotionState:e,dhParameters:t,chainOffsetPosition:o,chainOffsetQuaternion:r,children:i.jsx(Z,{modelURL:M,postModelRender:h,flangeRef:l,...p})})})}),i.jsx(Y,{})]})}),ee=v.externalizeComponent(({rapidlyChangingMotionState:e,...n})=>{const t=V.useSmoothedMotionState(e);return i.jsx(N,{rapidlyChangingMotionState:t,...n})});function Pe({connectedMotionGroup:e,getModel:n,flangeRef:t,transparentColor:o,postModelRender:r,...a}){const l=m.useCallback(R=>E(R,e.nova),[e]),s=n??l;if(!e.dhParameters)return null;const c=e.mountingPosition,u=e.mountingQuaternion,p=e.modelFromController||"";return p?i.jsx(ee,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:p,dhParameters:e.dhParameters,getModel:s,flangeRef:t,transparentColor:o,postModelRender:r,chainOffsetPosition:c,chainOffsetQuaternion:u,...a}):i.jsx(X,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,dhParameters:e.dhParameters,chainOffsetPosition:c,chainOffsetQuaternion:u,...a})}const te=m.forwardRef(function({rapidlyChangingMotionState:n,dhParameters:t,chainOffsetPosition:o,chainOffsetQuaternion:r,onRotationChanged:a,children:l},s){const c=m.useRef(null),u=m.useRef([]),p=m.useRef(n.joint_position.filter(y=>y!==void 0)),{invalidate:f}=U.useThree(),R=m.useRef(n);R.current=n;function j(y){c.current=y,y&&x()}function x(){c.current&&(u.current=$(c.current),h(),f())}m.useImperativeHandle(s,()=>({recollectJoints:x}));function h(){const y=p.current;if(a)a(u.current,y);else for(const[w,b]of u.current.entries()){const T=t[w],_=T.theta||0,re=T.reverse_rotation_direction?-1:1;b.rotation.y=re*(y[w]||0)+_}}function M(y){p.current=y.joint_position.filter(w=>w!==void 0),h(),f()}return V.useAutorun(()=>{M(R.current)}),m.useEffect(()=>{M(n)},[n]),i.jsx("group",{ref:j,position:o,quaternion:r,children:l})}),Ne="line",Fe="mesh";function Qe({rapidlyChangingMotionState:e,dhParameters:n,...t}){const o=new d.Matrix4,r=m.useRef([]),a=m.useRef([]);m.useEffect(()=>{r.current=new Array(n.length).fill(null),a.current=new Array(n.length).fill(null)},[n.length]);function l(u,p){const f=new d.Vector3,R=new d.Quaternion,j=new d.Vector3;o.decompose(f,R,j);const x=f.clone(),h=new d.Matrix4().makeRotationY(u.theta+p*(u.reverse_rotation_direction?-1:1)).multiply(new d.Matrix4().makeTranslation(0,u.d/1e3,0)).multiply(new d.Matrix4().makeTranslation(u.a/1e3,0,0)).multiply(new d.Matrix4().makeRotationX(u.alpha));return o.multiply(h),o.decompose(f,R,j),{a:x,b:f}}function s(u,p,f,R){if(!n)return;const j=n[u];if(!j)return;const{a:x,b:h}=l(j,R);p.geometry.setPositions([x.toArray(),h.toArray()].flat()),f.position.set(h.x,h.y,h.z)}function c(u,p){o.identity();for(let f=0;f<Math.min(u.length,p.length);f++){const R=r.current[f],j=a.current[f];R&&j&&s(f,R,j,p[f])}}return i.jsx(te,{rapidlyChangingMotionState:e,dhParameters:n,onRotationChanged:c,children:i.jsxs("group",{...t,name:"Scene",children:[i.jsxs("mesh",{children:[i.jsx("sphereGeometry",{args:[.01,32,32]}),i.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),n==null?void 0:n.map((u,p)=>{const{a:f,b:R}=l(u,e.joint_position[p]??0),j=`dhrobot_J0${p}`;return i.jsxs("group",{name:j,children:[i.jsx(S.Line,{ref:x=>{r.current[p]=x},name:Ne,points:[f,R],color:"white",lineWidth:5}),i.jsxs("mesh",{ref:x=>{a.current[p]=x},name:Fe,position:R,children:[i.jsx("sphereGeometry",{args:[.01,32,32]}),i.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},`mesh_${p}`)]},j)})]})})}const F=v.externalizeComponent(({rapidlyChangingMotionState:e,modelFromController:n,dhParameters:t,chainOffsetPosition:o,chainOffsetQuaternion:r,getModel:a=E,flangeRef:l,postModelRender:s,transparentColor:c,instanceUrl:u,...p})=>{const[f,R]=m.useState(null),j=m.useRef(null),x=m.useCallback(w=>{R(w)},[]),h=m.useCallback(()=>{var w;(w=j.current)==null||w.recollectJoints(),s==null||s()},[s]);m.useEffect(()=>{f&&(c?z(f,c):K(f))},[f,c]);const M=m.useMemo(()=>{const w=a(n,u);if(!w)throw new Error(`No model found for robot "${n}". Ensure the model is available or provide a custom getModel function.`);return w},[n,u,a]),y=i.jsx(Qe,{rapidlyChangingMotionState:e,dhParameters:t,...p});return i.jsxs(D.ErrorBoundary,{fallback:y,onError:w=>{console.warn(w)},children:[i.jsx(m.Suspense,{fallback:y,children:i.jsx("group",{ref:x,children:i.jsx(te,{ref:j,rapidlyChangingMotionState:e,dhParameters:t,chainOffsetPosition:o,chainOffsetQuaternion:r,children:i.jsx(Z,{modelURL:M,postModelRender:h,flangeRef:l,...p})})})}),i.jsx(Y,{})]})}),ne=v.externalizeComponent(({rapidlyChangingMotionState:e,...n})=>{const t=V.useSmoothedMotionState(e);return i.jsx(F,{rapidlyChangingMotionState:t,...n})}),oe=v.externalizeComponent(e=>{const{inverseSolver:n,dhParameters:t,...o}=e,[r,a]=m.useState(L.JointTypeEnum.RevoluteJoint);m.useEffect(()=>{t.length&&a(t[0].type??L.JointTypeEnum.RevoluteJoint)},[t]);const l=m.useMemo(()=>n===null&&r===L.JointTypeEnum.RevoluteJoint,[n,r]),s=m.useMemo(()=>n===null&&r===L.JointTypeEnum.PrismaticJoint,[n,r]);return m.useMemo(()=>!!n,[n])||l?i.jsx(F,{dhParameters:t,...o}):s?i.jsx(N,{dhParameters:t,...o}):null}),qe=v.externalizeComponent(e=>{const n=V.useSmoothedMotionState(e.rapidlyChangingMotionState);return i.jsx(oe,{...e,rapidlyChangingMotionState:n})});function Je({connectedMotionGroup:e,getModel:n,flangeRef:t,transparentColor:o,postModelRender:r,...a}){const l=m.useCallback(u=>E(u,e.nova),[e]);if(!e.dhParameters)return null;const s=e.mountingPosition,c=e.mountingQuaternion;return i.jsx(ne,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:n??l,flangeRef:t,transparentColor:o,postModelRender:r,chainOffsetPosition:s,chainOffsetQuaternion:c,...a})}function C(e,n){if(n==="QUATERNION"&&e)return new d.Quaternion(...e);if(n==="ROTATION_VECTOR"&&e){if(e&&e.length<3)throw new Error(`Invalid rotation vector length: ${e.length}. Expected at least 3 values.`);const t=new d.Vector3(e[0],e[1],e[2]),o=t.length(),r=t.normalize();return new d.Quaternion().setFromAxisAngle(r,o)}else return console.warn(`Unsupported rotation type '${n}'. Only QUATERNION and ROTATION_VECTOR are supported for now.`),new d.Quaternion}function De(e){const n=new d.Vector3(e.x,e.y,e.z),t=2*Math.atan2(n.length(),Math.abs(e.w));n.normalize();const o=(e.w>=0?1:0)-(e.w<0?1:0);return n.multiplyScalar(o).multiplyScalar(t)}class O{constructor(n,t){this.position=n,this.quaternion=t}static fromPose(n){const t=n.orientation?C(n.orientation,"ROTATION_VECTOR"):new d.Quaternion,o=n.position??[0,0,0];return new O(new d.Vector3(o[0]??0,o[1]??0,o[2]??0),t)}static fromRobotTcp(n){const t=n.orientation?C(n.orientation,n.orientation_type??"ROTATION_VECTOR"):new d.Quaternion,o=n.position??[0,0,0];return new O(new d.Vector3(o[0]??0,o[1]??0,o[2]??0),t)}static fromCoordinateSystem(n){const t=n.orientation?C(n.orientation,n.orientation_type??"ROTATION_VECTOR"):new d.Quaternion,o=n.position??[0,0,0];return new O(new d.Vector3(o[0]??0,o[1]??0,o[2]??0),t)}inverse(){const n=this.quaternion.clone().invert();return new O(this.position.clone().applyQuaternion(n).multiplyScalar(-1),n)}multiply(n){return new O(this.position.clone().add(n.position.clone().applyQuaternion(this.quaternion)),this.quaternion.clone().multiply(n.quaternion).normalize())}get orientation(){return De(this.quaternion)}}exports.CollisionSceneRenderer=ue;exports.JointLimitGizmo=be;exports.LinearAxis=Pe;exports.MotionGroupVisualizer=qe;exports.MotionGroupVisualizerExact=oe;exports.Pose3=O;exports.PresetEnvironment=Se;exports.Robot=Je;exports.SafetyZonesRenderer=Ee;exports.SupportedLinearAxis=ee;exports.SupportedLinearAxisExact=N;exports.SupportedRobot=ne;exports.SupportedRobotExact=F;exports.TrajectoryRenderer=Le;exports.defaultGetModel=E;exports.parseRotationToQuaternion=C;
@@ -0,0 +1 @@
1
+ "use strict";const r=require("react/jsx-runtime"),T=require("@mui/material/Divider"),y=require("@mui/material/Stack"),f=require("mobx-react-lite"),w=require("./externalizeComponent-B0n_tR3v.cjs"),m=require("@mui/material/styles"),c=require("react"),d=require("react-i18next"),A=require("@mui/material/Popover"),g=require("@mui/material/SvgIcon"),E=require("@mui/material/Typography"),x=require("axios"),M=require("./json-Bd6uGfgP.cjs");function _(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const l=_(c);function R(e,t){throw new Error(`${t} ${JSON.stringify(e)}`)}function j(e){var t,a,n,o;return e instanceof x.AxiosError&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof x.AxiosError&&e.response?`${(t=e.response)==null?void 0:t.status} ${(a=e.response)==null?void 0:a.statusText} from ${(n=e.response)==null?void 0:n.config.url}: ${JSON.stringify((o=e.response)==null?void 0:o.data)}`:e instanceof Error?e.message:`Unexpected error: ${M.tryStringifyJson(e)||e}`}const O=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{d:"M5.248 21c-.334 0-.619-.116-.853-.35a1.153 1.153 0 0 1-.351-.848c0-.333.117-.616.351-.85.234-.233.519-.35.853-.35H7.24L4.558 9.87a2.881 2.881 0 0 1-1.126-1.042A2.77 2.77 0 0 1 3 7.317c0-.793.28-1.467.838-2.023a2.774 2.774 0 0 1 2.033-.834 2.71 2.71 0 0 1 1.728.585c.494.389.832.887 1.014 1.493h3.58V5.239c0-.22.076-.406.226-.555a.76.76 0 0 1 .558-.224c.136 0 .263.035.381.104.118.07.209.167.273.292v.14l1.835-1.702a.979.979 0 0 1 .52-.279.881.881 0 0 1 .58.091l4.01 1.85a.74.74 0 0 1 .36.364.537.537 0 0 1-.002.474.592.592 0 0 1-.366.323.657.657 0 0 1-.477-.039l-3.858-1.774L13.76 6.59v1.454l2.473 2.233 3.858-1.774a.648.648 0 0 1 .485-.03.571.571 0 0 1 .358.314.513.513 0 0 1 .01.482.79.79 0 0 1-.367.357l-4.011 1.882a.881.881 0 0 1-.58.09.979.979 0 0 1-.52-.278L13.63 9.638v.14a.92.92 0 0 1-.273.275.665.665 0 0 1-.381.12.76.76 0 0 1-.558-.224.752.752 0 0 1-.225-.555V8.096h-3.58a2.82 2.82 0 0 1-.215.54 2.552 2.552 0 0 1-.323.479l5.139 9.488h2.673c.335 0 .62.116.854.35.234.233.35.516.35.849 0 .332-.116.615-.35.849a1.167 1.167 0 0 1-.854.349H5.248Zm.623-12.385c.362 0 .67-.126.924-.378a1.25 1.25 0 0 0 .38-.92 1.25 1.25 0 0 0-.38-.92 1.261 1.261 0 0 0-.924-.379 1.26 1.26 0 0 0-.925.379 1.25 1.25 0 0 0-.38.92c0 .36.127.667.38.92.254.252.562.378.925.378Z"})),B=c.forwardRef(O),F=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{d:"m13.37 9.12 1.69 1.69 2.99-2.99-3.73-3.73-.95-.95-7.66 7.66-.95.95 3.99 3.99v3.44h7.55v-3.55l-4.72-4.72 1.79-1.79Zm-.91-2.99.91-.91 2.6 2.6-.91.91-2.6-2.6Zm-2.25 10.24h3.74l-1.34-1.34-.04-.04h-2.5l-3.25-3.25 4.59-4.59.92.92L9.5 10.9l5.33 5.33v1.48H10.2v-1.35l.01.01ZM2 2v4.99h1.41V3.4h3.58V2H2ZM22.21 2h-4.98v1.41h3.59v3.58h1.4V2h-.01ZM20.81 20.65h-3.58v1.4h4.98v-4.99h-1.4v3.59ZM3.4 17.06H2v4.98h4.99v-1.4H3.4v-3.58Z"})),Z=c.forwardRef(F),p=f.observer(({id:e,icon:t,color:a,title:n,name:o,label:s,explanation:i,literalValue:u,anchorOrigin:h,transformOrigin:b})=>{const S=f.useLocalObservable(()=>({anchorEl:null,get isPopoverOpen(){return!!S.anchorEl},openPopover(v){S.anchorEl=v.currentTarget},closePopover(){S.anchorEl=null}}));return r.jsxs(r.Fragment,{children:[r.jsxs(y,{"aria-owns":S.isPopoverOpen?e:void 0,"aria-haspopup":"true",onMouseEnter:S.openPopover,onMouseLeave:S.closePopover,direction:"row",spacing:1,sx:{cursor:"pointer"},children:[r.jsx(g,{component:t,sx:{color:a}}),s&&r.jsx("div",{style:{color:a},children:s})]}),r.jsx(A,{id:e,sx:{pointerEvents:"none"},open:S.isPopoverOpen,anchorEl:S.anchorEl,anchorOrigin:h??{vertical:"bottom",horizontal:"left"},transformOrigin:b??{vertical:"top",horizontal:"left"},onClose:S.closePopover,disableRestoreFocus:!0,children:r.jsxs(y,{gap:"1rem",padding:2,maxWidth:"450px",sx:{wordWrap:"break-word"},children:[r.jsxs("div",{children:[n&&r.jsx(E,{component:"span",fontSize:"14px",children:`${n}: `}),r.jsx(E,{component:"span",color:a,fontWeight:"bold",fontSize:"14px",children:o})]}),r.jsx(E,{fontSize:"14px",children:i}),u&&r.jsx(E,{fontSize:"12px",children:u})]})})]})}),C=f.observer(({isVirtual:e,motionGroupId:t,anchorOrigin:a,transformOrigin:n,compact:o})=>{var h;const s=m.useTheme(),i=c.useId(),{t:u}=d.useTranslation();return e?r.jsx(p,{id:`motion-group-virtual-${i}`,icon:Z,color:((h=s.palette.tertiary)==null?void 0:h.main)??s.palette.secondary.main,name:u("SafetyBar.ControllerType.Virtual.lb"),label:o?null:u("SafetyBar.ControllerType.Virtual.lb"),explanation:r.jsxs(d.Trans,{i18nKey:"SafetyBar.MotionGroup.Virtual.Explanation.lb",values:{motionGroupId:t},children:["Motion group ",r.jsx("code",{children:t})," refers to a virtual robot with no physical counterpart. It can be freely manipulated without special safety precautions."]}),anchorOrigin:a,transformOrigin:n}):r.jsx(p,{id:`motion-group-physical-${i}`,icon:B,color:s.palette.primary.main,name:u("SafetyBar.ControllerType.Physical.lb"),label:o?null:u("SafetyBar.ControllerType.Physical.lb"),explanation:r.jsx(d.Trans,{i18nKey:"SafetyBar.MotionGroup.Physical.Explanation.lb",values:{motionGroupId:t},components:{code:r.jsx("code",{}),strong:r.jsx("strong",{})}}),anchorOrigin:a,transformOrigin:n})}),P=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.306 2.768c0-.424.344-.768.768-.768h.406C19.53 2 22 4.551 22 7.699c0 3.237-2.51 5.587-5.31 5.703-.84 1.595-2.478 2.677-4.36 2.677a4.845 4.845 0 0 1-3.146-1.163c-.6 1.783 0 3.922 1.79 4.99 1.929 1.149 4.395.467 5.508-1.524l.212-.378a.75.75 0 1 1 1.308.732l-.231.414c-1.524 2.725-4.9 3.66-7.54 2.085-2.716-1.618-3.432-5.037-2.129-7.599a5.22 5.22 0 0 1-.73-2.677c0-2.192 1.335-4.063 3.212-4.793-1.195-1.427-3.29-1.96-5.08-.892-1.928 1.15-2.589 3.696-1.475 5.687l.231.413a.75.75 0 0 1-1.308.732l-.212-.377c-1.524-2.726-.62-6.211 2.02-7.785 2.716-1.619 5.943-.55 7.44 1.897l.13-.001c2.739 0 4.96 2.292 4.96 5.12 0 .284-.023.563-.066.834 1.795-.354 3.288-1.96 3.288-4.095 0-2.3-1.805-4.163-4.032-4.163h-.406a.768.768 0 0 1-.768-.768Zm.496 8.191c0 .286-.033.564-.094.831a3.62 3.62 0 0 1-.672 1.415 3.425 3.425 0 0 1-2.706 1.338 3.402 3.402 0 0 1-2.384-.98 3.598 3.598 0 0 1-.852-1.306 3.677 3.677 0 0 1-.235-1.298c0-1.623 1.046-2.994 2.48-3.435a3.37 3.37 0 0 1 1.522-.107c1.665.264 2.94 1.75 2.94 3.542Z"})),$=c.forwardRef(P),N=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{d:"M19.763 16.432 13.516 5.864c-.674-1.152-2.358-1.152-3.049 0l-6.23 10.568C3.563 17.567 4.405 19 5.753 19H18.23c1.364 0 2.206-1.432 1.532-2.568ZM12 8.498c.539 0 .96.428.96.938v.066l-.32 4.708a.639.639 0 0 1-.64.592.639.639 0 0 1-.64-.592l-.32-4.708A.953.953 0 0 1 12 8.498Zm0 8.79c-.556 0-1.01-.444-1.01-.987 0-.544.454-.988 1.01-.988s1.01.444 1.01.988c0 .542-.454.987-1.01.987Z",fill:"#fff",fillOpacity:.56})),Y=c.forwardRef(N),V=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{d:"M12.953 5.09a1.497 1.497 0 0 0-1.653-.518l-1.35.43a1.504 1.504 0 0 0-1.726-.376L2.858 6.97c-.736.321-1.06 1.155-.726 1.862.334.707 1.202 1.02 1.937.698l4.27-1.865 1.466 1.973v.402c0 .873-.627 1.63-1.512 1.827l-2.56.567c-1.329.295-2.27 1.431-2.27 2.74v.107c0 .26.22.469.489.469h11.117c1.329 0 2.618.435 3.656 1.233l1.665 1.28A1 1 0 0 0 22 17.47V11.062c0-.312-.108-.616-.308-.863l-3.415-4.218a1.5 1.5 0 0 0-1.618-.471l-.378.12-.866-.475a1.516 1.516 0 0 0-1.188-.114l-1.06.338-.214-.289Z"})),q=c.forwardRef(V),L=f.observer(({operationMode:e,anchorOrigin:t,transformOrigin:a,compact:n})=>{const{t:o}=d.useTranslation(),s=m.useTheme(),i=c.useId();switch(e){case"OPERATION_MODE_AUTO":return r.jsx(p,{id:`operation-mode-auto-${i}`,icon:$,title:o("SafetyBar.OperationMode.ti"),name:o("SafetyBar.OperationMode.Automatic.ti"),label:n?null:o("SafetyBar.OperationMode.Automatic.ti"),color:s.palette.text.secondary,explanation:r.jsx(d.Trans,{i18nKey:"SafetyBar.OperationMode.Auto.Explanation.lb",children:"The robot controller is in automatic operation mode. Automated movement without manual confirmation is possible in this mode."}),anchorOrigin:t,transformOrigin:a});case"OPERATION_MODE_MANUAL":case"OPERATION_MODE_MANUAL_T1":case"OPERATION_MODE_MANUAL_T2":return r.jsx(p,{id:`operation-mode-manual-${i}`,icon:q,color:s.palette.warning.main,title:o("SafetyBar.OperationMode.ti"),name:o("SafetyBar.OperationMode.Manual.lb"),label:n?null:o("SafetyBar.OperationMode.Manual.lb"),explanation:r.jsx(d.Trans,{i18nKey:"SafetyBar.OperationMode.Manual.Explanation.lb",children:"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully."}),literalValue:e,anchorOrigin:t,transformOrigin:a});default:return r.jsx(p,{id:`operation-mode-error-${i}`,icon:Y,color:s.palette.warning.main,title:o("SafetyBar.OperationMode.ti"),name:o("SafetyBar.OperationMode.Error.lb"),label:n?null:o("SafetyBar.OperationMode.Error.lb"),explanation:r.jsx(d.Trans,{i18nKey:"SafetyBar.OperationMode.Error.Explanation.lb",children:"The robot controller has entered an unexpected operation mode. Motion group movement may not be possible."}),literalValue:e,anchorOrigin:t,transformOrigin:a})}}),I=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{d:"M19.763 16.432 13.516 5.864c-.674-1.152-2.358-1.152-3.049 0l-6.23 10.568C3.563 17.567 4.405 19 5.753 19H18.23c1.364 0 2.206-1.432 1.532-2.568ZM12 8.498c.539 0 .96.428.96.938v.066l-.32 4.708a.639.639 0 0 1-.64.592.639.639 0 0 1-.64-.592l-.32-4.708A.953.953 0 0 1 12 8.498Zm0 8.79c-.556 0-1.01-.444-1.01-.987 0-.544.454-.988 1.01-.988s1.01.444 1.01.988c0 .542-.454.987-1.01.987Z"})),K=c.forwardRef(I),D=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{d:"M10.24 10.636 12 13.764l1.76-3.128h-3.52Z"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.364 12a6.364 6.364 0 1 1-12.728 0 6.364 6.364 0 0 1 12.728 0ZM7.909 9.273 12 16.546l4.09-7.273H7.91Z"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.364 0a8.636 8.636 0 1 1-17.273 0 8.636 8.636 0 0 1 17.273 0Z"})),H=c.forwardRef(D),U=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{d:"M9.057 15.115c-1.681 0-3.111-.59-4.29-1.768C3.59 12.17 3 10.74 3 9.057c0-.29.021-.582.064-.876a4.1 4.1 0 0 1 .214-.844.78.78 0 0 1 .273-.36c.115-.077.244-.133.389-.168a.857.857 0 0 1 .437.008c.146.04.28.12.4.24l2.806 2.787 2.26-2.261-2.775-2.786a.903.903 0 0 1-.241-.405.875.875 0 0 1-.008-.442 1.13 1.13 0 0 1 .174-.389.82.82 0 0 1 .355-.273c.268-.107.548-.182.838-.224.29-.043.581-.064.871-.064 1.682 0 3.112.59 4.29 1.768 1.179 1.178 1.768 2.608 1.768 4.29 0 .444-.042.858-.126 1.241-.084.384-.21.755-.377 1.113l5.726 5.692A2.2 2.2 0 0 1 21 18.721a2.2 2.2 0 0 1-.662 1.617A2.2 2.2 0 0 1 18.72 21a2.173 2.173 0 0 1-1.617-.679l-5.692-5.709c-.372.161-.75.285-1.133.372-.383.087-.79.13-1.222.13Z",fill:"#fff",fillOpacity:.56})),z=c.forwardRef(U),k=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{d:"m10.6 13.8-2.15-2.15a.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275.948.948 0 0 0-.275.7c0 .283.092.517.275.7L9.9 15.9c.2.2.433.3.7.3.267 0 .5-.1.7-.3l5.65-5.65a.948.948 0 0 0 .275-.7.948.948 0 0 0-.275-.7.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275L10.6 13.8ZM12 22a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12c0-1.383.263-2.683.788-3.9a10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2c1.383 0 2.683.263 3.9.788a10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})),W=c.forwardRef(k),G=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{d:"M9 16h6c.283 0 .52-.096.713-.287A.968.968 0 0 0 16 15V9a.967.967 0 0 0-.287-.713A.968.968 0 0 0 15 8H9a.968.968 0 0 0-.713.287A.968.968 0 0 0 8 9v6c0 .283.096.52.287.713.192.191.43.287.713.287Zm3 6a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12c0-1.383.263-2.683.788-3.9a10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2c1.383 0 2.683.263 3.9.788a10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})),J=c.forwardRef(G),Q=f.observer(({safetyState:e,anchorOrigin:t,transformOrigin:a,compact:n})=>{const{t:o}=d.useTranslation(),s=m.useTheme(),i=c.useId();switch(e){case"SAFETY_STATE_NORMAL":return r.jsx(p,{id:`safety-state-normal-${i}`,title:o("SafetyBar.SafetyState.ti"),name:o("SafetyBar.SafetyState.Normal.lb"),label:n?null:o("SafetyBar.SafetyState.Normal.lb"),icon:W,color:s.palette.text.secondary,explanation:r.jsx(d.Trans,{i18nKey:"SafetyBar.SafetyState.Normal.Explanation.lb",children:"The robot controller is in a normal safety state. Movement is not prevented by this state."}),anchorOrigin:t,transformOrigin:a});case"SAFETY_STATE_DEVICE_EMERGENCY_STOP":case"SAFETY_STATE_ROBOT_EMERGENCY_STOP":return r.jsx(p,{id:`safety-state-estop-${i}`,title:o("SafetyBar.SafetyState.ti"),name:o("SafetyBar.SafetyState.Estop.lb"),label:n?null:o("SafetyBar.SafetyState.Estop.lb"),icon:H,color:s.palette.error.main,explanation:r.jsx(d.Trans,{i18nKey:"SafetyBar.StopState.Estop.Explanation.lb",children:"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released."}),literalValue:e,anchorOrigin:t,transformOrigin:a});case"SAFETY_STATE_STOP_0":case"SAFETY_STATE_STOP_1":case"SAFETY_STATE_STOP_2":case"SAFETY_STATE_PROTECTIVE_STOP":case"SAFETY_STATE_STOP":return r.jsx(p,{id:`safety-state-stop-${i}`,icon:J,title:o("SafetyBar.SafetyState.ti"),name:o("SafetyBar.SafetyState.Stop.lb"),label:n?null:o("SafetyBar.SafetyState.Stop.lb"),color:s.palette.warning.main,explanation:r.jsx(d.Trans,{i18nKey:"SafetyBar.SafetyState.Stop.Explanation.lb",children:"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved."}),literalValue:e,anchorOrigin:t,transformOrigin:a});case"SAFETY_STATE_REDUCED":case"SAFETY_STATE_MASTERING":case"SAFETY_STATE_CONFIRM_SAFETY":case"SAFETY_STATE_OPERATOR_SAFETY":case"SAFETY_STATE_RECOVERY":case"SAFETY_STATE_VIOLATION":return r.jsx(p,{id:`safety-state-manual-action-required-${i}`,icon:z,color:s.palette.warning.main,title:o("SafetyBar.SafetyState.ti"),name:o("SafetyBar.SafetyState.ManualActionRequired.lb"),label:n?null:o("SafetyBar.SafetyState.ManualActionRequired.lb"),explanation:r.jsx(d.Trans,{i18nKey:"SafetyBar.SafetyState.ManualActionRequired.Explanation.lb",children:"The robot controller has entered a safety state requiring manual action to resolve."}),literalValue:e,anchorOrigin:t,transformOrigin:a});case"SAFETY_STATE_UNKNOWN":case"SAFETY_STATE_FAULT":return r.jsx(p,{id:`safety-state-error-${i}`,icon:K,color:s.palette.error.main,title:o("SafetyBar.SafetyState.ti"),name:o("SafetyBar.SafetyState.Error.lb"),label:n?null:o("SafetyBar.SafetyState.Error.lb"),explanation:r.jsx(d.Trans,{i18nKey:"SafetyBar.SafetyState.Error.Explanation.lb",children:"The robot controller has entered an unexpected safety state."}),literalValue:e,anchorOrigin:t,transformOrigin:a});default:R(e,`Unknown safety state ${e}`)}}),X=w.externalizeComponent(f.observer(({isVirtual:e,motionGroupId:t,operationMode:a,safetyState:n,anchorOrigin:o,transformOrigin:s,compact:i=!0})=>{const u=i?1:2;return r.jsxs(y,{direction:"row",gap:u,alignItems:"center",sx:{height:"24px"},children:[r.jsx(Q,{safetyState:n,anchorOrigin:o,transformOrigin:s,compact:i}),r.jsx(T,{orientation:"vertical",flexItem:!0}),r.jsx(L,{operationMode:a,anchorOrigin:o,transformOrigin:s,compact:i}),r.jsx(T,{orientation:"vertical",flexItem:!0}),r.jsx(C,{isVirtual:e,motionGroupId:t,anchorOrigin:o,transformOrigin:s,compact:i})]})}));exports.SafetyBar=X;exports.makeErrorMessage=j;
@@ -1,22 +1,23 @@
1
1
  import { jsxs as m, Fragment as x, jsx as n } from "react/jsx-runtime";
2
- import b from "@mui/material/Divider";
3
- import u from "@mui/material/Stack";
2
+ import w from "@mui/material/Divider";
3
+ import y from "@mui/material/Stack";
4
4
  import { observer as f, useLocalObservable as _ } from "mobx-react-lite";
5
- import { t as R, e as O } from "./externalizeComponent-EDymnaGR.js";
6
- import { useTheme as y } from "@mui/material/styles";
5
+ import { e as R } from "./externalizeComponent-7OVHUIUh.js";
6
+ import { useTheme as v } from "@mui/material/styles";
7
7
  import * as r from "react";
8
- import { forwardRef as d, useId as v } from "react";
9
- import { useTranslation as T, Trans as s } from "react-i18next";
10
- import B from "@mui/material/Popover";
11
- import F from "@mui/material/SvgIcon";
12
- import E from "@mui/material/Typography";
13
- import { AxiosError as w } from "axios";
8
+ import { forwardRef as d, useId as T } from "react";
9
+ import { useTranslation as b, Trans as s } from "react-i18next";
10
+ import O from "@mui/material/Popover";
11
+ import B from "@mui/material/SvgIcon";
12
+ import u from "@mui/material/Typography";
13
+ import { AxiosError as A } from "axios";
14
+ import { a as F } from "./json-3cqBD7UQ.js";
14
15
  function Z(e, t) {
15
16
  throw new Error(`${t} ${JSON.stringify(e)}`);
16
17
  }
17
- function me(e) {
18
+ function fe(e) {
18
19
  var t, a, o, l;
19
- return e instanceof w && e.code === "ERR_NETWORK" ? "Failed to connect to the server. Please check your internet connection." : e instanceof w && e.response ? `${(t = e.response) == null ? void 0 : t.status} ${(a = e.response) == null ? void 0 : a.statusText} from ${(o = e.response) == null ? void 0 : o.config.url}: ${JSON.stringify((l = e.response) == null ? void 0 : l.data)}` : e instanceof Error ? e.message : `Unexpected error: ${R(e) || e}`;
20
+ return e instanceof A && e.code === "ERR_NETWORK" ? "Failed to connect to the server. Please check your internet connection." : e instanceof A && e.response ? `${(t = e.response) == null ? void 0 : t.status} ${(a = e.response) == null ? void 0 : a.statusText} from ${(o = e.response) == null ? void 0 : o.config.url}: ${JSON.stringify((l = e.response) == null ? void 0 : l.data)}` : e instanceof Error ? e.message : `Unexpected error: ${F(e) || e}`;
20
21
  }
21
22
  const C = ({
22
23
  title: e,
@@ -36,7 +37,7 @@ const C = ({
36
37
  label: i,
37
38
  explanation: c,
38
39
  literalValue: h,
39
- anchorOrigin: A,
40
+ anchorOrigin: E,
40
41
  transformOrigin: g
41
42
  }) => {
42
43
  const S = _(() => ({
@@ -53,7 +54,7 @@ const C = ({
53
54
  }));
54
55
  return /* @__PURE__ */ m(x, { children: [
55
56
  /* @__PURE__ */ m(
56
- u,
57
+ y,
57
58
  {
58
59
  "aria-owns": S.isPopoverOpen ? e : void 0,
59
60
  "aria-haspopup": "true",
@@ -66,7 +67,7 @@ const C = ({
66
67
  },
67
68
  children: [
68
69
  /* @__PURE__ */ n(
69
- F,
70
+ B,
70
71
  {
71
72
  component: t,
72
73
  sx: {
@@ -87,7 +88,7 @@ const C = ({
87
88
  }
88
89
  ),
89
90
  /* @__PURE__ */ n(
90
- B,
91
+ O,
91
92
  {
92
93
  id: e,
93
94
  sx: {
@@ -95,7 +96,7 @@ const C = ({
95
96
  },
96
97
  open: S.isPopoverOpen,
97
98
  anchorEl: S.anchorEl,
98
- anchorOrigin: A ?? {
99
+ anchorOrigin: E ?? {
99
100
  vertical: "bottom",
100
101
  horizontal: "left"
101
102
  },
@@ -106,7 +107,7 @@ const C = ({
106
107
  onClose: S.closePopover,
107
108
  disableRestoreFocus: !0,
108
109
  children: /* @__PURE__ */ m(
109
- u,
110
+ y,
110
111
  {
111
112
  gap: "1rem",
112
113
  padding: 2,
@@ -116,9 +117,9 @@ const C = ({
116
117
  },
117
118
  children: [
118
119
  /* @__PURE__ */ m("div", { children: [
119
- o && /* @__PURE__ */ n(E, { component: "span", fontSize: "14px", children: `${o}: ` }),
120
+ o && /* @__PURE__ */ n(u, { component: "span", fontSize: "14px", children: `${o}: ` }),
120
121
  /* @__PURE__ */ n(
121
- E,
122
+ u,
122
123
  {
123
124
  component: "span",
124
125
  color: a,
@@ -128,8 +129,8 @@ const C = ({
128
129
  }
129
130
  )
130
131
  ] }),
131
- /* @__PURE__ */ n(E, { fontSize: "14px", children: c }),
132
- h && /* @__PURE__ */ n(E, { fontSize: "12px", children: h })
132
+ /* @__PURE__ */ n(u, { fontSize: "14px", children: c }),
133
+ h && /* @__PURE__ */ n(u, { fontSize: "12px", children: h })
133
134
  ]
134
135
  }
135
136
  )
@@ -145,13 +146,14 @@ const C = ({
145
146
  transformOrigin: o,
146
147
  compact: l
147
148
  }) => {
148
- const i = y(), c = v(), { t: h } = T();
149
+ var E;
150
+ const i = v(), c = T(), { t: h } = b();
149
151
  return e ? /* @__PURE__ */ n(
150
152
  p,
151
153
  {
152
154
  id: `motion-group-virtual-${c}`,
153
155
  icon: N,
154
- color: i.palette.tertiary.main,
156
+ color: ((E = i.palette.tertiary) == null ? void 0 : E.main) ?? i.palette.secondary.main,
155
157
  name: h("SafetyBar.ControllerType.Virtual.lb"),
156
158
  label: l ? null : h("SafetyBar.ControllerType.Virtual.lb"),
157
159
  explanation: /* @__PURE__ */ m(
@@ -213,7 +215,7 @@ const C = ({
213
215
  transformOrigin: a,
214
216
  compact: o
215
217
  }) => {
216
- const { t: l } = T(), i = y(), c = v();
218
+ const { t: l } = b(), i = v(), c = T();
217
219
  switch (e) {
218
220
  case "OPERATION_MODE_AUTO":
219
221
  return /* @__PURE__ */ n(
@@ -293,7 +295,7 @@ const C = ({
293
295
  transformOrigin: a,
294
296
  compact: o
295
297
  }) => {
296
- const { t: l } = T(), i = y(), c = v();
298
+ const { t: l } = b(), i = v(), c = T();
297
299
  switch (e) {
298
300
  // Normal state, robot can move
299
301
  case "SAFETY_STATE_NORMAL":
@@ -394,7 +396,7 @@ const C = ({
394
396
  Z(e, `Unknown safety state ${e}`);
395
397
  }
396
398
  }
397
- ), fe = O(
399
+ ), Ee = R(
398
400
  f(
399
401
  ({
400
402
  isVirtual: e,
@@ -405,7 +407,7 @@ const C = ({
405
407
  transformOrigin: i,
406
408
  compact: c = !0
407
409
  }) => /* @__PURE__ */ m(
408
- u,
410
+ y,
409
411
  {
410
412
  direction: "row",
411
413
  gap: c ? 1 : 2,
@@ -421,7 +423,7 @@ const C = ({
421
423
  compact: c
422
424
  }
423
425
  ),
424
- /* @__PURE__ */ n(b, { orientation: "vertical", flexItem: !0 }),
426
+ /* @__PURE__ */ n(w, { orientation: "vertical", flexItem: !0 }),
425
427
  /* @__PURE__ */ n(
426
428
  D,
427
429
  {
@@ -431,7 +433,7 @@ const C = ({
431
433
  compact: c
432
434
  }
433
435
  ),
434
- /* @__PURE__ */ n(b, { orientation: "vertical", flexItem: !0 }),
436
+ /* @__PURE__ */ n(w, { orientation: "vertical", flexItem: !0 }),
435
437
  /* @__PURE__ */ n(
436
438
  Y,
437
439
  {
@@ -448,6 +450,6 @@ const C = ({
448
450
  )
449
451
  );
450
452
  export {
451
- fe as S,
452
- me as m
453
+ Ee as S,
454
+ fe as m
453
455
  };
@@ -1,42 +1,9 @@
1
- import * as a from "three";
2
- import { jsx as g } from "react/jsx-runtime";
3
- import { memo as d } from "react";
4
- import { I18nextProvider as m } from "react-i18next";
5
- import p from "i18next";
6
- import y from "i18next-browser-languagedetector";
7
- function B(e) {
8
- try {
9
- return JSON.stringify(e);
10
- } catch {
11
- return;
12
- }
13
- }
14
- function E(e) {
15
- const t = e.length(), n = new a.Quaternion();
16
- if (t > 1e-6) {
17
- const o = e.clone().normalize();
18
- n.setFromAxisAngle(o, t);
19
- }
20
- return n;
21
- }
22
- function A(e) {
23
- if (!e || e.length === 0)
24
- return 5;
25
- const o = e.reduce((l, i) => l + Math.abs(i.a ?? 0) / 1e3 + Math.abs(i.d ?? 0) / 1e3, 0) * 2;
26
- return !Number.isFinite(o) || o <= 0 ? 5 : o;
27
- }
28
- function M(e) {
29
- if (e.length < 3)
30
- return console.log("Not enough vertices to define a plane"), { isCoplanar: !1 };
31
- const t = new a.Vector3(e[0].x, e[0].y, e[0].z), n = new a.Vector3(e[1].x, e[1].y, e[1].z), o = new a.Vector3(e[2].x, e[2].y, e[2].z), l = new a.Vector3().subVectors(n, t), i = new a.Vector3().subVectors(o, t), s = new a.Vector3().crossVectors(l, i).normalize();
32
- for (let r = 3; r < e.length; r++) {
33
- const c = new a.Vector3(e[r].x, e[r].y, e[r].z), b = new a.Vector3().subVectors(c, t), u = s.dot(b);
34
- if (Math.abs(u) > 1e-6)
35
- return console.log("Vertices are not on the same plane"), { isCoplanar: !1 };
36
- }
37
- return { isCoplanar: !0, normal: s };
38
- }
39
- const f = {
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { memo as r } from "react";
3
+ import { I18nextProvider as a } from "react-i18next";
4
+ import l from "i18next";
5
+ import g from "i18next-browser-languagedetector";
6
+ const s = {
40
7
  "Jogging.Cartesian.Translation.velocityMmPerSec.lb": "{{amount}} mm/s",
41
8
  "Jogging.Cartesian.Rotation.velocityDegPerSec.lb": "{{amount}}°/s",
42
9
  "Jogging.Velocity.lb": "Geschwindigkeit",
@@ -96,46 +63,38 @@ Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabescha
96
63
  "Jogging.Cartesian.bt": "Kartesisch",
97
64
  "Jogging.Joints.bt": "Gelenke",
98
65
  "Jogging.Velocity.bt": "Geschwindigkeit",
99
- "CycleTimer.RemainingTime.lb": "Verbleibende Zeit",
100
- "CycleTimer.OfTime.lb": "von {{time}}",
101
- "CycleTimer.Time.lb": "{{time}}",
102
- "CycleTimer.Error.lb": "Fehler",
103
- "CycleTimer.WaitingForCycle.lb": "Warten auf Programmzyklus",
104
- "CycleTimer.CycleTime.lb": "Zykluszeit",
105
- "CycleTimer.Measuring.lb": "wird gemessen...",
106
- "CycleTimer.Determined.lb": "bestimmt",
107
- "Timer.error": "Fehler",
108
- "ProgramControl.Start.bt": "Start",
109
- "ProgramControl.Resume.bt": "Weiter",
110
- "ProgramControl.Retry.bt": "Wiederholen",
111
- "ProgramControl.Pause.bt": "Pause",
112
- "ProgramControl.Stop.bt": "Stopp",
113
- "ProgramStateIndicator.Preparing.lb": "Vorbereitung",
114
- "ProgramStateIndicator.Starting.lb": "Startet",
115
- "ProgramStateIndicator.Running.lb": "In Betrieb",
116
- "ProgramStateIndicator.Pausing.lb": "Pausiert",
117
- "ProgramStateIndicator.Stopping.lb": "Stoppt",
118
- "ProgramStateIndicator.Completed.lb": "Abgeschlossen",
119
- "ProgramStateIndicator.Failed.lb": "Fehlgeschlagen",
120
- "ProgramStateIndicator.Error.lb": "Fehler",
121
- "ProgramStateIndicator.EStop.lb": "Not-Aus",
122
- "ProgramStateIndicator.Idle.lb": "Leerlauf",
123
- "ProgramStateIndicator.Paused.lb": "Pausiert",
124
- "ProgramStateIndicator.Ready.lb": "Bereit",
125
- "ProgramStateIndicator.Stopped.lb": "Gestoppt",
126
- "ProgramStateIndicator.Auto.lb": "Auto",
127
- "ProgramStateIndicator.Manual.lb": "Manuell",
128
- "ProgramStateIndicator.ManualT1.lb": "Manuell T1",
129
- "ProgramStateIndicator.ManualT2.lb": "Manuell T2",
130
- "RobotSetupReadinessIndicator.Ready.lb": "Bereit",
131
- "RobotSetupReadinessIndicator.RobotDisconnected.lb": "Roboter getrennt",
132
- "RobotSetupReadinessIndicator.CellOpen.lb": "Zelle offen",
133
- "RobotSetupReadinessIndicator.EStop.lb": "Not-Stopp",
134
- "RobotSetupReadinessIndicator.ManualMode.lb": "Manueller Modus",
135
- "RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb": "Voraussetzung nicht erfüllt",
136
- "RobotCard.Runtime.lb": "Laufzeit",
137
- "RobotCard.DriveToHome.bt": "Zur Home-Position fahren"
138
- }, h = {
66
+ "CurrentPose.Title.lb": "Aktuelle Position",
67
+ "CurrentPose.OrientationFormat.ti": "Orientierungsformat",
68
+ "RobotControl.Tcp.lb": "TCP",
69
+ "CurrentPose.RelativeTo.lb": "Relativ zu",
70
+ "CurrentPose.Copied.lb": "Pose kopiert",
71
+ "CurrentPose.Copy.bt": "Kopieren",
72
+ "CurrentPose.EulerConvention.lb": "Euler-Konvention",
73
+ "CurrentPose.EulerConvention.Intrinsic.hlb": "Intrinsische Rotationen",
74
+ "CurrentPose.EulerConvention.Extrinsic.hlb": "Extrinsische Rotationen",
75
+ "CurrentPose.Format.lb": "Format",
76
+ "CurrentPose.Format.RotationVector.lb": "Rotationsvektor",
77
+ "CurrentPose.Format.EulerAngles.lb": "Euler-Winkel",
78
+ "CurrentPose.Format.Quaternion.lb": "Quaternion",
79
+ "CurrentPose.AngleUnit.lb": "Winkeleinheit",
80
+ "CurrentPose.AngleUnit.Radians.lb": "Radiant",
81
+ "CurrentPose.AngleUnit.Degrees.lb": "Grad",
82
+ "JoggingGizmo.WebGLUnavailable.lb": "Die Gizmo-Steuerung braucht WebGL, das dieser Browser nicht bietet.",
83
+ "Jogging.Handle.lb": "{{handle}} verfahren",
84
+ "Jogging.StreamStateSection.Error.Collision.lb": "Bewegung kann nicht geplant werden: sie würde zu einer Kollision führen",
85
+ "Jogging.StreamStateSection.Error.JointLimit.lb": "Bewegung kann nicht geplant werden: eine Gelenkgrenze würde überschritten",
86
+ "Jogging.StreamStateSection.Error.NoSolutionInConfiguration.lb": "Bewegung kann in der aktuellen Roboterkonfiguration nicht geplant werden",
87
+ "Jogging.StreamStateSection.Error.OutOfWorkspace.lb": "Bewegung kann nicht geplant werden: das Ziel liegt außerhalb des Arbeitsraums",
88
+ "Jogging.StreamStateSection.Error.PlanningFailed.lb": "Die angeforderte Bewegung konnte nicht geplant werden",
89
+ "Jogging.StreamStateSection.Error.Singularity.lb": "Bewegung kann nicht geplant werden: der Pfad führt durch eine Singularität. Versuche eine andere Achse oder bewege die Gelenke direkt",
90
+ "CurrentPose.EulerConvention.Intrinsic.lb": "Intrinsisch {{axes}}",
91
+ "CurrentPose.EulerConvention.Extrinsic.lb": "Extrinsisch {{axes}}",
92
+ "Jogging.TargetPose.Error.Collision.lb": "Die Bewegung zur aktuellen Pose würde eine Kollision verursachen. Bitte ändere die Posen-Koordinaten.",
93
+ "Jogging.TargetPose.Error.MoveFailed.lb": "Die Bewegung zu dieser Pose ist fehlgeschlagen: {{message}}",
94
+ "Jogging.TargetPose.Error.NotReachable.lb": "Die aktuelle Pose ist nicht erreichbar. Bitte ändere die Posen-Koordinaten.",
95
+ "Jogging.TargetPose.Error.PlanningFailed.lb": "Die Bewegung zu dieser Pose konnte nicht geplant werden. Bitte ändere die Posen-Koordinaten.",
96
+ "Jogging.TargetPose.Error.Singularity.lb": "Die aktuelle Pose würde eine Singularität erzeugen. Bitte ändere die Posen-Koordinaten."
97
+ }, u = {
139
98
  "Jogging.Cartesian.Translation.velocityMmPerSec.lb": "{{amount}} mm/s",
140
99
  "Jogging.Cartesian.Rotation.velocityDegPerSec.lb": "{{amount}}°/s",
141
100
  "Jogging.Velocity.lb": "Velocity",
@@ -195,74 +154,65 @@ Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabescha
195
154
  "Jogging.Cartesian.bt": "Cartesian",
196
155
  "Jogging.Joints.bt": "Joints",
197
156
  "Jogging.Velocity.bt": "Velocity",
198
- "CycleTimer.RemainingTime.lb": "Time remaining",
199
- "CycleTimer.OfTime.lb": "of {{time}}",
200
- "CycleTimer.Time.lb": "{{time}}",
201
- "CycleTimer.Error.lb": "Error",
202
- "CycleTimer.WaitingForCycle.lb": "Waiting for program cycle",
203
- "CycleTimer.CycleTime.lb": "Cycle Time",
204
- "CycleTimer.Measuring.lb": "measuring...",
205
- "CycleTimer.Determined.lb": "determined",
206
- "Timer.error": "Error",
207
- "ProgramControl.Start.bt": "Start",
208
- "ProgramControl.Resume.bt": "Resume",
209
- "ProgramControl.Retry.bt": "Retry",
210
- "ProgramControl.Pause.bt": "Pause",
211
- "ProgramControl.Stop.bt": "Stop",
212
- "ProgramStateIndicator.Preparing.lb": "Preparing",
213
- "ProgramStateIndicator.Starting.lb": "Starting",
214
- "ProgramStateIndicator.Running.lb": "Running",
215
- "ProgramStateIndicator.Pausing.lb": "Pausing",
216
- "ProgramStateIndicator.Stopping.lb": "Stopping",
217
- "ProgramStateIndicator.Completed.lb": "Completed",
218
- "ProgramStateIndicator.Failed.lb": "Failed",
219
- "ProgramStateIndicator.Error.lb": "Error",
220
- "ProgramStateIndicator.EStop.lb": "E-Stop",
221
- "ProgramStateIndicator.Idle.lb": "Idle",
222
- "ProgramStateIndicator.Paused.lb": "Paused",
223
- "ProgramStateIndicator.Ready.lb": "Ready",
224
- "ProgramStateIndicator.Stopped.lb": "Stopped",
225
- "ProgramStateIndicator.Auto.lb": "Auto",
226
- "ProgramStateIndicator.Manual.lb": "Manual",
227
- "ProgramStateIndicator.ManualT1.lb": "Manual T1",
228
- "ProgramStateIndicator.ManualT2.lb": "Manual T2",
229
- "RobotSetupReadinessIndicator.Ready.lb": "Ready",
230
- "RobotSetupReadinessIndicator.RobotDisconnected.lb": "Robot disconnected",
231
- "RobotSetupReadinessIndicator.CellOpen.lb": "Cell open",
232
- "RobotSetupReadinessIndicator.EStop.lb": "E-Stop",
233
- "RobotSetupReadinessIndicator.ManualMode.lb": "Manual mode",
234
- "RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb": "Precondition not fulfilled",
235
- "RobotCard.Runtime.lb": "Runtime",
236
- "RobotCard.DriveToHome.bt": "Drive to Home"
237
- }, S = p.createInstance();
238
- S.use(y).init({
157
+ "CurrentPose.Title.lb": "Current position",
158
+ "CurrentPose.OrientationFormat.ti": "Orientation format",
159
+ "RobotControl.Tcp.lb": "TCP",
160
+ "CurrentPose.RelativeTo.lb": "Relative to",
161
+ "CurrentPose.Copied.lb": "Pose copied",
162
+ "CurrentPose.Copy.bt": "Copy",
163
+ "CurrentPose.EulerConvention.lb": "Euler convention",
164
+ "CurrentPose.EulerConvention.Intrinsic.hlb": "Intrinsic rotations",
165
+ "CurrentPose.EulerConvention.Extrinsic.hlb": "Extrinsic rotations",
166
+ "CurrentPose.Format.lb": "Format",
167
+ "CurrentPose.Format.RotationVector.lb": "Rotation vector",
168
+ "CurrentPose.Format.EulerAngles.lb": "Euler angles",
169
+ "CurrentPose.Format.Quaternion.lb": "Quaternion",
170
+ "CurrentPose.AngleUnit.lb": "Angle unit",
171
+ "CurrentPose.AngleUnit.Radians.lb": "Radians",
172
+ "CurrentPose.AngleUnit.Degrees.lb": "Degrees",
173
+ "JoggingGizmo.WebGLUnavailable.lb": "Gizmo controls need WebGL, which this browser does not provide.",
174
+ "Jogging.Handle.lb": "Jog {{handle}}",
175
+ "Jogging.StreamStateSection.Error.Collision.lb": "Cannot plan this motion: it would cause a collision",
176
+ "Jogging.StreamStateSection.Error.JointLimit.lb": "Cannot plan this motion: a joint limit would be exceeded",
177
+ "Jogging.StreamStateSection.Error.NoSolutionInConfiguration.lb": "Cannot plan this motion in the current robot configuration",
178
+ "Jogging.StreamStateSection.Error.OutOfWorkspace.lb": "Cannot plan this motion: the target is outside the robot's workspace",
179
+ "Jogging.StreamStateSection.Error.PlanningFailed.lb": "The requested motion could not be planned",
180
+ "Jogging.StreamStateSection.Error.Singularity.lb": "Cannot plan this motion: the path passes through a singularity. Try a different axis or jog the joints directly",
181
+ "CurrentPose.EulerConvention.Intrinsic.lb": "Intrinsic {{axes}}",
182
+ "CurrentPose.EulerConvention.Extrinsic.lb": "Extrinsic {{axes}}",
183
+ "Jogging.TargetPose.Error.Collision.lb": "Moving to the current pose would cause a collision. Please change the pose coordinates.",
184
+ "Jogging.TargetPose.Error.MoveFailed.lb": "The move to this pose failed: {{message}}",
185
+ "Jogging.TargetPose.Error.NotReachable.lb": "The current pose is not reachable. Please change the pose coordinates.",
186
+ "Jogging.TargetPose.Error.PlanningFailed.lb": "Planning a motion to this pose failed. Please change the pose coordinates.",
187
+ "Jogging.TargetPose.Error.Singularity.lb": "The current pose would create a singularity. Please change the pose coordinates."
188
+ }, n = l.createInstance();
189
+ n.use(g).init({
239
190
  supportedLngs: ["en", "de"],
240
191
  resources: {
241
192
  en: {
242
- translations: h
193
+ translations: u
243
194
  },
244
195
  de: {
245
- translations: f
196
+ translations: s
246
197
  }
247
198
  },
248
199
  ns: ["translations"],
249
200
  defaultNS: "translations",
250
201
  detection: {
251
- order: ["navigator", "htmlTag"]
202
+ order: ["navigator", "htmlTag"],
203
+ // Keep nothing in the app's storage: an app's own language detector
204
+ // uses the same localStorage key
205
+ caches: []
252
206
  }
253
207
  });
254
- function v(e) {
255
- const t = d(e);
256
- return ((o) => /* @__PURE__ */ g(R, { children: /* @__PURE__ */ g(t, { ...o }) }));
208
+ function y(e) {
209
+ const o = r(e);
210
+ return ((i) => /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(o, { ...i }) }));
257
211
  }
258
- const R = ({
212
+ const b = ({
259
213
  children: e
260
- }) => /* @__PURE__ */ g(m, { i18n: S, children: e });
214
+ }) => /* @__PURE__ */ t(a, { i18n: n, children: e });
261
215
  export {
262
- A as d,
263
- v as e,
264
- S as i,
265
- E as o,
266
- B as t,
267
- M as v
216
+ y as e,
217
+ n as i
268
218
  };
@@ -0,0 +1,2 @@
1
+ "use strict";const t=require("react/jsx-runtime"),r=require("react"),a=require("react-i18next"),l=require("i18next"),g=require("i18next-browser-languagedetector"),s={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}} mm","Jogging.Blocked.ti":"Verbindung blockiert","Jogging.Blocked.lb":"Ein anderer Client kontrolliert das Jogging.","Jogging.Blocked.Reenable.bt":"Neu verbinden","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung","Jogging.JointLimitsReached.lb":"Gelenkgrenzen für Gelenk {{jointNumbers}} erreicht","Jogging.Orientation.coordsys":"Roboterbasis","Jogging.Orientation.tool":"Werkzeug","Jogging.StreamStateSection.lb":"Status Stream:","Jogging.StreamStateSection.RUNNING.lb":"In Bewegung","Jogging.StreamStateSection.PAUSED_BY_USER.lb":"Pausiert (Nutzer)","Jogging.StreamStateSection.PAUSED_NEAR_COLLISION.lb":"Pausiert (Kollisionsnähe)","Jogging.StreamStateSection.PAUSED_NEAR_JOINT_LIMIT.lb":"Pausiert (nahe Gelenkgrenze)","Jogging.StreamStateSection.PAUSED_NEAR_SINGULARITY.lb":"Pausiert (nahe Singularität)","Jogging.StreamStateSection.PAUSED_ON_IO.lb":"Pausiert (I/O-Ereignis)","Jogging.StreamStateSection.END_OF_TRAJECTORY.lb":"Trajektorie beendet","Jogging.StreamStateSection.WAIT_FOR_IO.lb":"Warte auf I/O","Jogging.StreamStateSection.KIND_UNKNOWN.lb":"Bereit","SafetyBar.ActivationToggle.Activate.bt":"Aktivieren","SafetyBar.ActivationToggle.Activated.bt":"Aktiviert","SafetyBar.ActivationToggle.Activating.bt":"Wird aktiviert…","SafetyBar.ActivationToggle.Deactivating.bt":"Wird deaktiviert…","SafetyBar.ControllerType.Physical.lb":"Physisch","SafetyBar.ControllerType.Virtual.lb":"Virtuell","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> ist ein physische Robotersteuerung. Für die Bewegung dieses Roboters sind <strong>Sicherheitsmaßnahmen</strong> aktiv.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> ist eine virtuelle Robotersteuerung ohne physisches Gegenstück. Der Roboter kann ohne Sicherheitsmaßnahmen bewegt werden.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatischer Betriebsmodus der Robotersteuerung aktiv. Automatisierte Bewegung ohne manuelle Bestätigung freigegeben.","SafetyBar.OperationMode.Automatic.ti":"Automatisch","SafetyBar.OperationMode.Error.Explanation.lb":"Fehler beim Abrufen des Betriebsmodus. Originalhandbediengerät des Roboters verwenden, um Fehler zu lösen.","SafetyBar.OperationMode.Error.lb":"Fehler","SafetyBar.OperationMode.Manual.Explanation.lb":`Die Robotersteuerung befindet sich im manuellen Betriebsmodus.
2
+ Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabeschalter gedrückt werden muss, damit sich der Roboter erfolgreich bewegen kann.`,"SafetyBar.OperationMode.Manual.lb":"Manuell","SafetyBar.OperationMode.ti":"Betriebsmodus","SafetyBar.SafetyState.Error.Explanation.lb":"Die Robotersteuerung ist in einen unerwarteten Sicherheitszustand eingetreten.","SafetyBar.SafetyState.Error.lb":"Fehler","SafetyBar.SafetyState.Estop.lb":"NOT-AUS","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"Die Robotersteuerung ist in einen Sicherheitszustand eingetreten, der manuelle Maßnahmen zur Behebung erfordert.","SafetyBar.SafetyState.ManualActionRequired.lb":"Aktion erforderlich","SafetyBar.SafetyState.Normal.Explanation.lb":"Die Robotersteuerung befindet sich in einem sicheren Zustand. Roboterbewegungen sind möglich.","SafetyBar.SafetyState.Normal.lb":"Sicher","SafetyBar.SafetyState.Stop.Explanation.lb":"Die Robotersteuerung ist in einen Stoppzustand übergegangen. Bis der Stoppzustand aufgelöst ist, ist keine Bewegung mehr möglich.","SafetyBar.SafetyState.Stop.lb":"Stopp","SafetyBar.SafetyState.ti":"Sicherheitszustand","SafetyBar.StopState.Estop.Explanation.lb":"NOT-AUS aktiviert. NOT-AUS freischalten, um Roboter zu bewegen.","Jogging.Increment.hlb":"Schrittgröße","Jogging.CoordinateSystem.hlb":"Koordinatensystem","Jogging.Cartesian.bt":"Kartesisch","Jogging.Joints.bt":"Gelenke","Jogging.Velocity.bt":"Geschwindigkeit","CurrentPose.Title.lb":"Aktuelle Position","CurrentPose.OrientationFormat.ti":"Orientierungsformat","RobotControl.Tcp.lb":"TCP","CurrentPose.RelativeTo.lb":"Relativ zu","CurrentPose.Copied.lb":"Pose kopiert","CurrentPose.Copy.bt":"Kopieren","CurrentPose.EulerConvention.lb":"Euler-Konvention","CurrentPose.EulerConvention.Intrinsic.hlb":"Intrinsische Rotationen","CurrentPose.EulerConvention.Extrinsic.hlb":"Extrinsische Rotationen","CurrentPose.Format.lb":"Format","CurrentPose.Format.RotationVector.lb":"Rotationsvektor","CurrentPose.Format.EulerAngles.lb":"Euler-Winkel","CurrentPose.Format.Quaternion.lb":"Quaternion","CurrentPose.AngleUnit.lb":"Winkeleinheit","CurrentPose.AngleUnit.Radians.lb":"Radiant","CurrentPose.AngleUnit.Degrees.lb":"Grad","JoggingGizmo.WebGLUnavailable.lb":"Die Gizmo-Steuerung braucht WebGL, das dieser Browser nicht bietet.","Jogging.Handle.lb":"{{handle}} verfahren","Jogging.StreamStateSection.Error.Collision.lb":"Bewegung kann nicht geplant werden: sie würde zu einer Kollision führen","Jogging.StreamStateSection.Error.JointLimit.lb":"Bewegung kann nicht geplant werden: eine Gelenkgrenze würde überschritten","Jogging.StreamStateSection.Error.NoSolutionInConfiguration.lb":"Bewegung kann in der aktuellen Roboterkonfiguration nicht geplant werden","Jogging.StreamStateSection.Error.OutOfWorkspace.lb":"Bewegung kann nicht geplant werden: das Ziel liegt außerhalb des Arbeitsraums","Jogging.StreamStateSection.Error.PlanningFailed.lb":"Die angeforderte Bewegung konnte nicht geplant werden","Jogging.StreamStateSection.Error.Singularity.lb":"Bewegung kann nicht geplant werden: der Pfad führt durch eine Singularität. Versuche eine andere Achse oder bewege die Gelenke direkt","CurrentPose.EulerConvention.Intrinsic.lb":"Intrinsisch {{axes}}","CurrentPose.EulerConvention.Extrinsic.lb":"Extrinsisch {{axes}}","Jogging.TargetPose.Error.Collision.lb":"Die Bewegung zur aktuellen Pose würde eine Kollision verursachen. Bitte ändere die Posen-Koordinaten.","Jogging.TargetPose.Error.MoveFailed.lb":"Die Bewegung zu dieser Pose ist fehlgeschlagen: {{message}}","Jogging.TargetPose.Error.NotReachable.lb":"Die aktuelle Pose ist nicht erreichbar. Bitte ändere die Posen-Koordinaten.","Jogging.TargetPose.Error.PlanningFailed.lb":"Die Bewegung zu dieser Pose konnte nicht geplant werden. Bitte ändere die Posen-Koordinaten.","Jogging.TargetPose.Error.Singularity.lb":"Die aktuelle Pose würde eine Singularität erzeugen. Bitte ändere die Posen-Koordinaten."},u={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}} mm","Jogging.Blocked.ti":"Connection blocked","Jogging.Blocked.lb":"Another client is currently controlling the jogging.","Jogging.Blocked.Reenable.bt":"Reconnect","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}","Jogging.Orientation.coordsys":"Robot base","Jogging.Orientation.tool":"Tool","Jogging.StreamStateSection.lb":"State stream:","Jogging.StreamStateSection.RUNNING.lb":"Running","Jogging.StreamStateSection.PAUSED_BY_USER.lb":"Paused (by user)","Jogging.StreamStateSection.PAUSED_NEAR_COLLISION.lb":"Paused (collision proximity)","Jogging.StreamStateSection.PAUSED_NEAR_JOINT_LIMIT.lb":"Paused (near joint limit)","Jogging.StreamStateSection.PAUSED_NEAR_SINGULARITY.lb":"Paused (near singularity)","Jogging.StreamStateSection.PAUSED_ON_IO.lb":"Paused (I/O event)","Jogging.StreamStateSection.END_OF_TRAJECTORY.lb":"End of trajectory","Jogging.StreamStateSection.WAIT_FOR_IO.lb":"Waiting for I/O","Jogging.StreamStateSection.KIND_UNKNOWN.lb":"Ready","SafetyBar.ActivationToggle.Activate.bt":"Activate","SafetyBar.ActivationToggle.Activated.bt":"Activated","SafetyBar.ActivationToggle.Activating.bt":"Activating","SafetyBar.ActivationToggle.Deactivating.bt":"Deactivating","SafetyBar.ControllerType.Physical.lb":"Physical","SafetyBar.ControllerType.Virtual.lb":"Virtual","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> is a physical robot controller. <strong>Safety precautions</strong> are active for the movement of this robot.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> is a virtual robot controller with no physical counterpart. It can be freely manipulated without safety precautions.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatic operation mode active. Automated movement without manual confirmation enabled.","SafetyBar.OperationMode.Automatic.ti":"Automatic","SafetyBar.OperationMode.Error.Explanation.lb":"Failed to get operation mode. Use the original control panel to resolve the error.","SafetyBar.OperationMode.Error.lb":"Error","SafetyBar.OperationMode.Manual.Explanation.lb":"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully.","SafetyBar.OperationMode.Manual.lb":"Manual","SafetyBar.OperationMode.ti":"Operation mode","SafetyBar.SafetyState.Error.Explanation.lb":"The robot controller has entered an unexpected safety state.","SafetyBar.SafetyState.Error.lb":"Error","SafetyBar.SafetyState.Estop.lb":"E-Stop","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"The robot controller has entered a safety state requiring manual action to resolve.","SafetyBar.SafetyState.ManualActionRequired.lb":"Action required","SafetyBar.SafetyState.Normal.Explanation.lb":"The robot controller is in a safe state. Robot movement is enabled.","SafetyBar.SafetyState.Normal.lb":"Safe","SafetyBar.SafetyState.Stop.Explanation.lb":"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved.","SafetyBar.SafetyState.Stop.lb":"Stop","SafetyBar.SafetyState.ti":"Safety state","SafetyBar.StopState.Estop.Explanation.lb":"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released.","Jogging.Increment.hlb":"Increment","Jogging.CoordinateSystem.hlb":"Coordinate system","Jogging.Cartesian.bt":"Cartesian","Jogging.Joints.bt":"Joints","Jogging.Velocity.bt":"Velocity","CurrentPose.Title.lb":"Current position","CurrentPose.OrientationFormat.ti":"Orientation format","RobotControl.Tcp.lb":"TCP","CurrentPose.RelativeTo.lb":"Relative to","CurrentPose.Copied.lb":"Pose copied","CurrentPose.Copy.bt":"Copy","CurrentPose.EulerConvention.lb":"Euler convention","CurrentPose.EulerConvention.Intrinsic.hlb":"Intrinsic rotations","CurrentPose.EulerConvention.Extrinsic.hlb":"Extrinsic rotations","CurrentPose.Format.lb":"Format","CurrentPose.Format.RotationVector.lb":"Rotation vector","CurrentPose.Format.EulerAngles.lb":"Euler angles","CurrentPose.Format.Quaternion.lb":"Quaternion","CurrentPose.AngleUnit.lb":"Angle unit","CurrentPose.AngleUnit.Radians.lb":"Radians","CurrentPose.AngleUnit.Degrees.lb":"Degrees","JoggingGizmo.WebGLUnavailable.lb":"Gizmo controls need WebGL, which this browser does not provide.","Jogging.Handle.lb":"Jog {{handle}}","Jogging.StreamStateSection.Error.Collision.lb":"Cannot plan this motion: it would cause a collision","Jogging.StreamStateSection.Error.JointLimit.lb":"Cannot plan this motion: a joint limit would be exceeded","Jogging.StreamStateSection.Error.NoSolutionInConfiguration.lb":"Cannot plan this motion in the current robot configuration","Jogging.StreamStateSection.Error.OutOfWorkspace.lb":"Cannot plan this motion: the target is outside the robot's workspace","Jogging.StreamStateSection.Error.PlanningFailed.lb":"The requested motion could not be planned","Jogging.StreamStateSection.Error.Singularity.lb":"Cannot plan this motion: the path passes through a singularity. Try a different axis or jog the joints directly","CurrentPose.EulerConvention.Intrinsic.lb":"Intrinsic {{axes}}","CurrentPose.EulerConvention.Extrinsic.lb":"Extrinsic {{axes}}","Jogging.TargetPose.Error.Collision.lb":"Moving to the current pose would cause a collision. Please change the pose coordinates.","Jogging.TargetPose.Error.MoveFailed.lb":"The move to this pose failed: {{message}}","Jogging.TargetPose.Error.NotReachable.lb":"The current pose is not reachable. Please change the pose coordinates.","Jogging.TargetPose.Error.PlanningFailed.lb":"Planning a motion to this pose failed. Please change the pose coordinates.","Jogging.TargetPose.Error.Singularity.lb":"The current pose would create a singularity. Please change the pose coordinates."},n=l.createInstance();n.use(g).init({supportedLngs:["en","de"],resources:{en:{translations:u},de:{translations:s}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"],caches:[]}});function c(e){const o=r.memo(e);return(i=>t.jsx(b,{children:t.jsx(o,{...i})}))}const b=({children:e})=>t.jsx(a.I18nextProvider,{i18n:n,children:e});exports.externalizeComponent=c;exports.i18n=n;