quantum-component-library 1.4.45-qa → 1.4.45-qa.2

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 (34) hide show
  1. package/dist/{babel-vendor-BOM86iTb.js → babel-vendor-Brd7V25k.js} +76 -71
  2. package/dist/babel-vendor-pl7onWh-.cjs +3 -0
  3. package/dist/components.cjs +1 -1
  4. package/dist/components.js +48 -48
  5. package/dist/{dnd-core-vendor-q7mfiuVu.js → dnd-core-vendor-D0LYcGmm.js} +2 -2
  6. package/dist/{dnd-core-vendor-bgjKfDi6.cjs → dnd-core-vendor-DqnJnuNT.cjs} +1 -1
  7. package/dist/{graphql-vendor-JsvuUrRs.cjs → graphql-vendor-CPuTFvxJ.cjs} +1 -1
  8. package/dist/{graphql-vendor-YnA_qhJA.js → graphql-vendor-Dj6F1QIU.js} +1 -1
  9. package/dist/hooks.cjs +1 -1
  10. package/dist/hooks.js +1 -1
  11. package/dist/lodash-vendor-Dkc3o8vE.cjs +1 -0
  12. package/dist/lodash-vendor-KQku4vKh.js +1602 -0
  13. package/dist/providers.cjs +1 -1
  14. package/dist/providers.js +2 -2
  15. package/dist/{react-dnd-vendor-BZs2igAJ.js → react-dnd-vendor-DYGSQgr6.js} +2 -2
  16. package/dist/{react-dnd-vendor-BWqlt2EC.cjs → react-dnd-vendor-DyqEbdFL.cjs} +1 -1
  17. package/dist/{react-select-vendor-eBH7yy3O.js → react-select-vendor-B1OQPh8Y.js} +35 -35
  18. package/dist/{react-select-vendor-By3h6JjH.cjs → react-select-vendor-Dcon15oq.cjs} +1 -1
  19. package/dist/services.cjs +1 -1
  20. package/dist/services.js +1 -1
  21. package/dist/types.cjs +1 -1
  22. package/dist/types.js +1 -1
  23. package/dist/ui-vendor-C8K-cPdW.js +10755 -0
  24. package/dist/ui-vendor-D_H9hnvk.cjs +294 -0
  25. package/dist/utils.cjs +1 -1
  26. package/dist/utils.js +12 -12
  27. package/dist/vendor-DIPzo8rL.js +15069 -0
  28. package/dist/vendor-Dmlu4NZO.cjs +90 -0
  29. package/package.json +3 -2
  30. package/dist/babel-vendor-cKvSpnBp.cjs +0 -3
  31. package/dist/lodash-vendor-D5A6v3mw.cjs +0 -1
  32. package/dist/lodash-vendor-Dz4vW7Gd.js +0 -1120
  33. package/dist/vendor-BeqUcSbw.cjs +0 -45
  34. package/dist/vendor-DvX9OX-j.js +0 -7876
@@ -1,3 +1,29 @@
1
+ function b() {
2
+ return b = Object.assign ? Object.assign.bind() : function(t) {
3
+ for (var e = 1; e < arguments.length; e++) {
4
+ var r = arguments[e];
5
+ for (var n in r) ({}).hasOwnProperty.call(r, n) && (t[n] = r[n]);
6
+ }
7
+ return t;
8
+ }, b.apply(null, arguments);
9
+ }
10
+ function g(t, e) {
11
+ if (t == null) return {};
12
+ var r = {};
13
+ for (var n in t) if ({}.hasOwnProperty.call(t, n)) {
14
+ if (e.indexOf(n) !== -1) continue;
15
+ r[n] = t[n];
16
+ }
17
+ return r;
18
+ }
19
+ function c(t, e) {
20
+ return c = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {
21
+ return r.__proto__ = n, r;
22
+ }, c(t, e);
23
+ }
24
+ function x(t, e) {
25
+ t.prototype = Object.create(e.prototype), t.prototype.constructor = t, c(t, e);
26
+ }
1
27
  function i(t) {
2
28
  "@babel/helpers - typeof";
3
29
  return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -6,7 +32,7 @@ function i(t) {
6
32
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
7
33
  }, i(t);
8
34
  }
