@wandelbots/wandelbots-js-react-components 6.4.0-pr.revamp.667.a961def → 6.4.0-pr.revamp.667.bd2ec84

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 (83) hide show
  1. package/README.md +2 -1
  2. package/dist/3d.cjs +1 -1
  3. package/dist/3d.js +7 -7
  4. package/dist/CurrentPose/index.cjs +1 -1
  5. package/dist/CurrentPose/index.js +1 -1
  6. package/dist/CurrentPoseBar/index.cjs +1 -1
  7. package/dist/CurrentPoseBar/index.js +1 -1
  8. package/dist/JoggingButtons/index.cjs +1 -1
  9. package/dist/JoggingButtons/index.js +1 -1
  10. package/dist/JoggingGizmo/index.cjs +1 -1
  11. package/dist/JoggingGizmo/index.js +2 -2
  12. package/dist/JoggingJointSlider/index.cjs +1 -1
  13. package/dist/JoggingJointSlider/index.js +1 -1
  14. package/dist/RobotControl/index.cjs +1 -1
  15. package/dist/RobotControl/index.js +1 -1
  16. package/dist/RobotControlPanel/index.cjs +1 -1
  17. package/dist/RobotControlPanel/index.js +1 -1
  18. package/dist/RobotHeader/index.cjs +1 -1
  19. package/dist/RobotHeader/index.js +2 -2
  20. package/dist/RobotScene/index.cjs +1 -1
  21. package/dist/RobotScene/index.js +1 -1
  22. package/dist/RobotView/index.cjs +1 -1
  23. package/dist/RobotView/index.js +1 -1
  24. package/dist/SafetyBar/index.cjs +1 -1
  25. package/dist/SafetyBar/index.js +1 -1
  26. package/dist/chunks/{ConnectedMotionGroup-DRZePyKr.js → ConnectedMotionGroup-BifrgwV1.js} +38 -41
  27. package/dist/chunks/ConnectedMotionGroup-CybwJHkh.cjs +3 -0
  28. package/dist/chunks/{CurrentPose-B2k1YoBx.cjs → CurrentPose-CMqO8oqX.cjs} +1 -1
  29. package/dist/chunks/{CurrentPose-CMkPnaXN.js → CurrentPose-CdD2ZB7B.js} +2 -2
  30. package/dist/chunks/{CurrentPoseBar-C4wB482_.cjs → CurrentPoseBar-BTBAwIO4.cjs} +1 -1
  31. package/dist/chunks/{CurrentPoseBar-GhVif6kH.js → CurrentPoseBar-CX1xFBtm.js} +1 -1
  32. package/dist/chunks/{JoggingButtons-CDs_NWPT.cjs → JoggingButtons-BOHl7hVq.cjs} +1 -1
  33. package/dist/chunks/{JoggingButtons-dR1m8I9M.js → JoggingButtons-aijK-3g6.js} +1 -1
  34. package/dist/chunks/{JoggingGizmo-B84rMNKl.cjs → JoggingGizmo-CoKYUtXq.cjs} +1 -1
  35. package/dist/chunks/{JoggingGizmo-CZagy8VY.js → JoggingGizmo-DHvrJouR.js} +1 -1
  36. package/dist/chunks/{JoggingGizmoOrientation-C0Ip0s33.js → JoggingGizmoOrientation-CIvIAIeO.js} +1 -1
  37. package/dist/chunks/{JoggingGizmoOrientation-BrI3aOMk.cjs → JoggingGizmoOrientation-DVcagPRJ.cjs} +1 -1
  38. package/dist/chunks/{JoggingJointSlider-xz725ItY.cjs → JoggingJointSlider-CTFYKzsU.cjs} +1 -1
  39. package/dist/chunks/{JoggingJointSlider-DYjAzQZq.js → JoggingJointSlider-DQtt4-pa.js} +1 -1
  40. package/dist/chunks/JoggingRefusedError-BIkUM6-g.js +36 -0
  41. package/dist/chunks/JoggingRefusedError-BuCGsVsa.cjs +1 -0
  42. package/dist/chunks/PoseTransformer-2QIzECOZ.cjs +1 -0
  43. package/dist/chunks/{PoseTransformer-MLAm4_Ad.js → PoseTransformer-CmuoS76S.js} +1 -1
  44. package/dist/chunks/{Robot-B1j3VKwk.js → Robot-C-IWfxP9.js} +1 -1
  45. package/dist/chunks/{Robot-v8trFpVT.cjs → Robot-Cfhjv9Z8.cjs} +1 -1
  46. package/dist/chunks/RobotControl-Cv6Sr1Ni.js +289 -0
  47. package/dist/chunks/RobotControl-DFnOYMAa.cjs +1 -0
  48. package/dist/chunks/{RobotControlPanel-6HBz7oke.js → RobotControlPanel-B1_9g9D-.js} +320 -300
  49. package/dist/chunks/RobotControlPanel-BpTpRBgy.cjs +1 -0
  50. package/dist/chunks/{RobotScene-ztJZ4EKT.cjs → RobotScene-0ZJzXL50.cjs} +1 -1
  51. package/dist/chunks/{RobotScene-CldpfxRT.js → RobotScene-DpFeFpnx.js} +2 -2
  52. package/dist/chunks/{RobotView-wketM8bf.cjs → RobotView-BGYlAWj-.cjs} +1 -1
  53. package/dist/chunks/{RobotView-BTL3FAIE.js → RobotView-D-v8jCM7.js} +2 -2
  54. package/dist/chunks/{externalizeComponent-TgclPxwg.js → externalizeComponent-4juwPKL5.js} +4 -0
  55. package/dist/chunks/externalizeComponent-Br_U-QAr.cjs +2 -0
  56. package/dist/chunks/loadRobotSession-DYbeNnTI.cjs +1 -0
  57. package/dist/chunks/{loadRobotSession-CbIAb7KE.js → loadRobotSession-GHHtv5dv.js} +700 -528
  58. package/dist/chunks/{robotActivationOf-vhmAEc3e.cjs → robotActivationOf-B4oV10Za.cjs} +1 -1
  59. package/dist/chunks/{robotActivationOf-BKoP11GA.js → robotActivationOf-EzcT9g07.js} +2 -2
  60. package/dist/chunks/{robotSafetyOf-BmZMcgc_.js → robotSafetyOf-DuKKma1_.js} +1 -1
  61. package/dist/chunks/{robotSafetyOf-CZBuhHgO.cjs → robotSafetyOf-Dxm6s7Pp.cjs} +1 -1
  62. package/dist/components/robotControl/MoveToTab.d.ts +3 -1
  63. package/dist/core.cjs +1 -1
  64. package/dist/core.js +39 -39
  65. package/dist/index.cjs +1 -1
  66. package/dist/index.js +52 -52
  67. package/dist/lib/TrajectoryExecutionStore.d.ts +100 -7
  68. package/dist/lib/robotSession/RobotLiveState.d.ts +13 -4
  69. package/dist/lib/robotSession/RobotSession.d.ts +3 -1
  70. package/dist/lib/robotSession/RobotTargetPose.d.ts +44 -8
  71. package/dist/lib/robotSession/robotPose.d.ts +5 -0
  72. package/dist/session.cjs +1 -1
  73. package/dist/session.js +33 -33
  74. package/package.json +1 -1
  75. package/dist/chunks/ConnectedMotionGroup-CV-9JcMR.cjs +0 -3
  76. package/dist/chunks/JoggingRefusedError-2q4x_fDF.cjs +0 -1
  77. package/dist/chunks/JoggingRefusedError-M954yLQO.js +0 -23
  78. package/dist/chunks/PoseTransformer-C_EfofnJ.cjs +0 -1
  79. package/dist/chunks/RobotControl-C7c6MWyL.js +0 -282
  80. package/dist/chunks/RobotControl-CD9PKmrE.cjs +0 -1
  81. package/dist/chunks/RobotControlPanel-69F3kOBc.cjs +0 -1
  82. package/dist/chunks/externalizeComponent-BW1UV6Gh.cjs +0 -2
  83. package/dist/chunks/loadRobotSession-Br55rLAm.cjs +0 -1
package/README.md CHANGED
@@ -333,7 +333,7 @@ const [active, setActive] = useState<number | null>(null)
333
333
  - `disabled` turns off every control: nothing may move. `jogDisabled` turns off only the jogging of Translate, Rotate and Joint, e.g. while a trajectory moves the robot; Move to stays usable, so a move of its own does not end when the app locks jogging during it.
334
334
  - The panel keeps its tab, jog mode and step size itself. An app that keeps them in its own store (to remember them, or because its jogging depends on them) gives `tab`, `jogMode` and `increments.step`, and gets `onTabChange`, `onJogModeChange` and `increments.onStepChange`; each also works alone, to follow a choice without keeping it.
335
335
  - `joints` gives the Joint tab: the joints' values and limits (rad, or mm with `linear`), their names, the joint velocity, and `onJogStart(index, direction)` and `onJogStop`. The panel jogs one joint at a time; the turn-around of a slider brings `onJogStop` and `onJogStart` in the same event, as described for `JoggingJointSlider`. Without `joints`, there is no Joint tab.
