quantum-component-library 1.4.47-dev.9 → 1.4.48-1

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 (75) hide show
  1. package/dist/components.cjs +1 -1
  2. package/dist/components.js +1528 -1399
  3. package/dist/{dnd-core-vendor-CErAmYu_.js → dnd-core-vendor-CEbjUoFs.js} +2 -2
  4. package/dist/{dnd-core-vendor-2Ve0kqUN.cjs → dnd-core-vendor-gqRN0Czq.cjs} +1 -1
  5. package/dist/generated/gql.d.ts +17 -2
  6. package/dist/generated/graphql.d.ts +65 -1
  7. package/dist/generated-graphql.cjs +1 -1
  8. package/dist/generated-graphql.js +47 -44
  9. package/dist/generated.cjs +1 -1
  10. package/dist/generated.js +56 -53
  11. package/dist/graphql/fragments/index.d.ts +1 -0
  12. package/dist/graphql/fragments/metadata.d.ts +2 -0
  13. package/dist/graphql/queries/index.d.ts +1 -0
  14. package/dist/graphql/queries/metadata.d.ts +3 -0
  15. package/dist/{graphql-C6M9oyU0.cjs → graphql-Ce2MNCsk.cjs} +72 -49
  16. package/dist/{graphql-CvUc6Vdv.js → graphql-_vGi4u4K.js} +95 -70
  17. package/dist/graphql-vendor-AFHxLsy8.cjs +14 -0
  18. package/dist/graphql-vendor-hJezYUeG.js +669 -0
  19. package/dist/hooks.cjs +1 -1
  20. package/dist/hooks.js +61 -51
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +139 -131
  23. package/dist/lib/hooks/index.d.ts +1 -0
  24. package/dist/lib/hooks/use-ui-label-context.d.ts +6 -0
  25. package/dist/lib/providers/index.d.ts +1 -0
  26. package/dist/lib/providers/ui-label-provider/context.d.ts +9 -0
  27. package/dist/lib/providers/ui-label-provider/index.d.ts +2 -0
  28. package/dist/lib/providers/ui-label-provider/provider.d.ts +2 -0
  29. package/dist/lib/utils/cn.d.ts +2 -0
  30. package/dist/lib/utils/index.d.ts +1 -2
  31. package/dist/{lodash-vendor-CR237hSU.cjs → lodash-vendor-CF0pV_0E.cjs} +1 -1
  32. package/dist/{lodash-vendor-D4ZPCr77.js → lodash-vendor-apNdTTav.js} +1 -1
  33. package/dist/other-D9ROT7p0.js +20 -0
  34. package/dist/other-DyoApG-9.cjs +1 -0
  35. package/dist/providers.cjs +1 -1
  36. package/dist/providers.js +41 -8
  37. package/dist/quantum-component-library.css +1 -1
  38. package/dist/{react-dnd-vendor-D4nn9Mqx.js → react-dnd-vendor-BCrg2QCX.js} +2 -2
  39. package/dist/{react-dnd-vendor-BPzSDojS.cjs → react-dnd-vendor-PwwXhPmK.cjs} +1 -1
  40. package/dist/react-icons-vendor-BF_sZq07.cjs +1 -0
  41. package/dist/{react-icons-vendor-TETORdU9.js → react-icons-vendor-CMsTQrA0.js} +51 -43
  42. package/dist/{react-select-vendor-D_Q2fL5j.cjs → react-select-vendor-BeWvSe2q.cjs} +1 -1
  43. package/dist/{react-select-vendor-BlY9Il4Q.js → react-select-vendor-BxbsY5Z-.js} +1 -1
  44. package/dist/services-action-CfZFwhy-.js +40 -0
  45. package/dist/services-action-DBOzfgMl.cjs +1 -0
  46. package/dist/services-human-B98qxeuS.js +798 -0
  47. package/dist/services-human-CnvSTmoF.cjs +1 -0
  48. package/dist/services-rom-DmV5X8yu.cjs +1 -0
  49. package/dist/services-rom-omMeC-vQ.js +18 -0
  50. package/dist/services.cjs +1 -1
  51. package/dist/services.js +52 -844
  52. package/dist/types.cjs +1 -1
  53. package/dist/types.js +11 -11
  54. package/dist/utils-cn-CgdSr4hO.js +7 -0
  55. package/dist/utils-cn-FIKrq5Mb.cjs +1 -0
  56. package/dist/utils-conversion-CWypeWsT.cjs +1 -0
  57. package/dist/utils-conversion-ChFbq8I2.js +94 -0
  58. package/dist/utils-memo-BJJP2KfI.cjs +1 -0
  59. package/dist/utils-memo-DtXdOqCT.js +13 -0
  60. package/dist/utils-parameters-BBFuBK2B.js +21 -0
  61. package/dist/utils-parameters-dwKmz1VU.cjs +1 -0
  62. package/dist/utils-text-CN3zLiZ7.js +5 -0
  63. package/dist/utils-text-lORqO4uI.cjs +1 -0
  64. package/dist/utils.cjs +1 -1
  65. package/dist/utils.js +29 -126
  66. package/dist/vendor-BOD7IxCS.js +421 -0
  67. package/dist/vendor-IPtJZCbx.cjs +1 -0
  68. package/package.json +2 -2
  69. package/dist/graphql-vendor-B-QTAQSb.cjs +0 -19
  70. package/dist/graphql-vendor-B0NjgbDB.js +0 -1284
  71. package/dist/other-C4VnLmM6.js +0 -15
  72. package/dist/other-Dp3RPYfF.cjs +0 -1
  73. package/dist/react-icons-vendor-D2s8zw9h.cjs +0 -1
  74. package/dist/vendor-BjLvygDR.cjs +0 -1
  75. package/dist/vendor-VALJ9W3p.js +0 -526
