@justeattakeaway/pie-modal 0.12.0 → 0.14.0

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.
package/dist/react.js CHANGED
@@ -1,25 +1,25 @@
1
- import { PieModal as Nr } from "./index.js";
1
+ import { PieModal as Mr } from "./index.js";
2
2
  import "lit";
3
3
  import "lit/static-html.js";
4
4
  import "lit/decorators.js";
5
5
  import "lit/decorators/property.js";
6
- function Fr(g, c) {
6
+ function Nr(g, c) {
7
7
  for (var U = 0; U < c.length; U++) {
8
- const T = c[U];
9
- if (typeof T != "string" && !Array.isArray(T)) {
10
- for (const A in T)
8
+ const k = c[U];
9
+ if (typeof k != "string" && !Array.isArray(k)) {
10
+ for (const A in k)
11
11
  if (A !== "default" && !(A in g)) {
12
- const k = Object.getOwnPropertyDescriptor(T, A);
13
- k && Object.defineProperty(g, A, k.get ? k : {
12
+ const T = Object.getOwnPropertyDescriptor(k, A);
13
+ T && Object.defineProperty(g, A, T.get ? T : {
14
14
  enumerable: !0,
15
- get: () => T[A]
15
+ get: () => k[A]
16
16
  });
17
17
  }
18
18
  }
19
19
  }
20
20
  return Object.freeze(Object.defineProperty(g, Symbol.toStringTag, { value: "Module" }));
21
21
  }
22
- function Mr(g) {
22
+ function Fr(g) {
23
23
  return g && g.__esModule && Object.prototype.hasOwnProperty.call(g, "default") ? g.default : g;
24
24
  }
25
25
  var Ve = { exports: {} }, p = {};
@@ -32,12 +32,12 @@ var Ve = { exports: {} }, p = {};
32
32
  * This source code is licensed under the MIT license found in the
33
33
  * LICENSE file in the root directory of this source tree.
34
34
  */
35
- var Ct;
35
+ var wt;
36
36
  function Lr() {
37
- if (Ct)
37
+ if (wt)
38
38
  return p;
39
- Ct = 1;
40
- var g = Symbol.for("react.element"), c = Symbol.for("react.portal"), U = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), V = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), B = Symbol.for("react.suspense"), F = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), H = Symbol.iterator;
39
+ wt = 1;
40
+ var g = Symbol.for("react.element"), c = Symbol.for("react.portal"), U = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), V = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), B = Symbol.for("react.suspense"), N = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), H = Symbol.iterator;
41
41
  function J(r) {
42
42
  return r === null || typeof r != "object" ? null : (r = H && r[H] || r["@@iterator"], typeof r == "function" ? r : null);
43
43
  }
@@ -57,13 +57,13 @@ function Lr() {
57
57
  }, Y.prototype.forceUpdate = function(r) {
58
58
  this.updater.enqueueForceUpdate(this, r, "forceUpdate");
59
59
  };
