quantum-component-library 1.4.48-dev.7 → 1.4.48

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