package/dist/services.js CHANGED
@@ -1,847 +1,55 @@
1
- import { ActivityType as l, SessionType as L, ActionActivityKind as h } from "./generated-graphql.js";
2
- import { axes as E, planes as T, AngleDataSource as c, limbAngle as v, jointAngle as w } from "./types.js";
3
- import "./moment-vendor-DMLRxgRE.js";
4
- import { memo as m, capitalizeAll as x } from "./utils.js";
5
- const ue = (e) => {
6
- switch (e) {
7
- case l.IsolatedMovement:
8
- return "Isolated Movement";
9
- case l.FunctionalMovement:
10
- return "Functional Movement";
11
- case l.ActionPrecursor:
12
- return "Action Precursor";
13
- case l.IsolatedAction:
14
- return "Isolated Action";
15
- }
16
- }, Re = (e) => {
17
- switch (e) {
18
- case L.BiofeedbackTraining:
19
- return "Biofeedback (Training)";
20
- case L.BiofeedbackTesting:
21
- return "Biofeedback (Testing)";
22
- case L.RecordedTesting:
23
- return "Recorded (Testing)";
24
- }
25
- }, Le = (e) => {
26
- switch (e) {
27
- case l.IsolatedMovement:
28
- return h.Movement;
29
- case l.FunctionalMovement:
30
- return h.Movement;
31
- case l.ActionPrecursor:
32
- return h.Action;
33
- case l.IsolatedAction:
34
- return h.Action;
35
- default:
36
- return h.Action;
37
- }
38
- }, b = { sagittal: { __COMMENT__: "-Plantar Flexion, +Dorsi flexion", min: -20, max: 30 }, frontal: { __COMMENT__: "-Inversion, +Eversion", min: -30, max: 20 }, transverse: { __COMMENT__: "-Pronation, +Supination", min: -10, max: 10 } }, N = { sagittal: { __COMMENT__: "-Plantar Flexion, +Dorsi flexion", min: -20, max: 30 }, frontal: { __COMMENT__: "-Inversion, +Eversion", min: -30, max: 20 }, transverse: { __COMMENT__: "-Pronation, +Supination", min: -10, max: 10 } }, F = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -5, max: 142 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "N/A", min: 0, max: 0 } }, M = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -5, max: 142 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "N/A", min: 0, max: 0 } }, C = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -18, max: 134 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -20, max: 40 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -40, max: 50 } }, P = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -18, max: 134 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -20, max: 40 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -40, max: 50 } }, B = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -75, max: 60 }, frontal: { __COMMENT__: "-Bend Right, +Bend Left", min: -45, max: 45 }, transverse: { __COMMENT__: "-Twist Right, +Twist Left", min: -80, max: 80 } }, H = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -25, max: 50 }, frontal: { __COMMENT__: "-Bend Right, +Bend Left", min: -25, max: 25 }, transverse: { __COMMENT__: "-Twist Right, +Twist Left", min: -30, max: 30 } }, U = { __COMMENT__: "This is the sum of the ChestSpine and NavalSpine", sagittal: { __COMMENT__: "-Extension, +Flexion", min: -100, max: 110 }, frontal: { __COMMENT__: "-Bend Right, +Bend Left", min: -70, max: 70 }, transverse: { __COMMENT__: "-Twist Right, +Twist Left", min: -110, max: 110 } }, O = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -50, max: 180 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -50, max: 180 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -90, max: 90 } }, K = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: -50, max: 180 }, frontal: { __COMMENT__: "-Adduction, +Abduction", min: -50, max: 180 }, transverse: { __COMMENT__: "-Internal Rotation, +External Rotation", min: -90, max: 90 } }, y = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: 0, max: 140 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "-Pronation/+Supination (of forearm)", min: -80, max: 80 } }, j = { sagittal: { __COMMENT__: "-Extension, +Flexion", min: 0, max: 140 }, frontal: { __COMMENT__: "N/A", min: 0, max: 0 }, transverse: { __COMMENT__: "-Pronation/+Supination (of forearm)", min: -80, max: 80 } }, _ = {
39
- LeftAnkle: b,
40
- RightAnkle: N,
41
- LeftKnee: F,
42
- RightKnee: M,
43
- LeftHip: C,
44
- RightHip: P,
45
- NavalSpine: B,
46
- ChestSpine: H,
47
- TotalSpine: U,
48
- LeftShoulder: O,
49
- RightShoulder: K,
50
- LeftElbow: y,
51
- RightElbow: j
52
- }, i = {
53
- LeftFoot: "Left Foot",
54
- RightFoot: "Right Foot",
55
- LeftShank: "Left Shank",
56
- RightShank: "Right Shank",
57
- LeftThigh: "Left Thigh",
58
- RightThigh: "Right Thigh",
59
- LeftPelvis: "Left Pelvis",
60
- RightPelvis: "Right Pelvis",
61
- LowerBack: "Pelvis",
62
- CenterBack: "Center Back",
63
- UpperBack: "Thorax",
64
- Head: "Head",
65
- LeftClavicle: "Left Clavicle",
66
- RightClavicle: "Right Clavicle",
67
- LeftUpperArm: "Left Upper Arm",
68
- RightUpperArm: "Right Upper Arm",
69
- LeftForearm: "Left Forearm",
70
- RightForearm: "Right Forearm"
71
- }, a = {
72
- LeftAnkle: "Left Ankle",
73
- RightAnkle: "Right Ankle",
74
- LeftKnee: "Left Knee",
75
- RightKnee: "Right Knee",
76
- LeftHip: "Left Hip",
77
- RightHip: "Right Hip",
78
- NavalSpine: "Lower Back",
79
- ChestSpine: "Upper Back",
80
- TotalSpine: "Total Spine",
81
- LeftShoulder: "Left Shoulder",
82
- RightShoulder: "Right Shoulder",
83
- LeftElbow: "Left Elbow",
84
- RightElbow: "Right Elbow",
85
- Neck: "Neck"
86
- }, de = {
87
- LeftFoot: ["LeftAnkle"],
88
- RightFoot: ["RightAnkle"],
89
- LeftShank: ["LeftKnee", "LeftAnkle"],
90
- RightShank: ["RightKnee", "RightAnkle"],
91
- LeftThigh: ["LeftHip", "LeftKnee"],
92
- RightThigh: ["RightHip", "RightKnee"],
93
- LeftPelvis: ["LeftHip"],
94
- RightPelvis: ["RightHip"],
95
- LowerBack: ["LeftHip", "RightHip", "NavalSpine", "TotalSpine"],
96
- CenterBack: ["NavalSpine", "ChestSpine"],
97
- UpperBack: ["ChestSpine", "TotalSpine"],
98
- Head: ["Neck"],
99
- LeftClavicle: ["LeftShoulder"],
100
- RightClavicle: ["RightShoulder"],
101
- LeftUpperArm: ["LeftShoulder", "LeftElbow"],
102
- RightUpperArm: ["RightShoulder", "RightElbow"],
103
- LeftForearm: ["LeftElbow"],
104
- RightForearm: ["RightElbow"]
105
- }, A = {
106
- LeftAnkle: ["LeftFoot", "LeftShank"],
107
- RightAnkle: ["RightFoot", "RightShank"],
108
- LeftKnee: ["LeftShank", "LeftThigh"],
109
- RightKnee: ["RightShank", "RightThigh"],
110
- LeftHip: ["LeftThigh", "LowerBack"],
111
- RightHip: ["RightThigh", "LowerBack"],
112
- NavalSpine: ["LowerBack", "CenterBack"],
113
- ChestSpine: ["CenterBack", "UpperBack"],
114
- TotalSpine: ["UpperBack", "LowerBack"],
115
- LeftShoulder: ["LeftClavicle", "LeftUpperArm"],
116
- RightShoulder: ["RightClavicle", "RightUpperArm"],
117
- LeftElbow: ["LeftUpperArm", "LeftForearm"],
118
- RightElbow: ["RightUpperArm", "RightForearm"],
119
- Neck: ["Head", "UpperBack"]
120
- }, k = () => [
121
- { id: "LeftFoot", name: i.LeftFoot },
122
- { id: "RightFoot", name: i.RightFoot },
123
- { id: "LeftShank", name: i.LeftShank },
124
- { id: "RightShank", name: i.RightShank },
125
- { id: "LeftThigh", name: i.LeftThigh },
126
- { id: "RightThigh", name: i.RightThigh },
127
- // { id: 'LeftPelvis', name: limbNames.LeftPelvis },
128
- // { id: 'RightPelvis', name: limbNames.RightPelvis },
129
- { id: "LowerBack", name: i.LowerBack },
130
- { id: "CenterBack", name: i.CenterBack },
131
- { id: "UpperBack", name: i.UpperBack },
132
- { id: "Head", name: i.Head },
133
- // { id: 'LeftClavicle', name: limbNames.LeftClavicle },
134
- // { id: 'RightClavicle', name: limbNames.RightClavicle },
135
- { id: "LeftUpperArm", name: i.LeftUpperArm },
136
- { id: "RightUpperArm", name: i.RightUpperArm },
137
- { id: "LeftForearm", name: i.LeftForearm },
138
- { id: "RightForearm", name: i.RightForearm }
139
- ], xe = (e) => k().filter((t) => e.find((n) => n == t.id)), J = () => [
140
- { id: "LeftAnkle", name: a.LeftAnkle },
141
- { id: "RightAnkle", name: a.RightAnkle },
142
- { id: "LeftKnee", name: a.LeftKnee },
143
- { id: "RightKnee", name: a.RightKnee },
144
- { id: "LeftHip", name: a.LeftHip },
145
- { id: "RightHip", name: a.RightHip },
146
- { id: "NavalSpine", name: a.NavalSpine },
147
- { id: "ChestSpine", name: a.ChestSpine },
148
- { id: "TotalSpine", name: a.TotalSpine },
149
- { id: "LeftShoulder", name: a.LeftShoulder },
150
- { id: "RightShoulder", name: a.RightShoulder },
151
- { id: "LeftElbow", name: a.LeftElbow },
152
- { id: "RightElbow", name: a.RightElbow },
153
- { id: "Neck", name: a.Neck }
154
- ], $ = () => [
155
- { id: "LeftAnkle", name: a.LeftAnkle },
156
- { id: "RightAnkle", name: a.RightAnkle },
157
- { id: "LeftKnee", name: a.LeftKnee },
158
- { id: "RightKnee", name: a.RightKnee },
159
- { id: "LeftHip", name: a.LeftHip },
160
- { id: "RightHip", name: a.RightHip },
161
- { id: "NavalSpine", name: a.NavalSpine },
162
- { id: "ChestSpine", name: a.ChestSpine },
163
- { id: "TotalSpine", name: a.TotalSpine },
164
- { id: "LeftShoulder", name: a.LeftShoulder },
165
- { id: "RightShoulder", name: a.RightShoulder },
166
- // TODO: Left & Right elbow hidden while validation is being done
167
- // { id: 'LeftElbow', name: jointNames.LeftElbow },
168
- // { id: 'RightElbow', name: jointNames.RightElbow },
169
- { id: "Neck", name: a.Neck }
170
- ], D = () => [
171
- { id: "LeftAnkle", name: a.LeftAnkle },
172
- { id: "RightAnkle", name: a.RightAnkle },
173
- { id: "LeftKnee", name: a.LeftKnee },
174
- { id: "RightKnee", name: a.RightKnee },
175
- { id: "LeftHip", name: a.LeftHip },
176
- { id: "RightHip", name: a.RightHip },
177
- { id: "TotalSpine", name: a.TotalSpine },
178
- { id: "LeftShoulder", name: a.LeftShoulder },
179
- { id: "RightShoulder", name: a.RightShoulder },
180
- { id: "LeftElbow", name: a.LeftElbow },
181
- { id: "RightElbow", name: a.RightElbow },
182
- { id: "Neck", name: a.Neck }
183
- ], pe = () => [
184
- { id: "Head", name: i.Head },
185
- { id: "LeftThigh", name: i.LeftThigh },
186
- { id: "RightThigh", name: i.RightThigh },
187
- { id: "LeftShank", name: i.LeftShank },
188
- { id: "RightShank", name: i.RightShank },
189
- { id: "LeftFoot", name: i.LeftFoot },
190
- { id: "RightFoot", name: i.RightFoot },
191
- { id: "LowerBack", name: i.LowerBack },
192
- { id: "UpperBack", name: i.UpperBack },
193
- { id: "LeftUpperArm", name: i.LeftUpperArm },
194
- { id: "RightUpperArm", name: i.RightUpperArm },
195
- { id: "LeftForearm", name: i.LeftForearm },
196
- { id: "RightForearm", name: i.RightForearm }
197
- ], _e = (e) => $().filter((n) => A[n.id].every((r) => e.includes(r))), Ae = (e) => D().filter((n) => A[n.id].every((r) => e.includes(r))), I = (e, t, n) => {
198
- if (n)
199
- return ["frontal", "sagittal", "transverse"];
200
- switch (e) {
201
- case "LeftKnee":
202
- case "RightKnee":
203
- return ["sagittal"];
204
- case "LeftAnkle":
205
- case "RightAnkle":
206
- return t && t == c.Pose ? ["sagittal"] : ["frontal", "sagittal"];
207
- case "TotalSpine":
208
- return t && t == c.Pose ? ["frontal"] : ["frontal", "sagittal", "transverse"];
209
- case "LeftElbow":
210
- case "RightElbow":
211
- return t && t == c.Pose ? ["sagittal"] : ["frontal", "sagittal", "transverse"];
212
- }
213
- return t && t == c.Pose ? ["frontal", "sagittal"] : ["frontal", "sagittal", "transverse"];
214
- }, z = (e, t) => {
215
- if (t === c.Sensor)
216
- return ["frontal", "sagittal", "transverse"];
217
- switch (e) {
218
- case "Head":
219
- case "LeftThigh":
220
- case "RightThigh":
221
- case "LeftShank":
222
- case "RightShank":
223
- case "LeftUpperArm":
224
- case "RightUpperArm":
225
- case "LeftForearm":
226
- case "RightForearm":
227
- return ["frontal", "sagittal"];
228
- case "LeftFoot":
229
- case "RightFoot":
230
- return ["sagittal"];
231
- case "LowerBack":
232
- return ["frontal"];
233
- case "UpperBack":
234
- return ["frontal", "sagittal"];
235
- }
236
- return [];
237
- }, W = m(
238
- (e, t, n) => {
239
- switch (e) {
240
- case "LeftAnkle":
241
- case "RightAnkle":
242
- switch (t) {
243
- case "frontal":
244
- return n < 0 ? "inversion" : "eversion";
245
- case "sagittal":
246
- return n < 0 ? "plantar flexion" : "dorsi flexion";
247
- case "transverse":
248
- return n < 0 ? "internal rotation" : "external rotation";
249
- }
250
- case "LeftKnee":
251
- case "RightKnee":
252
- switch (t) {
253
- case "frontal":
254
- return n < 0 ? "adduction" : "abduction";
255
- case "sagittal":
256
- return n < 0 ? "extension" : "flexion";
257
- case "transverse":
258
- return n < 0 ? "internal rotation" : "external rotation";
259
- }
260
- case "LeftHip":
261
- case "RightHip":
262
- case "LeftShoulder":
263
- case "RightShoulder":
264
- switch (t) {
265
- case "frontal":
266
- return n < 0 ? "adduction" : "abduction";
267
- case "sagittal":
268
- return n < 0 ? "extension" : "flexion";
269
- case "transverse":
270
- return n < 0 ? "internal rotation" : "external rotation";
271
- }
272
- case "NavalSpine":
273
- case "ChestSpine":
274
- case "TotalSpine":
275
- case "Neck":
276
- switch (t) {
277
- case "frontal":
278
- return n < 0 ? "right lateral flexion" : "left lateral flexion";
279
- case "sagittal":
280
- return n < 0 ? "extension" : "flexion";
281
- case "transverse":
282
- return n < 0 ? "right rotation" : "left rotation";
283
- }
284
- case "LeftElbow":
285
- case "RightElbow":
286
- switch (t) {
287
- case "frontal":
288
- return null;
289
- case "sagittal":
290
- return n < 0 ? "extension" : "flexion";
291
- case "transverse":
292
- return n < 0 ? "pronation" : "supination";
293
- }
294
- }
295
- return null;
296
- }
297
- ), V = m(
298
- (e, t, n) => {
299
- switch (e) {
300
- case "LeftAnkle":
301
- case "RightAnkle":
302
- switch (t) {
303
- case "frontal":
304
- return n < 0 ? "Inv." : "Ev.";
305
- case "sagittal":
306
- return n < 0 ? "PF." : "DF.";
307
- case "transverse":
308
- return n < 0 ? "IR." : "ER.";
309
- }
310
- case "LeftKnee":
311
- case "RightKnee":
312
- switch (t) {
313
- case "frontal":
314
- return n < 0 ? "Add." : "Abd.";
315
- case "sagittal":
316
- return n < 0 ? "Ext." : "Flex.";
317
- case "transverse":
318
- return n < 0 ? "IR." : "ER.";
319
- }
320
- case "LeftHip":
321
- case "RightHip":
322
- case "LeftShoulder":
323
- case "RightShoulder":
324
- switch (t) {
325
- case "frontal":
326
- return n < 0 ? "Add." : "Abd.";
327
- case "sagittal":
328
- return n < 0 ? "Ext." : "Flex.";
329
- case "transverse":
330
- return n < 0 ? "IR." : "ER.";
331
- }
332
- case "NavalSpine":
333
- case "ChestSpine":
334
- case "TotalSpine":
335
- case "Neck":
336
- switch (t) {
337
- case "frontal":
338
- return n < 0 ? "R. Bend" : "L. Bend";
339
- case "sagittal":
340
- return n < 0 ? "Ext." : "Flex.";
341
- case "transverse":
342
- return n < 0 ? "R. Rot." : "L. Rot.";
343
- }
344
- case "LeftElbow":
345
- case "RightElbow":
346
- switch (t) {
347
- case "frontal":
348
- return null;
349
- case "sagittal":
350
- return n < 0 ? "Ext." : "Flex.";
351
- case "transverse":
352
- return n < 0 ? "Pro." : "Sup.";
353
- }
354
- }
355
- return null;
356
- }
357
- ), d = m(
358
- (e, t, n) => {
359
- switch (e) {
360
- case "LowerBack":
361
- case "LeftPelvis":
362
- case "RightPelvis":
363
- switch (t) {
364
- case "frontal":
365
- return n < 0 ? "right drop" : "left drop";
366
- case "sagittal":
367
- return n < 0 ? "anterior tilt" : "posterior tilt";
368
- case "transverse":
369
- return n < 0 ? "right rotation" : "left rotation";
370
- }
371
- case "Head":
372
- case "UpperBack":
373
- case "CenterBack":
374
- case "LeftShank":
375
- case "RightShank":
376
- case "LeftThigh":
377
- case "RightThigh":
378
- case "LeftFoot":
379
- case "RightFoot":
380
- case "LeftUpperArm":
381
- case "RightUpperArm":
382
- case "LeftForearm":
383
- case "RightForearm":
384
- switch (t) {
385
- case "frontal":
386
- return n < 0 ? "right tilt" : "left tilt";
387
- case "sagittal":
388
- return n < 0 ? "anterior tilt" : "posterior tilt";
389
- case "transverse":
390
- return n < 0 ? "right rotation" : "left rotation";
391
- }
392
- default:
393
- return null;
394
- }
395
- }
396
- ), q = m(
397
- (e, t, n) => {
398
- switch (e) {
399
- case "LowerBack":
400
- case "LeftPelvis":
401
- case "RightPelvis":
402
- switch (t) {
403
- case "frontal":
404
- return n < 0 ? "R. Drop" : "L. Drop";
405
- case "sagittal":
406
- return n < 0 ? "Ant. Tilt" : "Pos. Tilt";
407
- case "transverse":
408
- return n < 0 ? "R. Rot." : "L. Rot.";
409
- }
410
- case "Head":
411
- case "UpperBack":
412
- case "CenterBack":
413
- case "LeftShank":
414
- case "RightShank":
415
- case "LeftThigh":
416
- case "RightThigh":
417
- case "LeftFoot":
418
- case "RightFoot":
419
- case "LeftUpperArm":
420
- case "RightUpperArm":
421
- case "LeftForearm":
422
- case "RightForearm":
423
- switch (t) {
424
- case "frontal":
425
- return n < 0 ? "R. Tilt" : "L. Tilt";
426
- case "sagittal":
427
- return n < 0 ? "Ant. Tilt" : "Pos. Tilt";
428
- case "transverse":
429
- return n < 0 ? "R. Rot." : "L. Rot.";
430
- }
431
- default:
432
- return null;
433
- }
434
- }
435
- ), ke = m(
436
- (e, t) => {
437
- switch (e) {
438
- case "LeftAnkle":
439
- case "RightAnkle":
440
- switch (t) {
441
- case "frontal":
442
- return { min: -20, max: 20 };
443
- case "sagittal":
444
- return { min: -30, max: 30 };
445
- case "transverse":
446
- return { min: -5, max: 5 };
447
- }
448
- case "LeftKnee":
449
- case "RightKnee":
450
- switch (t) {
451
- case "frontal":
452
- return { min: -5, max: 5 };
453
- case "sagittal":
454
- return { min: -5, max: 90 };
455
- case "transverse":
456
- return { min: -5, max: 5 };
457
- }
458
- case "LeftHip":
459
- case "RightHip":
460
- return { min: -30, max: 30 };
461
- case "LeftShoulder":
462
- case "RightShoulder":
463
- return { min: -50, max: 50 };
464
- case "NavalSpine":
465
- case "ChestSpine":
466
- case "TotalSpine":
467
- case "Neck":
468
- switch (t) {
469
- case "frontal":
470
- return { min: -5, max: 5 };
471
- case "sagittal":
472
- return { min: -5, max: 5 };
473
- case "transverse":
474
- return { min: -5, max: 5 };
475
- }
476
- case "LeftElbow":
477
- case "RightElbow":
478
- switch (t) {
479
- case "frontal":
480
- return { min: -5, max: 5 };
481
- case "sagittal":
482
- return { min: -5, max: 50 };
483
- case "transverse":
484
- return { min: -5, max: 5 };
485
- }
486
- }
487
- return { min: -10, max: 10 };
488
- }
489
- ), Se = m(
490
- (e, t) => {
491
- switch (e) {
492
- case "LeftFoot":
493
- case "RightFoot":
494
- switch (t) {
495
- case "frontal":
496
- return { min: -20, max: 20 };
497
- case "sagittal":
498
- return { min: -30, max: 30 };
499
- case "transverse":
500
- return { min: -5, max: 5 };
501
- }
502
- case "LeftShank":
503
- case "RightShank":
504
- switch (t) {
505
- case "frontal":
506
- return { min: -35, max: 35 };
507
- case "sagittal":
508
- return { min: -35, max: 35 };
509
- case "transverse":
510
- return { min: -5, max: 5 };
511
- }
512
- case "LeftThigh":
513
- case "RightThigh":
514
- switch (t) {
515
- case "frontal":
516
- return { min: -35, max: 35 };
517
- case "sagittal":
518
- return { min: -35, max: 35 };
519
- case "transverse":
520
- return { min: -10, max: 5 };
521
- }
522
- case "LeftPelvis":
523
- case "RightPelvis":
524
- switch (t) {
525
- case "frontal":
526
- return { min: -15, max: 15 };
527
- case "sagittal":
528
- return { min: -10, max: 10 };
529
- case "transverse":
530
- return { min: -10, max: 10 };
531
- }
532
- case "LowerBack":
533
- case "CenterBack":
534
- case "UpperBack":
535
- case "Head":
536
- return { min: -5, max: 5 };
537
- case "LeftClavicle":
538
- case "RightClavicle":
539
- switch (t) {
540
- case "frontal":
541
- return { min: -15, max: 15 };
542
- case "sagittal":
543
- return { min: -10, max: 10 };
544
- case "transverse":
545
- return { min: -10, max: 10 };
546
- }
547
- case "LeftUpperArm":
548
- case "RightUpperArm":
549
- case "LeftForearm":
550
- case "RightForearm":
551
- switch (t) {
552
- case "frontal":
553
- return { min: -45, max: 45 };
554
- case "sagittal":
555
- return { min: -45, max: 45 };
556
- case "transverse":
557
- return { min: -20, max: 20 };
558
- }
559
- }
560
- return { min: -10, max: 10 };
561
- }
562
- ), Ee = m(
563
- (e, t) => {
564
- switch (e) {
565
- case "LeftAnkle":
566
- case "RightAnkle":
567
- switch (t) {
568
- case "frontal":
569
- return { min: -40, max: 30 };
570
- case "sagittal":
571
- return { min: -80, max: 50 };
572
- case "transverse":
573
- return { min: -90, max: 90 };
574
- }
575
- case "LeftKnee":
576
- case "RightKnee":
577
- switch (t) {
578
- case "frontal":
579
- return { min: -15, max: 5 };
580
- case "sagittal":
581
- return { min: -10, max: 160 };
582
- case "transverse":
583
- return { min: -35, max: 45 };
584
- }
585
- case "LeftHip":
586
- case "RightHip":
587
- switch (t) {
588
- case "frontal":
589
- return { min: -50, max: 60 };
590
- case "sagittal":
591
- return { min: -50, max: 150 };
592
- case "transverse":
593
- return { min: -60, max: 70 };
594
- }
595
- case "TotalSpine":
596
- switch (t) {
597
- case "frontal":
598
- return { min: -60, max: 60 };
599
- case "sagittal":
600
- return { min: -50, max: 150 };
601
- case "transverse":
602
- return { min: -50, max: 50 };
603
- }
604
- case "ChestSpine":
605
- switch (t) {
606
- case "frontal":
607
- return { min: -25, max: 25 };
608
- case "sagittal":
609
- return { min: -25, max: 40 };
610
- case "transverse":
611
- return { min: -35, max: 35 };
612
- }
613
- case "NavalSpine":
614
- switch (t) {
615
- case "frontal":
616
- return { min: -25, max: 25 };
617
- case "sagittal":
618
- return { min: -35, max: 60 };
619
- case "transverse":
620
- return { min: -15, max: 15 };
621
- }
622
- default:
623
- return { min: -180, max: 180 };
624
- }
625
- }
626
- ), X = (e, t) => ({
627
- kind: "joint",
628
- value: e,
629
- plane: t
630
- }), G = (e, t) => ({
631
- kind: "limb",
632
- value: e,
633
- plane: t
634
- }), Q = (e, t) => ({
635
- kind: "acceleration",
636
- value: e,
637
- axis: t
638
- }), Y = (e, t) => ({
639
- kind: "angular_velocity",
640
- value: e,
641
- plane: t
642
- }), Z = (e) => E.includes(e), Te = (e) => T.includes(e), ee = (e) => typeof e == "object" && e !== null && "id" in e && "name" in e && !!k().find((t) => t.id === e.id), te = (e) => typeof e == "object" && e !== null && "id" in e && "name" in e && !!J().find((t) => t.id === e.id), ve = (e, t, n = !1) => Z(t) ? ee(e) ? Q(e, t) : ne(
643
- `Can't make acceleration part from joint: ${e} ${t}`
644
- ) : te(e) ? n ? Y(e, t) : X(e, t) : G(e, t), we = (e) => e.kind === "acceleration" ? e.axis : e.plane, be = (e) => e?.kind === "acceleration" ? e.axis : null, Ne = (e) => e?.kind === "acceleration" ? null : e?.plane ?? null, ne = (e) => {
645
- throw new Error(e);
646
- }, R = (e) => e in a ? a[e] : e in i ? i[e] : "Unknown", Fe = (e) => R(e).replace(/Left|Right/g, ""), ae = (e) => e in _, ie = (e, t) => {
647
- if (!ae(e))
648
- return null;
649
- const n = _[e];
650
- if (t in n) {
651
- const { min: s, max: r } = n[t];
652
- return {
653
- min: s ?? 0,
654
- max: r ?? 0
655
- };
656
- }
657
- return null;
658
- }, Me = (...e) => {
659
- const t = ie(...e);
660
- return t ? Math.abs(t.max - t.min) : 0;
661
- }, re = (e, t) => {
662
- const n = Object.keys(i).find((r) => r === t), s = Object.keys(a).find((r) => r === t);
663
- return !n && !s ? null : n ? e.limbs[t].sensor_angle ? c.Sensor : c.Pose : e.joints[t].sensor_angle ? c.Sensor : c.Pose;
664
- }, Ce = (e, t, n) => {
665
- const s = Object.keys(a).find((o) => o === t), r = re(e, t);
666
- return r ? s ? I(t, r).includes(n) : z(t, r).includes(n) : !1;
667
- }, Pe = (e, t, n) => {
668
- const s = Object.keys(i).find((o) => o === t), r = Object.keys(a).find((o) => o === t);
669
- if (!s && !r)
670
- throw new Error(
671
- `Unknown partId: ${t} - this invariant should've been enforced by typescript`
672
- );
673
- return s ? v(e.limbs[t])?.[n] ?? null : w(
674
- e.joints[t],
675
- void 0,
676
- e.direction
677
- )?.[n] ?? null;
678
- }, u = (e = !1) => e ? "Internal/External Rotation" : "External/Internal Rotation", se = (e, t, n = !1) => {
679
- switch (e) {
680
- case "LeftAnkle":
681
- case "RightAnkle":
682
- switch (t) {
683
- case "frontal":
684
- return n ? "Inversion/Eversion" : "Eversion/Inversion";
685
- case "sagittal":
686
- return n ? "Plantar/Dorsi Flexion" : "Dorsi/Plantar Flexion";
687
- case "transverse":
688
- return u(n);
689
- }
690
- case "LeftKnee":
691
- case "RightKnee":
692
- switch (t) {
693
- case "frontal":
694
- return n ? "Adduction/Abduction" : "Abduction/Adduction";
695
- case "sagittal":
696
- return n ? "Extension/Flexion" : "Flexion/Extension";
697
- case "transverse":
698
- return u(n);
699
- }
700
- case "LeftHip":
701
- case "RightHip":
702
- switch (t) {
703
- case "frontal":
704
- return n ? "Adduction/Abduction" : "Abduction/Adduction";
705
- case "sagittal":
706
- return n ? "Extension/Flexion" : "Flexion/Extension";
707
- case "transverse":
708
- return u(n);
709
- }
710
- case "NavalSpine":
711
- case "ChestSpine":
712
- case "TotalSpine":
713
- case "Neck":
714
- switch (t) {
715
- case "frontal":
716
- return "Lateral Bend";
717
- case "sagittal":
718
- return n ? "Extension/Flexion" : "Flexion/Extension";
719
- case "transverse":
720
- return "Rotation";
721
- }
722
- case "LeftShoulder":
723
- case "RightShoulder":
724
- switch (t) {
725
- case "frontal":
726
- return n ? "Adduction/Abduction" : "Abduction/Adduction";
727
- case "sagittal":
728
- return n ? "Extension/Flexion" : "Flexion/Extension";
729
- case "transverse":
730
- return u(n);
731
- }
732
- case "LeftElbow":
733
- case "RightElbow":
734
- switch (t) {
735
- case "frontal":
736
- return n ? "Adduction/Abduction" : "Abduction/Adduction";
737
- case "sagittal":
738
- return n ? "Extension/Flexion" : "Flexion/Extension";
739
- case "transverse":
740
- return n ? "Pronation/Supination" : "Supination/Pronation";
741
- }
742
- }
743
- }, oe = (e, t, n = !1) => {
744
- const s = R(e), r = d(e, t, 1), o = d(e, t, -1);
745
- if (r && o) {
746
- const g = x(r), f = x(o), S = n ? `${f}/${g}` : `${g}/${f}`;
747
- return `${s} (${S})`;
748
- }
749
- return `${s} (${t})`;
750
- }, Be = (e, t) => {
751
- let n;
752
- switch (t) {
753
- case "x":
754
- n = "Med./Lat.";
755
- break;
756
- case "y":
757
- n = "Vertical";
758
- break;
759
- case "z":
760
- n = "Ant./Post.";
761
- }
762
- return `${R(e)} ${n}`;
763
- }, ce = (e, t, n = !1) => {
764
- const s = R(e), r = se(e, t, n);
765
- return r ? `${s} (${r})` : null;
766
- }, He = (e, t) => ce(e, t) || oe(e, t), p = (e, t, n, s = !1) => {
767
- const r = s ? V : W, o = s ? q : d, [g, f] = e === "joint" ? [
768
- r(t, n, 1),
769
- r(t, n, -1)
770
- ] : [
771
- o(t, n, 1),
772
- o(t, n, -1)
773
- ];
774
- return {
775
- positive: g,
776
- negative: f
777
- };
778
- }, le = (e, t = !1) => e.partKind === "joint" ? p(
779
- "joint",
780
- e.partId,
781
- e.partDimension,
782
- t
783
- ) : p(
784
- "segment",
785
- e.partId,
786
- e.partDimension,
787
- t
788
- ), Ue = (e, t, n = !1) => {
789
- const { positive: s, negative: r } = le(
790
- t,
791
- n
792
- );
793
- return e >= 0 ? s : r;
794
- };
1
+ import { g as t, m as s, a as i } from "./services-action-CfZFwhy-.js";
2
+ import { e as l, f as g, r as m, s as o, q as r, T as A, p as b, u as P, t as c, H as J, N, i as v, k as y, h as L, j as S, P as d, O as u, v as D, b as p, a as T, S as f, Q as R, d as k, V as x, U as F, J as E, K as I, I as h, w as j, c as z, g as B, R as H, L as O, M as W, B as q, E as w, D as K, C as U, n as V, o as C, m as G, l as M, z as Q, A as X, F as Y, x as Z, y as _, G as $ } from "./services-human-B98qxeuS.js";
795
3
  export {
796
- Le as getActivityKindFromActivityType,
797
- J as getAllAvailableJoints,
798
- k as getAllAvailableLimbs,
799
- D as getAllAvailablePoseJoints,
800
- pe as getAllAvailablePoseLimbs,
801
- $ as getAllAvailableSensorJoints,
802
- p as getAngleDirectionNames,
803
- xe as getAvailableLimbsForLimbIds,
804
- Ae as getAvailablePoseJointsForLimbIds,
805
- _e as getAvailableSensorJointsForLimbIds,
806
- be as getAxis,
807
- re as getDefaultAngleSource,
808
- ke as getDefaultJointRange,
809
- Se as getDefaultLimbRange,
810
- I as getEnabledJointPlanes,
811
- z as getEnabledSegmentPlanes,
812
- Pe as getHumanBodyAngle,
813
- Ce as getIsDefaultAngleAllowed,
814
- V as getJointAngleDirectionAbbr,
815
- W as getJointAngleDirectionName,
816
- ce as getJointNameWithPlane,
817
- He as getJointOrSegmentNameWithPlane,
818
- se as getJointPlaneName,
819
- Ee as getNormativeJointRange,
820
- Ue as getParameterAngleDirectionName,
821
- le as getParameterDirectionNames,
822
- R as getPartName,
823
- Fe as getPartNameNoSide,
824
- Ne as getPlane,
825
- q as getSegmentAngleDirectionAbbr,
826
- d as getSegmentAngleDirectionName,
827
- oe as getSegmentNameWithPlane,
828
- Be as getSegmentXyzName,
829
- ie as getTypicalRom,
830
- Me as getTypicalRomSize,
831
- Z as isAxis,
832
- te as isJoint,
833
- ee as isLimb,
834
- Te as isPlane,
835
- a as jointNames,
836
- de as jointsUsedByLimbs,
837
- i as limbNames,
838
- A as limbsRequiredForJoints,
839
- ue as mapActivityTypeEnumToLabel,
840
- Re as mapSessionTypeEnumToLabel,
4
+ t as getActivityKindFromActivityType,
5
+ l as getAllAvailableJoints,
6
+ g as getAllAvailableLimbs,
7
+ m as getAllAvailablePoseJoints,
8
+ o as getAllAvailablePoseLimbs,
9
+ r as getAllAvailableSensorJoints,
10
+ A as getAngleDirectionNames,
11
+ b as getAvailableLimbsForLimbIds,
12
+ P as getAvailablePoseJointsForLimbIds,
13
+ c as getAvailableSensorJointsForLimbIds,
14
+ J as getAxis,
15
+ N as getDefaultAngleSource,
16
+ v as getDefaultJointRange,
17
+ y as getDefaultLimbRange,
18
+ L as getEnabledJointPlanes,
19
+ S as getEnabledSegmentPlanes,
20
+ d as getHumanBodyAngle,
21
+ u as getIsDefaultAngleAllowed,
22
+ D as getJointAngleDirectionAbbr,
23
+ p as getJointAngleDirectionName,
24
+ T as getJointNameWithPlane,
25
+ f as getJointOrSegmentNameWithPlane,
26
+ R as getJointPlaneName,
27
+ k as getNormativeJointRange,
28
+ x as getParameterAngleDirectionName,
29
+ F as getParameterDirectionNames,
30
+ E as getPartName,
31
+ I as getPartNameNoSide,
32
+ h as getPlane,
33
+ j as getSegmentAngleDirectionAbbr,
34
+ z as getSegmentAngleDirectionName,
35
+ B as getSegmentNameWithPlane,
36
+ H as getSegmentXyzName,
37
+ O as getTypicalRom,
38
+ W as getTypicalRomSize,
39
+ q as isAxis,
40
+ w as isJoint,
41
+ K as isLimb,
42
+ U as isPlane,
43
+ V as jointNames,
44
+ C as jointsUsedByLimbs,
45
+ G as limbNames,
46
+ M as limbsRequiredForJoints,
47
+ s as mapActivityTypeEnumToLabel,
48
+ i as mapSessionTypeEnumToLabel,
841
49
  Q as mkAccelerationPart,
842
- Y as mkAngularVelocityPart,
843
- ve as mkHumanPart,
844
- X as mkJointPart,
845
- G as mkLimbPart,
846
- we as planeOrAxis
50
+ X as mkAngularVelocityPart,
51
+ Y as mkHumanPart,
52
+ Z as mkJointPart,
53
+ _ as mkLimbPart,
54
+ $ as planeOrAxis
847
55
  };