60
- function M() {
60
+ function F() {
61
61
  }
62
- M.prototype = Y.prototype;
62
+ F.prototype = Y.prototype;
63
63
  function W(r, u, d) {
64
64
  this.props = r, this.context = u, this.refs = G, this.updater = d || D;
65
65
  }
66
- var K = W.prototype = new M();
66
+ var K = W.prototype = new F();
67
67
  K.constructor = W, P(K, Y.prototype), K.isPureReactComponent = !0;
68
68
  var Q = Array.isArray, j = Object.prototype.hasOwnProperty, z = { current: null }, X = { key: !0, ref: !0, __self: !0, __source: !0 };
69
69
  function te(r, u, d) {
@@ -90,7 +90,7 @@ function Lr() {
90
90
  function ie(r) {
91
91
  return typeof r == "object" && r !== null && r.$$typeof === g;
92
92
  }
93
- function Te(r) {
93
+ function ke(r) {
94
94
  var u = { "=": "=0", ":": "=2" };
95
95
  return "$" + r.replace(/[=:]/g, function(d) {
96
96
  return u[d];
@@ -98,7 +98,7 @@ function Lr() {
98
98
  }
99
99
  var ve = /\/+/g;
100
100
  function se(r, u) {
101
- return typeof r == "object" && r !== null && r.key != null ? Te("" + r.key) : u.toString(36);
101
+ return typeof r == "object" && r !== null && r.key != null ? ke("" + r.key) : u.toString(36);
102
102
  }
103
103
  function ne(r, u, d, h, v) {
104
104
  var _ = typeof r;
@@ -175,7 +175,7 @@ function Lr() {
175
175
  if (!ie(r))
176
176
  throw Error("React.Children.only expected to receive a single React element child.");
177
177
  return r;
178
- } }, p.Component = Y, p.Fragment = U, p.Profiler = A, p.PureComponent = W, p.StrictMode = T, p.Suspense = B, p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ye, p.cloneElement = function(r, u, d) {
178
+ } }, p.Component = Y, p.Fragment = U, p.Profiler = A, p.PureComponent = W, p.StrictMode = k, p.Suspense = B, p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ye, p.cloneElement = function(r, u, d) {
179
179
  if (r == null)
180
180
  throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + r + ".");
181
181
  var h = P({}, r.props), v = r.key, _ = r.ref, S = r._owner;
@@ -196,7 +196,7 @@ function Lr() {
196
196
  }
197
197
  return { $$typeof: g, type: r.type, key: v, ref: _, props: h, _owner: S };
198
198
  }, p.createContext = function(r) {
199
- return r = { $$typeof: V, _currentValue: r, _currentValue2: r, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, r.Provider = { $$typeof: k, _context: r }, r.Consumer = r;
199
+ return r = { $$typeof: V, _currentValue: r, _currentValue2: r, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, r.Provider = { $$typeof: T, _context: r }, r.Consumer = r;
200
200
  }, p.createElement = te, p.createFactory = function(r) {
201
201
  var u = te.bind(null, r);
202
202
  return u.type = r, u;
@@ -205,9 +205,9 @@ function Lr() {
205
205
  }, p.forwardRef = function(r) {
206
206
  return { $$typeof: I, render: r };
207
207
  }, p.isValidElement = ie, p.lazy = function(r) {
208
- return { $$typeof: N, _payload: { _status: -1, _result: r }, _init: Z };
208
+ return { $$typeof: M, _payload: { _status: -1, _result: r }, _init: Z };
209
209
  }, p.memo = function(r, u) {
210
- return { $$typeof: F, type: r, compare: u === void 0 ? null : u };
210
+ return { $$typeof: N, type: r, compare: u === void 0 ? null : u };
211
211
  }, p.startTransition = function(r) {
212
212
  var u = re.transition;
213
213
  re.transition = {};
@@ -265,11 +265,11 @@ function xr() {
265
265
  return St || (St = 1, function(g, c) {
266
266
  process.env.NODE_ENV !== "production" && function() {
267
267
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
268
- var U = "18.2.0", T = Symbol.for("react.element"), A = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), B = Symbol.for("react.provider"), F = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), J = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), G = Symbol.for("react.offscreen"), Y = Symbol.iterator, M = "@@iterator";
268
+ var U = "18.2.0", k = Symbol.for("react.element"), A = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), B = Symbol.for("react.provider"), N = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), J = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), G = Symbol.for("react.offscreen"), Y = Symbol.iterator, F = "@@iterator";
269
269
  function W(e) {
270
270
  if (e === null || typeof e != "object")
271
271
  return null;
272
- var t = Y && e[Y] || e[M];
272
+ var t = Y && e[Y] || e[F];
273
273
  return typeof t == "function" ? t : null;
274
274
  }
275
275
  var K = {
@@ -303,7 +303,7 @@ function xr() {
303
303
  var t = X.getCurrentStack;
304
304
  return t && (e += t() || ""), e;
305
305
  };
306
- var ie = !1, Te = !1, ve = !1, se = !1, ne = !1, q = {
306
+ var ie = !1, ke = !1, ve = !1, se = !1, ne = !1, q = {
307
307
  ReactCurrentDispatcher: K,
308
308
  ReactCurrentBatchConfig: Q,
309
309
  ReactCurrentOwner: z
@@ -434,9 +434,9 @@ function xr() {
434
434
  function L(e, t, n) {
435
435
  this.props = e, this.context = t, this.refs = h, this.updater = n || u;
436
436
  }
437
- var ke = L.prototype = new E();
438
- ke.constructor = L, d(ke, v.prototype), ke.isPureReactComponent = !0;
439
- function kt() {
437
+ var Te = L.prototype = new E();
438
+ Te.constructor = L, d(Te, v.prototype), Te.isPureReactComponent = !0;
439
+ function Tt() {
440
440
  var e = {
441
441
  current: null
442
442
  };
@@ -484,7 +484,7 @@ function xr() {
484
484
  if (typeof e == "string")
485
485
  return e;
486
486
  switch (e) {
487
- case k:
487
+ case T:
488
488
  return "Fragment";
489
489
  case A:
490
490
  return "Portal";
@@ -499,13 +499,13 @@ function xr() {
499
499
  }
500
500
  if (typeof e == "object")
501
501
  switch (e.$$typeof) {
502
- case F:
502
+ case N:
503
503
  var t = e;
504
504
  return Ye(t) + ".Consumer";
505
505
  case B:
506
506
  var n = e;
507
507
  return Ye(n._context) + ".Provider";
508
- case N:
508
+ case M:
509
509
  return Dt(e, e.render, "ForwardRef");
510
510
  case D:
511
511
  var a = e.displayName || null;
@@ -562,7 +562,7 @@ function xr() {
562
562
  configurable: !0
563
563
  });
564
564
  }
565
- function Nt(e) {
565
+ function Mt(e) {
566
566
  if (typeof e.ref == "string" && z.current && e.__self && z.current.stateNode !== e.__self) {
567
567
  var t = ee(z.current.type);
568
568
  Pe[t] || (l('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', t, e.ref), Pe[t] = !0);
@@ -571,7 +571,7 @@ function xr() {
571
571
  var je = function(e, t, n, a, o, s, i) {
572
572
  var f = {
573
573
  // This tag allows us to uniquely identify this as a React Element
574
- $$typeof: T,
574
+ $$typeof: k,
575
575
  // Built-in properties that belong on the element
576
576
  type: e,
577
577
  key: t,
@@ -597,10 +597,10 @@ function xr() {
597
597
  value: o
598
598
  }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
599
599
  };
600
- function Ft(e, t, n) {
600
+ function Nt(e, t, n) {
601
601
  var a, o = {}, s = null, i = null, f = null, y = null;
602
602
  if (t != null) {
603
- qe(t) && (i = t.ref, Nt(t)), Ge(t) && (me(t.key), s = "" + t.key), f = t.__self === void 0 ? null : t.__self, y = t.__source === void 0 ? null : t.__source;
603
+ qe(t) && (i = t.ref, Mt(t)), Ge(t) && (me(t.key), s = "" + t.key), f = t.__self === void 0 ? null : t.__self, y = t.__source === void 0 ? null : t.__source;
604
604
  for (a in t)
605
605
  ce.call(t, a) && !ze.hasOwnProperty(a) && (o[a] = t[a]);
606
606
  }
@@ -608,14 +608,14 @@ function xr() {
608
608
  if (m === 1)
609
609
  o.children = n;
610
610
  else if (m > 1) {
611
- for (var R = Array(m), w = 0; w < m; w++)
612
- R[w] = arguments[w + 2];
611
+ for (var R = Array(m), C = 0; C < m; C++)
612
+ R[C] = arguments[C + 2];
613
613
  Object.freeze && Object.freeze(R), o.children = R;
614
614
  }
615
615
  if (e && e.defaultProps) {
616
- var C = e.defaultProps;
617
- for (a in C)
618
- o[a] === void 0 && (o[a] = C[a]);
616
+ var w = e.defaultProps;
617
+ for (a in w)
618
+ o[a] === void 0 && (o[a] = w[a]);
619
619
  }
620
620
  if (s || i) {
621
621
  var O = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
@@ -623,7 +623,7 @@ function xr() {
623
623
  }
624
624
  return je(e, s, i, f, y, z.current, o);
625
625
  }
626
- function Mt(e, t) {
626
+ function Ft(e, t) {
627
627
  var n = je(e.type, t, e.ref, e._self, e._source, e._owner, e.props);
628
628
  return n;
629
629
  }
@@ -638,18 +638,18 @@ function xr() {
638
638
  for (a in t)
639
639
  ce.call(t, a) && !ze.hasOwnProperty(a) && (t[a] === void 0 && R !== void 0 ? o[a] = R[a] : o[a] = t[a]);
640
640
  }
641
- var w = arguments.length - 2;
642
- if (w === 1)
641
+ var C = arguments.length - 2;
642
+ if (C === 1)
643
643
  o.children = n;
644
- else if (w > 1) {
645
- for (var C = Array(w), O = 0; O < w; O++)
646
- C[O] = arguments[O + 2];
647
- o.children = C;
644
+ else if (C > 1) {
645
+ for (var w = Array(C), O = 0; O < C; O++)
646
+ w[O] = arguments[O + 2];
647
+ o.children = w;
648
648
  }
649
649
  return je(e.type, s, i, f, y, m, o);
650
650
  }
651
651
  function ae(e) {
652
- return typeof e == "object" && e !== null && e.$$typeof === T;
652
+ return typeof e == "object" && e !== null && e.$$typeof === k;
653
653
  }
654
654
  var Ke = ".", xt = ":";
655
655
  function Ut(e) {
@@ -682,7 +682,7 @@ function xr() {
682
682
  break;
683
683
  case "object":
684
684
  switch (e.$$typeof) {
685
- case T:
685
+ case k:
686
686
  case A:
687
687
  i = !0;
688
688
  }
@@ -695,7 +695,7 @@ function xr() {
695
695
  return Ir;
696
696
  });
697
697
  } else
698
- y != null && (ae(y) && (y.key && (!f || f.key !== y.key) && me(y.key), y = Mt(
698
+ y != null && (ae(y) && (y.key && (!f || f.key !== y.key) && me(y.key), y = Ft(
699
699
  y,
700
700
  // Keep both the (mapped) and old keys if they differ, just as
701
701
  // traverseAllChildren used to do for objects as children
@@ -708,20 +708,20 @@ function xr() {
708
708
  )), t.push(y));
709
709
  return 1;
710
710
  }
711
- var w, C, O = 0, $ = a === "" ? Ke : a + xt;
711
+ var C, w, O = 0, $ = a === "" ? Ke : a + xt;
712
712
  if (he(e))
713
713
  for (var Oe = 0; Oe < e.length; Oe++)
714
- w = e[Oe], C = $ + Ae(w, Oe), O += ge(w, t, n, C, o);
714
+ C = e[Oe], w = $ + Ae(C, Oe), O += ge(C, t, n, w, o);
715
715
  else {
716
716
  var Ue = W(e);
717
717
  if (typeof Ue == "function") {
718
718
  var Et = e;
719
719
  Ue === Et.entries && (Qe || Z("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Qe = !0);
720
720
  for (var Dr = Ue.call(Et), Rt, $r = 0; !(Rt = Dr.next()).done; )
721
- w = Rt.value, C = $ + Ae(w, $r++), O += ge(w, t, n, C, o);
721
+ C = Rt.value, w = $ + Ae(C, $r++), O += ge(C, t, n, w, o);
722
722
  } else if (s === "object") {
723
- var wt = String(e);
724
- throw new Error("Objects are not valid as a React child (found: " + (wt === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : wt) + "). If you meant to render a collection of children, use an array instead.");
723
+ var Ct = String(e);
724
+ throw new Error("Objects are not valid as a React child (found: " + (Ct === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : Ct) + "). If you meant to render a collection of children, use an array instead.");
725
725
  }
726
726
  }
727
727
  return O;
@@ -757,7 +757,7 @@ function xr() {
757
757
  }
758
758
  function Ht(e) {
759
759
  var t = {
760
- $$typeof: F,
760
+ $$typeof: N,
761
761
  // As a workaround to support multiple concurrent renderers, we categorize
762
762
  // some renderers as primary and others as secondary. We only expect
763
763
  // there to be two concurrent renderers at most: React Native (primary) and
@@ -782,7 +782,7 @@ function xr() {
782
782
  var n = !1, a = !1, o = !1;
783
783
  {
784
784
  var s = {
785
- $$typeof: F,
785
+ $$typeof: N,
786
786
  _context: t
787
787
  };
788
788
  Object.defineProperties(s, {
@@ -910,7 +910,7 @@ Your code should look like:
910
910
  function Qt(e) {
911
911
  e != null && e.$$typeof === D ? l("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? l("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && l("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && l("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
912
912
  var t = {
913
- $$typeof: N,
913
+ $$typeof: M,
914
914
  render: e
915
915
  };
916
916
  {
@@ -931,7 +931,7 @@ Your code should look like:
931
931
  var Ze;
932
932
  Ze = Symbol.for("react.module.reference");
933
933
  function et(e) {
934
- return !!(typeof e == "string" || typeof e == "function" || e === k || e === I || ne || e === V || e === H || e === J || se || e === G || ie || Te || ve || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === D || e.$$typeof === B || e.$$typeof === F || e.$$typeof === N || // This needs to include all possible module reference object
934
+ return !!(typeof e == "string" || typeof e == "function" || e === T || e === I || ne || e === V || e === H || e === J || se || e === G || ie || ke || ve || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === D || e.$$typeof === B || e.$$typeof === N || e.$$typeof === M || // This needs to include all possible module reference object
935
935
  // types supported by any Flight configuration anywhere since
936
936
  // we don't know which Flight build this will end up being used
937
937
  // with.
@@ -1109,13 +1109,13 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1109
1109
  ` + Ie + e;
1110
1110
  }
1111
1111
  }
1112
- var Ne = !1, Ee;
1112
+ var Me = !1, Ee;
1113
1113
  {
1114
1114
  var yr = typeof WeakMap == "function" ? WeakMap : Map;
1115
1115
  Ee = new yr();
1116
1116
  }
1117
1117
  function ct(e, t) {
1118
- if (!e || Ne)
1118
+ if (!e || Me)
1119
1119
  return "";
1120
1120
  {
1121
1121
  var n = Ee.get(e);
@@ -1123,7 +1123,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1123
1123
  return n;
1124
1124
  }
1125
1125
  var a;
1126
- Ne = !0;
1126
+ Me = !0;
1127
1127
  var o = Error.prepareStackTrace;
1128
1128
  Error.prepareStackTrace = void 0;
1129
1129
  var s;
@@ -1171,18 +1171,18 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1171
1171
  if (m !== 1 || R !== 1)
1172
1172
  do
1173
1173
  if (m--, R--, R < 0 || f[m] !== y[R]) {
1174
- var w = `
1174
+ var C = `
1175
1175
  ` + f[m].replace(" at new ", " at ");
1176
- return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && Ee.set(e, w), w;
1176
+ return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && Ee.set(e, C), C;
1177
1177
  }
1178
1178
  while (m >= 1 && R >= 0);
1179
1179
  break;
1180
1180
  }
1181
1181
  }
1182
1182
  } finally {
1183
- Ne = !1, $e.current = s, vr(), Error.prepareStackTrace = o;
1183
+ Me = !1, $e.current = s, vr(), Error.prepareStackTrace = o;
1184
1184
  }
1185
- var C = e ? e.displayName || e.name : "", O = C ? be(C) : "";
1185
+ var w = e ? e.displayName || e.name : "", O = w ? be(w) : "";
1186
1186
  return typeof e == "function" && Ee.set(e, O), O;
1187
1187
  }
1188
1188
  function hr(e, t, n) {
@@ -1207,7 +1207,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1207
1207
  }
1208
1208
  if (typeof e == "object")
1209
1209
  switch (e.$$typeof) {
1210
- case N:
1210
+ case M:
1211
1211
  return hr(e.render);
1212
1212
  case D:
1213
1213
  return Re(e.type, t, n);
@@ -1222,7 +1222,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1222
1222
  return "";
1223
1223
  }
1224
1224
  var lt = {}, ft = q.ReactDebugCurrentFrame;
1225
- function we(e) {
1225
+ function Ce(e) {
1226
1226
  if (e) {
1227
1227
  var t = e._owner, n = Re(e.type, e._source, t ? t.type : null);
1228
1228
  ft.setExtraStackFrame(n);
@@ -1244,7 +1244,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1244
1244
  } catch (m) {
1245
1245
  f = m;
1246
1246
  }
1247
- f && !(f instanceof Error) && (we(o), l("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", n, i, typeof f), we(null)), f instanceof Error && !(f.message in lt) && (lt[f.message] = !0, we(o), l("Failed %s type: %s", n, f.message), we(null));
1247
+ f && !(f instanceof Error) && (Ce(o), l("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", n, i, typeof f), Ce(null)), f instanceof Error && !(f.message in lt) && (lt[f.message] = !0, Ce(o), l("Failed %s type: %s", n, f.message), Ce(null));
1248
1248
  }
1249
1249
  }
1250
1250
  }
@@ -1255,8 +1255,8 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
1255
1255
  } else
1256
1256
  pe(null);
1257
1257
  }
1258
- var Fe;
1259
- Fe = !1;
1258
+ var Ne;
1259
+ Ne = !1;
1260
1260
  function dt() {
1261
1261
  if (z.current) {
1262
1262
  var e = ee(z.current.type);
@@ -1326,7 +1326,7 @@ Check the top-level render call using <` + n + ">.");
1326
1326
  var n;
1327
1327
  if (typeof t == "function")
1328
1328
  n = t.propTypes;
1329
- else if (typeof t == "object" && (t.$$typeof === N || // Note: Memo only checks outer props here.
1329
+ else if (typeof t == "object" && (t.$$typeof === M || // Note: Memo only checks outer props here.
1330
1330
  // Inner props are checked in the reconciler.
1331
1331
  t.$$typeof === D))
1332
1332
  n = t.propTypes;
@@ -1335,8 +1335,8 @@ Check the top-level render call using <` + n + ">.");
1335
1335
  if (n) {
1336
1336
  var a = ee(t);
1337
1337
  gr(n, e.props, "prop", a, e);
1338
- } else if (t.PropTypes !== void 0 && !Fe) {
1339
- Fe = !0;
1338
+ } else if (t.PropTypes !== void 0 && !Ne) {
1339
+ Ne = !0;
1340
1340
  var o = ee(t);
1341
1341
  l("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
1342
1342
  }
@@ -1363,18 +1363,18 @@ Check the top-level render call using <` + n + ">.");
1363
1363
  var s = br(t);
1364
1364
  s ? o += s : o += dt();
1365
1365
  var i;
1366
- e === null ? i = "null" : he(e) ? i = "array" : e !== void 0 && e.$$typeof === T ? (i = "<" + (ee(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : i = typeof e, l("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", i, o);
1366
+ e === null ? i = "null" : he(e) ? i = "array" : e !== void 0 && e.$$typeof === k ? (i = "<" + (ee(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : i = typeof e, l("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", i, o);
1367
1367
  }
1368
- var f = Ft.apply(this, arguments);
1368
+ var f = Nt.apply(this, arguments);
1369
1369
  if (f == null)
1370
1370
  return f;
1371
1371
  if (a)
1372
1372
  for (var y = 2; y < arguments.length; y++)
1373
1373
  yt(arguments[y], e);
1374
- return e === k ? Rr(f) : ht(f), f;
1374
+ return e === T ? Rr(f) : ht(f), f;
1375
1375
  }
1376
1376
  var gt = !1;
1377
- function wr(e) {
1377
+ function Cr(e) {
1378
1378
  var t = mt.bind(null, e);
1379
1379
  return t.type = e, gt || (gt = !0, Z("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(t, "type", {
1380
1380
  enumerable: !1,
@@ -1385,7 +1385,7 @@ Check the top-level render call using <` + n + ">.");
1385
1385
  }
1386
1386
  }), t;
1387
1387
  }
1388
- function Cr(e, t, n) {
1388
+ function wr(e, t, n) {
1389
1389
  for (var a = Lt.apply(this, arguments), o = 2; o < arguments.length; o++)
1390
1390
  yt(arguments[o], a.type);
1391
1391
  return ht(a), a;
@@ -1404,23 +1404,23 @@ Check the top-level render call using <` + n + ">.");
1404
1404
  }
1405
1405
  }
1406
1406
  }
1407
- var _t = !1, Ce = null;
1407
+ var _t = !1, we = null;
1408
1408
  function Or(e) {
1409
- if (Ce === null)
1409
+ if (we === null)
1410
1410
  try {
1411
1411
  var t = ("require" + Math.random()).slice(0, 7), n = g && g[t];
1412
- Ce = n.call(g, "timers").setImmediate;
1412
+ we = n.call(g, "timers").setImmediate;
1413
1413
  } catch {
1414
- Ce = function(o) {
1414
+ we = function(o) {
1415
1415
  _t === !1 && (_t = !0, typeof MessageChannel > "u" && l("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
1416
1416
  var s = new MessageChannel();
1417
1417
  s.port1.onmessage = o, s.port2.postMessage(void 0);
1418
1418
  };
1419
1419
  }
1420
- return Ce(e);
1420
+ return we(e);
1421
1421
  }
1422
1422
  var ue = 0, bt = !1;
1423
- function Tr(e) {
1423
+ function kr(e) {
1424
1424
  {
1425
1425
  var t = ue;
1426
1426
  ue++, j.current === null && (j.current = []);
@@ -1430,16 +1430,16 @@ Check the top-level render call using <` + n + ">.");
1430
1430
  var o = j.current;
1431
1431
  o !== null && (j.didScheduleLegacyUpdate = !1, xe(o));
1432
1432
  }
1433
- } catch (C) {
1434
- throw Se(t), C;
1433
+ } catch (w) {
1434
+ throw Se(t), w;
1435
1435
  } finally {
1436
1436
  j.isBatchingLegacy = n;
1437
1437
  }
1438
1438
  if (a !== null && typeof a == "object" && typeof a.then == "function") {
1439
1439
  var s = a, i = !1, f = {
1440
- then: function(C, O) {
1440
+ then: function(w, O) {
1441
1441
  i = !0, s.then(function($) {
1442
- Se(t), ue === 0 ? Me($, C, O) : C($);
1442
+ Se(t), ue === 0 ? Fe($, w, O) : w($);
1443
1443
  }, function($) {
1444
1444
  Se(t), O($);
1445
1445
  });
@@ -1455,18 +1455,18 @@ Check the top-level render call using <` + n + ">.");
1455
1455
  var m = j.current;
1456
1456
  m !== null && (xe(m), j.current = null);
1457
1457
  var R = {
1458
- then: function(C, O) {
1459
- j.current === null ? (j.current = [], Me(y, C, O)) : C(y);
1458
+ then: function(w, O) {
1459
+ j.current === null ? (j.current = [], Fe(y, w, O)) : w(y);
1460
1460
  }
1461
1461
  };
1462
1462
  return R;
1463
1463
  } else {
1464
- var w = {
1465
- then: function(C, O) {
1466
- C(y);
1464
+ var C = {
1465
+ then: function(w, O) {
1466
+ w(y);
1467
1467
  }
1468
1468
  };
1469
- return w;
1469
+ return C;
1470
1470
  }
1471
1471
  }
1472
1472
  }
@@ -1474,13 +1474,13 @@ Check the top-level render call using <` + n + ">.");
1474
1474
  function Se(e) {
1475
1475
  e !== ue - 1 && l("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), ue = e;
1476
1476
  }
1477
- function Me(e, t, n) {
1477
+ function Fe(e, t, n) {
1478
1478
  {
1479
1479
  var a = j.current;
1480
1480
  if (a !== null)
1481
1481
  try {
1482
1482
  xe(a), Or(function() {
1483
- a.length === 0 ? (j.current = null, t(e)) : Me(e, t, n);
1483
+ a.length === 0 ? (j.current = null, t(e)) : Fe(e, t, n);
1484
1484
  });
1485
1485
  } catch (o) {
1486
1486
  n(o);
@@ -1509,45 +1509,45 @@ Check the top-level render call using <` + n + ">.");
1509
1509
  }
1510
1510
  }
1511
1511
  }
1512
- var kr = mt, Pr = Cr, jr = wr, Ar = {
1512
+ var Tr = mt, Pr = wr, jr = Cr, Ar = {
1513
1513
  map: _e,
1514
1514
  forEach: Yt,
1515
1515
  count: Wt,
1516
1516
  toArray: zt,
1517
1517
  only: Bt
1518
1518
  };
1519
- c.Children = Ar, c.Component = v, c.Fragment = k, c.Profiler = I, c.PureComponent = L, c.StrictMode = V, c.Suspense = H, c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = q, c.cloneElement = Pr, c.createContext = Ht, c.createElement = kr, c.createFactory = jr, c.createRef = kt, c.forwardRef = Qt, c.isValidElement = ae, c.lazy = Kt, c.memo = Jt, c.startTransition = Sr, c.unstable_act = Tr, c.useCallback = or, c.useContext = Xt, c.useDebugValue = sr, c.useDeferredValue = lr, c.useEffect = rr, c.useId = fr, c.useImperativeHandle = ir, c.useInsertionEffect = nr, c.useLayoutEffect = ar, c.useMemo = ur, c.useReducer = er, c.useRef = tr, c.useState = Zt, c.useSyncExternalStore = dr, c.useTransition = cr, c.version = U, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1519
+ c.Children = Ar, c.Component = v, c.Fragment = T, c.Profiler = I, c.PureComponent = L, c.StrictMode = V, c.Suspense = H, c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = q, c.cloneElement = Pr, c.createContext = Ht, c.createElement = Tr, c.createFactory = jr, c.createRef = Tt, c.forwardRef = Qt, c.isValidElement = ae, c.lazy = Kt, c.memo = Jt, c.startTransition = Sr, c.unstable_act = kr, c.useCallback = or, c.useContext = Xt, c.useDebugValue = sr, c.useDeferredValue = lr, c.useEffect = rr, c.useId = fr, c.useImperativeHandle = ir, c.useInsertionEffect = nr, c.useLayoutEffect = ar, c.useMemo = ur, c.useReducer = er, c.useRef = tr, c.useState = Zt, c.useSyncExternalStore = dr, c.useTransition = cr, c.version = U, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1520
1520
  }();
1521
1521
  }(de, de.exports)), de.exports;
1522
1522
  }
1523
1523
  process.env.NODE_ENV === "production" ? Ve.exports = Lr() : Ve.exports = xr();
1524
- var Tt = Ve.exports;
1525
- const Ur = /* @__PURE__ */ Mr(Tt), Vr = /* @__PURE__ */ Fr({
1524
+ var kt = Ve.exports;
1525
+ const Ur = /* @__PURE__ */ Fr(kt), Vr = /* @__PURE__ */ Nr({
1526
1526
  __proto__: null,
1527
1527
  default: Ur
1528
- }, [Tt]);
1528
+ }, [kt]);
1529
1529
  /**
1530
1530
  * @license
1531
1531
  * Copyright 2018 Google LLC
1532
1532
  * SPDX-License-Identifier: BSD-3-Clause
1533
1533
  */
1534
- const Wr = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), Ot = /* @__PURE__ */ new WeakMap(), Yr = (g, c, U, T, A) => {
1535
- const k = A == null ? void 0 : A[c];
1536
- k === void 0 || U === T ? U == null && c in HTMLElement.prototype ? g.removeAttribute(c) : g[c] = U : ((V, I, B) => {
1537
- let F = Ot.get(V);
1538
- F === void 0 && Ot.set(V, F = /* @__PURE__ */ new Map());
1539
- let N = F.get(I);
1540
- B !== void 0 ? N === void 0 ? (F.set(I, N = { handleEvent: B }), V.addEventListener(I, N)) : N.handleEvent = B : N !== void 0 && (F.delete(I), V.removeEventListener(I, N));
1541
- })(g, k, U);
1534
+ const Wr = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), Ot = /* @__PURE__ */ new WeakMap(), Yr = (g, c, U, k, A) => {
1535
+ const T = A == null ? void 0 : A[c];
1536
+ T === void 0 || U === k ? U == null && c in HTMLElement.prototype ? g.removeAttribute(c) : g[c] = U : ((V, I, B) => {
1537
+ let N = Ot.get(V);
1538
+ N === void 0 && Ot.set(V, N = /* @__PURE__ */ new Map());
1539
+ let M = N.get(I);
1540
+ B !== void 0 ? M === void 0 ? (N.set(I, M = { handleEvent: B }), V.addEventListener(I, M)) : M.handleEvent = B : M !== void 0 && (N.delete(I), V.removeEventListener(I, M));
1541
+ })(g, T, U);
1542
1542
  };
1543
- function zr(g = window.React, c, U, T, A) {
1544
- let k, V, I;
1543
+ function zr(g = window.React, c, U, k, A) {
1544
+ let T, V, I;
1545
1545
  if (c === void 0) {
1546
1546
  const D = g;
1547
- ({ tagName: V, elementClass: I, events: T, displayName: A } = D), k = D.react;
1547
+ ({ tagName: V, elementClass: I, events: k, displayName: A } = D), T = D.react;
1548
1548
  } else
1549
- k = g, I = U, V = c;
1550
- const B = k.Component, F = k.createElement, N = new Set(Object.keys(T ?? {}));
1549
+ T = g, I = U, V = c;
1550
+ const B = T.Component, N = T.createElement, M = new Set(Object.keys(k ?? {}));
1551
1551
  class H extends B {
1552
1552
  constructor() {
1553
1553
  super(...arguments), this.o = null;
@@ -1555,7 +1555,7 @@ function zr(g = window.React, c, U, T, A) {
1555
1555
  t(P) {
1556
1556
  if (this.o !== null)
1557
1557
  for (const G in this.i)
1558
- Yr(this.o, G, this.props[G], P ? P[G] : void 0, T);
1558
+ Yr(this.o, G, this.props[G], P ? P[G] : void 0, k);
1559
1559
  }
1560
1560
  componentDidMount() {
1561
1561
  this.t();
@@ -1565,31 +1565,33 @@ function zr(g = window.React, c, U, T, A) {
1565
1565
  }
1566
1566
  render() {
1567
1567
  const { _$Gl: P, ...G } = this.props;
1568
- this.h !== P && (this.u = (M) => {
1568
+ this.h !== P && (this.u = (F) => {
1569
1569
  P !== null && ((W, K) => {
1570
1570
  typeof W == "function" ? W(K) : W.current = K;
1571
- })(P, M), this.o = M, this.h = P;
1571
+ })(P, F), this.o = F, this.h = P;
1572
1572
  }), this.i = {};
1573
1573
  const Y = { ref: this.u };
1574
- for (const [M, W] of Object.entries(G))
1575
- Wr.has(M) ? Y[M === "className" ? "class" : M] = W : N.has(M) || M in I.prototype ? this.i[M] = W : Y[M] = W;
1576
- return F(V, Y);
1574
+ for (const [F, W] of Object.entries(G))
1575
+ Wr.has(F) ? Y[F === "className" ? "class" : F] = W : M.has(F) || F in I.prototype ? this.i[F] = W : Y[F] = W;
1576
+ return N(V, Y);
1577
1577
  }
1578
1578
  }
1579
1579
  H.displayName = A ?? I.name;
1580
- const J = k.forwardRef((D, P) => F(H, { ...D, _$Gl: P }, D == null ? void 0 : D.children));
1580
+ const J = T.forwardRef((D, P) => N(H, { ...D, _$Gl: P }, D == null ? void 0 : D.children));
1581
1581
  return J.displayName = H.displayName, J;
1582
1582
  }
1583
1583
  const Qr = zr({
1584
1584
  displayName: "PieModal",
1585
- elementClass: Nr,
1585
+ elementClass: Mr,
1586
1586
  react: Vr,
1587
1587
  tagName: "pie-modal",
1588
1588
  events: {
1589
- onpiemodalopen: "pie-modal-open",
1589
+ onPieModalOpen: "pie-modal-open",
1590
1590
  // when the modal is opened.
1591
- onpiemodalclose: "pie-modal-close"
1591
+ onPieModalClose: "pie-modal-close",
1592
1592
  // when the modal is closed.
1593
+ onPieModalBack: "pie-modal-back"
1594
+ // when the modal back button is clicked.
1593
1595
  }
1594
1596
  });
1595
1597
  export {