quantum-component-library 1.4.45-qa.1 → 1.4.45-qa.3

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 (39) 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 +57 -57
  5. package/dist/{dnd-core-vendor-bgjKfDi6.cjs → dnd-core-vendor-B8SfRHAC.cjs} +1 -1
  6. package/dist/{dnd-core-vendor-q7mfiuVu.js → dnd-core-vendor-B9bDJoIO.js} +2 -2
  7. package/dist/framer-motion-vendor-BgJ2HqtS.cjs +1 -0
  8. package/dist/framer-motion-vendor-Cn84b4iY.js +3285 -0
  9. package/dist/{graphql-DiUes2Np.js → graphql-DZp5ePcc.js} +6 -6
  10. package/dist/graphql-vendor-2jHffeBc.cjs +19 -0
  11. package/dist/graphql-vendor-DZM4vSNi.js +1285 -0
  12. package/dist/hooks.cjs +1 -1
  13. package/dist/hooks.js +11 -12
  14. package/dist/lodash-vendor-Dkc3o8vE.cjs +1 -0
  15. package/dist/lodash-vendor-KQku4vKh.js +1602 -0
  16. package/dist/providers.cjs +1 -1
  17. package/dist/providers.js +5 -5
  18. package/dist/{react-dnd-vendor-BWqlt2EC.cjs → react-dnd-vendor-CMnbNCdx.cjs} +1 -1
  19. package/dist/{react-dnd-vendor-BZs2igAJ.js → react-dnd-vendor-CrTWIfyP.js} +2 -2
  20. package/dist/{react-select-vendor-eBH7yy3O.js → react-select-vendor-Dt2A4G_u.js} +35 -35
  21. package/dist/{react-select-vendor-By3h6JjH.cjs → react-select-vendor-DwRVrD2f.cjs} +1 -1
  22. package/dist/services.cjs +1 -1
  23. package/dist/services.js +1 -1
  24. package/dist/types.cjs +1 -1
  25. package/dist/types.js +1 -1
  26. package/dist/ui-vendor-BAkBLewK.cjs +294 -0
  27. package/dist/ui-vendor-DLN2xOTj.js +10756 -0
  28. package/dist/utils.cjs +1 -1
  29. package/dist/utils.js +17 -17
  30. package/dist/vendor-Br-qBXqd.cjs +90 -0
  31. package/dist/vendor-BvxNWBst.js +11937 -0
  32. package/package.json +1 -1
  33. package/dist/babel-vendor-cKvSpnBp.cjs +0 -3
  34. package/dist/graphql-vendor-JsvuUrRs.cjs +0 -14
  35. package/dist/graphql-vendor-YnA_qhJA.js +0 -669
  36. package/dist/lodash-vendor-D5A6v3mw.cjs +0 -1
  37. package/dist/lodash-vendor-Dz4vW7Gd.js +0 -1120
  38. package/dist/vendor-BeqUcSbw.cjs +0 -45
  39. 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-Br-qBXqd.cjs"),o=require("react"),xe=require("./styled-components-vendor-D09ATioU.cjs"),H=require("./react-select-vendor-DwRVrD2f.cjs"),de=require("./react-icons-vendor-D2s8zw9h.cjs"),t=require("./ui-vendor-BAkBLewK.cjs"),G=require("./graphql-vendor-2jHffeBc.cjs"),R=require("./generated-ChsGaiYd.cjs"),w=require("./graphql-CqPvuCvr.cjs"),oe=require("./react-dnd-vendor-CMnbNCdx.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;