336
- - `moveTo` gives the Move to tab. It works as RobotPad's pose field: the coordinates `(x, y, z, rx, ry, rz)` (mm, rotation vector in rad: the format RobotPad copies and pastes) show the TCP's current pose (`getCurrentPose`, read every animation frame), with Copy and Edit pose, and Move to, off until a pose is the target. Edit pose, or a click on the field, makes it editable; Save pose edit (Enter) makes the typed pose the target (`onTargetChange(pose)`): the app plans the move and loads it, and reports `state` (`"planning"`, `"planned"`, `"moving"`, `"stopping"` or `"idle"`, as RobotPad's trajectory) and an `error` (e.g. out of reach). Then Reset shows. Held with a pointer for 200 ms while `"planned"`, Move to calls `onMoveStart(pose)`; the release, or the pointer leaving the button, calls `onMoveStop`: the app starts and pauses its trajectory (the keyboard starts no move); the button says Moving… and Stopping…. At the target (within 0.5 mm and 0.01 rad) it turns off; once the move no longer runs, the field shows the current pose again (`onTargetChange(null)`), as do Reset, another tab and another TCP or frame (a held move gets its `onMoveStop` first). While another pose is typed, Move to stays off. `frame` is the "Relative to" select. It moves with `velocity.translate`. Without `moveTo`, there is no Move to tab.
336
+ - `moveTo` gives the Move to tab. It works as RobotPad's pose field: the coordinates `(x, y, z, rx, ry, rz)` (mm, rotation vector in rad: the format RobotPad copies and pastes) show the TCP's current pose (`getCurrentPose`, read every animation frame), with Copy and Edit pose, and Move to, off until a pose is the target. Edit pose, or a click on the field, makes it editable; Save pose edit (Enter) makes the typed pose the target (`onTargetChange(pose)`): the app plans the move and loads it, and reports `state` (`"planning"`, `"planned"`, `"moving"`, `"stopping"` or `"idle"`, as RobotPad's trajectory) and an `error` (e.g. out of reach, or why the move to it failed). Then Reset shows, and with an `error` also Plan again, which gives the app the same pose once more (`onTargetChange(pose)`), so a failed move needs no typing. Held with a pointer for 200 ms while `"planned"`, Move to calls `onMoveStart(pose)`; the release, or the pointer leaving the button, calls `onMoveStop`: the app starts and pauses its trajectory (the keyboard starts no move); the button says Moving… and Stopping…. At the target (within 0.5 mm and 0.01 rad) it turns off; once the move no longer runs, the field shows the current pose again (`onTargetChange(null)`), as do Reset, another tab and another TCP or frame (a held move gets its `onMoveStop` first). While another pose is typed, Move to stays off. `frame` is the "Relative to" select. It moves with `velocity.translate`. Without `moveTo`, there is no Move to tab.
337
337
 
338
338
  ```tsx
339
339
  const orientation = useRef<Quaternion | null>(null)
@@ -424,6 +424,7 @@ Safety components for production environments.
424
424
  ### Logic
425
425
 
426
426
  - **loadRobotSession** and **RobotSession** - A robot of a cell, loaded and connected: its description, live state, safety, activation, jogging and Move to
427
+ - **TrajectoryExecutionStore** (`session.trajectory`) and **RobotTargetPose** (`session.targetPose`) - Move to without a UI. `planTrajectory(target)` plans a trajectory and loads it; `hold(target)` moves along it while a button is held and `release()` stops the robot, whatever the order of NOVA's messages, and both are safe to repeat. `hold` starts nothing along a trajectory that was planned for another target, or with another velocity than the jogging store has now (`isPlanOutdated`: plan it again). `targetPose.plan(pose)`, `holdMove(pose)` and `releaseMove()` do the same for the typed pose that the Robot control shows, which also keeps why its plan or its move failed (`staged.errorKey`, `staged.errorMessage`)
427
428
  - **ConnectedMotionGroup** (deprecated, see [From ConnectedMotionGroup to RobotSession](#from-connectedmotiongroup-to-robotsession)) - A motion group with its live motion state, safety state and operation mode
428
429
  - **MotionStreamConnection** and **JoggerConnection** - The motion state stream and the jogging connection of a motion group
429
430
  - **jointValuesEqual**, **poseEqual**, **tcpMotionEqual**, **unwrapRotationVector** - Helpers for the motion state
package/dist/3d.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/Robot-v8trFpVT.cjs"),o=require("./chunks/RobotScene-ztJZ4EKT.cjs"),a=require("./chunks/JoggingGizmo-B84rMNKl.cjs"),s=require("./chunks/JoggingGizmoOrientation-BrI3aOMk.cjs"),u=require("./chunks/RobotControlPanel-69F3kOBc.cjs"),r=require("./chunks/RobotControl-CD9PKmrE.cjs"),n=require("./chunks/RobotView-wketM8bf.cjs"),i=require("./chunks/useSmoothedMotionState-B9WO73k0.cjs"),t=require("./chunks/Pose3-Ch4xVeXV.cjs");exports.CollisionSceneRenderer=e.CollisionSceneRenderer;exports.JointLimitGizmo=e.JointLimitGizmo;exports.LinearAxis=e.LinearAxis;exports.Robot=e.Robot;exports.TrajectoryRenderer=e.TrajectoryRenderer;exports.FLANGE_NODE_SUFFIX=o.FLANGE_NODE_SUFFIX;exports.JOINT_NODE_NAME=o.JOINT_NODE_NAME;exports.JOINT_REST_SUFFIX=o.JOINT_REST_SUFFIX;exports.JoggingAxes=o.JoggingAxes;exports.MODEL_ROTATION=o.MODEL_ROTATION;exports.MotionGroupVisualizer=o.MotionGroupVisualizer;exports.MotionGroupVisualizerExact=o.MotionGroupVisualizerExact;exports.PresetEnvironment=o.PresetEnvironment;exports.RobotScene=o.RobotScene;exports.RobotSceneView=o.RobotSceneView;exports.SafetyZonesRenderer=o.SafetyZonesRenderer;exports.SupportedLinearAxis=o.SupportedLinearAxis;exports.SupportedLinearAxisExact=o.SupportedLinearAxisExact;exports.SupportedRobot=o.SupportedRobot;exports.SupportedRobotExact=o.SupportedRobotExact;exports.defaultGetModel=o.defaultGetModel;exports.jointIndexOf=o.jointIndexOf;exports.revokeAllModelUrls=o.revokeAllModelUrls;exports.robotModelOf=o.robotModelOf;exports.useRobotSceneProps=o.useRobotSceneProps;exports.JoggingGizmo=a.JoggingGizmo;exports.JoggingGizmoOrientation=s.JoggingGizmoOrientation;exports.RobotControlPanel=u.RobotControlPanel;exports.RobotControl=r.RobotControl;exports.useRobotControlProps=r.useRobotControlProps;exports.RobotCanvas=n.RobotCanvas;exports.RobotView=n.RobotView;exports.ValueInterpolator=i.ValueInterpolator;exports.useSmoothedMotionState=i.useSmoothedMotionState;exports.Pose3=t.Pose3;exports.parseRotationToQuaternion=t.parseRotationToQuaternion;exports.quaternionToRotationVector=t.quaternionToRotationVector;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/Robot-Cfhjv9Z8.cjs"),o=require("./chunks/RobotScene-0ZJzXL50.cjs"),a=require("./chunks/JoggingGizmo-CoKYUtXq.cjs"),s=require("./chunks/JoggingGizmoOrientation-DVcagPRJ.cjs"),u=require("./chunks/RobotControlPanel-BpTpRBgy.cjs"),r=require("./chunks/RobotControl-DFnOYMAa.cjs"),n=require("./chunks/RobotView-BGYlAWj-.cjs"),i=require("./chunks/useSmoothedMotionState-B9WO73k0.cjs"),t=require("./chunks/Pose3-Ch4xVeXV.cjs");exports.CollisionSceneRenderer=e.CollisionSceneRenderer;exports.JointLimitGizmo=e.JointLimitGizmo;exports.LinearAxis=e.LinearAxis;exports.Robot=e.Robot;exports.TrajectoryRenderer=e.TrajectoryRenderer;exports.FLANGE_NODE_SUFFIX=o.FLANGE_NODE_SUFFIX;exports.JOINT_NODE_NAME=o.JOINT_NODE_NAME;exports.JOINT_REST_SUFFIX=o.JOINT_REST_SUFFIX;exports.JoggingAxes=o.JoggingAxes;exports.MODEL_ROTATION=o.MODEL_ROTATION;exports.MotionGroupVisualizer=o.MotionGroupVisualizer;exports.MotionGroupVisualizerExact=o.MotionGroupVisualizerExact;exports.PresetEnvironment=o.PresetEnvironment;exports.RobotScene=o.RobotScene;exports.RobotSceneView=o.RobotSceneView;exports.SafetyZonesRenderer=o.SafetyZonesRenderer;exports.SupportedLinearAxis=o.SupportedLinearAxis;exports.SupportedLinearAxisExact=o.SupportedLinearAxisExact;exports.SupportedRobot=o.SupportedRobot;exports.SupportedRobotExact=o.SupportedRobotExact;exports.defaultGetModel=o.defaultGetModel;exports.jointIndexOf=o.jointIndexOf;exports.revokeAllModelUrls=o.revokeAllModelUrls;exports.robotModelOf=o.robotModelOf;exports.useRobotSceneProps=o.useRobotSceneProps;exports.JoggingGizmo=a.JoggingGizmo;exports.JoggingGizmoOrientation=s.JoggingGizmoOrientation;exports.RobotControlPanel=u.RobotControlPanel;exports.RobotControl=r.RobotControl;exports.useRobotControlProps=r.useRobotControlProps;exports.RobotCanvas=n.RobotCanvas;exports.RobotView=n.RobotView;exports.ValueInterpolator=i.ValueInterpolator;exports.useSmoothedMotionState=i.useSmoothedMotionState;exports.Pose3=t.Pose3;exports.parseRotationToQuaternion=t.parseRotationToQuaternion;exports.quaternionToRotationVector=t.quaternionToRotationVector;
package/dist/3d.js CHANGED
@@ -1,10 +1,10 @@
1
- import { C as a, J as t, L as r, R as s, T as n } from "./chunks/Robot-B1j3VKwk.js";
2
- import { F as p, J as R, a as l, b as u, M as x, c as m, d as S, P as d, R as f, e as b, S as c, f as g, g as E, h as J, i as O, j as M, k as T, r as A, l as G, u as I } from "./chunks/RobotScene-CldpfxRT.js";
3
- import { J as N } from "./chunks/JoggingGizmo-CZagy8VY.js";
4
- import { J as V } from "./chunks/JoggingGizmoOrientation-C0Ip0s33.js";
5
- import { R as C } from "./chunks/RobotControlPanel-6HBz7oke.js";
6
- import { R as z, u as j } from "./chunks/RobotControl-C7c6MWyL.js";
7
- import { R as D, a as U } from "./chunks/RobotView-BTL3FAIE.js";
1
+ import { C as a, J as t, L as r, R as s, T as n } from "./chunks/Robot-C-IWfxP9.js";
2
+ import { F as p, J as R, a as l, b as u, M as x, c as m, d as S, P as d, R as f, e as b, S as c, f as g, g as E, h as J, i as O, j as M, k as T, r as A, l as G, u as I } from "./chunks/RobotScene-DpFeFpnx.js";
3
+ import { J as N } from "./chunks/JoggingGizmo-DHvrJouR.js";
4
+ import { J as V } from "./chunks/JoggingGizmoOrientation-CIvIAIeO.js";
5
+ import { R as C } from "./chunks/RobotControlPanel-B1_9g9D-.js";
6
+ import { R as z, u as j } from "./chunks/RobotControl-Cv6Sr1Ni.js";
7
+ import { R as D, a as U } from "./chunks/RobotView-D-v8jCM7.js";
8
8
  import { V as k, a as q } from "./chunks/useSmoothedMotionState-BSSV8aZN.js";
9
9
  import { P as y, p as X, q as Q } from "./chunks/Pose3-B_fLR-Wv.js";
10
10
  export {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/CurrentPose-B2k1YoBx.cjs"),o=require("../chunks/RobotSessionProvider--AekyPqD.cjs");exports.CurrentPose=e.CurrentPose;exports.default=e.CurrentPose;exports.useCurrentPoseProps=e.useCurrentPoseProps;exports.RobotSessionProvider=o.RobotSessionProvider;exports.useRobotSession=o.useRobotSession;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/CurrentPose-CMqO8oqX.cjs"),o=require("../chunks/RobotSessionProvider--AekyPqD.cjs");exports.CurrentPose=e.CurrentPose;exports.default=e.CurrentPose;exports.useCurrentPoseProps=e.useCurrentPoseProps;exports.RobotSessionProvider=o.RobotSessionProvider;exports.useRobotSession=o.useRobotSession;
@@ -1,4 +1,4 @@
1
- import { C as e, C as r, u as t } from "../chunks/CurrentPose-CMkPnaXN.js";
1
+ import { C as e, C as r, u as t } from "../chunks/CurrentPose-CdD2ZB7B.js";
2
2
  import { R as a, u as n } from "../chunks/RobotSessionProvider-TVaKGzqa.js";
3
3
  export {
4
4
  e as CurrentPose,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/CurrentPoseBar-C4wB482_.cjs");exports.CurrentPoseBar=e.CurrentPoseBar;exports.default=e.CurrentPoseBar;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/CurrentPoseBar-BTBAwIO4.cjs");exports.CurrentPoseBar=e.CurrentPoseBar;exports.default=e.CurrentPoseBar;
@@ -1,4 +1,4 @@
1
- import { C as e, C as o } from "../chunks/CurrentPoseBar-GhVif6kH.js";
1
+ import { C as e, C as o } from "../chunks/CurrentPoseBar-CX1xFBtm.js";
2
2
  export {
3
3
  e as CurrentPoseBar,
4
4
  o as default
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../chunks/JoggingButtons-CDs_NWPT.cjs");exports.JoggingButtons=t.JoggingButtons;exports.default=t.JoggingButtons;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../chunks/JoggingButtons-BOHl7hVq.cjs");exports.JoggingButtons=t.JoggingButtons;exports.default=t.JoggingButtons;
@@ -1,4 +1,4 @@
1
- import { J as a, J as g } from "../chunks/JoggingButtons-dR1m8I9M.js";
1
+ import { J as a, J as g } from "../chunks/JoggingButtons-aijK-3g6.js";
2
2
  export {
3
3
  a as JoggingButtons,
4
4
  g as default
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../chunks/JoggingGizmo-B84rMNKl.cjs"),o=require("../chunks/JoggingGizmoOrientation-BrI3aOMk.cjs");exports.JoggingGizmo=i.JoggingGizmo;exports.default=i.JoggingGizmo;exports.JoggingGizmoOrientation=o.JoggingGizmoOrientation;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../chunks/JoggingGizmo-CoKYUtXq.cjs"),o=require("../chunks/JoggingGizmoOrientation-DVcagPRJ.cjs");exports.JoggingGizmo=i.JoggingGizmo;exports.default=i.JoggingGizmo;exports.JoggingGizmoOrientation=o.JoggingGizmoOrientation;
@@ -1,5 +1,5 @@
1
- import { J as i, J as a } from "../chunks/JoggingGizmo-CZagy8VY.js";
2
- import { J as t } from "../chunks/JoggingGizmoOrientation-C0Ip0s33.js";
1
+ import { J as i, J as a } from "../chunks/JoggingGizmo-DHvrJouR.js";
2
+ import { J as t } from "../chunks/JoggingGizmoOrientation-CIvIAIeO.js";
3
3
  export {
4
4
  i as JoggingGizmo,
5
5
  t as JoggingGizmoOrientation,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/JoggingJointSlider-xz725ItY.cjs");exports.JoggingJointSlider=e.JoggingJointSlider;exports.default=e.JoggingJointSlider;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/JoggingJointSlider-CTFYKzsU.cjs");exports.JoggingJointSlider=e.JoggingJointSlider;exports.default=e.JoggingJointSlider;
@@ -1,4 +1,4 @@
1
- import { J as a, J as e } from "../chunks/JoggingJointSlider-DYjAzQZq.js";
1
+ import { J as a, J as e } from "../chunks/JoggingJointSlider-DQtt4-pa.js";
2
2
  export {
3
3
  a as JoggingJointSlider,
4
4
  e as default
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotControl-CD9PKmrE.cjs"),e=require("../chunks/RobotSessionProvider--AekyPqD.cjs");exports.RobotControl=o.RobotControl;exports.default=o.RobotControl;exports.useRobotControlProps=o.useRobotControlProps;exports.RobotSessionProvider=e.RobotSessionProvider;exports.useRobotSession=e.useRobotSession;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotControl-DFnOYMAa.cjs"),e=require("../chunks/RobotSessionProvider--AekyPqD.cjs");exports.RobotControl=o.RobotControl;exports.default=o.RobotControl;exports.useRobotControlProps=o.useRobotControlProps;exports.RobotSessionProvider=e.RobotSessionProvider;exports.useRobotSession=e.useRobotSession;
@@ -1,4 +1,4 @@
1
- import { R as r, R as t, u as e } from "../chunks/RobotControl-C7c6MWyL.js";
1
+ import { R as r, R as t, u as e } from "../chunks/RobotControl-Cv6Sr1Ni.js";
2
2
  import { R as a, u } from "../chunks/RobotSessionProvider-TVaKGzqa.js";
3
3
  export {
4
4
  r as RobotControl,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotControlPanel-69F3kOBc.cjs");exports.RobotControlPanel=o.RobotControlPanel;exports.default=o.RobotControlPanel;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotControlPanel-BpTpRBgy.cjs");exports.RobotControlPanel=o.RobotControlPanel;exports.default=o.RobotControlPanel;
@@ -1,4 +1,4 @@
1
- import { R as t, R as e } from "../chunks/RobotControlPanel-6HBz7oke.js";
1
+ import { R as t, R as e } from "../chunks/RobotControlPanel-B1_9g9D-.js";
2
2
  export {
3
3
  t as RobotControlPanel,
4
4
  e as default
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/robotActivationOf-vhmAEc3e.cjs"),t=require("../chunks/robotSafetyOf-CZBuhHgO.cjs");exports.ConnectionWarning=o.ConnectionWarning;exports.RobotHeader=o.RobotHeader;exports.connectionWarningOf=o.connectionWarningOf;exports.default=o.RobotHeader;exports.robotActivationOf=o.robotActivationOf;exports.robotSafetyOf=t.robotSafetyOf;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/robotActivationOf-B4oV10Za.cjs"),t=require("../chunks/robotSafetyOf-Dxm6s7Pp.cjs");exports.ConnectionWarning=o.ConnectionWarning;exports.RobotHeader=o.RobotHeader;exports.connectionWarningOf=o.connectionWarningOf;exports.default=o.RobotHeader;exports.robotActivationOf=o.robotActivationOf;exports.robotSafetyOf=t.robotSafetyOf;
@@ -1,5 +1,5 @@
1
- import { C as n, R as r, c as t, R as e, r as f } from "../chunks/robotActivationOf-BKoP11GA.js";
2
- import { r as s } from "../chunks/robotSafetyOf-BmZMcgc_.js";
1
+ import { C as n, R as r, c as t, R as e, r as f } from "../chunks/robotActivationOf-EzcT9g07.js";
2
+ import { r as s } from "../chunks/robotSafetyOf-DuKKma1_.js";
3
3
  export {
4
4
  n as ConnectionWarning,
5
5
  r as RobotHeader,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/RobotScene-ztJZ4EKT.cjs"),o=require("../chunks/RobotSessionProvider--AekyPqD.cjs");exports.JoggingAxes=e.JoggingAxes;exports.RobotScene=e.RobotScene;exports.RobotSceneView=e.RobotSceneView;exports.default=e.RobotScene;exports.useRobotSceneProps=e.useRobotSceneProps;exports.RobotSessionProvider=o.RobotSessionProvider;exports.useRobotSession=o.useRobotSession;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/RobotScene-0ZJzXL50.cjs"),o=require("../chunks/RobotSessionProvider--AekyPqD.cjs");exports.JoggingAxes=e.JoggingAxes;exports.RobotScene=e.RobotScene;exports.RobotSceneView=e.RobotSceneView;exports.default=e.RobotScene;exports.useRobotSceneProps=e.useRobotSceneProps;exports.RobotSessionProvider=o.RobotSessionProvider;exports.useRobotSession=o.useRobotSession;
@@ -1,4 +1,4 @@
1
- import { b as s, R as a, e as t, R, u as r } from "../chunks/RobotScene-CldpfxRT.js";
1
+ import { b as s, R as a, e as t, R, u as r } from "../chunks/RobotScene-DpFeFpnx.js";
2
2
  import { R as n, u as i } from "../chunks/RobotSessionProvider-TVaKGzqa.js";
3
3
  export {
4
4
  s as JoggingAxes,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotView-wketM8bf.cjs"),e=require("../chunks/RobotSessionProvider--AekyPqD.cjs");exports.RobotCanvas=o.RobotCanvas;exports.RobotView=o.RobotView;exports.default=o.RobotView;exports.RobotSessionProvider=e.RobotSessionProvider;exports.useRobotSession=e.useRobotSession;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotView-BGYlAWj-.cjs"),e=require("../chunks/RobotSessionProvider--AekyPqD.cjs");exports.RobotCanvas=o.RobotCanvas;exports.RobotView=o.RobotView;exports.default=o.RobotView;exports.RobotSessionProvider=e.RobotSessionProvider;exports.useRobotSession=e.useRobotSession;
@@ -1,4 +1,4 @@
1
- import { R as a, a as e, a as t } from "../chunks/RobotView-BTL3FAIE.js";
1
+ import { R as a, a as e, a as t } from "../chunks/RobotView-D-v8jCM7.js";
2
2
  import { R, u as b } from "../chunks/RobotSessionProvider-TVaKGzqa.js";
3
3
  export {
4
4
  a as RobotCanvas,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/robotSafetyOf-CZBuhHgO.cjs");exports.SafetyBar=e.SafetyBar;exports.default=e.SafetyBar;exports.robotSafetyOf=e.robotSafetyOf;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/robotSafetyOf-Dxm6s7Pp.cjs");exports.SafetyBar=e.SafetyBar;exports.default=e.SafetyBar;exports.robotSafetyOf=e.robotSafetyOf;
@@ -1,4 +1,4 @@
1
- import { S as r, S as t, r as e } from "../chunks/robotSafetyOf-BmZMcgc_.js";
1
+ import { S as r, S as t, r as e } from "../chunks/robotSafetyOf-DuKKma1_.js";
2
2
  export {
3
3
  r as SafetyBar,
4
4
  t as default,
@@ -12,7 +12,7 @@ import { RoundedIconButton as Et } from "@wandelbots/mui";
12
12
  import { observer as M, useLocalObservable as pt } from "mobx-react-lite";
13
13
  import * as b from "react";
14
14
  import { useState as G, forwardRef as L, useEffect as K, useRef as q, useId as kt } from "react";
15
- import { e as H } from "./externalizeComponent-TgclPxwg.js";
15
+ import { e as H } from "./externalizeComponent-4juwPKL5.js";
16
16
  import It from "@mui/icons-material/OpenWith";
17
17
  import Jt from "@mui/icons-material/Share";
18
18
  import v from "@mui/material/Stack";
@@ -20,40 +20,37 @@ import Rt from "@mui/material/Tab";
20
20
  import _t from "@mui/material/Tabs";
21
21
  import { runInAction as w, makeAutoObservable as Pt } from "mobx";
22
22
  import { useTranslation as _ } from "react-i18next";
23
- import { O as Ot, J as At, a as Vt, n as Dt, t as Lt } from "./loadRobotSession-CbIAb7KE.js";
23
+ import { O as Ot, J as At, a as Vt, n as Dt, t as Lt } from "./loadRobotSession-GHHtv5dv.js";
24
24
  import mt from "@mui/material/CircularProgress";
25
25
  import { capitalize as $t } from "@mui/material/utils";
26
- import { lowerFirst as Bt } from "lodash-es";
27
- import { m as zt } from "./robotSafetyOf-BmZMcgc_.js";
28
- import Ft from "@mui/material/Alert";
29
- import Nt from "@mui/material/AlertTitle";
26
+ import { throttle as Bt, lowerFirst as zt, isEqual as Ft, isNumber as Nt } from "lodash-es";
27
+ import { m as Gt } from "./robotSafetyOf-DuKKma1_.js";
28
+ import Ht from "@mui/material/Alert";
29
+ import Wt from "@mui/material/AlertTitle";
30
30
  import et from "@mui/material/Button";
31
31
  import { useTheme as $, styled as ht } from "@mui/material/styles";
32
32
  import D from "@mui/material/Divider";
33
33
  import rt from "@mui/material/ToggleButton";
34
- import { radiansToDegrees as ft, XYZ_TO_VECTOR as at, degreesToRadians as Gt, tryParseJson as W } from "@wandelbots/nova-js";
34
+ import { radiansToDegrees as ft, XYZ_TO_VECTOR as at, degreesToRadians as Ut, tryParseJson as W } from "@wandelbots/nova-js";
35
35
  import X from "@mui/material/IconButton";
36
36
  import { c as nt } from "./useSmoothedMotionState-BSSV8aZN.js";
37
- import { e as lt, v as Ht, c as Q } from "./joggingColors-sb6IFdj2.js";
38
- import Wt from "lodash-es/isEqual.js";
39
- import Ut from "@mui/material/InputAdornment";
40
- import Yt from "@mui/material/FormControl";
41
- import Zt from "@mui/material/InputLabel";
42
- import Kt from "@mui/material/Select";
43
- import Xt from "@mui/material/ToggleButtonGroup";
37
+ import { e as lt, v as Yt, c as Q } from "./joggingColors-sb6IFdj2.js";
38
+ import Zt from "@mui/material/InputAdornment";
39
+ import Kt from "@mui/material/FormControl";
40
+ import Xt from "@mui/material/InputLabel";
41
+ import qt from "@mui/material/Select";
42
+ import Qt from "@mui/material/ToggleButtonGroup";
44
43
  import xt from "@mui/material/Slider";
45
- import qt from "lodash-es/isNumber.js";
46
44
  import { JointTypeEnum as U } from "@wandelbots/nova-js/v2";
47
- import Qt from "@mui/icons-material/ChevronLeft";
48
- import te from "@mui/icons-material/ChevronRight";
49
- import ee from "lodash-es/throttle.js";
45
+ import te from "@mui/icons-material/ChevronLeft";
46
+ import ee from "@mui/icons-material/ChevronRight";
50
47
  import oe from "@mui/material/Dialog";
51
48
  import ne from "@mui/material/DialogActions";
52
49
  import ie from "@mui/material/DialogContent";
53
50
  import re from "@mui/material/DialogTitle";
54
51
  import * as ct from "three";
55
- import { g as tt, h as st } from "./PoseTransformer-MLAm4_Ad.js";
56
- const Ro = H(
52
+ import { g as tt, h as st } from "./PoseTransformer-CmuoS76S.js";
53
+ const ko = H(
57
54
  M((t) => {
58
55
  const {
59
56
  appIcon: e,
@@ -346,7 +343,7 @@ const Ro = H(
346
343
  stopJogging() {
347
344
  this.activeJoggingDir = null, e();
348
345
  }
349
- })), x = ee(() => {
346
+ })), x = Bt(() => {
350
347
  const f = a ? h(c()) : c();
351
348
  (f === void 0 || m === void 0 || Math.abs(m - f) > 1e-9) && y(f);
352
349
  }, 50);
@@ -426,7 +423,7 @@ const Ro = H(
426
423
  ...l.activeJoggingDir === "-" ? s : {}
427
424
  },
428
425
  children: /* @__PURE__ */ o(
429
- Qt,
426
+ te,
430
427
  {
431
428
  sx: {
432
429
  pointerEvents: "none",
@@ -526,7 +523,7 @@ const Ro = H(
526
523
  ...l.activeJoggingDir === "+" ? s : {}
527
524
  },
528
525
  children: /* @__PURE__ */ o(
529
- te,
526
+ ee,
530
527
  {
531
528
  sx: {
532
529
  pointerEvents: "none",
@@ -581,7 +578,7 @@ const Ro = H(
581
578
  }
582
579
  );
583
580
  }, ue = (t) => {
584
- const e = zt(t.error), n = t.error instanceof Error ? t.error.stack : null;
581
+ const e = Gt(t.error), n = t.error instanceof Error ? t.error.stack : null;
585
582
  return /* @__PURE__ */ p(
586
583
  v,
587
584
  {
@@ -593,7 +590,7 @@ const Ro = H(
593
590
  color: "error.main"
594
591
  },
595
592
  children: [
596
- /* @__PURE__ */ o(C, { variant: "body1", children: (t.loadingMessage ? `Error while ${Bt($t(t.loadingMessage))} - ` : "") + e }),
593
+ /* @__PURE__ */ o(C, { variant: "body1", children: (t.loadingMessage ? `Error while ${zt($t(t.loadingMessage))} - ` : "") + e }),
597
594
  n && /* @__PURE__ */ o(
598
595
  O,
599
596
  {
@@ -629,8 +626,8 @@ const Ro = H(
629
626
  alignItems: "flex-start"
630
627
  },
631
628
  children: /* @__PURE__ */ p(v, { sx: { m: 2, width: "100%" }, children: [
632
- /* @__PURE__ */ p(Ft, { severity: "error", sx: { mb: 2 }, children: [
633
- /* @__PURE__ */ o(Nt, { children: e("Jogging.Blocked.ti") }),
629
+ /* @__PURE__ */ p(Ht, { severity: "error", sx: { mb: 2 }, children: [
630
+ /* @__PURE__ */ o(Wt, { children: e("Jogging.Blocked.ti") }),
634
631
  e("Jogging.Blocked.lb")
635
632
  ] }),
636
633
  /* @__PURE__ */ o(
@@ -668,7 +665,7 @@ const Ro = H(
668
665
  ), a = q(n);
669
666
  nt(() => {
670
667
  const d = t.jogger.motionStream.rapidlyChangingMotionState.joint_limit_reached.limit_reached;
671
- Wt(a.current, d) || (a.current = d, r(d));
668
+ Ft(a.current, d) || (a.current = d, r(d));
672
669
  });
673
670
  const c = [];
674
671
  for (const [d, i] of n.entries())
@@ -701,7 +698,7 @@ const Ro = H(
701
698
  }
702
699
  );
703
700
  }
704
- ), Se = ht(Yt)(({ theme: t }) => ({
701
+ ), Se = ht(Kt)(({ theme: t }) => ({
705
702
  "&.MuiFormControl-root": {
706
703
  ".MuiSelect-select": {
707
704
  paddingTop: "20px",
@@ -723,8 +720,8 @@ function Y({
723
720
  ...e
724
721
  }) {
725
722
  return /* @__PURE__ */ p(Se, { fullWidth: !0, variant: "filled", children: [
726
- /* @__PURE__ */ o(Zt, { id: e.labelId, children: t }),
727
- /* @__PURE__ */ o(Kt, { ...e })
723
+ /* @__PURE__ */ o(Xt, { id: e.labelId, children: t }),
724
+ /* @__PURE__ */ o(qt, { ...e })
728
725
  ] });
729
726
  }
730
727
  const we = M(
@@ -772,7 +769,7 @@ const we = M(
772
769
  });
773
770
  },
774
771
  disabled: t.tcpChangeInProgress,
775
- endAdornment: t.tcpChangeInProgress ? /* @__PURE__ */ o(Ut, { position: "end", children: /* @__PURE__ */ o(mt, { size: 16 }) }) : void 0,
772
+ endAdornment: t.tcpChangeInProgress ? /* @__PURE__ */ o(Zt, { position: "end", children: /* @__PURE__ */ o(mt, { size: 16 }) }) : void 0,
776
773
  children: t.tcps.map((i) => /* @__PURE__ */ o(V, { value: i.id, children: i.id }, i.id))
777
774
  },
778
775
  "tcp"
@@ -834,7 +831,7 @@ const we = M(
834
831
  }
835
832
  );
836
833
  }
837
- ), Me = ht(Xt)(({ theme: t }) => {
834
+ ), Me = ht(Qt)(({ theme: t }) => {
838
835
  var e;
839
836
  return {
840
837
  "&.MuiToggleButtonGroup-root": {
@@ -860,7 +857,7 @@ const we = M(
860
857
  M((t) => {
861
858
  const { store: e } = t, { t: n } = _();
862
859
  function r(a, c) {
863
- c === t.velocity || !qt(c) || t.onVelocityChange(c, t.useDegree);
860
+ c === t.velocity || !Nt(c) || t.onVelocityChange(c, t.useDegree);
864
861
  }
865
862
  return /* @__PURE__ */ p(
866
863
  v,
@@ -875,7 +872,7 @@ const we = M(
875
872
  C,
876
873
  {
877
874
  sx: {
878
- color: Ht,
875
+ color: Yt,
879
876
  fontSize: "14px"
880
877
  },
881
878
  children: n("Jogging.Velocity.bt")
@@ -1042,7 +1039,7 @@ const yt = M(
1042
1039
  distanceMm: l.mm
1043
1040
  } : {
1044
1041
  type: "rotate",
1045
- distanceRads: Gt(l.degrees)
1042
+ distanceRads: Ut(l.degrees)
1046
1043
  }
1047
1044
  });
1048
1045
  } finally {
@@ -1356,7 +1353,7 @@ const yt = M(
1356
1353
  }
1357
1354
  );
1358
1355
  }
1359
- ), _o = H(
1356
+ ), Io = H(
1360
1357
  M((t) => {
1361
1358
  const e = pt(() => ({
1362
1359
  joggingStore: null,
@@ -1483,7 +1480,7 @@ function Ie() {
1483
1480
  t.indexOf("/", t.indexOf("//") + 2)
1484
1481
  );
1485
1482
  }
1486
- function Po({
1483
+ function Jo({
1487
1484
  baseUrl: t = Ie(),
1488
1485
  ...e
1489
1486
  }) {
@@ -1811,14 +1808,14 @@ class ot {
1811
1808
  }
1812
1809
  }
1813
1810
  export {
1814
- Ro as A,
1811
+ ko as A,
1815
1812
  ot as C,
1816
1813
  dt as J,
1817
1814
  ge as L,
1818
- Po as N,
1815
+ Jo as N,
1819
1816
  je as V,
1820
1817
  de as a,
1821
- _o as b,
1818
+ Io as b,
1822
1819
  ue as c,
1823
1820
  vt as d
1824
1821
  };
@@ -0,0 +1,3 @@
1
+ "use strict";const t=require("react/jsx-runtime"),be=require("@mui/material/AppBar"),se=require("@mui/material/Backdrop"),O=require("@mui/material/Box"),ve=require("@mui/material/Menu"),D=require("@mui/material/MenuItem"),je=require("@mui/material/Toolbar"),y=require("@mui/material/Typography"),ye=require("@wandelbots/design-tokens"),Ce=require("@wandelbots/icons/ExpandMoreFilled"),Se=require("@wandelbots/mui"),S=require("mobx-react-lite"),v=require("react"),W=require("./externalizeComponent-Br_U-QAr.cjs"),we=require("@mui/icons-material/OpenWith"),Me=require("@mui/icons-material/Share"),b=require("@mui/material/Stack"),Te=require("@mui/material/Tab"),Ee=require("@mui/material/Tabs"),C=require("mobx"),A=require("react-i18next"),H=require("./loadRobotSession-DYbeNnTI.cjs"),le=require("@mui/material/CircularProgress"),Ie=require("@mui/material/utils"),K=require("lodash-es"),Je=require("./robotSafetyOf-Dxm6s7Pp.cjs"),ke=require("@mui/material/Alert"),Re=require("@mui/material/AlertTitle"),Q=require("@mui/material/Button"),V=require("@mui/material/styles"),q=require("@mui/material/Divider"),ie=require("@mui/material/ToggleButton"),_=require("@wandelbots/nova-js"),Z=require("@mui/material/IconButton"),te=require("./useSmoothedMotionState-B9WO73k0.cjs"),$=require("./joggingColors-Cqpfuw4G.cjs"),_e=require("@mui/material/InputAdornment"),Ae=require("@mui/material/FormControl"),Pe=require("@mui/material/InputLabel"),Oe=require("@mui/material/Select"),Ve=require("@mui/material/ToggleButtonGroup"),ce=require("@mui/material/Slider"),U=require("@wandelbots/nova-js/v2"),Le=require("@mui/icons-material/ChevronLeft"),De=require("@mui/icons-material/ChevronRight"),qe=require("@mui/material/Dialog"),$e=require("@mui/material/DialogActions"),Be=require("@mui/material/DialogContent"),ze=require("@mui/material/DialogTitle"),Fe=require("three"),G=require("./PoseTransformer-2QIzECOZ.cjs");function de(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const f=de(v),re=de(Fe),Ne=W.externalizeComponent(S.observer(e=>{const{appIcon:n,appName:o,apps:i=[],onAppSelect:a,disabled:l=!1,sx:d}=e,[r,g]=v.useState(null),p=!!r,j=s=>{g(s.currentTarget)},u=()=>{g(null)},c=s=>{u(),s.onClick?s.onClick():s.href&&(window.location.href=s.href),a==null||a(s)};return t.jsxs(t.Fragment,{children:[t.jsx(be,{position:"static",sx:{boxShadow:"none",backgroundImage:"none","& .MuiAppBar-root":{backgroundImage:"none",backgroundColor:"transparent"},...d},children:t.jsxs(je,{sx:{minHeight:"62px !important"},children:[t.jsx(O,{sx:{mr:1,display:"flex",alignItems:"center"},children:n}),t.jsxs(O,{sx:{display:"flex",alignItems:"center",flexGrow:1},children:[t.jsx(y,{component:"h1",variant:"subtitle1",children:o}),i.length>0&&t.jsx(Se.RoundedIconButton,{icon:t.jsx(Ce.ExpandMoreFilled,{size:20}),ariaLabel:"switch app","aria-controls":"app-menu","aria-haspopup":"true",onClick:j,disabled:l,sx:{ml:1}})]})]})}),t.jsx(se,{open:p,onClick:u,sx:{backdropFilter:"blur(4px)",backgroundColor:ye.ZeroGravityComponentsBackdropFill,zIndex:s=>s.zIndex.modal-1}}),t.jsx(ve,{id:"app-menu",anchorEl:r,open:p,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sx:{zIndex:s=>s.zIndex.modal,"& .MuiPaper-root":{minWidth:200,mt:1}},children:i.map(s=>t.jsxs(D,{onClick:()=>c(s),children:[t.jsx(O,{sx:{display:"flex",alignItems:"center"},children:s.icon}),t.jsx(y,{variant:"body1",sx:{ml:2},children:s.name})]},s.id))})]})})),Ge=({title:e,titleId:n,...o},i)=>f.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":n,...o},e?f.createElement("title",{id:n},e):null,f.createElement("g",{id:"JogMinus"},f.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),He=v.forwardRef(Ge),We=({title:e,titleId:n,...o},i)=>f.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":n,...o},e?f.createElement("title",{id:n},e):null,f.createElement("g",{id:"JogPlus"},f.createElement("g",{id:"Plus"},f.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),f.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),f.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),Ue=v.forwardRef(We),ee=W.externalizeComponent(S.observer(({colors:e,label:n,getDisplayedValue:o,startJogging:i,stopJogging:a,disabled:l,activeJoggingDirection:d,...r})=>{var E,I,J,k,R,B,z;te.useAnimationFrame(()=>{const T=o(),P=c.current;P&&(P.textContent=T)});const g=V.useTheme(),[p,j]=v.useState(null);v.useEffect(()=>{l&&M()},[l]);const u=d||p,c=v.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"},labelColor:"#000"});const s=u?(E=e.buttonBackgroundColor)==null?void 0:E.pressed:e.borderColor,m={width:"55px",color:e.color,path:{fill:e.color},alignContent:"center",fontSize:"37px",svg:{pointerEvents:"none"}},h={...m,backgroundColor:(I=e.buttonBackgroundColor)==null?void 0:I.default,":hover":{backgroundColor:(J=e.buttonBackgroundColor)==null?void 0:J.hovered},":active":{backgroundColor:(k=e.buttonBackgroundColor)==null?void 0:k.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(R=e.buttonBackgroundColor)==null?void 0:R.disabled,"svg path":{fill:g.palette.action.disabled}}},w={...m,backgroundColor:(B=e.buttonBackgroundColor)==null?void 0:B.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(z=e.buttonBackgroundColor)==null?void 0:z.pressed,"svg path":{fill:g.palette.action.disabled}}};function L(T,P){l||T.button===0&&(j(P),i(P))}function M(){j(null),a()}return t.jsxs(b,{height:"64px",direction:"row",justifyContent:"center",...r,children:[t.jsx(Z,{disabled:l,disableRipple:!0,onPointerDown:T=>L(T,"-"),onPointerUp:M,onPointerOut:M,size:"large",sx:{...u==="-"?w:h,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${s??"#fff"}`,borderBottom:`2px solid ${s??"#fff"}`,borderTop:`2px solid ${s??"#fff"}`},children:t.jsx(He,{})}),t.jsxs(b,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${s??"#fff"}`,borderTop:`2px solid ${s??"#fff"}`},children:[t.jsx(b,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:e.color,".MuiTypography-root":{fontWeight:700,...l?{color:g.palette.action.disabled}:{}},...l?{"svg path":{fill:g.palette.action.disabled}}:{}},children:n}),t.jsx(y,{height:"22px",sx:{fontSize:"15px",color:l?g.palette.action.disabled:e.color,fontWeight:700,fontVariantNumeric:"tabular-nums",minWidth:"80px",textAlign:"center"},ref:c,children:o()})]}),t.jsx(Z,{disableRipple:!0,disabled:l,onPointerDown:T=>L(T,"+"),onPointerUp:M,onPointerOut:M,size:"large",sx:{...u==="+"?w:h,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${s??"#fff"}`,borderBottom:`2px solid ${s??"#fff"}`,borderTop:`2px solid ${s??"#fff"}`},children:t.jsx(Ue,{})})]})})),ge=W.externalizeComponent(S.observer(({startJogging:e,stopJogging:n,lowerLimit:o,upperLimit:i,useDegree:a,getValue:l,disabled:d,...r})=>{var k,R,B,z,T,P,oe;const{t:g}=A.useTranslation(),[p,j]=v.useState(),u=V.useTheme(),c={background:(k=u.palette.backgroundPaperElevation)==null?void 0:k[4],color:(R=u.palette.backgroundPaperElevation)==null?void 0:R[11]},s=S.useLocalObservable(()=>({activeJoggingDir:null,startJogging(x){this.activeJoggingDir=x,e(x)},stopJogging(){this.activeJoggingDir=null,n()}})),m=K.throttle(()=>{const x=a?h(l()):l();(x===void 0||p===void 0||Math.abs(p-x)>1e-9)&&j(x)},50);te.useAnimationFrame(m);function h(x){if(x!==void 0)return _.radiansToDegrees(x)}function w(x){x.button===0&&s.startJogging("-")}function L(x){x.button===0&&s.startJogging("+")}function M(x){s.stopJogging()}function E(x){s.stopJogging()}function I(x,F=1){if(x===void 0||Number.isNaN(x))return"";const N=g("General.degree.variable",{amount:x.toFixed(F)});return x>0&&F===0?`+${N}`:N}function J(x,F=1){if(x===void 0||Number.isNaN(x))return"";const N=g("General.mm.variable",{amount:x.toFixed(F)});return x>0&&F===0?`+${N}`:N}return t.jsxs(b,{height:"64px",width:"100%",maxWidth:"260px",direction:"row",...r,sx:{"& .MuiIconButton-root":{width:"52px",color:u.palette.text.primary,alignContent:"center",backgroundColor:(B=u.palette.backgroundPaperElevation)==null?void 0:B[11],"& svg":{width:"42px",height:"42px"},"&.Mui-disabled":{backgroundColor:(z=u.palette.backgroundPaperElevation)==null?void 0:z[11],color:u.palette.action.disabled,opacity:1},"&:hover":{backgroundColor:(T=u.palette.backgroundPaperElevation)==null?void 0:T[9]},"&:active":{...c}}},children:[t.jsx(Z,{onPointerDown:w,onPointerUp:M,onPointerOut:E,disabled:d,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...s.activeJoggingDir==="-"?c:{}},children:t.jsx(Le,{sx:{pointerEvents:"none",color:$.jointArrowColor}})}),t.jsxs(b,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,border:"none",backgroundColor:(P=u.palette.backgroundPaperElevation)==null?void 0:P[11],paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[t.jsx(y,{sx:{fontSize:"15px",fontWeight:700,position:"relative",top:"5px",fontVariantNumeric:"tabular-nums",minWidth:"80px",textAlign:"center",color:d?u.palette.action.disabled:u.palette.text.primary},children:a?I(p):J(p)}),t.jsx(ce,{disabled:!0,"aria-label":"Joint position",min:a?h(o):o,max:a?h(i):i,value:p||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"12px",borderRadius:"2px",color:d?u.palette.action.disabled:u.palette.text.primary},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:d?u.palette.action.disabled:u.palette.text.secondary},"& .MuiSlider-rail":{backgroundColor:(oe=u.palette.backgroundPaperElevation)==null?void 0:oe[5],opacity:1}},marks:o!==void 0&&i!==void 0&&[{value:a?h(o):o,label:a?I(h(o),0):J(o)},{value:a?h(i):i,label:a?I(h(i),0):J(i)}]})]}),t.jsx(Z,{onPointerDown:L,onPointerUp:M,onPointerOut:E,disabled:d,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...s.activeJoggingDir==="+"?c:{}},children:t.jsx(De,{sx:{pointerEvents:"none",color:$.jointArrowColor}})})]})})),ue=e=>{const n=e.softTimeout||3e3,[o,i]=v.useState(!1);return v.useEffect(()=>{const a=setTimeout(()=>{i(!0)},n);return()=>clearTimeout(a)}),t.jsx(b,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{color:"text.primary"},children:e.error?t.jsx(pe,{loadingMessage:e.message,error:e.error}):t.jsxs(t.Fragment,{children:[t.jsx(le,{sx:{mb:3}}),!!e.message&&t.jsx(y,{variant:"body1",children:e.message}),t.jsx(y,{variant:"body2",sx:{visibility:o?"visible":"hidden",mt:2,color:"text.secondary"},children:"This is taking longer than expected..."})]})})},pe=e=>{const n=Je.makeErrorMessage(e.error),o=e.error instanceof Error?e.error.stack:null;return t.jsxs(b,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",p:2,overflow:"auto",color:"error.main"},children:[t.jsx(y,{variant:"body1",children:(e.loadingMessage?`Error while ${K.lowerFirst(Ie.capitalize(e.loadingMessage))} - `:"")+n}),o&&t.jsx(O,{component:"pre",sx:{typography:"body2",fontFamily:"monospace",whiteSpace:"pre-wrap",wordBreak:"break-word",mt:2,pb:6},children:o})]})},Ye=S.observer(({store:e})=>{const{t:n}=A.useTranslation();return t.jsx(se,{"data-testid":"jogging-blocked","aria-label":"jogging-blocked",open:!0,sx:{position:"absolute",zIndex:o=>o.zIndex.drawer+1,color:"#fff",background:"rgba(15, 15, 15, 0.88)",justifyContent:"flex-start",alignItems:"flex-start"},children:t.jsxs(b,{sx:{m:2,width:"100%"},children:[t.jsxs(ke,{severity:"error",sx:{mb:2},children:[t.jsx(Re,{children:n("Jogging.Blocked.ti")}),n("Jogging.Blocked.lb")]}),t.jsx(Q,{variant:"contained",color:"secondary",onClick:()=>e.unblock(),children:n("Jogging.Blocked.Reenable.bt")})]})})}),Ze=({title:e,titleId:n,...o},i)=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:i,"aria-labelledby":n,...o},e?f.createElement("title",{id:n},e):null,f.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),Xe=v.forwardRef(Ze),Ke=({title:e,titleId:n,...o},i)=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:i,"aria-labelledby":n,...o},e?f.createElement("title",{id:n},e):null,f.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),Qe=v.forwardRef(Ke),et=({title:e,titleId:n,...o},i)=>f.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:i,"aria-labelledby":n,...o},e?f.createElement("title",{id:n},e):null,f.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M9.522 14.811A.899.899 0 1 0 8.25 13.54L6.19 15.601V3.16L8.25 5.221A.9.9 0 0 0 9.522 3.95L5.926.354a.9.9 0 0 0-1.272 0L1.058 3.95a.9.9 0 1 0 1.271 1.271L4.391 3.16v12.442L2.329 13.54a.899.899 0 1 0-1.271 1.271l3.596 3.597a.9.9 0 0 0 1.272 0z",clipRule:"evenodd"})),tt=v.forwardRef(et),nt=({title:e,titleId:n,...o},i)=>f.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":n,...o},e?f.createElement("title",{id:n},e):null,f.createElement("path",{d:"M8 16C5.76667 16 3.875 15.225 2.325 13.675C0.775 12.125 0 10.2333 0 8C0 5.76667 0.775 3.875 2.325 2.325C3.875 0.775 5.76667 0 8 0C9.15 0 10.25 0.2375 11.3 0.7125C12.35 1.1875 13.25 1.86667 14 2.75V0H16V7H9V5H13.2C12.6667 4.06667 11.9375 3.33333 11.0125 2.8C10.0875 2.26667 9.08333 2 8 2C6.33333 2 4.91667 2.58333 3.75 3.75C2.58333 4.91667 2 6.33333 2 8C2 9.66667 2.58333 11.0833 3.75 12.25C4.91667 13.4167 6.33333 14 8 14C9.28333 14 10.4417 13.6333 11.475 12.9C11.0583 14.1 12.5083 12.1667 11.475 12.9L12.9 14.325C11.4667 15.4417 9.83333 16 8 16Z",fill:"white"})),ot=v.forwardRef(nt),he=S.observer(({store:e})=>{const{t:n}=A.useTranslation(),[o,i]=v.useState(e.jogger.motionStream.rapidlyChangingMotionState.joint_limit_reached.limit_reached),a=v.useRef(o);te.useAnimationFrame(()=>{const d=e.jogger.motionStream.rapidlyChangingMotionState.joint_limit_reached.limit_reached;K.isEqual(a.current,d)||(a.current=d,i(d))});const l=[];for(const[d,r]of o.entries())r&&l.push(d);return t.jsx(O,{sx:{display:"flex",flexDirection:"row",justifyContent:"center"},children:t.jsx(y,{"data-testid":"jogging-joint-limit-detector","aria-label":"jogging-joint-limit-detector",color:"error",variant:"body2",sx:{fontSize:"0.75rem",lineHeight:1.2,visibility:l.length?"visible":"hidden"},children:n("Jogging.JointLimitsReached.lb",{jointNumbers:l.map(d=>d+1).join(", ")})})})}),it=V.styled(Ae)(({theme:e})=>({"&.MuiFormControl-root":{".MuiSelect-select":{paddingTop:"20px",paddingLeft:"12px"},label:{pointerEvents:"none",fontSize:"16px"},".MuiInputLabel-root":{"&.Mui-focused":{color:e.palette.text.primary}}}}));function Y({labelValue:e,...n}){return t.jsxs(it,{fullWidth:!0,variant:"filled",children:[t.jsx(Pe,{id:n.labelId,children:e}),t.jsx(Oe,{...n})]})}const rt=S.observer(({store:e,useDegree:n})=>{var d;const{t:o}=A.useTranslation(),i=v.useId(),a=[];function l(r){switch(r){case"coordsys":return o("Jogging.Orientation.coordsys");case"tool":return o("Jogging.Orientation.tool");default:return r}}return e.showCoordSystemSelect&&a.push(t.jsx(Y,{labelId:`jogging-coord-select-${i}`,labelValue:o("Jogging.CoordinateSystem.hlb"),value:e.selectedCoordSystemId,size:"small",variant:"filled",displayEmpty:!0,onChange:r=>e.setSelectedCoordSystemId(r.target.value),children:e.coordSystems.map(r=>t.jsx(D,{value:r.coordinate_system,children:r.name&&e.coordSystemCountByName[r.name]>1?`${r.name} / ${r.coordinate_system}`:r.name||r.coordinate_system},r.coordinate_system))},"coord")),e.showTcpSelect&&a.push(t.jsx(Y,{labelId:`jogging-tcp-select-${i}`,labelValue:"TCP",value:e.selectedTcpId,size:"small",variant:"filled",displayEmpty:e.tcpChangeInProgress,onChange:r=>{e.requestTcpChange(r.target.value).catch(g=>{console.error("Failed to change TCP:",g)})},disabled:e.tcpChangeInProgress,endAdornment:e.tcpChangeInProgress?t.jsx(_e,{position:"end",children:t.jsx(le,{size:16})}):void 0,children:e.tcps.map(r=>t.jsx(D,{value:r.id,children:r.id},r.id))},"tcp")),e.showOrientationSelect&&a.push(t.jsx(Y,{labelValue:o("Jogging.Cartesian.Orientation.lb"),labelId:`orientation-select-${i}`,value:e.selectedOrientation,onChange:r=>e.setSelectedOrientation(r.target.value),children:H.ORIENTATION_IDS.map(r=>t.jsx(D,{value:r,children:l(r)},r))},"orientation")),e.showIncrementSelect&&a.push(t.jsxs(Y,{labelValue:o("Jogging.Increment.hlb"),labelId:`jogging-increment-select-${i}`,size:"small",variant:"filled",value:((d=e.activeDiscreteIncrement)==null?void 0:d.id)||"continuous",onChange:r=>e.setSelectedIncrementId(r.target.value),children:[t.jsx(D,{value:"continuous",children:o("Jogging.Increment.Continuous.dd")},"continuous"),e.discreteIncrementOptions.map(r=>t.jsx(D,{value:r.id,children:n?`${r.degrees}°`:`${r.mm}mm`},r.id))]},"increment")),t.jsx(O,{component:"div","data-testid":"jogging-options","aria-label":"jogging-options",sx:{display:"grid",gap:"16px",gridTemplateColumns:"1fr 1fr",gridAutoRows:"min-content","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:a.map((r,g)=>t.jsx(O,{sx:{gridColumn:a.length%2===1&&g===a.length-1?"span 2":"auto"},children:r},g))})}),at=V.styled(Ve)(({theme:e})=>{var n;return{"&.MuiToggleButtonGroup-root":{background:(n=e.palette.backgroundPaperElevation)==null?void 0:n[8],borderRadius:"8px",padding:"4px",gap:"4px",button:{border:"none",borderRadius:"4px",flex:"1 1 0px",minWidth:0,"&.MuiToggleButtonGroup-firstButton":{borderRadius:"8px 4px 4px 8px"},"&.MuiToggleButtonGroup-lastButton":{borderRadius:"4px 8px 8px 4px"}}}}}),xe=W.externalizeComponent(S.observer(e=>{const{store:n}=e,{t:o}=A.useTranslation();function i(a,l){l===e.velocity||!K.isNumber(l)||e.onVelocityChange(l,e.useDegree)}return t.jsxs(b,{direction:"row",gap:2,alignItems:"center","data-testid":"velocity-slider","aria-label":"velocity-slider",children:[n.showVelocityLegend&&t.jsx(y,{sx:{color:$.velocitySliderLegendColor,fontSize:"14px"},children:o("Jogging.Velocity.bt")}),t.jsx(ce,{value:e.velocity,color:"secondary",onChange:i,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}}),n.showVelocitySliderLabel&&(e.renderValue?e.renderValue(e.velocity):t.jsx(ne,{value:e.velocity.toString()}))]})}));function ne({value:e,sx:n}){var i;const o=V.useTheme();return t.jsx(b,{direction:"row",justifyContent:"center",alignItems:"center",gap:"5px",sx:{padding:"6px 12px",background:(i=o.palette.backgroundPaperElevation)==null?void 0:i[8],borderRadius:"10px",minWidth:"111px",...n},children:t.jsx(y,{component:"span",sx:{textAlign:"right",fontSize:"14px",opacity:.8,color:o.palette.text.primary,whiteSpace:"nowrap"},children:e})})}const me=S.observer(({store:e,useDegree:n})=>{const{t:o}=A.useTranslation();function i(a,l){return l?`ω = ${o("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:a})}`:`v = ${o("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:a})}`}return t.jsx(xe,{store:e,velocity:e.velocityInDisplayUnits(n),min:e.minVelocityInDisplayUnits(n),max:e.maxVelocityInDisplayUnits(n),onVelocityChange:e.setVelocityFromSlider,useDegree:n,disabled:e.isLocked,renderValue:a=>t.jsx(ne,{value:i(a,n),sx:{minWidth:"111px",span:{transform:"translateY(-1.5px)"}}})})}),fe=S.observer(({store:e})=>{var d,r,g;const{t:n}=A.useTranslation(),o=V.useTheme(),i=((g=(r=(d=e.jogger.motionStream.rapidlyChangingMotionState.execute)==null?void 0:d.details)==null?void 0:r.state)==null?void 0:g.kind)??"KIND_UNKNOWN",a=e.lastJogError,l=e.lastJogErrorTranslationKey;return t.jsxs(O,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",color:o.palette.text.primary},children:[t.jsx(y,{variant:"body2",sx:{fontSize:"0.75rem",lineHeight:1.2},children:n("Jogging.StreamStateSection.lb")}),t.jsx(y,{variant:"body2",color:a?"error":void 0,sx:{fontSize:"0.75rem",lineHeight:1.2,textAlign:"right"},"data-testid":a?"JOG_ERROR":i,children:a?l?n(l):a:n(`Jogging.StreamStateSection.${i}.lb`)})]})}),st=S.observer(({store:e,children:n})=>{const{t:o}=A.useTranslation(),i=V.useTheme(),a=v.useRef(0);function l(c,s){(s==="translate"||s==="rotate")&&e.setSelectedCartesianMotionType(s)}async function d(c,s){const m=await e.activate(),h=m.motionStream.rapidlyChangingMotionState.tcp_pose,w=m.motionStream.rapidlyChangingMotionState.joint_position;h&&await e.withMotionLock(async()=>{try{e.setCurrentIncrementJog({axis:c.axis,direction:c.direction}),await e.jogger.runIncrementalCartesianMotion({currentTcpPose:h,currentJoints:w,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.selectedCartesianMotionType==="translate"?e.translationVelocityMmPerSec:e.rotationVelocityRadsPerSec,axis:c.axis,direction:c.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:s.mm}:{type:"rotate",distanceRads:_.degreesToRadians(s.degrees)}})}finally{e.setCurrentIncrementJog(null),await e.deactivate()}})}async function r(c){if(e.isLocked)return;const s=++a.current;try{if(await e.activate(),s!==a.current)return;if(e.activeDiscreteIncrement)return await d(c,e.activeDiscreteIncrement);c.motionType==="translate"?await e.jogger.translateTCP({axis:c.axis,direction:c.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.rotateTCP({axis:c.axis,direction:c.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}catch(m){console.error("Jogging failed:",m)}}async function g(){e.activeDiscreteIncrement||(a.current++,await e.deactivate())}const p=[{id:"x",icon:t.jsx(Xe,{}),colors:$.cartesianAxisColors.X},{id:"y",icon:t.jsx(Qe,{}),colors:$.cartesianAxisColors.Y},{id:"z",icon:t.jsx(tt,{}),colors:$.cartesianAxisColors.Z}];function j(c){return o("General.mm.variable",{amount:c.toFixed(1)})}function u(c){return o("General.degree.variable",{amount:_.radiansToDegrees(c).toFixed(1)})}return t.jsxs(b,{"data-testid":"jogging-cartesian-tab","aria-label":"jogging-cartesian-tab",flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[t.jsxs(b,{gap:2,children:[t.jsx(rt,{store:e,useDegree:e.selectedCartesianMotionType==="rotate"}),t.jsx(me,{store:e,useDegree:e.selectedCartesianMotionType==="rotate"}),t.jsx(q,{})]}),t.jsx(b,{marginLeft:"auto",marginRight:"auto",gap:"24px",justifyContent:"center",sx:{flexGrow:"1"},children:t.jsxs(b,{alignItems:"center",justifyContent:"center",gap:"24px",sx:{flexGrow:1},children:[t.jsxs(at,{value:e.selectedCartesianMotionType,onChange:l,exclusive:!0,"aria-label":o("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[t.jsx(ie,{value:"translate",children:o("Jogging.Cartesian.Translation.bt")}),t.jsx(ie,{value:"rotate",children:o("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&p.map(c=>{var s,m;return t.jsx(ee,{"data-testid":`jogging-cartesian-axis-control-${c.id}`,"aria-label":`jogging-cartesian-axis-control-${c.id}`,colors:c.colors,disabled:e.isLocked,activeJoggingDirection:((s=e.incrementJogInProgress)==null?void 0:s.axis)===c.id?e.incrementJogInProgress.direction:void 0,label:t.jsxs(t.Fragment,{children:[c.icon,t.jsx(y,{sx:{fontSize:"24px",color:((m=c.colors)==null?void 0:m.labelColor)??i.palette.text.primary},children:c.id.toUpperCase()})]}),getDisplayedValue:()=>{var h,w;return j(((w=(h=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:h.position)==null?void 0:w[_.XYZ_TO_VECTOR[c.id]])||0)},startJogging:h=>r({axis:c.id,motionType:"translate",direction:h}),stopJogging:g},c.id)}),e.selectedCartesianMotionType==="rotate"&&p.map(c=>{var s,m;return t.jsx(ee,{"data-testid":`jogging-cartesian-axis-control-${c.id}`,"aria-label":`jogging-cartesian-axis-control-${c.id}`,colors:c.colors,disabled:e.isLocked,activeJoggingDirection:((s=e.incrementJogInProgress)==null?void 0:s.axis)===c.id?e.incrementJogInProgress.direction:void 0,label:t.jsxs(t.Fragment,{children:[t.jsx(ot,{}),t.jsx(y,{sx:{fontSize:"24px",color:((m=c.colors)==null?void 0:m.labelColor)??i.palette.text.primary},children:c.id.toUpperCase()})]}),getDisplayedValue:()=>{var h,w;return u(((w=(h=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:h.orientation)==null?void 0:w[_.XYZ_TO_VECTOR[c.id]])||0)},startJogging:h=>r({axis:c.id,motionType:"rotate",direction:h}),stopJogging:g},c.id)})]})}),t.jsx(he,{store:e}),t.jsx(q,{}),t.jsx(fe,{store:e}),n&&t.jsx(q,{}),n]})}),lt=S.observer(({store:e,children:n})=>{const o=V.useTheme(),i=v.useRef(0);async function a(d){const r=++i.current;try{if(await e.activate(),r!==i.current)return;await e.jogger.rotateJoints({joint:d.joint,direction:d.direction,velocityUnit:e.jointType===U.JointTypeEnum.PrismaticJoint?"mm/s":"rad/s",velocityValue:e.jointType===U.JointTypeEnum.PrismaticJoint?e.translationVelocityMmPerSec:e.rotationVelocityRadsPerSec})}catch(g){console.error("Jogging failed:",g)}}async function l(){i.current++,await e.jogger.stop(),await e.deactivate()}return t.jsxs(b,{"data-testid":"jogging-joint-tab","aria-label":"jogging-joint-tab",flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[t.jsx(me,{store:e,useDegree:e.jointType===U.JointTypeEnum.RevoluteJoint}),t.jsx(q,{}),t.jsx(b,{justifyContent:"center",alignItems:"stretch",sx:{flexGrow:"1"},children:t.jsx(b,{"data-testid":"jogging-joint-value-controls-wrapper","aria-label":"jogging-joint-value-controls-wrapper",alignItems:"center",gap:"24px",children:e.jogger.motionStream.joints.map(d=>{var g,p,j;const r=(j=(p=(g=e.motionGroupDescription.operation_limits.auto_limits)==null?void 0:g.joints)==null?void 0:p[d.index])==null?void 0:j.position;return t.jsxs(b,{"data-testid":`jogging-joint-value-control-${d.index}`,"aria-label":`jogging-joint-value-control-${d.index}`,direction:"row",alignItems:"center",justifyContent:"center",spacing:1.5,width:"100%",children:[e.showJointsLegend&&t.jsx(y,{color:e.isLocked?o.palette.text.disabled:o.palette.text.secondary,children:`G${d.index+1}`}),t.jsx(ge,{disabled:e.isLocked,lowerLimit:r==null?void 0:r.lower_limit,upperLimit:r==null?void 0:r.upper_limit,useDegree:e.jointType===U.JointTypeEnum.RevoluteJoint,getValue:()=>{const u=e.jogger.motionStream.rapidlyChangingMotionState.joint_position[d.index];return u!==void 0?u:void 0},startJogging:u=>a({joint:d.index,direction:u}),stopJogging:l})]},`joint-${d.index}`)})})}),t.jsx(he,{store:e}),t.jsx(q,{}),t.jsx(fe,{store:e}),n&&t.jsx(q,{}),n]})}),ct=W.externalizeComponent(S.observer(e=>{const n=S.useLocalObservable(()=>({joggingStore:null,loadingError:null}));return v.useEffect(()=>{let o=!1,i;async function a(){C.runInAction(()=>{n.loadingError=null,n.joggingStore=null});try{let l=e.store;if(!l){const d=await H.JoggerConnection.open(e.nova,e.motionGroupId,{cellId:e.cellId});if(o){d.dispose();return}try{l=await H.JoggingStore.loadFor(d)}catch(r){throw d.dispose(),r}if(i=l,o){l.dispose();return}}C.runInAction(()=>{n.joggingStore=l}),e.onSetup&&e.onSetup(l)}catch(l){if(o)return;C.runInAction(()=>{n.loadingError=l})}}return a(),()=>{o=!0,i==null||i.dispose()}},[e.store,e.nova,e.motionGroupId,e.cellId]),v.useEffect(()=>{const o=n.joggingStore;o&&(e.locked?o.lock("external"):o.unlock("external"))},[n.joggingStore,e.locked]),t.jsx(b,{"data-testid":"jogging-panel","aria-label":"jogging-panel",sx:{maxWidth:"460px",minWidth:"320px",position:"relative",...e.sx},children:n.joggingStore?t.jsx(dt,{store:n.joggingStore,children:e.children}):t.jsx(ue,{message:"Loading jogging",error:n.loadingError})})})),dt=S.observer(({store:e,children:n})=>{const{t:o}=A.useTranslation();function i(){if(e.currentTab.id==="cartesian")return t.jsx(st,{store:e,children:n});if(e.currentTab.id==="joint")return t.jsx(lt,{store:e,children:n})}return t.jsxs(b,{flexGrow:1,sx:{overflow:"hidden"},children:[t.jsx(Ee,{"data-testid":"jogging-tabs","aria-label":"jogging-tabs",value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(a=>{const l=a.label==="Cartesian"?o("Jogging.Cartesian.bt"):o("Jogging.Joints.bt"),d=a.label==="cartesian"?t.jsx(we,{fontSize:"small",sx:{mr:1}}):t.jsx(Me,{fontSize:"small",sx:{mr:1}});return t.jsx(Te,{"data-testid":`jogging-tab-${a.id}`,"aria-label":`jogging-tab-${a.id}`,label:e.showTabIcons?t.jsxs(b,{direction:"row",alignItems:"center",children:[d,l]}):l,id:`jogging-tab-${a.id}`,"aria-controls":`jogging-tab-${a.id}`},a.id)})}),t.jsx(b,{flexGrow:1,position:"relative",sx:{overflowY:"auto",overflowX:"hidden"},children:i()}),e.blocked&&t.jsx(Ye,{store:e})]})});function gt(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function ut({baseUrl:e=gt(),...n}){return t.jsxs(qe,{"aria-labelledby":"no-motion-group-modal-title",open:!0,fullWidth:!0,sx:{"& .MuiModal-backdrop":{backdropFilter:"blur(10px)"},"& .MuiDialog-paper":{"::before":{content:'""',height:"8px",width:"100%",background:"linear-gradient(90deg, #FF0E65 0%, #47D3FF 100%)"},background:"#101629"}},children:[t.jsx(ze,{id:"no-motion-group-modal-title",children:"No motion group found"}),t.jsxs(Be,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[t.jsx(y,{color:"#fff",children:"Found no devices to connect to."}),t.jsx(y,{color:"#fff",children:"Please ensure a motion group has been created."})]}),t.jsx($e,{children:t.jsxs(b,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[t.jsx(Q,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),t.jsx(Q,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const ae=1e-4,pt={a:0,d:0,alpha:0,theta:0,reverse_rotation_direction:!1};class X{constructor(n,o,i,a,l,d,r,g,p,j,u="cell"){this.controller=o,this.motionGroup=i,this.initialMotionState=a,this.motionStateSocket=l,this.isVirtual=d,this.tcps=r,this.description=g,this.initialControllerState=p,this.controllerStateSocket=j,this.cellId=u,this.connectedJoggingSocket=null,this.joggingVelocity=10,this.activationState="inactive",this.nova=G.createNovaClient(n),this.rapidlyChangingMotionState=a,this.controllerState=p,j.addEventListener("message",c=>{var m;const s=(m=_.tryParseJson(c.data))==null?void 0:m.result;s&&C.runInAction(()=>{this.controllerState=s})}),l.addEventListener("message",c=>{var m;const s=(m=_.tryParseJson(c.data))==null?void 0:m.result;if(!s)throw new Error(`Failed to get motion state for ${this.motionGroupId}: ${c.data}`);H.jointValuesUnchanged(this.rapidlyChangingMotionState.joint_position,s.joint_position,ae)||C.runInAction(()=>{this.rapidlyChangingMotionState.joint_position=s.joint_position}),H.tcpMotionEqual(this.rapidlyChangingMotionState,s,ae)||C.runInAction(()=>{this.rapidlyChangingMotionState.tcp_pose=s.tcp_pose}),s.tcp!==void 0&&this.rapidlyChangingMotionState.tcp!==s.tcp&&C.runInAction(()=>{this.rapidlyChangingMotionState.tcp=s.tcp}),this.rapidlyChangingMotionState.standstill!==s.standstill&&C.runInAction(()=>{this.rapidlyChangingMotionState.standstill=s.standstill})}),C.makeAutoObservable(this)}static async connectMultiple(n,o,i={}){const a=G.createNovaClient(n),l=i.cellId??G.cellIdOf(n);return Promise.all(o.map(d=>X.connect(a,d,{...i,cellId:l})))}static async connect(n,o,i={}){var I,J;const a=G.createNovaClient(n),l=i.cellId??G.cellIdOf(n)??"cell",[d,r]=o.split("@"),g=await a.api.controller.getCurrentRobotControllerState(l,r),p=g==null?void 0:g.motion_groups.find(k=>k.motion_group===o);if(!g||!p)throw new Error(`Controller ${r} or motion group ${o} not found`);const j=a.openReconnectingWebsocket(`/cells/${l}/controllers/${r}/motion-groups/${o}/state-stream`),u=await j.firstMessage(),c=(I=_.tryParseJson(u.data))==null?void 0:I.result;if(!c)throw new Error(`Unable to parse initial motion state message ${u.data}`);console.log(`Connected motion state websocket to motion group ${p.motion_group}. Initial state:
2
+ `,c);const m=(await a.api.controller.getRobotController(l,g.controller)).configuration.kind==="VirtualController",h=await a.api.motionGroup.getMotionGroupDescription(l,r,p.motion_group),w=Object.entries(h.tcps||{}).map(([k,R])=>({id:k,readable_name:R.name,position:R.pose.position,orientation:R.pose.orientation})),L=a.openReconnectingWebsocket(`/cells/${l}/controllers/${g.controller}/state-stream?response_rate=1000`),M=await L.firstMessage(),E=(J=_.tryParseJson(M.data))==null?void 0:J.result;if(!E)throw new Error(`Unable to parse initial controller state message ${M.data}`);return console.log(`Connected controller state websocket to controller ${g.controller}. Initial state:
3
+ `,E),new X(a,g,p,c,j,m,w,h,E,L,l)}get motionGroupId(){return this.motionGroup.motion_group}get controllerId(){return this.controller.controller}get modelFromController(){return this.description.motion_group_model}get joggingVelocityRads(){return this.joggingVelocity*Math.PI/180}get joints(){return this.initialMotionState.joint_position.map((n,o)=>({index:o}))}get dhParameters(){if(this.description.dh_parameters!==void 0)return this.description.dh_parameters.map(n=>({...pt,...n}))}get safetyZones(){return this.description.safety_zones}get mountingPosition(){var n,o,i;return this.description.mounting?[(((n=this.description.mounting.position)==null?void 0:n[0])||0)/1e3,(((o=this.description.mounting.position)==null?void 0:o[1])||0)/1e3,(((i=this.description.mounting.position)==null?void 0:i[2])||0)/1e3]:[0,0,0]}get mountingQuaternion(){var a,l,d,r,g,p;const n=new re.Vector3(((l=(a=this.description.mounting)==null?void 0:a.orientation)==null?void 0:l[0])||0,((r=(d=this.description.mounting)==null?void 0:d.orientation)==null?void 0:r[1])||0,((p=(g=this.description.mounting)==null?void 0:g.orientation)==null?void 0:p[2])||0),o=n.length(),i=n.normalize();return new re.Quaternion().setFromAxisAngle(i,o)}get isEstopActive(){return["SAFETY_STATE_ROBOT_EMERGENCY_STOP","SAFETY_STATE_DEVICE_EMERGENCY_STOP"].includes(this.controllerState.safety_state)}get isMoveableSafetyState(){return["SAFETY_STATE_NORMAL","SAFETY_STATE_REDUCED"].includes(this.controllerState.safety_state)}get isMoveableOperationMode(){return["OPERATION_MODE_AUTO","OPERATION_MODE_MANUAL","OPERATION_MODE_MANUAL_T1","OPERATION_MODE_MANUAL_T2"].includes(this.controllerState.operation_mode)}get canBeMoved(){return this.isMoveableSafetyState&&this.isMoveableOperationMode&&this.activationState==="active"}async deactivate(){if(this.activationState!=="active"){console.error("Tried to deactivate while already deactivating");return}C.runInAction(()=>{this.activationState="deactivating"});try{await this.nova.api.controller.setDefaultMode(this.cellId,this.controllerId,"ROBOT_SYSTEM_MODE_MONITOR"),C.runInAction(()=>{this.activationState="inactive"})}catch(n){throw C.runInAction(()=>{this.activationState="active"}),n}}async activate(){if(this.activationState!=="inactive"){console.error("Tried to activate while already activating");return}C.runInAction(()=>{this.activationState="activating"});try{await this.nova.api.controller.setDefaultMode(this.cellId,this.controllerId,"ROBOT_SYSTEM_MODE_CONTROL"),C.runInAction(()=>{this.activationState="active"})}catch(n){throw C.runInAction(()=>{this.activationState="inactive"}),n}}toggleActivation(){this.activationState==="inactive"?this.activate():this.activationState==="active"&&this.deactivate()}dispose(){this.motionStateSocket.close(),this.controllerStateSocket.close(),this.connectedJoggingSocket&&this.connectedJoggingSocket.close()}setJoggingVelocity(n){this.joggingVelocity=n}}exports.AppHeader=Ne;exports.ConnectedMotionGroup=X;exports.JoggingCartesianAxisControl=ee;exports.JoggingJointValueControl=ge;exports.JoggingPanel=ct;exports.LoadingCover=ue;exports.LoadingErrorMessage=pe;exports.NoMotionGroupModal=ut;exports.VelocitySlider=xe;exports.VelocitySliderLabel=ne;
@@ -1 +1 @@
1
- "use strict";const P=require("react/jsx-runtime"),S=require("mobx-react-lite"),b=require("./RobotSessionProvider--AekyPqD.cjs"),f=require("./CurrentPoseBar-C4wB482_.cjs"),p=require("react"),q=require("react-i18next"),v=require("./externalizeComponent-BW1UV6Gh.cjs"),x=require("./coordSystemLabel-BThpFG9n.cjs");function m(n){var u,d,l;const e=n.jogging,{t:r}=q.useTranslation(void 0,{i18n:v.i18n}),[o,s]=p.useState(e.selectedTcpId),[i,g]=p.useState(e.selectedCoordSystemId),c=e.tcpsById[o]?o:e.selectedTcpId,a=e.coordSystemsById[i]?i:e.selectedCoordSystemId,C=(l=(d=(u=e.jogger.motionStream.rapidlyChangingMotionState.execute)==null?void 0:u.details)==null?void 0:d.state)==null?void 0:l.kind,y=e.lastJogErrorTranslationKey?r(e.lastJogErrorTranslationKey):e.lastJogError;function I(){const t=e.tcpPoseIn(c,a);return!(t!=null&&t.position)||!t.orientation?null:{position:t.position,orientation:t.orientation}}return{getCurrentPose:I,tcp:e.tcps.length>0?{options:e.tcps.map(t=>({id:t.id,label:t.id})),value:c,onChange:s}:void 0,frame:{options:e.coordSystems.map(t=>({id:t.coordinate_system,label:x.coordSystemLabel(e,t)})),value:a,onChange:g},state:C,error:y}}const T=S.observer(function({session:e,...r}){const o=b.useRobotSessionOf(e),s=m(o);return P.jsx(f.CurrentPoseBar,{...s,...r})});exports.CurrentPose=T;exports.useCurrentPoseProps=m;
1
+ "use strict";const P=require("react/jsx-runtime"),S=require("mobx-react-lite"),b=require("./RobotSessionProvider--AekyPqD.cjs"),f=require("./CurrentPoseBar-BTBAwIO4.cjs"),p=require("react"),q=require("react-i18next"),v=require("./externalizeComponent-Br_U-QAr.cjs"),x=require("./coordSystemLabel-BThpFG9n.cjs");function m(n){var u,d,l;const e=n.jogging,{t:r}=q.useTranslation(void 0,{i18n:v.i18n}),[o,s]=p.useState(e.selectedTcpId),[i,g]=p.useState(e.selectedCoordSystemId),c=e.tcpsById[o]?o:e.selectedTcpId,a=e.coordSystemsById[i]?i:e.selectedCoordSystemId,C=(l=(d=(u=e.jogger.motionStream.rapidlyChangingMotionState.execute)==null?void 0:u.details)==null?void 0:d.state)==null?void 0:l.kind,y=e.lastJogErrorTranslationKey?r(e.lastJogErrorTranslationKey):e.lastJogError;function I(){const t=e.tcpPoseIn(c,a);return!(t!=null&&t.position)||!t.orientation?null:{position:t.position,orientation:t.orientation}}return{getCurrentPose:I,tcp:e.tcps.length>0?{options:e.tcps.map(t=>({id:t.id,label:t.id})),value:c,onChange:s}:void 0,frame:{options:e.coordSystems.map(t=>({id:t.coordinate_system,label:x.coordSystemLabel(e,t)})),value:a,onChange:g},state:C,error:y}}const T=S.observer(function({session:e,...r}){const o=b.useRobotSessionOf(e),s=m(o);return P.jsx(f.CurrentPoseBar,{...s,...r})});exports.CurrentPose=T;exports.useCurrentPoseProps=m;
@@ -1,10 +1,10 @@
1
1
  import { jsx as y } from "react/jsx-runtime";
2
2
  import { observer as I } from "mobx-react-lite";
3
3
  import { a as S } from "./RobotSessionProvider-TVaKGzqa.js";
4
- import { C as P } from "./CurrentPoseBar-GhVif6kH.js";
4
+ import { C as P } from "./CurrentPoseBar-CX1xFBtm.js";
5
5
  import { useState as l } from "react";
6
6
  import { useTranslation as b } from "react-i18next";
7
- import { i as T } from "./externalizeComponent-TgclPxwg.js";
7
+ import { i as T } from "./externalizeComponent-4juwPKL5.js";
8
8
  import { c as v } from "./coordSystemLabel-Bfy9MUsV.js";
9
9
  function h(n) {
10
10
  var d, m, p;
@@ -1 +1 @@
1
- "use strict";const t=require("react/jsx-runtime"),$=require("@mui/material/Divider"),Z=require("@mui/material/IconButton"),b=require("@mui/material/Stack"),G=require("@mui/material/Tooltip"),N=require("@mui/material/Typography"),J=require("@wandelbots/icons/ContentCopyFilled"),H=require("@wandelbots/icons/Settings"),d=require("react"),q=require("react-i18next"),K=require("./externalizeComponent-BW1UV6Gh.cjs"),ee=require("./poseText-BXUaQWnK.cjs"),ne=require("./SmallSelect-Dcsd7_6_.cjs"),_=require("./useEveryFrame-NeKiPXY-.cjs"),te=require("@mui/material/ListSubheader"),re=require("@mui/material/MenuItem"),oe=require("@mui/material/Popover"),ie=require("@wandelbots/mui"),se=require("@mui/material/Box"),D=["XYZ","XZY","YXZ","YZX","ZXY","ZYX","XYX","XZX","YXY","YZY","ZXZ","ZYZ"],ae=[...D.map(e=>`EULER_ANGLES_INTRINSIC_${e}`),...D.map(e=>`EULER_ANGLES_EXTRINSIC_${e}`)];function y(e){const n=e.slice(e.lastIndexOf("_")+1);return{intrinsic:e.includes("_INTRINSIC_"),axes:[...n]}}function z([e,n,r]){const o=Math.hypot(e,n,r);if(o<1e-12)return[0,0,0,1];const c=Math.sin(o/2)/o;return[e*c,n*c,r*c,Math.cos(o/2)]}const U={X:0,Y:1,Z:2};function le(e){return e>Math.PI?e-2*Math.PI:e<-Math.PI?e+2*Math.PI:e}function ce(e,n){const{intrinsic:r,axes:o}=y(n),c=r?[...o].reverse():o,i=U[c[0]],a=U[c[1]],p=c[0]===c[2],s=p?3-i-a:U[c[2]],x=(i-a)*(a-s)*(s-i)/2,F=Math.hypot(...e)||1,[L,R,I,m]=e.map(V=>V/F),S=[L,R,I],j=S[i]??0,f=S[a]??0,v=(S[s]??0)*x,[T,g,A,O]=p?[m,j,f,v]:[m-f,j+v,f+m,v-j];let C=2*Math.atan2(Math.hypot(A,O),Math.hypot(T,g));const E=Math.atan2(g,T),P=Math.atan2(O,A);let l,u;const h=1e-7;return Math.abs(C)<=h?(l=2*E,u=0):Math.abs(C-Math.PI)<=h?(l=-2*P,u=0):(l=E-P,u=E+P),p||(u*=x,C-=Math.PI/2),(r?[u,C,l]:[l,C,u]).map(le)}function X({children:e}){return t.jsx(te,{children:e})}X.muiSkipListHighlight=!0;function ue({value:e,onChange:n}){const{t:r}=q.useTranslation(),o=d.useId(),c=a=>{const{intrinsic:p,axes:s}=y(a);return r(p?"CurrentPose.EulerConvention.Intrinsic.lb":"CurrentPose.EulerConvention.Extrinsic.lb",{axes:s.join("")})},i=a=>ae.filter(p=>y(p).intrinsic===a).map(p=>t.jsx(re,{value:p,children:y(p).axes.join("")},p));return t.jsxs(ie.AdornedSelect,{label:r("CurrentPose.EulerConvention.lb"),labelId:o,value:e,renderValue:a=>c(a),onChange:a=>n(a.target.value),children:[t.jsx(X,{children:r("CurrentPose.EulerConvention.Intrinsic.hlb")}),i(!0),t.jsx(X,{children:r("CurrentPose.EulerConvention.Extrinsic.hlb")}),i(!1)]})}const pe=d.memo(de,(e,n)=>e.anchor===n.anchor&&e.open===n.open&&e.onClose===n.onClose&&e.onChange===n.onChange&&e.format.type===n.format.type&&e.format.angleUnit===n.format.angleUnit&&e.format.eulerConvention===n.format.eulerConvention);function de({anchor:e,open:n,onClose:r,format:o,onChange:c}){const{t:i}=q.useTranslation(),a=i("CurrentPose.OrientationFormat.ti"),p=s=>c({...o,...s});return t.jsxs(oe,{open:n,anchorEl:e,onClose:r,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},slotProps:{paper:{role:"dialog","aria-label":a,sx:s=>{var x;return{width:"264px",padding:"16px",display:"flex",flexDirection:"column",gap:"16px",borderRadius:"10px",border:`1px solid ${s.palette.divider}`,background:(x=s.palette.backgroundPaperElevation)==null?void 0:x[2],backgroundImage:"none",boxShadow:s.shadows[16]}}}},children:[t.jsx(N,{variant:"subtitle2",color:"text.primary",children:a}),t.jsx($,{}),t.jsxs(b,{sx:{gap:"8px"},children:[t.jsx(_.PanelSelect,{label:i("CurrentPose.Format.lb"),options:[{id:"rotationVector",label:i("CurrentPose.Format.RotationVector.lb")},{id:"eulerAngles",label:i("CurrentPose.Format.EulerAngles.lb")},{id:"quaternion",label:i("CurrentPose.Format.Quaternion.lb")}],value:o.type,onChange:s=>p({type:s}),disabled:!1}),o.type!=="quaternion"&&t.jsx(_.PanelSelect,{label:i("CurrentPose.AngleUnit.lb"),options:[{id:"rad",label:i("CurrentPose.AngleUnit.Radians.lb")},{id:"deg",label:i("CurrentPose.AngleUnit.Degrees.lb")}],value:o.angleUnit,onChange:s=>p({angleUnit:s}),disabled:!1}),o.type==="eulerAngles"&&t.jsx(ue,{value:o.eulerConvention,onChange:s=>p({eulerConvention:s})})]})]})}const xe={type:"rotationVector",angleUnit:"rad",eulerConvention:"EULER_ANGLES_EXTRINSIC_XYZ"};function w(e,n){const r=e.toFixed(n);return Number(r)===0?0 .toFixed(n):r}function B(e,n){return n==="deg"?`${w(e*180/Math.PI,1)}°`:`${w(e,3)} rad`}function he(e){switch(e.type){case"quaternion":return["Qx","Qy","Qz","Qw"];case"eulerAngles":return y(e.eulerConvention).axes.map(n=>`R${n.toLowerCase()}`);default:return["Rx","Ry","Rz"]}}function ge(e,n){switch(n.type){case"quaternion":return z(e).map(r=>w(r,3));case"eulerAngles":return ce(z(e),n.eulerConvention).map(r=>B(r,n.angleUnit));default:return e.map(r=>B(r,n.angleUnit))}}function Ce(e,n){const r=["x","y","z"].map((i,a)=>({label:i.toUpperCase(),value:e?w(e.position[a]??0,1):"–",kind:i})),o=e?ge(e.orientation,n):null,c=he(n).map((i,a)=>({label:i,value:(o==null?void 0:o[a])??"–",kind:"orientation"}));return[...r,...c]}const be={KIND_UNKNOWN:"success.main",RUNNING:"info.main",PAUSED_NEAR_COLLISION:"warning.main",PAUSED_NEAR_JOINT_LIMIT:"warning.main",PAUSED_NEAR_SINGULARITY:"warning.main"};function me({state:e,error:n}){const{t:r}=q.useTranslation(),o=e??"KIND_UNKNOWN",c=n||r(`Jogging.StreamStateSection.${o}.lb`),i=n?"error.main":be[o]??"text.secondary";return t.jsx(G,{title:n?c:"",placement:"top-end",children:t.jsxs(b,{direction:"row","data-testid":n?"JOG_ERROR":o,sx:{gap:"5px",alignItems:"center",minWidth:0},children:[t.jsx(se,{sx:{width:"6px",height:"6px",borderRadius:"50%",flexShrink:0,bgcolor:i}}),t.jsx(N,{variant:"caption",noWrap:!0,sx:{color:i,letterSpacing:"0.17px"},children:c})]})})}const k={letterSpacing:"0.17px"},ve={x:"error.main",y:"success.main",z:"info.main",orientation:"grey.600"};function Q({children:e,id:n}){return t.jsx(N,{id:n,variant:"caption",color:"text.secondary",noWrap:!0,sx:k,children:e})}function W({label:e,...n}){const r=d.useId();return t.jsxs(b,{direction:"row",sx:{gap:"8px",alignItems:"center"},children:[t.jsx(Q,{id:r,children:e}),t.jsx(ne.SmallSelect,{labelId:r,width:"172px",...n})]})}const M=()=>t.jsx($,{orientation:"vertical",flexItem:!1,sx:{height:"16px"}}),Ie=K.externalizeComponent(({getCurrentPose:e,tcp:n,frame:r,state:o,error:c,orientationFormat:i,onOrientationFormatChange:a,sx:p})=>{const{t:s}=q.useTranslation(),x=d.useRef(null),[F,L]=d.useState(xe),R=i??F,[I,m]=d.useState(null),{copied:S,copy:j}=_.useCopyText(),f=_.useEveryFrame(()=>JSON.stringify(e()),!0),v=JSON.parse(f),T=Ce(v,R),g=d.useRef({tcp:n,frame:r,onOrientationFormatChange:a});g.current={tcp:n,frame:r,onOrientationFormatChange:a};const A=d.useCallback(l=>{var u;return(u=g.current.tcp)==null?void 0:u.onChange(l)},[]),O=d.useCallback(l=>{var u;return(u=g.current.frame)==null?void 0:u.onChange(l)},[]),C=d.useCallback(l=>{var u,h;L(l),(h=(u=g.current).onOrientationFormatChange)==null||h.call(u,l)},[]),E=d.useCallback(()=>m(null),[]);function P(){const l=e();l&&j(ee.poseToText(l))}return t.jsxs(b,{ref:x,direction:"row","data-testid":"current-pose-bar",sx:[l=>{var u;return{alignItems:"center",justifyContent:"space-between",gap:"12px",padding:"8px 16px",minHeight:"54px",boxSizing:"border-box",borderRadius:"10px",border:`1px solid ${l.palette.divider}`,background:(u=l.palette.backgroundPaperElevation)==null?void 0:u[2],boxShadow:l.shadows[16]}},...Array.isArray(p)?p:[p]],children:[t.jsxs(b,{direction:"row",sx:{gap:"12px",alignItems:"center",minWidth:0},children:[t.jsx(Q,{children:s("CurrentPose.Title.lb")}),t.jsx(Z,{"aria-label":s("CurrentPose.OrientationFormat.ti"),"aria-haspopup":"dialog","aria-expanded":I!==null,onClick:()=>m(x.current),sx:{padding:"3px",margin:"-3px",color:"text.secondary"},children:t.jsx(H.Settings,{})}),n&&t.jsxs(t.Fragment,{children:[t.jsx(M,{}),t.jsx(W,{label:s("RobotControl.Tcp.lb"),options:n.options,value:n.value,onChange:A})]}),r&&t.jsxs(t.Fragment,{children:[t.jsx(M,{}),t.jsx(W,{label:s("CurrentPose.RelativeTo.lb"),options:r.options,value:r.value,onChange:O})]}),t.jsx(M,{}),t.jsx(b,{direction:"row","data-testid":"current-pose-values",sx:{gap:"12px",alignItems:"center",minWidth:0,overflow:"hidden"},children:T.map(({label:l,value:u,kind:h},Y)=>t.jsxs(b,{direction:"row",sx:{gap:h==="orientation"?"1px":"2px"},children:[t.jsx(N,{variant:"caption",sx:{...k,color:ve[h]},children:l}),t.jsx(N,{variant:"caption",noWrap:!0,sx:{...k,color:"text.secondary",fontVariantNumeric:"tabular-nums"},children:u})]},Y))}),t.jsx(G,{title:s("CurrentPose.Copied.lb"),open:S,disableHoverListener:!0,placement:"top",children:t.jsx("span",{children:t.jsx(Z,{"aria-label":s("CurrentPose.Copy.bt"),onClick:P,disabled:!v,sx:{width:"30px",height:"30px",padding:"5px",borderRadius:"10px",color:"text.secondary","& svg":{width:"20px",height:"20px"}},children:t.jsx(J.ContentCopyFilled,{})})})})]}),t.jsx(me,{state:o,error:c}),t.jsx(pe,{anchor:I,open:I!==null,onClose:E,format:R,onChange:C})]})});exports.CurrentPoseBar=Ie;
1
+ "use strict";const t=require("react/jsx-runtime"),$=require("@mui/material/Divider"),Z=require("@mui/material/IconButton"),b=require("@mui/material/Stack"),G=require("@mui/material/Tooltip"),N=require("@mui/material/Typography"),J=require("@wandelbots/icons/ContentCopyFilled"),H=require("@wandelbots/icons/Settings"),d=require("react"),q=require("react-i18next"),K=require("./externalizeComponent-Br_U-QAr.cjs"),ee=require("./poseText-BXUaQWnK.cjs"),ne=require("./SmallSelect-Dcsd7_6_.cjs"),_=require("./useEveryFrame-NeKiPXY-.cjs"),te=require("@mui/material/ListSubheader"),re=require("@mui/material/MenuItem"),oe=require("@mui/material/Popover"),ie=require("@wandelbots/mui"),se=require("@mui/material/Box"),D=["XYZ","XZY","YXZ","YZX","ZXY","ZYX","XYX","XZX","YXY","YZY","ZXZ","ZYZ"],ae=[...D.map(e=>`EULER_ANGLES_INTRINSIC_${e}`),...D.map(e=>`EULER_ANGLES_EXTRINSIC_${e}`)];function y(e){const n=e.slice(e.lastIndexOf("_")+1);return{intrinsic:e.includes("_INTRINSIC_"),axes:[...n]}}function z([e,n,r]){const o=Math.hypot(e,n,r);if(o<1e-12)return[0,0,0,1];const c=Math.sin(o/2)/o;return[e*c,n*c,r*c,Math.cos(o/2)]}const U={X:0,Y:1,Z:2};function le(e){return e>Math.PI?e-2*Math.PI:e<-Math.PI?e+2*Math.PI:e}function ce(e,n){const{intrinsic:r,axes:o}=y(n),c=r?[...o].reverse():o,i=U[c[0]],a=U[c[1]],p=c[0]===c[2],s=p?3-i-a:U[c[2]],x=(i-a)*(a-s)*(s-i)/2,F=Math.hypot(...e)||1,[L,R,I,m]=e.map(V=>V/F),S=[L,R,I],j=S[i]??0,f=S[a]??0,v=(S[s]??0)*x,[T,g,A,O]=p?[m,j,f,v]:[m-f,j+v,f+m,v-j];let C=2*Math.atan2(Math.hypot(A,O),Math.hypot(T,g));const E=Math.atan2(g,T),P=Math.atan2(O,A);let l,u;const h=1e-7;return Math.abs(C)<=h?(l=2*E,u=0):Math.abs(C-Math.PI)<=h?(l=-2*P,u=0):(l=E-P,u=E+P),p||(u*=x,C-=Math.PI/2),(r?[u,C,l]:[l,C,u]).map(le)}function X({children:e}){return t.jsx(te,{children:e})}X.muiSkipListHighlight=!0;function ue({value:e,onChange:n}){const{t:r}=q.useTranslation(),o=d.useId(),c=a=>{const{intrinsic:p,axes:s}=y(a);return r(p?"CurrentPose.EulerConvention.Intrinsic.lb":"CurrentPose.EulerConvention.Extrinsic.lb",{axes:s.join("")})},i=a=>ae.filter(p=>y(p).intrinsic===a).map(p=>t.jsx(re,{value:p,children:y(p).axes.join("")},p));return t.jsxs(ie.AdornedSelect,{label:r("CurrentPose.EulerConvention.lb"),labelId:o,value:e,renderValue:a=>c(a),onChange:a=>n(a.target.value),children:[t.jsx(X,{children:r("CurrentPose.EulerConvention.Intrinsic.hlb")}),i(!0),t.jsx(X,{children:r("CurrentPose.EulerConvention.Extrinsic.hlb")}),i(!1)]})}const pe=d.memo(de,(e,n)=>e.anchor===n.anchor&&e.open===n.open&&e.onClose===n.onClose&&e.onChange===n.onChange&&e.format.type===n.format.type&&e.format.angleUnit===n.format.angleUnit&&e.format.eulerConvention===n.format.eulerConvention);function de({anchor:e,open:n,onClose:r,format:o,onChange:c}){const{t:i}=q.useTranslation(),a=i("CurrentPose.OrientationFormat.ti"),p=s=>c({...o,...s});return t.jsxs(oe,{open:n,anchorEl:e,onClose:r,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},slotProps:{paper:{role:"dialog","aria-label":a,sx:s=>{var x;return{width:"264px",padding:"16px",display:"flex",flexDirection:"column",gap:"16px",borderRadius:"10px",border:`1px solid ${s.palette.divider}`,background:(x=s.palette.backgroundPaperElevation)==null?void 0:x[2],backgroundImage:"none",boxShadow:s.shadows[16]}}}},children:[t.jsx(N,{variant:"subtitle2",color:"text.primary",children:a}),t.jsx($,{}),t.jsxs(b,{sx:{gap:"8px"},children:[t.jsx(_.PanelSelect,{label:i("CurrentPose.Format.lb"),options:[{id:"rotationVector",label:i("CurrentPose.Format.RotationVector.lb")},{id:"eulerAngles",label:i("CurrentPose.Format.EulerAngles.lb")},{id:"quaternion",label:i("CurrentPose.Format.Quaternion.lb")}],value:o.type,onChange:s=>p({type:s}),disabled:!1}),o.type!=="quaternion"&&t.jsx(_.PanelSelect,{label:i("CurrentPose.AngleUnit.lb"),options:[{id:"rad",label:i("CurrentPose.AngleUnit.Radians.lb")},{id:"deg",label:i("CurrentPose.AngleUnit.Degrees.lb")}],value:o.angleUnit,onChange:s=>p({angleUnit:s}),disabled:!1}),o.type==="eulerAngles"&&t.jsx(ue,{value:o.eulerConvention,onChange:s=>p({eulerConvention:s})})]})]})}const xe={type:"rotationVector",angleUnit:"rad",eulerConvention:"EULER_ANGLES_EXTRINSIC_XYZ"};function w(e,n){const r=e.toFixed(n);return Number(r)===0?0 .toFixed(n):r}function B(e,n){return n==="deg"?`${w(e*180/Math.PI,1)}°`:`${w(e,3)} rad`}function he(e){switch(e.type){case"quaternion":return["Qx","Qy","Qz","Qw"];case"eulerAngles":return y(e.eulerConvention).axes.map(n=>`R${n.toLowerCase()}`);default:return["Rx","Ry","Rz"]}}function ge(e,n){switch(n.type){case"quaternion":return z(e).map(r=>w(r,3));case"eulerAngles":return ce(z(e),n.eulerConvention).map(r=>B(r,n.angleUnit));default:return e.map(r=>B(r,n.angleUnit))}}function Ce(e,n){const r=["x","y","z"].map((i,a)=>({label:i.toUpperCase(),value:e?w(e.position[a]??0,1):"–",kind:i})),o=e?ge(e.orientation,n):null,c=he(n).map((i,a)=>({label:i,value:(o==null?void 0:o[a])??"–",kind:"orientation"}));return[...r,...c]}const be={KIND_UNKNOWN:"success.main",RUNNING:"info.main",PAUSED_NEAR_COLLISION:"warning.main",PAUSED_NEAR_JOINT_LIMIT:"warning.main",PAUSED_NEAR_SINGULARITY:"warning.main"};function me({state:e,error:n}){const{t:r}=q.useTranslation(),o=e??"KIND_UNKNOWN",c=n||r(`Jogging.StreamStateSection.${o}.lb`),i=n?"error.main":be[o]??"text.secondary";return t.jsx(G,{title:n?c:"",placement:"top-end",children:t.jsxs(b,{direction:"row","data-testid":n?"JOG_ERROR":o,sx:{gap:"5px",alignItems:"center",minWidth:0},children:[t.jsx(se,{sx:{width:"6px",height:"6px",borderRadius:"50%",flexShrink:0,bgcolor:i}}),t.jsx(N,{variant:"caption",noWrap:!0,sx:{color:i,letterSpacing:"0.17px"},children:c})]})})}const k={letterSpacing:"0.17px"},ve={x:"error.main",y:"success.main",z:"info.main",orientation:"grey.600"};function Q({children:e,id:n}){return t.jsx(N,{id:n,variant:"caption",color:"text.secondary",noWrap:!0,sx:k,children:e})}function W({label:e,...n}){const r=d.useId();return t.jsxs(b,{direction:"row",sx:{gap:"8px",alignItems:"center"},children:[t.jsx(Q,{id:r,children:e}),t.jsx(ne.SmallSelect,{labelId:r,width:"172px",...n})]})}const M=()=>t.jsx($,{orientation:"vertical",flexItem:!1,sx:{height:"16px"}}),Ie=K.externalizeComponent(({getCurrentPose:e,tcp:n,frame:r,state:o,error:c,orientationFormat:i,onOrientationFormatChange:a,sx:p})=>{const{t:s}=q.useTranslation(),x=d.useRef(null),[F,L]=d.useState(xe),R=i??F,[I,m]=d.useState(null),{copied:S,copy:j}=_.useCopyText(),f=_.useEveryFrame(()=>JSON.stringify(e()),!0),v=JSON.parse(f),T=Ce(v,R),g=d.useRef({tcp:n,frame:r,onOrientationFormatChange:a});g.current={tcp:n,frame:r,onOrientationFormatChange:a};const A=d.useCallback(l=>{var u;return(u=g.current.tcp)==null?void 0:u.onChange(l)},[]),O=d.useCallback(l=>{var u;return(u=g.current.frame)==null?void 0:u.onChange(l)},[]),C=d.useCallback(l=>{var u,h;L(l),(h=(u=g.current).onOrientationFormatChange)==null||h.call(u,l)},[]),E=d.useCallback(()=>m(null),[]);function P(){const l=e();l&&j(ee.poseToText(l))}return t.jsxs(b,{ref:x,direction:"row","data-testid":"current-pose-bar",sx:[l=>{var u;return{alignItems:"center",justifyContent:"space-between",gap:"12px",padding:"8px 16px",minHeight:"54px",boxSizing:"border-box",borderRadius:"10px",border:`1px solid ${l.palette.divider}`,background:(u=l.palette.backgroundPaperElevation)==null?void 0:u[2],boxShadow:l.shadows[16]}},...Array.isArray(p)?p:[p]],children:[t.jsxs(b,{direction:"row",sx:{gap:"12px",alignItems:"center",minWidth:0},children:[t.jsx(Q,{children:s("CurrentPose.Title.lb")}),t.jsx(Z,{"aria-label":s("CurrentPose.OrientationFormat.ti"),"aria-haspopup":"dialog","aria-expanded":I!==null,onClick:()=>m(x.current),sx:{padding:"3px",margin:"-3px",color:"text.secondary"},children:t.jsx(H.Settings,{})}),n&&t.jsxs(t.Fragment,{children:[t.jsx(M,{}),t.jsx(W,{label:s("RobotControl.Tcp.lb"),options:n.options,value:n.value,onChange:A})]}),r&&t.jsxs(t.Fragment,{children:[t.jsx(M,{}),t.jsx(W,{label:s("CurrentPose.RelativeTo.lb"),options:r.options,value:r.value,onChange:O})]}),t.jsx(M,{}),t.jsx(b,{direction:"row","data-testid":"current-pose-values",sx:{gap:"12px",alignItems:"center",minWidth:0,overflow:"hidden"},children:T.map(({label:l,value:u,kind:h},Y)=>t.jsxs(b,{direction:"row",sx:{gap:h==="orientation"?"1px":"2px"},children:[t.jsx(N,{variant:"caption",sx:{...k,color:ve[h]},children:l}),t.jsx(N,{variant:"caption",noWrap:!0,sx:{...k,color:"text.secondary",fontVariantNumeric:"tabular-nums"},children:u})]},Y))}),t.jsx(G,{title:s("CurrentPose.Copied.lb"),open:S,disableHoverListener:!0,placement:"top",children:t.jsx("span",{children:t.jsx(Z,{"aria-label":s("CurrentPose.Copy.bt"),onClick:P,disabled:!v,sx:{width:"30px",height:"30px",padding:"5px",borderRadius:"10px",color:"text.secondary","& svg":{width:"20px",height:"20px"}},children:t.jsx(J.ContentCopyFilled,{})})})})]}),t.jsx(me,{state:o,error:c}),t.jsx(pe,{anchor:I,open:I!==null,onClose:E,format:R,onChange:C})]})});exports.CurrentPoseBar=Ie;