@wilow_app/design-system 0.0.4 → 0.0.6

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/index.es.js CHANGED
@@ -1,14 +1,14 @@
1
- import { jsx as C, jsxs as L } from "react/jsx-runtime";
1
+ import { jsx as O, jsxs as L } from "react/jsx-runtime";
2
2
  import * as w from "react";
3
- import V, { useRef as B, useEffect as te, useContext as gr, useState as Ze, useLayoutEffect as Vo } from "react";
3
+ import V, { useRef as B, useEffect as te, useContext as gr, useState as Te, useLayoutEffect as Vo } from "react";
4
4
  import Lo, { flushSync as mr } from "react-dom";
5
5
  function W(e) {
6
6
  return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
7
7
  }
8
- var Mo = typeof Symbol == "function" && Symbol.observable || "@@observable", xn = Mo, In = () => Math.random().toString(36).substring(7).split("").join("."), $o = {
9
- INIT: `@@redux/INIT${/* @__PURE__ */ In()}`,
10
- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ In()}`
11
- }, On = $o;
8
+ var Mo = typeof Symbol == "function" && Symbol.observable || "@@observable", Dn = Mo, Nn = () => Math.random().toString(36).substring(7).split("").join("."), $o = {
9
+ INIT: `@@redux/INIT${/* @__PURE__ */ Nn()}`,
10
+ REPLACE: `@@redux/REPLACE${/* @__PURE__ */ Nn()}`
11
+ }, xn = $o;
12
12
  function Go(e) {
13
13
  if (typeof e != "object" || e === null)
14
14
  return !1;
@@ -121,7 +121,7 @@ function hr(e, t, n) {
121
121
  if (typeof h != "function")
122
122
  throw new Error(process.env.NODE_ENV === "production" ? W(10) : `Expected the nextReducer to be a function. Instead, received: '${ne(h)}`);
123
123
  r = h, u({
124
- type: On.REPLACE
124
+ type: xn.REPLACE
125
125
  });
126
126
  }
127
127
  function m() {
@@ -146,35 +146,35 @@ function hr(e, t, n) {
146
146
  unsubscribe: h(v)
147
147
  };
148
148
  },
149
- [xn]() {
149
+ [Dn]() {
150
150
  return this;
151
151
  }
152
152
  };
153
153
  }
154
154
  return u({
155
- type: On.INIT
155
+ type: xn.INIT
156
156
  }), {
157
157
  dispatch: u,
158
158
  subscribe: l,
159
159
  getState: p,
160
160
  replaceReducer: g,
161
- [xn]: m
161
+ [Dn]: m
162
162
  };
163
163
  }