9
- function g(t, e) {
35
+ function _(t, e) {
10
36
  if (i(t) != "object" || !t) return t;
11
37
  var r = t[Symbol.toPrimitive];
12
38
  if (r !== void 0) {
@@ -17,10 +43,10 @@ function g(t, e) {
17
43
  return (e === "string" ? String : Number)(t);
18
44
  }
19
45
  function v(t) {
20
- var e = g(t, "string");
46
+ var e = _(t, "string");
21
47
  return i(e) == "symbol" ? e : e + "";
22
48
  }
23
- function _(t, e, r) {
49
+ function w(t, e, r) {
24
50
  return (e = v(e)) in t ? Object.defineProperty(t, e, {
25
51
  value: r,
26
52
  enumerable: !0,
@@ -28,7 +54,7 @@ function _(t, e, r) {
28
54
  writable: !0
29
55
  }) : t[e] = r, t;
30
56
  }
31
- function p(t, e) {
57
+ function m(t, e) {
32
58
  var r = Object.keys(t);
33
59
  if (Object.getOwnPropertySymbols) {
34
60
  var n = Object.getOwnPropertySymbols(t);
@@ -38,88 +64,70 @@ function p(t, e) {
38
64
  }
39
65
  return r;
40
66
  }
41
- function x(t) {
67
+ function k(t) {
42
68
  for (var e = 1; e < arguments.length; e++) {
43
69
  var r = arguments[e] != null ? arguments[e] : {};
44
- e % 2 ? p(Object(r), !0).forEach(function(n) {
45
- _(t, n, r[n]);
46
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : p(Object(r)).forEach(function(n) {
70
+ e % 2 ? m(Object(r), !0).forEach(function(n) {
71
+ w(t, n, r[n]);
72
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : m(Object(r)).forEach(function(n) {
47
73
  Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
48
74
  });
49
75
  }
50
76
  return t;
51
77
  }
52
- function w(t) {
78
+ function P(t) {
53
79
  if (Array.isArray(t)) return t;
54
80
  }
55
- function P(t, e) {
81
+ function S(t, e) {
56
82
  var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
57
83
  if (r != null) {
58
- var n, o, a, l, f = [], u = !0, b = !1;
84
+ var n, o, a, f, s = [], u = !0, p = !1;
59
85
  try {
60
86
  if (a = (r = r.call(t)).next, e === 0) {
61
87
  if (Object(r) !== r) return;
62
88
  u = !1;
63
- } else for (; !(u = (n = a.call(r)).done) && (f.push(n.value), f.length !== e); u = !0) ;
89
+ } else for (; !(u = (n = a.call(r)).done) && (s.push(n.value), s.length !== e); u = !0) ;
64
90
  } catch (j) {
65
- b = !0, o = j;
91
+ p = !0, o = j;
66
92
  } finally {
67
93
  try {
68
- if (!u && r.return != null && (l = r.return(), Object(l) !== l)) return;
94
+ if (!u && r.return != null && (f = r.return(), Object(f) !== f)) return;
69
95
  } finally {
70
- if (b) throw o;
96
+ if (p) throw o;
71
97
  }
72
98
  }
73
- return f;
99
+ return s;
74
100
  }
75
101
  }
76
- function s(t, e) {
102
+ function y(t, e) {
77
103
  (e == null || e > t.length) && (e = t.length);
78
104
  for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
79
105
  return n;
80
106
  }
81
107
  function d(t, e) {
82
108
  if (t) {
83
- if (typeof t == "string") return s(t, e);
109
+ if (typeof t == "string") return y(t, e);
84
110
  var r = {}.toString.call(t).slice(8, -1);
85
- return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? s(t, e) : void 0;
111
+ return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? y(t, e) : void 0;
86
112
  }
87
113
  }
88
- function S() {
114
+ function A() {
89
115
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
90
116
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
91
117
  }
92
- function k(t, e) {
93
- return w(t) || P(t, e) || d(t, e) || S();
94
- }
95
- function A(t, e) {
96
- if (t == null) return {};
97
- var r = {};
98
- for (var n in t) if ({}.hasOwnProperty.call(t, n)) {
99
- if (e.indexOf(n) !== -1) continue;
100
- r[n] = t[n];
101
- }
102
- return r;
103
- }
104
118
  function D(t, e) {
119
+ return P(t) || S(t, e) || d(t, e) || A();
120
+ }
121
+ function L(t, e) {
105
122
  if (t == null) return {};
106
- var r, n, o = A(t, e);
123
+ var r, n, o = g(t, e);
107
124
  if (Object.getOwnPropertySymbols) {
108
125
  var a = Object.getOwnPropertySymbols(t);
109
126
  for (n = 0; n < a.length; n++) r = a[n], e.indexOf(r) === -1 && {}.propertyIsEnumerable.call(t, r) && (o[r] = t[r]);
110
127
  }
111
128
  return o;
112
129
  }
113
- function m() {
114
- return m = Object.assign ? Object.assign.bind() : function(t) {
115
- for (var e = 1; e < arguments.length; e++) {
116
- var r = arguments[e];
117
- for (var n in r) ({}).hasOwnProperty.call(r, n) && (t[n] = r[n]);
118
- }
119
- return t;
120
- }, m.apply(null, arguments);
121
- }
122
- function L(t, e) {
130
+ function W(t, e) {
123
131
  if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
124
132
  }
125
133
  function O(t, e) {
@@ -128,17 +136,12 @@ function O(t, e) {
128
136
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, v(n.key), n);
129
137
  }
130
138
  }
131
- function W(t, e, r) {
139
+ function z(t, e, r) {
132
140
  return e && O(t.prototype, e), r && O(t, r), Object.defineProperty(t, "prototype", {
133
141
  writable: !1
134
142
  }), t;
135
143
  }
136
- function y(t, e) {
137
- return y = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {
138
- return r.__proto__ = n, r;
139
- }, y(t, e);
140
- }
141
- function z(t, e) {
144
+ function N(t, e) {
142
145
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
143
146
  t.prototype = Object.create(e && e.prototype, {
144
147
  constructor: {
@@ -148,12 +151,12 @@ function z(t, e) {
148
151
  }
149
152
  }), Object.defineProperty(t, "prototype", {
150
153
  writable: !1
151
- }), e && y(t, e);
154
+ }), e && c(t, e);
152
155
  }
153
- function c(t) {
154
- return c = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
156
+ function l(t) {
157
+ return l = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
155
158
  return e.__proto__ || Object.getPrototypeOf(e);
156
- }, c(t);
159
+ }, l(t);
157
160
  }
158
161
  function h() {
159
162
  try {
@@ -174,19 +177,19 @@ function E(t, e) {
174
177
  if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
175
178
  return T(t);
176
179
  }
177
- function N(t) {
180
+ function B(t) {
178
181
  var e = h();
179
182
  return function() {
180
- var r, n = c(t);
183
+ var r, n = l(t);
181
184
  if (e) {
182
- var o = c(this).constructor;
185
+ var o = l(this).constructor;
183
186
  r = Reflect.construct(n, arguments, o);
184
187
  } else r = n.apply(this, arguments);
185
188
  return E(this, r);
186
189
  };
187
190
  }
188
191
  function I(t) {
189
- if (Array.isArray(t)) return s(t);
192
+ if (Array.isArray(t)) return y(t);
190
193
  }
191
194
  function C(t) {
192
195
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
@@ -195,10 +198,10 @@ function R() {
195
198
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
196
199
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
197
200
  }
198
- function B(t) {
201
+ function H(t) {
199
202
  return I(t) || C(t) || d(t) || R();
200
203
  }
201
- function H(t, e) {
204
+ function K(t, e) {
202
205
  return e || (e = t.slice(0)), Object.freeze(Object.defineProperties(t, {
203
206
  raw: {
204
207
  value: Object.freeze(e)
@@ -206,16 +209,18 @@ function H(t, e) {
206
209
  }));
207
210
  }
208
211
  export {
209
- D as _,
210
- k as a,
211
- x as b,
212
+ L as _,
213
+ D as a,
214
+ k as b,
212
215
  i as c,
213
- _ as d,
214
- m as e,
215
- H as f,
216
- z as g,
217
- N as h,
218
- W as i,
219
- L as j,
220
- B as k
216
+ w as d,
217
+ b as e,
218
+ K as f,
219
+ N as g,
220
+ B as h,
221
+ z as i,
222
+ W as j,
223
+ H as k,
224
+ x as l,
225
+ g as m
221
226
  };
@@ -0,0 +1,3 @@
1
+ "use strict";function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(null,arguments)}function _(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},c(e,t)}function P(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,c(e,t)}function i(e){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(e)}function w(e,t){if(i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(i(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d(e){var t=w(e,"string");return i(t)=="symbol"?t:t+""}function h(e,t,r){return(t=d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(n){h(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function A(e){if(Array.isArray(e))return e}function T(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,u,f,s=[],a=!0,b=!1;try{if(u=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;a=!1}else for(;!(a=(n=u.call(r)).done)&&(s.push(n.value),s.length!==t);a=!0);}catch(g){b=!0,o=g}finally{try{if(!a&&r.return!=null&&(f=r.return(),Object(f)!==f))return}finally{if(b)throw o}}return s}}function p(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t){if(e){if(typeof e=="string")return p(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function C(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E(e,t){return A(e)||T(e,t)||v(e,t)||C()}function I(e,t){if(e==null)return{};var r,n,o=_(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function R(e,t,r){return t&&O(e.prototype,t),r&&O(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function x(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(e)}function j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j=function(){return!!e})()}function W(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e,t){if(t&&(i(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W(e)}function D(e){var t=j();return function(){var r,n=l(e);if(t){var o=l(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return k(this,r)}}function z(e){if(Array.isArray(e))return p(e)}function N(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function B(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H(e){return z(e)||N(e)||v(e)||B()}function K(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}exports._classCallCheck=L;exports._createClass=R;exports._createSuper=D;exports._defineProperty=h;exports._extends=y;exports._inherits=x;exports._inheritsLoose=P;exports._objectSpread2=S;exports._objectWithoutProperties=I;exports._objectWithoutPropertiesLoose=_;exports._slicedToArray=E;exports._taggedTemplateLiteral=K;exports._toConsumableArray=H;exports._typeof=i;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-BeqUcSbw.cjs"),t=require("@chakra-ui/react"),o=require("react"),xe=require("./styled-components-vendor-D09ATioU.cjs"),H=require("./react-select-vendor-By3h6JjH.cjs"),de=require("./react-icons-vendor-D2s8zw9h.cjs"),G=require("urql"),R=require("./generated-ChsGaiYd.cjs"),w=require("./graphql-CqPvuCvr.cjs"),oe=require("./react-dnd-vendor-BWqlt2EC.cjs"),V=require("./services.cjs"),J=require("./types.cjs"),X=require("./utils.cjs"),Re=require("./hooks.cjs"),fe=({setSearch:n,actions:s,updateUseCases:a})=>{const m=o.useMemo(()=>s?.flatMap(c=>c.useCases).filter((c,u,h)=>h.findIndex(f=>f.id===c.id)===u).map(c=>({label:c.name,value:c.id}))||[],[s]);return e.jsxRuntimeExports.jsxs(t.Flex,{width:"100%",alignContent:"space-evenly",gap:4,children:[e.jsxRuntimeExports.jsxs(t.InputGroup,{size:"md",children:[e.jsxRuntimeExports.jsx(t.InputLeftElement,{children:e.jsxRuntimeExports.jsx(t.Icon,{as:de.FaSearch,color:"gray.300"})}),e.jsxRuntimeExports.jsx(t.Input,{placeholder:"Search by name...",maxW:"30rem",onChange:c=>n(c.target.value)})]}),e.jsxRuntimeExports.jsx(t.InputGroup,{size:"md",children:e.jsxRuntimeExports.jsx(H.st,{size:"md",chakraStyles:{container:c=>({...c,width:"100%"})},menuPortalTarget:document.body,placeholder:"Filter use case",isMulti:!0,options:m,onChange:c=>a(c.map(u=>u.value))})})]})},Y=({children:n})=>e.jsxRuntimeExports.jsx(t.FormLabel,{fontWeight:"bold",fontFamily:"sans-serif",fontSize:"large",children:n}),be=({value:n,onChange:s})=>{const a=o.useState(()=>Math.random().toString(36).substring(2,15))[0],m=o.useCallback((c,u)=>{s(h=>{const f=[...h],[b]=f.splice(c,1);return f.splice(u,0,b),f})},[s]);return e.jsxRuntimeExports.jsx(t.Box,{children:e.jsxRuntimeExports.jsx(oe.DndProvider,{backend:oe.HTML5Backend,children:e.jsxRuntimeExports.jsx(t.TableContainer,{children:e.jsxRuntimeExports.jsxs(t.Table,{variant:"simple",size:"md",children:[e.jsxRuntimeExports.jsx(t.Thead,{children:e.jsxRuntimeExports.jsxs(t.Tr,{children:[e.jsxRuntimeExports.jsx(t.Th,{children:"Order"}),e.jsxRuntimeExports.jsx(t.Th,{children:"Name"})]})}),e.jsxRuntimeExports.jsx(t.Tbody,{children:n.map((c,u)=>e.jsxRuntimeExports.jsx(Ce,{listKey:a,index:u,id:c.id,name:c.name,move:m},c.id))})]})})})})},Ce=({listKey:n,index:s,id:a,name:m,move:c})=>{const u=o.useRef(null),[{handlerId:h},f]=oe.useDrop({accept:n,collect:E=>({handlerId:E.getHandlerId()?.toString()??""}),hover:(E,A)=>{if(!u.current)return;const d=E.index,l=s;if(d===l)return;const T=u.current?.getBoundingClientRect(),C=(T.bottom-T.top)/2,p=A.getClientOffset().y-T.top;d<l&&p<C||d>l&&p>C||(c(d,l),E.index=l)}}),[{isDragging:b},v]=oe.useDrag({type:n,item:()=>({id:a,index:s}),collect:E=>({isDragging:E.isDragging()})}),F=b?.6:1,g=b?"grabbing":"grab";return v(f(u)),e.jsxRuntimeExports.jsxs(t.Tr,{ref:u,style:{opacity:F,cursor:g},"data-handler-id":h,children:[e.jsxRuntimeExports.jsx(t.Td,{children:s+1}),e.jsxRuntimeExports.jsx(t.Td,{children:m})]})},le=({items:n,onChange:s,selectedItem:a,isDisabled:m,selectedProps:c,buttonProps:u})=>{const h=b=>b===a||b.value===a,f=b=>h(b)?{...u,...c}:u;return e.jsxRuntimeExports.jsx(t.ButtonGroup,{isAttached:!0,isDisabled:m,children:n.map((b,v)=>e.jsxRuntimeExports.jsx(t.Tooltip,{label:b.tooltip,openDelay:50,closeDelay:200,placement:"top",visibility:b.tooltip?"visible":"hidden",hasArrow:!0,children:e.jsxRuntimeExports.jsx(t.Button,{onClick:()=>h(b)?null:s(b,v),isDisabled:b.disabled,...f(b),children:b.label})},v))})},se=(n,s)=>s<0?-1*Math.abs(n):Math.abs(n),Se=({isReversed:n,min:s,max:a,value:m,onChange:c,inputProps:u,size:h,zeroMarker:f,formatValue:b,valueLabel:v,positiveNegativeLabels:F,isDisabled:g,...E})=>{const[A,d]=o.useState([void 0,void 0]),l=A[0],T=A[1],C=f&&s<-5&&a>5,S=Number(m?.[0]??T??s)>0?1:-1,p=Number(m?.[1]??T??a)<0?-1:1,j=F?.[0]===F?.[1],M=m?.[0],D=m?.[1];o.useEffect(()=>{M!==void 0&&D!==void 0&&d([M.toFixed(0),D.toFixed(0)])},[M,D,d]);const I=o.useCallback(([i,y])=>{i<y&&d([i.toFixed(0),y.toFixed(0)])},[d]),z=o.useCallback(([i,y])=>{i<y&&c([i,y])},[c]),k=o.useCallback(()=>{d(([i,y])=>{const L=isNaN(Number(i))?s:Number(i),_=isNaN(Number(y))?a:Number(y),W=se(Number(L),S),O=se(Number(_),p),q=S<0?Math.max(W,s):Math.min(W,a),B=p<0?Math.max(O,s):Math.min(O,a);return q>B?(c([B,q]),[B.toFixed(0),q.toFixed(0)]):(c([q,B]),[q.toFixed(0),B.toFixed(0)])})},[c,d,S,p,s,a]),U=o.useCallback(i=>{const y=i===""||isNaN(Number(i))?i:se(Number(i),S);d(([L,_])=>[y.toString(),_])},[d,S]),P=o.useCallback(i=>{const y=i===""||isNaN(Number(i))?i:se(Number(i),p);d(([L,_])=>[L,y.toString()])},[d,p]),x=o.useMemo(()=>h==="xs"?"0.75rem":void 0,[h]),r=o.useCallback((i,y)=>{const L=Number(y.target.value);if(!l||!T||![-1,1].includes(L))return;const _=q=>L<0?-1*Math.abs(q):Math.abs(q),W=i?_(Number(l)):Number(l),O=i?Number(T):_(Number(T));W>O?c([O,W]):c([W,O])},[l,T,c]);return e.jsxRuntimeExports.jsxs(t.Flex,{direction:"column",...E,children:[e.jsxRuntimeExports.jsx(t.Box,{pt:"1em",mb:"-0.5em",children:e.jsxRuntimeExports.jsxs(t.RangeSlider,{"aria-label":["min","max"],isReversed:n,value:[Number(l??s),Number(T??a)],max:a,min:s,minStepsBetweenThumbs:3,step:1,onChange:I,onChangeEnd:z,isDisabled:g,children:[e.jsxRuntimeExports.jsx(t.RangeSliderMark,{value:s,top:"-1em",children:e.jsxRuntimeExports.jsx(t.Text,{fontSize:h??"sm",fontWeight:"semibold",whiteSpace:"nowrap",children:b?b?.(s):s})}),e.jsxRuntimeExports.jsx(t.RangeSliderMark,{value:a,top:"-1em",children:e.jsxRuntimeExports.jsx(t.Text,{fontSize:h??"sm",fontWeight:"semibold",style:{transform:"translateX(-100%)"},whiteSpace:"nowrap",children:b?b(a):a})}),C&&e.jsxRuntimeExports.jsxs(t.RangeSliderMark,{value:0,top:"-1em",pos:"relative",children:[e.jsxRuntimeExports.jsx(t.Text,{fontSize:h,fontWeight:"semibold",children:b?.(0)??"0"}),e.jsxRuntimeExports.jsx(ye,{})]}),e.jsxRuntimeExports.jsx(t.RangeSliderTrack,{children:e.jsxRuntimeExports.jsx(t.RangeSliderFilledTrack,{})}),e.jsxRuntimeExports.jsx(t.RangeSliderThumb,{index:0,w:x,h:x}),e.jsxRuntimeExports.jsx(t.RangeSliderThumb,{index:1,w:x,h:x})]})}),v&&e.jsxRuntimeExports.jsxs(t.Flex,{direction:n?"row-reverse":"row",justifyContent:"space-between",children:[e.jsxRuntimeExports.jsx(t.Text,{fontSize:h??"sm",fontWeight:"semibold",whiteSpace:"nowrap",children:v(s)}),e.jsxRuntimeExports.jsx(t.Text,{fontSize:h??"sm",fontWeight:"semibold",whiteSpace:"nowrap",children:v(a)})]}),e.jsxRuntimeExports.jsxs(t.Flex,{direction:n?"row-reverse":"row",justifyContent:"center",alignItems:"center",gap:"0.125em",children:[F&&e.jsxRuntimeExports.jsxs(t.Select,{width:"auto",size:h,fontWeight:"bold",value:S,onChange:i=>r(!0,i),isDisabled:j||g,children:[e.jsxRuntimeExports.jsx("option",{value:-1,children:F[0]}),e.jsxRuntimeExports.jsx("option",{value:1,children:F[1]})]}),e.jsxRuntimeExports.jsx(t.NumberInput,{precision:0,size:h??"sm",min:0,max:S<0?Math.abs(s):D??a,value:l===""?"":Math.abs(Number(l??s)),onChange:U,onBlur:k,borderWidth:1,borderRadius:3,borderColor:"#ccc",isDisabled:g,...u,children:e.jsxRuntimeExports.jsx(t.NumberInputField,{backgroundColor:"#fff",paddingRight:0,width:"4em"})}),e.jsxRuntimeExports.jsx(t.NumberInput,{size:h??"sm",min:0,max:p<0?Math.abs(M??s):a,precision:0,value:T===""?"":Math.abs(Number(T??a)),onChange:P,onBlur:k,borderWidth:1,borderRadius:3,borderColor:"#ccc",isDisabled:g,...u,children:e.jsxRuntimeExports.jsx(t.NumberInputField,{backgroundColor:"#fff",paddingRight:0,width:"4em"})}),F&&e.jsxRuntimeExports.jsxs(t.Select,{width:"auto",size:h,fontWeight:"bold",value:p,onChange:i=>r(!1,i),isDisabled:j||g,children:[e.jsxRuntimeExports.jsx("option",{value:-1,children:F[0]}),e.jsxRuntimeExports.jsx("option",{value:1,children:F[1]})]})]})]})},ye=xe.dt(t.Box)`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-Dmlu4NZO.cjs"),o=require("react"),xe=require("./styled-components-vendor-D09ATioU.cjs"),H=require("./react-select-vendor-Dcon15oq.cjs"),de=require("./react-icons-vendor-D2s8zw9h.cjs"),t=require("./ui-vendor-D_H9hnvk.cjs"),G=require("urql"),R=require("./generated-ChsGaiYd.cjs"),w=require("./graphql-CqPvuCvr.cjs"),oe=require("./react-dnd-vendor-DyqEbdFL.cjs"),V=require("./services.cjs"),J=require("./types.cjs"),X=require("./utils.cjs"),Re=require("./hooks.cjs"),fe=({setSearch:n,actions:s,updateUseCases:a})=>{const m=o.useMemo(()=>s?.flatMap(c=>c.useCases).filter((c,u,h)=>h.findIndex(f=>f.id===c.id)===u).map(c=>({label:c.name,value:c.id}))||[],[s]);return e.jsxRuntimeExports.jsxs(t.Flex,{width:"100%",alignContent:"space-evenly",gap:4,children:[e.jsxRuntimeExports.jsxs(t.InputGroup,{size:"md",children:[e.jsxRuntimeExports.jsx(t.InputLeftElement,{children:e.jsxRuntimeExports.jsx(t.Icon,{as:de.FaSearch,color:"gray.300"})}),e.jsxRuntimeExports.jsx(t.Input,{placeholder:"Search by name...",maxW:"30rem",onChange:c=>n(c.target.value)})]}),e.jsxRuntimeExports.jsx(t.InputGroup,{size:"md",children:e.jsxRuntimeExports.jsx(H.st,{size:"md",chakraStyles:{container:c=>({...c,width:"100%"})},menuPortalTarget:document.body,placeholder:"Filter use case",isMulti:!0,options:m,onChange:c=>a(c.map(u=>u.value))})})]})},Y=({children:n})=>e.jsxRuntimeExports.jsx(t.FormLabel,{fontWeight:"bold",fontFamily:"sans-serif",fontSize:"large",children:n}),be=({value:n,onChange:s})=>{const a=o.useState(()=>Math.random().toString(36).substring(2,15))[0],m=o.useCallback((c,u)=>{s(h=>{const f=[...h],[b]=f.splice(c,1);return f.splice(u,0,b),f})},[s]);return e.jsxRuntimeExports.jsx(t.Box,{children:e.jsxRuntimeExports.jsx(oe.DndProvider,{backend:oe.HTML5Backend,children:e.jsxRuntimeExports.jsx(t.TableContainer,{children:e.jsxRuntimeExports.jsxs(t.Table,{variant:"simple",size:"md",children:[e.jsxRuntimeExports.jsx(t.Thead,{children:e.jsxRuntimeExports.jsxs(t.Tr,{children:[e.jsxRuntimeExports.jsx(t.Th,{children:"Order"}),e.jsxRuntimeExports.jsx(t.Th,{children:"Name"})]})}),e.jsxRuntimeExports.jsx(t.Tbody,{children:n.map((c,u)=>e.jsxRuntimeExports.jsx(Ce,{listKey:a,index:u,id:c.id,name:c.name,move:m},c.id))})]})})})})},Ce=({listKey:n,index:s,id:a,name:m,move:c})=>{const u=o.useRef(null),[{handlerId:h},f]=oe.useDrop({accept:n,collect:E=>({handlerId:E.getHandlerId()?.toString()??""}),hover:(E,A)=>{if(!u.current)return;const d=E.index,l=s;if(d===l)return;const T=u.current?.getBoundingClientRect(),C=(T.bottom-T.top)/2,p=A.getClientOffset().y-T.top;d<l&&p<C||d>l&&p>C||(c(d,l),E.index=l)}}),[{isDragging:b},v]=oe.useDrag({type:n,item:()=>({id:a,index:s}),collect:E=>({isDragging:E.isDragging()})}),F=b?.6:1,g=b?"grabbing":"grab";return v(f(u)),e.jsxRuntimeExports.jsxs(t.Tr,{ref:u,style:{opacity:F,cursor:g},"data-handler-id":h,children:[e.jsxRuntimeExports.jsx(t.Td,{children:s+1}),e.jsxRuntimeExports.jsx(t.Td,{children:m})]})},le=({items:n,onChange:s,selectedItem:a,isDisabled:m,selectedProps:c,buttonProps:u})=>{const h=b=>b===a||b.value===a,f=b=>h(b)?{...u,...c}:u;return e.jsxRuntimeExports.jsx(t.ButtonGroup,{isAttached:!0,isDisabled:m,children:n.map((b,v)=>e.jsxRuntimeExports.jsx(t.Tooltip,{label:b.tooltip,openDelay:50,closeDelay:200,placement:"top",visibility:b.tooltip?"visible":"hidden",hasArrow:!0,children:e.jsxRuntimeExports.jsx(t.Button,{onClick:()=>h(b)?null:s(b,v),isDisabled:b.disabled,...f(b),children:b.label})},v))})},se=(n,s)=>s<0?-1*Math.abs(n):Math.abs(n),Se=({isReversed:n,min:s,max:a,value:m,onChange:c,inputProps:u,size:h,zeroMarker:f,formatValue:b,valueLabel:v,positiveNegativeLabels:F,isDisabled:g,...E})=>{const[A,d]=o.useState([void 0,void 0]),l=A[0],T=A[1],C=f&&s<-5&&a>5,S=Number(m?.[0]??T??s)>0?1:-1,p=Number(m?.[1]??T??a)<0?-1:1,j=F?.[0]===F?.[1],M=m?.[0],D=m?.[1];o.useEffect(()=>{M!==void 0&&D!==void 0&&d([M.toFixed(0),D.toFixed(0)])},[M,D,d]);const I=o.useCallback(([i,y])=>{i<y&&d([i.toFixed(0),y.toFixed(0)])},[d]),z=o.useCallback(([i,y])=>{i<y&&c([i,y])},[c]),k=o.useCallback(()=>{d(([i,y])=>{const L=isNaN(Number(i))?s:Number(i),_=isNaN(Number(y))?a:Number(y),W=se(Number(L),S),O=se(Number(_),p),q=S<0?Math.max(W,s):Math.min(W,a),B=p<0?Math.max(O,s):Math.min(O,a);return q>B?(c([B,q]),[B.toFixed(0),q.toFixed(0)]):(c([q,B]),[q.toFixed(0),B.toFixed(0)])})},[c,d,S,p,s,a]),U=o.useCallback(i=>{const y=i===""||isNaN(Number(i))?i:se(Number(i),S);d(([L,_])=>[y.toString(),_])},[d,S]),P=o.useCallback(i=>{const y=i===""||isNaN(Number(i))?i:se(Number(i),p);d(([L,_])=>[L,y.toString()])},[d,p]),x=o.useMemo(()=>h==="xs"?"0.75rem":void 0,[h]),r=o.useCallback((i,y)=>{const L=Number(y.target.value);if(!l||!T||![-1,1].includes(L))return;const _=q=>L<0?-1*Math.abs(q):Math.abs(q),W=i?_(Number(l)):Number(l),O=i?Number(T):_(Number(T));W>O?c([O,W]):c([W,O])},[l,T,c]);return e.jsxRuntimeExports.jsxs(t.Flex,{direction:"column",...E,children:[e.jsxRuntimeExports.jsx(t.Box,{pt:"1em",mb:"-0.5em",children:e.jsxRuntimeExports.jsxs(t.RangeSlider,{"aria-label":["min","max"],isReversed:n,value:[Number(l??s),Number(T??a)],max:a,min:s,minStepsBetweenThumbs:3,step:1,onChange:I,onChangeEnd:z,isDisabled:g,children:[e.jsxRuntimeExports.jsx(t.RangeSliderMark,{value:s,top:"-1em",children:e.jsxRuntimeExports.jsx(t.Text,{fontSize:h??"sm",fontWeight:"semibold",whiteSpace:"nowrap",children:b?b?.(s):s})}),e.jsxRuntimeExports.jsx(t.RangeSliderMark,{value:a,top:"-1em",children:e.jsxRuntimeExports.jsx(t.Text,{fontSize:h??"sm",fontWeight:"semibold",style:{transform:"translateX(-100%)"},whiteSpace:"nowrap",children:b?b(a):a})}),C&&e.jsxRuntimeExports.jsxs(t.RangeSliderMark,{value:0,top:"-1em",pos:"relative",children:[e.jsxRuntimeExports.jsx(t.Text,{fontSize:h,fontWeight:"semibold",children:b?.(0)??"0"}),e.jsxRuntimeExports.jsx(ye,{})]}),e.jsxRuntimeExports.jsx(t.RangeSliderTrack,{children:e.jsxRuntimeExports.jsx(t.RangeSliderFilledTrack,{})}),e.jsxRuntimeExports.jsx(t.RangeSliderThumb,{index:0,w:x,h:x}),e.jsxRuntimeExports.jsx(t.RangeSliderThumb,{index:1,w:x,h:x})]})}),v&&e.jsxRuntimeExports.jsxs(t.Flex,{direction:n?"row-reverse":"row",justifyContent:"space-between",children:[e.jsxRuntimeExports.jsx(t.Text,{fontSize:h??"sm",fontWeight:"semibold",whiteSpace:"nowrap",children:v(s)}),e.jsxRuntimeExports.jsx(t.Text,{fontSize:h??"sm",fontWeight:"semibold",whiteSpace:"nowrap",children:v(a)})]}),e.jsxRuntimeExports.jsxs(t.Flex,{direction:n?"row-reverse":"row",justifyContent:"center",alignItems:"center",gap:"0.125em",children:[F&&e.jsxRuntimeExports.jsxs(t.Select,{width:"auto",size:h,fontWeight:"bold",value:S,onChange:i=>r(!0,i),isDisabled:j||g,children:[e.jsxRuntimeExports.jsx("option",{value:-1,children:F[0]}),e.jsxRuntimeExports.jsx("option",{value:1,children:F[1]})]}),e.jsxRuntimeExports.jsx(t.NumberInput,{precision:0,size:h??"sm",min:0,max:S<0?Math.abs(s):D??a,value:l===""?"":Math.abs(Number(l??s)),onChange:U,onBlur:k,borderWidth:1,borderRadius:3,borderColor:"#ccc",isDisabled:g,...u,children:e.jsxRuntimeExports.jsx(t.NumberInputField,{backgroundColor:"#fff",paddingRight:0,width:"4em"})}),e.jsxRuntimeExports.jsx(t.NumberInput,{size:h??"sm",min:0,max:p<0?Math.abs(M??s):a,precision:0,value:T===""?"":Math.abs(Number(T??a)),onChange:P,onBlur:k,borderWidth:1,borderRadius:3,borderColor:"#ccc",isDisabled:g,...u,children:e.jsxRuntimeExports.jsx(t.NumberInputField,{backgroundColor:"#fff",paddingRight:0,width:"4em"})}),F&&e.jsxRuntimeExports.jsxs(t.Select,{width:"auto",size:h,fontWeight:"bold",value:p,onChange:i=>r(!1,i),isDisabled:j||g,children:[e.jsxRuntimeExports.jsx("option",{value:-1,children:F[0]}),e.jsxRuntimeExports.jsx("option",{value:1,children:F[1]})]})]})]})},ye=xe.dt(t.Box)`
2
2
  position: absolute;
3
3
  width: 2px;
4
4
  height: 1em;
@@ -1,13 +1,13 @@
1
- import { j as e, u as ls } from "./vendor-DvX9OX-j.js";
2
- import { Flex as le, InputGroup as Pe, InputLeftElement as as, Icon as We, Input as ye, FormLabel as $e, Box as B, TableContainer as Qe, Table as qe, Thead as He, Tr as Ce, Th as ie, Tbody as Ye, Td as re, ButtonGroup as ce, Tooltip as Je, Button as $, RangeSlider as cs, RangeSliderMark as Ae, Text as M, RangeSliderTrack as ds, RangeSliderFilledTrack as us, RangeSliderThumb as _e, Select as ze, NumberInput as Ue, NumberInputField as Ge, HStack as K, Tag as de, Checkbox as hs, useToast as Ke, VStack as V, FormControl as G, Alert as be, AlertIcon as ve, Spinner as Xe, useDisclosure as ms, Modal as gs, ModalOverlay as ps, ModalContent as xs, ModalHeader as fs, ModalCloseButton as js, ModalBody as bs, ModalFooter as vs, IconButton as ys, Textarea as Ie } from "@chakra-ui/react";
3
- import { useMemo as D, useState as F, useCallback as O, useRef as Cs, useEffect as Y, memo as Se } from "react";
4
- import { d as Ze } from "./styled-components-vendor-Bvwhddj9.js";
5
- import { s as se, y as Ss } from "./react-select-vendor-eBH7yy3O.js";
6
- import { F as ws, a as Ms } from "./react-icons-vendor-TETORdU9.js";
1
+ import { j as e, u as ls } from "./vendor-DIPzo8rL.js";
2
+ import { useMemo as D, useState as F, useCallback as O, useRef as as, useEffect as Y, memo as ye } from "react";
3
+ import { d as We } from "./styled-components-vendor-Bvwhddj9.js";
4
+ import { s as se, y as cs } from "./react-select-vendor-B1OQPh8Y.js";
5
+ import { F as ds, a as us } from "./react-icons-vendor-TETORdU9.js";
6
+ import { F as le, I as Pe, a as hs, b as $e, c as Ce, d as Qe, B, T as qe, e as He, f as Ye, g as Se, h as ie, i as Je, j as re, k as ce, l as Ke, m as $, R as ms, n as Ae, o as M, p as gs, q as ps, r as _e, S as ze, N as Ue, s as Ge, H as K, t as de, C as xs, u as Xe, V, v as G, A as be, w as ve, x as Ze, y as fs, M as js, z as bs, D as vs, E as ys, G as Cs, J as Ss, K as ws, L as Ms, O as Ie } from "./ui-vendor-C8K-cPdW.js";
7
7
  import { useQuery as ee, useMutation as oe, useClient as As } from "urql";
8
8
  import { g as W, T as je, S as k, A as ge, a as Te } from "./generated-GfcSQz21.js";
9
9
  import { G as Ve, a as Is, C as De, A as ae, b as es, c as Ts, d as ss, e as Re, M as ts, f as Le, U as Ns, g as Os, S as Rs, h as Ls, i as Fs, j as Ds, k as ks, l as Es, m as Ps } from "./graphql-DiUes2Np.js";
10
- import { D as _s, H as zs, u as Us, a as Gs } from "./react-dnd-vendor-BZs2igAJ.js";
10
+ import { D as _s, H as zs, u as Us, a as Gs } from "./react-dnd-vendor-DYGSQgr6.js";
11
11
  import { getSegmentNameWithPlane as ns, getJointNameWithPlane as is, getJointAngleDirectionName as Bs, getSegmentAngleDirectionName as Ws, getNormativeJointRange as $s } from "./services.js";
12
12
  import { availablePlanes as Be, getAnalysisPartIdNoSide as pe } from "./types.js";
13
13
  import { thresholdsToParameters as Qs, parametersToThresholds as Ne, cn as qs } from "./utils.js";
@@ -26,9 +26,9 @@ const Ys = ({
26
26
  );
27
27
  return /* @__PURE__ */ e.jsxs(le, { width: "100%", alignContent: "space-evenly", gap: 4, children: [
28
28
  /* @__PURE__ */ e.jsxs(Pe, { size: "md", children: [
29
- /* @__PURE__ */ e.jsx(as, { children: /* @__PURE__ */ e.jsx(We, { as: ws, color: "gray.300" }) }),
29
+ /* @__PURE__ */ e.jsx(hs, { children: /* @__PURE__ */ e.jsx($e, { as: ds, color: "gray.300" }) }),
30
30
  /* @__PURE__ */ e.jsx(
31
- ye,
31
+ Ce,
32
32
  {
33
33
  placeholder: "Search by name...",
34
34
  maxW: "30rem",
@@ -56,7 +56,7 @@ const Ys = ({
56
56
  ] });
57
57
  }, te = ({
58
58
  children: t
59
- }) => /* @__PURE__ */ e.jsx($e, { fontWeight: "bold", fontFamily: "sans-serif", fontSize: "large", children: t }), Js = ({ value: t, onChange: s }) => {
59
+ }) => /* @__PURE__ */ e.jsx(Qe, { fontWeight: "bold", fontFamily: "sans-serif", fontSize: "large", children: t }), Js = ({ value: t, onChange: s }) => {
60
60
  const o = F(
61
61
  () => Math.random().toString(36).substring(2, 15)
62
62
  )[0], u = O(
@@ -68,12 +68,12 @@ const Ys = ({
68
68
  },
69
69
  [s]
70
70
  );
71
- return /* @__PURE__ */ e.jsx(B, { children: /* @__PURE__ */ e.jsx(_s, { backend: zs, children: /* @__PURE__ */ e.jsx(Qe, { children: /* @__PURE__ */ e.jsxs(qe, { variant: "simple", size: "md", children: [
72
- /* @__PURE__ */ e.jsx(He, { children: /* @__PURE__ */ e.jsxs(Ce, { children: [
71
+ return /* @__PURE__ */ e.jsx(B, { children: /* @__PURE__ */ e.jsx(_s, { backend: zs, children: /* @__PURE__ */ e.jsx(qe, { children: /* @__PURE__ */ e.jsxs(He, { variant: "simple", size: "md", children: [
72
+ /* @__PURE__ */ e.jsx(Ye, { children: /* @__PURE__ */ e.jsxs(Se, { children: [
73
73
  /* @__PURE__ */ e.jsx(ie, { children: "Order" }),
74
74
  /* @__PURE__ */ e.jsx(ie, { children: "Name" })
75
75
  ] }) }),
76
- /* @__PURE__ */ e.jsx(Ye, { children: t.map((l, a) => /* @__PURE__ */ e.jsx(
76
+ /* @__PURE__ */ e.jsx(Je, { children: t.map((l, a) => /* @__PURE__ */ e.jsx(
77
77
  Ks,
78
78
  {
79
79
  listKey: o,
@@ -86,7 +86,7 @@ const Ys = ({
86
86
  )) })
87
87
  ] }) }) }) });
88
88
  }, Ks = ({ listKey: t, index: s, id: o, name: u, move: l }) => {
89
- const a = Cs(null), [{ handlerId: m }, f] = Us({
89
+ const a = as(null), [{ handlerId: m }, f] = Us({
90
90
  accept: t,
91
91
  collect: (x) => ({
92
92
  handlerId: x.getHandlerId()?.toString() ?? ""
@@ -107,7 +107,7 @@ const Ys = ({
107
107
  isDragging: x.isDragging()
108
108
  })
109
109
  }), I = j ? 0.6 : 1, p = j ? "grabbing" : "grab";
110
- return C(f(a)), /* @__PURE__ */ e.jsxs(Ce, { ref: a, style: { opacity: I, cursor: p }, "data-handler-id": m, children: [
110
+ return C(f(a)), /* @__PURE__ */ e.jsxs(Se, { ref: a, style: { opacity: I, cursor: p }, "data-handler-id": m, children: [
111
111
  /* @__PURE__ */ e.jsx(re, { children: s + 1 }),
112
112
  /* @__PURE__ */ e.jsx(re, { children: u })
113
113
  ] });
@@ -121,7 +121,7 @@ const Ys = ({
121
121
  }) => {
122
122
  const m = (j) => j === o || j.value === o, f = (j) => m(j) ? { ...a, ...l } : a;
123
123
  return /* @__PURE__ */ e.jsx(ce, { isAttached: !0, isDisabled: u, children: t.map((j, C) => /* @__PURE__ */ e.jsx(
124
- Je,
124
+ Ke,
125
125
  {
126
126
  label: j.tooltip,
127
127
  openDelay: 50,
@@ -202,7 +202,7 @@ const Ys = ({
202
202
  );
203
203
  return /* @__PURE__ */ e.jsxs(le, { direction: "column", ...x, children: [
204
204
  /* @__PURE__ */ e.jsx(B, { pt: "1em", mb: "-0.5em", children: /* @__PURE__ */ e.jsxs(
205
- cs,
205
+ ms,
206
206
  {
207
207
  "aria-label": ["min", "max"],
208
208
  isReversed: t,
@@ -238,7 +238,7 @@ const Ys = ({
238
238
  /* @__PURE__ */ e.jsx(M, { fontSize: m, fontWeight: "semibold", children: j?.(0) ?? "0" }),
239
239
  /* @__PURE__ */ e.jsx(Zs, {})
240
240
  ] }),
241
- /* @__PURE__ */ e.jsx(ds, { children: /* @__PURE__ */ e.jsx(us, {}) }),
241
+ /* @__PURE__ */ e.jsx(gs, { children: /* @__PURE__ */ e.jsx(ps, {}) }),
242
242
  /* @__PURE__ */ e.jsx(_e, { index: 0, w: c, h: c }),
243
243
  /* @__PURE__ */ e.jsx(_e, { index: 1, w: c, h: c })
244
244
  ]
@@ -363,7 +363,7 @@ const Ys = ({
363
363
  }
364
364
  )
365
365
  ] });
366
- }, Zs = Ze(B)`
366
+ }, Zs = We(B)`
367
367
  position: absolute;
368
368
  width: 2px;
369
369
  height: 1em;
@@ -449,8 +449,8 @@ const Ys = ({
449
449
  }
450
450
  )
451
451
  ] }),
452
- /* @__PURE__ */ e.jsx(Qe, { mr: "2rem", overflowX: "hidden", ...p, children: /* @__PURE__ */ e.jsxs(qe, { size: "md", variant: "simple", children: [
453
- /* @__PURE__ */ e.jsx(He, { position: "sticky", top: 0, bg: "white", zIndex: 1, children: /* @__PURE__ */ e.jsxs(Ce, { children: [
452
+ /* @__PURE__ */ e.jsx(qe, { mr: "2rem", overflowX: "hidden", ...p, children: /* @__PURE__ */ e.jsxs(He, { size: "md", variant: "simple", children: [
453
+ /* @__PURE__ */ e.jsx(Ye, { position: "sticky", top: 0, bg: "white", zIndex: 1, children: /* @__PURE__ */ e.jsxs(Se, { children: [
454
454
  /* @__PURE__ */ e.jsxs(ie, { fontWeight: "normal", children: [
455
455
  "(showing ",
456
456
  b?.length ?? 0,
@@ -464,7 +464,7 @@ const Ys = ({
464
464
  /* @__PURE__ */ e.jsx(ie, { children: "Use Case" }),
465
465
  /* @__PURE__ */ e.jsx(ie, {})
466
466
  ] }) }),
467
- /* @__PURE__ */ e.jsx(Ye, { children: b?.map((g) => /* @__PURE__ */ e.jsxs(
467
+ /* @__PURE__ */ e.jsx(Je, { children: b?.map((g) => /* @__PURE__ */ e.jsxs(
468
468
  it,
469
469
  {
470
470
  disableMultiSelect: f,
@@ -475,7 +475,7 @@ const Ys = ({
475
475
  children: [
476
476
  /* @__PURE__ */ e.jsx(re, { children: /* @__PURE__ */ e.jsxs(le, { children: [
477
477
  a && !f && /* @__PURE__ */ e.jsx(
478
- hs,
478
+ xs,
479
479
  {
480
480
  isChecked: g.selected,
481
481
  onChange: (w) => a(g, w.target.checked)
@@ -509,7 +509,7 @@ const Ys = ({
509
509
  )) })
510
510
  ] }) })
511
511
  ] });
512
- }, it = Ze(Ce)`
512
+ }, it = We(Se)`
513
513
  &:hover {
514
514
  background-color: ${(t) => t.disableMultiSelect && !t.selected ? "#f7f7f7" : void 0};
515
515
  }
@@ -523,7 +523,7 @@ const Ys = ({
523
523
  setButtonOnClick: a,
524
524
  quantumOwned: m
525
525
  }) => {
526
- const f = Ke(), [j, C] = F(""), [I, p] = F([]), [x, A] = F(!1), [d] = ee({
526
+ const f = Xe(), [j, C] = F(""), [I, p] = F([]), [x, A] = F(!1), [d] = ee({
527
527
  query: Ve
528
528
  }), [r] = ee({
529
529
  query: Is,
@@ -663,7 +663,7 @@ const Ys = ({
663
663
  j && /* @__PURE__ */ e.jsxs(G, { children: [
664
664
  /* @__PURE__ */ e.jsx(te, { children: "Select Activities to Copy" }),
665
665
  U ? /* @__PURE__ */ e.jsxs(K, { children: [
666
- /* @__PURE__ */ e.jsx(Xe, { size: "sm" }),
666
+ /* @__PURE__ */ e.jsx(Ze, { size: "sm" }),
667
667
  /* @__PURE__ */ e.jsx(M, { fontSize: "sm", color: "gray.600", children: "Loading activities..." })
668
668
  ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
669
669
  /* @__PURE__ */ e.jsx(
@@ -818,7 +818,7 @@ const Ys = ({
818
818
  setButtonOnClick: a,
819
819
  quantumOwned: m
820
820
  }) => {
821
- const f = Ke(), [j, C] = F(""), [I, p] = F([]), [x, A] = F(!1), [d] = ee({
821
+ const f = Xe(), [j, C] = F(""), [I, p] = F([]), [x, A] = F(!1), [d] = ee({
822
822
  query: Ve
823
823
  }), [r] = ee({
824
824
  query: Ts,
@@ -997,7 +997,7 @@ const Ys = ({
997
997
  j && /* @__PURE__ */ e.jsxs(G, { children: [
998
998
  /* @__PURE__ */ e.jsx(te, { children: "Select Module to Copy" }),
999
999
  c ? /* @__PURE__ */ e.jsxs(K, { children: [
1000
- /* @__PURE__ */ e.jsx(Xe, { size: "sm" }),
1000
+ /* @__PURE__ */ e.jsx(Ze, { size: "sm" }),
1001
1001
  /* @__PURE__ */ e.jsx(M, { fontSize: "sm", color: "gray.600", children: "Loading modules..." })
1002
1002
  ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1003
1003
  /* @__PURE__ */ e.jsx(
@@ -1152,7 +1152,7 @@ const Ys = ({
1152
1152
  setDescription: C,
1153
1153
  ...I
1154
1154
  }) => {
1155
- const p = ms(), x = D(() => o.map((v) => ({
1155
+ const p = fs(), x = D(() => o.map((v) => ({
1156
1156
  ...v,
1157
1157
  selected: u.includes(v.id)
1158
1158
  })), [o, u]), A = D(() => o.reduce((v, h) => (v[h.id] = h, v), {}), [o]), d = D(
@@ -1202,17 +1202,17 @@ const Ys = ({
1202
1202
  }
1203
1203
  ),
1204
1204
  /* @__PURE__ */ e.jsxs(
1205
- gs,
1205
+ js,
1206
1206
  {
1207
1207
  isOpen: p.isOpen,
1208
1208
  onClose: p.onClose,
1209
1209
  size: "6xl",
1210
1210
  children: [
1211
- /* @__PURE__ */ e.jsx(ps, {}),
1212
- /* @__PURE__ */ e.jsxs(xs, { children: [
1213
- /* @__PURE__ */ e.jsx(fs, { children: "Select Activities" }),
1214
- /* @__PURE__ */ e.jsx(js, {}),
1215
- /* @__PURE__ */ e.jsx(bs, { children: /* @__PURE__ */ e.jsx(
1211
+ /* @__PURE__ */ e.jsx(bs, {}),
1212
+ /* @__PURE__ */ e.jsxs(vs, { children: [
1213
+ /* @__PURE__ */ e.jsx(ys, { children: "Select Activities" }),
1214
+ /* @__PURE__ */ e.jsx(Cs, {}),
1215
+ /* @__PURE__ */ e.jsx(Ss, { children: /* @__PURE__ */ e.jsx(
1216
1216
  nt,
1217
1217
  {
1218
1218
  actions: x,
@@ -1225,7 +1225,7 @@ const Ys = ({
1225
1225
  }
1226
1226
  }
1227
1227
  ) }),
1228
- /* @__PURE__ */ e.jsx(vs, { children: /* @__PURE__ */ e.jsx(
1228
+ /* @__PURE__ */ e.jsx(ws, { children: /* @__PURE__ */ e.jsx(
1229
1229
  $,
1230
1230
  {
1231
1231
  colorScheme: "blue",
@@ -1239,14 +1239,14 @@ const Ys = ({
1239
1239
  }
1240
1240
  )
1241
1241
  ] });
1242
- }, rt = Se(
1242
+ }, rt = ye(
1243
1243
  ({
1244
1244
  name: t,
1245
1245
  onInputChange: s
1246
1246
  }) => /* @__PURE__ */ e.jsxs(G, { mb: 4, children: [
1247
1247
  /* @__PURE__ */ e.jsx(te, { children: "Module Name" }),
1248
1248
  /* @__PURE__ */ e.jsx(
1249
- ye,
1249
+ Ce,
1250
1250
  {
1251
1251
  placeholder: "i.e. ACL RTP Test Battery",
1252
1252
  value: t,
@@ -1255,7 +1255,7 @@ const Ys = ({
1255
1255
  }
1256
1256
  )
1257
1257
  ] })
1258
- ), lt = Se(
1258
+ ), lt = ye(
1259
1259
  ({
1260
1260
  availableCategories: t,
1261
1261
  value: s,
@@ -1289,7 +1289,7 @@ const Ys = ({
1289
1289
  )
1290
1290
  ] });
1291
1291
  }
1292
- ), at = Se(
1292
+ ), at = ye(
1293
1293
  ({
1294
1294
  description: t,
1295
1295
  onInputChange: s
@@ -1299,7 +1299,7 @@ const Ys = ({
1299
1299
  /* @__PURE__ */ e.jsx(M, { fontSize: "sm", color: "gray.500", children: "Briefly describe the objective of this module. Max 40 words." })
1300
1300
  ] }) }),
1301
1301
  /* @__PURE__ */ e.jsx(
1302
- ye,
1302
+ Ce,
1303
1303
  {
1304
1304
  placeholder: "i.e. Assess readiness to return to play post-ACL reconstruction",
1305
1305
  value: t,
@@ -1307,7 +1307,7 @@ const Ys = ({
1307
1307
  }
1308
1308
  )
1309
1309
  ] })
1310
- ), ct = Se(
1310
+ ), ct = ye(
1311
1311
  ({
1312
1312
  value: t,
1313
1313
  onChange: s,
@@ -1451,12 +1451,12 @@ const Ys = ({
1451
1451
  }
1452
1452
  ),
1453
1453
  u && /* @__PURE__ */ e.jsx(
1454
- ys,
1454
+ Ms,
1455
1455
  {
1456
1456
  size: "xs",
1457
1457
  variant: "ghost",
1458
1458
  "aria-label": "delete",
1459
- icon: /* @__PURE__ */ e.jsx(We, { as: Ms }),
1459
+ icon: /* @__PURE__ */ e.jsx($e, { as: us }),
1460
1460
  onClick: u
1461
1461
  }
1462
1462
  ),
@@ -1780,7 +1780,7 @@ const Ys = ({
1780
1780
  /* @__PURE__ */ e.jsxs(G, { children: [
1781
1781
  /* @__PURE__ */ e.jsx(Z, { children: "Name" }),
1782
1782
  /* @__PURE__ */ e.jsx(
1783
- ye,
1783
+ Ce,
1784
1784
  {
1785
1785
  value: b,
1786
1786
  onChange: (N) => v(N.target.value),
@@ -1850,13 +1850,13 @@ const Ys = ({
1850
1850
  /* @__PURE__ */ e.jsxs(G, { children: [
1851
1851
  /* @__PURE__ */ e.jsx(Z, { children: "Use Cases" }),
1852
1852
  /* @__PURE__ */ e.jsx(
1853
- Je,
1853
+ Ke,
1854
1854
  {
1855
1855
  isOpen: z,
1856
1856
  label: "Type to search for existing use cases",
1857
1857
  placement: "top-end",
1858
1858
  children: /* @__PURE__ */ e.jsx(B, { children: /* @__PURE__ */ e.jsx(
1859
- Ss,
1859
+ cs,
1860
1860
  {
1861
1861
  value: y,
1862
1862
  onChange: (N) => L([...N]),
@@ -1955,7 +1955,7 @@ const Ys = ({
1955
1955
  }
1956
1956
  )
1957
1957
  ] });
1958
- }, Z = ({ children: t }) => /* @__PURE__ */ e.jsx($e, { fontWeight: "bold", fontFamily: "sans-serif", fontSize: "large", children: t }), Ft = ({
1958
+ }, Z = ({ children: t }) => /* @__PURE__ */ e.jsx(Qe, { fontWeight: "bold", fontFamily: "sans-serif", fontSize: "large", children: t }), Ft = ({
1959
1959
  id: t,
1960
1960
  onCancel: s,
1961
1961
  onSave: o,
@@ -1,5 +1,5 @@
1
- import { c as j } from "./vendor-DvX9OX-j.js";
2
- import { i as s, b as M } from "./react-dnd-vendor-BZs2igAJ.js";
1
+ import { c as j } from "./vendor-DIPzo8rL.js";
2
+ import { i as s, b as M } from "./react-dnd-vendor-DYGSQgr6.js";
3
3
  function H(t, e, r) {
4
4
  return e.split(".").reduce(
5
5
  (n, i) => n && n[i] ? n[i] : r || null,