@hievilmath/browser-formidavim 1.5.6 → 1.5.7

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 (4) hide show
  1. package/README.md +5 -0
  2. package/index.js +52 -50
  3. package/index.mjs +475 -471
  4. package/package.json +1 -1
package/index.mjs CHANGED
@@ -56,8 +56,8 @@ function G6() {
56
56
  var We = L && oe[L] || oe[P];
57
57
  return typeof We == "function" ? We : null;
58
58
  }
59
- var Y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
60
- function W(oe) {
59
+ var W = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
60
+ function Y(oe) {
61
61
  {
62
62
  for (var We = arguments.length, ot = new Array(We > 1 ? We - 1 : 0), Lt = 1; Lt < We; Lt++)
63
63
  ot[Lt - 1] = arguments[Lt];
@@ -66,7 +66,7 @@ function G6() {
66
66
  }
67
67
  function k(oe, We, ot) {
68
68
  {
69
- var Lt = Y.ReactDebugCurrentFrame, $t = Lt.getStackAddendum();
69
+ var Lt = W.ReactDebugCurrentFrame, $t = Lt.getStackAddendum();
70
70
  $t !== "" && (We += "%s", ot = ot.concat([$t]));
71
71
  var Wt = ot.map(function(en) {
72
72
  return String(en);
@@ -96,7 +96,7 @@ function G6() {
96
96
  function fe(oe) {
97
97
  if (oe == null)
98
98
  return null;
99
- if (typeof oe.tag == "number" && W("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof oe == "function")
99
+ if (typeof oe.tag == "number" && Y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof oe == "function")
100
100
  return oe.displayName || oe.name || null;
101
101
  if (typeof oe == "string")
102
102
  return oe;
@@ -197,10 +197,10 @@ function G6() {
197
197
  })
198
198
  });
199
199
  }
200
- ve < 0 && W("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
200
+ ve < 0 && Y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
201
201
  }
202
202
  }
203
- var Ye = Y.ReactCurrentDispatcher, ze;
203
+ var Ye = W.ReactCurrentDispatcher, ze;
204
204
  function Q(oe, We, ot) {
205
205
  {
206
206
  if (ze === void 0)
@@ -326,7 +326,7 @@ function G6() {
326
326
  }
327
327
  return "";
328
328
  }
329
- var nt = Object.prototype.hasOwnProperty, Mt = {}, Nt = Y.ReactDebugCurrentFrame;
329
+ var nt = Object.prototype.hasOwnProperty, Mt = {}, Nt = W.ReactDebugCurrentFrame;
330
330
  function mt(oe) {
331
331
  if (oe) {
332
332
  var We = oe._owner, ot = Fe(oe.type, oe._source, We ? We.type : null);
@@ -349,7 +349,7 @@ function G6() {
349
349
  } catch (er) {
350
350
  tn = er;
351
351
  }
352
- tn && !(tn instanceof Error) && (mt($t), W("%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).", Lt || "React class", ot, en, typeof tn), mt(null)), tn instanceof Error && !(tn.message in Mt) && (Mt[tn.message] = !0, mt($t), W("Failed %s type: %s", ot, tn.message), mt(null));
352
+ tn && !(tn instanceof Error) && (mt($t), Y("%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).", Lt || "React class", ot, en, typeof tn), mt(null)), tn instanceof Error && !(tn.message in Mt) && (Mt[tn.message] = !0, mt($t), Y("Failed %s type: %s", ot, tn.message), mt(null));
353
353
  }
354
354
  }
355
355
  }
@@ -375,9 +375,9 @@ function G6() {
375
375
  }
376
376
  function cn(oe) {
377
377
  if (vn(oe))
378
- return W("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", un(oe)), pn(oe);
378
+ return Y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", un(oe)), pn(oe);
379
379
  }
380
- var Rn = Y.ReactCurrentOwner, ar = {
380
+ var Rn = W.ReactCurrentOwner, ar = {
381
381
  key: !0,
382
382
  ref: !0,
383
383
  __self: !0,
@@ -405,7 +405,7 @@ function G6() {
405
405
  function $n(oe, We) {
406
406
  {
407
407
  var ot = function() {
408
- ir || (ir = !0, W("%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)", We));
408
+ ir || (ir = !0, Y("%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)", We));
409
409
  };
410
410
  ot.isReactWarning = !0, Object.defineProperty(oe, "key", {
411
411
  get: ot,
@@ -416,7 +416,7 @@ function G6() {
416
416
  function In(oe, We) {
417
417
  {
418
418
  var ot = function() {
419
- at || (at = !0, W("%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)", We));
419
+ at || (at = !0, Y("%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)", We));
420
420
  };
421
421
  ot.isReactWarning = !0, Object.defineProperty(oe, "ref", {
422
422
  get: ot,
@@ -471,7 +471,7 @@ function G6() {
471
471
  return An(oe, tn, Rr, $t, Lt, Rn.current, en);
472
472
  }
473
473
  }
474
- var qe = Y.ReactCurrentOwner, B = Y.ReactDebugCurrentFrame;
474
+ var qe = W.ReactCurrentOwner, B = W.ReactDebugCurrentFrame;
475
475
  function ee(oe) {
476
476
  if (oe) {
477
477
  var We = oe._owner, ot = Fe(oe.type, oe._source, We ? We.type : null);
@@ -522,7 +522,7 @@ Check the top-level render call using <` + ot + ">.");
522
522
  return;
523
523
  pe[ot] = !0;
524
524
  var Lt = "";
525
- oe && oe._owner && oe._owner !== qe.current && (Lt = " It was passed a child from " + fe(oe._owner.type) + "."), ee(oe), W('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ot, Lt), ee(null);
525
+ oe && oe._owner && oe._owner !== qe.current && (Lt = " It was passed a child from " + fe(oe._owner.type) + "."), ee(oe), Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ot, Lt), ee(null);
526
526
  }
527
527
  }
528
528
  function tt(oe, We) {
@@ -564,9 +564,9 @@ Check the top-level render call using <` + ot + ">.");
564
564
  } else if (We.PropTypes !== void 0 && !se) {
565
565
  se = !0;
566
566
  var $t = fe(We);
567
- W("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", $t || "Unknown");
567
+ Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", $t || "Unknown");
568
568
  }
569
- typeof We.getDefaultProps == "function" && !We.getDefaultProps.isReactClassApproved && W("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
569
+ typeof We.getDefaultProps == "function" && !We.getDefaultProps.isReactClassApproved && Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
570
570
  }
571
571
  }
572
572
  function Rt(oe) {
@@ -574,11 +574,11 @@ Check the top-level render call using <` + ot + ">.");
574
574
  for (var We = Object.keys(oe.props), ot = 0; ot < We.length; ot++) {
575
575
  var Lt = We[ot];
576
576
  if (Lt !== "children" && Lt !== "key") {
577
- ee(oe), W("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Lt), ee(null);
577
+ ee(oe), Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Lt), ee(null);
578
578
  break;
579
579
  }
580
580
  }
581
- oe.ref !== null && (ee(oe), W("Invalid attribute `ref` supplied to `React.Fragment`."), ee(null));
581
+ oe.ref !== null && (ee(oe), Y("Invalid attribute `ref` supplied to `React.Fragment`."), ee(null));
582
582
  }
583
583
  }
584
584
  var fn = {};
@@ -591,7 +591,7 @@ Check the top-level render call using <` + ot + ">.");
591
591
  var Rr = q();
592
592
  Rr ? tn += Rr : tn += F();
593
593
  var er;
594
- oe === null ? er = "null" : it(oe) ? er = "array" : oe !== void 0 && oe.$$typeof === r ? (er = "<" + (fe(oe.type) || "Unknown") + " />", tn = " Did you accidentally export a JSX literal instead of a component?") : er = typeof oe, W("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", er, tn);
594
+ oe === null ? er = "null" : it(oe) ? er = "array" : oe !== void 0 && oe.$$typeof === r ? (er = "<" + (fe(oe.type) || "Unknown") + " />", tn = " Did you accidentally export a JSX literal instead of a component?") : er = typeof oe, Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", er, tn);
595
595
  }
596
596
  var lr = _n(oe, We, ot, $t, Wt);
597
597
  if (lr == null)
@@ -605,7 +605,7 @@ Check the top-level render call using <` + ot + ">.");
605
605
  tt(eo[Yt], oe);
606
606
  Object.freeze && Object.freeze(eo);
607
607
  } else
608
- W("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
608
+ Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
609
609
  else
610
610
  tt(eo, oe);
611
611
  }
@@ -615,7 +615,7 @@ Check the top-level render call using <` + ot + ">.");
615
615
  }), rn = Xt.length > 0 ? "{key: someKey, " + Xt.join(": ..., ") + ": ...}" : "{key: someKey}";
616
616
  if (!fn[tr + rn]) {
617
617
  var Ja = Xt.length > 0 ? "{" + Xt.join(": ..., ") + ": ...}" : "{}";
618
- W(`A props object containing a "key" prop is being spread into JSX:
618
+ Y(`A props object containing a "key" prop is being spread into JSX:
619
619
  let props = %s;
620
620
  <%s {...props} />
621
621
  React keys must be passed directly to JSX without using spread:
@@ -2030,6 +2030,8 @@ const JC = _e.div`
2030
2030
  min-width: 100%;
2031
2031
  line-height: 1.2em;
2032
2032
  transition: all .2s;
2033
+ caret-color: transparent;
2034
+ cursor: pointer;
2033
2035
  }
2034
2036
  .react-datepicker-wrapper input:focus, .react-datepicker-wrapper input:hover {
2035
2037
  border-color: ${(e) => e.$hasError ? e.theme.colors.danger : e.theme.colors.primary};
@@ -3228,8 +3230,8 @@ function t3(e, r, i) {
3228
3230
  }
3229
3231
  let s = e, c = r, f = /* @__PURE__ */ new Map(), d = f, v = 0, b = !1;
3230
3232
  function S() {
3231
- d === f && (d = /* @__PURE__ */ new Map(), f.forEach((j, Y) => {
3232
- d.set(Y, j);
3233
+ d === f && (d = /* @__PURE__ */ new Map(), f.forEach((j, W) => {
3234
+ d.set(W, j);
3233
3235
  }));
3234
3236
  }
3235
3237
  function E() {
@@ -3242,14 +3244,14 @@ function t3(e, r, i) {
3242
3244
  throw new Error(process.env.NODE_ENV === "production" ? qo(4) : `Expected the listener to be a function. Instead, received: '${zu(j)}'`);
3243
3245
  if (b)
3244
3246
  throw new Error(process.env.NODE_ENV === "production" ? qo(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
3245
- let Y = !0;
3247
+ let W = !0;
3246
3248
  S();
3247
- const W = v++;
3248
- return d.set(W, j), function() {
3249
- if (Y) {
3249
+ const Y = v++;
3250
+ return d.set(Y, j), function() {
3251
+ if (W) {
3250
3252
  if (b)
3251
3253
  throw new Error(process.env.NODE_ENV === "production" ? qo(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
3252
- Y = !1, S(), d.delete(W), f = null;
3254
+ W = !1, S(), d.delete(Y), f = null;
3253
3255
  }
3254
3256
  };
3255
3257
  }
@@ -3267,8 +3269,8 @@ function t3(e, r, i) {
3267
3269
  } finally {
3268
3270
  b = !1;
3269
3271
  }
3270
- return (f = d).forEach((W) => {
3271
- W();
3272
+ return (f = d).forEach((Y) => {
3273
+ Y();
3272
3274
  }), j;
3273
3275
  }
3274
3276
  function A(j) {
@@ -3289,15 +3291,15 @@ function t3(e, r, i) {
3289
3291
  * be used to unsubscribe the observable from the store, and prevent further
3290
3292
  * emission of values from the observable.
3291
3293
  */
3292
- subscribe(Y) {
3293
- if (typeof Y != "object" || Y === null)
3294
- throw new Error(process.env.NODE_ENV === "production" ? qo(11) : `Expected the observer to be an object. Instead, received: '${zu(Y)}'`);
3295
- function W() {
3296
- const U = Y;
3294
+ subscribe(W) {
3295
+ if (typeof W != "object" || W === null)
3296
+ throw new Error(process.env.NODE_ENV === "production" ? qo(11) : `Expected the observer to be an object. Instead, received: '${zu(W)}'`);
3297
+ function Y() {
3298
+ const U = W;
3297
3299
  U.next && U.next(E());
3298
3300
  }
3299
- return W(), {
3300
- unsubscribe: j(W)
3301
+ return Y(), {
3302
+ unsubscribe: j(Y)
3301
3303
  };
3302
3304
  },
3303
3305
  [mR]() {
@@ -4112,22 +4114,22 @@ function a5(e = {}) {
4112
4114
  const j = kC(A, "", r, i, c, E);
4113
4115
  if (j) {
4114
4116
  const {
4115
- keyPath: Y,
4116
- value: W
4117
+ keyPath: W,
4118
+ value: Y
4117
4119
  } = j;
4118
- console.error(`A non-serializable value was detected in an action, in the path: \`${Y}\`. Value:`, W, `
4120
+ console.error(`A non-serializable value was detected in an action, in the path: \`${W}\`. Value:`, Y, `
4119
4121
  Take a look at the logic that dispatched this action: `, A, `
4120
4122
  (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`, `
4121
4123
  (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`);
4122
4124
  }
4123
4125
  }), v || (P.measureTime(() => {
4124
- const j = w.getState(), Y = kC(j, "", r, i, f, E);
4125
- if (Y) {
4126
+ const j = w.getState(), W = kC(j, "", r, i, f, E);
4127
+ if (W) {
4126
4128
  const {
4127
- keyPath: W,
4129
+ keyPath: Y,
4128
4130
  value: k
4129
- } = Y;
4130
- console.error(`A non-serializable value was detected in the state, in the path: \`${W}\`. Value:`, k, `
4131
+ } = W;
4132
+ console.error(`A non-serializable value was detected in the state, in the path: \`${Y}\`. Value:`, k, `
4131
4133
  Take a look at the reducer(s) handling this action type: ${A.type}.
4132
4134
  (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`);
4133
4135
  }
@@ -4394,7 +4396,7 @@ function v5({
4394
4396
  function j() {
4395
4397
  return L || (L = w()), L.getInitialState();
4396
4398
  }
4397
- function Y(k, U = !1) {
4399
+ function W(k, U = !1) {
4398
4400
  function D(J) {
4399
4401
  let le = J[k];
4400
4402
  if (typeof le > "u") {
@@ -4427,13 +4429,13 @@ function v5({
4427
4429
  selectSlice: D
4428
4430
  };
4429
4431
  }
4430
- const W = {
4432
+ const Y = {
4431
4433
  name: f,
4432
4434
  reducer: P,
4433
4435
  actions: S.actionCreators,
4434
4436
  caseReducers: S.sliceCaseReducersByName,
4435
4437
  getInitialState: j,
4436
- ...Y(d),
4438
+ ...W(d),
4437
4439
  injectInto(k, {
4438
4440
  reducerPath: U,
4439
4441
  ...D
@@ -4443,12 +4445,12 @@ function v5({
4443
4445
  reducerPath: z,
4444
4446
  reducer: P
4445
4447
  }, D), {
4446
- ...W,
4447
- ...Y(z, !0)
4448
+ ...Y,
4449
+ ...W(z, !0)
4448
4450
  };
4449
4451
  }
4450
4452
  };
4451
- return W;
4453
+ return Y;
4452
4454
  };
4453
4455
  }
4454
4456
  function y5(e, r, i, s) {
@@ -4626,10 +4628,10 @@ const w5 = {
4626
4628
  const r = Number(e);
4627
4629
  return isNaN(r) ? null : r;
4628
4630
  }, G5 = ({ formComponent: e }) => {
4629
- const r = e.props, { propertyId: i, label: s = "Input Label", min: c, max: f, allowLeadingZero: d, required: v } = r || {}, { getFlowValue: b, setFlowAndPatientValue: S, getFlowError: E } = Or(), w = z5(b(i)), O = E(i), A = !!O && O !== "Required", L = 1, P = v === "true", j = (Y) => {
4630
- let { value: W } = Y.target;
4631
- d || (W = W.replace(/^0+/, ""));
4632
- const k = H5(W);
4631
+ const r = e.props, { propertyId: i, label: s = "Input Label", min: c, max: f, allowLeadingZero: d, required: v } = r || {}, { getFlowValue: b, setFlowAndPatientValue: S, getFlowError: E } = Or(), w = z5(b(i)), O = E(i), A = !!O && O !== "Required", L = 1, P = v === "true", j = (W) => {
4632
+ let { value: Y } = W.target;
4633
+ d || (Y = Y.replace(/^0+/, ""));
4634
+ const k = H5(Y);
4633
4635
  S(i, k);
4634
4636
  };
4635
4637
  return /* @__PURE__ */ I.jsxs(
@@ -4677,21 +4679,21 @@ const w5 = {
4677
4679
  const O = (d == null ? void 0 : d.required) === "true";
4678
4680
  gn(() => {
4679
4681
  }, [S]);
4680
- const A = (Y) => {
4681
- const { value: W } = Y.target;
4682
+ const A = (W) => {
4683
+ const { value: Y } = W.target;
4682
4684
  let k = S, U = { ...c };
4683
4685
  if (e.componentId === "radio" || e.componentId === "radio-group")
4684
- TR(S) === W ? k = null : k = B5(W);
4685
- else if (Array.isArray(k) || (k = []), k.indexOf(W) !== -1) {
4686
- let D = k.indexOf(W);
4686
+ TR(S) === Y ? k = null : k = B5(Y);
4687
+ else if (Array.isArray(k) || (k = []), k.indexOf(Y) !== -1) {
4688
+ let D = k.indexOf(Y);
4687
4689
  k.splice(D, 1);
4688
4690
  } else
4689
- k.push(W);
4691
+ k.push(Y);
4690
4692
  i(d.propertyId, k), f(U);
4691
- }, L = (Y) => {
4692
- var W;
4693
+ }, L = (W) => {
4694
+ var Y;
4693
4695
  if (e.componentId === "radio" || e.componentId === "radio-group") {
4694
- const k = (W = v[Y]) == null ? void 0 : W.value;
4696
+ const k = (Y = v[W]) == null ? void 0 : Y.value;
4695
4697
  return TR(S) === k;
4696
4698
  }
4697
4699
  }, P = (v == null ? void 0 : v.length) || 0;
@@ -4703,19 +4705,19 @@ const w5 = {
4703
4705
  children: [
4704
4706
  /* @__PURE__ */ I.jsxs(J0, { children: [
4705
4707
  /* @__PURE__ */ I.jsx(hl, { $margin: "0px 0px 5px 10px", $color: w ? "danger" : void 0, children: (j = e.props) == null ? void 0 : j.label }),
4706
- v && v.map((Y, W) => {
4707
- const k = W === 0 && W + 1 != P ? "first" : P === W + 1 ? "last" : null, U = e.id + "_" + W, D = e.componentId === "radio-group" ? d.propertyId : e.id;
4708
+ v && v.map((W, Y) => {
4709
+ const k = Y === 0 && Y + 1 != P ? "first" : P === Y + 1 ? "last" : null, U = e.id + "_" + Y, D = e.componentId === "radio-group" ? d.propertyId : e.id;
4708
4710
  return /* @__PURE__ */ I.jsx(fv, { $justify: "flex-start", $inputBoundary: k, children: /* @__PURE__ */ I.jsxs("label", { htmlFor: U, children: [
4709
- /* @__PURE__ */ I.jsx(ew, { dangerouslySetInnerHTML: { __html: Y.labelText } }),
4711
+ /* @__PURE__ */ I.jsx(ew, { dangerouslySetInnerHTML: { __html: W.labelText } }),
4710
4712
  /* @__PURE__ */ I.jsx(
4711
4713
  "input",
4712
4714
  {
4713
4715
  type: "checkbox",
4714
4716
  id: U,
4715
4717
  name: D,
4716
- value: Y.value,
4718
+ value: W.value,
4717
4719
  onChange: (z) => A(z),
4718
- checked: L(W)
4720
+ checked: L(Y)
4719
4721
  }
4720
4722
  ),
4721
4723
  /* @__PURE__ */ I.jsx("span", {})
@@ -4789,7 +4791,7 @@ const w5 = {
4789
4791
  ] }) : null
4790
4792
  ] });
4791
4793
  }, X5 = ({ formComponent: e }) => {
4792
- var W;
4794
+ var Y;
4793
4795
  const r = e.props, { required: i, propertyId: s, label: c, options: f, jsonataData: d } = r || {}, v = i === "true";
4794
4796
  let b = [];
4795
4797
  d ? b = (Array.isArray(d) ? d : [d]).map((U) => ({
@@ -4809,7 +4811,7 @@ const w5 = {
4809
4811
  var D;
4810
4812
  const U = (D = b[k]) == null ? void 0 : D.value;
4811
4813
  return Array.isArray(O) && O.includes(U);
4812
- }, Y = (b == null ? void 0 : b.length) || 0;
4814
+ }, W = (b == null ? void 0 : b.length) || 0;
4813
4815
  return /* @__PURE__ */ I.jsxs(
4814
4816
  ZC,
4815
4817
  {
@@ -4817,9 +4819,9 @@ const w5 = {
4817
4819
  $style: "input",
4818
4820
  children: [
4819
4821
  /* @__PURE__ */ I.jsxs(J0, { children: [
4820
- /* @__PURE__ */ I.jsx(hl, { $margin: "0px 0px 5px 10px", $color: L ? "danger" : void 0, children: (W = e.props) == null ? void 0 : W.label }),
4822
+ /* @__PURE__ */ I.jsx(hl, { $margin: "0px 0px 5px 10px", $color: L ? "danger" : void 0, children: (Y = e.props) == null ? void 0 : Y.label }),
4821
4823
  b && b.map((k, U) => {
4822
- const D = U === 0 && U + 1 != Y ? "first" : Y === U + 1 ? "last" : null, z = e.id + "_" + U, J = e.componentId === "radio-group" ? r.propertyId : e.id;
4824
+ const D = U === 0 && U + 1 != W ? "first" : W === U + 1 ? "last" : null, z = e.id + "_" + U, J = e.componentId === "radio-group" ? r.propertyId : e.id;
4823
4825
  return /* @__PURE__ */ I.jsx(fv, { $justify: "flex-start", $inputBoundary: D, children: /* @__PURE__ */ I.jsxs("label", { htmlFor: z, children: [
4824
4826
  /* @__PURE__ */ I.jsx(ew, { dangerouslySetInnerHTML: { __html: k.labelText } }),
4825
4827
  /* @__PURE__ */ I.jsx(
@@ -4846,9 +4848,9 @@ const w5 = {
4846
4848
  e.id
4847
4849
  );
4848
4850
  }, K5 = ({ formComponent: e }) => {
4849
- const { getFlowValue: r, setFlowAndPatientValue: i, getFlowError: s } = Or(), c = e.props, { labelText: f, leftText: d, middleText: v, rightText: b, propertyId: S, required: E, colorDirection: w = "green-to-red" } = c || {}, O = r(S), A = s(S), L = !!A && A !== "Required", P = (W) => {
4850
- i(S, W);
4851
- }, j = (W) => {
4851
+ const { getFlowValue: r, setFlowAndPatientValue: i, getFlowError: s } = Or(), c = e.props, { labelText: f, leftText: d, middleText: v, rightText: b, propertyId: S, required: E, colorDirection: w = "green-to-red" } = c || {}, O = r(S), A = s(S), L = !!A && A !== "Required", P = (Y) => {
4852
+ i(S, Y);
4853
+ }, j = (Y) => {
4852
4854
  const k = ["#9AB777", "#949455", "#A07D4B", "#AC6741", "#BD5E46"];
4853
4855
  let U;
4854
4856
  return w === "green-to-red" ? U = {
@@ -4873,8 +4875,8 @@ const w5 = {
4873
4875
  // yellow-green
4874
4876
  5: k[0]
4875
4877
  // green
4876
- }, U[W] || k[0];
4877
- }, Y = (W) => O === W;
4878
+ }, U[Y] || k[0];
4879
+ }, W = (Y) => O === Y;
4878
4880
  return /* @__PURE__ */ I.jsxs(Pa, { $visible: !0, $hasError: L, $type: "symptomSurvey", children: [
4879
4881
  /* @__PURE__ */ I.jsxs(Z5, { children: [
4880
4882
  f && /* @__PURE__ */ I.jsx(Z$, { $color: "primary", $margin: "0px 0px 10px 0px", children: f }),
@@ -4884,17 +4886,17 @@ const w5 = {
4884
4886
  v && /* @__PURE__ */ I.jsx(rC, { children: v }),
4885
4887
  b && /* @__PURE__ */ I.jsx(rC, { children: b })
4886
4888
  ] }),
4887
- /* @__PURE__ */ I.jsx(tI, { children: [1, 2, 3, 4, 5].map((W) => /* @__PURE__ */ I.jsx(nI, { style: { display: "flex", flexDirection: "column", alignItems: "center" }, children: /* @__PURE__ */ I.jsx(
4889
+ /* @__PURE__ */ I.jsx(tI, { children: [1, 2, 3, 4, 5].map((Y) => /* @__PURE__ */ I.jsx(nI, { style: { display: "flex", flexDirection: "column", alignItems: "center" }, children: /* @__PURE__ */ I.jsx(
4888
4890
  rI,
4889
4891
  {
4890
- $severity: W,
4891
- $color: j(W),
4892
- $isSelected: Y(W),
4893
- onClick: () => P(W),
4892
+ $severity: Y,
4893
+ $color: j(Y),
4894
+ $isSelected: W(Y),
4895
+ onClick: () => P(Y),
4894
4896
  type: "button",
4895
- children: W
4897
+ children: Y
4896
4898
  }
4897
- ) }, W)) })
4899
+ ) }, Y)) })
4898
4900
  ] })
4899
4901
  ] }),
4900
4902
  c != null && c.required && !O && !L ? /* @__PURE__ */ I.jsx(so, { $bottom: "-30px", $visible: !0, children: "Required" }) : L ? /* @__PURE__ */ I.jsxs(Xo, { $bottom: "-30px", $visible: !0, children: [
@@ -5012,19 +5014,19 @@ const Z5 = _e.div`
5012
5014
  const r = e.props, { propertyId: i, label: s = "Label", minDate: c, maxDate: f, minAge: d } = r || {}, { getFlowValue: v, setFlowAndPatientValue: b, getFlowError: S, setFlowError: E } = Or(), w = v(r.propertyId), O = S(r.propertyId), A = !!O && O !== "Required";
5013
5015
  gn(() => {
5014
5016
  if (d && w) {
5015
- const Y = new Date(w);
5016
- S0(Y) && (oC(Y) < d ? E(i, `Must be over ${d}`) : E(i, ""));
5017
+ const W = new Date(w);
5018
+ S0(W) && (oC(W) < d ? E(i, `Must be over ${d}`) : E(i, ""));
5017
5019
  }
5018
5020
  }, [d, w, i, E]), gn(() => {
5019
5021
  if (d && w) {
5020
- const Y = new Date(w);
5021
- S0(Y) && (oC(Y) < d ? E(i, `Must be over ${d}`) : E(i, ""));
5022
+ const W = new Date(w);
5023
+ S0(W) && (oC(W) < d ? E(i, `Must be over ${d}`) : E(i, ""));
5022
5024
  }
5023
5025
  }, [d, w, i, E]);
5024
- const L = (Y) => (b(i, P(Y)), d && Y && S0(Y) ? oC(Y) < d ? E(i, `Must be over ${d}`) : E(i, "") : d && !Y && E(i, ""), null), P = (Y) => {
5025
- if (!S0(Y))
5026
+ const L = (W) => (b(i, P(W)), d && W && S0(W) ? oC(W) < d ? E(i, `Must be over ${d}`) : E(i, "") : d && !W && E(i, ""), null), P = (W) => {
5027
+ if (!S0(W))
5026
5028
  return "";
5027
- const W = new Date(Y), k = String(W.getDate()).padStart(2, "0"), U = String(W.getMonth() + 1).padStart(2, "0"), D = W.getFullYear();
5029
+ const Y = new Date(W), k = String(Y.getDate()).padStart(2, "0"), U = String(Y.getMonth() + 1).padStart(2, "0"), D = Y.getFullYear();
5028
5030
  return `${U}/${k}/${D}`;
5029
5031
  }, j = JS.default.default || JS.default || JS;
5030
5032
  return /* @__PURE__ */ I.jsx(oM, { $justify: "start", $margin: "", id: `datepicker_${i}`, children: /* @__PURE__ */ I.jsxs(
@@ -5039,7 +5041,7 @@ const Z5 = _e.div`
5039
5041
  j,
5040
5042
  {
5041
5043
  selected: w,
5042
- onChange: (Y) => L(Y),
5044
+ onChange: (W) => L(W),
5043
5045
  allowSameDay: !0,
5044
5046
  dateFormat: "MM/dd/yyyy",
5045
5047
  showYearDropdown: !0,
@@ -5049,7 +5051,9 @@ const Z5 = _e.div`
5049
5051
  popperClassName: "DPCalendar",
5050
5052
  popperPlacement: "top-end",
5051
5053
  minDate: c ? new Date(c) : null,
5052
- maxDate: f ? new Date(f) : null
5054
+ maxDate: f ? new Date(f) : null,
5055
+ onFocus: (W) => W.target.blur(),
5056
+ onKeyDown: (W) => W.preventDefault()
5053
5057
  }
5054
5058
  ),
5055
5059
  r != null && r.required && !w && !A ? /* @__PURE__ */ I.jsx(so, { $bottom: "-30px", $visible: !0, children: "Required" }) : A ? /* @__PURE__ */ I.jsxs(Xo, { $bottom: "-30px", $visible: !0, children: [
@@ -5123,8 +5127,8 @@ const Z5 = _e.div`
5123
5127
  return /* @__PURE__ */ I.jsx("p", { children: "Titration options not available for preview" });
5124
5128
  const L = Object.values(w)[0], P = typeof L == "object" && L !== null && "titrations" in L ? L.titrations : [], j = () => {
5125
5129
  O || A(!0);
5126
- }, Y = (W) => {
5127
- const { value: k } = W.target;
5130
+ }, W = (Y) => {
5131
+ const { value: k } = Y.target;
5128
5132
  f(r.propertyId, k);
5129
5133
  };
5130
5134
  return /* @__PURE__ */ I.jsxs(
@@ -5139,13 +5143,13 @@ const Z5 = _e.div`
5139
5143
  {
5140
5144
  id: i,
5141
5145
  name: i,
5142
- onChange: (W) => Y(W),
5146
+ onChange: (Y) => W(Y),
5143
5147
  onBlur: j,
5144
5148
  value: b || "",
5145
5149
  children: [
5146
5150
  /* @__PURE__ */ I.jsx("option", { value: "", disabled: !0, children: "Make a selection" }),
5147
- P && P.map((W, k) => /* @__PURE__ */ I.jsxs("option", { value: W, children: [
5148
- W,
5151
+ P && P.map((Y, k) => /* @__PURE__ */ I.jsxs("option", { value: Y, children: [
5152
+ Y,
5149
5153
  " mg"
5150
5154
  ] }, k))
5151
5155
  ]
@@ -10216,19 +10220,19 @@ const hv = (e) => {
10216
10220
  apiUrl: r.api
10217
10221
  });
10218
10222
  }, vI = ({ formComponent: e, formidavimHost: r }) => {
10219
- const i = e.props, { required: s, maxLength: c, propertyId: f, label: d = "Email", inlineCopy: v } = i || {}, { getFlowValue: b, getFlowError: S, setFlowError: E, setDisableSubmitValue: w, setFlowValue: O } = Or(), A = Op(b(f)), [L, P] = Jt(""), [j, Y] = Jt(!1), [W, k] = Jt(null), U = Xs(!1), D = hv(r), z = br(async (xe) => {
10223
+ const i = e.props, { required: s, maxLength: c, propertyId: f, label: d = "Email", inlineCopy: v } = i || {}, { getFlowValue: b, getFlowError: S, setFlowError: E, setDisableSubmitValue: w, setFlowValue: O } = Or(), A = Op(b(f)), [L, P] = Jt(""), [j, W] = Jt(!1), [Y, k] = Jt(null), U = Xs(!1), D = hv(r), z = br(async (xe) => {
10220
10224
  if (!xe || !hp(xe).valid || U.current) {
10221
10225
  k(null);
10222
10226
  return;
10223
10227
  }
10224
- U.current = !0, Y(!0), k(null);
10228
+ U.current = !0, W(!0), k(null);
10225
10229
  try {
10226
10230
  const fe = await D.userControllerGetUser(xe);
10227
10231
  (fe == null ? void 0 : fe.data) && typeof fe.data == "object" && Object.keys(fe.data).length > 0 ? (k("An account with this email already exists"), w(!0)) : (k(null), w(!1));
10228
10232
  } catch (fe) {
10229
10233
  console.warn("Error checking for duplicate user:", fe), k(null);
10230
10234
  } finally {
10231
- Y(!1), U.current = !1;
10235
+ W(!1), U.current = !1;
10232
10236
  }
10233
10237
  }, [D, w]);
10234
10238
  gn(() => {
@@ -10249,7 +10253,7 @@ const hv = (e) => {
10249
10253
  }, le = (xe) => {
10250
10254
  const { value: fe } = xe.target;
10251
10255
  fe && !hp(fe).valid && E(f, "Please enter a valid email address");
10252
- }, ie = !!S(f) && S(f) !== "Required" || !!W;
10256
+ }, ie = !!S(f) && S(f) !== "Required" || !!Y;
10253
10257
  return /* @__PURE__ */ I.jsxs(Pa, { $visible: !0, $hasError: ie, children: [
10254
10258
  /* @__PURE__ */ I.jsx(_i, { $color: ie ? "danger" : void 0, children: d }),
10255
10259
  /* @__PURE__ */ I.jsx(
@@ -10270,7 +10274,7 @@ const hv = (e) => {
10270
10274
  j && /* @__PURE__ */ I.jsx(so, { $bottom: "-30px", $visible: !0, children: "Checking availability..." }),
10271
10275
  i != null && i.required && !A && !ie ? /* @__PURE__ */ I.jsx(so, { $bottom: "-30px", $visible: !0, children: "Required" }) : ie ? /* @__PURE__ */ I.jsxs(Xo, { $bottom: "-30px", $visible: !0, children: [
10272
10276
  /* @__PURE__ */ I.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "15", viewBox: "0 0 14 15", fill: "none", children: /* @__PURE__ */ I.jsx("path", { d: "M0.331707 7.50001C0.331707 11.1819 3.31647 14.1667 6.99837 14.1667C10.6803 14.1667 13.665 11.1819 13.665 7.50001C13.665 3.81811 10.6803 0.833344 6.99837 0.833344C3.31647 0.833344 0.331707 3.81811 0.331707 7.50001ZM3.8603 5.30475L4.80311 4.36194L10.1364 9.69527L9.19363 10.6381L3.8603 5.30475Z", fill: "#B94E36" }) }),
10273
- W || S(f)
10277
+ Y || S(f)
10274
10278
  ] }) : null
10275
10279
  ] });
10276
10280
  }, yI = ({ formComponent: e }) => {
@@ -10289,7 +10293,7 @@ const hv = (e) => {
10289
10293
  setFlowError: O,
10290
10294
  setDisableSubmitValue: A,
10291
10295
  setFlowValue: L
10292
- } = Or(), P = Op(S(c)), j = b ? Op(S(b)) : "", Y = w(c), W = b ? w(b) : null, k = !!Y && Y !== "Required", U = !!W && W !== "Required", [D, z] = Jt(!1), [J, le] = Jt(!1), [he, N] = Jt(""), [ie, xe] = Jt(""), fe = (ue) => {
10296
+ } = Or(), P = Op(S(c)), j = b ? Op(S(b)) : "", W = w(c), Y = b ? w(b) : null, k = !!W && W !== "Required", U = !!Y && Y !== "Required", [D, z] = Jt(!1), [J, le] = Jt(!1), [he, N] = Jt(""), [ie, xe] = Jt(""), fe = (ue) => {
10293
10297
  if (ue.length < v) return !1;
10294
10298
  const V = /[a-z]/.test(ue), G = /[A-Z]/.test(ue), Ce = /\d/.test(ue), Ve = /[^A-Za-z0-9]/.test(ue);
10295
10299
  return V && G && Ce && Ve;
@@ -10384,7 +10388,7 @@ const hv = (e) => {
10384
10388
  ] }),
10385
10389
  i && !P && !k ? /* @__PURE__ */ I.jsx(so, { $visible: !0, children: "Required" }) : k ? /* @__PURE__ */ I.jsxs(Xo, { $visible: !0, children: [
10386
10390
  /* @__PURE__ */ I.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "15", viewBox: "0 0 14 15", fill: "none", children: /* @__PURE__ */ I.jsx("path", { d: "M0.331707 7.50001C0.331707 11.1819 3.31647 14.1667 6.99837 14.1667C10.6803 14.1667 13.665 11.1819 13.665 7.50001C13.665 3.81811 10.6803 0.833344 6.99837 0.833344C3.31647 0.833344 0.331707 3.81811 0.331707 7.50001ZM3.8603 5.30475L4.80311 4.36194L10.1364 9.69527L9.19363 10.6381L3.8603 5.30475Z", fill: "#B94E36" }) }),
10387
- Y
10391
+ W
10388
10392
  ] }) : null,
10389
10393
  b && /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
10390
10394
  /* @__PURE__ */ I.jsxs("div", { style: { position: "relative", marginTop: "1rem" }, children: [
@@ -10443,7 +10447,7 @@ const hv = (e) => {
10443
10447
  ] }),
10444
10448
  i && !j && !U ? /* @__PURE__ */ I.jsx(so, { $visible: !0, children: "Required" }) : U ? /* @__PURE__ */ I.jsxs(Xo, { $visible: !0, children: [
10445
10449
  /* @__PURE__ */ I.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "15", viewBox: "0 0 14 15", fill: "none", children: /* @__PURE__ */ I.jsx("path", { d: "M0.331707 7.50001C0.331707 11.1819 3.31647 14.1667 6.99837 14.1667C10.6803 14.1667 13.665 11.1819 13.665 7.50001C13.665 3.81811 10.6803 0.833344 6.99837 0.833344C3.31647 0.833344 0.331707 3.81811 0.331707 7.50001ZM3.8603 5.30475L4.80311 4.36194L10.1364 9.69527L9.19363 10.6381L3.8603 5.30475Z", fill: "#B94E36" }) }),
10446
- W
10450
+ Y
10447
10451
  ] }) : null
10448
10452
  ] }),
10449
10453
  d && /* @__PURE__ */ I.jsxs("div", { style: { display: "flex", alignItems: "flex-start", gap: "0.75rem" }, children: [
@@ -10460,12 +10464,12 @@ const hv = (e) => {
10460
10464
  ] })
10461
10465
  ] });
10462
10466
  }, gI = ({ formComponent: e, formidavimHost: r }) => {
10463
- const i = e.props, { required: s, maxLength: c, propertyId: f, label: d = "Phone Number" } = i || {}, { getFlowValue: v, setFlowAndPatientValue: b, getFlowError: S, setFlowError: E, setDisableSubmitValue: w, setFlowValue: O } = Or(), A = Op(v(f)), [L, P] = Jt(A), [j, Y] = Jt(!1), [W, k] = Jt(null), U = Xs(!1), D = hv(r), z = br(async (Te) => {
10467
+ const i = e.props, { required: s, maxLength: c, propertyId: f, label: d = "Phone Number" } = i || {}, { getFlowValue: v, setFlowAndPatientValue: b, getFlowError: S, setFlowError: E, setDisableSubmitValue: w, setFlowValue: O } = Or(), A = Op(v(f)), [L, P] = Jt(A), [j, W] = Jt(!1), [Y, k] = Jt(null), U = Xs(!1), D = hv(r), z = br(async (Te) => {
10464
10468
  if (!Te || !le(Te) || U.current) {
10465
10469
  k(null);
10466
10470
  return;
10467
10471
  }
10468
- U.current = !0, Y(!0), k(null);
10472
+ U.current = !0, W(!0), k(null);
10469
10473
  try {
10470
10474
  const ve = (Se) => {
10471
10475
  const ae = Se.replace(/\D/g, "");
@@ -10475,7 +10479,7 @@ const hv = (e) => {
10475
10479
  } catch (ve) {
10476
10480
  console.warn("Error checking for duplicate user:", ve), k(null), E(f, null);
10477
10481
  } finally {
10478
- Y(!1), U.current = !1;
10482
+ W(!1), U.current = !1;
10479
10483
  }
10480
10484
  }, [D, w]), J = (Te) => {
10481
10485
  let ve = Te.replace(/\D/g, "");
@@ -10499,8 +10503,8 @@ const hv = (e) => {
10499
10503
  }, [A]), gn(() => {
10500
10504
  s && (!A || A === "") ? (E(f, "Required"), w(!0)) : A && A.length > 0 && !le(A) ? (E(f, "Please enter a valid phone number"), w(!0)) : A && le(A) && (E(f, null), j && w(!0));
10501
10505
  }, [A, s, f, E, w, j]), gn(() => {
10502
- E(f, W);
10503
- }, [W, f, E]), gn(() => {
10506
+ E(f, Y);
10507
+ }, [Y, f, E]), gn(() => {
10504
10508
  const Te = setTimeout(() => {
10505
10509
  A && le(A) ? z(A) : (k(null), w(!1));
10506
10510
  }, 500);
@@ -10509,7 +10513,7 @@ const hv = (e) => {
10509
10513
  const N = (Te) => {
10510
10514
  const { value: ve } = Te.target;
10511
10515
  ve && !le(ve) && (E(f, "Please enter a valid phone number"), O(f, null));
10512
- }, fe = !!S(f) && S(f) !== "Required" || !!W;
10516
+ }, fe = !!S(f) && S(f) !== "Required" || !!Y;
10513
10517
  return /* @__PURE__ */ I.jsxs(Pa, { $visible: !0, $hasError: fe, children: [
10514
10518
  /* @__PURE__ */ I.jsx(_i, { $color: fe ? "danger" : void 0, children: d }),
10515
10519
  /* @__PURE__ */ I.jsx(
@@ -10530,7 +10534,7 @@ const hv = (e) => {
10530
10534
  j && /* @__PURE__ */ I.jsx(so, { $bottom: "-30px", $visible: !0, children: "Checking availability..." }),
10531
10535
  i != null && i.required && !A && !fe ? /* @__PURE__ */ I.jsx(so, { $bottom: "-30px", $visible: !0, children: "Required" }) : fe ? /* @__PURE__ */ I.jsxs(Xo, { $bottom: "-30px", $visible: !0, children: [
10532
10536
  /* @__PURE__ */ I.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "15", viewBox: "0 0 14 15", fill: "none", children: /* @__PURE__ */ I.jsx("path", { d: "M0.331707 7.50001C0.331707 11.1819 3.31647 14.1667 6.99837 14.1667C10.6803 14.1667 13.665 11.1819 13.665 7.50001C13.665 3.81811 10.6803 0.833344 6.99837 0.833344C3.31647 0.833344 0.331707 3.81811 0.331707 7.50001ZM3.8603 5.30475L4.80475L4.80311 4.36194L10.1364 9.69527L9.19363 10.6381L3.8603 5.30475Z", fill: "#B94E36" }) }),
10533
- W || S(f)
10537
+ Y || S(f)
10534
10538
  ] }) : null
10535
10539
  ] });
10536
10540
  }, lv = {
@@ -10797,19 +10801,19 @@ function LI(e) {
10797
10801
  return O3(_0("", null, null, null, [""], e = T3(e), 0, [0], e));
10798
10802
  }
10799
10803
  function _0(e, r, i, s, c, f, d, v, b) {
10800
- for (var S = 0, E = 0, w = d, O = 0, A = 0, L = 0, P = 1, j = 1, Y = 1, W = 0, k = "", U = c, D = f, z = s, J = k; j; )
10801
- switch (L = W, W = ci()) {
10804
+ for (var S = 0, E = 0, w = d, O = 0, A = 0, L = 0, P = 1, j = 1, W = 1, Y = 0, k = "", U = c, D = f, z = s, J = k; j; )
10805
+ switch (L = Y, Y = ci()) {
10802
10806
  // (
10803
10807
  case 40:
10804
10808
  if (L != 108 && Qo(J, w - 1) == 58) {
10805
- DC(J += zn(L0(W), "&", "&\f"), "&\f") != -1 && (Y = -1);
10809
+ DC(J += zn(L0(Y), "&", "&\f"), "&\f") != -1 && (W = -1);
10806
10810
  break;
10807
10811
  }
10808
10812
  // " ' [
10809
10813
  case 34:
10810
10814
  case 39:
10811
10815
  case 91:
10812
- J += L0(W);
10816
+ J += L0(Y);
10813
10817
  break;
10814
10818
  // \t \n \r \s
10815
10819
  case 9:
@@ -10835,26 +10839,26 @@ function _0(e, r, i, s, c, f, d, v, b) {
10835
10839
  break;
10836
10840
  // {
10837
10841
  case 123 * P:
10838
- v[S++] = Jl(J) * Y;
10842
+ v[S++] = Jl(J) * W;
10839
10843
  // } ; \0
10840
10844
  case 125 * P:
10841
10845
  case 59:
10842
10846
  case 0:
10843
- switch (W) {
10847
+ switch (Y) {
10844
10848
  // \0 }
10845
10849
  case 0:
10846
10850
  case 125:
10847
10851
  j = 0;
10848
10852
  // ;
10849
10853
  case 59 + E:
10850
- Y == -1 && (J = zn(J, /\f/g, "")), A > 0 && Jl(J) - w && C0(A > 32 ? $R(J + ";", s, i, w - 1) : $R(zn(J, " ", "") + ";", s, i, w - 2), b);
10854
+ W == -1 && (J = zn(J, /\f/g, "")), A > 0 && Jl(J) - w && C0(A > 32 ? $R(J + ";", s, i, w - 1) : $R(zn(J, " ", "") + ";", s, i, w - 2), b);
10851
10855
  break;
10852
10856
  // @ ;
10853
10857
  case 59:
10854
10858
  J += ";";
10855
10859
  // { rule/at-rule
10856
10860
  default:
10857
- if (C0(z = RR(J, r, i, S, E, c, v, k, U = [], D = [], w), f), W === 123)
10861
+ if (C0(z = RR(J, r, i, S, E, c, v, k, U = [], D = [], w), f), Y === 123)
10858
10862
  if (E === 0)
10859
10863
  _0(J, r, z, z, U, f, w, v, D);
10860
10864
  else
@@ -10870,30 +10874,30 @@ function _0(e, r, i, s, c, f, d, v, b) {
10870
10874
  _0(J, z, z, z, [""], D, 0, v, D);
10871
10875
  }
10872
10876
  }
10873
- S = E = A = 0, P = Y = 1, k = J = "", w = d;
10877
+ S = E = A = 0, P = W = 1, k = J = "", w = d;
10874
10878
  break;
10875
10879
  // :
10876
10880
  case 58:
10877
10881
  w = 1 + Jl(J), A = L;
10878
10882
  default:
10879
10883
  if (P < 1) {
10880
- if (W == 123)
10884
+ if (Y == 123)
10881
10885
  --P;
10882
- else if (W == 125 && P++ == 0 && PI() == 125)
10886
+ else if (Y == 125 && P++ == 0 && PI() == 125)
10883
10887
  continue;
10884
10888
  }
10885
- switch (J += ab(W), W * P) {
10889
+ switch (J += ab(Y), Y * P) {
10886
10890
  // &
10887
10891
  case 38:
10888
- Y = E > 0 ? 1 : (J += "\f", -1);
10892
+ W = E > 0 ? 1 : (J += "\f", -1);
10889
10893
  break;
10890
10894
  // ,
10891
10895
  case 44:
10892
- v[S++] = (Jl(J) - 1) * Y, Y = 1;
10896
+ v[S++] = (Jl(J) - 1) * W, W = 1;
10893
10897
  break;
10894
10898
  // @
10895
10899
  case 64:
10896
- ns() === 45 && (J += L0(ci())), O = ns(), E = w = Jl(k = J += II(I0())), W++;
10900
+ ns() === 45 && (J += L0(ci())), O = ns(), E = w = Jl(k = J += II(I0())), Y++;
10897
10901
  break;
10898
10902
  // -
10899
10903
  case 45:
@@ -10904,8 +10908,8 @@ function _0(e, r, i, s, c, f, d, v, b) {
10904
10908
  }
10905
10909
  function RR(e, r, i, s, c, f, d, v, b, S, E) {
10906
10910
  for (var w = c - 1, O = c === 0 ? f : [""], A = aw(O), L = 0, P = 0, j = 0; L < s; ++L)
10907
- for (var Y = 0, W = sv(e, w + 1, w = TI(P = d[L])), k = e; Y < A; ++Y)
10908
- (k = w3(P > 0 ? O[Y] + " " + W : zn(W, /&\f/g, O[Y]))) && (b[j++] = k);
10911
+ for (var W = 0, Y = sv(e, w + 1, w = TI(P = d[L])), k = e; W < A; ++W)
10912
+ (k = w3(P > 0 ? O[W] + " " + Y : zn(Y, /&\f/g, O[W]))) && (b[j++] = k);
10909
10913
  return lb(e, r, i, c === 0 ? rw : v, b, S, E);
10910
10914
  }
10911
10915
  function _I(e, r, i) {
@@ -11190,8 +11194,8 @@ var WI = function(r, i, s, c) {
11190
11194
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
11191
11195
  document.querySelectorAll('style[data-emotion^="' + i + ' "]'),
11192
11196
  function(P) {
11193
- for (var j = P.getAttribute("data-emotion").split(" "), Y = 1; Y < j.length; Y++)
11194
- f[j[Y]] = !0;
11197
+ for (var j = P.getAttribute("data-emotion").split(" "), W = 1; W < j.length; W++)
11198
+ f[j[W]] = !0;
11195
11199
  v.push(P);
11196
11200
  }
11197
11201
  );
@@ -11202,8 +11206,8 @@ var WI = function(r, i, s, c) {
11202
11206
  })], O = VI(S.concat(c, w)), A = function(j) {
11203
11207
  return Cp(LI(j), O);
11204
11208
  };
11205
- b = function(j, Y, W, k) {
11206
- E = W, A(j ? j + "{" + Y.styles + "}" : Y.styles), k && (L.inserted[Y.name] = !0);
11209
+ b = function(j, W, Y, k) {
11210
+ E = Y, A(j ? j + "{" + W.styles + "}" : W.styles), k && (L.inserted[W.name] = !0);
11207
11211
  };
11208
11212
  }
11209
11213
  var L = {
@@ -11235,7 +11239,7 @@ var kR;
11235
11239
  function QI() {
11236
11240
  if (kR) return qn;
11237
11241
  kR = 1;
11238
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, f = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, v = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, S = e ? Symbol.for("react.concurrent_mode") : 60111, E = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, L = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, j = e ? Symbol.for("react.fundamental") : 60117, Y = e ? Symbol.for("react.responder") : 60118, W = e ? Symbol.for("react.scope") : 60119;
11242
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, f = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, v = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, S = e ? Symbol.for("react.concurrent_mode") : 60111, E = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, L = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, j = e ? Symbol.for("react.fundamental") : 60117, W = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
11239
11243
  function k(D) {
11240
11244
  if (typeof D == "object" && D !== null) {
11241
11245
  var z = D.$$typeof;
@@ -11294,7 +11298,7 @@ function QI() {
11294
11298
  }, qn.isSuspense = function(D) {
11295
11299
  return k(D) === w;
11296
11300
  }, qn.isValidElementType = function(D) {
11297
- return typeof D == "string" || typeof D == "function" || D === s || D === S || D === f || D === c || D === w || D === O || typeof D == "object" && D !== null && (D.$$typeof === L || D.$$typeof === A || D.$$typeof === d || D.$$typeof === v || D.$$typeof === E || D.$$typeof === j || D.$$typeof === Y || D.$$typeof === W || D.$$typeof === P);
11301
+ return typeof D == "string" || typeof D == "function" || D === s || D === S || D === f || D === c || D === w || D === O || typeof D == "object" && D !== null && (D.$$typeof === L || D.$$typeof === A || D.$$typeof === d || D.$$typeof === v || D.$$typeof === E || D.$$typeof === j || D.$$typeof === W || D.$$typeof === Y || D.$$typeof === P);
11298
11302
  }, qn.typeOf = k, qn;
11299
11303
  }
11300
11304
  var Qn = {};
@@ -11309,10 +11313,10 @@ var Qn = {};
11309
11313
  var PR;
11310
11314
  function XI() {
11311
11315
  return PR || (PR = 1, process.env.NODE_ENV !== "production" && function() {
11312
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, f = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, v = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, S = e ? Symbol.for("react.concurrent_mode") : 60111, E = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, L = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, j = e ? Symbol.for("react.fundamental") : 60117, Y = e ? Symbol.for("react.responder") : 60118, W = e ? Symbol.for("react.scope") : 60119;
11316
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, f = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, v = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, S = e ? Symbol.for("react.concurrent_mode") : 60111, E = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, L = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, j = e ? Symbol.for("react.fundamental") : 60117, W = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
11313
11317
  function k(te) {
11314
11318
  return typeof te == "string" || typeof te == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
11315
- te === s || te === S || te === f || te === c || te === w || te === O || typeof te == "object" && te !== null && (te.$$typeof === L || te.$$typeof === A || te.$$typeof === d || te.$$typeof === v || te.$$typeof === E || te.$$typeof === j || te.$$typeof === Y || te.$$typeof === W || te.$$typeof === P);
11319
+ te === s || te === S || te === f || te === c || te === w || te === O || typeof te == "object" && te !== null && (te.$$typeof === L || te.$$typeof === A || te.$$typeof === d || te.$$typeof === v || te.$$typeof === E || te.$$typeof === j || te.$$typeof === W || te.$$typeof === Y || te.$$typeof === P);
11316
11320
  }
11317
11321
  function U(te) {
11318
11322
  if (typeof te == "object" && te !== null) {
@@ -11439,13 +11443,13 @@ function ZI() {
11439
11443
  function A(L, P, j) {
11440
11444
  if (typeof P != "string") {
11441
11445
  if (O) {
11442
- var Y = w(P);
11443
- Y && Y !== O && A(L, Y, j);
11446
+ var W = w(P);
11447
+ W && W !== O && A(L, W, j);
11444
11448
  }
11445
- var W = b(P);
11446
- S && (W = W.concat(S(P)));
11447
- for (var k = d(L), U = d(P), D = 0; D < W.length; ++D) {
11448
- var z = W[D];
11449
+ var Y = b(P);
11450
+ S && (Y = Y.concat(S(P)));
11451
+ for (var k = d(L), U = d(P), D = 0; D < Y.length; ++D) {
11452
+ var z = Y[D];
11449
11453
  if (!i[z] && !(j && j[z]) && !(U && U[z]) && !(k && k[z])) {
11450
11454
  var J = E(P, z);
11451
11455
  try {
@@ -11803,7 +11807,7 @@ var cL = /* @__PURE__ */ sw(function(e, r) {
11803
11807
  for (var A = E.length, L = 1; L < A; L++)
11804
11808
  w.push(E[L], O[L]);
11805
11809
  }
11806
- var P = sw(function(j, Y, W) {
11810
+ var P = sw(function(j, W, Y) {
11807
11811
  var k = S && j.as || c, U = "", D = [], z = j;
11808
11812
  if (j.theme == null) {
11809
11813
  z = {};
@@ -11811,14 +11815,14 @@ var cL = /* @__PURE__ */ sw(function(e, r) {
11811
11815
  z[J] = j[J];
11812
11816
  z.theme = Oe.useContext(ub);
11813
11817
  }
11814
- typeof j.className == "string" ? U = A3(Y.registered, D, j.className) : j.className != null && (U = j.className + " ");
11815
- var le = sb(w.concat(D), Y.registered, z);
11816
- U += Y.key + "-" + le.name, d !== void 0 && (U += " " + d);
11818
+ typeof j.className == "string" ? U = A3(W.registered, D, j.className) : j.className != null && (U = j.className + " ");
11819
+ var le = sb(w.concat(D), W.registered, z);
11820
+ U += W.key + "-" + le.name, d !== void 0 && (U += " " + d);
11817
11821
  var he = S && v === void 0 ? VR(k) : b, N = {};
11818
11822
  for (var ie in j)
11819
11823
  S && ie === "as" || he(ie) && (N[ie] = j[ie]);
11820
- return N.className = U, W && (N.ref = W), /* @__PURE__ */ Oe.createElement(Oe.Fragment, null, /* @__PURE__ */ Oe.createElement(mL, {
11821
- cache: Y,
11824
+ return N.className = U, Y && (N.ref = Y), /* @__PURE__ */ Oe.createElement(Oe.Fragment, null, /* @__PURE__ */ Oe.createElement(mL, {
11825
+ cache: W,
11822
11826
  serialized: le,
11823
11827
  isStringTag: typeof k == "string"
11824
11828
  }), /* @__PURE__ */ Oe.createElement(k, N));
@@ -11827,11 +11831,11 @@ var cL = /* @__PURE__ */ sw(function(e, r) {
11827
11831
  value: function() {
11828
11832
  return "." + d;
11829
11833
  }
11830
- }), P.withComponent = function(j, Y) {
11831
- var W = e(j, NC({}, i, Y, {
11832
- shouldForwardProp: jR(P, Y, !0)
11834
+ }), P.withComponent = function(j, W) {
11835
+ var Y = e(j, NC({}, i, W, {
11836
+ shouldForwardProp: jR(P, W, !0)
11833
11837
  }));
11834
- return W.apply(void 0, w);
11838
+ return Y.apply(void 0, w);
11835
11839
  }, P;
11836
11840
  };
11837
11841
  }, yL = [
@@ -11987,7 +11991,7 @@ var UR;
11987
11991
  function gL() {
11988
11992
  if (UR) return Xn;
11989
11993
  UR = 1;
11990
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, f = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, v = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, S = e ? Symbol.for("react.concurrent_mode") : 60111, E = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, L = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, j = e ? Symbol.for("react.fundamental") : 60117, Y = e ? Symbol.for("react.responder") : 60118, W = e ? Symbol.for("react.scope") : 60119;
11994
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, f = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, v = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, S = e ? Symbol.for("react.concurrent_mode") : 60111, E = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, L = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, j = e ? Symbol.for("react.fundamental") : 60117, W = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
11991
11995
  function k(D) {
11992
11996
  if (typeof D == "object" && D !== null) {
11993
11997
  var z = D.$$typeof;
@@ -12046,7 +12050,7 @@ function gL() {
12046
12050
  }, Xn.isSuspense = function(D) {
12047
12051
  return k(D) === w;
12048
12052
  }, Xn.isValidElementType = function(D) {
12049
- return typeof D == "string" || typeof D == "function" || D === s || D === S || D === f || D === c || D === w || D === O || typeof D == "object" && D !== null && (D.$$typeof === L || D.$$typeof === A || D.$$typeof === d || D.$$typeof === v || D.$$typeof === E || D.$$typeof === j || D.$$typeof === Y || D.$$typeof === W || D.$$typeof === P);
12053
+ return typeof D == "string" || typeof D == "function" || D === s || D === S || D === f || D === c || D === w || D === O || typeof D == "object" && D !== null && (D.$$typeof === L || D.$$typeof === A || D.$$typeof === d || D.$$typeof === v || D.$$typeof === E || D.$$typeof === j || D.$$typeof === W || D.$$typeof === Y || D.$$typeof === P);
12050
12054
  }, Xn.typeOf = k, Xn;
12051
12055
  }
12052
12056
  var Kn = {};
@@ -12061,10 +12065,10 @@ var Kn = {};
12061
12065
  var BR;
12062
12066
  function bL() {
12063
12067
  return BR || (BR = 1, process.env.NODE_ENV !== "production" && function() {
12064
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, f = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, v = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, S = e ? Symbol.for("react.concurrent_mode") : 60111, E = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, L = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, j = e ? Symbol.for("react.fundamental") : 60117, Y = e ? Symbol.for("react.responder") : 60118, W = e ? Symbol.for("react.scope") : 60119;
12068
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, f = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, v = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, S = e ? Symbol.for("react.concurrent_mode") : 60111, E = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, O = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, L = e ? Symbol.for("react.lazy") : 60116, P = e ? Symbol.for("react.block") : 60121, j = e ? Symbol.for("react.fundamental") : 60117, W = e ? Symbol.for("react.responder") : 60118, Y = e ? Symbol.for("react.scope") : 60119;
12065
12069
  function k(te) {
12066
12070
  return typeof te == "string" || typeof te == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
12067
- te === s || te === S || te === f || te === c || te === w || te === O || typeof te == "object" && te !== null && (te.$$typeof === L || te.$$typeof === A || te.$$typeof === d || te.$$typeof === v || te.$$typeof === E || te.$$typeof === j || te.$$typeof === Y || te.$$typeof === W || te.$$typeof === P);
12071
+ te === s || te === S || te === f || te === c || te === w || te === O || typeof te == "object" && te !== null && (te.$$typeof === L || te.$$typeof === A || te.$$typeof === d || te.$$typeof === v || te.$$typeof === E || te.$$typeof === j || te.$$typeof === W || te.$$typeof === Y || te.$$typeof === P);
12068
12072
  }
12069
12073
  function U(te) {
12070
12074
  if (typeof te == "object" && te !== null) {
@@ -12281,15 +12285,15 @@ function CL() {
12281
12285
  return ue;
12282
12286
  }
12283
12287
  var O = "<<anonymous>>", A = {
12284
- array: Y("array"),
12285
- bigint: Y("bigint"),
12286
- bool: Y("boolean"),
12287
- func: Y("function"),
12288
- number: Y("number"),
12289
- object: Y("object"),
12290
- string: Y("string"),
12291
- symbol: Y("symbol"),
12292
- any: W(),
12288
+ array: W("array"),
12289
+ bigint: W("bigint"),
12290
+ bool: W("boolean"),
12291
+ func: W("function"),
12292
+ number: W("number"),
12293
+ object: W("object"),
12294
+ string: W("string"),
12295
+ symbol: W("symbol"),
12296
+ any: Y(),
12293
12297
  arrayOf: k,
12294
12298
  element: U(),
12295
12299
  elementType: D(),
@@ -12331,7 +12335,7 @@ function CL() {
12331
12335
  var Ce = G.bind(null, !1);
12332
12336
  return Ce.isRequired = G.bind(null, !0), Ce;
12333
12337
  }
12334
- function Y(K) {
12338
+ function W(K) {
12335
12339
  function ue(V, G, Ce, Ve, Ye, ze) {
12336
12340
  var Q = V[G], ne = Re(Q);
12337
12341
  if (ne !== K) {
@@ -12345,7 +12349,7 @@ function CL() {
12345
12349
  }
12346
12350
  return j(ue);
12347
12351
  }
12348
- function W() {
12352
+ function Y() {
12349
12353
  return j(d);
12350
12354
  }
12351
12355
  function k(K) {
@@ -13997,11 +14001,11 @@ function __(e = {}) {
13997
14001
  // TODO v6: remove `Root` in the next major release
13998
14002
  // For more details: https://github.com/mui/material-ui/pull/37908
13999
14003
  E && E !== "Root" && E !== "root" || !1
14000
- ), Y = O || !1;
14001
- let W = hC;
14002
- E === "Root" || E === "root" ? W = s : E ? W = c : U_(v) && (W = void 0);
14004
+ ), W = O || !1;
14005
+ let Y = hC;
14006
+ E === "Root" || E === "root" ? Y = s : E ? Y = c : U_(v) && (Y = void 0);
14003
14007
  const k = _3(v, {
14004
- shouldForwardProp: W,
14008
+ shouldForwardProp: Y,
14005
14009
  label: V_(S, E),
14006
14010
  ...L
14007
14011
  }), U = (z) => {
@@ -14033,7 +14037,7 @@ function __(e = {}) {
14033
14037
  var Re, be;
14034
14038
  const Te = fe.theme, ve = (be = (Re = Te == null ? void 0 : Te.components) == null ? void 0 : Re[S]) == null ? void 0 : be.variants;
14035
14039
  return ve ? Y3(fe, ve, [], fe.theme.modularCssLayers ? "theme" : void 0) : null;
14036
- }), Y || he.push(gd), Array.isArray(le[0])) {
14040
+ }), W || he.push(gd), Array.isArray(le[0])) {
14037
14041
  const xe = le.shift(), fe = new Array(J.length).fill(""), Te = new Array(he.length).fill("");
14038
14042
  let ve;
14039
14043
  ve = [...fe, ...xe, ...Te], ve.raw = [...fe, ...xe.raw, ...Te], J.unshift(ve);
@@ -14632,8 +14636,8 @@ function gw(e) {
14632
14636
  function w(P) {
14633
14637
  const j = l$(P, f$.text.primary) >= i ? f$.text.primary : i4.text.primary;
14634
14638
  if (process.env.NODE_ENV !== "production") {
14635
- const Y = l$(P, j);
14636
- Y < 3 && console.error([`MUI: The contrast ratio of ${Y}:1 for ${j} on ${P}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
14639
+ const W = l$(P, j);
14640
+ W < 3 && console.error([`MUI: The contrast ratio of ${W}:1 for ${j} on ${P}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
14637
14641
  `));
14638
14642
  }
14639
14643
  return j;
@@ -14641,15 +14645,15 @@ function gw(e) {
14641
14645
  const O = ({
14642
14646
  color: P,
14643
14647
  name: j,
14644
- mainShade: Y = 500,
14645
- lightShade: W = 300,
14648
+ mainShade: W = 500,
14649
+ lightShade: Y = 300,
14646
14650
  darkShade: k = 700
14647
14651
  }) => {
14648
14652
  if (P = {
14649
14653
  ...P
14650
- }, !P.main && P[Y] && (P.main = P[Y]), !P.hasOwnProperty("main"))
14654
+ }, !P.main && P[W] && (P.main = P[W]), !P.hasOwnProperty("main"))
14651
14655
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${j ? ` (${j})` : ""} provided to augmentColor(color) is invalid.
14652
- The color object needs to have a \`main\` property or a \`${Y}\` property.` : rs(11, j ? ` (${j})` : "", Y));
14656
+ The color object needs to have a \`main\` property or a \`${W}\` property.` : rs(11, j ? ` (${j})` : "", W));
14653
14657
  if (typeof P.main != "string")
14654
14658
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${j ? ` (${j})` : ""} provided to augmentColor(color) is invalid.
14655
14659
  \`color.main\` should be a string, but \`${JSON.stringify(P.main)}\` was provided instead.
@@ -14665,7 +14669,7 @@ const theme1 = createTheme({ palette: {
14665
14669
  const theme2 = createTheme({ palette: {
14666
14670
  primary: { main: green[500] },
14667
14671
  } });` : rs(12, j ? ` (${j})` : "", JSON.stringify(P.main)));
14668
- return p$(P, "light", W, s), p$(P, "dark", k, s), P.contrastText || (P.contrastText = w(P.main)), P;
14672
+ return p$(P, "light", Y, s), p$(P, "dark", k, s), P.contrastText || (P.contrastText = w(P.main)), P;
14669
14673
  };
14670
14674
  let A;
14671
14675
  return r === "light" ? A = Z3() : r === "dark" && (A = J3()), process.env.NODE_ENV !== "production" && (A || console.error(`MUI: The palette mode \`${r}\` is not supported.`)), ba({
@@ -14774,16 +14778,16 @@ function v4(e, r) {
14774
14778
  ...w
14775
14779
  } = typeof r == "function" ? r(e) : r;
14776
14780
  process.env.NODE_ENV !== "production" && (typeof s != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof b != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
14777
- const O = s / 14, A = E || ((j) => `${j / b * O}rem`), L = (j, Y, W, k, U) => ({
14781
+ const O = s / 14, A = E || ((j) => `${j / b * O}rem`), L = (j, W, Y, k, U) => ({
14778
14782
  fontFamily: i,
14779
14783
  fontWeight: j,
14780
- fontSize: A(Y),
14784
+ fontSize: A(W),
14781
14785
  // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
14782
- lineHeight: W,
14786
+ lineHeight: Y,
14783
14787
  // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
14784
14788
  // across font-families can cause issues with the kerning.
14785
14789
  ...i === m$ ? {
14786
- letterSpacing: `${m4(k / Y)}em`
14790
+ letterSpacing: `${m4(k / W)}em`
14787
14791
  } : {},
14788
14792
  ...U,
14789
14793
  ...S
@@ -14954,20 +14958,20 @@ function jC(e = {}, ...r) {
14954
14958
  });
14955
14959
  if (O = ba(O, S), O = r.reduce((A, L) => ba(A, L), O), process.env.NODE_ENV !== "production") {
14956
14960
  const A = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], L = (P, j) => {
14957
- let Y;
14958
- for (Y in P) {
14959
- const W = P[Y];
14960
- if (A.includes(Y) && Object.keys(W).length > 0) {
14961
+ let W;
14962
+ for (W in P) {
14963
+ const Y = P[W];
14964
+ if (A.includes(W) && Object.keys(Y).length > 0) {
14961
14965
  if (process.env.NODE_ENV !== "production") {
14962
- const k = Jr("", Y);
14963
- console.error([`MUI: The \`${j}\` component increases the CSS specificity of the \`${Y}\` internal state.`, "You can not override it like this: ", JSON.stringify(P, null, 2), "", `Instead, you need to use the '&.${k}' syntax:`, JSON.stringify({
14966
+ const k = Jr("", W);
14967
+ console.error([`MUI: The \`${j}\` component increases the CSS specificity of the \`${W}\` internal state.`, "You can not override it like this: ", JSON.stringify(P, null, 2), "", `Instead, you need to use the '&.${k}' syntax:`, JSON.stringify({
14964
14968
  root: {
14965
- [`&.${k}`]: W
14969
+ [`&.${k}`]: Y
14966
14970
  }
14967
14971
  }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
14968
14972
  `));
14969
14973
  }
14970
- P[Y] = {};
14974
+ P[W] = {};
14971
14975
  }
14972
14976
  }
14973
14977
  };
@@ -15145,14 +15149,14 @@ function I4(e = {}, ...r) {
15145
15149
  light: L,
15146
15150
  dark: P,
15147
15151
  ...j
15148
- } = i, Y = {
15152
+ } = i, W = {
15149
15153
  ...j
15150
15154
  };
15151
- let W = A;
15152
- if ((w === "dark" && !("dark" in i) || w === "light" && !("light" in i)) && (W = !0), !W)
15155
+ let Y = A;
15156
+ if ((w === "dark" && !("dark" in i) || w === "light" && !("light" in i)) && (Y = !0), !Y)
15153
15157
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${w}\` option is either missing or invalid.` : rs(21, w));
15154
- const k = yC(Y, W, S, w);
15155
- L && !Y.light && yC(Y, L, void 0, "light"), P && !Y.dark && yC(Y, P, void 0, "dark");
15158
+ const k = yC(W, Y, S, w);
15159
+ L && !W.light && yC(W, L, void 0, "light"), P && !W.dark && yC(W, P, void 0, "dark");
15156
15160
  let U = {
15157
15161
  defaultColorScheme: w,
15158
15162
  ...k,
@@ -15160,7 +15164,7 @@ function I4(e = {}, ...r) {
15160
15164
  colorSchemeSelector: v,
15161
15165
  rootSelector: b,
15162
15166
  getCssVar: O,
15163
- colorSchemes: Y,
15167
+ colorSchemes: W,
15164
15168
  font: {
15165
15169
  ...p4(k.typography),
15166
15170
  ...k.font
@@ -15400,13 +15404,13 @@ const V4 = (e) => {
15400
15404
  },
15401
15405
  // TODO v5 deprecate color prop, v6 remove for sx
15402
15406
  ...Object.entries((e.vars ?? e).palette).filter(([, P]) => P && P.main).map(([P]) => {
15403
- var j, Y;
15407
+ var j, W;
15404
15408
  return {
15405
15409
  props: {
15406
15410
  color: P
15407
15411
  },
15408
15412
  style: {
15409
- color: (Y = (j = (e.vars ?? e).palette) == null ? void 0 : j[P]) == null ? void 0 : Y.main
15413
+ color: (W = (j = (e.vars ?? e).palette) == null ? void 0 : j[P]) == null ? void 0 : W.main
15410
15414
  }
15411
15415
  };
15412
15416
  }),
@@ -15462,10 +15466,10 @@ const V4 = (e) => {
15462
15466
  hasSvgAsChild: L
15463
15467
  }, j = {};
15464
15468
  E || (j.viewBox = O);
15465
- const Y = V4(P);
15469
+ const W = V4(P);
15466
15470
  return /* @__PURE__ */ I.jsxs(j4, {
15467
15471
  as: v,
15468
- className: xr(Y.root, f),
15472
+ className: xr(W.root, f),
15469
15473
  focusable: "false",
15470
15474
  color: S,
15471
15475
  "aria-hidden": w ? void 0 : !0,
@@ -15778,7 +15782,7 @@ function W4() {
15778
15782
  return d.now() - v;
15779
15783
  };
15780
15784
  }
15781
- var b = [], S = [], E = 1, w = null, O = 3, A = !1, L = !1, P = !1, j = typeof setTimeout == "function" ? setTimeout : null, Y = typeof clearTimeout == "function" ? clearTimeout : null, W = typeof setImmediate < "u" ? setImmediate : null;
15785
+ var b = [], S = [], E = 1, w = null, O = 3, A = !1, L = !1, P = !1, j = typeof setTimeout == "function" ? setTimeout : null, W = typeof clearTimeout == "function" ? clearTimeout : null, Y = typeof setImmediate < "u" ? setImmediate : null;
15782
15786
  typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
15783
15787
  function k(Se) {
15784
15788
  for (var ae = i(S); ae !== null; ) {
@@ -15796,7 +15800,7 @@ function W4() {
15796
15800
  }
15797
15801
  }
15798
15802
  function D(Se, ae) {
15799
- L = !1, P && (P = !1, Y(le), le = -1), A = !0;
15803
+ L = !1, P && (P = !1, W(le), le = -1), A = !0;
15800
15804
  var K = O;
15801
15805
  try {
15802
15806
  for (k(ae), w = i(b); w !== null && (!(w.expirationTime > ae) || Se && !ie()); ) {
@@ -15835,8 +15839,8 @@ function W4() {
15835
15839
  } else z = !1;
15836
15840
  }
15837
15841
  var fe;
15838
- if (typeof W == "function") fe = function() {
15839
- W(xe);
15842
+ if (typeof Y == "function") fe = function() {
15843
+ Y(xe);
15840
15844
  };
15841
15845
  else if (typeof MessageChannel < "u") {
15842
15846
  var Te = new MessageChannel(), ve = Te.port2;
@@ -15919,7 +15923,7 @@ function W4() {
15919
15923
  default:
15920
15924
  V = 5e3;
15921
15925
  }
15922
- return V = K + V, Se = { id: E++, callback: ae, priorityLevel: Se, startTime: K, expirationTime: V, sortIndex: -1 }, K > ue ? (Se.sortIndex = K, r(S, Se), i(b) === null && Se === i(S) && (P ? (Y(le), le = -1) : P = !0, be(U, K - ue))) : (Se.sortIndex = V, r(b, Se), L || A || (L = !0, Re(D))), Se;
15926
+ return V = K + V, Se = { id: E++, callback: ae, priorityLevel: Se, startTime: K, expirationTime: V, sortIndex: -1 }, K > ue ? (Se.sortIndex = K, r(S, Se), i(b) === null && Se === i(S) && (P ? (W(le), le = -1) : P = !0, be(U, K - ue))) : (Se.sortIndex = V, r(b, Se), L || A || (L = !0, Re(D))), Se;
15923
15927
  }, e.unstable_shouldYield = ie, e.unstable_wrapCallback = function(Se) {
15924
15928
  var ae = O;
15925
15929
  return function() {
@@ -15997,9 +16001,9 @@ function Y4() {
15997
16001
  return j.now();
15998
16002
  };
15999
16003
  } else {
16000
- var Y = Date, W = Y.now();
16004
+ var W = Date, Y = W.now();
16001
16005
  e.unstable_now = function() {
16002
- return Y.now() - W;
16006
+ return W.now() - Y;
16003
16007
  };
16004
16008
  }
16005
16009
  var k = 1073741823, U = -1, D = 250, z = 5e3, J = 1e4, le = k, he = [], N = [], ie = 1, xe = null, fe = w, Te = !1, ve = !1, Re = !1, be = typeof setTimeout == "function" ? setTimeout : null, Se = typeof clearTimeout == "function" ? clearTimeout : null, ae = typeof setImmediate < "u" ? setImmediate : null;
@@ -16292,21 +16296,21 @@ function q4() {
16292
16296
  }), ["rowSpan", "start"].forEach(function(o) {
16293
16297
  j[o] = new P(o, 5, !1, o.toLowerCase(), null, !1, !1);
16294
16298
  });
16295
- var Y = /[\-:]([a-z])/g;
16296
- function W(o) {
16299
+ var W = /[\-:]([a-z])/g;
16300
+ function Y(o) {
16297
16301
  return o[1].toUpperCase();
16298
16302
  }
16299
16303
  "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(o) {
16300
16304
  var a = o.replace(
16301
- Y,
16302
- W
16305
+ W,
16306
+ Y
16303
16307
  );
16304
16308
  j[a] = new P(a, 1, !1, o, null, !1, !1);
16305
16309
  }), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o) {
16306
- var a = o.replace(Y, W);
16310
+ var a = o.replace(W, Y);
16307
16311
  j[a] = new P(a, 1, !1, o, "http://www.w3.org/1999/xlink", !1, !1);
16308
16312
  }), ["xml:base", "xml:lang", "xml:space"].forEach(function(o) {
16309
- var a = o.replace(Y, W);
16313
+ var a = o.replace(W, Y);
16310
16314
  j[a] = new P(a, 1, !1, o, "http://www.w3.org/XML/1998/namespace", !1, !1);
16311
16315
  }), ["tabIndex", "crossOrigin"].forEach(function(o) {
16312
16316
  j[o] = new P(o, 1, !1, o.toLowerCase(), null, !1, !1);
@@ -21424,7 +21428,7 @@ function Q4() {
21424
21428
  g.unshift("Warning: " + n), Function.prototype.apply.call(console[t], console, g);
21425
21429
  }
21426
21430
  }
21427
- var b = 0, S = 1, E = 2, w = 3, O = 4, A = 5, L = 6, P = 7, j = 8, Y = 9, W = 10, k = 11, U = 12, D = 13, z = 14, J = 15, le = 16, he = 17, N = 18, ie = 19, xe = 21, fe = 22, Te = 23, ve = 24, Re = 25, be = !0, Se = !1, ae = !1, K = !1, ue = !1, V = !0, G = !0, Ce = !0, Ve = !0, Ye = /* @__PURE__ */ new Set(), ze = {}, Q = {};
21431
+ var b = 0, S = 1, E = 2, w = 3, O = 4, A = 5, L = 6, P = 7, j = 8, W = 9, Y = 10, k = 11, U = 12, D = 13, z = 14, J = 15, le = 16, he = 17, N = 18, ie = 19, xe = 21, fe = 22, Te = 23, ve = 24, Re = 25, be = !0, Se = !1, ae = !1, K = !1, ue = !1, V = !0, G = !0, Ce = !0, Ve = !0, Ye = /* @__PURE__ */ new Set(), ze = {}, Q = {};
21428
21432
  function ne(t, n) {
21429
21433
  Z(t, n), Z(t + "Capture", n);
21430
21434
  }
@@ -22264,10 +22268,10 @@ Error generating stack: ` + u.message + `
22264
22268
  switch (n) {
22265
22269
  case ve:
22266
22270
  return "Cache";
22267
- case Y:
22271
+ case W:
22268
22272
  var u = l;
22269
22273
  return Ip(u) + ".Consumer";
22270
- case W:
22274
+ case Y:
22271
22275
  var h = l;
22272
22276
  return Ip(h._context) + ".Provider";
22273
22277
  case N:
@@ -28364,7 +28368,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
28364
28368
  }
28365
28369
  C = C.next;
28366
28370
  }
28367
- } else if (u.tag === W)
28371
+ } else if (u.tag === Y)
28368
28372
  h = u.type === t.type ? null : u.child;
28369
28373
  else if (u.tag === N) {
28370
28374
  var De = u.return;
@@ -31386,7 +31390,7 @@ Check the render method of \`` + u + "`.");
31386
31390
  case O:
31387
31391
  ax(n, n.stateNode.containerInfo);
31388
31392
  break;
31389
- case W: {
31393
+ case Y: {
31390
31394
  var h = n.memoizedProps.value, g = n.type._context;
31391
31395
  TE(n, g, h);
31392
31396
  break;
@@ -31489,9 +31493,9 @@ Check the render method of \`` + u + "`.");
31489
31493
  return YN(t, n, l);
31490
31494
  case U:
31491
31495
  return qN(t, n, l);
31492
- case W:
31493
- return v2(t, n, l);
31494
31496
  case Y:
31497
+ return v2(t, n, l);
31498
+ case W:
31495
31499
  return y2(t, n, l);
31496
31500
  case z: {
31497
31501
  var It = n.type, Tn = n.pendingProps, xn = sl(It, Tn);
@@ -31638,7 +31642,7 @@ Check the render method of \`` + u + "`.");
31638
31642
  case P:
31639
31643
  case j:
31640
31644
  case U:
31641
- case Y:
31645
+ case W:
31642
31646
  case z:
31643
31647
  return Bo(n), null;
31644
31648
  case S: {
@@ -31722,7 +31726,7 @@ Check the render method of \`` + u + "`.");
31722
31726
  }
31723
31727
  case O:
31724
31728
  return Kf(n), fS(t, n), t === null && _P(n.stateNode.containerInfo), Bo(n), null;
31725
- case W:
31729
+ case Y:
31726
31730
  var St = n.type._context;
31727
31731
  return Z1(St, n), Bo(n), null;
31728
31732
  case he: {
@@ -31830,7 +31834,7 @@ Check the render method of \`` + u + "`.");
31830
31834
  return Jf(n), null;
31831
31835
  case O:
31832
31836
  return Kf(n), null;
31833
- case W:
31837
+ case Y:
31834
31838
  var M = n.type._context;
31835
31839
  return Z1(M, n), null;
31836
31840
  case fe:
@@ -31866,7 +31870,7 @@ Check the render method of \`` + u + "`.");
31866
31870
  case ie:
31867
31871
  Jf(n);
31868
31872
  break;
31869
- case W:
31873
+ case Y:
31870
31874
  var h = n.type._context;
31871
31875
  Z1(h, n);
31872
31876
  break;
@@ -34154,10 +34158,10 @@ This ensures that you're testing the behavior the user would see in the browser.
34154
34158
  if (typeof t == "object" && t !== null)
34155
34159
  switch (t.$$typeof) {
34156
34160
  case ln:
34157
- C = W;
34161
+ C = Y;
34158
34162
  break e;
34159
34163
  case oe:
34160
- C = Y;
34164
+ C = W;
34161
34165
  break e;
34162
34166
  case We:
34163
34167
  C = k, R = LS(R);
@@ -35525,13 +35529,13 @@ function ga(e, r) {
35525
35529
  component: P,
35526
35530
  ...j
35527
35531
  },
35528
- internalRef: Y
35532
+ internalRef: W
35529
35533
  } = bA({
35530
35534
  className: i,
35531
35535
  ...b,
35532
35536
  externalForwardedProps: e === "root" ? O : void 0,
35533
35537
  externalSlotProps: L
35534
- }), W = Vi(Y, L == null ? void 0 : L.ref, r.ref), k = e === "root" ? P || S : P, U = vA(A, {
35538
+ }), Y = Vi(W, L == null ? void 0 : L.ref, r.ref), k = e === "root" ? P || S : P, U = vA(A, {
35535
35539
  ...e === "root" && !S && !E[e] && d,
35536
35540
  ...e !== "root" && !E[e] && d,
35537
35541
  ...j,
@@ -35541,7 +35545,7 @@ function ga(e, r) {
35541
35545
  ...k && v && {
35542
35546
  component: k
35543
35547
  },
35544
- ref: W
35548
+ ref: Y
35545
35549
  }, c);
35546
35550
  return [A, U];
35547
35551
  }
@@ -35707,11 +35711,11 @@ const pF = {
35707
35711
  paragraph: O,
35708
35712
  variant: A,
35709
35713
  variantMapping: L
35710
- }, Y = S || (O ? "p" : L[A] || k$[A]) || "span", W = mF(j);
35714
+ }, W = S || (O ? "p" : L[A] || k$[A]) || "span", Y = mF(j);
35711
35715
  return /* @__PURE__ */ I.jsx(vF, {
35712
- as: Y,
35716
+ as: W,
35713
35717
  ref: i,
35714
- className: xr(W.root, b),
35718
+ className: xr(Y.root, b),
35715
35719
  ...P,
35716
35720
  ownerState: j,
35717
35721
  style: {
@@ -35962,7 +35966,7 @@ const xA = /* @__PURE__ */ Oe.forwardRef(function(r, i) {
35962
35966
  return;
35963
35967
  const D = U.outerHeightStyle;
35964
35968
  O.current !== D && (O.current = D, k.style.height = `${D}px`), k.style.overflow = U.overflowing ? "hidden" : "";
35965
- }, [L]), Y = Oe.useRef(-1);
35969
+ }, [L]), W = Oe.useRef(-1);
35966
35970
  bd(() => {
35967
35971
  const k = iA(j), U = E == null ? void 0 : E.current;
35968
35972
  if (!U)
@@ -35971,16 +35975,16 @@ const xA = /* @__PURE__ */ Oe.forwardRef(function(r, i) {
35971
35975
  D.addEventListener("resize", k);
35972
35976
  let z;
35973
35977
  return typeof ResizeObserver < "u" && (z = new ResizeObserver(() => {
35974
- P() && (z.unobserve(U), cancelAnimationFrame(Y.current), j(), Y.current = requestAnimationFrame(() => {
35978
+ P() && (z.unobserve(U), cancelAnimationFrame(W.current), j(), W.current = requestAnimationFrame(() => {
35975
35979
  z.observe(U);
35976
35980
  }));
35977
35981
  }), z.observe(U)), () => {
35978
- k.clear(), cancelAnimationFrame(Y.current), D.removeEventListener("resize", k), z && z.disconnect();
35982
+ k.clear(), cancelAnimationFrame(W.current), D.removeEventListener("resize", k), z && z.disconnect();
35979
35983
  };
35980
35984
  }, [L, j, P]), bd(() => {
35981
35985
  j();
35982
35986
  });
35983
- const W = (k) => {
35987
+ const Y = (k) => {
35984
35988
  S || j();
35985
35989
  const U = k.target, D = U.value.length, z = U.value.endsWith(`
35986
35990
  `), J = U.selectionStart === D;
@@ -35989,7 +35993,7 @@ const xA = /* @__PURE__ */ Oe.forwardRef(function(r, i) {
35989
35993
  return /* @__PURE__ */ I.jsxs(Oe.Fragment, {
35990
35994
  children: [/* @__PURE__ */ I.jsx("textarea", {
35991
35995
  value: v,
35992
- onChange: W,
35996
+ onChange: Y,
35993
35997
  ref: w,
35994
35998
  rows: f,
35995
35999
  style: d,
@@ -36292,8 +36296,8 @@ const Sb = (e, r) => {
36292
36296
  endAdornment: L,
36293
36297
  error: P,
36294
36298
  fullWidth: j = !1,
36295
- id: Y,
36296
- inputComponent: W = "input",
36299
+ id: W,
36300
+ inputComponent: Y = "input",
36297
36301
  inputProps: k = {},
36298
36302
  inputRef: U,
36299
36303
  margin: D,
@@ -36365,7 +36369,7 @@ const Sb = (e, r) => {
36365
36369
  const it = (rt) => {
36366
36370
  ne.current && rt.currentTarget === rt.target && ne.current.focus(), xe && xe(rt);
36367
36371
  };
36368
- let un = W, vn = k;
36372
+ let un = Y, vn = k;
36369
36373
  le && un === "input" && (ae ? (process.env.NODE_ENV !== "production" && (J || z) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), vn = {
36370
36374
  type: void 0,
36371
36375
  minRows: ae,
@@ -36427,7 +36431,7 @@ const Sb = (e, r) => {
36427
36431
  autoFocus: d,
36428
36432
  defaultValue: w,
36429
36433
  disabled: Fe.disabled,
36430
- id: Y,
36434
+ id: W,
36431
36435
  onAnimationStart: pn,
36432
36436
  name: he,
36433
36437
  placeholder: Re,
@@ -36754,9 +36758,9 @@ const AF = {
36754
36758
  onExited: L,
36755
36759
  onExiting: P,
36756
36760
  style: j,
36757
- timeout: Y = c,
36761
+ timeout: W = c,
36758
36762
  // eslint-disable-next-line react/prop-types
36759
- TransitionComponent: W = as,
36763
+ TransitionComponent: Y = as,
36760
36764
  ...k
36761
36765
  } = r, U = Oe.useRef(null), D = Vi(U, Sv(v), i), z = (Te) => (ve) => {
36762
36766
  if (Te) {
@@ -36767,7 +36771,7 @@ const AF = {
36767
36771
  dA(Te);
36768
36772
  const Re = q0({
36769
36773
  style: j,
36770
- timeout: Y,
36774
+ timeout: W,
36771
36775
  easing: b
36772
36776
  }, {
36773
36777
  mode: "enter"
@@ -36776,7 +36780,7 @@ const AF = {
36776
36780
  }), he = z(w), N = z(P), ie = z((Te) => {
36777
36781
  const ve = q0({
36778
36782
  style: j,
36779
- timeout: Y,
36783
+ timeout: W,
36780
36784
  easing: b
36781
36785
  }, {
36782
36786
  mode: "exit"
@@ -36785,7 +36789,7 @@ const AF = {
36785
36789
  }), xe = z(L), fe = (Te) => {
36786
36790
  f && f(U.current, Te);
36787
36791
  };
36788
- return /* @__PURE__ */ I.jsx(W, {
36792
+ return /* @__PURE__ */ I.jsx(Y, {
36789
36793
  appear: d,
36790
36794
  in: S,
36791
36795
  nodeRef: U,
@@ -36796,7 +36800,7 @@ const AF = {
36796
36800
  onExited: xe,
36797
36801
  onExiting: N,
36798
36802
  addEndListener: fe,
36799
- timeout: Y,
36803
+ timeout: W,
36800
36804
  ...k,
36801
36805
  children: (Te, {
36802
36806
  ownerState: ve,
@@ -36950,7 +36954,7 @@ const PF = (e) => {
36950
36954
  ...s,
36951
36955
  component: d,
36952
36956
  invisible: v
36953
- }, Y = PF(j), W = {
36957
+ }, W = PF(j), Y = {
36954
36958
  transition: A,
36955
36959
  root: S.Root,
36956
36960
  ...O
@@ -36959,12 +36963,12 @@ const PF = (e) => {
36959
36963
  ...w
36960
36964
  }, U = {
36961
36965
  component: d,
36962
- slots: W,
36966
+ slots: Y,
36963
36967
  slotProps: k
36964
36968
  }, [D, z] = ga("root", {
36965
36969
  elementType: NF,
36966
36970
  externalForwardedProps: U,
36967
- className: xr(Y.root, f),
36971
+ className: xr(W.root, f),
36968
36972
  ownerState: j
36969
36973
  }), [J, le] = ga("transition", {
36970
36974
  elementType: CA,
@@ -36979,7 +36983,7 @@ const PF = (e) => {
36979
36983
  children: /* @__PURE__ */ I.jsx(D, {
36980
36984
  "aria-hidden": !0,
36981
36985
  ...z,
36982
- classes: Y,
36986
+ classes: W,
36983
36987
  ref: i,
36984
36988
  children: c
36985
36989
  })
@@ -37311,25 +37315,25 @@ function K0(e) {
37311
37315
  clearInterval(z), k.removeEventListener("focusin", D), k.removeEventListener("keydown", U, !0);
37312
37316
  };
37313
37317
  }, [i, s, c, d, v, f]);
37314
- const Y = (k) => {
37318
+ const W = (k) => {
37315
37319
  w.current === null && (w.current = k.relatedTarget), A.current = !0, O.current = k.target;
37316
37320
  const U = r.props.onFocus;
37317
37321
  U && U(k);
37318
- }, W = (k) => {
37322
+ }, Y = (k) => {
37319
37323
  w.current === null && (w.current = k.relatedTarget), A.current = !0;
37320
37324
  };
37321
37325
  return /* @__PURE__ */ I.jsxs(Oe.Fragment, {
37322
37326
  children: [/* @__PURE__ */ I.jsx("div", {
37323
37327
  tabIndex: v ? 0 : -1,
37324
- onFocus: W,
37328
+ onFocus: Y,
37325
37329
  ref: S,
37326
37330
  "data-testid": "sentinelStart"
37327
37331
  }), /* @__PURE__ */ Oe.cloneElement(r, {
37328
37332
  ref: P,
37329
- onFocus: Y
37333
+ onFocus: W
37330
37334
  }), /* @__PURE__ */ I.jsx("div", {
37331
37335
  tabIndex: v ? 0 : -1,
37332
- onFocus: W,
37336
+ onFocus: Y,
37333
37337
  ref: E,
37334
37338
  "data-testid": "sentinelEnd"
37335
37339
  })]
@@ -37410,9 +37414,9 @@ function qF(e) {
37410
37414
  onClose: b,
37411
37415
  open: S,
37412
37416
  rootRef: E
37413
- } = e, w = Oe.useRef({}), O = Oe.useRef(null), A = Oe.useRef(null), L = Vi(A, E), [P, j] = Oe.useState(!S), Y = YF(v);
37414
- let W = !0;
37415
- (e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (W = !1);
37417
+ } = e, w = Oe.useRef({}), O = Oe.useRef(null), A = Oe.useRef(null), L = Vi(A, E), [P, j] = Oe.useState(!S), W = YF(v);
37418
+ let Y = !0;
37419
+ (e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (Y = !1);
37416
37420
  const k = () => ml(O.current), U = () => (w.current.modalRef = A.current, w.current.mount = O.current, w.current), D = () => {
37417
37421
  D0.mount(U(), {
37418
37422
  disableScrollLock: s
@@ -37421,15 +37425,15 @@ function qF(e) {
37421
37425
  const ve = WF(r) || k().body;
37422
37426
  D0.add(U(), ve), A.current && D();
37423
37427
  }), J = () => D0.isTopModal(U()), le = BC((ve) => {
37424
- O.current = ve, ve && (S && J() ? D() : A.current && rv(A.current, W));
37428
+ O.current = ve, ve && (S && J() ? D() : A.current && rv(A.current, Y));
37425
37429
  }), he = Oe.useCallback(() => {
37426
- D0.remove(U(), W);
37427
- }, [W]);
37430
+ D0.remove(U(), Y);
37431
+ }, [Y]);
37428
37432
  Oe.useEffect(() => () => {
37429
37433
  he();
37430
37434
  }, [he]), Oe.useEffect(() => {
37431
- S ? z() : (!Y || !c) && he();
37432
- }, [S, he, Y, c, z]);
37435
+ S ? z() : (!W || !c) && he();
37436
+ }, [S, he, W, c, z]);
37433
37437
  const N = (ve) => (Re) => {
37434
37438
  var be;
37435
37439
  (be = ve.onKeyDown) == null || be.call(ve, Re), !(Re.key !== "Escape" || Re.which === 229 || // Wait until IME is settled.
@@ -37483,7 +37487,7 @@ function qF(e) {
37483
37487
  portalRef: le,
37484
37488
  isTopModal: J,
37485
37489
  exited: P,
37486
- hasTransition: Y
37490
+ hasTransition: W
37487
37491
  };
37488
37492
  }
37489
37493
  function QF(e) {
@@ -37549,8 +37553,8 @@ const XF = (e) => {
37549
37553
  disableAutoFocus: L = !1,
37550
37554
  disableEnforceFocus: P = !1,
37551
37555
  disableEscapeKeyDown: j = !1,
37552
- disablePortal: Y = !1,
37553
- disableRestoreFocus: W = !1,
37556
+ disablePortal: W = !1,
37557
+ disableRestoreFocus: Y = !1,
37554
37558
  disableScrollLock: k = !1,
37555
37559
  hideBackdrop: U = !1,
37556
37560
  keepMounted: D = !1,
@@ -37569,8 +37573,8 @@ const XF = (e) => {
37569
37573
  disableAutoFocus: L,
37570
37574
  disableEnforceFocus: P,
37571
37575
  disableEscapeKeyDown: j,
37572
- disablePortal: Y,
37573
- disableRestoreFocus: W,
37576
+ disablePortal: W,
37577
+ disableRestoreFocus: Y,
37574
37578
  disableScrollLock: k,
37575
37579
  hideBackdrop: U,
37576
37580
  keepMounted: D
@@ -37635,7 +37639,7 @@ const XF = (e) => {
37635
37639
  return !D && !he && (!ue || K) ? null : /* @__PURE__ */ I.jsx(Q0, {
37636
37640
  ref: Se,
37637
37641
  container: E,
37638
- disablePortal: Y,
37642
+ disablePortal: W,
37639
37643
  children: /* @__PURE__ */ I.jsxs(Ye, {
37640
37644
  ...ze,
37641
37645
  children: [!U && c ? /* @__PURE__ */ I.jsx(Q, {
@@ -37643,7 +37647,7 @@ const XF = (e) => {
37643
37647
  }) : null, /* @__PURE__ */ I.jsx(K0, {
37644
37648
  disableEnforceFocus: P,
37645
37649
  disableAutoFocus: L,
37646
- disableRestoreFocus: W,
37650
+ disableRestoreFocus: Y,
37647
37651
  isEnabled: ae,
37648
37652
  open: he,
37649
37653
  children: /* @__PURE__ */ Oe.cloneElement(S, Ce)
@@ -38092,20 +38096,20 @@ const JF = (e) => {
38092
38096
  inputComponent: S,
38093
38097
  multiline: E,
38094
38098
  type: A
38095
- }, j = JF(s), Y = {
38099
+ }, j = JF(s), W = {
38096
38100
  root: {
38097
38101
  ownerState: P
38098
38102
  },
38099
38103
  input: {
38100
38104
  ownerState: P
38101
38105
  }
38102
- }, W = w ?? d ? ba(Y, w ?? d) : Y, k = O.root ?? f.Root ?? eV, U = O.input ?? f.Input ?? tV;
38106
+ }, Y = w ?? d ? ba(W, w ?? d) : W, k = O.root ?? f.Root ?? eV, U = O.input ?? f.Input ?? tV;
38103
38107
  return /* @__PURE__ */ I.jsx(Tb, {
38104
38108
  slots: {
38105
38109
  root: k,
38106
38110
  input: U
38107
38111
  },
38108
- slotProps: W,
38112
+ slotProps: Y,
38109
38113
  fullWidth: v,
38110
38114
  inputComponent: S,
38111
38115
  multiline: E,
@@ -38383,8 +38387,8 @@ const rV = (e) => {
38383
38387
  required: L = !1,
38384
38388
  size: P = "medium",
38385
38389
  variant: j = "outlined",
38386
- ...Y
38387
- } = s, W = {
38390
+ ...W
38391
+ } = s, Y = {
38388
38392
  ...s,
38389
38393
  color: d,
38390
38394
  component: v,
@@ -38396,7 +38400,7 @@ const rV = (e) => {
38396
38400
  required: L,
38397
38401
  size: P,
38398
38402
  variant: j
38399
- }, k = rV(W), [U, D] = Oe.useState(() => {
38403
+ }, k = rV(Y), [U, D] = Oe.useState(() => {
38400
38404
  let Re = !1;
38401
38405
  return c && Oe.Children.forEach(c, (be) => {
38402
38406
  if (!vC(be, ["Input", "Select"]))
@@ -38449,10 +38453,10 @@ const rV = (e) => {
38449
38453
  value: ve,
38450
38454
  children: /* @__PURE__ */ I.jsx(oV, {
38451
38455
  as: v,
38452
- ownerState: W,
38456
+ ownerState: Y,
38453
38457
  className: xr(k.root, f),
38454
38458
  ref: i,
38455
- ...Y,
38459
+ ...W,
38456
38460
  children: c
38457
38461
  })
38458
38462
  });
@@ -38617,7 +38621,7 @@ const iV = (e) => {
38617
38621
  props: s,
38618
38622
  muiFormControl: P,
38619
38623
  states: ["variant", "size", "disabled", "error", "filled", "focused", "required"]
38620
- }), Y = {
38624
+ }), W = {
38621
38625
  ...s,
38622
38626
  component: d,
38623
38627
  contained: j.variant === "filled" || j.variant === "outlined",
@@ -38629,14 +38633,14 @@ const iV = (e) => {
38629
38633
  focused: j.focused,
38630
38634
  required: j.required
38631
38635
  };
38632
- delete Y.ownerState;
38633
- const W = iV(Y);
38636
+ delete W.ownerState;
38637
+ const Y = iV(W);
38634
38638
  return /* @__PURE__ */ I.jsx(lV, {
38635
38639
  as: d,
38636
- className: xr(W.root, f),
38640
+ className: xr(Y.root, f),
38637
38641
  ref: i,
38638
38642
  ...L,
38639
- ownerState: Y,
38643
+ ownerState: W,
38640
38644
  children: c === " " ? (
38641
38645
  // notranslate needed while Google Translate will not fix zero-width space issue
38642
38646
  V$ || (V$ = /* @__PURE__ */ I.jsx("span", {
@@ -38796,17 +38800,17 @@ const ov = uo("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
38796
38800
  filled: P.filled,
38797
38801
  focused: P.focused,
38798
38802
  required: P.required
38799
- }, Y = uV(j);
38803
+ }, W = uV(j);
38800
38804
  return /* @__PURE__ */ I.jsxs(cV, {
38801
38805
  as: v,
38802
38806
  ownerState: j,
38803
- className: xr(Y.root, f),
38807
+ className: xr(W.root, f),
38804
38808
  ref: i,
38805
38809
  ...A,
38806
38810
  children: [c, P.required && /* @__PURE__ */ I.jsxs(dV, {
38807
38811
  ownerState: j,
38808
38812
  "aria-hidden": !0,
38809
- className: Y.asterisk,
38813
+ className: W.asterisk,
38810
38814
  children: [" ", "*"]
38811
38815
  })]
38812
38816
  });
@@ -38893,8 +38897,8 @@ const fV = {
38893
38897
  timeout: P = "auto",
38894
38898
  // eslint-disable-next-line react/prop-types
38895
38899
  TransitionComponent: j = as,
38896
- ...Y
38897
- } = r, W = nF(), k = Oe.useRef(), U = xw(), D = Oe.useRef(null), z = Vi(D, Sv(f), i), J = (ve) => (Re) => {
38900
+ ...W
38901
+ } = r, Y = nF(), k = Oe.useRef(), U = xw(), D = Oe.useRef(null), z = Vi(D, Sv(f), i), J = (ve) => (Re) => {
38898
38902
  if (ve) {
38899
38903
  const be = D.current;
38900
38904
  Re === void 0 ? ve(be) : ve(be, Re);
@@ -38943,7 +38947,7 @@ const fV = {
38943
38947
  easing: Se
38944
38948
  })].join(","), ve.style.opacity = 0, ve.style.transform = YC(0.75), w && w(ve);
38945
38949
  }), fe = J(O), Te = (ve) => {
38946
- P === "auto" && W.start(k.current || 0, ve), s && s(D.current, ve);
38950
+ P === "auto" && Y.start(k.current || 0, ve), s && s(D.current, ve);
38947
38951
  };
38948
38952
  return /* @__PURE__ */ I.jsx(j, {
38949
38953
  appear: c,
@@ -38957,7 +38961,7 @@ const fV = {
38957
38961
  onExiting: ie,
38958
38962
  addEndListener: Te,
38959
38963
  timeout: P === "auto" ? null : P,
38960
- ...Y,
38964
+ ...W,
38961
38965
  children: (ve, {
38962
38966
  ownerState: Re,
38963
38967
  ...be
@@ -39178,13 +39182,13 @@ const pV = (e) => {
39178
39182
  disableUnderline: c
39179
39183
  }
39180
39184
  }
39181
- }, Y = E ?? d ? ba(E ?? d, j) : j, W = w.root ?? f.Root ?? hV, k = w.input ?? f.Input ?? mV;
39185
+ }, W = E ?? d ? ba(E ?? d, j) : j, Y = w.root ?? f.Root ?? hV, k = w.input ?? f.Input ?? mV;
39182
39186
  return /* @__PURE__ */ I.jsx(Tb, {
39183
39187
  slots: {
39184
- root: W,
39188
+ root: Y,
39185
39189
  input: k
39186
39190
  },
39187
- slotProps: Y,
39191
+ slotProps: W,
39188
39192
  fullWidth: v,
39189
39193
  inputComponent: b,
39190
39194
  multiline: S,
@@ -39846,17 +39850,17 @@ const DA = /* @__PURE__ */ Oe.forwardRef(function(r, i) {
39846
39850
  }
39847
39851
  E && E(k);
39848
39852
  }, j = Vi(A, i);
39849
- let Y = -1;
39853
+ let W = -1;
39850
39854
  Oe.Children.forEach(d, (k, U) => {
39851
39855
  if (!/* @__PURE__ */ Oe.isValidElement(k)) {
39852
- Y === U && (Y += 1, Y >= d.length && (Y = -1));
39856
+ W === U && (W += 1, W >= d.length && (W = -1));
39853
39857
  return;
39854
39858
  }
39855
39859
  process.env.NODE_ENV !== "production" && yd.isFragment(k) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
39856
- `)), k.props.disabled || (w === "selectedMenu" && k.props.selected || Y === -1) && (Y = U), Y === U && (k.props.disabled || k.props.muiSkipListHighlight || k.type.muiSkipListHighlight) && (Y += 1, Y >= d.length && (Y = -1));
39860
+ `)), k.props.disabled || (w === "selectedMenu" && k.props.selected || W === -1) && (W = U), W === U && (k.props.disabled || k.props.muiSkipListHighlight || k.type.muiSkipListHighlight) && (W += 1, W >= d.length && (W = -1));
39857
39861
  });
39858
- const W = Oe.Children.map(d, (k, U) => {
39859
- if (U === Y) {
39862
+ const Y = Oe.Children.map(d, (k, U) => {
39863
+ if (U === W) {
39860
39864
  const D = {};
39861
39865
  return f && (D.autoFocus = !0), k.props.tabIndex === void 0 && w === "selectedMenu" && (D.tabIndex = 0), /* @__PURE__ */ Oe.cloneElement(k, D);
39862
39866
  }
@@ -39869,7 +39873,7 @@ const DA = /* @__PURE__ */ Oe.forwardRef(function(r, i) {
39869
39873
  onKeyDown: P,
39870
39874
  tabIndex: c ? 0 : -1,
39871
39875
  ...O,
39872
- children: W
39876
+ children: Y
39873
39877
  });
39874
39878
  });
39875
39879
  process.env.NODE_ENV !== "production" && (DA.propTypes = {
@@ -39983,8 +39987,8 @@ const wV = (e) => {
39983
39987
  PaperProps: P = {},
39984
39988
  // TODO: remove in v7
39985
39989
  slots: j = {},
39986
- slotProps: Y = {},
39987
- transformOrigin: W = {
39990
+ slotProps: W = {},
39991
+ transformOrigin: Y = {
39988
39992
  vertical: "top",
39989
39993
  horizontal: "left"
39990
39994
  },
@@ -40001,7 +40005,7 @@ const wV = (e) => {
40001
40005
  anchorReference: b,
40002
40006
  elevation: O,
40003
40007
  marginThreshold: A,
40004
- transformOrigin: W,
40008
+ transformOrigin: Y,
40005
40009
  TransitionComponent: k,
40006
40010
  transitionDuration: U,
40007
40011
  TransitionProps: D
@@ -40019,9 +40023,9 @@ const wV = (e) => {
40019
40023
  left: te.left + B$(te, d.horizontal)
40020
40024
  };
40021
40025
  }, [f, d.horizontal, d.vertical, v, b]), xe = Oe.useCallback((Z) => ({
40022
- vertical: U$(Z, W.vertical),
40023
- horizontal: B$(Z, W.horizontal)
40024
- }), [W.horizontal, W.vertical]), fe = Oe.useCallback((Z) => {
40026
+ vertical: U$(Z, Y.vertical),
40027
+ horizontal: B$(Z, Y.horizontal)
40028
+ }), [Y.horizontal, Y.vertical]), fe = Oe.useCallback((Z) => {
40025
40029
  const Ee = {
40026
40030
  width: Z.offsetWidth,
40027
40031
  height: Z.offsetHeight
@@ -40093,7 +40097,7 @@ const wV = (e) => {
40093
40097
  slotProps: {
40094
40098
  transition: D,
40095
40099
  paper: P,
40096
- ...Y
40100
+ ...W
40097
40101
  }
40098
40102
  }, [ue, V] = ga("transition", {
40099
40103
  elementType: Z0,
@@ -40133,7 +40137,7 @@ const wV = (e) => {
40133
40137
  backdrop: j.backdrop
40134
40138
  },
40135
40139
  slotProps: {
40136
- backdrop: z4(typeof Y.backdrop == "function" ? Y.backdrop(he) : Y.backdrop, {
40140
+ backdrop: z4(typeof W.backdrop == "function" ? W.backdrop(he) : W.backdrop, {
40137
40141
  invisible: !0
40138
40142
  })
40139
40143
  },
@@ -40431,8 +40435,8 @@ const OV = {
40431
40435
  ...P
40432
40436
  } = {},
40433
40437
  variant: j = "selectedMenu",
40434
- slots: Y = {},
40435
- slotProps: W = {},
40438
+ slots: W = {},
40439
+ slotProps: Y = {},
40436
40440
  ...k
40437
40441
  } = s, U = q_(), D = {
40438
40442
  ...s,
@@ -40457,16 +40461,16 @@ const OV = {
40457
40461
  `)), ae.props.disabled || (j === "selectedMenu" && ae.props.selected || ie === -1) && (ie = K));
40458
40462
  });
40459
40463
  const xe = {
40460
- slots: Y,
40464
+ slots: W,
40461
40465
  slotProps: {
40462
40466
  list: b,
40463
40467
  transition: P,
40464
40468
  paper: w,
40465
- ...W
40469
+ ...Y
40466
40470
  }
40467
40471
  }, fe = yF({
40468
- elementType: Y.root,
40469
- externalSlotProps: W.root,
40472
+ elementType: W.root,
40473
+ externalSlotProps: Y.root,
40470
40474
  ownerState: D,
40471
40475
  className: [z.root, d]
40472
40476
  }), [Te, ve] = ga("paper", {
@@ -40497,18 +40501,18 @@ const OV = {
40497
40501
  },
40498
40502
  transformOrigin: U ? OV : RV,
40499
40503
  slots: {
40500
- root: Y.root,
40504
+ root: W.root,
40501
40505
  paper: Te,
40502
- backdrop: Y.backdrop,
40503
- ...Y.transition && {
40506
+ backdrop: W.backdrop,
40507
+ ...W.transition && {
40504
40508
  // TODO: pass `slots.transition` directly once `TransitionComponent` is removed from Popover
40505
- transition: Y.transition
40509
+ transition: W.transition
40506
40510
  }
40507
40511
  },
40508
40512
  slotProps: {
40509
40513
  root: fe,
40510
40514
  paper: ve,
40511
- backdrop: typeof W.backdrop == "function" ? W.backdrop(D) : W.backdrop,
40515
+ backdrop: typeof Y.backdrop == "function" ? Y.backdrop(D) : Y.backdrop,
40512
40516
  transition: {
40513
40517
  ...Se,
40514
40518
  onEntering: (...ae) => {
@@ -41185,7 +41189,7 @@ const FV = (e) => {
41185
41189
  props: s,
41186
41190
  muiFormControl: P,
41187
41191
  states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
41188
- }), Y = {
41192
+ }), W = {
41189
41193
  ...s,
41190
41194
  color: j.color || "primary",
41191
41195
  disabled: j.disabled,
@@ -41197,11 +41201,11 @@ const FV = (e) => {
41197
41201
  multiline: b,
41198
41202
  size: j.size,
41199
41203
  type: O
41200
- }, W = E.root ?? c.Root ?? VV, k = E.input ?? c.Input ?? UV, [U, D] = ga("notchedOutline", {
41204
+ }, Y = E.root ?? c.Root ?? VV, k = E.input ?? c.Input ?? UV, [U, D] = ga("notchedOutline", {
41201
41205
  elementType: jV,
41202
41206
  className: L.notchedOutline,
41203
41207
  shouldForwardComponentProp: !0,
41204
- ownerState: Y,
41208
+ ownerState: W,
41205
41209
  externalForwardedProps: {
41206
41210
  slots: E,
41207
41211
  slotProps: w
@@ -41214,7 +41218,7 @@ const FV = (e) => {
41214
41218
  });
41215
41219
  return /* @__PURE__ */ I.jsx(Tb, {
41216
41220
  slots: {
41217
- root: W,
41221
+ root: Y,
41218
41222
  input: k
41219
41223
  },
41220
41224
  slotProps: w,
@@ -41505,8 +41509,8 @@ const WV = (e) => {
41505
41509
  IconComponent: L,
41506
41510
  inputRef: P,
41507
41511
  labelId: j,
41508
- MenuProps: Y = {},
41509
- multiple: W,
41512
+ MenuProps: W = {},
41513
+ multiple: Y,
41510
41514
  name: k,
41511
41515
  onBlur: U,
41512
41516
  onChange: D,
@@ -41572,7 +41576,7 @@ const WV = (e) => {
41572
41576
  }, Nt = (qe) => (B) => {
41573
41577
  let ee;
41574
41578
  if (B.currentTarget.hasAttribute("tabindex")) {
41575
- if (W) {
41579
+ if (Y) {
41576
41580
  ee = Array.isArray(ae) ? ae.slice() : [];
41577
41581
  const se = ae.indexOf(qe.props.value);
41578
41582
  se === -1 ? ee.push(qe.props.value) : ee.splice(se, 1);
@@ -41588,7 +41592,7 @@ const WV = (e) => {
41588
41592
  }
41589
41593
  }), D($, qe);
41590
41594
  }
41591
- W || Ne(!1, B);
41595
+ Y || Ne(!1, B);
41592
41596
  }
41593
41597
  }, mt = (qe) => {
41594
41598
  N || [
@@ -41621,7 +41625,7 @@ const WV = (e) => {
41621
41625
  process.env.NODE_ENV !== "production" && yd.isFragment(qe) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
41622
41626
  `));
41623
41627
  let B;
41624
- if (W) {
41628
+ if (Y) {
41625
41629
  if (!Array.isArray(ae))
41626
41630
  throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : rs(2));
41627
41631
  B = ae.some((ee) => W$(ee, qe.props.value)), B && pn && vn.push(qe.props.children);
@@ -41642,12 +41646,12 @@ const WV = (e) => {
41642
41646
  });
41643
41647
  });
41644
41648
  process.env.NODE_ENV !== "production" && Oe.useEffect(() => {
41645
- if (!cn && !W && ae !== "") {
41649
+ if (!cn && !Y && ae !== "") {
41646
41650
  const qe = nt.map((B) => B.props.value);
41647
41651
  console.warn([`MUI: You have provided an out-of-range value \`${ae}\` for the select ${k ? `(name="${k}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${qe.filter((B) => B != null).map((B) => `\`${B}\``).join(", ") || '""'}.`].join(`
41648
41652
  `));
41649
41653
  }
41650
- }, [cn, nt, W, k, ae]), pn && (W ? vn.length === 0 ? it = null : it = vn.reduce((qe, B, ee) => (qe.push(B), ee < vn.length - 1 && qe.push(", "), qe), []) : it = un);
41654
+ }, [cn, nt, Y, k, ae]), pn && (Y ? vn.length === 0 ? it = null : it = vn.reduce((qe, B, ee) => (qe.push(B), ee < vn.length - 1 && qe.push(", "), qe), []) : it = un);
41651
41655
  let ar = Q;
41652
41656
  !d && ze && Ve && (ar = te.clientWidth);
41653
41657
  let ir;
@@ -41659,11 +41663,11 @@ const WV = (e) => {
41659
41663
  open: vt,
41660
41664
  error: A
41661
41665
  }, He = WV(rt), dn = {
41662
- ...Y.PaperProps,
41663
- ...(An = Y.slotProps) == null ? void 0 : An.paper
41666
+ ...W.PaperProps,
41667
+ ...(An = W.slotProps) == null ? void 0 : An.paper
41664
41668
  }, $n = {
41665
- ...Y.MenuListProps,
41666
- ...(_n = Y.slotProps) == null ? void 0 : _n.list
41669
+ ...W.MenuListProps,
41670
+ ...(_n = W.slotProps) == null ? void 0 : _n.list
41667
41671
  }, In = K3();
41668
41672
  return /* @__PURE__ */ I.jsxs(Oe.Fragment, {
41669
41673
  children: [/* @__PURE__ */ I.jsx(BV, {
@@ -41727,13 +41731,13 @@ const WV = (e) => {
41727
41731
  vertical: "top",
41728
41732
  horizontal: "center"
41729
41733
  },
41730
- ...Y,
41734
+ ...W,
41731
41735
  slotProps: {
41732
- ...Y.slotProps,
41736
+ ...W.slotProps,
41733
41737
  list: {
41734
41738
  "aria-labelledby": j,
41735
41739
  role: "listbox",
41736
- "aria-multiselectable": W ? "true" : void 0,
41740
+ "aria-multiselectable": Y ? "true" : void 0,
41737
41741
  disableListWrap: !0,
41738
41742
  id: In,
41739
41743
  ...$n
@@ -41930,8 +41934,8 @@ const YV = (e) => {
41930
41934
  label: L,
41931
41935
  labelId: P,
41932
41936
  MenuProps: j,
41933
- multiple: Y = !1,
41934
- native: W = !1,
41937
+ multiple: W = !1,
41938
+ native: Y = !1,
41935
41939
  onClose: k,
41936
41940
  onOpen: U,
41937
41941
  open: D,
@@ -41939,7 +41943,7 @@ const YV = (e) => {
41939
41943
  SelectDisplayProps: J,
41940
41944
  variant: le = "outlined",
41941
41945
  ...he
41942
- } = s, N = W ? VA : BA, ie = Np(), xe = Pp({
41946
+ } = s, N = Y ? VA : BA, ie = Np(), xe = Pp({
41943
41947
  props: s,
41944
41948
  muiFormControl: ie,
41945
41949
  states: ["variant", "error"]
@@ -41974,8 +41978,8 @@ const YV = (e) => {
41974
41978
  variant: fe,
41975
41979
  type: void 0,
41976
41980
  // We render a select. We can ignore the type provided by the `Input`.
41977
- multiple: Y,
41978
- ...W ? {
41981
+ multiple: W,
41982
+ ...Y ? {
41979
41983
  id: w
41980
41984
  } : {
41981
41985
  autoWidth: c,
@@ -41996,7 +42000,7 @@ const YV = (e) => {
41996
42000
  classes: A ? ba(be, A.classes) : be,
41997
42001
  ...O ? O.props.inputProps : {}
41998
42002
  },
41999
- ...(Y && W || S) && fe === "outlined" ? {
42003
+ ...(W && Y || S) && fe === "outlined" ? {
42000
42004
  notched: !0
42001
42005
  } : {},
42002
42006
  ref: ae,
@@ -42193,8 +42197,8 @@ const ZV = {
42193
42197
  helperText: L,
42194
42198
  id: P,
42195
42199
  InputLabelProps: j,
42196
- inputProps: Y,
42197
- InputProps: W,
42200
+ inputProps: W,
42201
+ InputProps: Y,
42198
42202
  inputRef: k,
42199
42203
  label: U,
42200
42204
  maxRows: D,
@@ -42231,9 +42235,9 @@ const ZV = {
42231
42235
  const Ve = K3(P), Ye = L && Ve ? `${Ve}-helper-text` : void 0, ze = U && Ve ? `${Ve}-label` : void 0, Q = ZV[ue], ne = {
42232
42236
  slots: be,
42233
42237
  slotProps: {
42234
- input: W,
42238
+ input: Y,
42235
42239
  inputLabel: j,
42236
- htmlInput: Y,
42240
+ htmlInput: W,
42237
42241
  formHelperText: O,
42238
42242
  select: Re,
42239
42243
  ...Se
@@ -42633,7 +42637,7 @@ const tj = sn(Ob)(({ theme: e }) => ({
42633
42637
  })), ij = ({ formComponent: e, formidavimHost: r }) => {
42634
42638
  const i = (e == null ? void 0 : e.props) || {}, s = i.propertyId, c = i.label ?? "Enter verification code", f = typeof i.length == "number" ? i.length : 6, d = typeof i.required == "string" ? i.required.toLowerCase() === "true" : !!i.required, v = i.currentValue, { getFlowValue: b, setFlowAndPatientValue: S, setFlowError: E, setDisableSubmitValue: w } = Or(), O = s ? b(s) : void 0, A = v && v.length === f ? v : typeof O == "string" && O.length === f ? O : "", [L, P] = Jt(
42635
42639
  A ? A.split("") : new Array(f).fill("")
42636
- ), [j, Y] = Jt(!!(A && A.length === f)), [W, k] = Jt(!1), [U, D] = Jt(null), [z, J] = Jt(null), [le, he] = Jt(!1), [N, ie] = Jt(0), [xe, fe] = Jt(0), [Te, ve] = Jt(0), [Re, be] = Jt(!1), Se = Xs([]), ae = b("_phone"), K = b("email"), ue = hv(r), V = (Q) => {
42640
+ ), [j, W] = Jt(!!(A && A.length === f)), [Y, k] = Jt(!1), [U, D] = Jt(null), [z, J] = Jt(null), [le, he] = Jt(!1), [N, ie] = Jt(0), [xe, fe] = Jt(0), [Te, ve] = Jt(0), [Re, be] = Jt(!1), Se = Xs([]), ae = b("_phone"), K = b("email"), ue = hv(r), V = (Q) => {
42637
42641
  const ne = Q.replace(/\D/g, "");
42638
42642
  return ne.length === 10 ? `+1${ne}` : Q;
42639
42643
  }, G = br(async (Q, ne) => {
@@ -42659,9 +42663,9 @@ const tj = sn(Ob)(({ theme: e }) => ({
42659
42663
  if (!(Q.length !== f || !ne || Re)) {
42660
42664
  be(!0), k(!0), D(null), J(null);
42661
42665
  try {
42662
- await Ce(ne, Q, Z) && s ? (Y(!0), S(s, Q), E(s, null), w(!1), J("Verification successful!"), ie(0), fe(0), ve(0)) : (D("The code you entered is incorrect. Please check your code and try again."), Y(!1), s && E(s, "The code you entered is incorrect. Please check your code and try again."), be(!1), d && w(!0));
42666
+ await Ce(ne, Q, Z) && s ? (W(!0), S(s, Q), E(s, null), w(!1), J("Verification successful!"), ie(0), fe(0), ve(0)) : (D("The code you entered is incorrect. Please check your code and try again."), W(!1), s && E(s, "The code you entered is incorrect. Please check your code and try again."), be(!1), d && w(!0));
42663
42667
  } catch (Ee) {
42664
- console.error("OTP verification error:", Ee), D("Verification failed. Please try again."), Y(!1), s && E(s, "Verification failed"), be(!1);
42668
+ console.error("OTP verification error:", Ee), D("Verification failed. Please try again."), W(!1), s && E(s, "Verification failed"), be(!1);
42665
42669
  } finally {
42666
42670
  k(!1);
42667
42671
  }
@@ -42671,12 +42675,12 @@ const tj = sn(Ob)(({ theme: e }) => ({
42671
42675
  var Ee;
42672
42676
  if (j || ne.length > 1) return;
42673
42677
  const Z = [...L];
42674
- if (Z[Q] = ne, P(Z), Y(!1), be(!1), D(null), J(null), ne && Q < f - 1 && ((Ee = Se.current[Q + 1]) == null || Ee.focus()), Z.join("").length === f) {
42678
+ if (Z[Q] = ne, P(Z), W(!1), be(!1), D(null), J(null), ne && Q < f - 1 && ((Ee = Se.current[Q + 1]) == null || Ee.focus()), Z.join("").length === f) {
42675
42679
  const te = Z.join(""), Ne = ae || K, we = !!(K && !ae);
42676
42680
  te.length === f && Ne && !Re && (be(!0), k(!0), D(null), J(null), Ce(Ne, te, we).then((Fe) => {
42677
- Fe && s ? (Y(!0), S(s, te), E(s, null), w(!1), J("Verification successful!"), ie(0), fe(0), ve(0)) : (D("The code you entered is incorrect. Please check your code and try again."), Y(!1), s && E(s, "The code you entered is incorrect. Please check your code and try again."), be(!1), d && w(!0));
42681
+ Fe && s ? (W(!0), S(s, te), E(s, null), w(!1), J("Verification successful!"), ie(0), fe(0), ve(0)) : (D("The code you entered is incorrect. Please check your code and try again."), W(!1), s && E(s, "The code you entered is incorrect. Please check your code and try again."), be(!1), d && w(!0));
42678
42682
  }).catch((Fe) => {
42679
- console.error("OTP verification error:", Fe), D("Verification failed. Please try again."), Y(!1), s && E(s, "Verification failed"), be(!1), d && w(!0);
42683
+ console.error("OTP verification error:", Fe), D("Verification failed. Please try again."), W(!1), s && E(s, "Verification failed"), be(!1), d && w(!0);
42680
42684
  }).finally(() => {
42681
42685
  k(!1);
42682
42686
  }));
@@ -42691,12 +42695,12 @@ const tj = sn(Ob)(({ theme: e }) => ({
42691
42695
  const Z = Q.clipboardData.getData("text/plain").replace(/\D/g, "").slice(0, f);
42692
42696
  if (Z.length === f) {
42693
42697
  const te = Z.split("");
42694
- P(te), Y(!1), be(!1), D(null), J(null);
42698
+ P(te), W(!1), be(!1), D(null), J(null);
42695
42699
  const Ne = te.join(""), we = ae || K, Fe = !!(K && !ae);
42696
42700
  Ne.length === f && we && !Re && (be(!0), k(!0), D(null), J(null), Ce(we, Ne, Fe).then((nt) => {
42697
- nt && s ? (Y(!0), S(s, Ne), E(s, null), w(!1), J("Verification successful!"), ie(0), fe(0), ve(0)) : (D("Invalid verification code. Please try again."), Y(!1), s && E(s, "Invalid verification code"), be(!1), d && w(!0));
42701
+ nt && s ? (W(!0), S(s, Ne), E(s, null), w(!1), J("Verification successful!"), ie(0), fe(0), ve(0)) : (D("Invalid verification code. Please try again."), W(!1), s && E(s, "Invalid verification code"), be(!1), d && w(!0));
42698
42702
  }).catch((nt) => {
42699
- console.error("OTP verification error:", nt), D("Verification failed. Please try again."), Y(!1), s && E(s, "Verification failed"), be(!1), d && w(!0);
42703
+ console.error("OTP verification error:", nt), D("Verification failed. Please try again."), W(!1), s && E(s, "Verification failed"), be(!1), d && w(!0);
42700
42704
  }).finally(() => {
42701
42705
  k(!1);
42702
42706
  })), (Ee = Se.current[f - 1]) == null || Ee.focus();
@@ -42732,7 +42736,7 @@ const tj = sn(Ob)(({ theme: e }) => ({
42732
42736
  w(d ? !j : !1);
42733
42737
  }, [j, d, w]), gn(() => {
42734
42738
  const Q = v && v.length === f ? v : typeof O == "string" && O.length === f ? O : "";
42735
- Q && Q.length === f && (P(Q.split("")), Y(!0));
42739
+ Q && Q.length === f && (P(Q.split("")), W(!0));
42736
42740
  }, [v, f, O]), gn(() => {
42737
42741
  Se.current[0] && !j && Se.current[0].focus();
42738
42742
  }, [j]), L.join("").length, /* @__PURE__ */ I.jsxs(tj, { children: [
@@ -42751,7 +42755,7 @@ const tj = sn(Ob)(({ theme: e }) => ({
42751
42755
  inputMode: "numeric"
42752
42756
  },
42753
42757
  variant: "outlined",
42754
- disabled: W || j,
42758
+ disabled: Y || j,
42755
42759
  verified: j
42756
42760
  },
42757
42761
  ne
@@ -43032,7 +43036,7 @@ const sj = _e.div`
43032
43036
  state: w.state || "",
43033
43037
  postcode: w.postcode || "",
43034
43038
  coordinates: w.coordinates
43035
- }), [L, P] = Jt([]), [j, Y] = Jt(!1), [W, k] = Jt(!1), [U, D] = Jt(!1), [z, J] = Jt("prompt"), le = Xs(), he = "pk.eyJ1IjoiYW50aG9ueS1pdmltIiwiYSI6ImNsdXY4M245OTAwcmoya3BiY3RwOHU2aGoifQ.WKeVR5UV446JNt1PxJgccg", N = (be, Se) => {
43039
+ }), [L, P] = Jt([]), [j, W] = Jt(!1), [Y, k] = Jt(!1), [U, D] = Jt(!1), [z, J] = Jt("prompt"), le = Xs(), he = "pk.eyJ1IjoiYW50aG9ueS1pdmltIiwiYSI6ImNsdXY4M245OTAwcmoya3BiY3RwOHU2aGoifQ.WKeVR5UV446JNt1PxJgccg", N = (be, Se) => {
43036
43040
  const ae = { ...O, [be]: Se };
43037
43041
  A(ae), v(s, ae), be === "address1" && Se.length > 1 && ie(Se);
43038
43042
  }, ie = async (be) => {
@@ -43063,7 +43067,7 @@ const sj = _e.div`
43063
43067
  const ue = await fetch(K);
43064
43068
  if (ue.ok) {
43065
43069
  const V = await ue.json();
43066
- console.log("Mapbox v6 response:", V), P(V.features || []), Y(!0);
43070
+ console.log("Mapbox v6 response:", V), P(V.features || []), W(!0);
43067
43071
  } else {
43068
43072
  console.error("Mapbox API error:", ue.status, ue.statusText);
43069
43073
  const V = await ue.text();
@@ -43104,11 +43108,11 @@ const sj = _e.div`
43104
43108
  lng: be.geometry.coordinates[0]
43105
43109
  }
43106
43110
  };
43107
- console.log("Parsed address:", Q), A(Q), v(s, Q), Y(!1), P([]);
43111
+ console.log("Parsed address:", Q), A(Q), v(s, Q), W(!1), P([]);
43108
43112
  }, fe = () => !!(O.address1 && O.city && O.state && O.postcode);
43109
43113
  gn(() => {
43110
43114
  const be = (Se) => {
43111
- Se.target.closest(".address-autofill-container") || Y(!1);
43115
+ Se.target.closest(".address-autofill-container") || W(!1);
43112
43116
  };
43113
43117
  return document.addEventListener("click", be), () => document.removeEventListener("click", be);
43114
43118
  }, []), gn(() => {
@@ -43116,9 +43120,9 @@ const sj = _e.div`
43116
43120
  showSuggestions: j,
43117
43121
  suggestionsCount: L.length,
43118
43122
  isAddress1Focused: U,
43119
- isLoading: W
43123
+ isLoading: Y
43120
43124
  });
43121
- }, [j, L.length, U, W]), gn(() => {
43125
+ }, [j, L.length, U, Y]), gn(() => {
43122
43126
  i && !fe() ? E(s, "Required") : E(s, null);
43123
43127
  }, [O.address1, O.city, O.state, O.postcode, i, s, E]), d(s);
43124
43128
  const Te = S(s), ve = !!Te && Te !== "Required", Re = fe();
@@ -43146,7 +43150,7 @@ const sj = _e.div`
43146
43150
  }
43147
43151
  ),
43148
43152
  /* @__PURE__ */ I.jsx(_i, { htmlFor: `${s}-address1`, children: "Address Line 1" }),
43149
- /* @__PURE__ */ I.jsx(uj, { $show: U && (j || W), children: W ? /* @__PURE__ */ I.jsx(dj, { children: "Loading suggestions..." }) : L.length === 0 ? /* @__PURE__ */ I.jsx(fj, { children: "No suggestions found." }) : L.map((be, Se) => {
43153
+ /* @__PURE__ */ I.jsx(uj, { $show: U && (j || Y), children: Y ? /* @__PURE__ */ I.jsx(dj, { children: "Loading suggestions..." }) : L.length === 0 ? /* @__PURE__ */ I.jsx(fj, { children: "No suggestions found." }) : L.map((be, Se) => {
43150
43154
  var ae;
43151
43155
  return /* @__PURE__ */ I.jsx(
43152
43156
  cj,
@@ -43348,8 +43352,8 @@ const sj = _e.div`
43348
43352
  gn(() => {
43349
43353
  !O.current && f && (!L && f && b(i, f + " mg"), O.current = !0);
43350
43354
  }, [f]);
43351
- const Y = (D) => P === 0 ? 0 : Math.round(D / P * 100), W = (D) => P === 0 ? 0 : D / 100 * P, k = Y(L), U = (D) => {
43352
- const z = W(D);
43355
+ const W = (D) => P === 0 ? 0 : Math.round(D / P * 100), Y = (D) => P === 0 ? 0 : D / 100 * P, k = W(L), U = (D) => {
43356
+ const z = Y(D);
43353
43357
  Number(D) === 0 ? (b(i, 0), E(i, "Units must be greater than 0")) : (E(i, ""), b(i, z + " mg"));
43354
43358
  };
43355
43359
  return /* @__PURE__ */ I.jsxs(aM, { $visible: !0, children: [
@@ -43393,10 +43397,10 @@ const sj = _e.div`
43393
43397
  inlineCopy: S
43394
43398
  } = r || {}, E = typeof v == "string" ? parseInt(v, 10) : v;
43395
43399
  console.log("maxWidthRaw:", v, "maxWidth:", E);
43396
- const w = typeof f == "string" ? f.split(",").map((le) => le.trim()) : Array.isArray(f) ? f : ["pdf", "jpg", "jpeg", "png"], { getFlowValue: O, setFlowAndPatientValue: A, getFlowError: L, setFlowError: P, setDisableSubmitValue: j } = Or(), Y = O(s), W = L(s), k = !!W && W !== "Required", [U, D] = Jt(""), z = i === "true";
43400
+ const w = typeof f == "string" ? f.split(",").map((le) => le.trim()) : Array.isArray(f) ? f : ["pdf", "jpg", "jpeg", "png"], { getFlowValue: O, setFlowAndPatientValue: A, getFlowError: L, setFlowError: P, setDisableSubmitValue: j } = Or(), W = O(s), Y = L(s), k = !!Y && Y !== "Required", [U, D] = Jt(""), z = i === "true";
43397
43401
  gn(() => {
43398
- Y ? b && Array.isArray(Y) ? D(`${Y.length} file(s) selected`) : !b && Y && D("File selected") : D("");
43399
- }, [Y, b]);
43402
+ W ? b && Array.isArray(W) ? D(`${W.length} file(s) selected`) : !b && W && D("File selected") : D("");
43403
+ }, [W, b]);
43400
43404
  const J = (le) => {
43401
43405
  const { files: he } = le.target;
43402
43406
  if (!he || he.length === 0) {
@@ -43462,9 +43466,9 @@ const sj = _e.div`
43462
43466
  ),
43463
43467
  c && c !== "" && /* @__PURE__ */ I.jsx("span", { children: c }),
43464
43468
  U && /* @__PURE__ */ I.jsx("p", { className: "fileName", children: U }),
43465
- z && !Y && !k ? /* @__PURE__ */ I.jsx(so, { $bottom: "-20px", $margin: "19% 0 0 15px", $visible: !0, children: "Required" }) : k ? /* @__PURE__ */ I.jsxs(Xo, { $bottom: "-20px", $margin: "19% 0 0 15px", $visible: !0, children: [
43469
+ z && !W && !k ? /* @__PURE__ */ I.jsx(so, { $bottom: "-20px", $margin: "19% 0 0 15px", $visible: !0, children: "Required" }) : k ? /* @__PURE__ */ I.jsxs(Xo, { $bottom: "-20px", $margin: "19% 0 0 15px", $visible: !0, children: [
43466
43470
  /* @__PURE__ */ I.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "15", viewBox: "0 0 14 15", fill: "none", children: /* @__PURE__ */ I.jsx("path", { d: "M0.331707 7.50001C0.331707 11.1819 3.31647 14.1667 6.99837 14.1667C10.665 11.1819 13.665 7.50001C13.665 3.81811 10.6803 0.833344 6.99837 0.833344C3.31647 0.833344 0.331707 3.81811 0.331707 7.50001ZM3.8603 5.30475L4.80311 4.36194L10.1364 9.69527L9.19363 10.6381L3.8603 5.30475Z", fill: "#B94E36" }) }),
43467
- W
43471
+ Y
43468
43472
  ] }) : null,
43469
43473
  S && /* @__PURE__ */ I.jsx("div", { style: {
43470
43474
  position: "absolute",
@@ -43786,12 +43790,12 @@ const Wj = _e.div`
43786
43790
  const ie = new ResizeObserver(N);
43787
43791
  return ie.observe(he), () => ie.disconnect();
43788
43792
  }, [r.consentText]);
43789
- const Y = () => {
43793
+ const W = () => {
43790
43794
  const he = A.current;
43791
43795
  if (!he || f || !v) return;
43792
43796
  const { scrollTop: N, scrollHeight: ie, clientHeight: xe } = he;
43793
43797
  N + xe >= ie - 0.625 && !f && d(!0);
43794
- }, W = (he) => {
43798
+ }, Y = (he) => {
43795
43799
  const { checked: N } = he.target;
43796
43800
  E(N), N ? s(r.propertyId, (/* @__PURE__ */ new Date()).toISOString().split("T")[0]) : s(r.propertyId, null);
43797
43801
  }, k = (he) => {
@@ -43808,7 +43812,7 @@ const Wj = _e.div`
43808
43812
  {
43809
43813
  ref: A,
43810
43814
  $height: r.height || "20rem",
43811
- onScroll: Y,
43815
+ onScroll: W,
43812
43816
  children: /* @__PURE__ */ I.jsx("div", { dangerouslySetInnerHTML: { __html: r.consentText } })
43813
43817
  }
43814
43818
  ),
@@ -43824,7 +43828,7 @@ const Wj = _e.div`
43824
43828
  {
43825
43829
  type: "checkbox",
43826
43830
  checked: S,
43827
- onChange: W,
43831
+ onChange: Y,
43828
43832
  disabled: U
43829
43833
  }
43830
43834
  ),
@@ -44144,13 +44148,13 @@ const Wj = _e.div`
44144
44148
  e($5(N));
44145
44149
  }, [e]), P = br(() => s, [s]), j = br((N, ie) => {
44146
44150
  e(F5({ [N]: ie }));
44147
- }, [e]), Y = br((N) => {
44151
+ }, [e]), W = br((N) => {
44148
44152
  const ie = {
44149
44153
  id: N.customerId ?? null,
44150
44154
  profile: N.data
44151
44155
  };
44152
44156
  e(_5(ie));
44153
- }, [e]), W = br((N) => d == null ? void 0 : d[N], [d]), k = br(() => d, [d]), U = br((N) => {
44157
+ }, [e]), Y = br((N) => d == null ? void 0 : d[N], [d]), k = br(() => d, [d]), U = br((N) => {
44154
44158
  e(A5(N));
44155
44159
  }, [e]), D = br(() => c, [c]), z = br((N) => {
44156
44160
  e(k5(N));
@@ -44187,8 +44191,8 @@ const Wj = _e.div`
44187
44191
  getDisableSubmitValue: P,
44188
44192
  // Patient profile operations
44189
44193
  setPatientValue: j,
44190
- setPatientValues: Y,
44191
- getPatientValue: W,
44194
+ setPatientValues: W,
44195
+ getPatientValue: Y,
44192
44196
  getFullPatient: k,
44193
44197
  // Current flow and form operations
44194
44198
  setCurrentFlowValue: U,
@@ -44337,15 +44341,15 @@ function aU() {
44337
44341
  [4, "iv"],
44338
44342
  [1, "i"]
44339
44343
  ], j = { M: 1e3, D: 500, C: 100, L: 50, X: 10, V: 5, I: 1 };
44340
- function Y(Q) {
44344
+ function W(Q) {
44341
44345
  for (var ne = 0; ne < P.length; ne++) {
44342
44346
  const Z = P[ne];
44343
44347
  if (Q >= Z[0])
44344
- return Z[1] + Y(Q - Z[0]);
44348
+ return Z[1] + W(Q - Z[0]);
44345
44349
  }
44346
44350
  return "";
44347
44351
  }
44348
- function W(Q) {
44352
+ function Y(Q) {
44349
44353
  for (var ne = 0, Z = 1, Ee = Q.length - 1; Ee >= 0; Ee--) {
44350
44354
  const te = Q[Ee], Ne = j[te];
44351
44355
  Ne < Z ? ne -= Ne : (Z = Ne, ne += Ne);
@@ -44388,7 +44392,7 @@ function aU() {
44388
44392
  Z = k(Q, ne.case === J.UPPER ? "A" : "a");
44389
44393
  break;
44390
44394
  case z.ROMAN:
44391
- Z = Y(Q), ne.case === J.UPPER && (Z = Z.toUpperCase());
44395
+ Z = W(Q), ne.case === J.UPPER && (Z = Z.toUpperCase());
44392
44396
  break;
44393
44397
  case z.WORDS:
44394
44398
  Z = O(Q, ne.ordinal), ne.case === J.UPPER ? Z = Z.toUpperCase() : ne.case === J.LOWER && (Z = Z.toLowerCase());
@@ -44815,7 +44819,7 @@ function aU() {
44815
44819
  break;
44816
44820
  case z.ROMAN:
44817
44821
  ne.regex = Z ? "[MDCLXVI]+" : "[mdclxvi]+", ne.parse = function(Ee) {
44818
- return W(Z ? Ee : Ee.toUpperCase());
44822
+ return Y(Z ? Ee : Ee.toUpperCase());
44819
44823
  };
44820
44824
  break;
44821
44825
  case z.WORDS:
@@ -44921,7 +44925,7 @@ function aU() {
44921
44925
  (function() {
44922
44926
  var d = i("./utils");
44923
44927
  const v = (() => {
44924
- var b = d.isNumeric, S = d.isArrayOfStrings, E = d.isArrayOfNumbers, w = d.createSequence, O = d.isSequence, A = d.isFunction, L = d.isLambda, P = d.isPromise, j = d.getFunctionArity, Y = d.isDeepEqual, W = d.stringToArray;
44928
+ var b = d.isNumeric, S = d.isArrayOfStrings, E = d.isArrayOfNumbers, w = d.createSequence, O = d.isSequence, A = d.isFunction, L = d.isLambda, P = d.isPromise, j = d.getFunctionArity, W = d.isDeepEqual, Y = d.stringToArray;
44925
44929
  function k($) {
44926
44930
  if (!(typeof $ > "u")) {
44927
44931
  var F = 0;
@@ -44973,7 +44977,7 @@ function aU() {
44973
44977
  }
44974
44978
  function he($, F, q) {
44975
44979
  if (!(typeof $ > "u")) {
44976
- var pe = W($), ce = pe.length;
44980
+ var pe = Y($), ce = pe.length;
44977
44981
  if (ce + F < 0 && (F = 0), typeof q < "u") {
44978
44982
  if (q <= 0)
44979
44983
  return "";
@@ -45005,7 +45009,7 @@ function aU() {
45005
45009
  }
45006
45010
  function Te($) {
45007
45011
  if (!(typeof $ > "u"))
45008
- return W($).length;
45012
+ return Y($).length;
45009
45013
  }
45010
45014
  function ve($) {
45011
45015
  if (!(typeof $ > "u")) {
@@ -45750,7 +45754,7 @@ function aU() {
45750
45754
  return $;
45751
45755
  for (var F = O($) ? w() : [], q = 0; q < $.length; q++) {
45752
45756
  for (var pe = $[q], ce = !1, Ie = 0; Ie < F.length; Ie++)
45753
- if (Y(pe, F[Ie])) {
45757
+ if (W(pe, F[Ie])) {
45754
45758
  ce = !0;
45755
45759
  break;
45756
45760
  }
@@ -45832,7 +45836,7 @@ function aU() {
45832
45836
  }).call(this, typeof lR < "u" ? lR : typeof self < "u" ? self : typeof window < "u" ? window : {});
45833
45837
  }, { "./utils": 6 }], 3: [function(i, s, c) {
45834
45838
  var f = i("./datetime"), d = i("./functions"), v = i("./utils"), b = i("./parser"), S = i("./signature"), E = function() {
45835
- var w = v.isNumeric, O = v.isArrayOfStrings, A = v.isArrayOfNumbers, L = v.createSequence, P = v.isSequence, j = v.isFunction, Y = v.isLambda, W = v.isIterable, k = v.isPromise, U = v.getFunctionArity, D = v.isDeepEqual, z = In(null);
45839
+ var w = v.isNumeric, O = v.isArrayOfStrings, A = v.isArrayOfNumbers, L = v.createSequence, P = v.isSequence, j = v.isFunction, W = v.isLambda, Y = v.isIterable, k = v.isPromise, U = v.getFunctionArity, D = v.isDeepEqual, z = In(null);
45836
45840
  async function J(B, ee, se) {
45837
45841
  var $, F = se.lookup(Symbol.for("jsonata.__evaluate_entry"));
45838
45842
  switch (F && await F(B, ee, se), B.type) {
@@ -46505,7 +46509,7 @@ function aU() {
46505
46509
  }
46506
46510
  async function it(B, ee, se, $) {
46507
46511
  var F;
46508
- for (F = await un(B, ee, se, $); Y(F) && F.thunk === !0; ) {
46512
+ for (F = await un(B, ee, se, $); W(F) && F.thunk === !0; ) {
46509
46513
  var q = await J(F.body.procedure, F.input, F.environment);
46510
46514
  F.body.procedure.type === "variable" && (q.token = F.body.procedure.value), q.position = F.body.procedure.position;
46511
46515
  for (var pe = [], ce = 0; ce < F.body.arguments.length; ce++)
@@ -46518,14 +46522,14 @@ function aU() {
46518
46522
  var F;
46519
46523
  try {
46520
46524
  var q = ee;
46521
- if (B && (q = cn(B.signature, ee, se)), Y(B))
46525
+ if (B && (q = cn(B.signature, ee, se)), W(B))
46522
46526
  F = await Rn(B, q);
46523
46527
  else if (B && B._jsonata_function === !0) {
46524
46528
  var pe = {
46525
46529
  environment: $,
46526
46530
  input: se
46527
46531
  };
46528
- F = B.implementation.apply(pe, q), W(F) && (F = F.next().value), k(F) && (F = await F);
46532
+ F = B.implementation.apply(pe, q), Y(F) && (F = F.next().value), k(F) && (F = await F);
46529
46533
  } else if (typeof B == "function")
46530
46534
  F = B.apply(se, q), k(F) && (F = await F);
46531
46535
  else
@@ -46564,7 +46568,7 @@ function aU() {
46564
46568
  position: B.position,
46565
46569
  token: B.procedure.steps[0].value
46566
46570
  };
46567
- if (Y(ce))
46571
+ if (W(ce))
46568
46572
  $ = ar(ce, F);
46569
46573
  else if (ce && ce._jsonata_function === !0)
46570
46574
  $ = ir(ce.implementation, F);
@@ -46912,12 +46916,12 @@ function aU() {
46912
46916
  r: "\r",
46913
46917
  t: " "
46914
46918
  }, S = function(w) {
46915
- var O = 0, A = w.length, L = function(Y, W) {
46916
- var k = { type: Y, value: W, position: O };
46919
+ var O = 0, A = w.length, L = function(W, Y) {
46920
+ var k = { type: W, value: Y, position: O };
46917
46921
  return k;
46918
46922
  }, P = function() {
46919
- for (var Y = O, W = 0, k, U, D = function(J) {
46920
- if (w.charAt(J) === "/" && W === 0) {
46923
+ for (var W = O, Y = 0, k, U, D = function(J) {
46924
+ if (w.charAt(J) === "/" && Y === 0) {
46921
46925
  for (var le = 0; w.charAt(J - (le + 1)) === "\\"; )
46922
46926
  le++;
46923
46927
  if (le % 2 === 0)
@@ -46927,69 +46931,69 @@ function aU() {
46927
46931
  }; O < A; ) {
46928
46932
  var z = w.charAt(O);
46929
46933
  if (D(O)) {
46930
- if (k = w.substring(Y, O), k === "")
46934
+ if (k = w.substring(W, O), k === "")
46931
46935
  throw {
46932
46936
  code: "S0301",
46933
46937
  stack: new Error().stack,
46934
46938
  position: O
46935
46939
  };
46936
- for (O++, z = w.charAt(O), Y = O; z === "i" || z === "m"; )
46940
+ for (O++, z = w.charAt(O), W = O; z === "i" || z === "m"; )
46937
46941
  O++, z = w.charAt(O);
46938
- return U = w.substring(Y, O) + "g", new RegExp(k, U);
46942
+ return U = w.substring(W, O) + "g", new RegExp(k, U);
46939
46943
  }
46940
- (z === "(" || z === "[" || z === "{") && w.charAt(O - 1) !== "\\" && W++, (z === ")" || z === "]" || z === "}") && w.charAt(O - 1) !== "\\" && W--, O++;
46944
+ (z === "(" || z === "[" || z === "{") && w.charAt(O - 1) !== "\\" && Y++, (z === ")" || z === "]" || z === "}") && w.charAt(O - 1) !== "\\" && Y--, O++;
46941
46945
  }
46942
46946
  throw {
46943
46947
  code: "S0302",
46944
46948
  stack: new Error().stack,
46945
46949
  position: O
46946
46950
  };
46947
- }, j = function(Y) {
46951
+ }, j = function(W) {
46948
46952
  if (O >= A) return null;
46949
- for (var W = w.charAt(O); O < A && `
46950
- \r\v`.indexOf(W) > -1; )
46951
- O++, W = w.charAt(O);
46952
- if (W === "/" && w.charAt(O + 1) === "*") {
46953
+ for (var Y = w.charAt(O); O < A && `
46954
+ \r\v`.indexOf(Y) > -1; )
46955
+ O++, Y = w.charAt(O);
46956
+ if (Y === "/" && w.charAt(O + 1) === "*") {
46953
46957
  var k = O;
46954
- for (O += 2, W = w.charAt(O); !(W === "*" && w.charAt(O + 1) === "/"); )
46955
- if (W = w.charAt(++O), O >= A)
46958
+ for (O += 2, Y = w.charAt(O); !(Y === "*" && w.charAt(O + 1) === "/"); )
46959
+ if (Y = w.charAt(++O), O >= A)
46956
46960
  throw {
46957
46961
  code: "S0106",
46958
46962
  stack: new Error().stack,
46959
46963
  position: k
46960
46964
  };
46961
- return O += 2, W = w.charAt(O), j(Y);
46965
+ return O += 2, Y = w.charAt(O), j(W);
46962
46966
  }
46963
- if (Y !== !0 && W === "/")
46967
+ if (W !== !0 && Y === "/")
46964
46968
  return O++, L("regex", P());
46965
- if (W === "." && w.charAt(O + 1) === ".")
46969
+ if (Y === "." && w.charAt(O + 1) === ".")
46966
46970
  return O += 2, L("operator", "..");
46967
- if (W === ":" && w.charAt(O + 1) === "=")
46971
+ if (Y === ":" && w.charAt(O + 1) === "=")
46968
46972
  return O += 2, L("operator", ":=");
46969
- if (W === "!" && w.charAt(O + 1) === "=")
46973
+ if (Y === "!" && w.charAt(O + 1) === "=")
46970
46974
  return O += 2, L("operator", "!=");
46971
- if (W === ">" && w.charAt(O + 1) === "=")
46975
+ if (Y === ">" && w.charAt(O + 1) === "=")
46972
46976
  return O += 2, L("operator", ">=");
46973
- if (W === "<" && w.charAt(O + 1) === "=")
46977
+ if (Y === "<" && w.charAt(O + 1) === "=")
46974
46978
  return O += 2, L("operator", "<=");
46975
- if (W === "*" && w.charAt(O + 1) === "*")
46979
+ if (Y === "*" && w.charAt(O + 1) === "*")
46976
46980
  return O += 2, L("operator", "**");
46977
- if (W === "~" && w.charAt(O + 1) === ">")
46981
+ if (Y === "~" && w.charAt(O + 1) === ">")
46978
46982
  return O += 2, L("operator", "~>");
46979
- if (W === "?" && w.charAt(O + 1) === ":")
46983
+ if (Y === "?" && w.charAt(O + 1) === ":")
46980
46984
  return O += 2, L("operator", "?:");
46981
- if (W === "?" && w.charAt(O + 1) === "?")
46985
+ if (Y === "?" && w.charAt(O + 1) === "?")
46982
46986
  return O += 2, L("operator", "??");
46983
- if (Object.prototype.hasOwnProperty.call(v, W))
46984
- return O++, L("operator", W);
46985
- if (W === '"' || W === "'") {
46986
- var U = W;
46987
+ if (Object.prototype.hasOwnProperty.call(v, Y))
46988
+ return O++, L("operator", Y);
46989
+ if (Y === '"' || Y === "'") {
46990
+ var U = Y;
46987
46991
  O++;
46988
46992
  for (var D = ""; O < A; ) {
46989
- if (W = w.charAt(O), W === "\\")
46990
- if (O++, W = w.charAt(O), Object.prototype.hasOwnProperty.call(b, W))
46991
- D += b[W];
46992
- else if (W === "u") {
46993
+ if (Y = w.charAt(O), Y === "\\")
46994
+ if (O++, Y = w.charAt(O), Object.prototype.hasOwnProperty.call(b, Y))
46995
+ D += b[Y];
46996
+ else if (Y === "u") {
46993
46997
  var z = w.substr(O + 1, 4);
46994
46998
  if (/^[0-9a-fA-F]+$/.test(z)) {
46995
46999
  var J = parseInt(z, 16);
@@ -47005,12 +47009,12 @@ function aU() {
47005
47009
  code: "S0103",
47006
47010
  stack: new Error().stack,
47007
47011
  position: O,
47008
- token: W
47012
+ token: Y
47009
47013
  };
47010
47014
  else {
47011
- if (W === U)
47015
+ if (Y === U)
47012
47016
  return O++, L("string", D);
47013
- D += W;
47017
+ D += Y;
47014
47018
  }
47015
47019
  O++;
47016
47020
  }
@@ -47033,7 +47037,7 @@ function aU() {
47033
47037
  };
47034
47038
  }
47035
47039
  var ie;
47036
- if (W === "`") {
47040
+ if (Y === "`") {
47037
47041
  O++;
47038
47042
  var xe = w.indexOf("`", O);
47039
47043
  if (xe !== -1)
@@ -47068,13 +47072,13 @@ function aU() {
47068
47072
  };
47069
47073
  return j;
47070
47074
  }, E = function(w, O) {
47071
- var A, L, P = {}, j = [], Y = function() {
47075
+ var A, L, P = {}, j = [], W = function() {
47072
47076
  var V = [];
47073
47077
  A.id !== "(end)" && V.push({ type: A.type, value: A.value, position: A.position });
47074
47078
  for (var G = L(); G !== null; )
47075
47079
  V.push(G), G = L();
47076
47080
  return V;
47077
- }, W = {
47081
+ }, Y = {
47078
47082
  nud: function() {
47079
47083
  var V = {
47080
47084
  code: "S0211",
@@ -47082,15 +47086,15 @@ function aU() {
47082
47086
  position: this.position
47083
47087
  };
47084
47088
  if (O)
47085
- return V.remaining = Y(), V.type = "error", j.push(V), V;
47089
+ return V.remaining = W(), V.type = "error", j.push(V), V;
47086
47090
  throw V.stack = new Error().stack, V;
47087
47091
  }
47088
47092
  }, k = function(V, G) {
47089
47093
  var Ce = P[V];
47090
- return G = G || 0, Ce ? G >= Ce.lbp && (Ce.lbp = G) : (Ce = Object.create(W), Ce.id = Ce.value = V, Ce.lbp = G, P[V] = Ce), Ce;
47094
+ return G = G || 0, Ce ? G >= Ce.lbp && (Ce.lbp = G) : (Ce = Object.create(Y), Ce.id = Ce.value = V, Ce.lbp = G, P[V] = Ce), Ce;
47091
47095
  }, U = function(V) {
47092
47096
  if (O) {
47093
- V.remaining = Y(), j.push(V);
47097
+ V.remaining = W(), j.push(V);
47094
47098
  var G = P["(error)"];
47095
47099
  return A = Object.create(G), A.error = V, A.type = "(error)", A;
47096
47100
  } else
@@ -47175,7 +47179,7 @@ function aU() {
47175
47179
  arguments: [V]
47176
47180
  }, this.then = V, this.else = z(0), this;
47177
47181
  }), he("(error)", 10, function(V) {
47178
- return this.lhs = V, this.error = A.error, this.remaining = Y(), this.type = "error", this;
47182
+ return this.lhs = V, this.error = A.error, this.remaining = W(), this.type = "error", this;
47179
47183
  }), N("*", function() {
47180
47184
  return this.type = "wildcard", this;
47181
47185
  }), N("**", function() {
@@ -47609,17 +47613,17 @@ function aU() {
47609
47613
  A.regex += L;
47610
47614
  break;
47611
47615
  case "(":
47612
- var Y = j(S, E, "(", ")"), W = S.substring(E + 1, Y);
47613
- if (W.indexOf("<") === -1)
47614
- O.regex = "[" + W + "m]";
47616
+ var W = j(S, E, "(", ")"), Y = S.substring(E + 1, W);
47617
+ if (Y.indexOf("<") === -1)
47618
+ O.regex = "[" + Y + "m]";
47615
47619
  else
47616
47620
  throw {
47617
47621
  code: "S0402",
47618
47622
  stack: new Error().stack,
47619
- value: W,
47623
+ value: Y,
47620
47624
  offset: E
47621
47625
  };
47622
- O.type = "(" + W + ")", E = Y, P();
47626
+ O.type = "(" + Y + ")", E = W, P();
47623
47627
  break;
47624
47628
  case "<":
47625
47629
  if (A.type === "a" || A.type === "f") {
@@ -47827,10 +47831,10 @@ function aU() {
47827
47831
  }
47828
47832
  return !1;
47829
47833
  }
47830
- function Y(k) {
47834
+ function W(k) {
47831
47835
  return typeof k == "object" && k !== null && "then" in k && typeof k.then == "function";
47832
47836
  }
47833
- function W(k) {
47837
+ function Y(k) {
47834
47838
  var U = [];
47835
47839
  for (let D of k)
47836
47840
  U.push(D);
@@ -47847,8 +47851,8 @@ function aU() {
47847
47851
  isIterable: P,
47848
47852
  getFunctionArity: O,
47849
47853
  isDeepEqual: j,
47850
- stringToArray: W,
47851
- isPromise: Y
47854
+ stringToArray: Y,
47855
+ isPromise: W
47852
47856
  };
47853
47857
  })();
47854
47858
  s.exports = f;
@@ -47957,7 +47961,7 @@ const WA = /* @__PURE__ */ KC(iU), lU = async (e, r, i) => {
47957
47961
  const s = r(i);
47958
47962
  return !(s == null || e.componentId === "checkbox-single" && s === !1 || typeof s == "string" && s.trim() === "" || Array.isArray(s) && s.length === 0);
47959
47963
  }, dU = ({ flow: e, isPreview: r, $bgColor: i, onSubmit: s, onNextStep: c, onPrevStep: f, onFormInit: d, shouldRedirect: v = !0, formidavimHost: b }) => {
47960
- const [S, E] = Jt(0), [w, O] = Jt([]), [A, L] = Jt(!0), { evaluateCondition: P } = sU(), { getFlowValue: j, getAllFlowData: Y, setDisableSubmitValue: W, getDisableSubmitValue: k, getFlowError: U, setCurrentFormValue: D } = Or(), z = Y(), J = Xs(/* @__PURE__ */ new Set()), le = async (be) => {
47964
+ const [S, E] = Jt(0), [w, O] = Jt([]), [A, L] = Jt(!0), { evaluateCondition: P } = sU(), { getFlowValue: j, getAllFlowData: W, setDisableSubmitValue: Y, getDisableSubmitValue: k, getFlowError: U, setCurrentFormValue: D } = Or(), z = W(), J = Xs(/* @__PURE__ */ new Set()), le = async (be) => {
47961
47965
  if (!be) return [];
47962
47966
  const Se = [];
47963
47967
  for (const ae of be) {
@@ -47995,9 +47999,9 @@ const WA = /* @__PURE__ */ KC(iU), lU = async (e, r, i) => {
47995
47999
  }, [e.flowForms, P]), gn(() => {
47996
48000
  if (!A && w.length > 0 && S < w.length) {
47997
48001
  const be = w[S], Se = (be == null ? void 0 : be.evaluatedFormComponents) || [], ae = K$(Se, j, U);
47998
- W(!ae);
48002
+ Y(!ae);
47999
48003
  }
48000
- }, [w, S, A, z, j, W]);
48004
+ }, [w, S, A, z, j, Y]);
48001
48005
  const he = w.length, N = w[S], ie = k();
48002
48006
  if (gn(() => {
48003
48007
  var be;
@@ -48012,7 +48016,7 @@ const WA = /* @__PURE__ */ KC(iU), lU = async (e, r, i) => {
48012
48016
  const xe = w[0] === N, fe = S === he - 1, Te = (N == null ? void 0 : N.evaluatedFormComponents) || [], ve = () => {
48013
48017
  if (K$(Te, j, U)) {
48014
48018
  if (N.submit) {
48015
- s({ flowData: Y(), flow: e }, v);
48019
+ s({ flowData: W(), flow: e }, v);
48016
48020
  return;
48017
48021
  }
48018
48022
  c && c({ flow: e, form: N }), S < he - 1 && (E((Se) => Se + 1), setTimeout(() => {
@@ -48124,7 +48128,7 @@ const WA = /* @__PURE__ */ KC(iU), lU = async (e, r, i) => {
48124
48128
  return console.error("Error processing flow config templates:", s), e;
48125
48129
  }
48126
48130
  }, qA = ({ data: e, config: r, isPreview: i, onSubmit: s, onNextStep: c, onPrevStep: f, onFlowInit: d, onFormInit: v, shouldRedirect: b, formidavimHost: S }) => {
48127
- const { resetAndSetFlowValues: E, generateFormDataFromFlow: w, setPatientValues: O, getFullPatient: A, setCurrentFlowValue: L } = Or(), [P, j] = Jt(null), [Y, W] = Jt(!0), [k, U] = Jt(!1), D = async (J, le = !1, he = !1) => {
48131
+ const { resetAndSetFlowValues: E, generateFormDataFromFlow: w, setPatientValues: O, getFullPatient: A, setCurrentFlowValue: L } = Or(), [P, j] = Jt(null), [W, Y] = Jt(!0), [k, U] = Jt(!1), D = async (J, le = !1, he = !1) => {
48128
48132
  try {
48129
48133
  const N = await pU(r, J);
48130
48134
  if (j(N), L(N), he && d && (r != null && r.id) && (r != null && r.slug) && d({ flow: r }), le) {
@@ -48140,13 +48144,13 @@ const WA = /* @__PURE__ */ KC(iU), lU = async (e, r, i) => {
48140
48144
  };
48141
48145
  gn(() => {
48142
48146
  (async () => {
48143
- W(!0), e && O(e), await D(e, !0, !0), U(!0), W(!1);
48147
+ Y(!0), e && O(e), await D(e, !0, !0), U(!0), Y(!1);
48144
48148
  })();
48145
48149
  }, [e, r]);
48146
48150
  const z = A();
48147
48151
  return gn(() => {
48148
48152
  k && z && D(z, !1, !1);
48149
- }, [z, k]), Y || !P ? /* @__PURE__ */ I.jsx("div", { children: "Processing form..." }) : /* @__PURE__ */ I.jsx(
48153
+ }, [z, k]), W || !P ? /* @__PURE__ */ I.jsx("div", { children: "Processing form..." }) : /* @__PURE__ */ I.jsx(
48150
48154
  dU,
48151
48155
  {
48152
48156
  flow: P,
@@ -48320,15 +48324,15 @@ const CU = ({ formComponent: e, isPreview: r, boundary: i, isVisible: s = !0, fo
48320
48324
  padding: 20px 0px 20px;
48321
48325
  `, TU = ({ children: e, $bgColor: r }) => /* @__PURE__ */ I.jsx(Ep, { $overflow: "visible", $position: "static", $xSmall: !0, id: "MainFlowContainer", $bgColor: r || "white", $bRad: "0px", $marginBottom: "80px", $marginBottomMd: "0px", children: /* @__PURE__ */ I.jsx(EU, { onSubmit: (i) => i.preventDefault(), children: e }) }), OU = ({ dataFetcher: e = () => {
48322
48326
  }, children: r, configFetcher: i, isPreview: s = !1, onSubmit: c = () => Promise.resolve(), formidavimHost: f, version: d, flowName: v = "", onNextStep: b, onPrevStep: S, onFlowInit: E, onFormInit: w, onConfigFetchError: O, shouldRedirect: A, onFormidavimFallback: L }) => {
48323
- const P = hv(f), [j, Y] = Jt({ config: null, data: null }), [W, k] = Jt(!0);
48327
+ const P = hv(f), [j, W] = Jt({ config: null, data: null }), [Y, k] = Jt(!0);
48324
48328
  if (gn(() => {
48325
48329
  k(!0), (i ? i() : P.flowControllerGetBySlug(v, d).then(({ data: ie }) => ie)).then(async (ie) => {
48326
48330
  const xe = e ? await e("flow") : null;
48327
- Y({ config: ie, data: xe }), k(!1);
48331
+ W({ config: ie, data: xe }), k(!1);
48328
48332
  }).catch((ie) => {
48329
48333
  console.warn("configFetcher failed", ie), O && O(ie), k(!1);
48330
48334
  });
48331
- }, [v, d]), W)
48335
+ }, [v, d]), Y)
48332
48336
  return null;
48333
48337
  if (!j.config)
48334
48338
  return L && L(), /* @__PURE__ */ I.jsx(I.Fragment, { children: r });
@@ -48355,9 +48359,9 @@ const CU = ({ formComponent: e, isPreview: r, boundary: i, isVisible: s = !0, fo
48355
48359
  }
48356
48360
  ) });
48357
48361
  }, LU = ({ dataFetcher: e = () => Promise.resolve(null), children: r, configFetcher: i, pipelineFetcher: s, isPreview: c = !1, onSubmit: f = () => Promise.resolve(), formidavimHost: d, version: v, flowName: b = "", onNextStep: S, onPrevStep: E, onFlowInit: w, onFormInit: O, onPipelineInit: A, onNoFlowsAvailable: L, onConfigFetchError: P, onFormidavimFallback: j }) => {
48358
- const Y = hv(d), [W, k] = Jt({ config: null, data: null }), [U, D] = Jt([]), [z, J] = Jt({}), [le, he] = Jt(!0), [N, ie] = Jt(!1), xe = Xs(/* @__PURE__ */ new Set());
48362
+ const W = hv(d), [Y, k] = Jt({ config: null, data: null }), [U, D] = Jt([]), [z, J] = Jt({}), [le, he] = Jt(!0), [N, ie] = Jt(!1), xe = Xs(/* @__PURE__ */ new Set());
48359
48363
  gn(() => {
48360
- he(!0), (s ? s() : Y.pipelineControllerGetBySlug(b, v).then(({ data: ue }) => ue)).then(async (ue) => {
48364
+ he(!0), (s ? s() : W.pipelineControllerGetBySlug(b, v).then(({ data: ue }) => ue)).then(async (ue) => {
48361
48365
  const V = e ? await e("pipeline") : null;
48362
48366
  if (k({ config: ue, data: V }), ue != null && ue.pipelineFlows && (await fe(ue.pipelineFlows, V.data)).length === 0) {
48363
48367
  L && L();
@@ -48391,7 +48395,7 @@ const CU = ({ formComponent: e, isPreview: r, boundary: i, isVisible: s = !0, fo
48391
48395
  };
48392
48396
  if (le)
48393
48397
  return null;
48394
- if (!W.config)
48398
+ if (!Y.config)
48395
48399
  return /* @__PURE__ */ I.jsx(
48396
48400
  OU,
48397
48401
  {
@@ -48409,21 +48413,21 @@ const CU = ({ formComponent: e, isPreview: r, boundary: i, isVisible: s = !0, fo
48409
48413
  children: r
48410
48414
  }
48411
48415
  );
48412
- const Te = (K) => K ? (ue) => K({ ...ue, pipeline: W.config, flow: z }) : void 0, ve = async (K) => {
48416
+ const Te = (K) => K ? (ue) => K({ ...ue, pipeline: Y.config, flow: z }) : void 0, ve = async (K) => {
48413
48417
  var ue;
48414
48418
  if (!N) {
48415
48419
  ie(!0);
48416
48420
  try {
48417
- const V = { ...K, pipeline: W.config }, G = await f(V), Ce = e ? await e("pipeline") : null;
48418
- if ((ue = W.config) != null && ue.pipelineFlows) {
48419
- const Ve = await fe(W.config.pipelineFlows, Ce.data, !1);
48421
+ const V = { ...K, pipeline: Y.config }, G = await f(V), Ce = e ? await e("pipeline") : null;
48422
+ if ((ue = Y.config) != null && ue.pipelineFlows) {
48423
+ const Ve = await fe(Y.config.pipelineFlows, Ce.data, !1);
48420
48424
  if (Ve.length === 0 && G && typeof G == "function") {
48421
- ie(!1), await G(W.config);
48425
+ ie(!1), await G(Y.config);
48422
48426
  return;
48423
48427
  }
48424
48428
  k((ze) => ({ ...ze, data: Ce })), D(Ve);
48425
48429
  } else if (k((Ve) => ({ ...Ve, data: Ce })), G && typeof G == "function") {
48426
- ie(!1), await G(W.config);
48430
+ ie(!1), await G(Y.config);
48427
48431
  return;
48428
48432
  }
48429
48433
  } finally {
@@ -48442,7 +48446,7 @@ const CU = ({ formComponent: e, isPreview: r, boundary: i, isVisible: s = !0, fo
48442
48446
  return /* @__PURE__ */ I.jsx(QA, { children: /* @__PURE__ */ I.jsx(
48443
48447
  qA,
48444
48448
  {
48445
- data: W.data,
48449
+ data: Y.data,
48446
48450
  isPreview: c,
48447
48451
  config: z,
48448
48452
  onSubmit: ve,