164
- function wn(e, t) {
164
+ function In(e, t) {
165
165
  return function(...n) {
166
166
  return t(e.apply(this, n));
167
167
  };
168
168
  }
169
- function Cn(e, t) {
169
+ function On(e, t) {
170
170
  if (typeof e == "function")
171
- return wn(e, t);
171
+ return In(e, t);
172
172
  if (typeof e != "object" || e === null)
173
173
  throw new Error(process.env.NODE_ENV === "production" ? W(16) : `bindActionCreators expected an object or a function, but instead received: '${ne(e)}'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);
174
174
  const n = {};
175
175
  for (const r in e) {
176
176
  const o = e[r];
177
- typeof o == "function" && (n[r] = wn(o, t));
177
+ typeof o == "function" && (n[r] = In(o, t));
178
178
  }
179
179
  return n;
180
180
  }
@@ -207,10 +207,10 @@ var pt = {};
207
207
  * This source code is licensed under the MIT license found in the
208
208
  * LICENSE file in the root directory of this source tree.
209
209
  */
210
- var Sn;
210
+ var Cn;
211
211
  function zo() {
212
- if (Sn) return pt;
213
- Sn = 1;
212
+ if (Cn) return pt;
213
+ Cn = 1;
214
214
  var e = V;
215
215
  function t(a, d) {
216
216
  return a === d && (a !== 0 || 1 / a === 1 / d) || a !== a && d !== d;
@@ -268,9 +268,9 @@ var ft = {};
268
268
  * This source code is licensed under the MIT license found in the
269
269
  * LICENSE file in the root directory of this source tree.
270
270
  */
271
- var An;
271
+ var wn;
272
272
  function jo() {
273
- return An || (An = 1, process.env.NODE_ENV !== "production" && function() {
273
+ return wn || (wn = 1, process.env.NODE_ENV !== "production" && function() {
274
274
  function e(a, d) {
275
275
  return a === d && (a !== 0 || 1 / a === 1 / d) || a !== a && d !== d;
276
276
  }
@@ -323,15 +323,15 @@ function jo() {
323
323
  process.env.NODE_ENV === "production" ? zo() : jo();
324
324
  var vr = /* @__PURE__ */ w.version.startsWith("19"), qo = /* @__PURE__ */ Symbol.for(
325
325
  vr ? "react.transitional.element" : "react.element"
326
- ), Yo = /* @__PURE__ */ Symbol.for("react.portal"), yr = /* @__PURE__ */ Symbol.for("react.fragment"), Er = /* @__PURE__ */ Symbol.for("react.strict_mode"), Dr = /* @__PURE__ */ Symbol.for("react.profiler"), Ut = /* @__PURE__ */ Symbol.for("react.consumer"), Ht = /* @__PURE__ */ Symbol.for("react.context"), zt = /* @__PURE__ */ Symbol.for("react.forward_ref"), Nr = /* @__PURE__ */ Symbol.for("react.suspense"), xr = /* @__PURE__ */ Symbol.for(
326
+ ), Yo = /* @__PURE__ */ Symbol.for("react.portal"), yr = /* @__PURE__ */ Symbol.for("react.fragment"), Er = /* @__PURE__ */ Symbol.for("react.strict_mode"), Dr = /* @__PURE__ */ Symbol.for("react.profiler"), kt = /* @__PURE__ */ Symbol.for("react.consumer"), Wt = /* @__PURE__ */ Symbol.for("react.context"), Ut = /* @__PURE__ */ Symbol.for("react.forward_ref"), Nr = /* @__PURE__ */ Symbol.for("react.suspense"), xr = /* @__PURE__ */ Symbol.for(
327
327
  "react.suspense_list"
328
328
  ), Qe = /* @__PURE__ */ Symbol.for("react.memo"), Ir = /* @__PURE__ */ Symbol.for("react.lazy"), Xo = /* @__PURE__ */ Symbol.for("react.offscreen"), Ko = /* @__PURE__ */ Symbol.for(
329
329
  "react.client.reference"
330
- ), Jo = zt, Zo = Qe;
330
+ ), Jo = Ut, Zo = Qe;
331
331
  function Qo(e) {
332
- return typeof e == "string" || typeof e == "function" || e === yr || e === Dr || e === Er || e === Nr || e === xr || e === Xo || typeof e == "object" && e !== null && (e.$$typeof === Ir || e.$$typeof === Qe || e.$$typeof === Ht || e.$$typeof === Ut || e.$$typeof === zt || e.$$typeof === Ko || e.getModuleId !== void 0);
332
+ return typeof e == "string" || typeof e == "function" || e === yr || e === Dr || e === Er || e === Nr || e === xr || e === Xo || typeof e == "object" && e !== null && (e.$$typeof === Ir || e.$$typeof === Qe || e.$$typeof === Wt || e.$$typeof === kt || e.$$typeof === Ut || e.$$typeof === Ko || e.getModuleId !== void 0);
333
333
  }
334
- function Tt(e) {
334
+ function Pt(e) {
335
335
  if (typeof e == "object" && e !== null) {
336
336
  const { $$typeof: t } = e;
337
337
  switch (t) {
@@ -345,12 +345,12 @@ function Tt(e) {
345
345
  return e;
346
346
  default:
347
347
  switch (e = e && e.$$typeof, e) {
348
- case Ht:
349
- case zt:
348
+ case Wt:
349
+ case Ut:
350
350
  case Ir:
351
351
  case Qe:
352
352
  return e;
353
- case Ut:
353
+ case kt:
354
354
  return e;
355
355
  default:
356
356
  return t;
@@ -362,12 +362,12 @@ function Tt(e) {
362
362
  }
363
363
  }
364
364
  function ei(e) {
365
- return vr ? Tt(e) === Ut : Tt(e) === Ht;
365
+ return vr ? Pt(e) === kt : Pt(e) === Wt;
366
366
  }
367
367
  function ti(e) {
368
- return Tt(e) === Qe;
368
+ return Pt(e) === Qe;
369
369
  }
370
- function jt(e) {
370
+ function Ht(e) {
371
371
  typeof console < "u" && typeof console.error == "function" && console.error(e);
372
372
  try {
373
373
  throw new Error(e);
@@ -376,7 +376,7 @@ function jt(e) {
376
376
  }
377
377
  function gt(e, t) {
378
378
  if (e)
379
- (t === "mapStateToProps" || t === "mapDispatchToProps") && (Object.prototype.hasOwnProperty.call(e, "dependsOnOwnProps") || jt(
379
+ (t === "mapStateToProps" || t === "mapDispatchToProps") && (Object.prototype.hasOwnProperty.call(e, "dependsOnOwnProps") || Ht(
380
380
  `The selector for ${t} of connect did not specify a value for dependsOnOwnProps.`
381
381
  ));
382
382
  else throw new Error(`Unexpected value for ${t} in connect.`);
@@ -443,11 +443,11 @@ function si(e) {
443
443
  return t === n;
444
444
  }
445
445
  function Or(e, t, n) {
446
- si(e) || jt(
446
+ si(e) || Ht(
447
447
  `${n}() in ${t} must return a plain object. Instead received ${e}.`
448
448
  );
449
449
  }
450
- function Bt(e) {
450
+ function Rt(e) {
451
451
  return function(n) {
452
452
  const r = e(n);
453
453
  function o() {
@@ -456,22 +456,22 @@ function Bt(e) {
456
456
  return o.dependsOnOwnProps = !1, o;
457
457
  };
458
458
  }
459
- function _n(e) {
459
+ function Sn(e) {
460
460
  return e.dependsOnOwnProps ? !!e.dependsOnOwnProps : e.length !== 1;
461
461
  }
462
- function wr(e, t) {
462
+ function Cr(e, t) {
463
463
  return function(r, { displayName: o }) {
464
464
  const i = function(c, a) {
465
465
  return i.dependsOnOwnProps ? i.mapToProps(c, a) : i.mapToProps(c, void 0);
466
466
  };
467
467
  return i.dependsOnOwnProps = !0, i.mapToProps = function(c, a) {
468
- i.mapToProps = e, i.dependsOnOwnProps = _n(e);
468
+ i.mapToProps = e, i.dependsOnOwnProps = Sn(e);
469
469
  let d = i(c, a);
470
- return typeof d == "function" && (i.mapToProps = d, i.dependsOnOwnProps = _n(d), d = i(c, a)), process.env.NODE_ENV !== "production" && Or(d, o, t), d;
470
+ return typeof d == "function" && (i.mapToProps = d, i.dependsOnOwnProps = Sn(d), d = i(c, a)), process.env.NODE_ENV !== "production" && Or(d, o, t), d;
471
471
  }, i;
472
472
  };
473
473
  }
474
- function qt(e, t) {
474
+ function zt(e, t) {
475
475
  return (n, r) => {
476
476
  throw new Error(
477
477
  `Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`
@@ -479,23 +479,23 @@ function qt(e, t) {
479
479
  };
480
480
  }
481
481
  function ci(e) {
482
- return e && typeof e == "object" ? Bt(
482
+ return e && typeof e == "object" ? Rt(
483
483
  (t) => (
484
484
  // @ts-ignore
485
485
  ii(e, t)
486
486
  )
487
487
  ) : e ? typeof e == "function" ? (
488
488
  // @ts-ignore
489
- wr(e, "mapDispatchToProps")
490
- ) : qt(e, "mapDispatchToProps") : Bt((t) => ({
489
+ Cr(e, "mapDispatchToProps")
490
+ ) : zt(e, "mapDispatchToProps") : Rt((t) => ({
491
491
  dispatch: t
492
492
  }));
493
493
  }
494
494
  function ai(e) {
495
495
  return e ? typeof e == "function" ? (
496
496
  // @ts-ignore
497
- wr(e, "mapStateToProps")
498
- ) : qt(e, "mapStateToProps") : Bt(() => ({}));
497
+ Cr(e, "mapStateToProps")
498
+ ) : zt(e, "mapStateToProps") : Rt(() => ({}));
499
499
  }
500
500
  function li(e, t, n) {
501
501
  return { ...n, ...e, ...t };
@@ -510,7 +510,7 @@ function di(e) {
510
510
  };
511
511
  }
512
512
  function ui(e) {
513
- return e ? typeof e == "function" ? di(e) : qt(e, "mergeProps") : () => li;
513
+ return e ? typeof e == "function" ? di(e) : zt(e, "mergeProps") : () => li;
514
514
  }
515
515
  function pi(e) {
516
516
  e();
@@ -548,13 +548,13 @@ function fi() {
548
548
  }
549
549
  };
550
550
  }
551
- var Pn = {
551
+ var An = {
552
552
  notify() {
553
553
  },
554
554
  get: () => []
555
555
  };
556
- function Cr(e, t) {
557
- let n, r = Pn, o = 0, i = !1;
556
+ function wr(e, t) {
557
+ let n, r = An, o = 0, i = !1;
558
558
  function s(b) {
559
559
  p();
560
560
  const h = r.subscribe(b);
@@ -576,7 +576,7 @@ function Cr(e, t) {
576
576
  o++, n || (n = t ? t.addNestedSub(a) : e.subscribe(a), r = fi());
577
577
  }
578
578
  function l() {
579
- o--, n && o === 0 && (n(), n = void 0, r.clear(), r = Pn);
579
+ o--, n && o === 0 && (n(), n = void 0, r.clear(), r = An);
580
580
  }
581
581
  function u() {
582
582
  i || (i = !0, p());
@@ -595,18 +595,18 @@ function Cr(e, t) {
595
595
  };
596
596
  return m;
597
597
  }
598
- var gi = () => typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", mi = /* @__PURE__ */ gi(), hi = () => typeof navigator < "u" && navigator.product === "ReactNative", bi = /* @__PURE__ */ hi(), vi = () => mi || bi ? w.useLayoutEffect : w.useEffect, ze = /* @__PURE__ */ vi();
599
- function Rn(e, t) {
598
+ var gi = () => typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", mi = /* @__PURE__ */ gi(), hi = () => typeof navigator < "u" && navigator.product === "ReactNative", bi = /* @__PURE__ */ hi(), vi = () => mi || bi ? w.useLayoutEffect : w.useEffect, je = /* @__PURE__ */ vi();
599
+ function _n(e, t) {
600
600
  return e === t ? e !== 0 || t !== 0 || 1 / e === 1 / t : e !== e && t !== t;
601
601
  }
602
602
  function mt(e, t) {
603
- if (Rn(e, t)) return !0;
603
+ if (_n(e, t)) return !0;
604
604
  if (typeof e != "object" || e === null || typeof t != "object" || t === null)
605
605
  return !1;
606
606
  const n = Object.keys(e), r = Object.keys(t);
607
607
  if (n.length !== r.length) return !1;
608
608
  for (let o = 0; o < n.length; o++)
609
- if (!Object.prototype.hasOwnProperty.call(t, n[o]) || !Rn(e[n[o]], t[n[o]]))
609
+ if (!Object.prototype.hasOwnProperty.call(t, n[o]) || !_n(e[n[o]], t[n[o]]))
610
610
  return !1;
611
611
  return !0;
612
612
  }
@@ -647,19 +647,19 @@ var yi = {
647
647
  [Jo]: Di,
648
648
  [Zo]: Sr
649
649
  };
650
- function Tn(e) {
650
+ function Pn(e) {
651
651
  return ti(e) ? Sr : Ni[e.$$typeof] || yi;
652
652
  }
653
- var xi = Object.defineProperty, Ii = Object.getOwnPropertyNames, Bn = Object.getOwnPropertySymbols, Oi = Object.getOwnPropertyDescriptor, wi = Object.getPrototypeOf, Vn = Object.prototype;
654
- function Vt(e, t) {
653
+ var xi = Object.defineProperty, Ii = Object.getOwnPropertyNames, Rn = Object.getOwnPropertySymbols, Oi = Object.getOwnPropertyDescriptor, Ci = Object.getPrototypeOf, Tn = Object.prototype;
654
+ function Tt(e, t) {
655
655
  if (typeof t != "string") {
656
- if (Vn) {
657
- const i = wi(t);
658
- i && i !== Vn && Vt(e, i);
656
+ if (Tn) {
657
+ const i = Ci(t);
658
+ i && i !== Tn && Tt(e, i);
659
659
  }
660
660
  let n = Ii(t);
661
- Bn && (n = n.concat(Bn(t)));
662
- const r = Tn(e), o = Tn(t);
661
+ Rn && (n = n.concat(Rn(t)));
662
+ const r = Pn(e), o = Pn(t);
663
663
  for (let i = 0; i < n.length; ++i) {
664
664
  const s = n[i];
665
665
  if (!Ei[s] && !(o && o[s]) && !(r && r[s])) {
@@ -677,7 +677,7 @@ var ht = /* @__PURE__ */ Symbol.for("react-redux-context"), bt = typeof globalTh
677
677
  /* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
678
678
  {}
679
679
  );
680
- function Ci() {
680
+ function wi() {
681
681
  if (!w.createContext) return {};
682
682
  const e = bt[ht] ?? (bt[ht] = /* @__PURE__ */ new Map());
683
683
  let t = e.get(w.createContext);
@@ -685,7 +685,7 @@ function Ci() {
685
685
  null
686
686
  ), process.env.NODE_ENV !== "production" && (t.displayName = "ReactRedux"), e.set(w.createContext, t)), t;
687
687
  }
688
- var Ar = /* @__PURE__ */ Ci(), Si = [null, null], Ai = (e) => {
688
+ var Ar = /* @__PURE__ */ wi(), Si = [null, null], Ai = (e) => {
689
689
  try {
690
690
  return JSON.stringify(e);
691
691
  } catch {
@@ -693,7 +693,7 @@ var Ar = /* @__PURE__ */ Ci(), Si = [null, null], Ai = (e) => {
693
693
  }
694
694
  };
695
695
  function _i(e, t, n) {
696
- ze(() => e(...t), n);
696
+ je(() => e(...t), n);
697
697
  }
698
698
  function Pi(e, t, n, r, o, i) {
699
699
  e.current = r, n.current = !1, o.current && (o.current = null, i());
@@ -725,7 +725,7 @@ function Ri(e, t, n, r, o, i, s, c, a, d, p) {
725
725
  function Ti(e, t) {
726
726
  return e === t;
727
727
  }
728
- var Ln = !1;
728
+ var Bn = !1;
729
729
  function Bi(e, t, n, {
730
730
  // The `pure` option has been removed, so TS doesn't like us destructuring this to check its existence.
731
731
  // @ts-ignore
@@ -739,7 +739,7 @@ function Bi(e, t, n, {
739
739
  // the context consumer to use
740
740
  context: d = Ar
741
741
  } = {}) {
742
- process.env.NODE_ENV !== "production" && r !== void 0 && !Ln && (Ln = !0, jt(
742
+ process.env.NODE_ENV !== "production" && r !== void 0 && !Bn && (Bn = !0, Ht(
743
743
  'The `pure` option has been removed. `connect` is now always a "pure/memoized" component'
744
744
  ));
745
745
  const p = d, l = ai(e), u = ci(t), g = ui(n), m = !!e;
@@ -765,44 +765,44 @@ function Bi(e, t, n, {
765
765
  areMergedPropsEqual: c
766
766
  };
767
767
  function N(S) {
768
- const [_, U, T] = w.useMemo(() => {
768
+ const [P, U, T] = w.useMemo(() => {
769
769
  const { reactReduxForwardedRef: z, ...ue } = S;
770
770
  return [S.context, z, ue];
771
771
  }, [S]), H = w.useMemo(() => {
772
772
  let z = p;
773
- if (_ != null && _.Consumer && process.env.NODE_ENV !== "production") {
773
+ if (P != null && P.Consumer && process.env.NODE_ENV !== "production") {
774
774
  if (!/* @__PURE__ */ ei(
775
775
  // @ts-ignore
776
- /* @__PURE__ */ w.createElement(_.Consumer, null)
776
+ /* @__PURE__ */ w.createElement(P.Consumer, null)
777
777
  ))
778
778
  throw new Error(
779
779
  "You must pass a valid React context consumer as `props.context`"
780
780
  );
781
- z = _;
781
+ z = P;
782
782
  }
783
783
  return z;
784
- }, [_, p]), M = w.useContext(H), Q = !!S.store && !!S.store.getState && !!S.store.dispatch, de = !!M && !!M.store;
784
+ }, [P, p]), M = w.useContext(H), Q = !!S.store && !!S.store.getState && !!S.store.dispatch, de = !!M && !!M.store;
785
785
  if (process.env.NODE_ENV !== "production" && !Q && !de)
786
786
  throw new Error(
787
787
  `Could not find "store" in the context of "${v}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${v} in connect options.`
788
788
  );
789
- const ee = Q ? S.store : M.store, Ge = de ? M.getServerState : ee.getState, st = w.useMemo(() => oi(ee.dispatch, I), [ee]), [be, yn] = w.useMemo(() => {
789
+ const ee = Q ? S.store : M.store, Fe = de ? M.getServerState : ee.getState, st = w.useMemo(() => oi(ee.dispatch, I), [ee]), [be, bn] = w.useMemo(() => {
790
790
  if (!m) return Si;
791
- const z = Cr(
791
+ const z = wr(
792
792
  ee,
793
793
  Q ? void 0 : M.subscription
794
794
  ), ue = z.notifyNestedSubs.bind(z);
795
795
  return [z, ue];
796
- }, [ee, Q, M]), En = w.useMemo(() => Q ? M : {
796
+ }, [ee, Q, M]), vn = w.useMemo(() => Q ? M : {
797
797
  ...M,
798
798
  subscription: be
799
- }, [Q, M, be]), ct = w.useRef(void 0), at = w.useRef(T), ve = w.useRef(void 0), Dn = w.useRef(!1), lt = w.useRef(!1), dt = w.useRef(
799
+ }, [Q, M, be]), ct = w.useRef(void 0), at = w.useRef(T), ve = w.useRef(void 0), yn = w.useRef(!1), lt = w.useRef(!1), dt = w.useRef(
800
800
  void 0
801
801
  );
802
- ze(() => (lt.current = !0, () => {
802
+ je(() => (lt.current = !0, () => {
803
803
  lt.current = !1;
804
804
  }), []);
805
- const Nn = w.useMemo(() => () => ve.current && T === at.current ? ve.current : st(ee.getState(), T), [ee, T]), Bo = w.useMemo(() => (ue) => be ? Ri(
805
+ const En = w.useMemo(() => () => ve.current && T === at.current ? ve.current : st(ee.getState(), T), [ee, T]), Bo = w.useMemo(() => (ue) => be ? Ri(
806
806
  m,
807
807
  ee,
808
808
  be,
@@ -810,30 +810,30 @@ function Bi(e, t, n, {
810
810
  st,
811
811
  at,
812
812
  ct,
813
- Dn,
813
+ yn,
814
814
  lt,
815
815
  ve,
816
- yn,
816
+ bn,
817
817
  ue
818
818
  ) : () => {
819
819
  }, [be]);
820
820
  _i(Pi, [
821
821
  at,
822
822
  ct,
823
- Dn,
823
+ yn,
824
824
  T,
825
825
  ve,
826
- yn
826
+ bn
827
827
  ]);
828
- let Fe;
828
+ let ke;
829
829
  try {
830
- Fe = w.useSyncExternalStore(
830
+ ke = w.useSyncExternalStore(
831
831
  // TODO We're passing through a big wrapper that does a bunch of extra side effects besides subscribing
832
832
  Bo,
833
833
  // TODO This is incredibly hacky. We've already processed the store update and calculated new child props,
834
834
  // TODO and we're just passing that through so it triggers a re-render for us rather than relying on `uSES`.
835
- Nn,
836
- Ge ? () => st(Ge(), T) : Nn
835
+ En,
836
+ Fe ? () => st(Fe(), T) : En
837
837
  );
838
838
  } catch (z) {
839
839
  throw dt.current && (z.message += `
@@ -842,37 +842,37 @@ ${dt.current.stack}
842
842
 
843
843
  `), z;
844
844
  }
845
- ze(() => {
846
- dt.current = void 0, ve.current = void 0, ct.current = Fe;
845
+ je(() => {
846
+ dt.current = void 0, ve.current = void 0, ct.current = ke;
847
847
  });
848
848
  const ut = w.useMemo(() => (
849
849
  // @ts-ignore
850
850
  /* @__PURE__ */ w.createElement(
851
851
  h,
852
852
  {
853
- ...Fe,
853
+ ...ke,
854
854
  ref: U
855
855
  }
856
856
  )
857
- ), [U, h, Fe]);
858
- return w.useMemo(() => m ? /* @__PURE__ */ w.createElement(H.Provider, { value: En }, ut) : ut, [H, ut, En]);
857
+ ), [U, h, ke]);
858
+ return w.useMemo(() => m ? /* @__PURE__ */ w.createElement(H.Provider, { value: vn }, ut) : ut, [H, ut, vn]);
859
859
  }
860
860
  const x = w.memo(N);
861
861
  if (x.WrappedComponent = h, x.displayName = N.displayName = v, a) {
862
- const _ = w.forwardRef(
862
+ const P = w.forwardRef(
863
863
  function(T, H) {
864
864
  return /* @__PURE__ */ w.createElement(x, { ...T, reactReduxForwardedRef: H });
865
865
  }
866
866
  );
867
- return _.displayName = v, _.WrappedComponent = h, /* @__PURE__ */ Vt(_, h);
867
+ return P.displayName = v, P.WrappedComponent = h, /* @__PURE__ */ Tt(P, h);
868
868
  }
869
- return /* @__PURE__ */ Vt(x, h);
869
+ return /* @__PURE__ */ Tt(x, h);
870
870
  };
871
871
  }
872
872
  var _r = Bi;
873
873
  function Vi(e) {
874
874
  const { children: t, context: n, serverState: r, store: o } = e, i = w.useMemo(() => {
875
- const a = Cr(o), d = {
875
+ const a = wr(o), d = {
876
876
  store: o,
877
877
  subscription: a,
878
878
  getServerState: r ? () => r : void 0
@@ -887,7 +887,7 @@ function Vi(e) {
887
887
  });
888
888
  }
889
889
  }, [o, r]), s = w.useMemo(() => o.getState(), [o]);
890
- ze(() => {
890
+ je(() => {
891
891
  const { subscription: a } = i;
892
892
  return a.onStateChange = a.notifyNestedSubs, a.trySubscribe(), s !== o.getState() && a.notifyNestedSubs(), () => {
893
893
  a.tryUnsubscribe(), a.onStateChange = void 0;
@@ -897,7 +897,7 @@ function Vi(e) {
897
897
  return /* @__PURE__ */ w.createElement(c.Provider, { value: i }, t);
898
898
  }
899
899
  var Li = Vi, Mi = process.env.NODE_ENV === "production", vt = "Invariant failed";
900
- function Mn(e, t) {
900
+ function Vn(e, t) {
901
901
  if (Mi)
902
902
  throw new Error(vt);
903
903
  var n = typeof t == "function" ? t() : t, r = n ? "".concat(vt, ": ").concat(n) : vt;
@@ -919,14 +919,14 @@ var Z = function(t) {
919
919
  }
920
920
  };
921
921
  return a;
922
- }, Yt = function(t, n) {
922
+ }, jt = function(t, n) {
923
923
  return {
924
924
  top: t.top - n.top,
925
925
  left: t.left - n.left,
926
926
  bottom: t.bottom + n.bottom,
927
927
  right: t.right + n.right
928
928
  };
929
- }, $n = function(t, n) {
929
+ }, Ln = function(t, n) {
930
930
  return {
931
931
  top: t.top + n.top,
932
932
  left: t.left + n.left,
@@ -945,8 +945,8 @@ var Z = function(t) {
945
945
  right: 0,
946
946
  bottom: 0,
947
947
  left: 0
948
- }, Xt = function(t) {
949
- var n = t.borderBox, r = t.margin, o = r === void 0 ? yt : r, i = t.border, s = i === void 0 ? yt : i, c = t.padding, a = c === void 0 ? yt : c, d = Z(Yt(n, o)), p = Z($n(n, s)), l = Z($n(p, a));
948
+ }, qt = function(t) {
949
+ var n = t.borderBox, r = t.margin, o = r === void 0 ? yt : r, i = t.border, s = i === void 0 ? yt : i, c = t.padding, a = c === void 0 ? yt : c, d = Z(jt(n, o)), p = Z(Ln(n, s)), l = Z(Ln(p, a));
950
950
  return {
951
951
  marginBox: d,
952
952
  borderBox: Z(n),
@@ -961,22 +961,22 @@ var Z = function(t) {
961
961
  if (r !== "px")
962
962
  return 0;
963
963
  var o = Number(n);
964
- return isNaN(o) && (process.env.NODE_ENV !== "production" ? Mn(!1, "Could not parse value [raw: " + t + ", without suffix: " + n + "]") : Mn()), o;
964
+ return isNaN(o) && (process.env.NODE_ENV !== "production" ? Vn(!1, "Could not parse value [raw: " + t + ", without suffix: " + n + "]") : Vn()), o;
965
965
  }, Gi = function() {
966
966
  return {
967
967
  x: window.pageXOffset,
968
968
  y: window.pageYOffset
969
969
  };
970
- }, je = function(t, n) {
970
+ }, qe = function(t, n) {
971
971
  var r = t.borderBox, o = t.border, i = t.margin, s = t.padding, c = $i(r, n);
972
- return Xt({
972
+ return qt({
973
973
  borderBox: c,
974
974
  border: o,
975
975
  margin: i,
976
976
  padding: s
977
977
  });
978
- }, qe = function(t, n) {
979
- return n === void 0 && (n = Gi()), je(t, n);
978
+ }, Ye = function(t, n) {
979
+ return n === void 0 && (n = Gi()), qe(t, n);
980
980
  }, Pr = function(t, n) {
981
981
  var r = {
982
982
  top: X(n.marginTop),
@@ -994,7 +994,7 @@ var Z = function(t) {
994
994
  bottom: X(n.borderBottomWidth),
995
995
  left: X(n.borderLeftWidth)
996
996
  };
997
- return Xt({
997
+ return qt({
998
998
  borderBox: t,
999
999
  margin: r,
1000
1000
  padding: o,
@@ -1015,26 +1015,26 @@ var Z = function(t) {
1015
1015
  r && (cancelAnimationFrame(r), r = null);
1016
1016
  }, o;
1017
1017
  };
1018
- function Ye() {
1019
- return Ye = Object.assign ? Object.assign.bind() : function(e) {
1018
+ function Xe() {
1019
+ return Xe = Object.assign ? Object.assign.bind() : function(e) {
1020
1020
  for (var t = 1; t < arguments.length; t++) {
1021
1021
  var n = arguments[t];
1022
1022
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
1023
1023
  }
1024
1024
  return e;
1025
- }, Ye.apply(null, arguments);
1025
+ }, Xe.apply(null, arguments);
1026
1026
  }
1027
- const Fi = process.env.NODE_ENV === "production", ki = /[ \t]{2,}/g, Wi = /^[ \t]*/gm, Gn = (e) => e.replace(ki, " ").replace(Wi, "").trim(), Ui = (e) => Gn(`
1027
+ const Fi = process.env.NODE_ENV === "production", ki = /[ \t]{2,}/g, Wi = /^[ \t]*/gm, Mn = (e) => e.replace(ki, " ").replace(Wi, "").trim(), Ui = (e) => Mn(`
1028
1028
  %c@hello-pangea/dnd
1029
1029
 
1030
- %c${Gn(e)}
1030
+ %c${Mn(e)}
1031
1031
 
1032
1032
  %c👷‍ This is a development only message. It will be removed in production builds.
1033
1033
  `), Hi = (e) => [Ui(e), "color: #00C584; font-size: 1.2em; font-weight: bold;", "line-height: 1.5", "color: #723874;"], zi = "__@hello-pangea/dnd-disable-dev-warnings";
1034
1034
  function Tr(e, t) {
1035
1035
  Fi || typeof window < "u" && window[zi] || console[e](...Hi(t));
1036
1036
  }
1037
- const R = Tr.bind(null, "warn"), Lt = Tr.bind(null, "error");
1037
+ const R = Tr.bind(null, "warn"), Bt = Tr.bind(null, "error");
1038
1038
  function re() {
1039
1039
  }
1040
1040
  function ji(e, t) {
@@ -1056,14 +1056,14 @@ function K(e, t, n) {
1056
1056
  });
1057
1057
  };
1058
1058
  }
1059
- const qi = process.env.NODE_ENV === "production", Fn = "Invariant failed";
1059
+ const qi = process.env.NODE_ENV === "production", $n = "Invariant failed";
1060
1060
  class Oe extends Error {
1061
1061
  }
1062
1062
  Oe.prototype.toString = function() {
1063
1063
  return this.message;
1064
1064
  };
1065
1065
  function f(e, t) {
1066
- throw qi ? new Oe(Fn) : new Oe(`${Fn}: ${t || ""}`);
1066
+ throw qi ? new Oe($n) : new Oe(`${$n}: ${t || ""}`);
1067
1067
  }
1068
1068
  class Yi extends V.Component {
1069
1069
  constructor(...t) {
@@ -1074,7 +1074,7 @@ class Yi extends V.Component {
1074
1074
  The active drag has been aborted.
1075
1075
  `));
1076
1076
  const o = n.error;
1077
- o instanceof Oe && (n.preventDefault(), process.env.NODE_ENV !== "production" && Lt(o.message));
1077
+ o instanceof Oe && (n.preventDefault(), process.env.NODE_ENV !== "production" && Bt(o.message));
1078
1078
  }, this.getCallbacks = () => {
1079
1079
  if (!this.callbacks)
1080
1080
  throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");
@@ -1091,7 +1091,7 @@ class Yi extends V.Component {
1091
1091
  }
1092
1092
  componentDidCatch(t) {
1093
1093
  if (t instanceof Oe) {
1094
- process.env.NODE_ENV !== "production" && Lt(t.message), this.setState({});
1094
+ process.env.NODE_ENV !== "production" && Bt(t.message), this.setState({});
1095
1095
  return;
1096
1096
  }
1097
1097
  throw t;
@@ -1107,10 +1107,10 @@ const Xi = `
1107
1107
  Press space bar to start a drag.
1108
1108
  When dragging you can use the arrow keys to move the item around and escape to cancel.
1109
1109
  Some screen readers may require you to be in focus mode or to use your pass through key
1110
- `, Xe = (e) => e + 1, Ki = (e) => `
1111
- You have lifted an item in position ${Xe(e.source.index)}
1110
+ `, Ke = (e) => e + 1, Ki = (e) => `
1111
+ You have lifted an item in position ${Ke(e.source.index)}
1112
1112
  `, Br = (e, t) => {
1113
- const n = e.droppableId === t.droppableId, r = Xe(e.index), o = Xe(t.index);
1113
+ const n = e.droppableId === t.droppableId, r = Ke(e.index), o = Ke(t.index);
1114
1114
  return n ? `
1115
1115
  You have moved the item from position ${r}
1116
1116
  to position ${o}
@@ -1133,14 +1133,14 @@ const Xi = `
1133
1133
  return Br(e.source, t);
1134
1134
  const n = e.combine;
1135
1135
  return n ? Vr(e.draggableId, e.source, n) : "You are over an area that cannot be dropped on";
1136
- }, kn = (e) => `
1136
+ }, Gn = (e) => `
1137
1137
  The item has returned to its starting position
1138
- of ${Xe(e.index)}
1138
+ of ${Ke(e.index)}
1139
1139
  `, Zi = (e) => {
1140
1140
  if (e.reason === "CANCEL")
1141
1141
  return `
1142
1142
  Movement cancelled.
1143
- ${kn(e.source)}
1143
+ ${Gn(e.source)}
1144
1144
  `;
1145
1145
  const t = e.destination, n = e.combine;
1146
1146
  return t ? `
@@ -1151,9 +1151,9 @@ const Xi = `
1151
1151
  ${Vr(e.draggableId, e.source, n)}
1152
1152
  ` : `
1153
1153
  The item has been dropped while not over a drop area.
1154
- ${kn(e.source)}
1154
+ ${Gn(e.source)}
1155
1155
  `;
1156
- }, He = {
1156
+ }, ze = {
1157
1157
  dragHandleUsageInstructions: Xi,
1158
1158
  onDragStart: Ki,
1159
1159
  onDragUpdate: Ji,
@@ -1170,8 +1170,8 @@ function Lr(e, t) {
1170
1170
  return !1;
1171
1171
  return !0;
1172
1172
  }
1173
- function O(e, t) {
1174
- const n = Ze(() => ({
1173
+ function C(e, t) {
1174
+ const n = Te(() => ({
1175
1175
  inputs: t,
1176
1176
  result: e()
1177
1177
  }))[0], r = B(!0), o = B(n), s = r.current || !!(t && o.current.inputs && Lr(t, o.current.inputs)) ? o.current : {
@@ -1183,7 +1183,7 @@ function O(e, t) {
1183
1183
  }, [s]), s.result;
1184
1184
  }
1185
1185
  function D(e, t) {
1186
- return O(() => e, t);
1186
+ return C(() => e, t);
1187
1187
  }
1188
1188
  const G = {
1189
1189
  x: 0,
@@ -1203,7 +1203,7 @@ const G = {
1203
1203
  } : {
1204
1204
  x: n,
1205
1205
  y: t
1206
- }, we = (e, t) => Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2), Wn = (e, t) => Math.min(...t.map((n) => we(e, n))), Mr = (e) => (t) => ({
1206
+ }, Ce = (e, t) => Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2), Fn = (e, t) => Math.min(...t.map((n) => Ce(e, n))), Mr = (e) => (t) => ({
1207
1207
  x: e(t.x),
1208
1208
  y: e(t.y)
1209
1209
  });
@@ -1216,12 +1216,12 @@ var es = (e, t) => {
1216
1216
  });
1217
1217
  return n.width <= 0 || n.height <= 0 ? null : n;
1218
1218
  };
1219
- const Te = (e, t) => ({
1219
+ const Be = (e, t) => ({
1220
1220
  top: e.top + t.y,
1221
1221
  left: e.left + t.x,
1222
1222
  bottom: e.bottom + t.y,
1223
1223
  right: e.right + t.x
1224
- }), Un = (e) => [{
1224
+ }), kn = (e) => [{
1225
1225
  x: e.left,
1226
1226
  y: e.top
1227
1227
  }, {
@@ -1238,7 +1238,7 @@ const Te = (e, t) => ({
1238
1238
  right: 0,
1239
1239
  bottom: 0,
1240
1240
  left: 0
1241
- }, ns = (e, t) => t ? Te(e, t.scroll.diff.displacement) : e, rs = (e, t, n) => n && n.increasedBy ? {
1241
+ }, ns = (e, t) => t ? Be(e, t.scroll.diff.displacement) : e, rs = (e, t, n) => n && n.increasedBy ? {
1242
1242
  ...e,
1243
1243
  [t.end]: e[t.end] + n.increasedBy[t.line]
1244
1244
  } : e, os = (e, t) => t && t.shouldClipSubject ? es(t.pageMarginBox, e) : Z(e);
@@ -1254,7 +1254,7 @@ var pe = ({
1254
1254
  withPlaceholder: t,
1255
1255
  active: s
1256
1256
  };
1257
- }, Kt = (e, t) => {
1257
+ }, Yt = (e, t) => {
1258
1258
  e.frame || (process.env.NODE_ENV, f());
1259
1259
  const n = e.frame, r = j(t, n.scroll.initial), o = me(r), i = {
1260
1260
  ...n,
@@ -1297,7 +1297,7 @@ function $(e, t = Lr) {
1297
1297
  }
1298
1298
  const $r = $((e) => e.reduce((t, n) => (t[n.descriptor.id] = n, t), {})), Gr = $((e) => e.reduce((t, n) => (t[n.descriptor.id] = n, t), {})), et = $((e) => Object.values(e)), is = $((e) => Object.values(e));
1299
1299
  var le = $((e, t) => is(t).filter((r) => e === r.descriptor.droppableId).sort((r, o) => r.descriptor.index - o.descriptor.index));
1300
- function Jt(e) {
1300
+ function Xt(e) {
1301
1301
  return e.at && e.at.type === "REORDER" ? e.at.destination : null;
1302
1302
  }
1303
1303
  function tt(e) {
@@ -1310,7 +1310,7 @@ var nt = $((e, t) => t.filter((n) => n.descriptor.id !== e.descriptor.id)), ss =
1310
1310
  insideDestination: r,
1311
1311
  previousImpact: o
1312
1312
  }) => {
1313
- if (!n.isCombineEnabled || !Jt(o))
1313
+ if (!n.isCombineEnabled || !Xt(o))
1314
1314
  return null;
1315
1315
  function s(g) {
1316
1316
  const m = {
@@ -1346,12 +1346,12 @@ var nt = $((e, t) => t.filter((n) => n.descriptor.id !== e.descriptor.id)), ss =
1346
1346
  const Fr = {
1347
1347
  point: G,
1348
1348
  value: 0
1349
- }, Ce = {
1349
+ }, we = {
1350
1350
  invisible: {},
1351
1351
  visible: {},
1352
1352
  all: []
1353
1353
  }, cs = {
1354
- displaced: Ce,
1354
+ displaced: we,
1355
1355
  displacedBy: Fr,
1356
1356
  at: null
1357
1357
  };
@@ -1370,7 +1370,7 @@ var J = (e, t) => (n) => e <= n && n <= t, kr = (e) => {
1370
1370
  const t = J(e.top, e.bottom), n = J(e.left, e.right);
1371
1371
  return (r) => t(r.top) && t(r.bottom) && n(r.left) && n(r.right);
1372
1372
  };
1373
- const Zt = {
1373
+ const Kt = {
1374
1374
  direction: "vertical",
1375
1375
  line: "y",
1376
1376
  crossAxisLine: "x",
@@ -1393,12 +1393,12 @@ const Zt = {
1393
1393
  };
1394
1394
  var ls = (e) => (t) => {
1395
1395
  const n = J(t.top, t.bottom), r = J(t.left, t.right);
1396
- return (o) => e === Zt ? n(o.top) && n(o.bottom) : r(o.left) && r(o.right);
1396
+ return (o) => e === Kt ? n(o.top) && n(o.bottom) : r(o.left) && r(o.right);
1397
1397
  };
1398
1398
  const ds = (e, t) => {
1399
1399
  const n = t.frame ? t.frame.scroll.diff.displacement : G;
1400
- return Te(e, n);
1401
- }, us = (e, t, n) => t.subject.active ? n(t.subject.active)(e) : !1, ps = (e, t, n) => n(t)(e), Qt = ({
1400
+ return Be(e, n);
1401
+ }, us = (e, t, n) => t.subject.active ? n(t.subject.active)(e) : !1, ps = (e, t, n) => n(t)(e), Jt = ({
1402
1402
  target: e,
1403
1403
  destination: t,
1404
1404
  viewport: n,
@@ -1407,13 +1407,13 @@ const ds = (e, t) => {
1407
1407
  }) => {
1408
1408
  const i = r ? ds(e, t) : e;
1409
1409
  return us(i, t, o) && ps(i, n, o);
1410
- }, fs = (e) => Qt({
1410
+ }, fs = (e) => Jt({
1411
1411
  ...e,
1412
1412
  isVisibleThroughFrameFn: kr
1413
- }), Ur = (e) => Qt({
1413
+ }), Ur = (e) => Jt({
1414
1414
  ...e,
1415
1415
  isVisibleThroughFrameFn: as
1416
- }), gs = (e) => Qt({
1416
+ }), gs = (e) => Jt({
1417
1417
  ...e,
1418
1418
  isVisibleThroughFrameFn: ls(e.destination.axis)
1419
1419
  }), ms = (e, t, n) => {
@@ -1437,7 +1437,7 @@ function hs(e, t) {
1437
1437
  bottom: 0,
1438
1438
  left: t.point.x
1439
1439
  };
1440
- return Z(Yt(n, r));
1440
+ return Z(jt(n, r));
1441
1441
  }
1442
1442
  function Se({
1443
1443
  afterDragging: e,
@@ -1473,7 +1473,7 @@ function bs(e, t) {
1473
1473
  const n = e[e.length - 1].descriptor.index;
1474
1474
  return t.inHomeList ? n : n + 1;
1475
1475
  }
1476
- function Hn({
1476
+ function Wn({
1477
1477
  insideDestination: e,
1478
1478
  inHomeList: t,
1479
1479
  displacedBy: n,
@@ -1483,7 +1483,7 @@ function Hn({
1483
1483
  inHomeList: t
1484
1484
  });
1485
1485
  return {
1486
- displaced: Ce,
1486
+ displaced: we,
1487
1487
  displacedBy: n,
1488
1488
  at: {
1489
1489
  type: "REORDER",
@@ -1494,7 +1494,7 @@ function Hn({
1494
1494
  }
1495
1495
  };
1496
1496
  }
1497
- function Ke({
1497
+ function Je({
1498
1498
  draggable: e,
1499
1499
  insideDestination: t,
1500
1500
  destination: n,
@@ -1506,7 +1506,7 @@ function Ke({
1506
1506
  }) {
1507
1507
  const a = he(e, n);
1508
1508
  if (s == null)
1509
- return Hn({
1509
+ return Wn({
1510
1510
  insideDestination: t,
1511
1511
  inHomeList: a,
1512
1512
  displacedBy: o,
@@ -1514,7 +1514,7 @@ function Ke({
1514
1514
  });
1515
1515
  const d = t.find((m) => m.descriptor.index === s);
1516
1516
  if (!d)
1517
- return Hn({
1517
+ return Wn({
1518
1518
  insideDestination: t,
1519
1519
  inHomeList: a,
1520
1520
  displacedBy: o,
@@ -1583,7 +1583,7 @@ var vs = ({
1583
1583
  location: d.destination,
1584
1584
  insideDestination: i
1585
1585
  });
1586
- return l == null ? null : Ke({
1586
+ return l == null ? null : Je({
1587
1587
  draggable: n,
1588
1588
  insideDestination: i,
1589
1589
  destination: o,
@@ -1601,7 +1601,7 @@ var vs = ({
1601
1601
  combine: d.combine,
1602
1602
  afterCritical: a
1603
1603
  });
1604
- return p == null ? null : Ke({
1604
+ return p == null ? null : Je({
1605
1605
  draggable: n,
1606
1606
  insideDestination: i,
1607
1607
  destination: o,
@@ -1633,19 +1633,19 @@ var vs = ({
1633
1633
  });
1634
1634
  return F(i, s);
1635
1635
  };
1636
- const Hr = (e, t) => t.margin[e.start] + t.borderBox[e.size] / 2, xs = (e, t) => t.margin[e.end] + t.borderBox[e.size] / 2, en = (e, t, n) => t[e.crossAxisStart] + n.margin[e.crossAxisStart] + n.borderBox[e.crossAxisSize] / 2, zn = ({
1636
+ const Hr = (e, t) => t.margin[e.start] + t.borderBox[e.size] / 2, xs = (e, t) => t.margin[e.end] + t.borderBox[e.size] / 2, Zt = (e, t, n) => t[e.crossAxisStart] + n.margin[e.crossAxisStart] + n.borderBox[e.crossAxisSize] / 2, Un = ({
1637
1637
  axis: e,
1638
1638
  moveRelativeTo: t,
1639
1639
  isMoving: n
1640
- }) => ae(e.line, t.marginBox[e.end] + Hr(e, n), en(e, t.marginBox, n)), jn = ({
1640
+ }) => ae(e.line, t.marginBox[e.end] + Hr(e, n), Zt(e, t.marginBox, n)), Hn = ({
1641
1641
  axis: e,
1642
1642
  moveRelativeTo: t,
1643
1643
  isMoving: n
1644
- }) => ae(e.line, t.marginBox[e.start] - xs(e, n), en(e, t.marginBox, n)), Is = ({
1644
+ }) => ae(e.line, t.marginBox[e.start] - xs(e, n), Zt(e, t.marginBox, n)), Is = ({
1645
1645
  axis: e,
1646
1646
  moveInto: t,
1647
1647
  isMoving: n
1648
- }) => ae(e.line, t.contentBox[e.start] + Hr(e, n), en(e, t.contentBox, n));
1648
+ }) => ae(e.line, t.contentBox[e.start] + Hr(e, n), Zt(e, t.contentBox, n));
1649
1649
  var Os = ({
1650
1650
  impact: e,
1651
1651
  draggable: t,
@@ -1667,13 +1667,13 @@ var Os = ({
1667
1667
  if (p) {
1668
1668
  const u = n[p];
1669
1669
  if (ie(p, o))
1670
- return jn({
1670
+ return Hn({
1671
1671
  axis: c,
1672
1672
  moveRelativeTo: u.page,
1673
1673
  isMoving: s
1674
1674
  });
1675
- const g = je(u.page, d.point);
1676
- return jn({
1675
+ const g = qe(u.page, d.point);
1676
+ return Hn({
1677
1677
  axis: c,
1678
1678
  moveRelativeTo: g,
1679
1679
  isMoving: s
@@ -1683,23 +1683,23 @@ var Os = ({
1683
1683
  if (l.descriptor.id === t.descriptor.id)
1684
1684
  return s.borderBox.center;
1685
1685
  if (ie(l.descriptor.id, o)) {
1686
- const u = je(l.page, me(o.displacedBy.point));
1687
- return zn({
1686
+ const u = qe(l.page, me(o.displacedBy.point));
1687
+ return Un({
1688
1688
  axis: c,
1689
1689
  moveRelativeTo: u,
1690
1690
  isMoving: s
1691
1691
  });
1692
1692
  }
1693
- return zn({
1693
+ return Un({
1694
1694
  axis: c,
1695
1695
  moveRelativeTo: l.page,
1696
1696
  isMoving: s
1697
1697
  });
1698
- }, Mt = (e, t) => {
1698
+ }, Vt = (e, t) => {
1699
1699
  const n = e.frame;
1700
1700
  return n ? F(t, n.scroll.diff.displacement) : t;
1701
1701
  };
1702
- const ws = ({
1702
+ const Cs = ({
1703
1703
  impact: e,
1704
1704
  draggable: t,
1705
1705
  droppable: n,
@@ -1720,8 +1720,8 @@ const ws = ({
1720
1720
  });
1721
1721
  };
1722
1722
  var rt = (e) => {
1723
- const t = ws(e), n = e.droppable;
1724
- return n ? Mt(n, t) : t;
1723
+ const t = Cs(e), n = e.droppable;
1724
+ return n ? Vt(n, t) : t;
1725
1725
  }, zr = (e, t) => {
1726
1726
  const n = j(t, e.scroll.initial), r = me(n);
1727
1727
  return {
@@ -1742,10 +1742,10 @@ var rt = (e) => {
1742
1742
  }
1743
1743
  };
1744
1744
  };
1745
- function qn(e, t) {
1745
+ function zn(e, t) {
1746
1746
  return e.map((n) => t[n]);
1747
1747
  }
1748
- function Cs(e, t) {
1748
+ function ws(e, t) {
1749
1749
  for (let n = 0; n < t.length; n++) {
1750
1750
  const r = t[n].visible[e];
1751
1751
  if (r)
@@ -1760,15 +1760,15 @@ var Ss = ({
1760
1760
  draggables: r,
1761
1761
  maxScrollChange: o
1762
1762
  }) => {
1763
- const i = zr(t, F(t.scroll.current, o)), s = n.frame ? Kt(n, F(n.frame.scroll.current, o)) : n, c = e.displaced, a = Se({
1764
- afterDragging: qn(c.all, r),
1763
+ const i = zr(t, F(t.scroll.current, o)), s = n.frame ? Yt(n, F(n.frame.scroll.current, o)) : n, c = e.displaced, a = Se({
1764
+ afterDragging: zn(c.all, r),
1765
1765
  destination: n,
1766
1766
  displacedBy: e.displacedBy,
1767
1767
  viewport: i.frame,
1768
1768
  last: c,
1769
1769
  forceShouldAnimate: !1
1770
1770
  }), d = Se({
1771
- afterDragging: qn(c.all, r),
1771
+ afterDragging: zn(c.all, r),
1772
1772
  destination: s,
1773
1773
  displacedBy: e.displacedBy,
1774
1774
  viewport: t.frame,
@@ -1776,7 +1776,7 @@ var Ss = ({
1776
1776
  forceShouldAnimate: !1
1777
1777
  }), p = {}, l = {}, u = [c, a, d];
1778
1778
  return c.all.forEach((m) => {
1779
- const b = Cs(m, u);
1779
+ const b = ws(m, u);
1780
1780
  if (b) {
1781
1781
  l[m] = b;
1782
1782
  return;
@@ -1790,7 +1790,7 @@ var Ss = ({
1790
1790
  visible: l
1791
1791
  }
1792
1792
  };
1793
- }, As = (e, t) => F(e.scroll.diff.displacement, t), tn = ({
1793
+ }, As = (e, t) => F(e.scroll.diff.displacement, t), Qt = ({
1794
1794
  pageBorderBoxCenter: e,
1795
1795
  draggable: t,
1796
1796
  viewport: n
@@ -1806,7 +1806,7 @@ var Ss = ({
1806
1806
  onlyOnMainAxis: i = !1
1807
1807
  }) => {
1808
1808
  const s = j(n, e.page.borderBox.center), a = {
1809
- target: Te(e.page.borderBox, s),
1809
+ target: Be(e.page.borderBox, s),
1810
1810
  destination: t,
1811
1811
  withDroppableDisplacement: o,
1812
1812
  viewport: r
@@ -1860,7 +1860,7 @@ var Ss = ({
1860
1860
  onlyOnMainAxis: !0
1861
1861
  }))
1862
1862
  return {
1863
- clientSelection: tn({
1863
+ clientSelection: Qt({
1864
1864
  pageBorderBoxCenter: u,
1865
1865
  draggable: t,
1866
1866
  viewport: i
@@ -1911,16 +1911,16 @@ var Ps = ({
1911
1911
  return a[0];
1912
1912
  const d = a.filter((p) => J(k(p)[s.start], k(p)[s.end])(t[s.line]));
1913
1913
  return d.length === 1 ? d[0] : d.length > 1 ? d.sort((p, l) => k(p)[s.start] - k(l)[s.start])[0] : a.sort((p, l) => {
1914
- const u = Wn(t, Un(k(p))), g = Wn(t, Un(k(l)));
1914
+ const u = Fn(t, kn(k(p))), g = Fn(t, kn(k(l)));
1915
1915
  return u !== g ? u - g : k(p)[s.start] - k(l)[s.start];
1916
1916
  })[0];
1917
1917
  };
1918
- const Yn = (e, t) => {
1918
+ const jn = (e, t) => {
1919
1919
  const n = e.page.borderBox.center;
1920
1920
  return ie(e.descriptor.id, t) ? j(n, t.displacedBy.point) : n;
1921
1921
  }, Rs = (e, t) => {
1922
1922
  const n = e.page.borderBox;
1923
- return ie(e.descriptor.id, t) ? Te(n, me(t.displacedBy.point)) : n;
1923
+ return ie(e.descriptor.id, t) ? Be(n, me(t.displacedBy.point)) : n;
1924
1924
  };
1925
1925
  var Ts = ({
1926
1926
  pageBorderBoxCenter: e,
@@ -1934,9 +1934,9 @@ var Ts = ({
1934
1934
  viewport: t.frame,
1935
1935
  withDroppableDisplacement: !0
1936
1936
  })).sort((s, c) => {
1937
- const a = we(e, Mt(n, Yn(s, o))), d = we(e, Mt(n, Yn(c, o)));
1937
+ const a = Ce(e, Vt(n, jn(s, o))), d = Ce(e, Vt(n, jn(c, o)));
1938
1938
  return a < d ? -1 : d < a ? 1 : s.descriptor.index - c.descriptor.index;
1939
- })[0] || null, Be = $(function(t, n) {
1939
+ })[0] || null, Ve = $(function(t, n) {
1940
1940
  const r = n[t.line];
1941
1941
  return {
1942
1942
  value: r,
@@ -1958,7 +1958,7 @@ const Bs = (e, t, n) => {
1958
1958
  }), Yr = (e, t, n) => {
1959
1959
  const r = e.frame;
1960
1960
  he(t, e) && (process.env.NODE_ENV !== "production" ? f(!1, "Should not add placeholder space to home list") : f()), e.subject.withPlaceholder && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot add placeholder size to a subject when it already has one") : f());
1961
- const o = Be(e.axis, t.displaceBy).point, i = Bs(e, o, n), s = {
1961
+ const o = Ve(e.axis, t.displaceBy).point, i = Bs(e, o, n), s = {
1962
1962
  placeholderSize: o,
1963
1963
  increasedBy: i,
1964
1964
  oldFrameMaxScroll: e.frame ? e.frame.scroll.max : null
@@ -2030,7 +2030,7 @@ var Ls = ({
2030
2030
  if (n.length)
2031
2031
  return null;
2032
2032
  const l = {
2033
- displaced: Ce,
2033
+ displaced: we,
2034
2034
  displacedBy: Fr,
2035
2035
  at: {
2036
2036
  type: "REORDER",
@@ -2058,14 +2058,14 @@ var Ls = ({
2058
2058
  const a = e[i.axis.line] <= t.page.borderBox.center[i.axis.line], d = (() => {
2059
2059
  const l = t.descriptor.index;
2060
2060
  return t.descriptor.id === r.descriptor.id || a ? l : l + 1;
2061
- })(), p = Be(i.axis, r.displaceBy);
2062
- return Ke({
2061
+ })(), p = Ve(i.axis, r.displaceBy);
2062
+ return Je({
2063
2063
  draggable: r,
2064
2064
  insideDestination: n,
2065
2065
  destination: i,
2066
2066
  viewport: s,
2067
2067
  displacedBy: p,
2068
- last: Ce,
2068
+ last: we,
2069
2069
  index: d
2070
2070
  });
2071
2071
  }, Ms = ({
@@ -2113,7 +2113,7 @@ var Ls = ({
2113
2113
  afterCritical: c
2114
2114
  });
2115
2115
  return {
2116
- clientSelection: tn({
2116
+ clientSelection: Qt({
2117
2117
  pageBorderBoxCenter: u,
2118
2118
  draggable: n,
2119
2119
  viewport: s
@@ -2182,7 +2182,7 @@ function ks({
2182
2182
  const s = i.axis, c = ae(i.axis.line, e.center[s.line], i.page.borderBox.center[s.crossAxisLine]);
2183
2183
  return {
2184
2184
  id: i.descriptor.id,
2185
- distance: we(r, c)
2185
+ distance: Ce(r, c)
2186
2186
  };
2187
2187
  }).sort((i, s) => s.distance - i.distance);
2188
2188
  return o[0] ? o[0].id : null;
@@ -2209,7 +2209,7 @@ function Ws({
2209
2209
  candidates: r
2210
2210
  }) : null;
2211
2211
  }
2212
- const Kr = (e, t) => Z(Te(e, t));
2212
+ const Kr = (e, t) => Z(Be(e, t));
2213
2213
  var Us = (e, t) => {
2214
2214
  const n = e.frame;
2215
2215
  return n ? Kr(t, n.scroll.diff.value) : t;
@@ -2236,7 +2236,7 @@ var zs = ({
2236
2236
  viewport: i,
2237
2237
  afterCritical: s
2238
2238
  }) => {
2239
- const c = n.axis, a = Be(n.axis, t.displaceBy), d = a.value, p = e[c.start], l = e[c.end], g = nt(t, r).find((b) => {
2239
+ const c = n.axis, a = Ve(n.axis, t.displaceBy), d = a.value, p = e[c.start], l = e[c.end], g = nt(t, r).find((b) => {
2240
2240
  const h = b.descriptor.id, y = b.page.borderBox.center[c.line], v = ie(h, s), I = Jr({
2241
2241
  displaced: o,
2242
2242
  id: h
@@ -2247,7 +2247,7 @@ var zs = ({
2247
2247
  closest: g,
2248
2248
  inHomeList: he(t, n)
2249
2249
  });
2250
- return Ke({
2250
+ return Je({
2251
2251
  draggable: t,
2252
2252
  insideDestination: r,
2253
2253
  destination: n,
@@ -2268,7 +2268,7 @@ var qs = ({
2268
2268
  }) => {
2269
2269
  if (!r.isCombineEnabled)
2270
2270
  return null;
2271
- const s = r.axis, c = Be(r.axis, e.displaceBy), a = c.value, d = t[s.start], p = t[s.end], u = nt(e, o).find((m) => {
2271
+ const s = r.axis, c = Ve(r.axis, e.displaceBy), a = c.value, d = t[s.start], p = t[s.end], u = nt(e, o).find((m) => {
2272
2272
  const b = m.descriptor.id, h = m.page.borderBox, v = h[s.size] / js, I = ie(b, i), N = Jr({
2273
2273
  displaced: n.displaced,
2274
2274
  id: b
@@ -2319,7 +2319,7 @@ var qs = ({
2319
2319
  viewport: i,
2320
2320
  afterCritical: s
2321
2321
  });
2322
- }, nn = (e, t) => ({
2322
+ }, en = (e, t) => ({
2323
2323
  ...e,
2324
2324
  [t.descriptor.id]: t
2325
2325
  });
@@ -2335,7 +2335,7 @@ const Ys = ({
2335
2335
  if (!i.subject.withPlaceholder)
2336
2336
  return n;
2337
2337
  const s = Vs(i);
2338
- return nn(n, s);
2338
+ return en(n, s);
2339
2339
  };
2340
2340
  var Xs = ({
2341
2341
  draggable: e,
@@ -2355,7 +2355,7 @@ var Xs = ({
2355
2355
  if (he(e, c) || c.subject.withPlaceholder)
2356
2356
  return i;
2357
2357
  const a = Yr(c, e, t);
2358
- return nn(i, a);
2358
+ return en(i, a);
2359
2359
  }, Ne = ({
2360
2360
  state: e,
2361
2361
  clientSelection: t,
@@ -2448,7 +2448,7 @@ var Qr = ({
2448
2448
  droppable: n,
2449
2449
  afterCritical: i
2450
2450
  });
2451
- return tn({
2451
+ return Qt({
2452
2452
  pageBorderBoxCenter: s,
2453
2453
  draggable: t,
2454
2454
  viewport: o
@@ -2493,7 +2493,7 @@ var Qr = ({
2493
2493
  draggables: n,
2494
2494
  viewport: r
2495
2495
  }) => {
2496
- const o = Be(t.axis, e.displaceBy), i = le(t.descriptor.id, n), s = i.indexOf(e);
2496
+ const o = Ve(t.axis, e.displaceBy), i = le(t.descriptor.id, n), s = i.indexOf(e);
2497
2497
  s === -1 && (process.env.NODE_ENV !== "production" ? f(!1, "Expected draggable to be inside home list") : f());
2498
2498
  const c = i.slice(s + 1), a = c.reduce((u, g) => (u[g.descriptor.id] = !0, u), {}), d = {
2499
2499
  inVirtualList: t.descriptor.mode === "virtual",
@@ -2520,11 +2520,11 @@ var Qr = ({
2520
2520
  };
2521
2521
  }, Zs = (e, t) => ({
2522
2522
  draggables: e.draggables,
2523
- droppables: nn(e.droppables, t)
2523
+ droppables: en(e.droppables, t)
2524
2524
  });
2525
- const Ve = (e) => {
2525
+ const Le = (e) => {
2526
2526
  process.env.NODE_ENV;
2527
- }, Le = (e) => {
2527
+ }, Me = (e) => {
2528
2528
  process.env.NODE_ENV;
2529
2529
  };
2530
2530
  var Qs = ({
@@ -2532,7 +2532,7 @@ var Qs = ({
2532
2532
  offset: t,
2533
2533
  initialWindowScroll: n
2534
2534
  }) => {
2535
- const r = je(e.client, t), o = qe(r, n);
2535
+ const r = qe(e.client, t), o = Ye(r, n);
2536
2536
  return {
2537
2537
  ...e,
2538
2538
  placeholder: {
@@ -2563,10 +2563,10 @@ var Qs = ({
2563
2563
  state: e,
2564
2564
  published: t
2565
2565
  }) => {
2566
- Ve();
2566
+ Le();
2567
2567
  const n = t.modified.map((y) => {
2568
2568
  const v = e.dimensions.droppables[y.droppableId];
2569
- return Kt(v, y.scroll);
2569
+ return Yt(v, y.scroll);
2570
2570
  }), r = {
2571
2571
  ...e.dimensions.droppables,
2572
2572
  ...$r(n)
@@ -2601,7 +2601,7 @@ var Qs = ({
2601
2601
  viewport: e.viewport,
2602
2602
  afterCritical: u
2603
2603
  });
2604
- Le();
2604
+ Me();
2605
2605
  const b = {
2606
2606
  ...e,
2607
2607
  phase: "DRAGGING",
@@ -2618,9 +2618,9 @@ var Qs = ({
2618
2618
  isWaiting: !1
2619
2619
  };
2620
2620
  };
2621
- const $t = (e) => e.movementMode === "SNAP", Et = (e, t, n) => {
2621
+ const Lt = (e) => e.movementMode === "SNAP", Et = (e, t, n) => {
2622
2622
  const r = Zs(e.dimensions, t);
2623
- return !$t(e) || n ? Ne({
2623
+ return !Lt(e) || n ? Ne({
2624
2624
  state: e,
2625
2625
  dimensions: r
2626
2626
  }) : to({
@@ -2634,15 +2634,15 @@ function Dt(e) {
2634
2634
  scrollJumpRequest: null
2635
2635
  } : e;
2636
2636
  }
2637
- const Xn = {
2637
+ const qn = {
2638
2638
  phase: "IDLE",
2639
2639
  completed: null,
2640
2640
  shouldFlush: !1
2641
2641
  };
2642
- var rc = (e = Xn, t) => {
2642
+ var rc = (e = qn, t) => {
2643
2643
  if (t.type === "FLUSH")
2644
2644
  return {
2645
- ...Xn,
2645
+ ...qn,
2646
2646
  shouldFlush: !0
2647
2647
  };
2648
2648
  if (t.type === "INITIAL_PUBLISH") {
@@ -2710,7 +2710,7 @@ var rc = (e = Xn, t) => {
2710
2710
  return oe(n, e.current.client.selection) ? e : Ne({
2711
2711
  state: e,
2712
2712
  clientSelection: n,
2713
- impact: $t(e) ? e.impact : null
2713
+ impact: Lt(e) ? e.impact : null
2714
2714
  });
2715
2715
  }
2716
2716
  if (t.type === "UPDATE_DROPPABLE_SCROLL") {
@@ -2723,7 +2723,7 @@ var rc = (e = Xn, t) => {
2723
2723
  } = t.payload, o = e.dimensions.droppables[n];
2724
2724
  if (!o)
2725
2725
  return e;
2726
- const i = Kt(o, r);
2726
+ const i = Yt(o, r);
2727
2727
  return Et(e, i, !1);
2728
2728
  }
2729
2729
  if (t.type === "UPDATE_DROPPABLE_IS_ENABLED") {
@@ -2766,7 +2766,7 @@ var rc = (e = Xn, t) => {
2766
2766
  if (oe(e.viewport.scroll.current, n))
2767
2767
  return Dt(e);
2768
2768
  const r = zr(e.viewport, n);
2769
- return $t(e) ? to({
2769
+ return Lt(e) ? to({
2770
2770
  state: e,
2771
2771
  viewport: r
2772
2772
  }) : Ne({
@@ -2842,7 +2842,7 @@ var rc = (e = Xn, t) => {
2842
2842
  }
2843
2843
  return e;
2844
2844
  };
2845
- function A(e, t) {
2845
+ function _(e, t) {
2846
2846
  return e instanceof Object && "type" in e && e.type === t;
2847
2847
  }
2848
2848
  const oc = (e) => ({
@@ -2890,13 +2890,13 @@ const oc = (e) => ({
2890
2890
  }), bc = () => ({
2891
2891
  type: "MOVE_LEFT",
2892
2892
  payload: null
2893
- }), rn = () => ({
2893
+ }), tn = () => ({
2894
2894
  type: "FLUSH",
2895
2895
  payload: null
2896
2896
  }), vc = (e) => ({
2897
2897
  type: "DROP_ANIMATE",
2898
2898
  payload: e
2899
- }), on = (e) => ({
2899
+ }), nn = (e) => ({
2900
2900
  type: "DROP_COMPLETE",
2901
2901
  payload: e
2902
2902
  }), oo = (e) => ({
@@ -2938,7 +2938,7 @@ var Nc = (e) => ({
2938
2938
  getState: t,
2939
2939
  dispatch: n
2940
2940
  }) => (r) => (o) => {
2941
- if (!A(o, "LIFT")) {
2941
+ if (!_(o, "LIFT")) {
2942
2942
  r(o);
2943
2943
  return;
2944
2944
  }
@@ -2947,9 +2947,9 @@ var Nc = (e) => ({
2947
2947
  clientSelection: s,
2948
2948
  movementMode: c
2949
2949
  } = o.payload, a = t();
2950
- a.phase === "DROP_ANIMATING" && n(on({
2950
+ a.phase === "DROP_ANIMATING" && n(nn({
2951
2951
  completed: a.completed
2952
- })), t().phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? f(!1, "Unexpected phase to start a drag") : f()), n(rn()), n(oc({
2952
+ })), t().phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? f(!1, "Unexpected phase to start a drag") : f()), n(tn()), n(oc({
2953
2953
  draggableId: i,
2954
2954
  movementMode: c
2955
2955
  }));
@@ -2971,9 +2971,9 @@ var Nc = (e) => ({
2971
2971
  viewport: g
2972
2972
  }));
2973
2973
  }, xc = (e) => () => (t) => (n) => {
2974
- A(n, "INITIAL_PUBLISH") && e.dragging(), A(n, "DROP_ANIMATE") && e.dropping(n.payload.completed.result.reason), (A(n, "FLUSH") || A(n, "DROP_COMPLETE")) && e.resting(), t(n);
2974
+ _(n, "INITIAL_PUBLISH") && e.dragging(), _(n, "DROP_ANIMATE") && e.dropping(n.payload.completed.result.reason), (_(n, "FLUSH") || _(n, "DROP_COMPLETE")) && e.resting(), t(n);
2975
2975
  };
2976
- const sn = {
2976
+ const rn = {
2977
2977
  outOfTheWay: "cubic-bezier(0.2, 0, 0, 1)",
2978
2978
  drop: "cubic-bezier(.2,1,.1,1)"
2979
2979
  }, Ae = {
@@ -2988,39 +2988,39 @@ const sn = {
2988
2988
  outOfTheWay: 0.2,
2989
2989
  minDropTime: 0.33,
2990
2990
  maxDropTime: 0.55
2991
- }, se = `${so.outOfTheWay}s ${sn.outOfTheWay}`, xe = {
2991
+ }, se = `${so.outOfTheWay}s ${rn.outOfTheWay}`, xe = {
2992
2992
  fluid: `opacity ${se}`,
2993
2993
  snap: `transform ${se}, opacity ${se}`,
2994
2994
  drop: (e) => {
2995
- const t = `${e}s ${sn.drop}`;
2995
+ const t = `${e}s ${rn.drop}`;
2996
2996
  return `transform ${t}, opacity ${t}`;
2997
2997
  },
2998
2998
  outOfTheWay: `transform ${se}`,
2999
2999
  placeholder: `height ${se}, width ${se}, margin ${se}`
3000
- }, Kn = (e) => oe(e, G) ? void 0 : `translate(${e.x}px, ${e.y}px)`, Gt = {
3001
- moveTo: Kn,
3000
+ }, Yn = (e) => oe(e, G) ? void 0 : `translate(${e.x}px, ${e.y}px)`, Mt = {
3001
+ moveTo: Yn,
3002
3002
  drop: (e, t) => {
3003
- const n = Kn(e);
3003
+ const n = Yn(e);
3004
3004
  if (n)
3005
3005
  return t ? `${n} scale(${Ae.scale.drop})` : n;
3006
3006
  }
3007
3007
  }, {
3008
- minDropTime: Ft,
3008
+ minDropTime: $t,
3009
3009
  maxDropTime: co
3010
- } = so, Ic = co - Ft, Jn = 1500, Oc = 0.6;
3011
- var wc = ({
3010
+ } = so, Ic = co - $t, Xn = 1500, Oc = 0.6;
3011
+ var Cc = ({
3012
3012
  current: e,
3013
3013
  destination: t,
3014
3014
  reason: n
3015
3015
  }) => {
3016
- const r = we(e, t);
3016
+ const r = Ce(e, t);
3017
3017
  if (r <= 0)
3018
- return Ft;
3019
- if (r >= Jn)
3018
+ return $t;
3019
+ if (r >= Xn)
3020
3020
  return co;
3021
- const o = r / Jn, i = Ft + Ic * o, s = n === "CANCEL" ? i * Oc : i;
3021
+ const o = r / Xn, i = $t + Ic * o, s = n === "CANCEL" ? i * Oc : i;
3022
3022
  return Number(s.toFixed(2));
3023
- }, Cc = ({
3023
+ }, wc = ({
3024
3024
  impact: e,
3025
3025
  draggable: t,
3026
3026
  dimensions: n,
@@ -3061,7 +3061,7 @@ var wc = ({
3061
3061
  } : {
3062
3062
  impact: {
3063
3063
  ...n,
3064
- displaced: Ce
3064
+ displaced: we
3065
3065
  },
3066
3066
  didDropInsideDroppable: !0
3067
3067
  };
@@ -3069,7 +3069,7 @@ const Ac = ({
3069
3069
  getState: e,
3070
3070
  dispatch: t
3071
3071
  }) => (n) => (r) => {
3072
- if (!A(r, "DROP")) {
3072
+ if (!_(r, "DROP")) {
3073
3073
  n(r);
3074
3074
  return;
3075
3075
  }
@@ -3094,7 +3094,7 @@ const Ac = ({
3094
3094
  home: o.dimensions.droppables[o.critical.droppable.id],
3095
3095
  viewport: o.viewport,
3096
3096
  draggables: o.dimensions.draggables
3097
- }), u = l ? Jt(p) : null, g = l ? tt(p) : null, m = {
3097
+ }), u = l ? Xt(p) : null, g = l ? tt(p) : null, m = {
3098
3098
  index: c.draggable.index,
3099
3099
  droppableId: c.droppable.id
3100
3100
  }, b = {
@@ -3105,7 +3105,7 @@ const Ac = ({
3105
3105
  mode: o.movementMode,
3106
3106
  destination: u,
3107
3107
  combine: g
3108
- }, h = Cc({
3108
+ }, h = wc({
3109
3109
  impact: p,
3110
3110
  draggable: d,
3111
3111
  dimensions: a,
@@ -3118,12 +3118,12 @@ const Ac = ({
3118
3118
  impact: p
3119
3119
  };
3120
3120
  if (!(!oe(o.current.client.offset, h) || !!b.combine)) {
3121
- t(on({
3121
+ t(nn({
3122
3122
  completed: y
3123
3123
  }));
3124
3124
  return;
3125
3125
  }
3126
- const I = wc({
3126
+ const I = Cc({
3127
3127
  current: o.current.client.offset,
3128
3128
  destination: h,
3129
3129
  reason: i
@@ -3173,7 +3173,7 @@ function Pc({
3173
3173
  isActive: i
3174
3174
  };
3175
3175
  }
3176
- const Rc = (e) => A(e, "DROP_COMPLETE") || A(e, "DROP_ANIMATE") || A(e, "FLUSH"), Tc = (e) => {
3176
+ const Rc = (e) => _(e, "DROP_COMPLETE") || _(e, "DROP_ANIMATE") || _(e, "FLUSH"), Tc = (e) => {
3177
3177
  const t = Pc({
3178
3178
  onWindowScroll: (n) => {
3179
3179
  e.dispatch(pc({
@@ -3182,7 +3182,7 @@ const Rc = (e) => A(e, "DROP_COMPLETE") || A(e, "DROP_ANIMATE") || A(e, "FLUSH")
3182
3182
  }
3183
3183
  });
3184
3184
  return (n) => (r) => {
3185
- !t.isActive() && A(r, "INITIAL_PUBLISH") && t.start(), t.isActive() && Rc(r) && t.stop(), n(r);
3185
+ !t.isActive() && _(r, "INITIAL_PUBLISH") && t.start(), t.isActive() && Rc(r) && t.stop(), n(r);
3186
3186
  };
3187
3187
  };
3188
3188
  var Bc = (e) => {
@@ -3235,8 +3235,8 @@ const Lc = (e, t) => e == null && t == null ? !0 : e == null || t == null ? !1 :
3235
3235
  const n = e.draggable.id === t.draggable.id && e.draggable.droppableId === t.draggable.droppableId && e.draggable.type === t.draggable.type && e.draggable.index === t.draggable.index, r = e.droppable.id === t.droppable.id && e.droppable.type === t.droppable.type;
3236
3236
  return n && r;
3237
3237
  }, ye = (e, t) => {
3238
- Ve(), t(), Le();
3239
- }, ke = (e, t) => ({
3238
+ Le(), t(), Me();
3239
+ }, We = (e, t) => ({
3240
3240
  draggableId: e.draggable.id,
3241
3241
  type: e.droppable.type,
3242
3242
  source: {
@@ -3269,21 +3269,21 @@ var Gc = (e, t) => {
3269
3269
  }, i = (l, u) => {
3270
3270
  r && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : f()), ye("onBeforeDragStart", () => {
3271
3271
  const g = e().onBeforeDragStart;
3272
- g && g(ke(l, u));
3272
+ g && g(We(l, u));
3273
3273
  });
3274
3274
  }, s = (l, u) => {
3275
3275
  r && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot fire onBeforeDragStart as a drag start has already been published") : f());
3276
- const g = ke(l, u);
3276
+ const g = We(l, u);
3277
3277
  r = {
3278
3278
  mode: u,
3279
3279
  lastCritical: l,
3280
3280
  lastLocation: g.source,
3281
3281
  lastCombine: null
3282
3282
  }, n.add(() => {
3283
- ye("onDragStart", () => Nt(e().onDragStart, g, t, He.onDragStart));
3283
+ ye("onDragStart", () => Nt(e().onDragStart, g, t, ze.onDragStart));
3284
3284
  });
3285
3285
  }, c = (l, u) => {
3286
- const g = Jt(u), m = tt(u);
3286
+ const g = Xt(u), m = tt(u);
3287
3287
  r || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot fire onDragMove when onDragStart has not been called") : f());
3288
3288
  const b = !$c(l, r.lastCritical);
3289
3289
  b && (r.lastCritical = l);
@@ -3293,17 +3293,17 @@ var Gc = (e, t) => {
3293
3293
  if (y && (r.lastCombine = m), !b && !h && !y)
3294
3294
  return;
3295
3295
  const v = {
3296
- ...ke(l, r.mode),
3296
+ ...We(l, r.mode),
3297
3297
  combine: m,
3298
3298
  destination: g
3299
3299
  };
3300
3300
  n.add(() => {
3301
- ye("onDragUpdate", () => Nt(e().onDragUpdate, v, t, He.onDragUpdate));
3301
+ ye("onDragUpdate", () => Nt(e().onDragUpdate, v, t, ze.onDragUpdate));
3302
3302
  });
3303
3303
  }, a = () => {
3304
3304
  r || (process.env.NODE_ENV !== "production" ? f(!1, "Can only flush responders while dragging") : f()), n.flush();
3305
3305
  }, d = (l) => {
3306
- r || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot fire onDragEnd when there is no matching onDragStart") : f()), r = null, ye("onDragEnd", () => Nt(e().onDragEnd, l, t, He.onDragEnd));
3306
+ r || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot fire onDragEnd when there is no matching onDragStart") : f()), r = null, ye("onDragEnd", () => Nt(e().onDragEnd, l, t, ze.onDragEnd));
3307
3307
  };
3308
3308
  return {
3309
3309
  beforeCapture: o,
@@ -3316,7 +3316,7 @@ var Gc = (e, t) => {
3316
3316
  if (!r)
3317
3317
  return;
3318
3318
  const l = {
3319
- ...ke(r.lastCritical, r.mode),
3319
+ ...We(r.lastCritical, r.mode),
3320
3320
  combine: null,
3321
3321
  destination: null,
3322
3322
  reason: "CANCEL"
@@ -3327,21 +3327,21 @@ var Gc = (e, t) => {
3327
3327
  }, Fc = (e, t) => {
3328
3328
  const n = Gc(e, t);
3329
3329
  return (r) => (o) => (i) => {
3330
- if (A(i, "BEFORE_INITIAL_CAPTURE")) {
3330
+ if (_(i, "BEFORE_INITIAL_CAPTURE")) {
3331
3331
  n.beforeCapture(i.payload.draggableId, i.payload.movementMode);
3332
3332
  return;
3333
3333
  }
3334
- if (A(i, "INITIAL_PUBLISH")) {
3334
+ if (_(i, "INITIAL_PUBLISH")) {
3335
3335
  const c = i.payload.critical;
3336
3336
  n.beforeStart(c, i.payload.movementMode), o(i), n.start(c, i.payload.movementMode);
3337
3337
  return;
3338
3338
  }
3339
- if (A(i, "DROP_COMPLETE")) {
3339
+ if (_(i, "DROP_COMPLETE")) {
3340
3340
  const c = i.payload.completed.result;
3341
3341
  n.flush(), o(i), n.drop(c);
3342
3342
  return;
3343
3343
  }
3344
- if (o(i), A(i, "FLUSH")) {
3344
+ if (o(i), _(i, "FLUSH")) {
3345
3345
  n.abort();
3346
3346
  return;
3347
3347
  }
@@ -3350,12 +3350,12 @@ var Gc = (e, t) => {
3350
3350
  };
3351
3351
  };
3352
3352
  const kc = (e) => (t) => (n) => {
3353
- if (!A(n, "DROP_ANIMATION_FINISHED")) {
3353
+ if (!_(n, "DROP_ANIMATION_FINISHED")) {
3354
3354
  t(n);
3355
3355
  return;
3356
3356
  }
3357
3357
  const r = e.getState();
3358
- r.phase !== "DROP_ANIMATING" && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot finish a drop animating when no drop is occurring") : f()), e.dispatch(on({
3358
+ r.phase !== "DROP_ANIMATING" && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot finish a drop animating when no drop is occurring") : f()), e.dispatch(nn({
3359
3359
  completed: r.completed
3360
3360
  }));
3361
3361
  }, Wc = (e) => {
@@ -3364,7 +3364,7 @@ const kc = (e) => (t) => (n) => {
3364
3364
  n && (cancelAnimationFrame(n), n = null), t && (t(), t = null);
3365
3365
  }
3366
3366
  return (o) => (i) => {
3367
- if ((A(i, "FLUSH") || A(i, "DROP_COMPLETE") || A(i, "DROP_ANIMATION_FINISHED")) && r(), o(i), !A(i, "DROP_ANIMATE"))
3367
+ if ((_(i, "FLUSH") || _(i, "DROP_COMPLETE") || _(i, "DROP_ANIMATION_FINISHED")) && r(), o(i), !_(i, "DROP_ANIMATE"))
3368
3368
  return;
3369
3369
  const s = {
3370
3370
  eventName: "scroll",
@@ -3383,20 +3383,20 @@ const kc = (e) => (t) => (n) => {
3383
3383
  };
3384
3384
  };
3385
3385
  var Uc = (e) => () => (t) => (n) => {
3386
- (A(n, "DROP_COMPLETE") || A(n, "FLUSH") || A(n, "DROP_ANIMATE")) && e.stopPublishing(), t(n);
3386
+ (_(n, "DROP_COMPLETE") || _(n, "FLUSH") || _(n, "DROP_ANIMATE")) && e.stopPublishing(), t(n);
3387
3387
  }, Hc = (e) => {
3388
3388
  let t = !1;
3389
3389
  return () => (n) => (r) => {
3390
- if (A(r, "INITIAL_PUBLISH")) {
3390
+ if (_(r, "INITIAL_PUBLISH")) {
3391
3391
  t = !0, e.tryRecordFocus(r.payload.critical.draggable.id), n(r), e.tryRestoreFocusRecorded();
3392
3392
  return;
3393
3393
  }
3394
3394
  if (n(r), !!t) {
3395
- if (A(r, "FLUSH")) {
3395
+ if (_(r, "FLUSH")) {
3396
3396
  t = !1, e.tryRestoreFocusRecorded();
3397
3397
  return;
3398
3398
  }
3399
- if (A(r, "DROP_COMPLETE")) {
3399
+ if (_(r, "DROP_COMPLETE")) {
3400
3400
  t = !1;
3401
3401
  const o = r.payload.completed.result;
3402
3402
  o.combine && e.tryShiftRecord(o.draggableId, o.combine.draggableId), e.tryRestoreFocusRecorded();
@@ -3404,13 +3404,13 @@ var Uc = (e) => () => (t) => (n) => {
3404
3404
  }
3405
3405
  };
3406
3406
  };
3407
- const zc = (e) => A(e, "DROP_COMPLETE") || A(e, "DROP_ANIMATE") || A(e, "FLUSH");
3407
+ const zc = (e) => _(e, "DROP_COMPLETE") || _(e, "DROP_ANIMATE") || _(e, "FLUSH");
3408
3408
  var jc = (e) => (t) => (n) => (r) => {
3409
3409
  if (zc(r)) {
3410
3410
  e.stop(), n(r);
3411
3411
  return;
3412
3412
  }
3413
- if (A(r, "INITIAL_PUBLISH")) {
3413
+ if (_(r, "INITIAL_PUBLISH")) {
3414
3414
  n(r);
3415
3415
  const o = t.getState();
3416
3416
  o.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? f(!1, "Expected phase to be DRAGGING after INITIAL_PUBLISH") : f()), e.start(o);
@@ -3419,7 +3419,7 @@ var jc = (e) => (t) => (n) => (r) => {
3419
3419
  n(r), e.scroll(t.getState());
3420
3420
  };
3421
3421
  const qc = (e) => (t) => (n) => {
3422
- if (t(n), !A(n, "PUBLISH_WHILE_DRAGGING"))
3422
+ if (t(n), !_(n, "PUBLISH_WHILE_DRAGGING"))
3423
3423
  return;
3424
3424
  const r = e.getState();
3425
3425
  r.phase === "DROP_PENDING" && (r.isWaiting || e.dispatch(oo({
@@ -3448,7 +3448,7 @@ function Kc({
3448
3448
  let n = xt(), r = null;
3449
3449
  const o = () => {
3450
3450
  r || (t.collectionStarting(), r = requestAnimationFrame(() => {
3451
- r = null, Ve();
3451
+ r = null, Le();
3452
3452
  const {
3453
3453
  additions: a,
3454
3454
  removals: d,
@@ -3464,7 +3464,7 @@ function Kc({
3464
3464
  removals: Object.keys(d),
3465
3465
  modified: u
3466
3466
  };
3467
- n = xt(), Le(), t.publish(g);
3467
+ n = xt(), Me(), t.publish(g);
3468
3468
  }));
3469
3469
  };
3470
3470
  return {
@@ -3533,18 +3533,18 @@ var lo = ({
3533
3533
  scrollOptions: t,
3534
3534
  registry: n
3535
3535
  }) => {
3536
- Ve();
3536
+ Le();
3537
3537
  const r = Jc(), o = r.scroll.current, i = e.droppable, s = n.droppable.getAllByType(i.type).map((p) => p.callbacks.getDimensionAndWatchScroll(o, t)), c = n.draggable.getAllByType(e.draggable.type).map((p) => p.getDimension(o)), a = {
3538
3538
  draggables: Gr(c),
3539
3539
  droppables: $r(s)
3540
3540
  };
3541
- return Le(), {
3541
+ return Me(), {
3542
3542
  dimensions: a,
3543
3543
  critical: e,
3544
3544
  viewport: r
3545
3545
  };
3546
3546
  };
3547
- function Zn(e, t, n) {
3547
+ function Kn(e, t, n) {
3548
3548
  return n.descriptor.id === t.id || n.descriptor.type !== t.type ? !1 : e.droppable.getById(n.descriptor.droppableId).descriptor.mode !== "virtual" ? (process.env.NODE_ENV !== "production" && R(`
3549
3549
  You are attempting to add or remove a Draggable [id: ${n.descriptor.id}]
3550
3550
  while a drag is occurring. This is only supported for virtual lists.
@@ -3586,7 +3586,7 @@ var Qc = (e, t) => {
3586
3586
  }, d = (u) => {
3587
3587
  n || (process.env.NODE_ENV !== "production" ? f(!1, "Should only be subscribed when a collection is occurring") : f());
3588
3588
  const g = n.critical.draggable;
3589
- u.type === "ADDITION" && Zn(e, g, u.value) && r.add(u.value), u.type === "REMOVAL" && Zn(e, g, u.value) && r.remove(u.value);
3589
+ u.type === "ADDITION" && Kn(e, g, u.value) && r.add(u.value), u.type === "REMOVAL" && Kn(e, g, u.value) && r.remove(u.value);
3590
3590
  };
3591
3591
  return {
3592
3592
  updateDroppableIsEnabled: o,
@@ -3653,14 +3653,14 @@ var oa = (e, t, n = () => _e) => {
3653
3653
  This is unexpected and would cause a divide by 0 issue.
3654
3654
  Not allowing an auto scroll
3655
3655
  `), 0) : (n - e) / r;
3656
- }, cn = 1, ia = (e, t, n = () => _e) => {
3656
+ }, on = 1, ia = (e, t, n = () => _e) => {
3657
3657
  const r = n();
3658
3658
  if (e > t.startScrollingFrom)
3659
3659
  return 0;
3660
3660
  if (e <= t.maxScrollValueAt)
3661
3661
  return r.maxPixelScroll;
3662
3662
  if (e === t.startScrollingFrom)
3663
- return cn;
3663
+ return on;
3664
3664
  const i = 1 - go({
3665
3665
  startOfRange: t.maxScrollValueAt,
3666
3666
  endOfRange: t.startScrollingFrom,
@@ -3672,14 +3672,14 @@ var oa = (e, t, n = () => _e) => {
3672
3672
  if (d >= i)
3673
3673
  return e;
3674
3674
  if (d < o)
3675
- return cn;
3675
+ return on;
3676
3676
  const p = go({
3677
3677
  startOfRange: o,
3678
3678
  endOfRange: c,
3679
3679
  current: d
3680
3680
  }), l = e * r.ease(p);
3681
3681
  return Math.ceil(l);
3682
- }, Qn = ({
3682
+ }, Jn = ({
3683
3683
  distanceToEdge: e,
3684
3684
  thresholds: t,
3685
3685
  dragStartTime: n,
@@ -3687,8 +3687,8 @@ var oa = (e, t, n = () => _e) => {
3687
3687
  getAutoScrollerOptions: o
3688
3688
  }) => {
3689
3689
  const i = ia(e, t, o);
3690
- return i === 0 ? 0 : r ? Math.max(sa(i, n, o), cn) : i;
3691
- }, er = ({
3690
+ return i === 0 ? 0 : r ? Math.max(sa(i, n, o), on) : i;
3691
+ }, Zn = ({
3692
3692
  container: e,
3693
3693
  distanceToEdges: t,
3694
3694
  dragStartTime: n,
@@ -3697,13 +3697,13 @@ var oa = (e, t, n = () => _e) => {
3697
3697
  getAutoScrollerOptions: i
3698
3698
  }) => {
3699
3699
  const s = oa(e, r, i);
3700
- return t[r.end] < t[r.start] ? Qn({
3700
+ return t[r.end] < t[r.start] ? Jn({
3701
3701
  distanceToEdge: t[r.end],
3702
3702
  thresholds: s,
3703
3703
  dragStartTime: n,
3704
3704
  shouldUseTimeDampening: o,
3705
3705
  getAutoScrollerOptions: i
3706
- }) : -1 * Qn({
3706
+ }) : -1 * Jn({
3707
3707
  distanceToEdge: t[r.start],
3708
3708
  thresholds: s,
3709
3709
  dragStartTime: n,
@@ -3735,14 +3735,14 @@ var mo = ({
3735
3735
  right: t.right - r.x,
3736
3736
  bottom: t.bottom - r.y,
3737
3737
  left: r.x - t.left
3738
- }, c = er({
3738
+ }, c = Zn({
3739
3739
  container: t,
3740
3740
  distanceToEdges: s,
3741
3741
  dragStartTime: e,
3742
- axis: Zt,
3742
+ axis: Kt,
3743
3743
  shouldUseTimeDampening: o,
3744
3744
  getAutoScrollerOptions: i
3745
- }), a = er({
3745
+ }), a = Zn({
3746
3746
  container: t,
3747
3747
  distanceToEdges: s,
3748
3748
  dragStartTime: e,
@@ -3762,7 +3762,7 @@ var mo = ({
3762
3762
  });
3763
3763
  return p ? oe(p, G) ? null : p : null;
3764
3764
  };
3765
- const la = Mr((e) => e === 0 ? 0 : e > 0 ? 1 : -1), an = /* @__PURE__ */ (() => {
3765
+ const la = Mr((e) => e === 0 ? 0 : e > 0 ? 1 : -1), sn = /* @__PURE__ */ (() => {
3766
3766
  const e = (t, n) => t < 0 ? t : t > n ? t - n : 0;
3767
3767
  return ({
3768
3768
  current: t,
@@ -3783,26 +3783,26 @@ const la = Mr((e) => e === 0 ? 0 : e > 0 ? 1 : -1), an = /* @__PURE__ */ (() =>
3783
3783
  const r = {
3784
3784
  x: Math.max(t.x, e.x),
3785
3785
  y: Math.max(t.y, e.y)
3786
- }, o = la(n), i = an({
3786
+ }, o = la(n), i = sn({
3787
3787
  max: r,
3788
3788
  current: t,
3789
3789
  change: o
3790
3790
  });
3791
3791
  return !i || o.x !== 0 && i.x === 0 || o.y !== 0 && i.y === 0;
3792
- }, ln = (e, t) => ho({
3792
+ }, cn = (e, t) => ho({
3793
3793
  current: e.scroll.current,
3794
3794
  max: e.scroll.max,
3795
3795
  change: t
3796
3796
  }), da = (e, t) => {
3797
- if (!ln(e, t))
3797
+ if (!cn(e, t))
3798
3798
  return null;
3799
3799
  const n = e.scroll.max, r = e.scroll.current;
3800
- return an({
3800
+ return sn({
3801
3801
  current: r,
3802
3802
  max: n,
3803
3803
  change: t
3804
3804
  });
3805
- }, dn = (e, t) => {
3805
+ }, an = (e, t) => {
3806
3806
  const n = e.frame;
3807
3807
  return n ? ho({
3808
3808
  current: n.scroll.current,
@@ -3811,7 +3811,7 @@ const la = Mr((e) => e === 0 ? 0 : e > 0 ? 1 : -1), an = /* @__PURE__ */ (() =>
3811
3811
  }) : !1;
3812
3812
  }, ua = (e, t) => {
3813
3813
  const n = e.frame;
3814
- return !n || !dn(e, t) ? null : an({
3814
+ return !n || !an(e, t) ? null : sn({
3815
3815
  current: n.scroll.current,
3816
3816
  max: n.scroll.max,
3817
3817
  change: t
@@ -3833,7 +3833,7 @@ var pa = ({
3833
3833
  shouldUseTimeDampening: o,
3834
3834
  getAutoScrollerOptions: i
3835
3835
  });
3836
- return s && ln(e, s) ? s : null;
3836
+ return s && cn(e, s) ? s : null;
3837
3837
  }, fa = ({
3838
3838
  droppable: e,
3839
3839
  subject: t,
@@ -3853,8 +3853,8 @@ var pa = ({
3853
3853
  shouldUseTimeDampening: o,
3854
3854
  getAutoScrollerOptions: i
3855
3855
  });
3856
- return c && dn(e, c) ? c : null;
3857
- }, tr = ({
3856
+ return c && an(e, c) ? c : null;
3857
+ }, Qn = ({
3858
3858
  state: e,
3859
3859
  dragStartTime: t,
3860
3860
  shouldUseTimeDampening: n,
@@ -3906,7 +3906,7 @@ var pa = ({
3906
3906
  shouldUseTimeDampening: p,
3907
3907
  dragStartTime: l
3908
3908
  } = i;
3909
- tr({
3909
+ Qn({
3910
3910
  state: d,
3911
3911
  scrollWindow: r,
3912
3912
  scrollDroppable: o,
@@ -3917,13 +3917,13 @@ var pa = ({
3917
3917
  };
3918
3918
  return {
3919
3919
  start: (d) => {
3920
- Ve(), i && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot start auto scrolling when already started") : f());
3920
+ Le(), i && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot start auto scrolling when already started") : f());
3921
3921
  const p = Date.now();
3922
3922
  let l = !1;
3923
3923
  const u = () => {
3924
3924
  l = !0;
3925
3925
  };
3926
- tr({
3926
+ Qn({
3927
3927
  state: d,
3928
3928
  dragStartTime: 0,
3929
3929
  shouldUseTimeDampening: !1,
@@ -3933,7 +3933,7 @@ var pa = ({
3933
3933
  }), i = {
3934
3934
  dragStartTime: p,
3935
3935
  shouldUseTimeDampening: l
3936
- }, Le(), l && s(d);
3936
+ }, Me(), l && s(d);
3937
3937
  },
3938
3938
  stop: () => {
3939
3939
  i && (r.cancel(), o.cancel(), i = null);
@@ -3951,7 +3951,7 @@ var pa = ({
3951
3951
  client: d
3952
3952
  });
3953
3953
  }, o = (c, a) => {
3954
- if (!dn(c, a))
3954
+ if (!an(c, a))
3955
3955
  return a;
3956
3956
  const d = ua(c, a);
3957
3957
  if (!d)
@@ -3959,7 +3959,7 @@ var pa = ({
3959
3959
  const p = j(a, d);
3960
3960
  return t(c.descriptor.id, p), j(a, p);
3961
3961
  }, i = (c, a, d) => {
3962
- if (!c || !ln(a, d))
3962
+ if (!c || !cn(a, d))
3963
3963
  return d;
3964
3964
  const p = da(a, d);
3965
3965
  if (!p)
@@ -4015,7 +4015,7 @@ const fe = "data-rfd", ge = (() => {
4015
4015
  draggableId: `${e}-draggable-id`,
4016
4016
  contextId: `${e}-context-id`
4017
4017
  };
4018
- })(), kt = (() => {
4018
+ })(), Gt = (() => {
4019
4019
  const e = `${fe}-draggable`;
4020
4020
  return {
4021
4021
  base: e,
@@ -4029,7 +4029,7 @@ const fe = "data-rfd", ge = (() => {
4029
4029
  contextId: `${e}-context-id`,
4030
4030
  id: `${e}-id`
4031
4031
  };
4032
- })(), nr = {
4032
+ })(), er = {
4033
4033
  contextId: `${fe}-scroll-container-context-id`
4034
4034
  }, va = (e) => (t) => `[${t}="${e}"]`, Ee = (e, t) => e.map((n) => {
4035
4035
  const r = n.styles[t];
@@ -4059,7 +4059,7 @@ var Ea = (e) => {
4059
4059
  transition: ${xe.outOfTheWay};
4060
4060
  `;
4061
4061
  return {
4062
- selector: t(kt.contextId),
4062
+ selector: t(Gt.contextId),
4063
4063
  styles: {
4064
4064
  dragging: c,
4065
4065
  dropAnimating: c,
@@ -4096,12 +4096,12 @@ var Ea = (e) => {
4096
4096
  const Y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Vo : te, It = () => {
4097
4097
  const e = document.querySelector("head");
4098
4098
  return e || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot find the head to append a style to") : f()), e;
4099
- }, rr = (e) => {
4099
+ }, tr = (e) => {
4100
4100
  const t = document.createElement("style");
4101
4101
  return e && t.setAttribute("nonce", e), t.type = "text/css", t;
4102
4102
  };
4103
4103
  function Da(e, t) {
4104
- const n = O(() => Ea(e), [e]), r = B(null), o = B(null), i = D($((l) => {
4104
+ const n = C(() => Ea(e), [e]), r = B(null), o = B(null), i = D($((l) => {
4105
4105
  const u = o.current;
4106
4106
  u || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot set dynamic style element if it is not set") : f()), u.textContent = l;
4107
4107
  }), []), s = D((l) => {
@@ -4110,7 +4110,7 @@ function Da(e, t) {
4110
4110
  }, []);
4111
4111
  Y(() => {
4112
4112
  !r.current && !o.current || (process.env.NODE_ENV !== "production" ? f(!1, "style elements already mounted") : f());
4113
- const l = rr(t), u = rr(t);
4113
+ const l = tr(t), u = tr(t);
4114
4114
  return r.current = l, o.current = u, l.setAttribute(`${fe}-always`, e), u.setAttribute(`${fe}-dynamic`, e), It().appendChild(l), It().appendChild(u), s(n.always), i(n.resting), () => {
4115
4115
  const g = (m) => {
4116
4116
  const b = m.current;
@@ -4128,7 +4128,7 @@ function Da(e, t) {
4128
4128
  }, [i, n.dropAnimating, n.userCancel]), d = D(() => {
4129
4129
  o.current && i(n.resting);
4130
4130
  }, [i, n.resting]);
4131
- return O(() => ({
4131
+ return C(() => ({
4132
4132
  dragging: c,
4133
4133
  dropping: a,
4134
4134
  resting: d
@@ -4138,7 +4138,7 @@ function bo(e, t) {
4138
4138
  return Array.from(e.querySelectorAll(t));
4139
4139
  }
4140
4140
  var vo = (e) => e && e.ownerDocument && e.ownerDocument.defaultView ? e.ownerDocument.defaultView : window;
4141
- function Me(e) {
4141
+ function $e(e) {
4142
4142
  return e instanceof vo(e).HTMLElement;
4143
4143
  }
4144
4144
  function yo(e, t) {
@@ -4146,7 +4146,7 @@ function yo(e, t) {
4146
4146
  if (!r.length)
4147
4147
  return process.env.NODE_ENV !== "production" && R(`Unable to find any drag handles in the context "${e}"`), null;
4148
4148
  const o = r.find((i) => i.getAttribute(ge.draggableId) === t);
4149
- return o ? Me(o) ? o : (process.env.NODE_ENV !== "production" && R("drag handle needs to be a HTMLElement"), null) : (process.env.NODE_ENV !== "production" && R(`Unable to find drag handle with id "${t}" as no handle with a matching id was found`), null);
4149
+ return o ? $e(o) ? o : (process.env.NODE_ENV !== "production" && R("drag handle needs to be a HTMLElement"), null) : (process.env.NODE_ENV !== "production" && R(`Unable to find drag handle with id "${t}" as no handle with a matching id was found`), null);
4150
4150
  }
4151
4151
  function Na(e) {
4152
4152
  const t = B({}), n = B(null), r = B(null), o = B(!1), i = D(function(u, g) {
@@ -4178,7 +4178,7 @@ function Na(e) {
4178
4178
  o.current = !1;
4179
4179
  const u = r.current;
4180
4180
  u && cancelAnimationFrame(u);
4181
- }), []), O(() => ({
4181
+ }), []), C(() => ({
4182
4182
  register: i,
4183
4183
  tryRecordFocus: d,
4184
4184
  tryRestoreFocusRecorded: a,
@@ -4260,12 +4260,12 @@ function xa() {
4260
4260
  };
4261
4261
  }
4262
4262
  function Ia() {
4263
- const e = O(xa, []);
4263
+ const e = C(xa, []);
4264
4264
  return te(() => function() {
4265
4265
  e.clean();
4266
4266
  }, [e]), e;
4267
4267
  }
4268
- var un = V.createContext(null), Pe = () => {
4268
+ var ln = V.createContext(null), Pe = () => {
4269
4269
  const e = document.body;
4270
4270
  return e || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot find document.body") : f()), e;
4271
4271
  };
@@ -4279,12 +4279,12 @@ const Oa = {
4279
4279
  overflow: "hidden",
4280
4280
  clip: "rect(0 0 0 0)",
4281
4281
  "clip-path": "inset(100%)"
4282
- }, wa = (e) => `rfd-announcement-${e}`;
4283
- function Ca(e) {
4284
- const t = O(() => wa(e), [e]), n = B(null);
4282
+ }, Ca = (e) => `rfd-announcement-${e}`;
4283
+ function wa(e) {
4284
+ const t = C(() => Ca(e), [e]), n = B(null);
4285
4285
  return te(function() {
4286
4286
  const i = document.createElement("div");
4287
- return n.current = i, i.id = t, i.setAttribute("aria-live", "assertive"), i.setAttribute("aria-atomic", "true"), Ye(i.style, Oa), Pe().appendChild(i), function() {
4287
+ return n.current = i, i.id = t, i.setAttribute("aria-live", "assertive"), i.setAttribute("aria-atomic", "true"), Xe(i.style, Oa), Pe().appendChild(i), function() {
4288
4288
  setTimeout(function() {
4289
4289
  const a = Pe();
4290
4290
  a.contains(i) && a.removeChild(i), i === n.current && (n.current = null);
@@ -4311,9 +4311,9 @@ function Ca(e) {
4311
4311
  const Sa = {
4312
4312
  separator: "::"
4313
4313
  };
4314
- function pn(e, t = Sa) {
4314
+ function dn(e, t = Sa) {
4315
4315
  const n = V.useId();
4316
- return O(() => `${e}${t.separator}${n}`, [t.separator, e, n]);
4316
+ return C(() => `${e}${t.separator}${n}`, [t.separator, e, n]);
4317
4317
  }
4318
4318
  function Aa({
4319
4319
  contextId: e,
@@ -4325,9 +4325,9 @@ function _a({
4325
4325
  contextId: e,
4326
4326
  text: t
4327
4327
  }) {
4328
- const n = pn("hidden-text", {
4328
+ const n = dn("hidden-text", {
4329
4329
  separator: "-"
4330
- }), r = O(() => Aa({
4330
+ }), r = C(() => Aa({
4331
4331
  contextId: e,
4332
4332
  uniqueId: n
4333
4333
  }), [n, e]);
@@ -4342,7 +4342,7 @@ function _a({
4342
4342
  var ot = V.createContext(null), Pa = {
4343
4343
  react: "^18.0.0 || ^19.0.0"
4344
4344
  };
4345
- const Ra = /(\d+)\.(\d+)\.(\d+)/, or = (e) => {
4345
+ const Ra = /(\d+)\.(\d+)\.(\d+)/, nr = (e) => {
4346
4346
  const t = Ra.exec(e);
4347
4347
  t == null && (process.env.NODE_ENV !== "production" ? f(!1, `Unable to parse React version ${e}`) : f());
4348
4348
  const n = Number(t[1]), r = Number(t[2]), o = Number(t[3]);
@@ -4354,7 +4354,7 @@ const Ra = /(\d+)\.(\d+)\.(\d+)/, or = (e) => {
4354
4354
  };
4355
4355
  }, Ta = (e, t) => t.major > e.major ? !0 : t.major < e.major ? !1 : t.minor > e.minor ? !0 : t.minor < e.minor ? !1 : t.patch >= e.patch;
4356
4356
  var Ba = (e, t) => {
4357
- const n = or(e), r = or(t);
4357
+ const n = nr(e), r = nr(t);
4358
4358
  Ta(n, r) || process.env.NODE_ENV !== "production" && R(`
4359
4359
  React version: [${r.raw}]
4360
4360
  does not satisfy expected peer dependency version: [${n.raw}]
@@ -4389,16 +4389,16 @@ var Va = (e) => {
4389
4389
  ${Ot}
4390
4390
  `);
4391
4391
  };
4392
- function fn(e) {
4392
+ function un(e) {
4393
4393
  process.env.NODE_ENV !== "production" && e();
4394
4394
  }
4395
- function $e(e, t) {
4396
- fn(() => {
4395
+ function Ge(e, t) {
4396
+ un(() => {
4397
4397
  te(() => {
4398
4398
  try {
4399
4399
  e();
4400
4400
  } catch (n) {
4401
- Lt(`
4401
+ Bt(`
4402
4402
  A setup problem was encountered.
4403
4403
 
4404
4404
  > ${n.message}
@@ -4408,11 +4408,11 @@ function $e(e, t) {
4408
4408
  });
4409
4409
  }
4410
4410
  function La() {
4411
- $e(() => {
4411
+ Ge(() => {
4412
4412
  Ba(Pa.react, V.version), Va(document);
4413
4413
  }, []);
4414
4414
  }
4415
- function gn(e) {
4415
+ function pn(e) {
4416
4416
  const t = B(e);
4417
4417
  return te(() => {
4418
4418
  t.current = e;
@@ -4450,7 +4450,7 @@ function Ma() {
4450
4450
  function Re(e) {
4451
4451
  return e.phase === "IDLE" || e.phase === "DROP_ANIMATING" ? !1 : e.isDragging;
4452
4452
  }
4453
- const $a = 9, Ga = 13, mn = 27, Eo = 32, Fa = 33, ka = 34, Wa = 35, Ua = 36, Ha = 37, za = 38, ja = 39, qa = 40, Ya = {
4453
+ const $a = 9, Ga = 13, fn = 27, Eo = 32, Fa = 33, ka = 34, Wa = 35, Ua = 36, Ha = 37, za = 38, ja = 39, qa = 40, Ya = {
4454
4454
  [Ga]: !0,
4455
4455
  [$a]: !0
4456
4456
  };
@@ -4460,11 +4460,11 @@ var Do = (e) => {
4460
4460
  const it = (() => {
4461
4461
  const e = "visibilitychange";
4462
4462
  return typeof document > "u" ? e : [e, `ms${e}`, `webkit${e}`, `moz${e}`, `o${e}`].find((r) => `on${r}` in document) || e;
4463
- })(), No = 0, ir = 5;
4463
+ })(), No = 0, rr = 5;
4464
4464
  function Xa(e, t) {
4465
- return Math.abs(t.x - e.x) >= ir || Math.abs(t.y - e.y) >= ir;
4465
+ return Math.abs(t.x - e.x) >= rr || Math.abs(t.y - e.y) >= rr;
4466
4466
  }
4467
- const sr = {
4467
+ const or = {
4468
4468
  type: "IDLE"
4469
4469
  };
4470
4470
  function Ka({
@@ -4526,7 +4526,7 @@ function Ka({
4526
4526
  e();
4527
4527
  return;
4528
4528
  }
4529
- if (o.keyCode === mn) {
4529
+ if (o.keyCode === fn) {
4530
4530
  o.preventDefault(), e();
4531
4531
  return;
4532
4532
  }
@@ -4560,7 +4560,7 @@ function Ka({
4560
4560
  }];
4561
4561
  }
4562
4562
  function Ja(e) {
4563
- const t = B(sr), n = B(re), r = O(() => ({
4563
+ const t = B(or), n = B(re), r = C(() => ({
4564
4564
  eventName: "mousedown",
4565
4565
  fn: function(l) {
4566
4566
  if (l.defaultPrevented || l.button !== No || l.ctrlKey || l.metaKey || l.shiftKey || l.altKey)
@@ -4580,7 +4580,7 @@ function Ja(e) {
4580
4580
  };
4581
4581
  n.current(), d(g, m);
4582
4582
  }
4583
- }), [e]), o = O(() => ({
4583
+ }), [e]), o = C(() => ({
4584
4584
  eventName: "webkitmouseforcewillbegin",
4585
4585
  fn: (p) => {
4586
4586
  if (p.defaultPrevented)
@@ -4598,7 +4598,7 @@ function Ja(e) {
4598
4598
  };
4599
4599
  n.current = K(window, [o, r], l);
4600
4600
  }, [o, r]), s = D(() => {
4601
- t.current.type !== "IDLE" && (t.current = sr, n.current(), i());
4601
+ t.current.type !== "IDLE" && (t.current = or, n.current(), i());
4602
4602
  }, [i]), c = D(() => {
4603
4603
  const p = t.current;
4604
4604
  s(), p.type === "DRAGGING" && p.actions.cancel({
@@ -4648,7 +4648,7 @@ function el(e, t) {
4648
4648
  return [{
4649
4649
  eventName: "keydown",
4650
4650
  fn: (o) => {
4651
- if (o.keyCode === mn) {
4651
+ if (o.keyCode === fn) {
4652
4652
  o.preventDefault(), n();
4653
4653
  return;
4654
4654
  }
@@ -4705,7 +4705,7 @@ function el(e, t) {
4705
4705
  }];
4706
4706
  }
4707
4707
  function tl(e) {
4708
- const t = B(Za), n = O(() => ({
4708
+ const t = B(Za), n = C(() => ({
4709
4709
  eventName: "keydown",
4710
4710
  fn: function(i) {
4711
4711
  if (i.defaultPrevented || i.keyCode !== Eo)
@@ -4743,7 +4743,7 @@ function tl(e) {
4743
4743
  };
4744
4744
  }, [r]);
4745
4745
  }
4746
- const wt = {
4746
+ const Ct = {
4747
4747
  type: "IDLE"
4748
4748
  }, nl = 120, rl = 0.15;
4749
4749
  function ol({
@@ -4768,7 +4768,7 @@ function ol({
4768
4768
  e();
4769
4769
  return;
4770
4770
  }
4771
- n.keyCode === mn && n.preventDefault(), e();
4771
+ n.keyCode === fn && n.preventDefault(), e();
4772
4772
  }
4773
4773
  }, {
4774
4774
  eventName: it,
@@ -4851,11 +4851,11 @@ function il({
4851
4851
  }];
4852
4852
  }
4853
4853
  function sl(e) {
4854
- const t = B(wt), n = B(re), r = D(function() {
4854
+ const t = B(Ct), n = B(re), r = D(function() {
4855
4855
  return t.current;
4856
4856
  }, []), o = D(function(g) {
4857
4857
  t.current = g;
4858
- }, []), i = O(() => ({
4858
+ }, []), i = C(() => ({
4859
4859
  eventName: "touchstart",
4860
4860
  fn: function(g) {
4861
4861
  if (g.defaultPrevented)
@@ -4885,7 +4885,7 @@ function sl(e) {
4885
4885
  n.current = K(window, [i], g);
4886
4886
  }, [i]), c = D(() => {
4887
4887
  const u = t.current;
4888
- u.type !== "IDLE" && (u.type === "PENDING" && clearTimeout(u.longPressTimerId), o(wt), n.current(), s());
4888
+ u.type !== "IDLE" && (u.type === "PENDING" && clearTimeout(u.longPressTimerId), o(Ct), n.current(), s());
4889
4889
  }, [s, o]), a = D(() => {
4890
4890
  const u = t.current;
4891
4891
  c(), u.type === "DRAGGING" && u.actions.cancel({
@@ -4926,7 +4926,7 @@ function sl(e) {
4926
4926
  return s(), function() {
4927
4927
  n.current();
4928
4928
  const m = r();
4929
- m.type === "PENDING" && (clearTimeout(m.longPressTimerId), o(wt));
4929
+ m.type === "PENDING" && (clearTimeout(m.longPressTimerId), o(Ct));
4930
4930
  };
4931
4931
  }, [r, s, o]), Y(function() {
4932
4932
  return K(window, [{
@@ -4941,9 +4941,9 @@ function sl(e) {
4941
4941
  }, []);
4942
4942
  }
4943
4943
  function cl(e) {
4944
- fn(() => {
4945
- const t = gn(e);
4946
- $e(() => {
4944
+ un(() => {
4945
+ const t = pn(e);
4946
+ Ge(() => {
4947
4947
  t.current.length !== e.length && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot change the amount of sensor hooks after mounting") : f(!1));
4948
4948
  });
4949
4949
  });
@@ -4959,7 +4959,7 @@ function xo(e, t) {
4959
4959
  }
4960
4960
  function ll(e, t) {
4961
4961
  const n = t.target;
4962
- return Me(n) ? xo(e, n) : !1;
4962
+ return $e(n) ? xo(e, n) : !1;
4963
4963
  }
4964
4964
  var dl = (e) => Z(e.getBoundingClientRect()).center;
4965
4965
  function ul(e) {
@@ -4983,20 +4983,20 @@ function ml(e, t) {
4983
4983
  if (!ul(n))
4984
4984
  return process.env.NODE_ENV !== "production" && R("event.target must be a Element"), null;
4985
4985
  const r = gl(e), o = fl(n, r);
4986
- return o ? Me(o) ? o : (process.env.NODE_ENV !== "production" && R("drag handle must be a HTMLElement"), null) : null;
4986
+ return o ? $e(o) ? o : (process.env.NODE_ENV !== "production" && R("drag handle must be a HTMLElement"), null) : null;
4987
4987
  }
4988
4988
  function hl(e, t) {
4989
4989
  const n = ml(e, t);
4990
4990
  return n ? n.getAttribute(ge.draggableId) : null;
4991
4991
  }
4992
4992
  function bl(e, t) {
4993
- const n = `[${kt.contextId}="${e}"]`, o = bo(document, n).find((i) => i.getAttribute(kt.id) === t);
4994
- return o ? Me(o) ? o : (process.env.NODE_ENV !== "production" && R("Draggable element is not a HTMLElement"), null) : null;
4993
+ const n = `[${Gt.contextId}="${e}"]`, o = bo(document, n).find((i) => i.getAttribute(Gt.id) === t);
4994
+ return o ? $e(o) ? o : (process.env.NODE_ENV !== "production" && R("Draggable element is not a HTMLElement"), null) : null;
4995
4995
  }
4996
4996
  function vl(e) {
4997
4997
  e.preventDefault();
4998
4998
  }
4999
- function We({
4999
+ function Ue({
5000
5000
  expected: e,
5001
5001
  phase: t,
5002
5002
  isLockActive: n,
@@ -5063,7 +5063,7 @@ function yl({
5063
5063
  return e.isActive(p);
5064
5064
  }
5065
5065
  function m(E, x) {
5066
- We({
5066
+ Ue({
5067
5067
  expected: E,
5068
5068
  phase: l,
5069
5069
  isLockActive: g,
@@ -5076,7 +5076,7 @@ function yl({
5076
5076
  e.release(), l = "COMPLETED";
5077
5077
  }
5078
5078
  l !== "PRE_DRAG" && (x(), process.env.NODE_ENV !== "production" ? f(!1, `Cannot lift in phase ${l}`) : f()), n.dispatch(ic(E.liftActionArgs)), l = "DRAGGING";
5079
- function S(_, U = {
5079
+ function S(P, U = {
5080
5080
  shouldBlockNextClick: !1
5081
5081
  }) {
5082
5082
  if (E.cleanup(), U.shouldBlockNextClick) {
@@ -5092,26 +5092,26 @@ function yl({
5092
5092
  setTimeout(T);
5093
5093
  }
5094
5094
  x(), n.dispatch(oo({
5095
- reason: _
5095
+ reason: P
5096
5096
  }));
5097
5097
  }
5098
5098
  return {
5099
- isActive: () => We({
5099
+ isActive: () => Ue({
5100
5100
  expected: "DRAGGING",
5101
5101
  phase: l,
5102
5102
  isLockActive: g,
5103
5103
  shouldWarn: !1
5104
5104
  }),
5105
5105
  shouldRespectForcePress: u,
5106
- drop: (_) => S("DROP", _),
5107
- cancel: (_) => S("CANCEL", _),
5106
+ drop: (P) => S("DROP", P),
5107
+ cancel: (P) => S("CANCEL", P),
5108
5108
  ...E.actions
5109
5109
  };
5110
5110
  }
5111
5111
  function y(E) {
5112
- const x = Ie((_) => {
5112
+ const x = Ie((P) => {
5113
5113
  b(() => ro({
5114
- client: _
5114
+ client: P
5115
5115
  }));
5116
5116
  });
5117
5117
  return {
@@ -5147,7 +5147,7 @@ function yl({
5147
5147
  });
5148
5148
  }
5149
5149
  function I() {
5150
- We({
5150
+ Ue({
5151
5151
  expected: "PRE_DRAG",
5152
5152
  phase: l,
5153
5153
  isLockActive: g,
@@ -5155,7 +5155,7 @@ function yl({
5155
5155
  }) && e.release();
5156
5156
  }
5157
5157
  return {
5158
- isActive: () => We({
5158
+ isActive: () => Ue({
5159
5159
  expected: "PRE_DRAG",
5160
5160
  phase: l,
5161
5161
  isLockActive: g,
@@ -5175,7 +5175,7 @@ function Dl({
5175
5175
  customSensors: r,
5176
5176
  enableDefaultSensors: o
5177
5177
  }) {
5178
- const i = [...o ? El : [], ...r || []], s = Ze(() => Ma())[0], c = D(function(h, y) {
5178
+ const i = [...o ? El : [], ...r || []], s = Te(() => Ma())[0], c = D(function(h, y) {
5179
5179
  Re(h) && !Re(y) && s.tryAbandon();
5180
5180
  }, [s]);
5181
5181
  Y(function() {
@@ -5202,8 +5202,8 @@ function Dl({
5202
5202
  const h = n.draggable.findById(b);
5203
5203
  return h ? h.options : null;
5204
5204
  }, [n.draggable]), u = D(function() {
5205
- s.isClaimed() && (s.tryAbandon(), t.getState().phase !== "IDLE" && t.dispatch(rn()));
5206
- }, [s, t]), g = D(() => s.isClaimed(), [s]), m = O(() => ({
5205
+ s.isClaimed() && (s.tryAbandon(), t.getState().phase !== "IDLE" && t.dispatch(tn()));
5206
+ }, [s, t]), g = D(() => s.isClaimed(), [s]), m = C(() => ({
5207
5207
  canGetLock: a,
5208
5208
  tryGetLock: d,
5209
5209
  findClosestDraggableId: p,
@@ -5245,25 +5245,25 @@ function Il(e) {
5245
5245
  dragHandleUsageInstructions: i
5246
5246
  } = e, s = B(null);
5247
5247
  La();
5248
- const c = gn(e), a = D(() => Nl(c.current), [c]), d = D(() => xl(c.current), [c]), p = Ca(t), l = _a({
5248
+ const c = pn(e), a = D(() => Nl(c.current), [c]), d = D(() => xl(c.current), [c]), p = wa(t), l = _a({
5249
5249
  contextId: t,
5250
5250
  text: i
5251
5251
  }), u = Da(t, o), g = D((T) => {
5252
5252
  De(s).dispatch(T);
5253
- }, []), m = O(() => Cn({
5253
+ }, []), m = C(() => On({
5254
5254
  publishWhileDragging: cc,
5255
5255
  updateDroppableScroll: lc,
5256
5256
  updateDroppableIsEnabled: dc,
5257
5257
  updateDroppableIsCombineEnabled: uc,
5258
5258
  collectionStarting: ac
5259
- }, g), [g]), b = Ia(), h = O(() => Qc(b, m), [b, m]), y = O(() => ha({
5259
+ }, g), [g]), b = Ia(), h = C(() => Qc(b, m), [b, m]), y = C(() => ha({
5260
5260
  scrollWindow: ea,
5261
5261
  scrollDroppable: h.scrollDroppable,
5262
5262
  getAutoScrollerOptions: d,
5263
- ...Cn({
5263
+ ...On({
5264
5264
  move: ro
5265
5265
  }, g)
5266
- }), [h.scrollDroppable, g, d]), v = Na(t), I = O(() => Xc({
5266
+ }), [h.scrollDroppable, g, d]), v = Na(t), I = C(() => Xc({
5267
5267
  announce: p,
5268
5268
  autoScroller: y,
5269
5269
  dimensionMarshal: h,
@@ -5274,24 +5274,24 @@ function Il(e) {
5274
5274
  process.env.NODE_ENV !== "production" && s.current && s.current !== I && process.env.NODE_ENV !== "production" && R("unexpected store change"), s.current = I;
5275
5275
  const N = D(() => {
5276
5276
  const T = De(s);
5277
- T.getState().phase !== "IDLE" && T.dispatch(rn());
5277
+ T.getState().phase !== "IDLE" && T.dispatch(tn());
5278
5278
  }, []), E = D(() => {
5279
5279
  const T = De(s).getState();
5280
5280
  return T.phase === "DROP_ANIMATING" ? !0 : T.phase === "IDLE" ? !1 : T.isDragging;
5281
- }, []), x = O(() => ({
5281
+ }, []), x = C(() => ({
5282
5282
  isDragging: E,
5283
5283
  tryAbort: N
5284
5284
  }), [E, N]);
5285
5285
  n(x);
5286
- const S = D((T) => fo(De(s).getState(), T), []), _ = D(() => ce(De(s).getState()), []), U = O(() => ({
5286
+ const S = D((T) => fo(De(s).getState(), T), []), P = D(() => ce(De(s).getState()), []), U = C(() => ({
5287
5287
  marshal: h,
5288
5288
  focus: v,
5289
5289
  contextId: t,
5290
5290
  canLift: S,
5291
- isMovementAllowed: _,
5291
+ isMovementAllowed: P,
5292
5292
  dragHandleUsageInstructionsId: l,
5293
5293
  registry: b
5294
- }), [t, h, l, v, S, _, b]);
5294
+ }), [t, h, l, v, S, P, b]);
5295
5295
  return Dl({
5296
5296
  contextId: t,
5297
5297
  store: I,
@@ -5301,15 +5301,15 @@ function Il(e) {
5301
5301
  }), te(() => N, [N]), V.createElement(ot.Provider, {
5302
5302
  value: U
5303
5303
  }, V.createElement(Li, {
5304
- context: un,
5304
+ context: ln,
5305
5305
  store: I
5306
5306
  }, e.children));
5307
5307
  }
5308
5308
  function Ol() {
5309
5309
  return V.useId();
5310
5310
  }
5311
- function wl(e) {
5312
- const t = Ol(), n = e.dragHandleUsageInstructions || He.dragHandleUsageInstructions;
5311
+ function Cl(e) {
5312
+ const t = Ol(), n = e.dragHandleUsageInstructions || ze.dragHandleUsageInstructions;
5313
5313
  return V.createElement(Yi, null, (r) => V.createElement(Il, {
5314
5314
  nonce: e.nonce,
5315
5315
  contextId: t,
@@ -5325,10 +5325,10 @@ function wl(e) {
5325
5325
  autoScrollerOptions: e.autoScrollerOptions
5326
5326
  }, e.children));
5327
5327
  }
5328
- const cr = {
5328
+ const ir = {
5329
5329
  dragging: 5e3,
5330
5330
  dropAnimating: 4500
5331
- }, Cl = (e, t) => t ? xe.drop(t.duration) : e ? xe.snap : xe.fluid, Sl = (e, t) => {
5331
+ }, wl = (e, t) => t ? xe.drop(t.duration) : e ? xe.snap : xe.fluid, Sl = (e, t) => {
5332
5332
  if (e)
5333
5333
  return t ? Ae.opacity.drop : Ae.opacity.combining;
5334
5334
  }, Al = (e) => e.forceShouldAnimate != null ? e.forceShouldAnimate : e.mode === "SNAP";
@@ -5337,7 +5337,7 @@ function _l(e) {
5337
5337
  offset: r,
5338
5338
  combineWith: o,
5339
5339
  dropping: i
5340
- } = e, s = !!o, c = Al(e), a = !!i, d = a ? Gt.drop(r, s) : Gt.moveTo(r);
5340
+ } = e, s = !!o, c = Al(e), a = !!i, d = a ? Mt.drop(r, s) : Mt.moveTo(r);
5341
5341
  return {
5342
5342
  position: "fixed",
5343
5343
  top: n.marginBox.top,
@@ -5345,16 +5345,16 @@ function _l(e) {
5345
5345
  boxSizing: "border-box",
5346
5346
  width: n.borderBox.width,
5347
5347
  height: n.borderBox.height,
5348
- transition: Cl(c, i),
5348
+ transition: wl(c, i),
5349
5349
  transform: d,
5350
5350
  opacity: Sl(s, a),
5351
- zIndex: a ? cr.dropAnimating : cr.dragging,
5351
+ zIndex: a ? ir.dropAnimating : ir.dragging,
5352
5352
  pointerEvents: "none"
5353
5353
  };
5354
5354
  }
5355
5355
  function Pl(e) {
5356
5356
  return {
5357
- transform: Gt.moveTo(e.offset),
5357
+ transform: Mt.moveTo(e.offset),
5358
5358
  transition: e.shouldAnimateDisplacement ? void 0 : "none"
5359
5359
  };
5360
5360
  }
@@ -5362,7 +5362,7 @@ function Rl(e) {
5362
5362
  return e.type === "DRAGGING" ? _l(e) : Pl(e);
5363
5363
  }
5364
5364
  function Tl(e, t, n = G) {
5365
- const r = window.getComputedStyle(t), o = t.getBoundingClientRect(), i = Pr(o, r), s = qe(i, n), c = {
5365
+ const r = window.getComputedStyle(t), o = t.getBoundingClientRect(), i = Pr(o, r), s = Ye(i, n), c = {
5366
5366
  client: i,
5367
5367
  tagName: t.tagName.toLowerCase(),
5368
5368
  display: r.display
@@ -5379,21 +5379,21 @@ function Tl(e, t, n = G) {
5379
5379
  };
5380
5380
  }
5381
5381
  function Bl(e) {
5382
- const t = pn("draggable"), {
5382
+ const t = dn("draggable"), {
5383
5383
  descriptor: n,
5384
5384
  registry: r,
5385
5385
  getDraggableRef: o,
5386
5386
  canDragInteractiveElements: i,
5387
5387
  shouldRespectForcePress: s,
5388
5388
  isEnabled: c
5389
- } = e, a = O(() => ({
5389
+ } = e, a = C(() => ({
5390
5390
  canDragInteractiveElements: i,
5391
5391
  shouldRespectForcePress: s,
5392
5392
  isEnabled: c
5393
5393
  }), [i, c, s]), d = D((g) => {
5394
5394
  const m = o();
5395
5395
  return m || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot get dimension when no ref is set") : f()), Tl(n, m, g);
5396
- }, [n, o]), p = O(() => ({
5396
+ }, [n, o]), p = C(() => ({
5397
5397
  uniqueId: t,
5398
5398
  descriptor: n,
5399
5399
  options: a,
@@ -5408,9 +5408,9 @@ function Bl(e) {
5408
5408
  l.current = p, r.draggable.update(p, g);
5409
5409
  }, [p, r.draggable]);
5410
5410
  }
5411
- var hn = V.createContext(null);
5412
- function wo(e) {
5413
- e && Me(e) || (process.env.NODE_ENV !== "production" ? f(!1, `
5411
+ var gn = V.createContext(null);
5412
+ function Co(e) {
5413
+ e && $e(e) || (process.env.NODE_ENV !== "production" ? f(!1, `
5414
5414
  provided.innerRef has not been provided with a HTMLElement.
5415
5415
 
5416
5416
  You can find a guide on using the innerRef callback functions at:
@@ -5418,24 +5418,24 @@ function wo(e) {
5418
5418
  `) : f());
5419
5419
  }
5420
5420
  function Vl(e, t, n) {
5421
- $e(() => {
5421
+ Ge(() => {
5422
5422
  function r(i) {
5423
5423
  return `Draggable[id: ${i}]: `;
5424
5424
  }
5425
5425
  const o = e.draggableId;
5426
5426
  o || (process.env.NODE_ENV !== "production" ? f(!1, "Draggable requires a draggableId") : f(!1)), typeof o != "string" && (process.env.NODE_ENV !== "production" ? f(!1, `Draggable requires a [string] draggableId.
5427
- Provided: [type: ${typeof o}] (value: ${o})`) : f(!1)), Number.isInteger(e.index) || (process.env.NODE_ENV !== "production" ? f(!1, `${r(o)} requires an integer index prop`) : f(!1)), e.mapped.type !== "DRAGGING" && (wo(n()), e.isEnabled && (yo(t, o) || (process.env.NODE_ENV !== "production" ? f(!1, `${r(o)} Unable to find drag handle`) : f(!1))));
5427
+ Provided: [type: ${typeof o}] (value: ${o})`) : f(!1)), Number.isInteger(e.index) || (process.env.NODE_ENV !== "production" ? f(!1, `${r(o)} requires an integer index prop`) : f(!1)), e.mapped.type !== "DRAGGING" && (Co(n()), e.isEnabled && (yo(t, o) || (process.env.NODE_ENV !== "production" ? f(!1, `${r(o)} Unable to find drag handle`) : f(!1))));
5428
5428
  });
5429
5429
  }
5430
5430
  function Ll(e) {
5431
- fn(() => {
5431
+ un(() => {
5432
5432
  const t = B(e);
5433
- $e(() => {
5433
+ Ge(() => {
5434
5434
  e !== t.current && (process.env.NODE_ENV !== "production" ? f(!1, "Draggable isClone prop value changed during component life") : f(!1));
5435
5435
  }, [e]);
5436
5436
  });
5437
5437
  }
5438
- function Je(e) {
5438
+ function Ze(e) {
5439
5439
  const t = gr(e);
5440
5440
  return t || (process.env.NODE_ENV !== "production" ? f(!1, "Could not find required context") : f()), t;
5441
5441
  }
@@ -5449,10 +5449,10 @@ const $l = (e) => {
5449
5449
  contextId: o,
5450
5450
  dragHandleUsageInstructionsId: i,
5451
5451
  registry: s
5452
- } = Je(ot), {
5452
+ } = Ze(ot), {
5453
5453
  type: c,
5454
5454
  droppableId: a
5455
- } = Je(hn), d = O(() => ({
5455
+ } = Ze(gn), d = C(() => ({
5456
5456
  id: e.draggableId,
5457
5457
  index: e.index,
5458
5458
  type: c,
@@ -5468,7 +5468,7 @@ const $l = (e) => {
5468
5468
  dropAnimationFinished: y
5469
5469
  } = e;
5470
5470
  if (Vl(e, o, r), Ll(b), !b) {
5471
- const x = O(() => ({
5471
+ const x = C(() => ({
5472
5472
  descriptor: d,
5473
5473
  registry: s,
5474
5474
  getDraggableRef: r,
@@ -5478,7 +5478,7 @@ const $l = (e) => {
5478
5478
  }), [d, s, r, m, g, u]);
5479
5479
  Bl(x);
5480
5480
  }
5481
- const v = O(() => u ? {
5481
+ const v = C(() => u ? {
5482
5482
  tabIndex: 0,
5483
5483
  role: "button",
5484
5484
  "aria-describedby": i,
@@ -5488,7 +5488,7 @@ const $l = (e) => {
5488
5488
  onDragStart: Ml
5489
5489
  } : null, [o, i, l, u]), I = D((x) => {
5490
5490
  h.type === "DRAGGING" && h.dropping && x.propertyName === "transform" && mr(y);
5491
- }, [y, h]), N = O(() => {
5491
+ }, [y, h]), N = C(() => {
5492
5492
  const x = Rl(h), S = h.type === "DRAGGING" && h.dropping ? I : void 0;
5493
5493
  return {
5494
5494
  innerRef: n,
@@ -5500,7 +5500,7 @@ const $l = (e) => {
5500
5500
  },
5501
5501
  dragHandleProps: v
5502
5502
  };
5503
- }, [o, v, l, h, I, n]), E = O(() => ({
5503
+ }, [o, v, l, h, I, n]), E = C(() => ({
5504
5504
  draggableId: d.id,
5505
5505
  type: d.type,
5506
5506
  source: {
@@ -5510,7 +5510,7 @@ const $l = (e) => {
5510
5510
  }), [d.droppableId, d.id, d.index, d.type]);
5511
5511
  return V.createElement(V.Fragment, null, p(N, h.snapshot, E));
5512
5512
  };
5513
- var Co = (e, t) => e === t, So = (e) => {
5513
+ var wo = (e, t) => e === t, So = (e) => {
5514
5514
  const {
5515
5515
  combine: t,
5516
5516
  destination: n
@@ -5557,7 +5557,7 @@ function kl() {
5557
5557
  return null;
5558
5558
  const c = i.isClone, a = o.dimensions.draggables[i.draggableId], d = s.result, p = d.mode, l = So(d), u = Gl(d), m = {
5559
5559
  duration: o.dropDuration,
5560
- curve: sn.drop,
5560
+ curve: rn.drop,
5561
5561
  moveTo: o.newHomeClientOffset,
5562
5562
  opacity: u ? Ae.opacity.drop : null,
5563
5563
  scale: u ? Ae.scale.drop : null
@@ -5643,27 +5643,27 @@ const Hl = () => {
5643
5643
  }, zl = {
5644
5644
  dropAnimationFinished: io
5645
5645
  }, jl = _r(Hl, zl, null, {
5646
- context: un,
5647
- areStatePropsEqual: Co
5646
+ context: ln,
5647
+ areStatePropsEqual: wo
5648
5648
  })($l);
5649
5649
  function _o(e) {
5650
- return Je(hn).isUsingCloneFor === e.draggableId && !e.isClone ? null : V.createElement(jl, e);
5650
+ return Ze(gn).isUsingCloneFor === e.draggableId && !e.isClone ? null : V.createElement(jl, e);
5651
5651
  }
5652
5652
  function ql(e) {
5653
5653
  const t = typeof e.isDragDisabled == "boolean" ? !e.isDragDisabled : !0, n = !!e.disableInteractiveElementBlocking, r = !!e.shouldRespectForcePress;
5654
- return V.createElement(_o, Ye({}, e, {
5654
+ return V.createElement(_o, Xe({}, e, {
5655
5655
  isClone: !1,
5656
5656
  isEnabled: t,
5657
5657
  canDragInteractiveElements: n,
5658
5658
  shouldRespectForcePress: r
5659
5659
  }));
5660
5660
  }
5661
- const bn = (e) => (t) => e === t, Yl = bn("scroll"), Xl = bn("auto"), Kl = bn("visible"), ar = (e, t) => t(e.overflowX) || t(e.overflowY), Jl = (e, t) => t(e.overflowX) && t(e.overflowY), Po = (e) => {
5661
+ const mn = (e) => (t) => e === t, Yl = mn("scroll"), Xl = mn("auto"), Kl = mn("visible"), sr = (e, t) => t(e.overflowX) || t(e.overflowY), Jl = (e, t) => t(e.overflowX) && t(e.overflowY), Po = (e) => {
5662
5662
  const t = window.getComputedStyle(e), n = {
5663
5663
  overflowX: t.overflowX,
5664
5664
  overflowY: t.overflowY
5665
5665
  };
5666
- return ar(n, Yl) || ar(n, Xl);
5666
+ return sr(n, Yl) || sr(n, Xl);
5667
5667
  }, Zl = () => {
5668
5668
  if (process.env.NODE_ENV === "production")
5669
5669
  return !1;
@@ -5684,22 +5684,22 @@ const bn = (e) => (t) => e === t, Yl = bn("scroll"), Xl = bn("auto"), Kl = bn("v
5684
5684
 
5685
5685
  More information: https://github.com/hello-pangea/dnd/blob/main/docs/guides/how-we-detect-scroll-containers.md
5686
5686
  `), !1;
5687
- }, vn = (e) => e == null ? null : e === document.body ? Zl() ? e : null : e === document.documentElement ? null : Po(e) ? e : vn(e.parentElement);
5687
+ }, hn = (e) => e == null ? null : e === document.body ? Zl() ? e : null : e === document.documentElement ? null : Po(e) ? e : hn(e.parentElement);
5688
5688
  var Ql = (e) => {
5689
- !e || !vn(e.parentElement) || process.env.NODE_ENV !== "production" && R(`
5689
+ !e || !hn(e.parentElement) || process.env.NODE_ENV !== "production" && R(`
5690
5690
  Droppable: unsupported nested scroll container detected.
5691
5691
  A Droppable can only have one scroll parent (which can be itself)
5692
5692
  Nested scroll containers are currently not supported.
5693
5693
 
5694
5694
  We hope to support nested scroll containers soon: https://github.com/atlassian/react-beautiful-dnd/issues/131
5695
5695
  `);
5696
- }, Wt = (e) => ({
5696
+ }, Ft = (e) => ({
5697
5697
  x: e.scrollLeft,
5698
5698
  y: e.scrollTop
5699
5699
  });
5700
5700
  const Ro = (e) => e ? window.getComputedStyle(e).position === "fixed" ? !0 : Ro(e.parentElement) : !1;
5701
5701
  var ed = (e) => {
5702
- const t = vn(e), n = Ro(e);
5702
+ const t = hn(e), n = Ro(e);
5703
5703
  return {
5704
5704
  closestScrollable: t,
5705
5705
  isFixedOnPage: n
@@ -5741,7 +5741,7 @@ var ed = (e) => {
5741
5741
  }
5742
5742
  }
5743
5743
  };
5744
- })(), d = o === "vertical" ? Zt : Wr, p = pe({
5744
+ })(), d = o === "vertical" ? Kt : Wr, p = pe({
5745
5745
  page: s,
5746
5746
  withPlaceholder: null,
5747
5747
  axis: d,
@@ -5763,13 +5763,13 @@ const nd = (e, t) => {
5763
5763
  const n = Rr(e);
5764
5764
  if (!t || e !== t)
5765
5765
  return n;
5766
- const r = n.paddingBox.top - t.scrollTop, o = n.paddingBox.left - t.scrollLeft, i = r + t.scrollHeight, s = o + t.scrollWidth, a = Yt({
5766
+ const r = n.paddingBox.top - t.scrollTop, o = n.paddingBox.left - t.scrollLeft, i = r + t.scrollHeight, s = o + t.scrollWidth, a = jt({
5767
5767
  top: r,
5768
5768
  right: s,
5769
5769
  bottom: i,
5770
5770
  left: o
5771
5771
  }, n.border);
5772
- return Xt({
5772
+ return qt({
5773
5773
  borderBox: a,
5774
5774
  margin: n.margin,
5775
5775
  border: n.border,
@@ -5786,7 +5786,7 @@ var rd = ({
5786
5786
  isCombineEnabled: s,
5787
5787
  shouldClipSubject: c
5788
5788
  }) => {
5789
- const a = n.closestScrollable, d = nd(e, a), p = qe(d, r), l = (() => {
5789
+ const a = n.closestScrollable, d = nd(e, a), p = Ye(d, r), l = (() => {
5790
5790
  if (!a)
5791
5791
  return null;
5792
5792
  const g = Rr(a), m = {
@@ -5795,8 +5795,8 @@ var rd = ({
5795
5795
  };
5796
5796
  return {
5797
5797
  client: g,
5798
- page: qe(g, r),
5799
- scroll: Wt(a),
5798
+ page: Ye(g, r),
5799
+ scroll: Ft(a),
5800
5800
  scrollSize: m,
5801
5801
  shouldClipSubject: c
5802
5802
  };
@@ -5817,17 +5817,17 @@ const od = {
5817
5817
  }, id = {
5818
5818
  passive: !0
5819
5819
  };
5820
- var lr = (e) => e.shouldPublishImmediately ? od : id;
5821
- const Ue = (e) => e && e.env.closestScrollable || null;
5820
+ var cr = (e) => e.shouldPublishImmediately ? od : id;
5821
+ const He = (e) => e && e.env.closestScrollable || null;
5822
5822
  function sd(e) {
5823
- const t = B(null), n = Je(ot), r = pn("droppable"), {
5823
+ const t = B(null), n = Ze(ot), r = dn("droppable"), {
5824
5824
  registry: o,
5825
5825
  marshal: i
5826
- } = n, s = gn(e), c = O(() => ({
5826
+ } = n, s = pn(e), c = C(() => ({
5827
5827
  id: e.droppableId,
5828
5828
  type: e.type,
5829
5829
  mode: e.mode
5830
- }), [e.droppableId, e.mode, e.type]), a = B(c), d = O(() => $((N, E) => {
5830
+ }), [e.droppableId, e.mode, e.type]), a = B(c), d = C(() => $((N, E) => {
5831
5831
  t.current || (process.env.NODE_ENV !== "production" ? f(!1, "Can only update scroll when dragging") : f());
5832
5832
  const x = {
5833
5833
  x: N,
@@ -5836,12 +5836,12 @@ function sd(e) {
5836
5836
  i.updateDroppableScroll(c.id, x);
5837
5837
  }), [c.id, i]), p = D(() => {
5838
5838
  const N = t.current;
5839
- return !N || !N.env.closestScrollable ? G : Wt(N.env.closestScrollable);
5839
+ return !N || !N.env.closestScrollable ? G : Ft(N.env.closestScrollable);
5840
5840
  }, []), l = D(() => {
5841
5841
  const N = p();
5842
5842
  d(N.x, N.y);
5843
- }, [p, d]), u = O(() => Ie(l), [l]), g = D(() => {
5844
- const N = t.current, E = Ue(N);
5843
+ }, [p, d]), u = C(() => Ie(l), [l]), g = D(() => {
5844
+ const N = t.current, E = He(N);
5845
5845
  if (N && E || (process.env.NODE_ENV !== "production" ? f(!1, "Could not find scroll options while scrolling") : f()), N.scrollOptions.shouldPublishImmediately) {
5846
5846
  l();
5847
5847
  return;
@@ -5851,43 +5851,43 @@ function sd(e) {
5851
5851
  t.current && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot collect a droppable while a drag is occurring") : f());
5852
5852
  const x = s.current, S = x.getDroppableRef();
5853
5853
  S || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot collect without a droppable ref") : f());
5854
- const _ = ed(S), U = {
5854
+ const P = ed(S), U = {
5855
5855
  ref: S,
5856
5856
  descriptor: c,
5857
- env: _,
5857
+ env: P,
5858
5858
  scrollOptions: E
5859
5859
  };
5860
5860
  t.current = U;
5861
5861
  const T = rd({
5862
5862
  ref: S,
5863
5863
  descriptor: c,
5864
- env: _,
5864
+ env: P,
5865
5865
  windowScroll: N,
5866
5866
  direction: x.direction,
5867
5867
  isDropDisabled: x.isDropDisabled,
5868
5868
  isCombineEnabled: x.isCombineEnabled,
5869
5869
  shouldClipSubject: !x.ignoreContainerClipping
5870
- }), H = _.closestScrollable;
5871
- return H && (H.setAttribute(nr.contextId, n.contextId), H.addEventListener("scroll", g, lr(U.scrollOptions)), process.env.NODE_ENV !== "production" && Ql(H)), T;
5870
+ }), H = P.closestScrollable;
5871
+ return H && (H.setAttribute(er.contextId, n.contextId), H.addEventListener("scroll", g, cr(U.scrollOptions)), process.env.NODE_ENV !== "production" && Ql(H)), T;
5872
5872
  }, [n.contextId, c, g, s]), b = D(() => {
5873
- const N = t.current, E = Ue(N);
5874
- return N && E || (process.env.NODE_ENV !== "production" ? f(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : f()), Wt(E);
5873
+ const N = t.current, E = He(N);
5874
+ return N && E || (process.env.NODE_ENV !== "production" ? f(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : f()), Ft(E);
5875
5875
  }, []), h = D(() => {
5876
5876
  const N = t.current;
5877
5877
  N || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot stop drag when no active drag") : f());
5878
- const E = Ue(N);
5879
- t.current = null, E && (u.cancel(), E.removeAttribute(nr.contextId), E.removeEventListener("scroll", g, lr(N.scrollOptions)));
5878
+ const E = He(N);
5879
+ t.current = null, E && (u.cancel(), E.removeAttribute(er.contextId), E.removeEventListener("scroll", g, cr(N.scrollOptions)));
5880
5880
  }, [g, u]), y = D((N) => {
5881
5881
  const E = t.current;
5882
5882
  E || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot scroll when there is no drag") : f());
5883
- const x = Ue(E);
5883
+ const x = He(E);
5884
5884
  x || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot scroll a droppable with no closest scrollable") : f()), x.scrollTop += N.y, x.scrollLeft += N.x;
5885
- }, []), v = O(() => ({
5885
+ }, []), v = C(() => ({
5886
5886
  getDimensionAndWatchScroll: m,
5887
5887
  getScrollWhileDragging: b,
5888
5888
  dragStopped: h,
5889
5889
  scroll: y
5890
- }), [h, m, b, y]), I = O(() => ({
5890
+ }), [h, m, b, y]), I = C(() => ({
5891
5891
  uniqueId: r,
5892
5892
  descriptor: c,
5893
5893
  callbacks: v
@@ -5900,9 +5900,9 @@ function sd(e) {
5900
5900
  t.current && i.updateDroppableIsCombineEnabled(a.current.id, e.isCombineEnabled);
5901
5901
  }, [e.isCombineEnabled, i]);
5902
5902
  }
5903
- function Ct() {
5903
+ function wt() {
5904
5904
  }
5905
- const dr = {
5905
+ const ar = {
5906
5906
  width: 0,
5907
5907
  height: 0,
5908
5908
  margin: ts
@@ -5910,7 +5910,7 @@ const dr = {
5910
5910
  isAnimatingOpenOnMount: e,
5911
5911
  placeholder: t,
5912
5912
  animate: n
5913
- }) => e || n === "close" ? dr : {
5913
+ }) => e || n === "close" ? ar : {
5914
5914
  height: t.client.borderBox.height,
5915
5915
  width: t.client.borderBox.width,
5916
5916
  margin: t.client.margin
@@ -5946,10 +5946,10 @@ const dr = {
5946
5946
  onTransitionEnd: o,
5947
5947
  onClose: i,
5948
5948
  contextId: s
5949
- } = e, [c, a] = Ze(e.animate === "open");
5950
- te(() => c ? r !== "open" ? (n(), a(!1), Ct) : t.current ? Ct : (t.current = setTimeout(() => {
5949
+ } = e, [c, a] = Te(e.animate === "open");
5950
+ te(() => c ? r !== "open" ? (n(), a(!1), wt) : t.current ? wt : (t.current = setTimeout(() => {
5951
5951
  t.current = null, a(!1);
5952
- }), n) : Ct, [r, c, n]);
5952
+ }), n) : wt, [r, c, n]);
5953
5953
  const d = D((l) => {
5954
5954
  l.propertyName === "height" && (o(), r === "close" && i());
5955
5955
  }, [r, i, o]), p = ad({
@@ -5982,7 +5982,7 @@ const ud = [function({
5982
5982
  }, function({
5983
5983
  getDroppableRef: t
5984
5984
  }) {
5985
- wo(t());
5985
+ Co(t());
5986
5986
  }], pd = [function({
5987
5987
  props: t,
5988
5988
  getPlaceholderRef: n
@@ -6004,7 +6004,7 @@ const ud = [function({
6004
6004
  t() && (process.env.NODE_ENV !== "production" ? f(!1, "Expected virtual list to not have a placeholder") : f());
6005
6005
  }];
6006
6006
  function gd(e) {
6007
- $e(() => {
6007
+ Ge(() => {
6008
6008
  At(e, ud), e.props.mode === "standard" && At(e, pd), e.props.mode === "virtual" && At(e, fd);
6009
6009
  });
6010
6010
  }
@@ -6094,7 +6094,7 @@ const hd = (e) => {
6094
6094
  ignoreContainerClipping: l,
6095
6095
  getDroppableRef: v
6096
6096
  });
6097
- const S = O(() => V.createElement(md, {
6097
+ const S = C(() => V.createElement(md, {
6098
6098
  on: e.placeholder,
6099
6099
  shouldAnimate: e.shouldAnimatePlaceholder
6100
6100
  }, ({
@@ -6108,14 +6108,14 @@ const hd = (e) => {
6108
6108
  animate: de,
6109
6109
  contextId: n,
6110
6110
  onTransitionEnd: x
6111
- })), [n, x, e.placeholder, e.shouldAnimatePlaceholder, E]), _ = O(() => ({
6111
+ })), [n, x, e.placeholder, e.shouldAnimatePlaceholder, E]), P = C(() => ({
6112
6112
  innerRef: I,
6113
6113
  placeholder: S,
6114
6114
  droppableProps: {
6115
6115
  "data-rfd-droppable-id": c,
6116
6116
  "data-rfd-droppable-context-id": n
6117
6117
  }
6118
- }), [n, c, S, I]), U = b ? b.dragging.draggableId : null, T = O(() => ({
6118
+ }), [n, c, S, I]), U = b ? b.dragging.draggableId : null, T = C(() => ({
6119
6119
  droppableId: c,
6120
6120
  type: a,
6121
6121
  isUsingCloneFor: U
@@ -6133,17 +6133,17 @@ const hd = (e) => {
6133
6133
  isEnabled: !0,
6134
6134
  shouldRespectForcePress: !1,
6135
6135
  canDragInteractiveElements: !0
6136
- }, (ee, Ge) => Q(ee, Ge, M));
6136
+ }, (ee, Fe) => Q(ee, Fe, M));
6137
6137
  return Lo.createPortal(de, y());
6138
6138
  }
6139
- return V.createElement(hn.Provider, {
6139
+ return V.createElement(gn.Provider, {
6140
6140
  value: T
6141
- }, s(_, m), H());
6141
+ }, s(P, m), H());
6142
6142
  };
6143
6143
  function bd() {
6144
6144
  return document.body || (process.env.NODE_ENV !== "production" ? f(!1, "document.body is not ready") : f()), document.body;
6145
6145
  }
6146
- const ur = {
6146
+ const lr = {
6147
6147
  mode: "standard",
6148
6148
  type: "DEFAULT",
6149
6149
  direction: "vertical",
@@ -6156,13 +6156,13 @@ const ur = {
6156
6156
  let t = {
6157
6157
  ...e
6158
6158
  }, n;
6159
- for (n in ur)
6159
+ for (n in lr)
6160
6160
  e[n] === void 0 && (t = {
6161
6161
  ...t,
6162
- [n]: ur[n]
6162
+ [n]: lr[n]
6163
6163
  });
6164
6164
  return t;
6165
- }, _t = (e, t) => e === t.droppable.type, pr = (e, t) => t.draggables[e.draggable.id], vd = () => {
6165
+ }, _t = (e, t) => e === t.droppable.type, dr = (e, t) => t.draggables[e.draggable.id], vd = () => {
6166
6166
  const e = {
6167
6167
  placeholder: null,
6168
6168
  shouldAnimatePlaceholder: !0,
@@ -6225,14 +6225,14 @@ const ur = {
6225
6225
  const u = i.critical;
6226
6226
  if (!_t(d, u))
6227
6227
  return t;
6228
- const g = pr(u, i.dimensions), m = q(i.impact) === a;
6228
+ const g = dr(u, i.dimensions), m = q(i.impact) === a;
6229
6229
  return r(a, p, m, m, g, l);
6230
6230
  }
6231
6231
  if (i.phase === "DROP_ANIMATING") {
6232
6232
  const u = i.completed;
6233
6233
  if (!_t(d, u.critical))
6234
6234
  return t;
6235
- const g = pr(u.critical, i.dimensions);
6235
+ const g = dr(u.critical, i.dimensions);
6236
6236
  return r(a, p, So(u.result) === a, q(u.impact) === a, g, l);
6237
6237
  }
6238
6238
  if (i.phase === "IDLE" && i.completed && !i.shouldFlush) {
@@ -6251,23 +6251,9 @@ const ur = {
6251
6251
  ...e,
6252
6252
  ...t
6253
6253
  }), {
6254
- context: un,
6255
- areStatePropsEqual: Co
6256
- })(hd), Pt = ({
6257
- children: e,
6258
- color: t = "#9ca3af"
6259
- }) => /* @__PURE__ */ C(
6260
- "span",
6261
- {
6262
- style: {
6263
- display: "inline-flex",
6264
- alignItems: "center",
6265
- justifyContent: "center",
6266
- color: t
6267
- },
6268
- children: e
6269
- }
6270
- ), Dd = () => /* @__PURE__ */ L(
6254
+ context: ln,
6255
+ areStatePropsEqual: wo
6256
+ })(hd), Dd = () => /* @__PURE__ */ L(
6271
6257
  "svg",
6272
6258
  {
6273
6259
  width: "16",
@@ -6279,8 +6265,8 @@ const ur = {
6279
6265
  strokeLinecap: "round",
6280
6266
  strokeLinejoin: "round",
6281
6267
  children: [
6282
- /* @__PURE__ */ C("path", { d: "M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z" }),
6283
- /* @__PURE__ */ C("circle", { cx: "12", cy: "10", r: "3" })
6268
+ /* @__PURE__ */ O("path", { d: "M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z" }),
6269
+ /* @__PURE__ */ O("circle", { cx: "12", cy: "10", r: "3" })
6284
6270
  ]
6285
6271
  }
6286
6272
  ), Nd = () => /* @__PURE__ */ L(
@@ -6295,139 +6281,202 @@ const ur = {
6295
6281
  strokeLinecap: "round",
6296
6282
  strokeLinejoin: "round",
6297
6283
  children: [
6298
- /* @__PURE__ */ C("circle", { cx: "12", cy: "12", r: "10" }),
6299
- /* @__PURE__ */ C("polyline", { points: "12 6 12 12 16 14" })
6284
+ /* @__PURE__ */ O("circle", { cx: "12", cy: "12", r: "10" }),
6285
+ /* @__PURE__ */ O("polyline", { points: "12 6 12 12 16 14" })
6300
6286
  ]
6301
6287
  }
6302
- ), xd = () => /* @__PURE__ */ C(
6288
+ ), xd = () => /* @__PURE__ */ L(
6303
6289
  "svg",
6304
6290
  {
6305
- width: "12",
6306
- height: "12",
6291
+ width: "20",
6292
+ height: "20",
6307
6293
  viewBox: "0 0 24 24",
6308
6294
  fill: "none",
6309
- stroke: "currentColor",
6310
- strokeWidth: "4",
6295
+ stroke: "#9ca3af",
6296
+ strokeWidth: "2",
6311
6297
  strokeLinecap: "round",
6312
6298
  strokeLinejoin: "round",
6313
- children: /* @__PURE__ */ C("polyline", { points: "20 6 9 17 4 12" })
6299
+ style: { cursor: "grab" },
6300
+ children: [
6301
+ /* @__PURE__ */ O("line", { x1: "3", y1: "12", x2: "21", y2: "12" }),
6302
+ /* @__PURE__ */ O("line", { x1: "3", y1: "6", x2: "21", y2: "6" }),
6303
+ /* @__PURE__ */ O("line", { x1: "3", y1: "18", x2: "21", y2: "18" })
6304
+ ]
6314
6305
  }
6315
6306
  ), Id = () => /* @__PURE__ */ L(
6316
6307
  "svg",
6317
6308
  {
6318
- width: "20",
6319
- height: "20",
6309
+ width: "16",
6310
+ height: "16",
6320
6311
  viewBox: "0 0 24 24",
6321
6312
  fill: "none",
6322
- stroke: "#9ca3af",
6313
+ stroke: "currentColor",
6323
6314
  strokeWidth: "2",
6324
6315
  strokeLinecap: "round",
6325
6316
  strokeLinejoin: "round",
6326
- style: { cursor: "grab" },
6327
6317
  children: [
6328
- /* @__PURE__ */ C("line", { x1: "3", y1: "12", x2: "21", y2: "12" }),
6329
- /* @__PURE__ */ C("line", { x1: "3", y1: "6", x2: "21", y2: "6" }),
6330
- /* @__PURE__ */ C("line", { x1: "3", y1: "18", x2: "21", y2: "18" })
6318
+ /* @__PURE__ */ O("polyline", { points: "15 3 21 3 21 9" }),
6319
+ /* @__PURE__ */ O("polyline", { points: "9 21 3 21 3 15" }),
6320
+ /* @__PURE__ */ O("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
6321
+ /* @__PURE__ */ O("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
6331
6322
  ]
6332
6323
  }
6333
- ), Rt = (e) => e ? new Date(e).toLocaleTimeString("en-US", {
6324
+ ), Od = () => /* @__PURE__ */ L(
6325
+ "svg",
6326
+ {
6327
+ width: "16",
6328
+ height: "16",
6329
+ viewBox: "0 0 24 24",
6330
+ fill: "none",
6331
+ stroke: "currentColor",
6332
+ strokeWidth: "2",
6333
+ strokeLinecap: "round",
6334
+ strokeLinejoin: "round",
6335
+ children: [
6336
+ /* @__PURE__ */ O("polyline", { points: "4 14 10 14 10 20" }),
6337
+ /* @__PURE__ */ O("polyline", { points: "20 10 14 10 14 4" }),
6338
+ /* @__PURE__ */ O("line", { x1: "14", y1: "10", x2: "21", y2: "3" }),
6339
+ /* @__PURE__ */ O("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
6340
+ ]
6341
+ }
6342
+ ), ur = (e) => e ? new Date(e).toLocaleTimeString("en-US", {
6334
6343
  hour: "numeric",
6335
6344
  minute: "2-digit",
6336
6345
  hour12: !0
6337
- }) : "--:--", fr = (e) => typeof e == "object" && (e != null && e.name) ? e.name : e, Od = ({ order: e, index: t, pathType: n, pathPeriod: r }) => {
6338
- var i, s;
6339
- const o = typeof e.status == "string" ? e.status.toLowerCase() === "completed" : ((s = (i = e.status) == null ? void 0 : i.code) == null ? void 0 : s.toLowerCase()) === "completed";
6340
- return /* @__PURE__ */ C(
6346
+ }) : "--:--", pr = (e) => typeof e == "object" && (e != null && e.name) ? e.name : e, fr = (e) => {
6347
+ var t, n;
6348
+ return typeof e.status == "string" ? e.status.toLowerCase() === "completed" : ((n = (t = e.status) == null ? void 0 : t.code) == null ? void 0 : n.toLowerCase()) === "completed";
6349
+ }, Cd = (e) => {
6350
+ const t = [];
6351
+ return [...e].sort((r, o) => r.sequence_rank - o.sequence_rank).forEach((r) => {
6352
+ const o = t[t.length - 1];
6353
+ o && o.stop_id === r.stop_id ? o.orders.push(r) : t.push({
6354
+ stop_id: r.stop_id,
6355
+ sequence_rank: r.sequence_rank,
6356
+ orders: [r]
6357
+ });
6358
+ }), t;
6359
+ }, wd = ({ order: e, pathPeriod: t, isFirst: n, isDone: r, renderOrderExtraData: o }) => {
6360
+ var c, a;
6361
+ const [i, s] = Te(!1);
6362
+ return /* @__PURE__ */ L(
6363
+ "div",
6364
+ {
6365
+ style: {
6366
+ ...A.orderBlock,
6367
+ borderTop: n ? "none" : "1px solid #f3f4f6"
6368
+ },
6369
+ children: [
6370
+ /* @__PURE__ */ L("div", { style: A.orderHeader, children: [
6371
+ /* @__PURE__ */ L("div", { style: A.gridItem, children: [
6372
+ /* @__PURE__ */ L("div", { style: A.gridLabel, children: [
6373
+ "ORDER",
6374
+ " ",
6375
+ r && /* @__PURE__ */ O("span", { style: { color: "#16a34a", marginLeft: "4px" }, children: "✓ DONE" })
6376
+ ] }),
6377
+ /* @__PURE__ */ L("div", { style: A.gridValue, children: [
6378
+ "#",
6379
+ e.order_id
6380
+ ] })
6381
+ ] }),
6382
+ o && /* @__PURE__ */ O(
6383
+ "button",
6384
+ {
6385
+ onClick: () => s(!i),
6386
+ style: A.expandButton,
6387
+ children: i ? /* @__PURE__ */ O(Od, {}) : /* @__PURE__ */ O(Id, {})
6388
+ }
6389
+ )
6390
+ ] }),
6391
+ /* @__PURE__ */ L("div", { style: A.detailsGrid, children: [
6392
+ /* @__PURE__ */ L("div", { style: A.gridItem, children: [
6393
+ /* @__PURE__ */ O("div", { style: A.gridLabel, children: "LOCATION" }),
6394
+ /* @__PURE__ */ L("div", { style: A.gridValueWithIcon, children: [
6395
+ /* @__PURE__ */ O(Dd, {}),
6396
+ " ",
6397
+ /* @__PURE__ */ O("span", { style: A.truncate, children: ((a = (c = e.customer) == null ? void 0 : c.address) == null ? void 0 : a.street_area) || "N/A" })
6398
+ ] })
6399
+ ] }),
6400
+ /* @__PURE__ */ L("div", { style: A.gridItem, children: [
6401
+ /* @__PURE__ */ O("div", { style: A.gridLabel, children: "PERIOD" }),
6402
+ /* @__PURE__ */ O("div", { style: A.gridValue, children: t })
6403
+ ] }),
6404
+ /* @__PURE__ */ L("div", { style: A.gridItem, children: [
6405
+ /* @__PURE__ */ O("div", { style: A.gridLabel, children: "TIME WINDOW" }),
6406
+ /* @__PURE__ */ L("div", { style: A.gridValueWithIcon, children: [
6407
+ /* @__PURE__ */ O(Nd, {}),
6408
+ " ",
6409
+ /* @__PURE__ */ L("span", { children: [
6410
+ ur(e.eta_start),
6411
+ " - ",
6412
+ ur(e.eta_end)
6413
+ ] })
6414
+ ] })
6415
+ ] })
6416
+ ] }),
6417
+ i && o && /* @__PURE__ */ O("div", { style: A.extraDataContainer, children: o(e) })
6418
+ ]
6419
+ }
6420
+ );
6421
+ }, Sd = ({
6422
+ stopGroup: e,
6423
+ index: t,
6424
+ pathType: n,
6425
+ pathPeriod: r,
6426
+ renderStopActions: o,
6427
+ renderOrderExtraData: i
6428
+ }) => {
6429
+ const s = e.orders.every(fr);
6430
+ return /* @__PURE__ */ O(
6341
6431
  ql,
6342
6432
  {
6343
- draggableId: e.id.toString(),
6433
+ draggableId: e.stop_id.toString(),
6344
6434
  index: t,
6345
- isDragDisabled: o,
6346
- children: (c, a) => {
6347
- var d, p, l;
6435
+ isDragDisabled: s,
6436
+ children: (c) => {
6437
+ var a, d;
6348
6438
  return /* @__PURE__ */ L(
6349
6439
  "div",
6350
6440
  {
6351
6441
  ref: c.innerRef,
6352
6442
  ...c.draggableProps,
6353
- style: {
6354
- ...P.timelineItem,
6355
- ...c.draggableProps.style,
6356
- opacity: a.isDragging ? 0.8 : 1
6357
- },
6443
+ style: { ...A.timelineItem, ...c.draggableProps.style },
6358
6444
  children: [
6359
- /* @__PURE__ */ L(
6445
+ /* @__PURE__ */ O(
6360
6446
  "div",
6361
6447
  {
6362
6448
  style: {
6363
- ...P.bubble,
6364
- ...o ? P.bubbleCompleted : P.bubblePending
6449
+ ...A.bubble,
6450
+ ...s ? A.bubbleCompleted : A.bubblePending
6365
6451
  },
6366
- children: [
6367
- t + 1,
6368
- " "
6369
- ]
6452
+ children: t + 1
6370
6453
  }
6371
6454
  ),
6372
- /* @__PURE__ */ L("div", { style: P.card, children: [
6373
- /* @__PURE__ */ L("div", { style: P.cardHeader, children: [
6374
- /* @__PURE__ */ L(
6375
- "div",
6376
- {
6377
- style: { display: "flex", alignItems: "center", gap: "8px" },
6378
- children: [
6379
- /* @__PURE__ */ L("span", { style: P.title, children: [
6380
- n,
6381
- " #",
6382
- e.sequence_rank
6383
- ] }),
6384
- o && /* @__PURE__ */ L("span", { style: P.completedBadge, children: [
6385
- /* @__PURE__ */ C(Pt, { color: "#16a34a", children: /* @__PURE__ */ C(xd, {}) }),
6386
- " ",
6387
- "Completed at ",
6388
- Rt(e.completed_at || "")
6389
- ] })
6390
- ]
6391
- }
6392
- ),
6393
- !o && /* @__PURE__ */ C("div", { ...c.dragHandleProps, children: /* @__PURE__ */ C(Id, {}) })
6455
+ /* @__PURE__ */ L("div", { style: A.card, children: [
6456
+ /* @__PURE__ */ L("div", { style: A.cardHeader, children: [
6457
+ /* @__PURE__ */ L("span", { style: A.title, children: [
6458
+ n,
6459
+ " #",
6460
+ e.sequence_rank
6461
+ ] }),
6462
+ !s && /* @__PURE__ */ O("div", { ...c.dragHandleProps, children: /* @__PURE__ */ O(xd, {}) })
6394
6463
  ] }),
6395
- /* @__PURE__ */ L("div", { style: P.customerRow, children: [
6396
- "Customer:",
6397
- " ",
6398
- /* @__PURE__ */ C("span", { style: { color: "#374151" }, children: (d = e.customer) == null ? void 0 : d.name })
6464
+ /* @__PURE__ */ L("div", { style: A.customerName, children: [
6465
+ "Customer: ",
6466
+ (d = (a = e.orders[0]) == null ? void 0 : a.customer) == null ? void 0 : d.name
6399
6467
  ] }),
6400
- /* @__PURE__ */ L("div", { style: P.detailsGrid, children: [
6401
- /* @__PURE__ */ L("div", { style: P.gridItem, children: [
6402
- /* @__PURE__ */ C("div", { style: P.gridLabel, children: "Order" }),
6403
- /* @__PURE__ */ L("div", { style: P.gridValue, children: [
6404
- "#",
6405
- e.order_id
6406
- ] })
6407
- ] }),
6408
- /* @__PURE__ */ L("div", { style: P.gridItem, children: [
6409
- /* @__PURE__ */ C("div", { style: P.gridLabel, children: "Location" }),
6410
- /* @__PURE__ */ L("div", { style: P.gridValueWithIcon, children: [
6411
- /* @__PURE__ */ C(Pt, { color: "#3b82f6", children: /* @__PURE__ */ C(Dd, {}) }),
6412
- /* @__PURE__ */ C("span", { style: P.truncate, children: ((l = (p = e.customer) == null ? void 0 : p.address) == null ? void 0 : l.street_area) || "No Address" })
6413
- ] })
6414
- ] }),
6415
- /* @__PURE__ */ L("div", { style: P.gridItem, children: [
6416
- /* @__PURE__ */ C("div", { style: P.gridLabel, children: "Period" }),
6417
- /* @__PURE__ */ C("div", { style: P.gridValue, children: r })
6418
- ] }),
6419
- /* @__PURE__ */ L("div", { style: P.gridItem, children: [
6420
- /* @__PURE__ */ C("div", { style: P.gridLabel, children: "Time Window" }),
6421
- /* @__PURE__ */ L("div", { style: P.gridValueWithIcon, children: [
6422
- /* @__PURE__ */ C(Pt, { children: /* @__PURE__ */ C(Nd, {}) }),
6423
- /* @__PURE__ */ L("span", { children: [
6424
- Rt(e.eta_start),
6425
- " - ",
6426
- Rt(e.eta_end)
6427
- ] })
6428
- ] })
6429
- ] })
6430
- ] })
6468
+ /* @__PURE__ */ O("div", { style: A.ordersList, children: e.orders.map((p, l) => /* @__PURE__ */ O(
6469
+ wd,
6470
+ {
6471
+ order: p,
6472
+ pathPeriod: r,
6473
+ isFirst: l === 0,
6474
+ isDone: fr(p),
6475
+ renderOrderExtraData: i
6476
+ },
6477
+ p.id
6478
+ )) }),
6479
+ o && /* @__PURE__ */ O("div", { style: A.actionsSlot, children: o(e) })
6431
6480
  ] })
6432
6481
  ]
6433
6482
  }
@@ -6435,36 +6484,33 @@ const ur = {
6435
6484
  }
6436
6485
  }
6437
6486
  );
6438
- }, _d = ({
6487
+ }, Td = ({
6439
6488
  path: e,
6440
- onReorder: t
6489
+ onReorder: t,
6490
+ renderStopActions: n,
6491
+ renderOrderExtraData: r
6441
6492
  }) => {
6442
- const [n, r] = Ze([]);
6443
- if (te(() => {
6444
- if (e && e.path_orders) {
6445
- const c = [...e.path_orders].sort(
6446
- (a, d) => a.sequence_rank - d.sequence_rank
6447
- );
6448
- r(c);
6449
- }
6450
- }, [e]), !e || !n.length) return /* @__PURE__ */ C("div", { children: "No Path Data" });
6451
- const o = fr(e.type), i = fr(e.period), s = (c) => {
6493
+ const [o, i] = Te([]);
6494
+ te(() => {
6495
+ e != null && e.path_orders && i(Cd(e.path_orders));
6496
+ }, [e]);
6497
+ const s = (c) => {
6452
6498
  if (!c.destination) return;
6453
- const a = Array.from(n), [d] = a.splice(c.source.index, 1);
6454
- if (a.splice(c.destination.index, 0, d), r(a), t) {
6455
- const p = a.map((l) => l.stop_id);
6456
- t(e.id, p);
6457
- }
6499
+ const a = Array.from(o), [d] = a.splice(c.source.index, 1);
6500
+ a.splice(c.destination.index, 0, d), i(a), t && t(
6501
+ e.id,
6502
+ a.map((p) => p.stop_id)
6503
+ );
6458
6504
  };
6459
- return /* @__PURE__ */ C("div", { style: P.container, children: /* @__PURE__ */ C(wl, { onDragEnd: s, children: /* @__PURE__ */ C(Ed, { droppableId: "path-orders-list", children: (c) => /* @__PURE__ */ L(
6505
+ return !e || !o.length ? /* @__PURE__ */ O("div", { children: "No Path Data" }) : /* @__PURE__ */ O("div", { style: A.container, children: /* @__PURE__ */ O(Cl, { onDragEnd: s, children: /* @__PURE__ */ O(Ed, { droppableId: "path-list", children: (c) => /* @__PURE__ */ L(
6460
6506
  "div",
6461
6507
  {
6462
- style: P.timelineWrapper,
6463
6508
  ref: c.innerRef,
6464
6509
  ...c.droppableProps,
6510
+ style: A.timelineWrapper,
6465
6511
  children: [
6466
- /* @__PURE__ */ C("div", { style: P.verticalLine }),
6467
- /* @__PURE__ */ C(
6512
+ /* @__PURE__ */ O("div", { style: A.verticalLine }),
6513
+ /* @__PURE__ */ O(
6468
6514
  "div",
6469
6515
  {
6470
6516
  style: {
@@ -6472,15 +6518,17 @@ const ur = {
6472
6518
  flexDirection: "column",
6473
6519
  gap: "24px"
6474
6520
  },
6475
- children: n.map((a, d) => /* @__PURE__ */ C(
6476
- Od,
6521
+ children: o.map((a, d) => /* @__PURE__ */ O(
6522
+ Sd,
6477
6523
  {
6524
+ stopGroup: a,
6478
6525
  index: d,
6479
- order: a,
6480
- pathType: o,
6481
- pathPeriod: i
6526
+ pathType: pr(e.type),
6527
+ pathPeriod: pr(e.period),
6528
+ renderStopActions: n,
6529
+ renderOrderExtraData: r
6482
6530
  },
6483
- a.id
6531
+ a.stop_id
6484
6532
  ))
6485
6533
  }
6486
6534
  ),
@@ -6488,50 +6536,40 @@ const ur = {
6488
6536
  ]
6489
6537
  }
6490
6538
  ) }) }) });
6491
- }, P = {
6492
- container: {
6493
- fontFamily: "ui-sans-serif, system-ui, sans-serif",
6494
- maxWidth: "800px",
6495
- margin: "0 auto"
6496
- },
6497
- timelineWrapper: { position: "relative", paddingLeft: "0" },
6539
+ }, A = {
6540
+ container: { fontFamily: "sans-serif", maxWidth: "800px", margin: "0 auto" },
6541
+ timelineWrapper: { position: "relative", padding: "20px 0" },
6498
6542
  verticalLine: {
6499
6543
  position: "absolute",
6500
6544
  left: "19px",
6501
- top: "20px",
6502
- bottom: "20px",
6545
+ top: "40px",
6546
+ bottom: "40px",
6503
6547
  width: "2px",
6504
- backgroundColor: "#f3f4f6",
6505
- zIndex: 0
6548
+ backgroundColor: "#f3f4f6"
6506
6549
  },
6507
6550
  timelineItem: {
6508
- position: "relative",
6509
- zIndex: 1,
6510
6551
  display: "flex",
6511
6552
  gap: "16px",
6512
- alignItems: "flex-start",
6513
6553
  marginBottom: "24px",
6514
- background: "transparent"
6554
+ position: "relative",
6555
+ zIndex: 1
6515
6556
  },
6516
- // Added marginBottom to replace gap in flex
6517
6557
  bubble: {
6518
- flexShrink: 0,
6519
6558
  width: "40px",
6520
6559
  height: "40px",
6521
6560
  borderRadius: "50%",
6522
6561
  display: "flex",
6523
6562
  alignItems: "center",
6524
6563
  justifyContent: "center",
6525
- fontSize: "14px",
6526
6564
  fontWeight: "bold",
6527
- border: "2px solid",
6528
- backgroundColor: "#fff"
6565
+ backgroundColor: "#fff",
6566
+ border: "2px solid"
6529
6567
  },
6530
6568
  bubblePending: { borderColor: "#f3f4f6", color: "#9ca3af" },
6531
6569
  bubbleCompleted: {
6532
6570
  borderColor: "#dcfce7",
6533
- backgroundColor: "#f0fdf4",
6534
- color: "#16a34a"
6571
+ color: "#16a34a",
6572
+ backgroundColor: "#f0fdf4"
6535
6573
  },
6536
6574
  card: {
6537
6575
  flex: 1,
@@ -6539,56 +6577,57 @@ const ur = {
6539
6577
  border: "1px solid #f3f4f6",
6540
6578
  borderRadius: "12px",
6541
6579
  padding: "16px",
6542
- boxShadow: "0 1px 2px 0 rgba(0, 0, 0, 0.05)"
6580
+ boxShadow: "0 1px 3px rgba(0,0,0,0.1)"
6543
6581
  },
6544
6582
  cardHeader: {
6545
6583
  display: "flex",
6546
6584
  justifyContent: "space-between",
6547
- alignItems: "center",
6548
- marginBottom: "12px"
6585
+ marginBottom: "8px"
6549
6586
  },
6550
- title: { fontSize: "16px", fontWeight: "700", color: "#111827" },
6551
- completedBadge: {
6552
- display: "flex",
6553
- alignItems: "center",
6554
- gap: "4px",
6555
- fontSize: "12px",
6556
- color: "#16a34a",
6557
- backgroundColor: "#f0fdf4",
6558
- padding: "2px 8px",
6559
- borderRadius: "4px"
6560
- },
6561
- customerRow: { fontSize: "12px", color: "#6b7280", marginBottom: "12px" },
6562
- detailsGrid: {
6563
- display: "grid",
6564
- gridTemplateColumns: "1fr 1fr",
6565
- gap: "12px",
6587
+ title: { fontSize: "16px", fontWeight: "bold" },
6588
+ customerName: { fontSize: "14px", color: "#6b7280", marginBottom: "12px" },
6589
+ ordersList: {
6566
6590
  backgroundColor: "#f9fafb",
6567
- padding: "12px",
6568
- borderRadius: "8px"
6591
+ borderRadius: "8px",
6592
+ overflow: "hidden"
6569
6593
  },
6570
- gridItem: { display: "flex", flexDirection: "column", gap: "4px" },
6571
- gridLabel: {
6572
- fontSize: "11px",
6573
- color: "#9ca3af",
6574
- textTransform: "uppercase"
6594
+ orderBlock: { padding: "12px" },
6595
+ orderHeader: {
6596
+ display: "flex",
6597
+ justifyContent: "space-between",
6598
+ alignItems: "flex-start",
6599
+ marginBottom: "8px"
6575
6600
  },
6576
- gridValue: { fontSize: "13px", fontWeight: "600", color: "#374151" },
6601
+ detailsGrid: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "12px" },
6602
+ gridItem: { display: "flex", flexDirection: "column" },
6603
+ gridLabel: { fontSize: "10px", color: "#9ca3af", fontWeight: "bold" },
6604
+ gridValue: { fontSize: "13px", fontWeight: "600" },
6577
6605
  gridValueWithIcon: {
6578
6606
  fontSize: "13px",
6579
- fontWeight: "500",
6580
- color: "#374151",
6581
6607
  display: "flex",
6582
6608
  alignItems: "center",
6583
- gap: "6px"
6609
+ gap: "4px",
6610
+ color: "#374151"
6611
+ },
6612
+ expandButton: {
6613
+ background: "none",
6614
+ border: "none",
6615
+ cursor: "pointer",
6616
+ color: "#6b7280"
6617
+ },
6618
+ extraDataContainer: {
6619
+ marginTop: "12px",
6620
+ padding: "12px",
6621
+ borderTop: "1px dashed #e5e7eb"
6584
6622
  },
6623
+ actionsSlot: { marginTop: "16px" },
6585
6624
  truncate: {
6586
6625
  whiteSpace: "nowrap",
6587
6626
  overflow: "hidden",
6588
6627
  textOverflow: "ellipsis",
6589
- maxWidth: "200px"
6628
+ maxWidth: "150px"
6590
6629
  }
6591
6630
  };
6592
6631
  export {
6593
- _d as LogisticsDashboard
6632
+ Td as LogisticsDashboard
6594
6633
  };