react-data-matrix 0.4.0 → 0.4.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.
@@ -1,5 +1,5 @@
1
- import Te from "react";
2
- var x = {};
1
+ import Yr from "react";
2
+ var fr = { exports: {} }, K = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
@@ -9,25 +9,25 @@ var x = {};
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
- var me;
13
- function ir() {
14
- if (me)
15
- return x;
16
- me = 1;
17
- var N = Te, P = Symbol.for("react.element"), V = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, D = N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, F = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function S(h, l, R) {
19
- var d, g = {}, _ = null, A = null;
20
- R !== void 0 && (_ = "" + R), l.key !== void 0 && (_ = "" + l.key), l.ref !== void 0 && (A = l.ref);
21
- for (d in l)
22
- m.call(l, d) && !F.hasOwnProperty(d) && (g[d] = l[d]);
23
- if (h && h.defaultProps)
24
- for (d in l = h.defaultProps, l)
25
- g[d] === void 0 && (g[d] = l[d]);
26
- return { $$typeof: P, type: h, key: _, ref: A, props: g, _owner: D.current };
12
+ var Fr;
13
+ function he() {
14
+ if (Fr)
15
+ return K;
16
+ Fr = 1;
17
+ var n = Yr, s = Symbol.for("react.element"), b = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, y = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, R = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function T(f, v, x) {
19
+ var h, g = {}, w = null, j = null;
20
+ x !== void 0 && (w = "" + x), v.key !== void 0 && (w = "" + v.key), v.ref !== void 0 && (j = v.ref);
21
+ for (h in v)
22
+ d.call(v, h) && !R.hasOwnProperty(h) && (g[h] = v[h]);
23
+ if (f && f.defaultProps)
24
+ for (h in v = f.defaultProps, v)
25
+ g[h] === void 0 && (g[h] = v[h]);
26
+ return { $$typeof: s, type: f, key: w, ref: j, props: g, _owner: y.current };
27
27
  }
28
- return x.Fragment = V, x.jsx = S, x.jsxs = S, x;
28
+ return K.Fragment = b, K.jsx = T, K.jsxs = T, K;
29
29
  }
30
- var k = {};
30
+ var X = {};
31
31
  /**
32
32
  * @license React
33
33
  * react-jsx-runtime.development.js
@@ -37,91 +37,91 @@ var k = {};
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
39
  */
40
- var Re;
41
- function or() {
42
- return Re || (Re = 1, process.env.NODE_ENV !== "production" && function() {
43
- var N = Te, P = Symbol.for("react.element"), V = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), D = Symbol.for("react.strict_mode"), F = Symbol.for("react.profiler"), S = Symbol.for("react.provider"), h = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), H = Symbol.iterator, Oe = "@@iterator";
44
- function Ce(e) {
45
- if (e === null || typeof e != "object")
40
+ var Dr;
41
+ function me() {
42
+ return Dr || (Dr = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var n = Yr, s = Symbol.for("react.element"), b = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), f = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), A = Symbol.iterator, O = "@@iterator";
44
+ function F(r) {
45
+ if (r === null || typeof r != "object")
46
46
  return null;
47
- var r = H && e[H] || e[Oe];
48
- return typeof r == "function" ? r : null;
47
+ var e = A && r[A] || r[O];
48
+ return typeof e == "function" ? e : null;
49
49
  }
50
- var T = N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function c(e) {
50
+ var C = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
+ function _(r) {
52
52
  {
53
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
54
- t[n - 1] = arguments[n];
55
- Pe("error", e, t);
53
+ for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), a = 1; a < e; a++)
54
+ t[a - 1] = arguments[a];
55
+ D("error", r, t);
56
56
  }
57
57
  }
58
- function Pe(e, r, t) {
58
+ function D(r, e, t) {
59
59
  {
60
- var n = T.ReactDebugCurrentFrame, o = n.getStackAddendum();
61
- o !== "" && (r += "%s", t = t.concat([o]));
62
- var u = t.map(function(i) {
63
- return String(i);
60
+ var a = C.ReactDebugCurrentFrame, l = a.getStackAddendum();
61
+ l !== "" && (e += "%s", t = t.concat([l]));
62
+ var u = t.map(function(o) {
63
+ return String(o);
64
64
  });
65
- u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
65
+ u.unshift("Warning: " + e), Function.prototype.apply.call(console[r], console, u);
66
66
  }
67
67
  }
68
- var Se = !1, we = !1, je = !1, xe = !1, ke = !1, X;
69
- X = Symbol.for("react.module.reference");
70
- function De(e) {
71
- return !!(typeof e == "string" || typeof e == "function" || e === m || e === F || ke || e === D || e === R || e === d || xe || e === A || Se || we || je || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === g || e.$$typeof === S || e.$$typeof === h || e.$$typeof === l || // This needs to include all possible module reference object
68
+ var P = !1, M = !1, L = !1, N = !1, U = !1, W;
69
+ W = Symbol.for("react.module.reference");
70
+ function B(r) {
71
+ return !!(typeof r == "string" || typeof r == "function" || r === d || r === R || U || r === y || r === x || r === h || N || r === j || P || M || L || typeof r == "object" && r !== null && (r.$$typeof === w || r.$$typeof === g || r.$$typeof === T || r.$$typeof === f || r.$$typeof === v || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
75
- e.$$typeof === X || e.getModuleId !== void 0));
75
+ r.$$typeof === W || r.getModuleId !== void 0));
76
76
  }
77
- function Fe(e, r, t) {
78
- var n = e.displayName;
79
- if (n)
80
- return n;
81
- var o = r.displayName || r.name || "";
82
- return o !== "" ? t + "(" + o + ")" : t;
77
+ function I(r, e, t) {
78
+ var a = r.displayName;
79
+ if (a)
80
+ return a;
81
+ var l = e.displayName || e.name || "";
82
+ return l !== "" ? t + "(" + l + ")" : t;
83
83
  }
84
- function Z(e) {
85
- return e.displayName || "Context";
84
+ function z(r) {
85
+ return r.displayName || "Context";
86
86
  }
87
- function b(e) {
88
- if (e == null)
87
+ function S(r) {
88
+ if (r == null)
89
89
  return null;
90
- if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
91
- return e.displayName || e.name || null;
92
- if (typeof e == "string")
93
- return e;
94
- switch (e) {
95
- case m:
90
+ if (typeof r.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
91
+ return r.displayName || r.name || null;
92
+ if (typeof r == "string")
93
+ return r;
94
+ switch (r) {
95
+ case d:
96
96
  return "Fragment";
97
- case V:
97
+ case b:
98
98
  return "Portal";
99
- case F:
99
+ case R:
100
100
  return "Profiler";
101
- case D:
101
+ case y:
102
102
  return "StrictMode";
103
- case R:
103
+ case x:
104
104
  return "Suspense";
105
- case d:
105
+ case h:
106
106
  return "SuspenseList";
107
107
  }
108
- if (typeof e == "object")
109
- switch (e.$$typeof) {
110
- case h:
111
- var r = e;
112
- return Z(r) + ".Consumer";
113
- case S:
114
- var t = e;
115
- return Z(t._context) + ".Provider";
116
- case l:
117
- return Fe(e, e.render, "ForwardRef");
108
+ if (typeof r == "object")
109
+ switch (r.$$typeof) {
110
+ case f:
111
+ var e = r;
112
+ return z(e) + ".Consumer";
113
+ case T:
114
+ var t = r;
115
+ return z(t._context) + ".Provider";
116
+ case v:
117
+ return I(r, r.render, "ForwardRef");
118
118
  case g:
119
- var n = e.displayName || null;
120
- return n !== null ? n : b(e.type) || "Memo";
121
- case _: {
122
- var o = e, u = o._payload, i = o._init;
119
+ var a = r.displayName || null;
120
+ return a !== null ? a : S(r.type) || "Memo";
121
+ case w: {
122
+ var l = r, u = l._payload, o = l._init;
123
123
  try {
124
- return b(i(u));
124
+ return S(o(u));
125
125
  } catch {
126
126
  return null;
127
127
  }
@@ -129,499 +129,785 @@ function or() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var y = Object.assign, w = 0, Q, ee, re, te, ne, ae, ie;
133
- function oe() {
132
+ var Y = Object.assign, J = 0, dr, vr, pr, hr, mr, _r, br;
133
+ function yr() {
134
134
  }
135
- oe.__reactDisabledLog = !0;
136
- function Ae() {
135
+ yr.__reactDisabledLog = !0;
136
+ function zr() {
137
137
  {
138
- if (w === 0) {
139
- Q = console.log, ee = console.info, re = console.warn, te = console.error, ne = console.group, ae = console.groupCollapsed, ie = console.groupEnd;
140
- var e = {
138
+ if (J === 0) {
139
+ dr = console.log, vr = console.info, pr = console.warn, hr = console.error, mr = console.group, _r = console.groupCollapsed, br = console.groupEnd;
140
+ var r = {
141
141
  configurable: !0,
142
142
  enumerable: !0,
143
- value: oe,
143
+ value: yr,
144
144
  writable: !0
145
145
  };
146
146
  Object.defineProperties(console, {
147
- info: e,
148
- log: e,
149
- warn: e,
150
- error: e,
151
- group: e,
152
- groupCollapsed: e,
153
- groupEnd: e
147
+ info: r,
148
+ log: r,
149
+ warn: r,
150
+ error: r,
151
+ group: r,
152
+ groupCollapsed: r,
153
+ groupEnd: r
154
154
  });
155
155
  }
156
- w++;
156
+ J++;
157
157
  }
158
158
  }
159
- function Ie() {
159
+ function Vr() {
160
160
  {
161
- if (w--, w === 0) {
162
- var e = {
161
+ if (J--, J === 0) {
162
+ var r = {
163
163
  configurable: !0,
164
164
  enumerable: !0,
165
165
  writable: !0
166
166
  };
167
167
  Object.defineProperties(console, {
168
- log: y({}, e, {
169
- value: Q
168
+ log: Y({}, r, {
169
+ value: dr
170
170
  }),
171
- info: y({}, e, {
172
- value: ee
171
+ info: Y({}, r, {
172
+ value: vr
173
173
  }),
174
- warn: y({}, e, {
175
- value: re
174
+ warn: Y({}, r, {
175
+ value: pr
176
176
  }),
177
- error: y({}, e, {
178
- value: te
177
+ error: Y({}, r, {
178
+ value: hr
179
179
  }),
180
- group: y({}, e, {
181
- value: ne
180
+ group: Y({}, r, {
181
+ value: mr
182
182
  }),
183
- groupCollapsed: y({}, e, {
184
- value: ae
183
+ groupCollapsed: Y({}, r, {
184
+ value: _r
185
185
  }),
186
- groupEnd: y({}, e, {
187
- value: ie
186
+ groupEnd: Y({}, r, {
187
+ value: br
188
188
  })
189
189
  });
190
190
  }
191
- w < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ J < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
- var M = T.ReactCurrentDispatcher, U;
195
- function I(e, r, t) {
194
+ var nr = C.ReactCurrentDispatcher, ar;
195
+ function Z(r, e, t) {
196
196
  {
197
- if (U === void 0)
197
+ if (ar === void 0)
198
198
  try {
199
199
  throw Error();
200
- } catch (o) {
201
- var n = o.stack.trim().match(/\n( *(at )?)/);
202
- U = n && n[1] || "";
200
+ } catch (l) {
201
+ var a = l.stack.trim().match(/\n( *(at )?)/);
202
+ ar = a && a[1] || "";
203
203
  }
204
204
  return `
205
- ` + U + e;
205
+ ` + ar + r;
206
206
  }
207
207
  }
208
- var B = !1, $;
208
+ var ir = !1, Q;
209
209
  {
210
- var $e = typeof WeakMap == "function" ? WeakMap : Map;
211
- $ = new $e();
210
+ var qr = typeof WeakMap == "function" ? WeakMap : Map;
211
+ Q = new qr();
212
212
  }
213
- function ue(e, r) {
214
- if (!e || B)
213
+ function gr(r, e) {
214
+ if (!r || ir)
215
215
  return "";
216
216
  {
217
- var t = $.get(e);
217
+ var t = Q.get(r);
218
218
  if (t !== void 0)
219
219
  return t;
220
220
  }
221
- var n;
222
- B = !0;
223
- var o = Error.prepareStackTrace;
221
+ var a;
222
+ ir = !0;
223
+ var l = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
225
  var u;
226
- u = M.current, M.current = null, Ae();
226
+ u = nr.current, nr.current = null, zr();
227
227
  try {
228
- if (r) {
229
- var i = function() {
228
+ if (e) {
229
+ var o = function() {
230
230
  throw Error();
231
231
  };
232
- if (Object.defineProperty(i.prototype, "props", {
232
+ if (Object.defineProperty(o.prototype, "props", {
233
233
  set: function() {
234
234
  throw Error();
235
235
  }
236
236
  }), typeof Reflect == "object" && Reflect.construct) {
237
237
  try {
238
- Reflect.construct(i, []);
239
- } catch (E) {
240
- n = E;
238
+ Reflect.construct(o, []);
239
+ } catch (k) {
240
+ a = k;
241
241
  }
242
- Reflect.construct(e, [], i);
242
+ Reflect.construct(r, [], o);
243
243
  } else {
244
244
  try {
245
- i.call();
246
- } catch (E) {
247
- n = E;
245
+ o.call();
246
+ } catch (k) {
247
+ a = k;
248
248
  }
249
- e.call(i.prototype);
249
+ r.call(o.prototype);
250
250
  }
251
251
  } else {
252
252
  try {
253
253
  throw Error();
254
- } catch (E) {
255
- n = E;
254
+ } catch (k) {
255
+ a = k;
256
256
  }
257
- e();
257
+ r();
258
258
  }
259
- } catch (E) {
260
- if (E && n && typeof E.stack == "string") {
261
- for (var a = E.stack.split(`
262
- `), v = n.stack.split(`
263
- `), s = a.length - 1, f = v.length - 1; s >= 1 && f >= 0 && a[s] !== v[f]; )
264
- f--;
265
- for (; s >= 1 && f >= 0; s--, f--)
266
- if (a[s] !== v[f]) {
267
- if (s !== 1 || f !== 1)
259
+ } catch (k) {
260
+ if (k && a && typeof k.stack == "string") {
261
+ for (var i = k.stack.split(`
262
+ `), E = a.stack.split(`
263
+ `), p = i.length - 1, m = E.length - 1; p >= 1 && m >= 0 && i[p] !== E[m]; )
264
+ m--;
265
+ for (; p >= 1 && m >= 0; p--, m--)
266
+ if (i[p] !== E[m]) {
267
+ if (p !== 1 || m !== 1)
268
268
  do
269
- if (s--, f--, f < 0 || a[s] !== v[f]) {
270
- var p = `
271
- ` + a[s].replace(" at new ", " at ");
272
- return e.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e.displayName)), typeof e == "function" && $.set(e, p), p;
269
+ if (p--, m--, m < 0 || i[p] !== E[m]) {
270
+ var $ = `
271
+ ` + i[p].replace(" at new ", " at ");
272
+ return r.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", r.displayName)), typeof r == "function" && Q.set(r, $), $;
273
273
  }
274
- while (s >= 1 && f >= 0);
274
+ while (p >= 1 && m >= 0);
275
275
  break;
276
276
  }
277
277
  }
278
278
  } finally {
279
- B = !1, M.current = u, Ie(), Error.prepareStackTrace = o;
279
+ ir = !1, nr.current = u, Vr(), Error.prepareStackTrace = l;
280
280
  }
281
- var C = e ? e.displayName || e.name : "", ye = C ? I(C) : "";
282
- return typeof e == "function" && $.set(e, ye), ye;
281
+ var q = r ? r.displayName || r.name : "", Ar = q ? Z(q) : "";
282
+ return typeof r == "function" && Q.set(r, Ar), Ar;
283
283
  }
284
- function We(e, r, t) {
285
- return ue(e, !1);
284
+ function Hr(r, e, t) {
285
+ return gr(r, !1);
286
286
  }
287
- function Ye(e) {
288
- var r = e.prototype;
289
- return !!(r && r.isReactComponent);
287
+ function Jr(r) {
288
+ var e = r.prototype;
289
+ return !!(e && e.isReactComponent);
290
290
  }
291
- function W(e, r, t) {
292
- if (e == null)
291
+ function rr(r, e, t) {
292
+ if (r == null)
293
293
  return "";
294
- if (typeof e == "function")
295
- return ue(e, Ye(e));
296
- if (typeof e == "string")
297
- return I(e);
298
- switch (e) {
299
- case R:
300
- return I("Suspense");
301
- case d:
302
- return I("SuspenseList");
294
+ if (typeof r == "function")
295
+ return gr(r, Jr(r));
296
+ if (typeof r == "string")
297
+ return Z(r);
298
+ switch (r) {
299
+ case x:
300
+ return Z("Suspense");
301
+ case h:
302
+ return Z("SuspenseList");
303
303
  }
304
- if (typeof e == "object")
305
- switch (e.$$typeof) {
306
- case l:
307
- return We(e.render);
304
+ if (typeof r == "object")
305
+ switch (r.$$typeof) {
306
+ case v:
307
+ return Hr(r.render);
308
308
  case g:
309
- return W(e.type, r, t);
310
- case _: {
311
- var n = e, o = n._payload, u = n._init;
309
+ return rr(r.type, e, t);
310
+ case w: {
311
+ var a = r, l = a._payload, u = a._init;
312
312
  try {
313
- return W(u(o), r, t);
313
+ return rr(u(l), e, t);
314
314
  } catch {
315
315
  }
316
316
  }
317
317
  }
318
318
  return "";
319
319
  }
320
- var Y = Object.prototype.hasOwnProperty, se = {}, fe = T.ReactDebugCurrentFrame;
321
- function L(e) {
322
- if (e) {
323
- var r = e._owner, t = W(e.type, e._source, r ? r.type : null);
324
- fe.setExtraStackFrame(t);
320
+ var er = Object.prototype.hasOwnProperty, Er = {}, Rr = C.ReactDebugCurrentFrame;
321
+ function tr(r) {
322
+ if (r) {
323
+ var e = r._owner, t = rr(r.type, r._source, e ? e.type : null);
324
+ Rr.setExtraStackFrame(t);
325
325
  } else
326
- fe.setExtraStackFrame(null);
326
+ Rr.setExtraStackFrame(null);
327
327
  }
328
- function Le(e, r, t, n, o) {
328
+ function Gr(r, e, t, a, l) {
329
329
  {
330
- var u = Function.call.bind(Y);
331
- for (var i in e)
332
- if (u(e, i)) {
333
- var a = void 0;
330
+ var u = Function.call.bind(er);
331
+ for (var o in r)
332
+ if (u(r, o)) {
333
+ var i = void 0;
334
334
  try {
335
- if (typeof e[i] != "function") {
336
- var v = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
- throw v.name = "Invariant Violation", v;
335
+ if (typeof r[o] != "function") {
336
+ var E = Error((a || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
+ throw E.name = "Invariant Violation", E;
338
338
  }
339
- a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
- } catch (s) {
341
- a = s;
339
+ i = r[o](e, o, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
+ } catch (p) {
341
+ i = p;
342
342
  }
343
- a && !(a instanceof Error) && (L(o), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), L(null)), a instanceof Error && !(a.message in se) && (se[a.message] = !0, L(o), c("Failed %s type: %s", t, a.message), L(null));
343
+ i && !(i instanceof Error) && (tr(l), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", t, o, typeof i), tr(null)), i instanceof Error && !(i.message in Er) && (Er[i.message] = !0, tr(l), _("Failed %s type: %s", t, i.message), tr(null));
344
344
  }
345
345
  }
346
346
  }
347
- var Ne = Array.isArray;
348
- function q(e) {
349
- return Ne(e);
347
+ var Kr = Array.isArray;
348
+ function or(r) {
349
+ return Kr(r);
350
350
  }
351
- function Ve(e) {
351
+ function Xr(r) {
352
352
  {
353
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
353
+ var e = typeof Symbol == "function" && Symbol.toStringTag, t = e && r[Symbol.toStringTag] || r.constructor.name || "Object";
354
354
  return t;
355
355
  }
356
356
  }
357
- function Me(e) {
357
+ function Zr(r) {
358
358
  try {
359
- return le(e), !1;
359
+ return xr(r), !1;
360
360
  } catch {
361
361
  return !0;
362
362
  }
363
363
  }
364
- function le(e) {
365
- return "" + e;
364
+ function xr(r) {
365
+ return "" + r;
366
366
  }
367
- function ce(e) {
368
- if (Me(e))
369
- return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ve(e)), le(e);
367
+ function Tr(r) {
368
+ if (Zr(r))
369
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xr(r)), xr(r);
370
370
  }
371
- var j = T.ReactCurrentOwner, Ue = {
371
+ var G = C.ReactCurrentOwner, Qr = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
375
375
  __source: !0
376
- }, ve, de, J;
377
- J = {};
378
- function Be(e) {
379
- if (Y.call(e, "ref")) {
380
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
381
- if (r && r.isReactWarning)
376
+ }, wr, $r, sr;
377
+ sr = {};
378
+ function re(r) {
379
+ if (er.call(r, "ref")) {
380
+ var e = Object.getOwnPropertyDescriptor(r, "ref").get;
381
+ if (e && e.isReactWarning)
382
382
  return !1;
383
383
  }
384
- return e.ref !== void 0;
384
+ return r.ref !== void 0;
385
385
  }
386
- function qe(e) {
387
- if (Y.call(e, "key")) {
388
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
389
- if (r && r.isReactWarning)
386
+ function ee(r) {
387
+ if (er.call(r, "key")) {
388
+ var e = Object.getOwnPropertyDescriptor(r, "key").get;
389
+ if (e && e.isReactWarning)
390
390
  return !1;
391
391
  }
392
- return e.key !== void 0;
392
+ return r.key !== void 0;
393
393
  }
394
- function Je(e, r) {
395
- if (typeof e.ref == "string" && j.current && r && j.current.stateNode !== r) {
396
- var t = b(j.current.type);
397
- J[t] || (c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', b(j.current.type), e.ref), J[t] = !0);
394
+ function te(r, e) {
395
+ if (typeof r.ref == "string" && G.current && e && G.current.stateNode !== e) {
396
+ var t = S(G.current.type);
397
+ sr[t] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', S(G.current.type), r.ref), sr[t] = !0);
398
398
  }
399
399
  }
400
- function Ge(e, r) {
400
+ function ne(r, e) {
401
401
  {
402
402
  var t = function() {
403
- ve || (ve = !0, c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
403
+ wr || (wr = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", e));
404
404
  };
405
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
405
+ t.isReactWarning = !0, Object.defineProperty(r, "key", {
406
406
  get: t,
407
407
  configurable: !0
408
408
  });
409
409
  }
410
410
  }
411
- function ze(e, r) {
411
+ function ae(r, e) {
412
412
  {
413
413
  var t = function() {
414
- de || (de = !0, c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
414
+ $r || ($r = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", e));
415
415
  };
416
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
416
+ t.isReactWarning = !0, Object.defineProperty(r, "ref", {
417
417
  get: t,
418
418
  configurable: !0
419
419
  });
420
420
  }
421
421
  }
422
- var Ke = function(e, r, t, n, o, u, i) {
423
- var a = {
422
+ var ie = function(r, e, t, a, l, u, o) {
423
+ var i = {
424
424
  // This tag allows us to uniquely identify this as a React Element
425
- $$typeof: P,
425
+ $$typeof: s,
426
426
  // Built-in properties that belong on the element
427
- type: e,
428
- key: r,
427
+ type: r,
428
+ key: e,
429
429
  ref: t,
430
- props: i,
430
+ props: o,
431
431
  // Record the component responsible for creating this element.
432
432
  _owner: u
433
433
  };
434
- return a._store = {}, Object.defineProperty(a._store, "validated", {
434
+ return i._store = {}, Object.defineProperty(i._store, "validated", {
435
435
  configurable: !1,
436
436
  enumerable: !1,
437
437
  writable: !0,
438
438
  value: !1
439
- }), Object.defineProperty(a, "_self", {
439
+ }), Object.defineProperty(i, "_self", {
440
440
  configurable: !1,
441
441
  enumerable: !1,
442
442
  writable: !1,
443
- value: n
444
- }), Object.defineProperty(a, "_source", {
443
+ value: a
444
+ }), Object.defineProperty(i, "_source", {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
- value: o
449
- }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
448
+ value: l
449
+ }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
450
450
  };
451
- function He(e, r, t, n, o) {
451
+ function oe(r, e, t, a, l) {
452
452
  {
453
- var u, i = {}, a = null, v = null;
454
- t !== void 0 && (ce(t), a = "" + t), qe(r) && (ce(r.key), a = "" + r.key), Be(r) && (v = r.ref, Je(r, o));
455
- for (u in r)
456
- Y.call(r, u) && !Ue.hasOwnProperty(u) && (i[u] = r[u]);
457
- if (e && e.defaultProps) {
458
- var s = e.defaultProps;
459
- for (u in s)
460
- i[u] === void 0 && (i[u] = s[u]);
453
+ var u, o = {}, i = null, E = null;
454
+ t !== void 0 && (Tr(t), i = "" + t), ee(e) && (Tr(e.key), i = "" + e.key), re(e) && (E = e.ref, te(e, l));
455
+ for (u in e)
456
+ er.call(e, u) && !Qr.hasOwnProperty(u) && (o[u] = e[u]);
457
+ if (r && r.defaultProps) {
458
+ var p = r.defaultProps;
459
+ for (u in p)
460
+ o[u] === void 0 && (o[u] = p[u]);
461
461
  }
462
- if (a || v) {
463
- var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
- a && Ge(i, f), v && ze(i, f);
462
+ if (i || E) {
463
+ var m = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
464
+ i && ne(o, m), E && ae(o, m);
465
465
  }
466
- return Ke(e, a, v, o, n, j.current, i);
466
+ return ie(r, i, E, l, a, G.current, o);
467
467
  }
468
468
  }
469
- var G = T.ReactCurrentOwner, pe = T.ReactDebugCurrentFrame;
470
- function O(e) {
471
- if (e) {
472
- var r = e._owner, t = W(e.type, e._source, r ? r.type : null);
473
- pe.setExtraStackFrame(t);
469
+ var lr = C.ReactCurrentOwner, jr = C.ReactDebugCurrentFrame;
470
+ function V(r) {
471
+ if (r) {
472
+ var e = r._owner, t = rr(r.type, r._source, e ? e.type : null);
473
+ jr.setExtraStackFrame(t);
474
474
  } else
475
- pe.setExtraStackFrame(null);
475
+ jr.setExtraStackFrame(null);
476
476
  }
477
- var z;
478
- z = !1;
479
- function K(e) {
480
- return typeof e == "object" && e !== null && e.$$typeof === P;
477
+ var ur;
478
+ ur = !1;
479
+ function cr(r) {
480
+ return typeof r == "object" && r !== null && r.$$typeof === s;
481
481
  }
482
- function ge() {
482
+ function Cr() {
483
483
  {
484
- if (G.current) {
485
- var e = b(G.current.type);
486
- if (e)
484
+ if (lr.current) {
485
+ var r = S(lr.current.type);
486
+ if (r)
487
487
  return `
488
488
 
489
- Check the render method of \`` + e + "`.";
489
+ Check the render method of \`` + r + "`.";
490
490
  }
491
491
  return "";
492
492
  }
493
493
  }
494
- function Xe(e) {
494
+ function se(r) {
495
495
  {
496
- if (e !== void 0) {
497
- var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
496
+ if (r !== void 0) {
497
+ var e = r.fileName.replace(/^.*[\\\/]/, ""), t = r.lineNumber;
498
498
  return `
499
499
 
500
- Check your code at ` + r + ":" + t + ".";
500
+ Check your code at ` + e + ":" + t + ".";
501
501
  }
502
502
  return "";
503
503
  }
504
504
  }
505
- var be = {};
506
- function Ze(e) {
505
+ var Pr = {};
506
+ function le(r) {
507
507
  {
508
- var r = ge();
509
- if (!r) {
510
- var t = typeof e == "string" ? e : e.displayName || e.name;
511
- t && (r = `
508
+ var e = Cr();
509
+ if (!e) {
510
+ var t = typeof r == "string" ? r : r.displayName || r.name;
511
+ t && (e = `
512
512
 
513
513
  Check the top-level render call using <` + t + ">.");
514
514
  }
515
- return r;
515
+ return e;
516
516
  }
517
517
  }
518
- function Ee(e, r) {
518
+ function Or(r, e) {
519
519
  {
520
- if (!e._store || e._store.validated || e.key != null)
520
+ if (!r._store || r._store.validated || r.key != null)
521
521
  return;
522
- e._store.validated = !0;
523
- var t = Ze(r);
524
- if (be[t])
522
+ r._store.validated = !0;
523
+ var t = le(e);
524
+ if (Pr[t])
525
525
  return;
526
- be[t] = !0;
527
- var n = "";
528
- e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + b(e._owner.type) + "."), O(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), O(null);
526
+ Pr[t] = !0;
527
+ var a = "";
528
+ r && r._owner && r._owner !== lr.current && (a = " It was passed a child from " + S(r._owner.type) + "."), V(r), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), V(null);
529
529
  }
530
530
  }
531
- function he(e, r) {
531
+ function Sr(r, e) {
532
532
  {
533
- if (typeof e != "object")
533
+ if (typeof r != "object")
534
534
  return;
535
- if (q(e))
536
- for (var t = 0; t < e.length; t++) {
537
- var n = e[t];
538
- K(n) && Ee(n, r);
535
+ if (or(r))
536
+ for (var t = 0; t < r.length; t++) {
537
+ var a = r[t];
538
+ cr(a) && Or(a, e);
539
539
  }
540
- else if (K(e))
541
- e._store && (e._store.validated = !0);
542
- else if (e) {
543
- var o = Ce(e);
544
- if (typeof o == "function" && o !== e.entries)
545
- for (var u = o.call(e), i; !(i = u.next()).done; )
546
- K(i.value) && Ee(i.value, r);
540
+ else if (cr(r))
541
+ r._store && (r._store.validated = !0);
542
+ else if (r) {
543
+ var l = F(r);
544
+ if (typeof l == "function" && l !== r.entries)
545
+ for (var u = l.call(r), o; !(o = u.next()).done; )
546
+ cr(o.value) && Or(o.value, e);
547
547
  }
548
548
  }
549
549
  }
550
- function Qe(e) {
550
+ function ue(r) {
551
551
  {
552
- var r = e.type;
553
- if (r == null || typeof r == "string")
552
+ var e = r.type;
553
+ if (e == null || typeof e == "string")
554
554
  return;
555
555
  var t;
556
- if (typeof r == "function")
557
- t = r.propTypes;
558
- else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
556
+ if (typeof e == "function")
557
+ t = e.propTypes;
558
+ else if (typeof e == "object" && (e.$$typeof === v || // Note: Memo only checks outer props here.
559
559
  // Inner props are checked in the reconciler.
560
- r.$$typeof === g))
561
- t = r.propTypes;
560
+ e.$$typeof === g))
561
+ t = e.propTypes;
562
562
  else
563
563
  return;
564
564
  if (t) {
565
- var n = b(r);
566
- Le(t, e.props, "prop", n, e);
567
- } else if (r.PropTypes !== void 0 && !z) {
568
- z = !0;
569
- var o = b(r);
570
- c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
565
+ var a = S(e);
566
+ Gr(t, r.props, "prop", a, r);
567
+ } else if (e.PropTypes !== void 0 && !ur) {
568
+ ur = !0;
569
+ var l = S(e);
570
+ _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown");
571
571
  }
572
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
572
+ typeof e.getDefaultProps == "function" && !e.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
573
573
  }
574
574
  }
575
- function er(e) {
575
+ function ce(r) {
576
576
  {
577
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
578
- var n = r[t];
579
- if (n !== "children" && n !== "key") {
580
- O(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), O(null);
577
+ for (var e = Object.keys(r.props), t = 0; t < e.length; t++) {
578
+ var a = e[t];
579
+ if (a !== "children" && a !== "key") {
580
+ V(r), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), V(null);
581
581
  break;
582
582
  }
583
583
  }
584
- e.ref !== null && (O(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), O(null));
584
+ r.ref !== null && (V(r), _("Invalid attribute `ref` supplied to `React.Fragment`."), V(null));
585
585
  }
586
586
  }
587
- function _e(e, r, t, n, o, u) {
587
+ function kr(r, e, t, a, l, u) {
588
588
  {
589
- var i = De(e);
590
- if (!i) {
591
- var a = "";
592
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
593
- var v = Xe(o);
594
- v ? a += v : a += ge();
595
- var s;
596
- e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === P ? (s = "<" + (b(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
589
+ var o = B(r);
590
+ if (!o) {
591
+ var i = "";
592
+ (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
593
+ var E = se(l);
594
+ E ? i += E : i += Cr();
595
+ var p;
596
+ r === null ? p = "null" : or(r) ? p = "array" : r !== void 0 && r.$$typeof === s ? (p = "<" + (S(r.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : p = typeof r, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", p, i);
597
597
  }
598
- var f = He(e, r, t, o, u);
599
- if (f == null)
600
- return f;
601
- if (i) {
602
- var p = r.children;
603
- if (p !== void 0)
604
- if (n)
605
- if (q(p)) {
606
- for (var C = 0; C < p.length; C++)
607
- he(p[C], e);
608
- Object.freeze && Object.freeze(p);
598
+ var m = oe(r, e, t, l, u);
599
+ if (m == null)
600
+ return m;
601
+ if (o) {
602
+ var $ = e.children;
603
+ if ($ !== void 0)
604
+ if (a)
605
+ if (or($)) {
606
+ for (var q = 0; q < $.length; q++)
607
+ Sr($[q], r);
608
+ Object.freeze && Object.freeze($);
609
609
  } else
610
- c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
610
+ _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
611
611
  else
612
- he(p, e);
612
+ Sr($, r);
613
613
  }
614
- return e === m ? er(f) : Qe(f), f;
614
+ return r === d ? ce(m) : ue(m), m;
615
615
  }
616
616
  }
617
- function rr(e, r, t) {
618
- return _e(e, r, t, !0);
617
+ function fe(r, e, t) {
618
+ return kr(r, e, t, !0);
619
619
  }
620
- function tr(e, r, t) {
621
- return _e(e, r, t, !1);
620
+ function de(r, e, t) {
621
+ return kr(r, e, t, !1);
622
622
  }
623
- var nr = tr, ar = rr;
624
- k.Fragment = m, k.jsx = nr, k.jsxs = ar;
625
- }()), k;
623
+ var ve = de, pe = fe;
624
+ X.Fragment = d, X.jsx = ve, X.jsxs = pe;
625
+ }()), X;
626
626
  }
627
- process.env.NODE_ENV === "production" ? ir() : or();
627
+ process.env.NODE_ENV === "production" ? fr.exports = he() : fr.exports = me();
628
+ var c = fr.exports;
629
+ const H = (n) => n || {}, _e = (n, s) => (
630
+ // if custom styles are passed remove default styles by returning a spread empty object
631
+ n ? {
632
+ top: "50%",
633
+ left: "50%",
634
+ height: "100%",
635
+ textAlign: "center",
636
+ position: "absolute",
637
+ transform: "translate(-50%, -50%)",
638
+ ...s
639
+ } : { ...H(n) }
640
+ ), be = (n) => n ? { border: "1px solid black" } : {}, ye = (n, s) => n ? { width: "70rem", ...s } : { ...H(n) }, Mr = (n, s) => n ? {
641
+ borderWidth: "0",
642
+ padding: "1rem 0 1rem 0",
643
+ ...s
644
+ } : { ...H(n) }, Lr = (n, s) => n ? {
645
+ borderColor: "black",
646
+ borderStyle: "solid",
647
+ padding: "10rem 0 0 0",
648
+ borderWidth: "0 0 0 10px",
649
+ ...s
650
+ } : { ...H(n) }, Nr = (n, s) => n ? {
651
+ padding: `0 ${0.5}rem 0 ${0.5}rem`,
652
+ backgroundColor: "light-grey",
653
+ border: "1px solid black",
654
+ ...s
655
+ } : { ...H(n) }, Ur = (n, s) => n ? { fontSize: `${0.9}em`, fontWeight: "normal", ...s } : { ...H(n) }, Wr = (n, s) => {
656
+ const b = new Map(
657
+ Array.from(n, (d) => [d[s], []])
658
+ );
659
+ return n.forEach((d) => {
660
+ const y = d[s];
661
+ if (y !== void 0) {
662
+ const R = b.get(y);
663
+ R && R.push(d);
664
+ }
665
+ }), Array.from(b.values());
666
+ }, Br = (n) => n.toUpperCase(), ge = ({
667
+ data: n,
668
+ hasInlineStyles: s = !0,
669
+ headerPrimaryUpper: b = !0,
670
+ thRowStyles: d = {},
671
+ thTitleStyles: y = {},
672
+ thSubTitleStyles: R = {},
673
+ thPrimaryTitleStyles: T = {},
674
+ customHeaderRowIdValue: f = "",
675
+ customDynamicHeaderTitleIdValue: v = "",
676
+ customDynamicSubHeaderTitleIdValue: x = ""
677
+ }) => {
678
+ const h = Lr(s, d), g = Nr(
679
+ s,
680
+ y
681
+ ), w = Ur(
682
+ s,
683
+ R
684
+ ), j = Mr(
685
+ s,
686
+ T
687
+ ), A = b ? n == null ? void 0 : n.primary_header_title : Br(n == null ? void 0 : n.primary_header_title);
688
+ return /* @__PURE__ */ c.jsxs("thead", { children: [
689
+ /* @__PURE__ */ c.jsxs("tr", { id: "react-matrix-blank-headers-primary-title-row", children: [
690
+ /* @__PURE__ */ c.jsx("th", { headers: "blank", colSpan: 4 }),
691
+ /* @__PURE__ */ c.jsx(
692
+ "th",
693
+ {
694
+ style: j,
695
+ id: "react-matrix-header-primary-title",
696
+ children: A
697
+ }
698
+ ),
699
+ /* @__PURE__ */ c.jsx("th", { headers: "blank", colSpan: 2 })
700
+ ] }),
701
+ /* @__PURE__ */ c.jsxs(
702
+ "tr",
703
+ {
704
+ style: h,
705
+ id: `react-matrix-dynamic-headers-row-${f}`,
706
+ children: [
707
+ /* @__PURE__ */ c.jsx("th", { headers: "blank", colSpan: 2 }),
708
+ n.matrix_details.slice(0, n.matrix_size).map((O, F) => /* @__PURE__ */ c.jsxs(
709
+ "th",
710
+ {
711
+ scope: "col",
712
+ style: g,
713
+ id: `react-matrix-dynamic-column-header-title${v ? `-${v}` : ""}`,
714
+ children: [
715
+ O.header_title,
716
+ /* @__PURE__ */ c.jsx(
717
+ "div",
718
+ {
719
+ style: w,
720
+ id: `react-matrix-dynamic-column-header-sub-title${x ? `-${x}` : ""}`,
721
+ children: O.header_sub_title
722
+ }
723
+ )
724
+ ]
725
+ },
726
+ `${O.id}-${F}`
727
+ ))
728
+ ]
729
+ }
730
+ )
731
+ ] });
732
+ }, Ee = ({
733
+ data: n,
734
+ tdStyles: s = {},
735
+ hasInlineStyles: b = !0,
736
+ customTableDataDynamicIdValue: d = ""
737
+ }) => {
738
+ const y = (f) => {
739
+ alert(
740
+ `${f == null ? void 0 : f.description}, ${f == null ? void 0 : f.score_value}
741
+ ${f == null ? void 0 : f.response}`
742
+ );
743
+ }, T = b ? {
744
+ cursor: "pointer",
745
+ textAlign: "center",
746
+ borderColor: "black",
747
+ borderStyle: "solid",
748
+ borderWidth: "1px",
749
+ backgroundColor: n == null ? void 0 : n.colour,
750
+ ...s
751
+ } : { ...s || {} };
752
+ return /* @__PURE__ */ c.jsx(c.Fragment, { children: /* @__PURE__ */ c.jsxs(
753
+ "td",
754
+ {
755
+ style: T,
756
+ onClick: () => y(n),
757
+ id: `react-matrix-dynamic-table-data${d ? `-${d}` : ""}`,
758
+ children: [
759
+ `${n == null ? void 0 : n.description}`,
760
+ /* @__PURE__ */ c.jsx("br", {}),
761
+ `(${n == null ? void 0 : n.score_value})`
762
+ ]
763
+ }
764
+ ) });
765
+ }, Ir = ({
766
+ data: n,
767
+ rowPrimaryUpper: s = !0,
768
+ hasInlineStyles: b = !0,
769
+ reverseMatrixValues: d = !0,
770
+ trRowStyles: y = {},
771
+ trTitleStyles: R = {},
772
+ trSubTitleStyles: T = {},
773
+ trPrimaryTitleStyles: f = {},
774
+ tdStyles: v = {},
775
+ customRowDynamicIdValue: x = "",
776
+ customRowHeaderDynamicIdValue: h = "",
777
+ customTableDataDynamicIdValue: g = ""
778
+ }) => {
779
+ const w = d ? Wr(n.matrix_values, "likelihood_descriptor").reverse().slice(0, n.matrix_size) : Wr(n.matrix_values, "likelihood_descriptor").slice(
780
+ 0,
781
+ n.matrix_size
782
+ ), j = Lr(b, y), A = Nr(
783
+ b,
784
+ R
785
+ ), O = Ur(
786
+ b,
787
+ T
788
+ ), F = Mr(
789
+ b,
790
+ f
791
+ ), C = s ? Br(n.primary_row_header_title) : n.primary_row_header_title;
792
+ return /* @__PURE__ */ c.jsxs("tbody", { children: [
793
+ /* @__PURE__ */ c.jsx("tr", { id: "react-matrix-row-primary-title", children: /* @__PURE__ */ c.jsx("th", { scope: "row", rowSpan: 6, style: F, children: C }) }),
794
+ w.map((_, D) => {
795
+ var M, L, N, U, W, B;
796
+ const P = d ? n.matrix_size - (D + 1) : D;
797
+ return /* @__PURE__ */ c.jsxs(
798
+ "tr",
799
+ {
800
+ style: j,
801
+ id: `react-matrix-dynamic-rows-${(M = n.matrix_details[P]) == null ? void 0 : M.row_header_title}-${(L = n.matrix_details[P]) == null ? void 0 : L.row_header_sub_title}${x ? `-${x}` : ""}`,
802
+ children: [
803
+ /* @__PURE__ */ c.jsxs(
804
+ "th",
805
+ {
806
+ scope: "row",
807
+ style: A,
808
+ id: `react-matrix-dynamic-rows-${(N = n.matrix_details[P]) == null ? void 0 : N.row_header_title}-${(U = n.matrix_details[P]) == null ? void 0 : U.row_header_sub_title}${h ? `-${h}` : ""}`,
809
+ children: [
810
+ (W = n.matrix_details[P]) == null ? void 0 : W.row_header_title,
811
+ /* @__PURE__ */ c.jsx("div", { style: O, children: (B = n.matrix_details[P]) == null ? void 0 : B.row_header_sub_title })
812
+ ]
813
+ }
814
+ ),
815
+ _.slice(0, n.matrix_size).map((I, z) => /* @__PURE__ */ c.jsx(
816
+ Ee,
817
+ {
818
+ data: I,
819
+ tdStyles: v,
820
+ hasInlineStyles: b,
821
+ customTableDataDynamicIdValue: g
822
+ },
823
+ `${I.id}-${z}`
824
+ ))
825
+ ]
826
+ },
827
+ `row-${D}`
828
+ );
829
+ })
830
+ ] });
831
+ };
832
+ Ir.defaultProps = {};
833
+ const xe = ({
834
+ data: n,
835
+ tableStyles: s,
836
+ hasTableBorder: b,
837
+ hasInlineStyles: d,
838
+ hasContainerStyles: y,
839
+ tableContainerStyles: R,
840
+ tableStyles: T = {},
841
+ hasInlineStyles: f = !0,
842
+ // MatrixHeaders
843
+ headerPrimaryUpper: v = !0,
844
+ thRowStyles: x = {},
845
+ thTitleStyles: h = {},
846
+ thSubTitleStyles: g = {},
847
+ thPrimaryTitleStyles: w = {},
848
+ customHeaderRowIdValue: j = "",
849
+ customDynamicHeaderTitleIdValue: A = "",
850
+ customDynamicSubHeaderTitleIdValue: O = "",
851
+ // MatrixRows
852
+ rowPrimaryUpper: F = !0,
853
+ reverseMatrixValues: C = !0,
854
+ trRowStyles: _ = {},
855
+ trTitleStyles: D = {},
856
+ trSubTitleStyles: P = {},
857
+ trPrimaryTitleStyles: M = {},
858
+ tdStyles: L = {},
859
+ customRowDynamicIdValue: N = "",
860
+ customRowHeaderDynamicIdValue: U = "",
861
+ customTableDataDynamicIdValue: W = ""
862
+ }) => {
863
+ const B = be(
864
+ !!(d && b)
865
+ ), I = ye(
866
+ !!(d && s),
867
+ T
868
+ ), z = _e(
869
+ !!(d && y),
870
+ R ?? {}
871
+ );
872
+ return /* @__PURE__ */ c.jsxs("div", { style: z, children: [
873
+ /* @__PURE__ */ c.jsx("h1", { children: n.matrix_name }),
874
+ /* @__PURE__ */ c.jsx("h4", { children: n.matrix_description }),
875
+ /* @__PURE__ */ c.jsxs("table", { id: "matrix-table", style: { ...I, ...B }, children: [
876
+ /* @__PURE__ */ c.jsx(
877
+ ge,
878
+ {
879
+ data: n,
880
+ hasInlineStyles: f,
881
+ headerPrimaryUpper: v,
882
+ thRowStyles: x,
883
+ thTitleStyles: h,
884
+ thSubTitleStyles: g,
885
+ thPrimaryTitleStyles: w,
886
+ customHeaderRowIdValue: j,
887
+ customDynamicHeaderTitleIdValue: A,
888
+ customDynamicSubHeaderTitleIdValue: O
889
+ }
890
+ ),
891
+ /* @__PURE__ */ c.jsx(
892
+ Ir,
893
+ {
894
+ data: n,
895
+ rowPrimaryUpper: F,
896
+ hasInlineStyles: f,
897
+ reverseMatrixValues: C,
898
+ trRowStyles: _,
899
+ trTitleStyles: D,
900
+ trSubTitleStyles: P,
901
+ trPrimaryTitleStyles: M,
902
+ tdStyles: L,
903
+ customRowDynamicIdValue: N,
904
+ customRowHeaderDynamicIdValue: U,
905
+ customTableDataDynamicIdValue: W
906
+ }
907
+ )
908
+ ] })
909
+ ] });
910
+ };
911
+ export {
912
+ xe as default
913
+ };