@veevarts/design-system 1.15.0-alpha.12 → 1.15.0-alpha.13

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.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { jsx as a, jsxs as f, Fragment as we } from "react/jsx-runtime";
2
- import { HeroUIProvider as Ui, Button as gn, Card as ye, CardBody as Ne, DatePicker as ur, Popover as Bt, PopoverTrigger as Ut, PopoverContent as jt, ScrollShadow as ji, TimeInput as Hi, Select as qi, Input as De, cn as b, SelectItem as dt, Alert as Re, Tooltip as Pe, Divider as Ke, Dropdown as Fn, DropdownTrigger as Ln, DropdownMenu as Tn, DropdownItem as Lt, ButtonGroup as Wi, useInput as Yi, NumberInput as da, CardHeader as ua, Image as fa, CardFooter as Gi, Chip as it, Skeleton as ee, Autocomplete as Ki, AutocompleteItem as Qi, Checkbox as ma, Modal as _n, ModalContent as On, ModalHeader as Pn, ModalBody as zn, ModalFooter as ha, Accordion as Rn, AccordionItem as Vn, Tabs as Zi, Tab as fr, DropdownSection as mr, Spinner as Xi, Switch as Ji, CheckboxGroup as es, RadioGroup as ts, Radio as ns } from "@heroui/react";
2
+ import { HeroUIProvider as Ui, Button as gn, Card as ye, CardBody as Ne, DatePicker as ur, Popover as Bt, PopoverTrigger as Ut, PopoverContent as jt, ScrollShadow as ji, TimeInput as Hi, Select as qi, Input as De, cn as b, SelectItem as dt, Alert as Re, Tooltip as Pe, Divider as Ke, Dropdown as Mn, DropdownTrigger as Ln, DropdownMenu as Tn, DropdownItem as Lt, ButtonGroup as Wi, useInput as Yi, NumberInput as da, CardHeader as ua, Image as fa, CardFooter as Gi, Chip as it, Skeleton as ee, Autocomplete as Ki, AutocompleteItem as Qi, Checkbox as ma, Modal as _n, ModalContent as On, ModalHeader as Pn, ModalBody as zn, ModalFooter as ha, Accordion as Rn, AccordionItem as Vn, Tabs as Zi, Tab as fr, DropdownSection as mr, Spinner as Xi, Switch as Ji, CheckboxGroup as es, RadioGroup as ts, Radio as ns } from "@heroui/react";
3
3
  export * from "@heroui/react";
4
- import G, { forwardRef as mt, useState as H, useEffect as Ie, createElement as bn, useMemo as oe, useRef as ze, useReducer as rs, useCallback as J, isValidElement as as, useId as is } from "react";
4
+ import G, { forwardRef as mt, useState as H, useEffect as Fe, createElement as bn, useMemo as oe, useRef as ze, useReducer as rs, useCallback as J, isValidElement as as, useId as is } from "react";
5
5
  import { Clock3 as ss, Globe as hr, User as pr, Heading as pa, Check as ga, ListTodo as ba, ListOrdered as ya, List as Bn, AlignJustify as ls, AlignRight as os, AlignCenter as cs, AlignLeft as xa, CornerDownLeft as ds, Redo2 as us, Undo2 as fs, Eraser as gr, Minus as ms, Quote as hs, CodeSquare as ps, FileText as gs, Link2 as bs, Highlighter as va, Palette as wa, Code as ys, Underline as xs, Strikethrough as vs, Italic as ws, Bold as Ns, X as ks, ZoomOut as Cs, ZoomIn as Ss, Link as $s, Clock as br, CheckCircle as As, AlertCircle as Ds, Plus as Un, CircleDollarSign as Na } from "lucide-react";
6
- import { LazyMotion as Es, domAnimation as Is, m as yn, motion as Tt, AnimatePresence as xn } from "framer-motion";
7
- import { EditorProvider as Ms, useCurrentEditor as ka } from "@tiptap/react";
6
+ import { LazyMotion as Es, domAnimation as Fs, m as yn, motion as Tt, AnimatePresence as xn } from "framer-motion";
7
+ import { EditorProvider as Is, useCurrentEditor as ka } from "@tiptap/react";
8
8
  import { getMarkRange as yr } from "@tiptap/core";
9
- import { Bold as Fs } from "@tiptap/extension-bold";
9
+ import { Bold as Ms } from "@tiptap/extension-bold";
10
10
  import { Italic as Ls } from "@tiptap/extension-italic";
11
11
  import { Strike as Ts } from "@tiptap/extension-strike";
12
12
  import { Underline as _s } from "@tiptap/extension-underline";
@@ -32,7 +32,7 @@ import { Document as Js } from "@tiptap/extension-document";
32
32
  import { Text as el } from "@tiptap/extension-text";
33
33
  import { Dropcursor as tl } from "@tiptap/extension-dropcursor";
34
34
  import { Gapcursor as nl } from "@tiptap/extension-gapcursor";
35
- function zf({ children: e }) {
35
+ function Rf({ children: e }) {
36
36
  return /* @__PURE__ */ a(Ui, { children: e });
37
37
  }
38
38
  function rl(e, t) {
@@ -162,7 +162,7 @@ const Da = /^[a-z0-9]+(-[a-z0-9]+)*$/, Ht = (e, t, n, r = "") => {
162
162
  prefix: c,
163
163
  name: l
164
164
  };
165
- return t && !It(d) ? null : d;
165
+ return t && !Ft(d) ? null : d;
166
166
  }
167
167
  const s = i[0], o = s.split("-");
168
168
  if (o.length > 1) {
@@ -171,7 +171,7 @@ const Da = /^[a-z0-9]+(-[a-z0-9]+)*$/, Ht = (e, t, n, r = "") => {
171
171
  prefix: o.shift(),
172
172
  name: o.join("-")
173
173
  };
174
- return t && !It(l) ? null : l;
174
+ return t && !Ft(l) ? null : l;
175
175
  }
176
176
  if (n && r === "") {
177
177
  const l = {
@@ -179,10 +179,10 @@ const Da = /^[a-z0-9]+(-[a-z0-9]+)*$/, Ht = (e, t, n, r = "") => {
179
179
  prefix: "",
180
180
  name: s
181
181
  };
182
- return t && !It(l, n) ? null : l;
182
+ return t && !Ft(l, n) ? null : l;
183
183
  }
184
184
  return null;
185
- }, It = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
185
+ }, Ft = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
186
186
  let Nt = !1;
187
187
  function Ea(e) {
188
188
  return typeof e == "boolean" && (Nt = e), Nt;
@@ -209,18 +209,18 @@ function dl(e, t) {
209
209
  })), i;
210
210
  }
211
211
  const n = e.prefix;
212
- if (!It({
212
+ if (!Ft({
213
213
  prefix: n,
214
214
  name: "a"
215
215
  })) return !1;
216
216
  const r = ut(t, n);
217
217
  return !!Aa(r, e);
218
218
  }
219
- const Ia = Object.freeze({
219
+ const Fa = Object.freeze({
220
220
  width: null,
221
221
  height: null
222
- }), Ma = Object.freeze({
223
- ...Ia,
222
+ }), Ia = Object.freeze({
223
+ ...Fa,
224
224
  ..._t
225
225
  }), ul = /(-?[0-9.]*[0-9]+[0-9.]*)/g, fl = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
226
226
  function kr(e, t, n) {
@@ -268,7 +268,7 @@ function bl(e, t) {
268
268
  ...jn,
269
269
  ...e
270
270
  }, r = {
271
- ...Ma,
271
+ ...Ia,
272
272
  ...t
273
273
  }, i = {
274
274
  left: n.left,
@@ -349,9 +349,9 @@ function Hn(e) {
349
349
  dataAfterTimeout: e.dataAfterTimeout !== !1
350
350
  };
351
351
  }
352
- const qn = /* @__PURE__ */ Object.create(null), ht = ["https://api.simplesvg.com", "https://api.unisvg.com"], Mt = [];
353
- for (; ht.length > 0; ) ht.length === 1 || Math.random() > 0.5 ? Mt.push(ht.shift()) : Mt.push(ht.pop());
354
- qn[""] = Hn({ resources: ["https://api.iconify.design"].concat(Mt) });
352
+ const qn = /* @__PURE__ */ Object.create(null), ht = ["https://api.simplesvg.com", "https://api.unisvg.com"], It = [];
353
+ for (; ht.length > 0; ) ht.length === 1 || Math.random() > 0.5 ? It.push(ht.shift()) : It.push(ht.pop());
354
+ qn[""] = Hn({ resources: ["https://api.iconify.design"].concat(It) });
355
355
  function kl(e, t) {
356
356
  const n = Hn(t);
357
357
  return n === null ? !1 : (qn[e] = n, !0);
@@ -453,17 +453,17 @@ const El = (e, t, n) => {
453
453
  }).catch(() => {
454
454
  n("next", i);
455
455
  });
456
- }, Il = {
456
+ }, Fl = {
457
457
  prepare: Al,
458
458
  send: El
459
459
  };
460
- function Fa(e, t) {
460
+ function Ma(e, t) {
461
461
  e.forEach((n) => {
462
462
  const r = n.loaderCallbacks;
463
463
  r && (n.loaderCallbacks = r.filter((i) => i.id !== t));
464
464
  });
465
465
  }
466
- function Ml(e) {
466
+ function Il(e) {
467
467
  e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
468
468
  e.pendingCallbacksFlag = !1;
469
469
  const t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
@@ -488,13 +488,13 @@ function Ml(e) {
488
488
  else
489
489
  return n = !0, !0;
490
490
  return !1;
491
- }), o.pending.length !== l && (n || Fa([e], s.id), s.callback(o.loaded.slice(0), o.missing.slice(0), o.pending.slice(0), s.abort));
491
+ }), o.pending.length !== l && (n || Ma([e], s.id), s.callback(o.loaded.slice(0), o.missing.slice(0), o.pending.slice(0), s.abort));
492
492
  });
493
493
  }));
494
494
  }
495
- let Fl = 0;
495
+ let Ml = 0;
496
496
  function Ll(e, t, n) {
497
- const r = Fl++, i = Fa.bind(null, n, r);
497
+ const r = Ml++, i = Ma.bind(null, n, r);
498
498
  if (!t.pending.length) return i;
499
499
  const s = {
500
500
  id: r,
@@ -551,12 +551,12 @@ function Pl(e, t, n, r) {
551
551
  const i = e.resources.length, s = e.random ? Math.floor(Math.random() * i) : e.index;
552
552
  let o;
553
553
  if (e.random) {
554
- let I = e.resources.slice(0);
555
- for (o = []; I.length > 1; ) {
556
- const F = Math.floor(Math.random() * I.length);
557
- o.push(I[F]), I = I.slice(0, F).concat(I.slice(F + 1));
554
+ let F = e.resources.slice(0);
555
+ for (o = []; F.length > 1; ) {
556
+ const M = Math.floor(Math.random() * F.length);
557
+ o.push(F[M]), F = F.slice(0, M).concat(F.slice(M + 1));
558
558
  }
559
- o = o.concat(I);
559
+ o = o.concat(F);
560
560
  } else o = e.resources.slice(s).concat(e.resources.slice(0, s));
561
561
  const l = Date.now();
562
562
  let c = "pending", d = 0, u, h = null, y = [], m = [];
@@ -565,12 +565,12 @@ function Pl(e, t, n, r) {
565
565
  h && (clearTimeout(h), h = null);
566
566
  }
567
567
  function S() {
568
- c === "pending" && (c = "aborted"), w(), y.forEach((I) => {
569
- I.status === "pending" && (I.status = "aborted");
568
+ c === "pending" && (c = "aborted"), w(), y.forEach((F) => {
569
+ F.status === "pending" && (F.status = "aborted");
570
570
  }), y = [];
571
571
  }
572
- function g(I, F) {
573
- F && (m = []), typeof I == "function" && m.push(I);
572
+ function g(F, M) {
573
+ M && (m = []), typeof F == "function" && m.push(F);
574
574
  }
575
575
  function N() {
576
576
  return {
@@ -584,18 +584,18 @@ function Pl(e, t, n, r) {
584
584
  };
585
585
  }
586
586
  function k() {
587
- c = "failed", m.forEach((I) => {
588
- I(void 0, u);
587
+ c = "failed", m.forEach((F) => {
588
+ F(void 0, u);
589
589
  });
590
590
  }
591
591
  function $() {
592
- y.forEach((I) => {
593
- I.status === "pending" && (I.status = "aborted");
592
+ y.forEach((F) => {
593
+ F.status === "pending" && (F.status = "aborted");
594
594
  }), y = [];
595
595
  }
596
- function x(I, F, T) {
597
- const A = F !== "success";
598
- switch (y = y.filter((z) => z !== I), c) {
596
+ function x(F, M, T) {
597
+ const A = M !== "success";
598
+ switch (y = y.filter((z) => z !== F), c) {
599
599
  case "pending":
600
600
  break;
601
601
  case "failed":
@@ -604,7 +604,7 @@ function Pl(e, t, n, r) {
604
604
  default:
605
605
  return;
606
606
  }
607
- if (F === "abort") {
607
+ if (M === "abort") {
608
608
  u = T, k();
609
609
  return;
610
610
  }
@@ -613,7 +613,7 @@ function Pl(e, t, n, r) {
613
613
  return;
614
614
  }
615
615
  if (w(), $(), !e.random) {
616
- const z = e.resources.indexOf(I.resource);
616
+ const z = e.resources.indexOf(F.resource);
617
617
  z !== -1 && z !== e.index && (e.index = z);
618
618
  }
619
619
  c = "completed", m.forEach((z) => {
@@ -623,8 +623,8 @@ function Pl(e, t, n, r) {
623
623
  function v() {
624
624
  if (c !== "pending") return;
625
625
  w();
626
- const I = o.shift();
627
- if (I === void 0) {
626
+ const F = o.shift();
627
+ if (F === void 0) {
628
628
  if (y.length) {
629
629
  h = setTimeout(() => {
630
630
  w(), c === "pending" && ($(), k());
@@ -634,14 +634,14 @@ function Pl(e, t, n, r) {
634
634
  k();
635
635
  return;
636
636
  }
637
- const F = {
637
+ const M = {
638
638
  status: "pending",
639
- resource: I,
639
+ resource: F,
640
640
  callback: (T, A) => {
641
- x(F, T, A);
641
+ x(M, T, A);
642
642
  }
643
643
  };
644
- y.push(F), d++, h = setTimeout(v, e.rotate), n(I, t, F.callback);
644
+ y.push(M), d++, h = setTimeout(v, e.rotate), n(F, t, M.callback);
645
645
  }
646
646
  return setTimeout(v), N;
647
647
  }
@@ -711,7 +711,7 @@ function $r() {
711
711
  }
712
712
  function Vl(e) {
713
713
  e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
714
- e.iconsLoaderFlag = !1, Ml(e);
714
+ e.iconsLoaderFlag = !1, Il(e);
715
715
  }));
716
716
  }
717
717
  function Bl(e) {
@@ -816,7 +816,7 @@ function Hl(e, t) {
816
816
  const n = { ...e };
817
817
  for (const r in t) {
818
818
  const i = t[r], s = typeof i;
819
- r in Ia ? (i === null || i && (s === "string" || s === "number")) && (n[r] = i) : s === typeof n[r] && (n[r] = r === "rotate" ? i % 4 : i);
819
+ r in Fa ? (i === null || i && (s === "string" || s === "number")) && (n[r] = i) : s === typeof n[r] && (n[r] = r === "rotate" ? i % 4 : i);
820
820
  }
821
821
  return n;
822
822
  }
@@ -884,7 +884,7 @@ function Jl(e) {
884
884
  return xt === void 0 && Xl(), xt ? xt.createHTML(e) : e;
885
885
  }
886
886
  const Ta = {
887
- ...Ma,
887
+ ...Ia,
888
888
  inline: !1
889
889
  }, eo = {
890
890
  xmlns: "http://www.w3.org/2000/svg",
@@ -915,7 +915,7 @@ const no = {
915
915
  ...Ta,
916
916
  inline: !0
917
917
  };
918
- function Ir(e) {
918
+ function Fr(e) {
919
919
  return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
920
920
  }
921
921
  const ro = (e, t, n) => {
@@ -1002,15 +1002,15 @@ const ro = (e, t, n) => {
1002
1002
  return c.style = {
1003
1003
  ...o,
1004
1004
  "--svg": Zl(S),
1005
- width: Ir(u.width),
1006
- height: Ir(u.height),
1005
+ width: Fr(u.width),
1006
+ height: Fr(u.height),
1007
1007
  ...to,
1008
1008
  ...w ? kn : _a,
1009
1009
  ...l
1010
1010
  }, bn("span", c);
1011
1011
  };
1012
1012
  Ea(!0);
1013
- Nl("", Il);
1013
+ Nl("", Fl);
1014
1014
  if (typeof document < "u" && typeof window < "u") {
1015
1015
  const e = window;
1016
1016
  if (e.IconifyPreload !== void 0) {
@@ -1094,7 +1094,7 @@ function Oa(e) {
1094
1094
  });
1095
1095
  } else S && ((m = e.onLoad) === null || m === void 0 || m.call(e, w));
1096
1096
  }
1097
- Ie(() => (n(!0), c), []), Ie(() => {
1097
+ Fe(() => (n(!0), c), []), Fe(() => {
1098
1098
  t && u();
1099
1099
  }, [e.icon, t]);
1100
1100
  const { name: h, data: y } = o;
@@ -1151,9 +1151,9 @@ const Pa = 1721426;
1151
1151
  function Dt(e, t, n, r) {
1152
1152
  t = Yn(e, t);
1153
1153
  let i = t - 1, s = -2;
1154
- return n <= 2 ? s = 0 : Ft(t) && (s = -1), Pa - 1 + 365 * i + Math.floor(i / 4) - Math.floor(i / 100) + Math.floor(i / 400) + Math.floor((367 * n - 362) / 12 + s + r);
1154
+ return n <= 2 ? s = 0 : Mt(t) && (s = -1), Pa - 1 + 365 * i + Math.floor(i / 4) - Math.floor(i / 100) + Math.floor(i / 400) + Math.floor((367 * n - 362) / 12 + s + r);
1155
1155
  }
1156
- function Ft(e) {
1156
+ function Mt(e) {
1157
1157
  return e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0);
1158
1158
  }
1159
1159
  function Yn(e, t) {
@@ -1199,7 +1199,7 @@ const so = {
1199
1199
  class qt {
1200
1200
  fromJulianDay(t) {
1201
1201
  let n = t, r = n - Pa, i = Math.floor(r / 146097), s = Jt(r, 146097), o = Math.floor(s / 36524), l = Jt(s, 36524), c = Math.floor(l / 1461), d = Jt(l, 1461), u = Math.floor(d / 365), h = i * 400 + o * 100 + c * 4 + u + (o !== 4 && u !== 4 ? 1 : 0), [y, m] = io(h), w = n - Dt(y, m, 1, 1), S = 2;
1202
- n < Dt(y, m, 3, 1) ? S = 0 : Ft(m) && (S = 1);
1202
+ n < Dt(y, m, 3, 1) ? S = 0 : Mt(m) && (S = 1);
1203
1203
  let g = Math.floor(((w + S) * 12 + 373) / 367), N = n - Dt(y, m, g, 1) + 1;
1204
1204
  return new kt(y, m, g, N);
1205
1205
  }
@@ -1207,14 +1207,14 @@ class qt {
1207
1207
  return Dt(t.era, t.year, t.month, t.day);
1208
1208
  }
1209
1209
  getDaysInMonth(t) {
1210
- return so[Ft(t.year) ? "leapyear" : "standard"][t.month - 1];
1210
+ return so[Mt(t.year) ? "leapyear" : "standard"][t.month - 1];
1211
1211
  }
1212
1212
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
1213
1213
  getMonthsInYear(t) {
1214
1214
  return 12;
1215
1215
  }
1216
1216
  getDaysInYear(t) {
1217
- return Ft(t.year) ? 366 : 365;
1217
+ return Mt(t.year) ? 366 : 365;
1218
1218
  }
1219
1219
  getMaximumMonthsInYear() {
1220
1220
  return 12;
@@ -1250,16 +1250,16 @@ function za(e, t) {
1250
1250
  return e.calendar.toJulianDay(e) - t.calendar.toJulianDay(t);
1251
1251
  }
1252
1252
  function Ra(e, t) {
1253
- return Mr(e) - Mr(t);
1253
+ return Ir(e) - Ir(t);
1254
1254
  }
1255
- function Mr(e) {
1255
+ function Ir(e) {
1256
1256
  return e.hour * 36e5 + e.minute * 6e4 + e.second * 1e3 + e.millisecond;
1257
1257
  }
1258
1258
  let en = null;
1259
1259
  function Va() {
1260
1260
  return en == null && (en = new Intl.DateTimeFormat().resolvedOptions().timeZone), en;
1261
1261
  }
1262
- function Fr(e) {
1262
+ function Mr(e) {
1263
1263
  e = Gn(e, new qt());
1264
1264
  let t = Yn(e.era, e.year);
1265
1265
  return Ba(t, e.month, e.day, e.hour, e.minute, e.second, e.millisecond);
@@ -1315,13 +1315,13 @@ function co(e, t, n) {
1315
1315
  }
1316
1316
  function uo(e, t, n = "compatible") {
1317
1317
  let r = Ha(e);
1318
- if (t === "UTC") return Fr(r);
1318
+ if (t === "UTC") return Mr(r);
1319
1319
  if (t === Va() && n === "compatible") {
1320
1320
  r = Gn(r, new qt());
1321
1321
  let c = /* @__PURE__ */ new Date(), d = Yn(r.era, r.year);
1322
1322
  return c.setFullYear(d, r.month - 1, r.day), c.setHours(r.hour, r.minute, r.second, r.millisecond), c.getTime();
1323
1323
  }
1324
- let i = Fr(r), s = Lr(i - _r, t), o = Lr(i + _r, t), l = oo(r, t, i - s, i - o);
1324
+ let i = Mr(r), s = Lr(i - _r, t), o = Lr(i + _r, t), l = oo(r, t, i - s, i - o);
1325
1325
  if (l.length === 1) return l[0];
1326
1326
  if (l.length > 1) switch (n) {
1327
1327
  // 'compatible' means 'earlier' for "fall back" transitions
@@ -1801,7 +1801,7 @@ const nt = mt(
1801
1801
  disableDialogFocus: e?.disableDialogFocus ?? (i ? !0 : void 0),
1802
1802
  portalContainer: e?.portalContainer ?? i
1803
1803
  };
1804
- return Ie(() => {
1804
+ return Fe(() => {
1805
1805
  s(Do(r.current));
1806
1806
  }, []), /* @__PURE__ */ a("span", { ref: r, className: "contents", children: /* @__PURE__ */ a(
1807
1807
  qi,
@@ -1814,7 +1814,7 @@ const nt = mt(
1814
1814
  }
1815
1815
  );
1816
1816
  nt.displayName = "Select";
1817
- function Rf({
1817
+ function Vf({
1818
1818
  state: e,
1819
1819
  onSubmit: t,
1820
1820
  onRemove: n,
@@ -1875,7 +1875,7 @@ const Eo = {
1875
1875
  logout: "Logout",
1876
1876
  selectLanguage: "Select your language"
1877
1877
  };
1878
- function Io({
1878
+ function Fo({
1879
1879
  languages: e,
1880
1880
  selectedLanguage: t,
1881
1881
  onLanguageChange: n,
@@ -1943,7 +1943,7 @@ function Io({
1943
1943
  )
1944
1944
  ] }) });
1945
1945
  }
1946
- function Mo({
1946
+ function Io({
1947
1947
  isLoggedIn: e,
1948
1948
  onLogin: t,
1949
1949
  onLogout: n,
@@ -1975,7 +1975,7 @@ function Mo({
1975
1975
  }
1976
1976
  );
1977
1977
  }
1978
- function Vf({
1978
+ function Bf({
1979
1979
  logo: e,
1980
1980
  languages: t = [],
1981
1981
  selectedLanguage: n,
@@ -2009,7 +2009,7 @@ function Vf({
2009
2009
  ) }) }),
2010
2010
  /* @__PURE__ */ f("div", { className: "flex items-center gap-2 md:gap-4", children: [
2011
2011
  (l || t.length > 0) && /* @__PURE__ */ a(
2012
- Io,
2012
+ Fo,
2013
2013
  {
2014
2014
  languages: t,
2015
2015
  selectedLanguage: n,
@@ -2017,13 +2017,13 @@ function Vf({
2017
2017
  label: h.selectLanguage
2018
2018
  }
2019
2019
  ),
2020
- c && /* @__PURE__ */ a(Mo, { isLoggedIn: i, onLogin: s, onLogout: o, labels: h })
2020
+ c && /* @__PURE__ */ a(Io, { isLoggedIn: i, onLogin: s, onLogout: o, labels: h })
2021
2021
  ] })
2022
2022
  ]
2023
2023
  }
2024
2024
  );
2025
2025
  }
2026
- function Bf(e) {
2026
+ function Uf(e) {
2027
2027
  return /* @__PURE__ */ a("div", { className: "min-h-screen flex flex-col", children: /* @__PURE__ */ a("div", { className: "flex-1 flex items-center justify-center p-12", children: /* @__PURE__ */ a(
2028
2028
  Re,
2029
2029
  {
@@ -2035,18 +2035,18 @@ function Bf(e) {
2035
2035
  ) }) });
2036
2036
  }
2037
2037
  var rn;
2038
- const Fo = typeof document < "u" ? (rn = G.useInsertionEffect) !== null && rn !== void 0 ? rn : G.useLayoutEffect : () => {
2038
+ const Mo = typeof document < "u" ? (rn = G.useInsertionEffect) !== null && rn !== void 0 ? rn : G.useLayoutEffect : () => {
2039
2039
  };
2040
2040
  function Zn(e, t, n) {
2041
2041
  let [r, i] = H(e || t), s = ze(r), o = ze(e !== void 0), l = e !== void 0;
2042
- Ie(() => {
2042
+ Fe(() => {
2043
2043
  let h = o.current;
2044
2044
  h !== l && process.env.NODE_ENV !== "production" && console.warn(`WARN: A component changed from ${h ? "controlled" : "uncontrolled"} to ${l ? "controlled" : "uncontrolled"}.`), o.current = l;
2045
2045
  }, [
2046
2046
  l
2047
2047
  ]);
2048
2048
  let c = l ? e : r;
2049
- Fo(() => {
2049
+ Mo(() => {
2050
2050
  s.current = c;
2051
2051
  });
2052
2052
  let [, d] = rs(() => ({}), {}), u = J((h, ...y) => {
@@ -2100,8 +2100,8 @@ const To = G.forwardRef(
2100
2100
  isDisabled: N = !1,
2101
2101
  ...k
2102
2102
  }, $) => {
2103
- const [x, v] = Zn(m, r, y), I = G.useMemo(() => {
2104
- let F, T;
2103
+ const [x, v] = Zn(m, r, y), F = G.useMemo(() => {
2104
+ let M, T;
2105
2105
  const A = [
2106
2106
  "[--active-fg-color:hsl(var(--step-fg-color))]",
2107
2107
  "[--active-border-color:hsl(var(--step-color))]",
@@ -2113,28 +2113,28 @@ const To = G.forwardRef(
2113
2113
  ];
2114
2114
  switch (e) {
2115
2115
  case "primary":
2116
- F = "[--step-color:var(--heroui-primary)]", T = "[--step-fg-color:var(--heroui-primary-foreground)]";
2116
+ M = "[--step-color:var(--heroui-primary)]", T = "[--step-fg-color:var(--heroui-primary-foreground)]";
2117
2117
  break;
2118
2118
  case "secondary":
2119
- F = "[--step-color:var(--heroui-secondary)]", T = "[--step-fg-color:var(--heroui-secondary-foreground)]";
2119
+ M = "[--step-color:var(--heroui-secondary)]", T = "[--step-fg-color:var(--heroui-secondary-foreground)]";
2120
2120
  break;
2121
2121
  case "success":
2122
- F = "[--step-color:var(--heroui-success)]", T = "[--step-fg-color:var(--heroui-success-foreground)]";
2122
+ M = "[--step-color:var(--heroui-success)]", T = "[--step-fg-color:var(--heroui-success-foreground)]";
2123
2123
  break;
2124
2124
  case "warning":
2125
- F = "[--step-color:var(--heroui-warning)]", T = "[--step-fg-color:var(--heroui-warning-foreground)]";
2125
+ M = "[--step-color:var(--heroui-warning)]", T = "[--step-fg-color:var(--heroui-warning-foreground)]";
2126
2126
  break;
2127
2127
  case "danger":
2128
- F = "[--step-color:var(--heroui-danger)]", T = "[--step-fg-color:var(--heroui-danger-foreground)]";
2128
+ M = "[--step-color:var(--heroui-danger)]", T = "[--step-fg-color:var(--heroui-danger-foreground)]";
2129
2129
  break;
2130
2130
  case "default":
2131
- F = "[--step-color:var(--heroui-default)]", T = "[--step-fg-color:var(--heroui-default-foreground)]";
2131
+ M = "[--step-color:var(--heroui-default)]", T = "[--step-fg-color:var(--heroui-default-foreground)]";
2132
2132
  break;
2133
2133
  default:
2134
- F = "[--step-color:var(--heroui-primary)]", T = "[--step-fg-color:var(--heroui-primary-foreground)]";
2134
+ M = "[--step-color:var(--heroui-primary)]", T = "[--step-fg-color:var(--heroui-primary-foreground)]";
2135
2135
  break;
2136
2136
  }
2137
- return A.unshift(T), A.unshift(F), A;
2137
+ return A.unshift(T), A.unshift(M), A;
2138
2138
  }, [e]);
2139
2139
  return /* @__PURE__ */ f(
2140
2140
  "nav",
@@ -2158,8 +2158,8 @@ const To = G.forwardRef(
2158
2158
  children: i
2159
2159
  }
2160
2160
  ),
2161
- /* @__PURE__ */ a("ol", { className: b("flex flex-row flex-nowrap gap-x-3", I, g), "data-testid": "stepper-list", children: Array.from({ length: n })?.map((F, T) => {
2162
- const A = x === T ? "active" : x < T ? "inactive" : "complete", z = t === "activeLabel" && A === "active" && !!s?.[T], M = o && A !== "active" && !!s?.[T];
2161
+ /* @__PURE__ */ a("ol", { className: b("flex flex-row flex-nowrap gap-x-3", F, g), "data-testid": "stepper-list", children: Array.from({ length: n })?.map((M, T) => {
2162
+ const A = x === T ? "active" : x < T ? "inactive" : "complete", z = t === "activeLabel" && A === "active" && !!s?.[T], I = o && A !== "active" && !!s?.[T];
2163
2163
  return /* @__PURE__ */ f(
2164
2164
  "li",
2165
2165
  {
@@ -2169,8 +2169,8 @@ const To = G.forwardRef(
2169
2169
  /* @__PURE__ */ a(
2170
2170
  Pe,
2171
2171
  {
2172
- content: M ? s?.[T] : void 0,
2173
- isDisabled: !M,
2172
+ content: I ? s?.[T] : void 0,
2173
+ isDisabled: !I,
2174
2174
  offset: 12,
2175
2175
  placement: l,
2176
2176
  classNames: {
@@ -2193,7 +2193,7 @@ const To = G.forwardRef(
2193
2193
  disabled: N,
2194
2194
  "data-testid": `stepper-step-btn-${T}`,
2195
2195
  children: [
2196
- /* @__PURE__ */ a("div", { className: "h-full relative flex items-center", children: /* @__PURE__ */ a(Es, { features: Is, children: /* @__PURE__ */ a(yn.div, { animate: A, className: "relative z-10", children: /* @__PURE__ */ a(
2196
+ /* @__PURE__ */ a("div", { className: "h-full relative flex items-center", children: /* @__PURE__ */ a(Es, { features: Fs, children: /* @__PURE__ */ a(yn.div, { animate: A, className: "relative z-10", children: /* @__PURE__ */ a(
2197
2197
  yn.div,
2198
2198
  {
2199
2199
  animate: A,
@@ -2283,7 +2283,7 @@ const To = G.forwardRef(
2283
2283
  }
2284
2284
  );
2285
2285
  To.displayName = "Stepper";
2286
- function Uf(e) {
2286
+ function jf(e) {
2287
2287
  return /* @__PURE__ */ a("div", { className: "min-h-screen flex flex-col", children: /* @__PURE__ */ a("div", { className: "flex-1 flex items-center justify-center p-12", children: /* @__PURE__ */ a(
2288
2288
  Re,
2289
2289
  {
@@ -2322,7 +2322,7 @@ function _o(e, t, n = "en-US") {
2322
2322
  function Pr(e, t, n, r) {
2323
2323
  return _o(e - t, n, r);
2324
2324
  }
2325
- function jf() {
2325
+ function Hf() {
2326
2326
  return /* @__PURE__ */ f(
2327
2327
  "footer",
2328
2328
  {
@@ -2335,7 +2335,7 @@ function jf() {
2335
2335
  }
2336
2336
  );
2337
2337
  }
2338
- const Hf = (e) => {
2338
+ const qf = (e) => {
2339
2339
  const t = oe(
2340
2340
  () => JSON.stringify({ allItems: e.allItems, selected: e.selected }),
2341
2341
  [e.allItems, e.selected]
@@ -2353,15 +2353,15 @@ const Hf = (e) => {
2353
2353
  ), [h, y] = H(
2354
2354
  null
2355
2355
  ), m = oe(() => new Set(t), [t]), w = oe(() => new Set(e), [e]), S = oe(
2356
- () => e.filter((M) => !m.has(M)),
2356
+ () => e.filter((I) => !m.has(I)),
2357
2357
  [e, m]
2358
- ), g = (M) => {
2359
- if (M.length === 0) return;
2360
- const D = Array.from(/* @__PURE__ */ new Set([...t, ...M]));
2358
+ ), g = (I) => {
2359
+ if (I.length === 0) return;
2360
+ const D = Array.from(/* @__PURE__ */ new Set([...t, ...I]));
2361
2361
  n(D);
2362
- }, N = (M) => {
2363
- if (M.length === 0) return;
2364
- const D = new Set(M);
2362
+ }, N = (I) => {
2363
+ if (I.length === 0) return;
2364
+ const D = new Set(I);
2365
2365
  n(t.filter((L) => !D.has(L)));
2366
2366
  }, k = () => {
2367
2367
  s.length !== 0 && (g(s), o([]));
@@ -2371,36 +2371,36 @@ const Hf = (e) => {
2371
2371
  S.length !== 0 && (g(S), o([]));
2372
2372
  }, v = () => {
2373
2373
  t.length !== 0 && (n([]), c([]));
2374
- }, I = (M, D, L) => {
2374
+ }, F = (I, D, L) => {
2375
2375
  const O = Math.min(D, L), Z = Math.max(D, L);
2376
- return M.slice(O, Z + 1);
2377
- }, F = (M, D, L) => {
2376
+ return I.slice(O, Z + 1);
2377
+ }, M = (I, D, L) => {
2378
2378
  if (L && d !== null) {
2379
- o(I(S, d, D)), c([]), u(D);
2379
+ o(F(S, d, D)), c([]), u(D);
2380
2380
  return;
2381
2381
  }
2382
- const O = s.includes(M);
2382
+ const O = s.includes(I);
2383
2383
  o(
2384
- O ? s.filter((Z) => Z !== M) : [...s, M]
2384
+ O ? s.filter((Z) => Z !== I) : [...s, I]
2385
2385
  ), c([]), u(D);
2386
- }, T = (M, D, L) => {
2386
+ }, T = (I, D, L) => {
2387
2387
  if (L && h !== null) {
2388
- c(I(t, h, D)), o([]), y(D);
2388
+ c(F(t, h, D)), o([]), y(D);
2389
2389
  return;
2390
2390
  }
2391
- const O = l.includes(M);
2391
+ const O = l.includes(I);
2392
2392
  c(
2393
- O ? l.filter((Z) => Z !== M) : [...l, M]
2393
+ O ? l.filter((Z) => Z !== I) : [...l, I]
2394
2394
  ), o([]), y(D);
2395
- }, A = (M, D, L) => {
2395
+ }, A = (I, D, L) => {
2396
2396
  const O = L === "available" ? s.includes(D) ? s : [D] : l.includes(D) ? l : [D];
2397
- M.dataTransfer.setData(
2397
+ I.dataTransfer.setData(
2398
2398
  "text/plain",
2399
2399
  JSON.stringify({ source: L, items: O })
2400
- ), M.dataTransfer.effectAllowed = "move";
2401
- }, z = (M, D) => {
2402
- M.preventDefault();
2403
- const L = M.dataTransfer.getData("text/plain");
2400
+ ), I.dataTransfer.effectAllowed = "move";
2401
+ }, z = (I, D) => {
2402
+ I.preventDefault();
2403
+ const L = I.dataTransfer.getData("text/plain");
2404
2404
  if (L)
2405
2405
  try {
2406
2406
  const O = JSON.parse(L), Z = (O.items || []).filter(
@@ -2419,26 +2419,26 @@ const Hf = (e) => {
2419
2419
  Ne,
2420
2420
  {
2421
2421
  className: "h-60 gap-2 overflow-y-auto",
2422
- onDragOver: (M) => M.preventDefault(),
2423
- onDrop: (M) => z(M, "available"),
2424
- children: S.map((M, D) => {
2425
- const L = s.includes(M);
2422
+ onDragOver: (I) => I.preventDefault(),
2423
+ onDrop: (I) => z(I, "available"),
2424
+ children: S.map((I, D) => {
2425
+ const L = s.includes(I);
2426
2426
  return /* @__PURE__ */ a(
2427
2427
  "button",
2428
2428
  {
2429
2429
  type: "button",
2430
2430
  onClick: (O) => {
2431
- F(M, D, O.shiftKey);
2431
+ M(I, D, O.shiftKey);
2432
2432
  },
2433
2433
  onMouseDown: (O) => {
2434
2434
  O.shiftKey && O.preventDefault();
2435
2435
  },
2436
2436
  draggable: !0,
2437
- onDragStart: (O) => A(O, M, "available"),
2437
+ onDragStart: (O) => A(O, I, "available"),
2438
2438
  className: `rounded-md px-3 py-2 text-left text-sm transition ${L ? "bg-[#E4571E]/10 text-[#E4571E]" : "text-gray-700 hover:bg-gray-100"}`,
2439
- children: M
2439
+ children: I
2440
2440
  },
2441
- M
2441
+ I
2442
2442
  );
2443
2443
  })
2444
2444
  }
@@ -2504,26 +2504,26 @@ const Hf = (e) => {
2504
2504
  Ne,
2505
2505
  {
2506
2506
  className: "h-60 gap-2 overflow-y-auto",
2507
- onDragOver: (M) => M.preventDefault(),
2508
- onDrop: (M) => z(M, "selected"),
2509
- children: t.map((M, D) => {
2510
- const L = l.includes(M);
2507
+ onDragOver: (I) => I.preventDefault(),
2508
+ onDrop: (I) => z(I, "selected"),
2509
+ children: t.map((I, D) => {
2510
+ const L = l.includes(I);
2511
2511
  return /* @__PURE__ */ a(
2512
2512
  "button",
2513
2513
  {
2514
2514
  type: "button",
2515
2515
  onClick: (O) => {
2516
- T(M, D, O.shiftKey);
2516
+ T(I, D, O.shiftKey);
2517
2517
  },
2518
2518
  onMouseDown: (O) => {
2519
2519
  O.shiftKey && O.preventDefault();
2520
2520
  },
2521
2521
  draggable: !0,
2522
- onDragStart: (O) => A(O, M, "selected"),
2522
+ onDragStart: (O) => A(O, I, "selected"),
2523
2523
  className: `rounded-md px-3 py-2 text-left text-sm transition ${L ? "bg-[#E4571E]/10 text-[#E4571E]" : "text-gray-700 hover:bg-gray-100"}`,
2524
- children: M
2524
+ children: I
2525
2525
  },
2526
- M
2526
+ I
2527
2527
  );
2528
2528
  })
2529
2529
  }
@@ -2765,7 +2765,7 @@ function zo({ editor: e, levels: t = [1, 2, 3, 4, 5, 6], isDisabled: n = !1 }) {
2765
2765
  config: { type: "heading", level: l }
2766
2766
  });
2767
2767
  };
2768
- return /* @__PURE__ */ f(Fn, { placement: "top-start", offset: 10, children: [
2768
+ return /* @__PURE__ */ f(Mn, { placement: "top-start", offset: 10, children: [
2769
2769
  /* @__PURE__ */ a(Ln, { children: /* @__PURE__ */ a(
2770
2770
  W,
2771
2771
  {
@@ -2825,7 +2825,7 @@ function Ro({
2825
2825
  };
2826
2826
  }, [e]);
2827
2827
  const i = t.find((l) => e.isActive(l)), s = i ? an[i].icon : Bn;
2828
- return /* @__PURE__ */ f(Fn, { placement: "top-start", offset: 10, children: [
2828
+ return /* @__PURE__ */ f(Mn, { placement: "top-start", offset: 10, children: [
2829
2829
  /* @__PURE__ */ a(Ln, { children: /* @__PURE__ */ a(
2830
2830
  W,
2831
2831
  {
@@ -3285,7 +3285,7 @@ function si(e, t) {
3285
3285
  }
3286
3286
  }), s;
3287
3287
  }, [e, t]), [r, i] = H(n);
3288
- return Ie(() => {
3288
+ return Fe(() => {
3289
3289
  if (!e)
3290
3290
  return;
3291
3291
  const s = () => {
@@ -3420,7 +3420,7 @@ function Xo({
3420
3420
  }) {
3421
3421
  const l = si(e, t), { toggleModifier: c, executeCommand: d } = li(e, o);
3422
3422
  if (!e) return null;
3423
- const u = t.map((F) => Ct(F)), h = u.some((F) => ["bold", "italic", "strike", "underline", "code"].includes(F)), y = u.some((F) => ["textColor", "highlight"].includes(F)), m = u.includes("heading"), w = u.includes("textAlign"), S = u.some((F) => ["bulletList", "orderedList", "taskList"].includes(F)), g = u.includes("blockquote"), N = u.includes("codeBlock"), k = u.includes("link"), $ = u.includes("horizontalRule"), x = u.some((F) => ["undo", "redo"].includes(F)), v = n !== void 0 && r !== void 0;
3423
+ const u = t.map((M) => Ct(M)), h = u.some((M) => ["bold", "italic", "strike", "underline", "code"].includes(M)), y = u.some((M) => ["textColor", "highlight"].includes(M)), m = u.includes("heading"), w = u.includes("textAlign"), S = u.some((M) => ["bulletList", "orderedList", "taskList"].includes(M)), g = u.includes("blockquote"), N = u.includes("codeBlock"), k = u.includes("link"), $ = u.includes("horizontalRule"), x = u.some((M) => ["undo", "redo"].includes(M)), v = n !== void 0 && r !== void 0;
3424
3424
  return /* @__PURE__ */ a("div", { className: `w-full p-2 bg-background border-b border-divider ${i ? "sticky top-0 z-10" : ""} ${s || ""}`, children: /* @__PURE__ */ f("div", { className: "flex flex-row flex-wrap gap-2 w-full items-center", children: [
3425
3425
  h && /* @__PURE__ */ f(we, { children: [
3426
3426
  /* @__PURE__ */ a(
@@ -3461,21 +3461,21 @@ function Xo({
3461
3461
  (w || S || g || N || k || $ || x || v) && /* @__PURE__ */ a(Je, {})
3462
3462
  ] }),
3463
3463
  w && /* @__PURE__ */ f(we, { children: [
3464
- /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: ["left", "center", "right", "justify"].map((F) => {
3465
- const T = Ho[F], A = e.isActive({ textAlign: F });
3464
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: ["left", "center", "right", "justify"].map((M) => {
3465
+ const T = Ho[M], A = e.isActive({ textAlign: M });
3466
3466
  return /* @__PURE__ */ a(
3467
3467
  et,
3468
3468
  {
3469
3469
  icon: T,
3470
- label: `Align ${F}`,
3470
+ label: `Align ${M}`,
3471
3471
  isActive: A,
3472
3472
  onClick: () => d("textAlign", {
3473
3473
  type: "textAlign",
3474
3474
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3475
- alignment: F
3475
+ alignment: M
3476
3476
  })
3477
3477
  },
3478
- F
3478
+ M
3479
3479
  );
3480
3480
  }) }),
3481
3481
  (S || g || N || k || $ || x || v) && /* @__PURE__ */ a(Je, {})
@@ -3486,7 +3486,7 @@ function Xo({
3486
3486
  {
3487
3487
  editor: e,
3488
3488
  types: u.filter(
3489
- (F) => ["bulletList", "orderedList", "taskList"].includes(F)
3489
+ (M) => ["bulletList", "orderedList", "taskList"].includes(M)
3490
3490
  )
3491
3491
  }
3492
3492
  ),
@@ -3559,8 +3559,8 @@ function Xo({
3559
3559
  Wo,
3560
3560
  {
3561
3561
  zoom: n,
3562
- onZoomChange: (F) => {
3563
- r?.(F), o?.({ type: "zoom", modifier: `${F}%` });
3562
+ onZoomChange: (M) => {
3563
+ r?.(M), o?.({ type: "zoom", modifier: `${M}%` });
3564
3564
  }
3565
3565
  }
3566
3566
  )
@@ -3572,7 +3572,7 @@ const gt = {
3572
3572
  // ============================================================
3573
3573
  bold: {
3574
3574
  category: "mark",
3575
- extension: Fs,
3575
+ extension: Ms,
3576
3576
  priority: 100
3577
3577
  },
3578
3578
  italic: {
@@ -4056,7 +4056,7 @@ const ic = ({
4056
4056
  isDisabled: g = !1,
4057
4057
  includeInlineStyles: N = !0,
4058
4058
  ...k
4059
- } = e, { zoom: $, setZoom: x } = Ko(), v = zr.lineHeight, I = n * v, F = i ? void 0 : r * v, T = G.useMemo(() => ec(c), [c]), { Component: A, label: z, shouldLabelBeOutside: M, getBaseProps: D, getLabelProps: L, getInputWrapperProps: O } = Yi({
4059
+ } = e, { zoom: $, setZoom: x } = Ko(), v = zr.lineHeight, F = n * v, M = i ? void 0 : r * v, T = G.useMemo(() => ec(c), [c]), { Component: A, label: z, shouldLabelBeOutside: I, getBaseProps: D, getLabelProps: L, getInputWrapperProps: O } = Yi({
4060
4060
  ...k,
4061
4061
  variant: d,
4062
4062
  // Explicitly pass variant to ensure bordered styling
@@ -4082,18 +4082,18 @@ const ic = ({
4082
4082
  [y, m, k, N]
4083
4083
  );
4084
4084
  return /* @__PURE__ */ f(A, { ...D(), children: [
4085
- M ? Z : null,
4085
+ I ? Z : null,
4086
4086
  /* @__PURE__ */ a(
4087
4087
  "div",
4088
4088
  {
4089
4089
  ...O(),
4090
4090
  className: b(O().className, "flex flex-col w-full p-0 gap-0 rich-text-editor"),
4091
4091
  style: {
4092
- maxHeight: F ? `${F + zr.toolbarHeight}px` : void 0,
4093
- overflow: F ? "auto" : void 0
4092
+ maxHeight: M ? `${M + zr.toolbarHeight}px` : void 0,
4093
+ overflow: M ? "auto" : void 0
4094
4094
  },
4095
4095
  children: /* @__PURE__ */ a(
4096
- Ms,
4096
+ Is,
4097
4097
  {
4098
4098
  editable: !S && !g,
4099
4099
  slotBefore: l ? /* @__PURE__ */ a(
@@ -4109,7 +4109,7 @@ const ic = ({
4109
4109
  editorContainerProps: {
4110
4110
  className: "w-full flex-1 outline-none",
4111
4111
  style: {
4112
- minHeight: `${I}px`,
4112
+ minHeight: `${F}px`,
4113
4113
  fontSize: `${$}%`,
4114
4114
  display: "flex",
4115
4115
  flexDirection: "column"
@@ -4180,19 +4180,19 @@ const Vr = [
4180
4180
  className: k = "",
4181
4181
  showCard: $ = !0
4182
4182
  }) => {
4183
- const x = { ...cc, ...u }, v = Array.isArray(e) ? e : Vr, I = {
4183
+ const x = { ...cc, ...u }, v = Array.isArray(e) ? e : Vr, F = {
4184
4184
  2: "grid-cols-2",
4185
4185
  3: "grid-cols-3"
4186
- }, F = {
4186
+ }, M = {
4187
4187
  3: "sm:grid-cols-3",
4188
4188
  4: "sm:grid-cols-4",
4189
4189
  5: "sm:grid-cols-5",
4190
4190
  6: "sm:grid-cols-6"
4191
- }, T = `${I[h]} ${F[y]}`, [A, z] = Zn(
4191
+ }, T = `${F[h]} ${M[y]}`, [A, z] = Zn(
4192
4192
  t,
4193
4193
  n,
4194
4194
  r
4195
- ), [M, D] = H(""), [L, O] = H(!1), [Z, Y] = H(0), K = J(
4195
+ ), [I, D] = H(""), [L, O] = H(!1), [Z, Y] = H(0), K = J(
4196
4196
  (B) => {
4197
4197
  if (m) return;
4198
4198
  const q = {
@@ -4222,9 +4222,9 @@ const Vr = [
4222
4222
  [m, z, i]
4223
4223
  ), ie = J(() => {
4224
4224
  if (m) return;
4225
- const B = M !== "" ? parseFloat(M) : void 0;
4225
+ const B = I !== "" ? parseFloat(I) : void 0;
4226
4226
  B === void 0 || isNaN(B) || i?.({ amount: B, isCustom: !0 });
4227
- }, [m, M, i]), se = G.useMemo(
4227
+ }, [m, I, i]), se = G.useMemo(
4228
4228
  () => ({
4229
4229
  style: "currency",
4230
4230
  currency: s,
@@ -4267,7 +4267,7 @@ const Vr = [
4267
4267
  maxValue: d,
4268
4268
  step: 0.01,
4269
4269
  formatOptions: se,
4270
- value: M !== "" ? parseFloat(M) : void 0,
4270
+ value: I !== "" ? parseFloat(I) : void 0,
4271
4271
  onValueChange: te,
4272
4272
  isDisabled: m,
4273
4273
  className: "flex-1 [&_[data-slot=input-wrapper]]:!h-10 [&_[data-slot=input-wrapper]]:!min-h-10",
@@ -4349,19 +4349,19 @@ const uc = (e) => {
4349
4349
  Math.max(0, t),
4350
4350
  n
4351
4351
  ), N = ze(null), k = ze(!1);
4352
- Ie(() => () => {
4352
+ Fe(() => () => {
4353
4353
  N.current && clearInterval(N.current);
4354
- }, []), Ie(() => {
4354
+ }, []), Fe(() => {
4355
4355
  if (!u || S <= 0) {
4356
4356
  N.current && (clearInterval(N.current), N.current = null);
4357
4357
  return;
4358
4358
  }
4359
4359
  return N.current = setInterval(() => {
4360
- g((I) => I <= 1 ? (N.current && (clearInterval(N.current), N.current = null), k.current || (k.current = !0, r?.()), 0) : I - 1);
4360
+ g((F) => F <= 1 ? (N.current && (clearInterval(N.current), N.current = null), k.current || (k.current = !0, r?.()), 0) : F - 1);
4361
4361
  }, 1e3), () => {
4362
4362
  N.current && (clearInterval(N.current), N.current = null);
4363
4363
  };
4364
- }, [u, S, g, r]), Ie(() => {
4364
+ }, [u, S, g, r]), Fe(() => {
4365
4365
  S > 0 && (k.current = !1);
4366
4366
  }, [S]);
4367
4367
  const $ = c || fc(i), x = mc(s), v = {
@@ -4435,7 +4435,7 @@ const ln = ({
4435
4435
  }) => /* @__PURE__ */ f("div", { className: "flex items-center gap-2 text-sm text-gray-600", "data-testid": n, children: [
4436
4436
  /* @__PURE__ */ a(U, { icon: e, width: 20, className: "text-default-500" }),
4437
4437
  /* @__PURE__ */ a("span", { children: t })
4438
- ] }), qf = ({
4438
+ ] }), Wf = ({
4439
4439
  classes: e = "",
4440
4440
  name: t,
4441
4441
  imageUrl: n,
@@ -4450,7 +4450,7 @@ const ln = ({
4450
4450
  labels: h
4451
4451
  }) => {
4452
4452
  const [y, m] = H(!1), [w, S] = H(!1), g = ze(null);
4453
- return Ie(() => {
4453
+ return Fe(() => {
4454
4454
  const N = () => {
4455
4455
  if (g.current) {
4456
4456
  const k = g.current.scrollHeight > g.current.clientHeight;
@@ -4558,7 +4558,7 @@ function Br(e, t = "en-US", n = "USD") {
4558
4558
  return console.warn(`Invalid currency formatting: ${r}`), `${n} ${e.toFixed(2)}`;
4559
4559
  }
4560
4560
  }
4561
- function Wf(e) {
4561
+ function Yf(e) {
4562
4562
  const t = e.replace(/[^\d.,-]/g, ""), n = t.match(/,\d{1,2}$/);
4563
4563
  let r;
4564
4564
  n ? r = t.replace(/\./g, "").replace(",", ".") : r = t.replace(/,/g, "");
@@ -4596,13 +4596,13 @@ const pc = {
4596
4596
  compact: $ = !1,
4597
4597
  isSoldOut: x,
4598
4598
  isMaxReached: v,
4599
- isRuleBlocked: I,
4600
- statusTone: F = "default",
4599
+ isRuleBlocked: F,
4600
+ statusTone: M = "default",
4601
4601
  statusLabel: T,
4602
4602
  disabledReason: A,
4603
4603
  disabled: z
4604
4604
  }) => {
4605
- const M = oe(() => ({ ...pc, ...o }), [o]), [D, L] = H(n), O = t !== void 0 ? t : D, Z = !!(c || z), Y = $ || !!e.compact, K = oe(() => typeof x == "boolean" ? x : typeof e.isSoldOut == "boolean" ? e.isSoldOut : !st(e.totalTicketsSold) || !st(e.ticketsAllowed) ? !1 : e.totalTicketsSold >= e.ticketsAllowed, [x, e.isSoldOut, e.totalTicketsSold, e.ticketsAllowed]), te = oe(() => typeof v == "boolean" ? v : typeof e.isMaxReached == "boolean" ? e.isMaxReached : K || !st(e.ticketsAllowed) ? !1 : O >= e.ticketsAllowed - (e.totalTicketsSold ?? 0), [v, e.isMaxReached, K, e.ticketsAllowed, e.totalTicketsSold, O]), ie = oe(() => typeof I == "boolean" ? I : typeof e.isRuleBlocked == "boolean" ? e.isRuleBlocked : !1, [I, e.isRuleBlocked]), se = A || e.disabledReason, j = Z || K || ie, B = (ne) => {
4605
+ const I = oe(() => ({ ...pc, ...o }), [o]), [D, L] = H(n), O = t !== void 0 ? t : D, Z = !!(c || z), Y = $ || !!e.compact, K = oe(() => typeof x == "boolean" ? x : typeof e.isSoldOut == "boolean" ? e.isSoldOut : !st(e.totalTicketsSold) || !st(e.ticketsAllowed) ? !1 : e.totalTicketsSold >= e.ticketsAllowed, [x, e.isSoldOut, e.totalTicketsSold, e.ticketsAllowed]), te = oe(() => typeof v == "boolean" ? v : typeof e.isMaxReached == "boolean" ? e.isMaxReached : K || !st(e.ticketsAllowed) ? !1 : O >= e.ticketsAllowed - (e.totalTicketsSold ?? 0), [v, e.isMaxReached, K, e.ticketsAllowed, e.totalTicketsSold, O]), ie = oe(() => typeof F == "boolean" ? F : typeof e.isRuleBlocked == "boolean" ? e.isRuleBlocked : !1, [F, e.isRuleBlocked]), se = A || e.disabledReason, j = Z || K || ie, B = (ne) => {
4606
4606
  if (j || ne > 0 && te) return;
4607
4607
  const be = Math.max(0, O + ne);
4608
4608
  t === void 0 && L(be), r?.(e.id, be);
@@ -4613,15 +4613,15 @@ const pc = {
4613
4613
  return "ruleBlocked";
4614
4614
  if (Z)
4615
4615
  return "disabled";
4616
- }, [K, ie, Z]), X = oe(() => F || (K || ie ? "danger" : te ? "warning" : "default"), [F, K, ie, te]), ue = oe(() => {
4616
+ }, [K, ie, Z]), X = oe(() => M || (K || ie ? "danger" : te ? "warning" : "default"), [M, K, ie, te]), ue = oe(() => {
4617
4617
  if (q)
4618
- return q === "ruleBlocked" ? T || se || M.ruleBlocked : q === "soldOut" ? T || se || M.soldOut : q === "disabled" ? T || se || M.disabled : T || M.maxReached;
4619
- }, [q, T, se, M]), me = {
4618
+ return q === "ruleBlocked" ? T || se || I.ruleBlocked : q === "soldOut" ? T || se || I.soldOut : q === "disabled" ? T || se || I.disabled : T || I.maxReached;
4619
+ }, [q, T, se, I]), me = {
4620
4620
  soldOut: "danger",
4621
4621
  ruleBlocked: X,
4622
4622
  disabled: "default",
4623
4623
  maxReached: "warning"
4624
- }, Me = {
4624
+ }, Ie = {
4625
4625
  soldOut: "offer-card-sold-out-chip",
4626
4626
  maxReached: "offer-card-max-reached-chip",
4627
4627
  ruleBlocked: "offer-card-ruleBlocked-chip",
@@ -4709,7 +4709,7 @@ const pc = {
4709
4709
  ), je = () => {
4710
4710
  if (!m || !st(e.numberOfPeople) || e.numberOfPeople <= 0)
4711
4711
  return null;
4712
- const ne = e.numberOfPeople === 1 ? M.person : M.people;
4712
+ const ne = e.numberOfPeople === 1 ? I.person : I.people;
4713
4713
  return l?.renderPeopleCount ? l.renderPeopleCount(e.numberOfPeople, ne, e) : /* @__PURE__ */ f(
4714
4714
  "p",
4715
4715
  {
@@ -4775,7 +4775,7 @@ const pc = {
4775
4775
  }, qe = (ne, be) => l?.renderDisabledState ? l.renderDisabledState(ne, be) : ne === "soldOut" && l?.renderSoldOut ? l.renderSoldOut(be) : ne === "maxReached" && l?.renderMaxReachedAlert ? l.renderMaxReachedAlert(be) : /* @__PURE__ */ a(
4776
4776
  it,
4777
4777
  {
4778
- "data-testid": Me[ne],
4778
+ "data-testid": Ie[ne],
4779
4779
  color: me[ne],
4780
4780
  variant: ne === "maxReached" ? "flat" : "solid",
4781
4781
  className: b(
@@ -4843,7 +4843,7 @@ const pc = {
4843
4843
  animate: { opacity: 1, y: 0 },
4844
4844
  exit: { opacity: 0, y: 10 },
4845
4845
  transition: { duration: 0.3 },
4846
- children: qe("maxReached", ue || M.maxReached)
4846
+ children: qe("maxReached", ue || I.maxReached)
4847
4847
  }
4848
4848
  ) : null;
4849
4849
  return h ? /* @__PURE__ */ f(
@@ -5082,16 +5082,16 @@ const wc = {
5082
5082
  classNames: N = {}
5083
5083
  }) => {
5084
5084
  const [k, $] = H(r), x = n !== void 0 ? n : k, v = J(
5085
- (M, D) => {
5085
+ (I, D) => {
5086
5086
  const L = {
5087
5087
  ...x,
5088
- [M]: Math.max(0, D)
5088
+ [I]: Math.max(0, D)
5089
5089
  };
5090
- n === void 0 && $(L), i?.(L), s?.(M, L[M]);
5090
+ n === void 0 && $(L), i?.(L), s?.(I, L[I]);
5091
5091
  },
5092
5092
  [x, n, i, s]
5093
- ), I = [...e].sort((M, D) => (M.position ?? 0) - (D.position ?? 0)), F = (M) => {
5094
- const D = t ? t(M) : M, L = (x ?? {})[D.id] || 0;
5093
+ ), F = [...e].sort((I, D) => (I.position ?? 0) - (D.position ?? 0)), M = (I) => {
5094
+ const D = t ? t(I) : I, L = (x ?? {})[D.id] || 0;
5095
5095
  return {
5096
5096
  offer: D,
5097
5097
  quantity: L,
@@ -5106,8 +5106,8 @@ const wc = {
5106
5106
  showCard: m,
5107
5107
  compact: g
5108
5108
  };
5109
- }, T = kc[S], A = b("grid mx-auto pt-2", T, N.base), z = (M) => {
5110
- const D = F(M);
5109
+ }, T = kc[S], A = b("grid mx-auto pt-2", T, N.base), z = (I) => {
5110
+ const D = M(I);
5111
5111
  return /* @__PURE__ */ a(
5112
5112
  An,
5113
5113
  {
@@ -5136,8 +5136,8 @@ const wc = {
5136
5136
  variants: wc,
5137
5137
  initial: "hidden",
5138
5138
  animate: "show",
5139
- children: /* @__PURE__ */ a(xn, { children: I.map((M) => {
5140
- const D = F(M);
5139
+ children: /* @__PURE__ */ a(xn, { children: F.map((I) => {
5140
+ const D = M(I);
5141
5141
  return /* @__PURE__ */ a(
5142
5142
  Tt.div,
5143
5143
  {
@@ -5169,7 +5169,7 @@ const wc = {
5169
5169
  );
5170
5170
  }) })
5171
5171
  }
5172
- ) : /* @__PURE__ */ a("div", { "data-testid": "offer-card-list", className: A, children: I.map(z) });
5172
+ ) : /* @__PURE__ */ a("div", { "data-testid": "offer-card-list", className: A, children: F.map(z) });
5173
5173
  };
5174
5174
  Cc.displayName = "OfferCardList";
5175
5175
  var St = (e) => e.type === "checkbox", tt = (e) => e instanceof Date, Ee = (e) => e == null;
@@ -5197,7 +5197,7 @@ var Yt = (e) => /^\w*$/.test(e), de = (e) => e === void 0, Jn = (e) => Array.isA
5197
5197
  return n;
5198
5198
  const r = (Yt(t) ? [t] : er(t)).reduce((i, s) => Ee(i) ? i : i[s], e);
5199
5199
  return de(r) || r === e ? de(e[t]) ? n : e[t] : r;
5200
- }, Fe = (e) => typeof e == "boolean", Ae = (e) => typeof e == "function", le = (e, t, n) => {
5200
+ }, Me = (e) => typeof e == "boolean", Ae = (e) => typeof e == "function", le = (e, t, n) => {
5201
5201
  let r = -1;
5202
5202
  const i = Yt(t) ? [t] : er(t), s = i.length, o = s - 1;
5203
5203
  for (; ++r < s; ) {
@@ -5309,8 +5309,8 @@ function Dc(e) {
5309
5309
  if (!s) {
5310
5310
  const v = Dn(r, n._names, x || n._formValues, !1, c.current);
5311
5311
  if (d.current) {
5312
- const I = d.current(v);
5313
- _e(I, u.current) || (w(I), u.current = I);
5312
+ const F = d.current(v);
5313
+ _e(F, u.current) || (w(F), u.current = F);
5314
5314
  } else
5315
5315
  w(v);
5316
5316
  }
@@ -5346,7 +5346,7 @@ function Ec(e) {
5346
5346
  }), y = G.useRef(e), m = G.useRef(void 0), w = G.useRef(i.register(n, {
5347
5347
  ...e.rules,
5348
5348
  value: u,
5349
- ...Fe(e.disabled) ? { disabled: e.disabled } : {}
5349
+ ...Me(e.disabled) ? { disabled: e.disabled } : {}
5350
5350
  }));
5351
5351
  y.current = e;
5352
5352
  const S = G.useMemo(() => Object.defineProperties({}, {
@@ -5387,13 +5387,13 @@ function Ec(e) {
5387
5387
  v && v._f && x && (v._f.ref = {
5388
5388
  focus: () => Ae(x.focus) && x.focus(),
5389
5389
  select: () => Ae(x.select) && x.select(),
5390
- setCustomValidity: (I) => Ae(x.setCustomValidity) && x.setCustomValidity(I),
5390
+ setCustomValidity: (F) => Ae(x.setCustomValidity) && x.setCustomValidity(F),
5391
5391
  reportValidity: () => Ae(x.reportValidity) && x.reportValidity()
5392
5392
  });
5393
5393
  }, [i._fields, n]), $ = G.useMemo(() => ({
5394
5394
  name: n,
5395
5395
  value: u,
5396
- ...Fe(r) || h.disabled ? { disabled: h.disabled || r } : {},
5396
+ ...Me(r) || h.disabled ? { disabled: h.disabled || r } : {},
5397
5397
  onChange: g,
5398
5398
  onBlur: N,
5399
5399
  ref: k
@@ -5402,18 +5402,18 @@ function Ec(e) {
5402
5402
  const x = i._options.shouldUnregister || s, v = m.current;
5403
5403
  v && v !== n && !c && i.unregister(v), i.register(n, {
5404
5404
  ...y.current.rules,
5405
- ...Fe(y.current.disabled) ? { disabled: y.current.disabled } : {}
5405
+ ...Me(y.current.disabled) ? { disabled: y.current.disabled } : {}
5406
5406
  });
5407
- const I = (F, T) => {
5408
- const A = R(i._fields, F);
5407
+ const F = (M, T) => {
5408
+ const A = R(i._fields, M);
5409
5409
  A && A._f && (A._f.mount = T);
5410
5410
  };
5411
- if (I(n, !0), x) {
5412
- const F = he(R(i._options.defaultValues, n, y.current.defaultValue));
5413
- le(i._defaultValues, n, F), de(R(i._formValues, n)) && le(i._formValues, n, F);
5411
+ if (F(n, !0), x) {
5412
+ const M = he(R(i._options.defaultValues, n, y.current.defaultValue));
5413
+ le(i._defaultValues, n, M), de(R(i._formValues, n)) && le(i._formValues, n, M);
5414
5414
  }
5415
5415
  return !c && i.register(n), m.current = n, () => {
5416
- (c ? x && !i._state.action : x) ? i.unregister(n) : I(n, !1);
5416
+ (c ? x && !i._state.action : x) ? i.unregister(n) : F(n, !1);
5417
5417
  };
5418
5418
  }, [n, i, c, s]), G.useEffect(() => {
5419
5419
  i._setDisabledField({
@@ -5426,9 +5426,9 @@ function Ec(e) {
5426
5426
  fieldState: S
5427
5427
  }), [$, h, S]);
5428
5428
  }
5429
- const Ic = G.createContext(null);
5430
- Ic.displayName = "HookFormContext";
5431
- var Mc = (e, t, n, r, i) => t ? {
5429
+ const Fc = G.createContext(null);
5430
+ Fc.displayName = "HookFormContext";
5431
+ var Ic = (e, t, n, r, i) => t ? {
5432
5432
  ...n[e],
5433
5433
  types: {
5434
5434
  ...n[e] && n[e].types ? n[e].types : {},
@@ -5471,7 +5471,7 @@ var $e = (e) => ge(e) && !Object.keys(e).length, rr = (e) => e.type === "file",
5471
5471
  return !1;
5472
5472
  const t = e ? e.ownerDocument : 0;
5473
5473
  return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement);
5474
- }, hi = (e) => e.type === "select-multiple", ar = (e) => e.type === "radio", Fc = (e) => ar(e) || St(e), on = (e) => zt(e) && e.isConnected;
5474
+ }, hi = (e) => e.type === "select-multiple", ar = (e) => e.type === "radio", Mc = (e) => ar(e) || St(e), on = (e) => zt(e) && e.isConnected;
5475
5475
  function Lc(e, t) {
5476
5476
  const n = t.slice(0, -1).length;
5477
5477
  let r = 0;
@@ -5498,19 +5498,19 @@ var _c = (e) => {
5498
5498
  function pi(e) {
5499
5499
  return Array.isArray(e) || ge(e) && !_c(e);
5500
5500
  }
5501
- function In(e, t = {}) {
5501
+ function Fn(e, t = {}) {
5502
5502
  for (const n in e) {
5503
5503
  const r = e[n];
5504
- pi(r) ? (t[n] = Array.isArray(r) ? [] : {}, In(r, t[n])) : de(r) || (t[n] = !0);
5504
+ pi(r) ? (t[n] = Array.isArray(r) ? [] : {}, Fn(r, t[n])) : de(r) || (t[n] = !0);
5505
5505
  }
5506
5506
  return t;
5507
5507
  }
5508
5508
  function ct(e, t, n) {
5509
- n || (n = In(t));
5509
+ n || (n = Fn(t));
5510
5510
  for (const r in e) {
5511
5511
  const i = e[r];
5512
5512
  if (pi(i))
5513
- de(t) || En(n[r]) ? n[r] = In(i, Array.isArray(i) ? [] : {}) : ct(i, Ee(t) ? {} : t[r], n[r]);
5513
+ de(t) || En(n[r]) ? n[r] = Fn(i, Array.isArray(i) ? [] : {}) : ct(i, Ee(t) ? {} : t[r], n[r]);
5514
5514
  else {
5515
5515
  const s = t[r];
5516
5516
  n[r] = !_e(i, s);
@@ -5622,7 +5622,7 @@ var Rc = (e, t, n, r) => {
5622
5622
  return le(r, "root", t[n]), le(e, n, r), e;
5623
5623
  };
5624
5624
  function Zr(e, t, n = "validate") {
5625
- if (Le(e) || Array.isArray(e) && e.every(Le) || Fe(e) && !e)
5625
+ if (Le(e) || Array.isArray(e) && e.every(Le) || Me(e) && !e)
5626
5626
  return {
5627
5627
  type: n,
5628
5628
  message: Le(e) ? e : "",
@@ -5637,8 +5637,8 @@ var lt = (e) => ge(e) && !Rt(e) ? e : {
5637
5637
  if (!N || t.has(S))
5638
5638
  return {};
5639
5639
  const $ = l ? l[0] : o, x = (D) => {
5640
- i && $.reportValidity && ($.setCustomValidity(Fe(D) ? "" : D || ""), $.reportValidity());
5641
- }, v = {}, I = ar(o), F = St(o), T = I || F, A = (g || rr(o)) && de(o.value) && de(k) || zt(o) && o.value === "" || k === "" || Array.isArray(k) && !k.length, z = Mc.bind(null, S, r, v), M = (D, L, O, Z = Be.maxLength, Y = Be.minLength) => {
5640
+ i && $.reportValidity && ($.setCustomValidity(Me(D) ? "" : D || ""), $.reportValidity());
5641
+ }, v = {}, F = ar(o), M = St(o), T = F || M, A = (g || rr(o)) && de(o.value) && de(k) || zt(o) && o.value === "" || k === "" || Array.isArray(k) && !k.length, z = Ic.bind(null, S, r, v), I = (D, L, O, Z = Be.maxLength, Y = Be.minLength) => {
5642
5642
  const K = D ? L : O;
5643
5643
  v[S] = {
5644
5644
  type: D ? Z : Y,
@@ -5647,7 +5647,7 @@ var lt = (e) => ge(e) && !Rt(e) ? e : {
5647
5647
  ...z(D ? Z : Y, K)
5648
5648
  };
5649
5649
  };
5650
- if (s ? !Array.isArray(k) || !k.length : c && (!T && (A || Ee(k)) || Fe(k) && !k || F && !gi(l).isValid || I && !yi(l).isValid)) {
5650
+ if (s ? !Array.isArray(k) || !k.length : c && (!T && (A || Ee(k)) || Me(k) && !k || M && !gi(l).isValid || F && !yi(l).isValid)) {
5651
5651
  const { value: D, message: L } = Le(c) ? { value: !!c, message: c } : lt(c);
5652
5652
  if (D && (v[S] = {
5653
5653
  type: Be.required,
@@ -5667,12 +5667,12 @@ var lt = (e) => ge(e) && !Rt(e) ? e : {
5667
5667
  const Y = o.valueAsDate || new Date(k), K = (se) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + se), te = o.type == "time", ie = o.type == "week";
5668
5668
  Le(O.value) && k && (D = te ? K(k) > K(O.value) : ie ? k > O.value : Y > new Date(O.value)), Le(Z.value) && k && (L = te ? K(k) < K(Z.value) : ie ? k < Z.value : Y < new Date(Z.value));
5669
5669
  }
5670
- if ((D || L) && (M(!!D, O.message, Z.message, Be.max, Be.min), !r))
5670
+ if ((D || L) && (I(!!D, O.message, Z.message, Be.max, Be.min), !r))
5671
5671
  return x(v[S].message), v;
5672
5672
  }
5673
5673
  if ((d || u) && !A && (Le(k) || s && Array.isArray(k))) {
5674
5674
  const D = lt(d), L = lt(u), O = !Ee(D.value) && k.length > +D.value, Z = !Ee(L.value) && k.length < +L.value;
5675
- if ((O || Z) && (M(O, D.message, L.message), !r))
5675
+ if ((O || Z) && (I(O, D.message, L.message), !r))
5676
5676
  return x(v[S].message), v;
5677
5677
  }
5678
5678
  if (m && !A && Le(k)) {
@@ -5820,7 +5820,7 @@ function qc(e = {}) {
5820
5820
  const _ = R(s, p, de(E) ? R(i, p) : E);
5821
5821
  de(_) || V && V.defaultChecked || C ? le(s, p, C ? _ : Wr(P._f)) : Z(p, _), o.mount && !o.action && g();
5822
5822
  }
5823
- }, I = (p, C, E, V, P) => {
5823
+ }, F = (p, C, E, V, P) => {
5824
5824
  let _ = !1, Q = !1;
5825
5825
  const re = {
5826
5826
  name: p
@@ -5838,12 +5838,12 @@ function qc(e = {}) {
5838
5838
  _ && P && m.state.next(re);
5839
5839
  }
5840
5840
  return _ ? re : {};
5841
- }, F = (p, C, E, V) => {
5842
- const P = R(n.errors, p), _ = (h.isValid || y.isValid) && Fe(C) && n.isValid !== C;
5841
+ }, M = (p, C, E, V) => {
5842
+ const P = R(n.errors, p), _ = (h.isValid || y.isValid) && Me(C) && n.isValid !== C;
5843
5843
  if (t.delayError && E ? (c = S(() => $(p, E)), c(t.delayError)) : (clearTimeout(d), c = null, E ? le(n.errors, p, E) : pe(n.errors, p)), (E ? !_e(P, E) : P) || !$e(V) || _) {
5844
5844
  const Q = {
5845
5845
  ...V,
5846
- ..._ && Fe(C) ? { isValid: C } : {},
5846
+ ..._ && Me(C) ? { isValid: C } : {},
5847
5847
  errors: n.errors,
5848
5848
  name: p
5849
5849
  };
@@ -5881,7 +5881,7 @@ function qc(e = {}) {
5881
5881
  }
5882
5882
  }
5883
5883
  return E.valid;
5884
- }, M = () => {
5884
+ }, I = () => {
5885
5885
  for (const p of l.unMount) {
5886
5886
  const C = R(r, p);
5887
5887
  C && (C._f.refs ? C._f.refs.every((E) => !on(E)) : !on(C._f.ref)) && Ce(p);
@@ -5901,7 +5901,7 @@ function qc(e = {}) {
5901
5901
  values: he(s)
5902
5902
  })));
5903
5903
  }
5904
- (E.shouldDirty || E.shouldTouch) && I(p, P, E.shouldTouch, E.shouldDirty, !0), E.shouldValidate && se(p);
5904
+ (E.shouldDirty || E.shouldTouch) && F(p, P, E.shouldTouch, E.shouldDirty, !0), E.shouldValidate && se(p);
5905
5905
  }, Y = (p, C, E) => {
5906
5906
  for (const V in C) {
5907
5907
  if (!C.hasOwnProperty(V))
@@ -5937,7 +5937,7 @@ function qc(e = {}) {
5937
5937
  let ae, Se;
5938
5938
  const Xe = C.type ? Wr(P._f) : ci(p), We = p.type === Pt.BLUR || p.type === Pt.FOCUS_OUT, Ri = !zc(P._f) && !t.resolver && !R(n.errors, E) && !P._f.deps || Bc(We, R(n.touchedFields, E), n.isSubmitted, re, Q), Kt = Kr(E, l, We);
5939
5939
  le(s, E, Xe), We ? (!C || !C.readOnly) && (P._f.onBlur && P._f.onBlur(p), c && c(0)) : P._f.onChange && P._f.onChange(p);
5940
- const Qt = I(E, Xe, We), Vi = !$e(Qt) || Kt;
5940
+ const Qt = F(E, Xe, We), Vi = !$e(Qt) || Kt;
5941
5941
  if (!We && m.state.next({
5942
5942
  name: E,
5943
5943
  type: p.type,
@@ -5952,7 +5952,7 @@ function qc(e = {}) {
5952
5952
  }
5953
5953
  } else
5954
5954
  N([E], !0), ae = (await Xr(P, l.disabled, s, w, t.shouldUseNativeValidation))[E], N([E]), _(Xe), V && (ae ? Se = !1 : (h.isValid || y.isValid) && (Se = await z(r, !0)));
5955
- V && (P._f.deps && (!Array.isArray(P._f.deps) || P._f.deps.length > 0) && se(P._f.deps), F(E, Se, ae, Qt));
5955
+ V && (P._f.deps && (!Array.isArray(P._f.deps) || P._f.deps.length > 0) && se(P._f.deps), M(E, Se, ae, Qt));
5956
5956
  }
5957
5957
  }, ie = (p, C) => {
5958
5958
  if (R(n.errors, C) && p.focus)
@@ -6009,7 +6009,7 @@ function qc(e = {}) {
6009
6009
  defaultValues: i
6010
6010
  });
6011
6011
  }
6012
- }).unsubscribe, Me = (p) => (o.mount = !0, y = {
6012
+ }).unsubscribe, Ie = (p) => (o.mount = !0, y = {
6013
6013
  ...y,
6014
6014
  ...p.formState
6015
6015
  }, me({
@@ -6028,13 +6028,13 @@ function qc(e = {}) {
6028
6028
  ...C.keepDirty ? { isDirty: D() } : {}
6029
6029
  }), !C.keepIsValid && g();
6030
6030
  }, xe = ({ disabled: p, name: C }) => {
6031
- if (Fe(p) && o.mount || p || l.disabled.has(C)) {
6031
+ if (Me(p) && o.mount || p || l.disabled.has(C)) {
6032
6032
  const P = l.disabled.has(C) !== !!p;
6033
6033
  p ? l.disabled.add(C) : l.disabled.delete(C), P && o.mount && !o.action && g();
6034
6034
  }
6035
6035
  }, Qe = (p, C = {}) => {
6036
6036
  let E = R(r, p);
6037
- const V = Fe(C.disabled) || Fe(t.disabled);
6037
+ const V = Me(C.disabled) || Me(t.disabled);
6038
6038
  return le(r, p, {
6039
6039
  ...E || {},
6040
6040
  _f: {
@@ -6044,7 +6044,7 @@ function qc(e = {}) {
6044
6044
  ...C
6045
6045
  }
6046
6046
  }), l.mount.add(p), E ? xe({
6047
- disabled: Fe(C.disabled) ? C.disabled : t.disabled,
6047
+ disabled: Me(C.disabled) ? C.disabled : t.disabled,
6048
6048
  name: p
6049
6049
  }) : v(p, !0, C.value), {
6050
6050
  ...V ? { disabled: C.disabled || t.disabled } : {},
@@ -6062,7 +6062,7 @@ function qc(e = {}) {
6062
6062
  ref: (P) => {
6063
6063
  if (P) {
6064
6064
  Qe(p, C), E = R(r, p);
6065
- const _ = de(P.value) && P.querySelectorAll && P.querySelectorAll("input,select,textarea")[0] || P, Q = Fc(_), re = E._f.refs || [];
6065
+ const _ = de(P.value) && P.querySelectorAll && P.querySelectorAll("input,select,textarea")[0] || P, Q = Mc(_), re = E._f.refs || [];
6066
6066
  if (Q ? re.find((ae) => ae === _) : _ === E._f.ref)
6067
6067
  return;
6068
6068
  le(r, p, {
@@ -6083,7 +6083,7 @@ function qc(e = {}) {
6083
6083
  }
6084
6084
  };
6085
6085
  }, je = () => t.shouldFocusError && wt(r, ie, l.mount), He = (p) => {
6086
- Fe(p) && (m.state.next({ disabled: p }), wt(r, (C, E) => {
6086
+ Me(p) && (m.state.next({ disabled: p }), wt(r, (C, E) => {
6087
6087
  const V = R(r, E);
6088
6088
  V && (C.disabled = V._f.disabled || p, Array.isArray(V._f.refs) && V._f.refs.forEach((P) => {
6089
6089
  P.disabled = V._f.disabled || p;
@@ -6219,7 +6219,7 @@ function qc(e = {}) {
6219
6219
  isLoading: !1
6220
6220
  });
6221
6221
  }),
6222
- _removeUnmounted: M,
6222
+ _removeUnmounted: I,
6223
6223
  _disableForm: He,
6224
6224
  _subjects: m,
6225
6225
  _proxyFormState: h,
@@ -6257,7 +6257,7 @@ function qc(e = {}) {
6257
6257
  };
6258
6258
  }
6259
6259
  },
6260
- subscribe: Me,
6260
+ subscribe: Ie,
6261
6261
  trigger: se,
6262
6262
  register: Qe,
6263
6263
  handleSubmit: qe,
@@ -6344,10 +6344,10 @@ function Wc(e = {}) {
6344
6344
  s._state.mount || (s._setValid(), s._state.mount = !0), s._state.watch && (s._state.watch = !1, s._subjects.state.next({ ...s._formState })), s._removeUnmounted();
6345
6345
  }), t.current.formState = G.useMemo(() => fi(r, s), [s, r]), t.current;
6346
6346
  }
6347
- function Yf(e, t = 3) {
6347
+ function Gf(e, t = 3) {
6348
6348
  return e % 1 === 0 ? e.toString() : e.toFixed(t).replace(/\.?0+$/, "");
6349
6349
  }
6350
- function Gf(e, t = "en-US", n = "USD") {
6350
+ function Kf(e, t = "en-US", n = "USD") {
6351
6351
  try {
6352
6352
  return new Intl.NumberFormat(t, {
6353
6353
  style: "currency",
@@ -6359,7 +6359,7 @@ function Gf(e, t = "en-US", n = "USD") {
6359
6359
  return console.warn(`Invalid currency formatting: ${r}`), `${n} ${e.toFixed(2)}`;
6360
6360
  }
6361
6361
  }
6362
- function Kf(e = "USD", t = "en-US") {
6362
+ function Qf(e = "USD", t = "en-US") {
6363
6363
  try {
6364
6364
  return new Intl.NumberFormat(t, {
6365
6365
  style: "currency",
@@ -6369,14 +6369,14 @@ function Kf(e = "USD", t = "en-US") {
6369
6369
  return "$";
6370
6370
  }
6371
6371
  }
6372
- function Qf(e) {
6372
+ function Zf(e) {
6373
6373
  const t = e.replace(/[^\d.,-]/g, ""), n = t.match(/,\d{1,2}$/);
6374
6374
  let r;
6375
6375
  n ? r = t.replace(/\./g, "").replace(",", ".") : r = t.replace(/,/g, "");
6376
6376
  const i = parseFloat(r);
6377
6377
  return isNaN(i) ? null : i;
6378
6378
  }
6379
- function Zf(e, t, n = 1e-3) {
6379
+ function Xf(e, t, n = 1e-3) {
6380
6380
  const r = e - t, i = Math.abs(r) <= n;
6381
6381
  return {
6382
6382
  difference: r,
@@ -6431,18 +6431,18 @@ const Yc = {
6431
6431
  }) => {
6432
6432
  const $ = { ...Yc, ...m }, x = g !== void 0 && N !== void 0, v = Wc({
6433
6433
  defaultValues: { _internal: t || cn() }
6434
- }), I = Ec({
6434
+ }), F = Ec({
6435
6435
  control: x ? g : v.control,
6436
6436
  name: x ? N : "_internal",
6437
6437
  rules: x ? k : void 0
6438
- }), [F, T] = H(
6438
+ }), [M, T] = H(
6439
6439
  t || cn()
6440
- ), A = x ? I.field.value ?? cn() : e ?? F, z = x && !!I.fieldState?.error, M = x && (I.fieldState?.isTouched ?? !1), D = z || M, L = D && (!A.amount || A.amount <= 0), O = D && !A.glAccount, [Z, Y] = H(A.glAccount?.name || ""), K = J(
6440
+ ), A = x ? F.field.value ?? cn() : e ?? M, z = x && !!F.fieldState?.error, I = x && (F.fieldState?.isTouched ?? !1), D = z || I, L = D && (!A.amount || A.amount <= 0), O = D && !A.glAccount, [Z, Y] = H(A.glAccount?.name || ""), K = J(
6441
6441
  (X) => {
6442
6442
  const ue = { ...A, ...X };
6443
- x && I.field.onChange(ue), !x && e === void 0 && T(ue), s?.(ue);
6443
+ x && F.field.onChange(ue), !x && e === void 0 && T(ue), s?.(ue);
6444
6444
  },
6445
- [A, e, s, x, I]
6445
+ [A, e, s, x, F]
6446
6446
  ), te = J(
6447
6447
  (X) => {
6448
6448
  const ue = X || 0;
@@ -6460,7 +6460,7 @@ const Yc = {
6460
6460
  K({ glAccount: null }), l?.(null);
6461
6461
  return;
6462
6462
  }
6463
- const me = n.find((Me) => String(Me.id) === String(X)) || null;
6463
+ const me = n.find((Ie) => String(Ie.id) === String(X)) || null;
6464
6464
  K({ glAccount: me }), l?.(me);
6465
6465
  },
6466
6466
  [n, K, l]
@@ -6752,14 +6752,14 @@ const Jc = () => ({
6752
6752
  fund: null,
6753
6753
  percentage: 0
6754
6754
  });
6755
- function Mn(e) {
6755
+ function In(e) {
6756
6756
  return !e.fund && Number(e.percentage || 0) <= 0;
6757
6757
  }
6758
6758
  function ed({
6759
6759
  mode: e,
6760
6760
  assignments: t
6761
6761
  }) {
6762
- const n = t.filter((o) => !Mn(o)), r = n.filter((o) => o.fund), i = r.reduce(
6762
+ const n = t.filter((o) => !In(o)), r = n.filter((o) => o.fund), i = r.reduce(
6763
6763
  (o, l) => o + Number(l.percentage || 0),
6764
6764
  0
6765
6765
  ), s = n.some(
@@ -6872,7 +6872,7 @@ function ad() {
6872
6872
  );
6873
6873
  }
6874
6874
  const id = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, Math.round(e * 100) / 100)) : 0, sd = (e) => e.fund !== null;
6875
- function Xf({
6875
+ function Jf({
6876
6876
  assignments: e,
6877
6877
  funds: t,
6878
6878
  labels: n,
@@ -6888,12 +6888,12 @@ function Xf({
6888
6888
  onCollapseChange: y,
6889
6889
  onSave: m
6890
6890
  }) {
6891
- const [w, S] = H(null), g = { ...td, ...n }, N = e.filter((B) => !Mn(B)), $ = N.filter(sd).length > 0, x = oe(
6892
- () => e.filter((B) => !Mn(B)).reduce((B, q) => B + Number(q.percentage || 0), 0),
6891
+ const [w, S] = H(null), g = { ...td, ...n }, N = e.filter((B) => !In(B)), $ = N.filter(sd).length > 0, x = oe(
6892
+ () => e.filter((B) => !In(B)).reduce((B, q) => B + Number(q.percentage || 0), 0),
6893
6893
  [e]
6894
- ), v = Math.round(x * 100) / 100, I = N.some(
6894
+ ), v = Math.round(x * 100) / 100, F = N.some(
6895
6895
  (B) => !B.fund || Number(B.percentage || 0) <= 0
6896
- ), F = $ && (v !== 100 || I), T = `${g.totalError} (${g.total} ${Number(x.toFixed(2))}%)`, A = ed({ mode: "split", assignments: e }), z = $ && v >= 100, [M, D] = H(!1), [L, O] = H(!1), Z = /* @__PURE__ */ f("span", { className: "flex items-center gap-2", children: [
6896
+ ), M = $ && (v !== 100 || F), T = `${g.totalError} (${g.total} ${Number(x.toFixed(2))}%)`, A = ed({ mode: "split", assignments: e }), z = $ && v >= 100, [I, D] = H(!1), [L, O] = H(!1), Z = /* @__PURE__ */ f("span", { className: "flex items-center gap-2", children: [
6897
6897
  /* @__PURE__ */ a(ad, {}),
6898
6898
  /* @__PURE__ */ a("span", { className: "text-base font-medium leading-6 text-zinc-950", children: g.title })
6899
6899
  ] }), Y = (B, q) => {
@@ -6972,7 +6972,7 @@ function Xf({
6972
6972
  assignments: e,
6973
6973
  labels: g,
6974
6974
  total: x,
6975
- hasTotalError: L && !A || F,
6975
+ hasTotalError: L && !A || M,
6976
6976
  validationMessage: T,
6977
6977
  onSelectFund: (B) => u(B),
6978
6978
  onRemoveFund: te,
@@ -7028,7 +7028,7 @@ function Xf({
7028
7028
  /* @__PURE__ */ a(
7029
7029
  ir,
7030
7030
  {
7031
- isOpen: M,
7031
+ isOpen: I,
7032
7032
  labels: {
7033
7033
  title: g.modifyAssignedFundsTitle,
7034
7034
  description: /* @__PURE__ */ f(we, { children: [
@@ -7264,7 +7264,7 @@ function od({
7264
7264
  }
7265
7265
  );
7266
7266
  }
7267
- function Jf() {
7267
+ function em() {
7268
7268
  return /* @__PURE__ */ f(
7269
7269
  "section",
7270
7270
  {
@@ -7293,7 +7293,7 @@ const cd = {
7293
7293
  remainingBalance: "Remaining Balance",
7294
7294
  amountReceived: "Amount Received:"
7295
7295
  };
7296
- function em({
7296
+ function tm({
7297
7297
  totalAmount: e,
7298
7298
  remainingBalance: t,
7299
7299
  amountReceived: n,
@@ -7432,7 +7432,7 @@ const bd = {
7432
7432
  const t = e % 100 >= 11 && e % 100 <= 13 ? "th" : e % 10 === 1 ? "st" : e % 10 === 2 ? "nd" : e % 10 === 3 ? "rd" : "th";
7433
7433
  return `${e}${t}`;
7434
7434
  };
7435
- function tm({
7435
+ function nm({
7436
7436
  mode: e,
7437
7437
  donationAmount: t,
7438
7438
  currency: n = "USD",
@@ -7455,7 +7455,7 @@ function tm({
7455
7455
  onInstallmentsChange: $,
7456
7456
  onSave: x
7457
7457
  }) {
7458
- const [v, I] = H(null), [F, T] = H(o), A = { ...bd, ...m }, z = e ?? F, M = oe(
7458
+ const [v, F] = H(null), [M, T] = H(o), A = { ...bd, ...m }, z = e ?? M, I = oe(
7459
7459
  () => new Intl.NumberFormat(r, { style: "currency", currency: n }),
7460
7460
  [n, r]
7461
7461
  ), D = oe(
@@ -7465,16 +7465,16 @@ function tm({
7465
7465
  }),
7466
7466
  [s, h, y]
7467
7467
  ), L = z === "automatic" ? pd(t, D) : i, O = oe(
7468
- () => Ni(L.reduce((me, Me) => me + Number(Me.amount || 0), 0)),
7468
+ () => Ni(L.reduce((me, Ie) => me + Number(Ie.amount || 0), 0)),
7469
7469
  [L]
7470
7470
  ), Z = z === "manual" && O - t > 9e-3, [Y, K] = H(!1), te = l ? /* @__PURE__ */ f("span", { className: "flex items-center gap-2", children: [
7471
7471
  /* @__PURE__ */ a(Na, { className: "size-4 text-zinc-500", strokeWidth: 1.75 }),
7472
7472
  /* @__PURE__ */ a("span", { className: "text-base font-medium leading-6 text-zinc-950", children: A.title })
7473
7473
  ] }) : void 0, ie = (me) => {
7474
7474
  me !== z && (e || T(me), N?.(me), me === "manual" && i.length === 0 && $([Jr()]));
7475
- }, se = (me, Me) => {
7475
+ }, se = (me, Ie) => {
7476
7476
  i.find((xe) => xe.id === me)?.status !== "paid" && $(
7477
- i.map((xe) => xe.id === me ? { ...xe, ...Me } : xe)
7477
+ i.map((xe) => xe.id === me ? { ...xe, ...Ie } : xe)
7478
7478
  );
7479
7479
  }, j = () => {
7480
7480
  $([...i, Jr()]);
@@ -7544,7 +7544,7 @@ function tm({
7544
7544
  mode: z,
7545
7545
  installments: L,
7546
7546
  labels: A,
7547
- formatter: M,
7547
+ formatter: I,
7548
7548
  locale: r,
7549
7549
  onUpdateInstallment: se,
7550
7550
  onRemoveInstallment: B
@@ -7564,14 +7564,14 @@ function tm({
7564
7564
  }
7565
7565
  ) }),
7566
7566
  /* @__PURE__ */ a(
7567
- Id,
7567
+ Fd,
7568
7568
  {
7569
7569
  total: O,
7570
7570
  donationAmount: t,
7571
7571
  hasTotalIncreaseWarning: Z,
7572
7572
  mode: z,
7573
7573
  installments: L,
7574
- formatter: M,
7574
+ formatter: I,
7575
7575
  labels: A,
7576
7576
  className: w?.summary
7577
7577
  }
@@ -7581,7 +7581,7 @@ function tm({
7581
7581
  return /* @__PURE__ */ f(
7582
7582
  "div",
7583
7583
  {
7584
- ref: I,
7584
+ ref: F,
7585
7585
  className: b("vvt-ps relative font-sans text-zinc-900", w?.root),
7586
7586
  children: [
7587
7587
  c ? /* @__PURE__ */ a(
@@ -7864,7 +7864,7 @@ function Ed({
7864
7864
  );
7865
7865
  return t ? /* @__PURE__ */ a(Pe, { content: "This payment cannot be edited or deleted because it has already been paid.", placement: "top", children: /* @__PURE__ */ a("span", { className: "inline-flex", children: i }) }) : i;
7866
7866
  }
7867
- function Id({
7867
+ function Fd({
7868
7868
  total: e,
7869
7869
  donationAmount: t,
7870
7870
  hasTotalIncreaseWarning: n,
@@ -7912,7 +7912,7 @@ function Id({
7912
7912
  }
7913
7913
  );
7914
7914
  }
7915
- function nm() {
7915
+ function rm() {
7916
7916
  return /* @__PURE__ */ f(
7917
7917
  "section",
7918
7918
  {
@@ -7967,7 +7967,7 @@ const ta = {
7967
7967
  refunded: "Refunded",
7968
7968
  disputed: "Disputed",
7969
7969
  canceled: "Canceled"
7970
- }, Md = {
7970
+ }, Id = {
7971
7971
  title: "Payments",
7972
7972
  searchLabel: "Search a payment",
7973
7973
  searchPlaceholder: "Search a payment by ID or Date...",
@@ -7991,11 +7991,11 @@ const ta = {
7991
7991
  deleteInstallmentConfirmationCancel: "Cancel",
7992
7992
  deleteInstallmentConfirmationConfirm: "Confirm",
7993
7993
  noInstallmentsFound: "No payments found."
7994
- }, Fd = {
7994
+ }, Md = {
7995
7995
  wrapper: "!absolute !inset-0 !z-50 !items-center !justify-center !p-4",
7996
7996
  backdrop: "!absolute !inset-0 !z-40 rounded-2xl"
7997
7997
  };
7998
- function rm({
7998
+ function am({
7999
7999
  installments: e,
8000
8000
  currency: t,
8001
8001
  locale: n = "en-US",
@@ -8008,20 +8008,20 @@ function rm({
8008
8008
  onPayInstallment: d,
8009
8009
  onDeleteInstallment: u
8010
8010
  }) {
8011
- const [h, y] = H(null), m = { ...Md, ...o }, [w, S] = H(""), g = new Intl.NumberFormat(n, { style: "currency", currency: t }), N = r ? /* @__PURE__ */ f("span", { className: "flex items-center gap-2", children: [
8011
+ const [h, y] = H(null), m = { ...Id, ...o }, [w, S] = H(""), g = new Intl.NumberFormat(n, { style: "currency", currency: t }), N = r ? /* @__PURE__ */ f("span", { className: "flex items-center gap-2", children: [
8012
8012
  /* @__PURE__ */ a(Na, { className: "size-4 text-zinc-500", strokeWidth: 1.75 }),
8013
8013
  /* @__PURE__ */ a("span", { className: "text-base font-medium leading-6 text-zinc-950", children: m.title })
8014
8014
  ] }) : void 0, k = oe(() => {
8015
8015
  const x = w.trim().toLowerCase();
8016
8016
  return x ? e.filter((v) => {
8017
- const I = v.status ?? "schedule";
8017
+ const F = v.status ?? "schedule";
8018
8018
  return [
8019
8019
  v.id,
8020
8020
  v.amount,
8021
8021
  v.dueDate,
8022
8022
  un(v.dueDate, n),
8023
- I,
8024
- ki[I] ?? I
8023
+ F,
8024
+ ki[F] ?? F
8025
8025
  ].join(" ").toLowerCase().includes(x);
8026
8026
  }) : e;
8027
8027
  }, [n, e, w]), $ = /* @__PURE__ */ f("div", { className: "flex min-w-0 w-full flex-col gap-4 overflow-x-hidden [container-type:inline-size]", children: [
@@ -8070,7 +8070,7 @@ function rm({
8070
8070
  ),
8071
8071
  children: /* @__PURE__ */ f("div", { className: "flex flex-col gap-2", children: [
8072
8072
  k.map((x, v) => {
8073
- const I = x.status ?? "schedule";
8073
+ const F = x.status ?? "schedule";
8074
8074
  return /* @__PURE__ */ a(ye, { radius: "lg", shadow: "none", className: "border border-default-200", children: /* @__PURE__ */ f(Ne, { className: "gap-3 p-3", children: [
8075
8075
  /* @__PURE__ */ f("div", { className: "flex items-start justify-between gap-2", children: [
8076
8076
  /* @__PURE__ */ f("div", { className: "min-w-0", children: [
@@ -8080,7 +8080,7 @@ function rm({
8080
8080
  ] }),
8081
8081
  /* @__PURE__ */ a("p", { className: "truncate text-sm font-medium text-foreground", children: x.id || `PMT-${v + 1}` })
8082
8082
  ] }),
8083
- /* @__PURE__ */ a(na, { status: I })
8083
+ /* @__PURE__ */ a(na, { status: F })
8084
8084
  ] }),
8085
8085
  /* @__PURE__ */ f("div", { className: "grid grid-cols-2 gap-2 text-sm", children: [
8086
8086
  /* @__PURE__ */ f("div", { children: [
@@ -8095,7 +8095,7 @@ function rm({
8095
8095
  /* @__PURE__ */ a(
8096
8096
  ra,
8097
8097
  {
8098
- status: I,
8098
+ status: F,
8099
8099
  installment: x,
8100
8100
  labels: m,
8101
8101
  portalContainer: h ?? void 0,
@@ -8135,17 +8135,17 @@ function rm({
8135
8135
  ] }) }),
8136
8136
  /* @__PURE__ */ f("tbody", { children: [
8137
8137
  k.map((x, v) => {
8138
- const I = x.status ?? "schedule";
8138
+ const F = x.status ?? "schedule";
8139
8139
  return /* @__PURE__ */ f("tr", { className: "text-zinc-500", children: [
8140
8140
  /* @__PURE__ */ a("td", { className: "px-2 py-3", children: v + 1 }),
8141
8141
  /* @__PURE__ */ a("td", { className: "overflow-hidden px-2 py-3", children: /* @__PURE__ */ a("span", { className: "block w-full truncate", children: x.id || `PMT-${v + 1}` }) }),
8142
8142
  /* @__PURE__ */ a("td", { className: "px-2 py-3", children: g.format(x.amount) }),
8143
8143
  /* @__PURE__ */ a("td", { className: "px-2 py-3", children: un(x.dueDate, n) }),
8144
- /* @__PURE__ */ a("td", { className: "whitespace-nowrap px-2 py-3", children: /* @__PURE__ */ a(na, { status: I }) }),
8144
+ /* @__PURE__ */ a("td", { className: "whitespace-nowrap px-2 py-3", children: /* @__PURE__ */ a(na, { status: F }) }),
8145
8145
  /* @__PURE__ */ a("td", { className: "whitespace-nowrap py-3 pl-4 pr-2", children: /* @__PURE__ */ a(
8146
8146
  ra,
8147
8147
  {
8148
- status: I,
8148
+ status: F,
8149
8149
  installment: x,
8150
8150
  labels: m,
8151
8151
  portalContainer: h ?? void 0,
@@ -8256,7 +8256,7 @@ function Ld({
8256
8256
  }) {
8257
8257
  const [i, s] = H(!1);
8258
8258
  return /* @__PURE__ */ f(we, { children: [
8259
- /* @__PURE__ */ f(Fn, { placement: "bottom-end", radius: "lg", children: [
8259
+ /* @__PURE__ */ f(Mn, { placement: "bottom-end", radius: "lg", children: [
8260
8260
  /* @__PURE__ */ a(Ln, { children: /* @__PURE__ */ a(
8261
8261
  W,
8262
8262
  {
@@ -8319,7 +8319,7 @@ function Ld({
8319
8319
  confirmColor: "danger",
8320
8320
  portalContainer: n,
8321
8321
  shouldBlockScroll: !1,
8322
- classNames: Fd,
8322
+ classNames: Md,
8323
8323
  onClose: () => s(!1),
8324
8324
  onConfirm: () => {
8325
8325
  s(!1), r();
@@ -8343,7 +8343,7 @@ const _d = {
8343
8343
  title: "Select Membership",
8344
8344
  renewalTitle: "Automatic Renewal",
8345
8345
  renewalDescription: "Membership will automatically renew at the end of each period"
8346
- }, am = ({
8346
+ }, im = ({
8347
8347
  cards: e,
8348
8348
  locale: t,
8349
8349
  currency: n,
@@ -8358,7 +8358,7 @@ const _d = {
8358
8358
  className: h = ""
8359
8359
  }) => {
8360
8360
  const y = Array.isArray(e) ? e : [], [m, w] = H(l), [S, g] = H(o), N = { ..._d, ...i };
8361
- Ie(() => {
8361
+ Fe(() => {
8362
8362
  w(l);
8363
8363
  }, [l]);
8364
8364
  const k = (x) => {
@@ -8503,7 +8503,7 @@ const _d = {
8503
8503
  footerClassName: N = "",
8504
8504
  dataTestId: k
8505
8505
  }) => {
8506
- const $ = !!(c && c.value), x = !!d?.label, v = y && !!h && !x, I = !v, F = x ? {
8506
+ const $ = !!(c && c.value), x = !!d?.label, v = y && !!h && !x, F = !v, M = x ? {
8507
8507
  variant: d?.variant ?? ia.variant,
8508
8508
  color: d?.color ?? ia.color,
8509
8509
  size: d?.size ?? "sm",
@@ -8582,16 +8582,16 @@ const _d = {
8582
8582
  ]
8583
8583
  }
8584
8584
  ) : /* @__PURE__ */ a("span", { className: "ml-auto", "aria-hidden": !0 }),
8585
- x && I ? /* @__PURE__ */ a(
8585
+ x && F ? /* @__PURE__ */ a(
8586
8586
  W,
8587
8587
  {
8588
8588
  className: b("rounded-full", d?.className),
8589
8589
  onPress: d?.onPress,
8590
- variant: F?.variant,
8591
- color: F?.color,
8592
- size: F?.size,
8593
- startContent: F?.startContent,
8594
- isDisabled: F?.isDisabled,
8590
+ variant: M?.variant,
8591
+ color: M?.color,
8592
+ size: M?.size,
8593
+ startContent: M?.startContent,
8594
+ isDisabled: M?.isDisabled,
8595
8595
  "aria-label": d?.ariaLabel || d?.label,
8596
8596
  children: d?.label
8597
8597
  }
@@ -8822,8 +8822,8 @@ const qd = ({ title: e, value: t, description: n, onValueChange: r, className: i
8822
8822
  r?.(t);
8823
8823
  return;
8824
8824
  }
8825
- const I = Math.max(t, Math.min(n, v));
8826
- I !== v ? r?.(I) : l(String(I));
8825
+ const F = Math.max(t, Math.min(n, v));
8826
+ F !== v ? r?.(F) : l(String(F));
8827
8827
  }, S = s <= t, g = s >= n, N = "w-10 h-10 flex items-center justify-center border-0 rounded-full cursor-pointer transition-colors duration-150 text-white text-2xl font-regular", k = "bg-primary hover:bg-primary/80", $ = "bg-primary/40 cursor-not-allowed";
8828
8828
  return /* @__PURE__ */ f("div", { className: "flex items-center gap-4", "data-testid": "quantity-selector", children: [
8829
8829
  /* @__PURE__ */ a(
@@ -9131,7 +9131,7 @@ const qd = ({ title: e, value: t, description: n, onValueChange: r, className: i
9131
9131
  }
9132
9132
  )
9133
9133
  ] });
9134
- }, im = ({
9134
+ }, sm = ({
9135
9135
  initialExpanded: e = !1,
9136
9136
  userMaxLimit: t,
9137
9137
  labels: n,
@@ -9148,8 +9148,8 @@ const qd = ({ title: e, value: t, description: n, onValueChange: r, className: i
9148
9148
  );
9149
9149
  return new Map(k);
9150
9150
  }, [l]), m = Kd(l, d, t), w = (k, $, x) => d[k]?.[$]?.[x]?.selectedQuantity ?? 0, S = () => Ai(d), g = (k, $, x, v) => {
9151
- const I = w(k, $, x), F = S() - I;
9152
- if (t !== void 0 && F + v > t) return;
9151
+ const F = w(k, $, x), M = S() - F;
9152
+ if (t !== void 0 && M + v > t) return;
9153
9153
  const T = y.get(la(k, $, x));
9154
9154
  if (!T) return;
9155
9155
  const A = {
@@ -9172,7 +9172,7 @@ const qd = ({ title: e, value: t, description: n, onValueChange: r, className: i
9172
9172
  const $ = sa(l, t, k);
9173
9173
  u($), o?.($);
9174
9174
  };
9175
- return Ie(() => {
9175
+ return Fe(() => {
9176
9176
  !h.current && m && (o?.(d), h.current = !0);
9177
9177
  }, [m, d, o]), /* @__PURE__ */ f("div", { className: b("flex flex-col w-full font-sans", s), "data-testid": "ticket-selection", children: [
9178
9178
  /* @__PURE__ */ f("div", { className: "flex items-center justify-between py-2 gap-4", "data-testid": "ticket-selection-header", children: [
@@ -9245,9 +9245,9 @@ const qd = ({ title: e, value: t, description: n, onValueChange: r, className: i
9245
9245
  onOpenChange: $,
9246
9246
  isDisabled: x = !1,
9247
9247
  closeOnConfirm: v = !0,
9248
- keepOpenAfterClear: I = !1
9248
+ keepOpenAfterClear: F = !1
9249
9249
  }) => {
9250
- const [F, T] = H(k), [A, z] = H(() => mn(d)), M = N ?? F, D = y ?? d.filter((j) => nu(j)).length, L = (j) => {
9250
+ const [M, T] = H(k), [A, z] = H(() => mn(d)), I = N ?? M, D = y ?? d.filter((j) => nu(j)).length, L = (j) => {
9251
9251
  j && z(mn(d)), N || T(j), $?.(j);
9252
9252
  }, O = (j, B) => {
9253
9253
  z((q) => ({
@@ -9260,7 +9260,7 @@ const qd = ({ title: e, value: t, description: n, onValueChange: r, className: i
9260
9260
  [j.id]: B ? [B] : []
9261
9261
  }));
9262
9262
  }, Y = async () => {
9263
- z(mn(d.map((j) => j.type === "checkbox" ? { ...j, selectedValues: [] } : { ...j, selectedValue: null }))), await h(), I || L(!1);
9263
+ z(mn(d.map((j) => j.type === "checkbox" ? { ...j, selectedValues: [] } : { ...j, selectedValue: null }))), await h(), F || L(!1);
9264
9264
  }, K = async () => {
9265
9265
  const j = tu(A, d);
9266
9266
  await u(j), v && L(!1);
@@ -9291,7 +9291,7 @@ const qd = ({ title: e, value: t, description: n, onValueChange: r, className: i
9291
9291
  () => D > 0 ? m?.(D) || `${D} filters applied` : void 0,
9292
9292
  [m, D]
9293
9293
  ), se = oe(() => D === 0 ? e || fn.noLabel : m ? m(D) : `${e} (${D})`, [D, e, m]);
9294
- return /* @__PURE__ */ a("div", { className: c, children: /* @__PURE__ */ f(Bt, { isOpen: M, onOpenChange: L, placement: "bottom-end", children: [
9294
+ return /* @__PURE__ */ a("div", { className: c, children: /* @__PURE__ */ f(Bt, { isOpen: I, onOpenChange: L, placement: "bottom-end", children: [
9295
9295
  /* @__PURE__ */ a(Ut, { children: /* @__PURE__ */ f(
9296
9296
  W,
9297
9297
  {
@@ -9302,7 +9302,7 @@ const qd = ({ title: e, value: t, description: n, onValueChange: r, className: i
9302
9302
  className: o,
9303
9303
  "aria-label": t,
9304
9304
  "aria-haspopup": "dialog",
9305
- "aria-expanded": M,
9305
+ "aria-expanded": I,
9306
9306
  children: [
9307
9307
  /* @__PURE__ */ a(U, { icon: n, width: 16 }),
9308
9308
  /* @__PURE__ */ a("span", { children: e }),
@@ -9351,7 +9351,7 @@ const au = "No sessions available for this date", iu = (e) => e === "sold-out" |
9351
9351
  headingClassName: N,
9352
9352
  subheadingClassName: k
9353
9353
  }) => {
9354
- const $ = lu(n, r), x = n.find((A) => A.date === $), v = s ?? n.map((A) => ({ date: A.date, label: A.label })), I = x?.sessions ?? [], F = (A) => A === $ ? "solid" : "bordered", T = (A) => {
9354
+ const $ = lu(n, r), x = n.find((A) => A.date === $), v = s ?? n.map((A) => ({ date: A.date, label: A.label })), F = x?.sessions ?? [], M = (A) => A === $ ? "solid" : "bordered", T = (A) => {
9355
9355
  if (!oa(A)) {
9356
9356
  if (A.id === o) {
9357
9357
  l(null);
@@ -9376,7 +9376,7 @@ const au = "No sessions available for this date", iu = (e) => e === "sold-out" |
9376
9376
  W,
9377
9377
  {
9378
9378
  size: "sm",
9379
- variant: F(A.date),
9379
+ variant: M(A.date),
9380
9380
  color: "default",
9381
9381
  className: b("rounded-full", y),
9382
9382
  isDisabled: A.isDisabled,
@@ -9397,9 +9397,9 @@ const au = "No sessions available for this date", iu = (e) => e === "sold-out" |
9397
9397
  className: "grid grid-cols-1 gap-2 sm:grid-cols-3",
9398
9398
  "aria-label": S || "Sessions",
9399
9399
  children: [
9400
- I.length === 0 ? /* @__PURE__ */ a("li", { className: "rounded-lg bg-white px-4 py-6 text-center text-sm text-gray-600 sm:col-span-3", children: c }) : null,
9401
- I.map((A) => {
9402
- const z = oa(A), M = A.id === o;
9400
+ F.length === 0 ? /* @__PURE__ */ a("li", { className: "rounded-lg bg-white px-4 py-6 text-center text-sm text-gray-600 sm:col-span-3", children: c }) : null,
9401
+ F.map((A) => {
9402
+ const z = oa(A), I = A.id === o;
9403
9403
  return /* @__PURE__ */ a("li", { className: "rounded-xl", children: /* @__PURE__ */ a(
9404
9404
  ye,
9405
9405
  {
@@ -9410,13 +9410,13 @@ const au = "No sessions available for this date", iu = (e) => e === "sold-out" |
9410
9410
  T(A);
9411
9411
  },
9412
9412
  "aria-disabled": z,
9413
- "aria-pressed": z ? void 0 : M,
9413
+ "aria-pressed": z ? void 0 : I,
9414
9414
  className: b(
9415
9415
  "w-full",
9416
9416
  z ? "bg-gray-100 opacity-70" : "",
9417
- M ? "w-full ring-2 ring-gray-900" : ""
9417
+ I ? "w-full ring-2 ring-gray-900" : ""
9418
9418
  ),
9419
- "aria-label": h ? h(A, { isSelected: M, isUnavailable: z }) : z ? `${A.startTime} ${A.endTime} sold out` : `${A.startTime} ${A.endTime} available`,
9419
+ "aria-label": h ? h(A, { isSelected: I, isUnavailable: z }) : z ? `${A.startTime} ${A.endTime} sold out` : `${A.startTime} ${A.endTime} available`,
9420
9420
  children: /* @__PURE__ */ f(Ne, { className: "flex flex-col items-center gap-3 p-4 text-center", children: [
9421
9421
  /* @__PURE__ */ f("span", { className: "text-sm font-semibold text-gray-900", children: [
9422
9422
  A.startTime,
@@ -9531,7 +9531,17 @@ const uu = {
9531
9531
  archived: "default",
9532
9532
  inactive: "default",
9533
9533
  neutral: "default"
9534
- }, fu = ({
9534
+ }, fu = {
9535
+ active: { fg: "#057A54", bg: "#E6F4EF" },
9536
+ success: { fg: "#057A54", bg: "#E6F4EF" },
9537
+ draft: { fg: "#B7791F", bg: "#FBF0DD" },
9538
+ pending: { fg: "#B7791F", bg: "#FBF0DD" },
9539
+ warning: { fg: "#B7791F", bg: "#FBF0DD" },
9540
+ danger: { fg: "#B62214", bg: "#FBEAE8" },
9541
+ archived: { fg: "#9CA3AF", bg: "#F1F2F4" },
9542
+ inactive: { fg: "#9CA3AF", bg: "#F1F2F4" },
9543
+ neutral: { fg: "#9CA3AF", bg: "#F1F2F4" }
9544
+ }, mu = ({
9535
9545
  status: e,
9536
9546
  label: t,
9537
9547
  variant: n = "flat",
@@ -9540,24 +9550,52 @@ const uu = {
9540
9550
  startContent: s,
9541
9551
  className: o,
9542
9552
  "data-testid": l = "status-chip"
9543
- }) => /* @__PURE__ */ a(
9544
- it,
9545
- {
9546
- color: i ?? uu[e],
9547
- variant: n,
9548
- size: r,
9549
- startContent: s,
9550
- "data-testid": l,
9551
- "data-status": e,
9552
- className: b("font-medium", o),
9553
- children: t
9553
+ }) => {
9554
+ if (n === "dot") {
9555
+ const c = fu[e];
9556
+ return /* @__PURE__ */ f(
9557
+ "span",
9558
+ {
9559
+ "data-testid": l,
9560
+ "data-status": e,
9561
+ className: b(
9562
+ "inline-flex items-center gap-1.5 whitespace-nowrap rounded-full px-2.5 py-[3px] text-[12px] font-semibold leading-[1.4]",
9563
+ o
9564
+ ),
9565
+ style: { color: c.fg, backgroundColor: c.bg },
9566
+ children: [
9567
+ /* @__PURE__ */ a(
9568
+ "span",
9569
+ {
9570
+ "aria-hidden": "true",
9571
+ className: "size-1.5 shrink-0 rounded-full",
9572
+ style: { backgroundColor: "currentColor" }
9573
+ }
9574
+ ),
9575
+ t
9576
+ ]
9577
+ }
9578
+ );
9554
9579
  }
9555
- );
9556
- fu.displayName = "StatusChip";
9557
- const mu = {
9580
+ return /* @__PURE__ */ a(
9581
+ it,
9582
+ {
9583
+ color: i ?? uu[e],
9584
+ variant: n,
9585
+ size: r,
9586
+ startContent: s,
9587
+ "data-testid": l,
9588
+ "data-status": e,
9589
+ className: b("font-medium", o),
9590
+ children: t
9591
+ }
9592
+ );
9593
+ };
9594
+ mu.displayName = "StatusChip";
9595
+ const hu = {
9558
9596
  sm: "gap-1 rounded-md px-2 py-0.5 text-[11.5px] leading-normal",
9559
9597
  md: "gap-1.5 rounded-lg px-2.5 py-1 text-xs leading-normal"
9560
- }, hu = ({
9598
+ }, pu = ({
9561
9599
  label: e,
9562
9600
  value: t,
9563
9601
  size: n = "sm",
@@ -9569,7 +9607,7 @@ const mu = {
9569
9607
  "data-testid": i,
9570
9608
  className: b(
9571
9609
  "inline-flex items-baseline whitespace-nowrap border border-default-200 bg-default-100",
9572
- mu[n],
9610
+ hu[n],
9573
9611
  r
9574
9612
  ),
9575
9613
  children: [
@@ -9578,7 +9616,7 @@ const mu = {
9578
9616
  ]
9579
9617
  }
9580
9618
  );
9581
- hu.displayName = "DimensionChip";
9619
+ pu.displayName = "DimensionChip";
9582
9620
  const Di = {
9583
9621
  2: "sm:grid-cols-2",
9584
9622
  3: "sm:grid-cols-3",
@@ -9586,7 +9624,7 @@ const Di = {
9586
9624
  }, Ei = {
9587
9625
  1: "grid-cols-1",
9588
9626
  2: "grid-cols-2"
9589
- }, pu = (e) => typeof e == "string" ? /* @__PURE__ */ a(U, { icon: e, width: 16, height: 16, "aria-hidden": "true", className: "text-gray-400" }) : e, gu = ({
9627
+ }, gu = (e) => typeof e == "string" ? /* @__PURE__ */ a(U, { icon: e, width: 16, height: 16, "aria-hidden": "true", className: "text-gray-400" }) : e, bu = ({
9590
9628
  options: e,
9591
9629
  selectedKeys: t,
9592
9630
  onChange: n,
@@ -9603,10 +9641,10 @@ const Di = {
9603
9641
  "data-testid": m = "checkbox-card-group"
9604
9642
  }) => {
9605
9643
  const w = new Set(t), S = new Set(e.map((v) => v.key)), g = l !== void 0 && w.size < l, N = d ?? g, k = c ?? (l !== void 0 ? `Select at least ${l}.` : void 0), $ = (v) => {
9606
- const I = new Set(w);
9607
- I.has(v) ? I.delete(v) : I.add(v);
9608
- const F = e.map((A) => A.key).filter((A) => I.has(A)), T = t.filter((A) => I.has(A) && !S.has(A));
9609
- n([.../* @__PURE__ */ new Set([...F, ...T])]);
9644
+ const F = new Set(w);
9645
+ F.has(v) ? F.delete(v) : F.add(v);
9646
+ const M = e.map((A) => A.key).filter((A) => F.has(A)), T = t.filter((A) => F.has(A) && !S.has(A));
9647
+ n([.../* @__PURE__ */ new Set([...M, ...T])]);
9610
9648
  }, x = k ? `${m}-hint` : void 0;
9611
9649
  return /* @__PURE__ */ f(
9612
9650
  "div",
@@ -9630,24 +9668,24 @@ const Di = {
9630
9668
  y.grid
9631
9669
  ),
9632
9670
  children: e.map((v) => {
9633
- const I = w.has(v.key), F = v.description ? `${m}-${v.key}-description` : void 0;
9671
+ const F = w.has(v.key), M = v.description ? `${m}-${v.key}-description` : void 0;
9634
9672
  return /* @__PURE__ */ f(
9635
9673
  W,
9636
9674
  {
9637
9675
  variant: "bordered",
9638
9676
  radius: "lg",
9639
9677
  role: "checkbox",
9640
- "aria-checked": I,
9678
+ "aria-checked": F,
9641
9679
  "aria-label": v.label,
9642
- "aria-describedby": F,
9680
+ "aria-describedby": M,
9643
9681
  isDisabled: u || v.isDisabled,
9644
9682
  onPress: () => $(v.key),
9645
9683
  "data-testid": v["data-testid"] ?? `${m}-${v.key}`,
9646
9684
  className: b(
9647
9685
  "h-auto min-h-[52px] items-start justify-start gap-2 px-3 py-2",
9648
9686
  "border bg-transparent text-left transition-colors",
9649
- I ? "border-primary bg-primary-50" : "border-gray-200 hover:bg-gray-50",
9650
- N && !I && "border-danger-300",
9687
+ F ? "border-primary bg-primary-50" : "border-gray-200 hover:bg-gray-50",
9688
+ N && !F && "border-danger-300",
9651
9689
  y.card
9652
9690
  ),
9653
9691
  children: [
@@ -9657,20 +9695,20 @@ const Di = {
9657
9695
  "aria-hidden": "true",
9658
9696
  className: b(
9659
9697
  "mt-0.5 flex size-[18px] shrink-0 items-center justify-center rounded-[6px] border transition-colors",
9660
- I ? "border-primary bg-primary text-white" : "border-gray-300 bg-white text-transparent"
9698
+ F ? "border-primary bg-primary text-white" : "border-gray-300 bg-white text-transparent"
9661
9699
  ),
9662
9700
  children: /* @__PURE__ */ a(U, { icon: "solar:check-read-linear", className: "size-3" })
9663
9701
  }
9664
9702
  ),
9665
9703
  /* @__PURE__ */ f("span", { className: "flex min-w-0 flex-col", children: [
9666
9704
  /* @__PURE__ */ f("span", { className: "flex items-center gap-1.5", children: [
9667
- v.icon ? pu(v.icon) : null,
9705
+ v.icon ? gu(v.icon) : null,
9668
9706
  /* @__PURE__ */ a("span", { className: "text-sm font-medium text-gray-900", children: v.label })
9669
9707
  ] }),
9670
9708
  v.description ? /* @__PURE__ */ a(
9671
9709
  "span",
9672
9710
  {
9673
- id: F,
9711
+ id: M,
9674
9712
  className: "text-xs leading-snug text-gray-500",
9675
9713
  children: v.description
9676
9714
  }
@@ -9700,8 +9738,8 @@ const Di = {
9700
9738
  }
9701
9739
  );
9702
9740
  };
9703
- gu.displayName = "CheckboxCardGroup";
9704
- const bu = ({
9741
+ bu.displayName = "CheckboxCardGroup";
9742
+ const yu = ({
9705
9743
  isLoading: e = !1,
9706
9744
  isError: t = !1,
9707
9745
  isEmpty: n = !1,
@@ -9760,14 +9798,14 @@ const bu = ({
9760
9798
  }
9761
9799
  );
9762
9800
  };
9763
- bu.displayName = "ListPanel";
9764
- const yu = 350, xu = {
9801
+ yu.displayName = "ListPanel";
9802
+ const xu = 350, vu = {
9765
9803
  receivedLabel: "Cash Received",
9766
9804
  receivedPlaceholder: "$0.00",
9767
9805
  changeLabel: "Change",
9768
9806
  changeMessageTemplate: "You have to give back the client {change} in change",
9769
9807
  insufficientMessageTemplate: "Amount received must be at least {due}"
9770
- }, hn = (e, t) => Object.entries(t).reduce((n, [r, i]) => n.replace(`{${r}}`, i), e), sm = ({
9808
+ }, hn = (e, t) => Object.entries(t).reduce((n, [r, i]) => n.replace(`{${r}}`, i), e), lm = ({
9771
9809
  dueAmount: e,
9772
9810
  received: t,
9773
9811
  defaultReceived: n = null,
@@ -9780,7 +9818,7 @@ const yu = 350, xu = {
9780
9818
  className: d,
9781
9819
  "data-testid": u = "cash-tender-form"
9782
9820
  }) => {
9783
- const h = { ...xu, ...s }, y = ii(e.currency, i), m = t !== void 0, [w, S] = H(n ?? null), g = m ? t : w, N = oe(() => {
9821
+ const h = { ...vu, ...s }, y = ii(e.currency, i), m = t !== void 0, [w, S] = H(n ?? null), g = m ? t : w, N = oe(() => {
9784
9822
  const L = typeof g == "number" && Number.isFinite(g) ? g : 0, O = Pr(L, e.value, e.currency, i);
9785
9823
  return {
9786
9824
  received: L,
@@ -9807,14 +9845,14 @@ const yu = 350, xu = {
9807
9845
  });
9808
9846
  },
9809
9847
  [m, o, e.value, e.currency, i, r, l]
9810
- ), x = g == null ? "" : String(g), v = N.isValid && N.change > 0, I = !N.isValid && N.received > 0, F = rt(N.change, i, e.currency), T = rt(e.value, i, e.currency), [A, z] = H(""), M = ze(null);
9811
- Ie(() => {
9812
- M.current && clearTimeout(M.current);
9813
- const L = v ? hn(h.changeMessageTemplate, { change: F }) : "", O = v ? yu : 0;
9814
- return M.current = setTimeout(() => z(L), O), () => {
9815
- M.current && clearTimeout(M.current);
9848
+ ), x = g == null ? "" : String(g), v = N.isValid && N.change > 0, F = !N.isValid && N.received > 0, M = rt(N.change, i, e.currency), T = rt(e.value, i, e.currency), [A, z] = H(""), I = ze(null);
9849
+ Fe(() => {
9850
+ I.current && clearTimeout(I.current);
9851
+ const L = v ? hn(h.changeMessageTemplate, { change: M }) : "", O = v ? xu : 0;
9852
+ return I.current = setTimeout(() => z(L), O), () => {
9853
+ I.current && clearTimeout(I.current);
9816
9854
  };
9817
- }, [v, F, h.changeMessageTemplate]);
9855
+ }, [v, M, h.changeMessageTemplate]);
9818
9856
  const D = `${u}-received`;
9819
9857
  return /* @__PURE__ */ f("div", { className: b("flex flex-col gap-3", d), "data-testid": u, children: [
9820
9858
  /* @__PURE__ */ a(
@@ -9831,8 +9869,8 @@ const yu = 350, xu = {
9831
9869
  onFocus: k,
9832
9870
  placeholder: h.receivedPlaceholder,
9833
9871
  isDisabled: o,
9834
- isInvalid: I,
9835
- errorMessage: I ? hn(h.insufficientMessageTemplate, { due: T }) : void 0,
9872
+ isInvalid: F,
9873
+ errorMessage: F ? hn(h.insufficientMessageTemplate, { due: T }) : void 0,
9836
9874
  variant: "bordered",
9837
9875
  radius: "lg",
9838
9876
  autoFocus: c,
@@ -9857,7 +9895,7 @@ const yu = 350, xu = {
9857
9895
  radius: "lg",
9858
9896
  title: h.changeLabel,
9859
9897
  description: hn(h.changeMessageTemplate, {
9860
- change: F
9898
+ change: M
9861
9899
  }),
9862
9900
  icon: /* @__PURE__ */ a(U, { icon: "lucide:info", width: 20, height: 20, "aria-hidden": "true" }),
9863
9901
  "aria-live": "off",
@@ -9878,7 +9916,7 @@ const yu = 350, xu = {
9878
9916
  ),
9879
9917
  /* @__PURE__ */ a("span", { role: "status", "aria-live": "polite", className: "sr-only", children: A })
9880
9918
  ] });
9881
- }, vu = {
9919
+ }, wu = {
9882
9920
  checkNumberLabel: "Check Number",
9883
9921
  checkNumberPlaceholder: "e.g. 11234",
9884
9922
  bankNameLabel: "Bank Name",
@@ -9888,7 +9926,7 @@ const yu = 350, xu = {
9888
9926
  }, ca = () => {
9889
9927
  const e = /* @__PURE__ */ new Date(), t = (n) => String(n).padStart(2, "0");
9890
9928
  return `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())}`;
9891
- }, wu = ({
9929
+ }, Nu = ({
9892
9930
  dueAmount: e,
9893
9931
  value: t,
9894
9932
  defaultValue: n,
@@ -9906,7 +9944,7 @@ const yu = 350, xu = {
9906
9944
  className: h,
9907
9945
  "data-testid": y = "check-tender-form"
9908
9946
  }) => {
9909
- const m = { ...vu, ...i }, w = t !== void 0, [S, g] = H({
9947
+ const m = { ...wu, ...i }, w = t !== void 0, [S, g] = H({
9910
9948
  checkNumber: n?.checkNumber ?? "",
9911
9949
  bankName: n?.bankName ?? "",
9912
9950
  date: n?.date ?? ca()
@@ -9920,26 +9958,26 @@ const yu = 350, xu = {
9920
9958
  } : S,
9921
9959
  [w, t, S]
9922
9960
  ), x = J(
9923
- (M) => {
9924
- w || g(M);
9925
- const D = M.checkNumber.trim(), L = {
9961
+ (I) => {
9962
+ w || g(I);
9963
+ const D = I.checkNumber.trim(), L = {
9926
9964
  amount: e.value,
9927
9965
  checkNumber: D,
9928
- bankName: M.bankName.trim() || void 0,
9929
- date: s ? void 0 : M.date,
9966
+ bankName: I.bankName.trim() || void 0,
9967
+ date: s ? void 0 : I.date,
9930
9968
  isValid: D.length > 0 && e.value > 0
9931
9969
  };
9932
9970
  r?.(L);
9933
9971
  },
9934
9972
  [w, e.value, s, r]
9935
9973
  ), v = J(
9936
- (M) => (D) => {
9937
- l || (M === "checkNumber" && D.length > 0 && k(!0), x({ ...$, [M]: D }));
9974
+ (I) => (D) => {
9975
+ l || (I === "checkNumber" && D.length > 0 && k(!0), x({ ...$, [I]: D }));
9938
9976
  },
9939
9977
  [$, x, l]
9940
- ), I = J(() => {
9978
+ ), F = J(() => {
9941
9979
  l || k(!0);
9942
- }, [l]), F = N && $.checkNumber.trim() === "", T = `${y}-check-number`, A = `${y}-bank-name`, z = `${y}-date`;
9980
+ }, [l]), M = N && $.checkNumber.trim() === "", T = `${y}-check-number`, A = `${y}-bank-name`, z = `${y}-date`;
9943
9981
  return /* @__PURE__ */ f("div", { className: b("grid grid-cols-1 sm:grid-cols-2 gap-4", h), "data-testid": y, children: [
9944
9982
  /* @__PURE__ */ a(
9945
9983
  De,
@@ -9949,13 +9987,13 @@ const yu = 350, xu = {
9949
9987
  labelPlacement: "outside",
9950
9988
  type: "text",
9951
9989
  value: $.checkNumber,
9952
- onChange: (M) => v("checkNumber")(M.target.value),
9953
- onBlur: I,
9990
+ onChange: (I) => v("checkNumber")(I.target.value),
9991
+ onBlur: F,
9954
9992
  placeholder: m.checkNumberPlaceholder,
9955
9993
  maxLength: c,
9956
9994
  isRequired: !0,
9957
- isInvalid: F,
9958
- errorMessage: F ? m.checkNumberRequiredMessage : void 0,
9995
+ isInvalid: M,
9996
+ errorMessage: M ? m.checkNumberRequiredMessage : void 0,
9959
9997
  isDisabled: l,
9960
9998
  variant: "bordered",
9961
9999
  radius: "lg",
@@ -9971,7 +10009,7 @@ const yu = 350, xu = {
9971
10009
  labelPlacement: "outside",
9972
10010
  type: "text",
9973
10011
  value: $.bankName,
9974
- onChange: (M) => v("bankName")(M.target.value),
10012
+ onChange: (I) => v("bankName")(I.target.value),
9975
10013
  placeholder: m.bankNamePlaceholder,
9976
10014
  maxLength: d,
9977
10015
  isDisabled: l,
@@ -9988,7 +10026,7 @@ const yu = 350, xu = {
9988
10026
  labelPlacement: "outside",
9989
10027
  type: "date",
9990
10028
  value: $.date,
9991
- onChange: (M) => v("date")(M.target.value),
10029
+ onChange: (I) => v("date")(I.target.value),
9992
10030
  isDisabled: l,
9993
10031
  variant: "bordered",
9994
10032
  radius: "lg",
@@ -9998,8 +10036,8 @@ const yu = 350, xu = {
9998
10036
  )
9999
10037
  ] });
10000
10038
  };
10001
- wu.displayName = "CheckTenderForm";
10002
- const Nu = {
10039
+ Nu.displayName = "CheckTenderForm";
10040
+ const ku = {
10003
10041
  // "Method" (not "Payment Method") because the orchestrator chrome
10004
10042
  // typically renders a "Payment Method" heading right above this
10005
10043
  // form's section — using the shorter label avoids the duplicate.
@@ -10008,15 +10046,15 @@ const Nu = {
10008
10046
  referenceLabel: "Reference",
10009
10047
  referencePlaceholder: "e.g. Voucher #1234",
10010
10048
  methodRequiredMessage: "Method is required"
10011
- }, ku = [
10049
+ }, Cu = [
10012
10050
  { value: "ach", label: "ACH" },
10013
10051
  { value: "wire", label: "Wire" },
10014
10052
  { value: "gift_card", label: "Gift Card" },
10015
10053
  { value: "voucher", label: "Voucher" },
10016
10054
  { value: "other", label: "Other" }
10017
- ], Cu = ({
10055
+ ], Su = ({
10018
10056
  dueAmount: e,
10019
- methodOptions: t = ku,
10057
+ methodOptions: t = Cu,
10020
10058
  value: n,
10021
10059
  defaultValue: r,
10022
10060
  onChange: i,
@@ -10029,7 +10067,7 @@ const Nu = {
10029
10067
  className: c,
10030
10068
  "data-testid": d = "other-tender-form"
10031
10069
  }) => {
10032
- const u = { ...Nu, ...s }, h = n !== void 0, [y, m] = H({
10070
+ const u = { ...ku, ...s }, h = n !== void 0, [y, m] = H({
10033
10071
  method: r?.method ?? "",
10034
10072
  reference: r?.reference ?? ""
10035
10073
  }), w = oe(
@@ -10039,15 +10077,15 @@ const Nu = {
10039
10077
  } : y,
10040
10078
  [h, n, y]
10041
10079
  ), S = J(
10042
- (v) => t.find((I) => I.value === v)?.label ?? "",
10080
+ (v) => t.find((F) => F.value === v)?.label ?? "",
10043
10081
  [t]
10044
10082
  ), g = J(
10045
10083
  (v) => {
10046
10084
  h || m(v);
10047
- const I = S(v.method), F = {
10085
+ const F = S(v.method), M = {
10048
10086
  amount: e.value,
10049
10087
  method: v.method,
10050
- description: I,
10088
+ description: F,
10051
10089
  reference: v.reference.trim() || void 0,
10052
10090
  // Form-level validity = method selected. Amount validity
10053
10091
  // belongs to the host (`<PaymentsDropIn>` already gates on
@@ -10056,14 +10094,14 @@ const Nu = {
10056
10094
  // pre-rendered with no amount.
10057
10095
  isValid: v.method !== ""
10058
10096
  };
10059
- i?.(F);
10097
+ i?.(M);
10060
10098
  },
10061
10099
  [h, e.value, i, S]
10062
10100
  ), N = J(
10063
10101
  (v) => {
10064
10102
  if (l) return;
10065
- const I = typeof v == "string" ? v : Array.from(v)[0]?.toString() ?? "";
10066
- g({ ...w, method: I });
10103
+ const F = typeof v == "string" ? v : Array.from(v)[0]?.toString() ?? "";
10104
+ g({ ...w, method: F });
10067
10105
  },
10068
10106
  [w, g, l]
10069
10107
  ), k = J(
@@ -10131,8 +10169,8 @@ const Nu = {
10131
10169
  )
10132
10170
  ] });
10133
10171
  };
10134
- Cu.displayName = "OtherTenderForm";
10135
- const Su = {
10172
+ Su.displayName = "OtherTenderForm";
10173
+ const $u = {
10136
10174
  collectedHeading: "Collected",
10137
10175
  remainingLabel: "Remaining:",
10138
10176
  completeLabel: "Complete",
@@ -10141,16 +10179,16 @@ const Su = {
10141
10179
  statusPending: "Pending",
10142
10180
  statusRecorded: "Approved",
10143
10181
  statusFailed: "Failed"
10144
- }, $u = {
10182
+ }, Au = {
10145
10183
  card: "lucide:credit-card",
10146
10184
  cash: "lucide:dollar-sign",
10147
10185
  check: "lucide:edit-3",
10148
10186
  other: "lucide:more-horizontal"
10149
- }, Au = {
10187
+ }, Du = {
10150
10188
  pending: "warning",
10151
10189
  recorded: "success",
10152
10190
  failed: "danger"
10153
- }, Du = (e) => e === "pending" || e === "recorded", Eu = (e) => `#${e + 1}`, Iu = ({
10191
+ }, Eu = (e) => e === "pending" || e === "recorded", Fu = (e) => `#${e + 1}`, Iu = ({
10154
10192
  total: e,
10155
10193
  tenders: t,
10156
10194
  onRemove: n,
@@ -10160,8 +10198,8 @@ const Su = {
10160
10198
  className: o,
10161
10199
  "data-testid": l = "split-payment-summary"
10162
10200
  }) => {
10163
- const c = { ...Su, ...i }, { collected: d, remaining: u, isComplete: h } = oe(() => {
10164
- const m = t.reduce((S, g) => Du(g.status) ? S + g.amount : S, 0), w = Math.max(e.value - m, 0);
10201
+ const c = { ...$u, ...i }, { collected: d, remaining: u, isComplete: h } = oe(() => {
10202
+ const m = t.reduce((S, g) => Eu(g.status) ? S + g.amount : S, 0), w = Math.max(e.value - m, 0);
10165
10203
  return {
10166
10204
  collected: m,
10167
10205
  remaining: w,
@@ -10244,11 +10282,11 @@ const Mu = ({
10244
10282
  className: "flex items-center gap-3 rounded-xl bg-default-50 px-4 py-3 motion-safe:animate-[pp-row-in_200ms_ease-out]",
10245
10283
  "data-testid": d,
10246
10284
  children: [
10247
- /* @__PURE__ */ a("span", { className: "text-sm font-medium text-default-500 w-6 shrink-0", children: Eu(e) }),
10285
+ /* @__PURE__ */ a("span", { className: "text-sm font-medium text-default-500 w-6 shrink-0", children: Fu(e) }),
10248
10286
  /* @__PURE__ */ a(
10249
10287
  U,
10250
10288
  {
10251
- icon: $u[t.type],
10289
+ icon: Au[t.type],
10252
10290
  width: 20,
10253
10291
  height: 20,
10254
10292
  className: "text-default-700 shrink-0",
@@ -10263,7 +10301,7 @@ const Mu = ({
10263
10301
  size: "sm",
10264
10302
  radius: "full",
10265
10303
  variant: "flat",
10266
- color: Au[t.status],
10304
+ color: Du[t.status],
10267
10305
  startContent: t.status === "recorded" ? /* @__PURE__ */ a(U, { icon: "lucide:check-circle", width: 14, height: 14, "aria-hidden": "true" }) : t.status === "failed" ? /* @__PURE__ */ a(U, { icon: "lucide:alert-circle", width: 14, height: 14, "aria-hidden": "true" }) : void 0,
10268
10306
  "data-testid": `${d}-status`,
10269
10307
  children: o
@@ -10273,7 +10311,7 @@ const Mu = ({
10273
10311
  ]
10274
10312
  }
10275
10313
  );
10276
- }, Fu = `
10314
+ }, Lu = `
10277
10315
  @keyframes pp-modal-in {
10278
10316
  from { opacity: 0; transform: scale(0.96); }
10279
10317
  to { opacity: 1; transform: scale(1); }
@@ -10298,9 +10336,9 @@ const Mu = ({
10298
10336
  from { opacity: 0; transform: translateY(-6px); }
10299
10337
  to { opacity: 1; transform: translateY(0); }
10300
10338
  }
10301
- `, Lu = G.forwardRef(
10339
+ `, Tu = G.forwardRef(
10302
10340
  ({ children: e, relativeOverlayRoot: t = !0, className: n, style: r, "data-testid": i = "modal-shell" }, s) => /* @__PURE__ */ f(we, { children: [
10303
- /* @__PURE__ */ a("style", { children: Fu }),
10341
+ /* @__PURE__ */ a("style", { children: Lu }),
10304
10342
  /* @__PURE__ */ a(
10305
10343
  "div",
10306
10344
  {
@@ -10339,8 +10377,8 @@ const Mu = ({
10339
10377
  )
10340
10378
  ] })
10341
10379
  );
10342
- Lu.displayName = "ModalShell";
10343
- const Tu = ({
10380
+ Tu.displayName = "ModalShell";
10381
+ const _u = ({
10344
10382
  title: e,
10345
10383
  onClose: t,
10346
10384
  closeLabel: n = "Close",
@@ -10366,8 +10404,8 @@ const Tu = ({
10366
10404
  )
10367
10405
  ] })
10368
10406
  ] });
10369
- Tu.displayName = "ModalShellHeader";
10370
- const _u = ({
10407
+ _u.displayName = "ModalShellHeader";
10408
+ const Ou = ({
10371
10409
  children: e,
10372
10410
  columns: t = 2,
10373
10411
  className: n,
@@ -10401,8 +10439,8 @@ const _u = ({
10401
10439
  children: e
10402
10440
  }
10403
10441
  );
10404
- _u.displayName = "ModalShellFooter";
10405
- const pn = (e) => typeof e == "string" ? /* @__PURE__ */ a(U, { icon: e, width: 20, height: 20, "aria-hidden": "true" }) : e, Ou = ({
10442
+ Ou.displayName = "ModalShellFooter";
10443
+ const pn = (e) => typeof e == "string" ? /* @__PURE__ */ a(U, { icon: e, width: 20, height: 20, "aria-hidden": "true" }) : e, Pu = ({
10406
10444
  options: e,
10407
10445
  selectedKey: t,
10408
10446
  onSelect: n,
@@ -10521,8 +10559,8 @@ const pn = (e) => typeof e == "string" ? /* @__PURE__ */ a(U, { icon: e, width:
10521
10559
  )
10522
10560
  ] });
10523
10561
  };
10524
- Ou.displayName = "TileSelect";
10525
- const Pu = {
10562
+ Pu.displayName = "TileSelect";
10563
+ const zu = {
10526
10564
  subtle: {
10527
10565
  wrapper: "bg-default-100",
10528
10566
  amount: "text-default-900"
@@ -10531,7 +10569,7 @@ const Pu = {
10531
10569
  wrapper: "bg-success-50 text-success-700",
10532
10570
  amount: "text-success-700"
10533
10571
  }
10534
- }, zu = ({
10572
+ }, Ru = ({
10535
10573
  total: e,
10536
10574
  label: t,
10537
10575
  locale: n = "en-US",
@@ -10539,7 +10577,7 @@ const Pu = {
10539
10577
  className: i,
10540
10578
  "data-testid": s = "payment-total-banner"
10541
10579
  }) => {
10542
- const o = Pu[r];
10580
+ const o = zu[r];
10543
10581
  return /* @__PURE__ */ f(
10544
10582
  "div",
10545
10583
  {
@@ -10559,8 +10597,8 @@ const Pu = {
10559
10597
  }
10560
10598
  );
10561
10599
  };
10562
- zu.displayName = "PaymentTotalBanner";
10563
- const Ru = {
10600
+ Ru.displayName = "PaymentTotalBanner";
10601
+ const Vu = {
10564
10602
  // ~70% white + slight blur — matches Type=Processing.png design:
10565
10603
  // the form behind (tabs, fields, totals) stays VISIBLY dimmed
10566
10604
  // instead of being almost-fully-occluded. Gives the cashier a
@@ -10568,7 +10606,7 @@ const Ru = {
10568
10606
  // clear the modal is busy.
10569
10607
  white: "bg-white/70 backdrop-blur-sm",
10570
10608
  transparent: "bg-transparent"
10571
- }, Vu = ({
10609
+ }, Bu = ({
10572
10610
  title: e,
10573
10611
  subtitle: t,
10574
10612
  backdrop: n = "white",
@@ -10585,7 +10623,7 @@ const Ru = {
10585
10623
  "data-state": r ? "exiting" : "visible",
10586
10624
  className: b(
10587
10625
  "absolute inset-0 z-10 flex flex-col items-center justify-center gap-4 rounded-3xl",
10588
- Ru[n],
10626
+ Vu[n],
10589
10627
  // Two animation modes:
10590
10628
  // visible → fade-in entrance (150ms).
10591
10629
  // exiting → fade-out + non-interactive; `forwards` fill
@@ -10611,8 +10649,8 @@ const Ru = {
10611
10649
  ]
10612
10650
  }
10613
10651
  );
10614
- Vu.displayName = "LoadingOverlay";
10615
- const Ii = ({
10652
+ Bu.displayName = "LoadingOverlay";
10653
+ const Fi = ({
10616
10654
  cashChange: e,
10617
10655
  label: t = "Cash to return",
10618
10656
  secondaryLine: n,
@@ -10689,8 +10727,8 @@ const Ii = ({
10689
10727
  }
10690
10728
  );
10691
10729
  };
10692
- Ii.displayName = "PaymentCashChangeBanner";
10693
- const Bu = ({
10730
+ Fi.displayName = "PaymentCashChangeBanner";
10731
+ const Uu = ({
10694
10732
  title: e,
10695
10733
  subtitle: t,
10696
10734
  emailLine: n,
@@ -10744,7 +10782,7 @@ const Bu = ({
10744
10782
  ] })
10745
10783
  ] }),
10746
10784
  h && i && /* @__PURE__ */ a(
10747
- Ii,
10785
+ Fi,
10748
10786
  {
10749
10787
  cashChange: i,
10750
10788
  label: s,
@@ -10771,8 +10809,8 @@ const Bu = ({
10771
10809
  }
10772
10810
  );
10773
10811
  };
10774
- Bu.displayName = "PaymentSuccessView";
10775
- const Uu = ({
10812
+ Uu.displayName = "PaymentSuccessView";
10813
+ const ju = ({
10776
10814
  heading: e,
10777
10815
  amountLabel: t,
10778
10816
  value: n,
@@ -10837,8 +10875,8 @@ const Uu = ({
10837
10875
  }
10838
10876
  );
10839
10877
  };
10840
- Uu.displayName = "PaymentSubAmountInput";
10841
- const ju = {
10878
+ ju.displayName = "PaymentSubAmountInput";
10879
+ const Hu = {
10842
10880
  danger: {
10843
10881
  tile: "bg-danger-50 text-danger-600",
10844
10882
  icon: "solar:danger-circle-outline",
@@ -10849,7 +10887,7 @@ const ju = {
10849
10887
  icon: "solar:danger-triangle-outline",
10850
10888
  confirmColor: "warning"
10851
10889
  }
10852
- }, Hu = (e) => typeof e == "string" ? /* @__PURE__ */ a(U, { icon: e, className: "size-5", "aria-hidden": "true" }) : e, qu = ({
10890
+ }, qu = (e) => typeof e == "string" ? /* @__PURE__ */ a(U, { icon: e, className: "size-5", "aria-hidden": "true" }) : e, Wu = ({
10853
10891
  isOpen: e,
10854
10892
  title: t,
10855
10893
  confirmLabel: n,
@@ -10866,7 +10904,7 @@ const ju = {
10866
10904
  icon: m,
10867
10905
  "data-testid": w = "confirm-dialog"
10868
10906
  }) => {
10869
- const S = s ?? o ?? null, g = ju[c], N = y ? null : Hu(m ?? g.icon);
10907
+ const S = s ?? o ?? null, g = Hu[c], N = y ? null : qu(m ?? g.icon);
10870
10908
  return /* @__PURE__ */ a(
10871
10909
  _n,
10872
10910
  {
@@ -10881,7 +10919,7 @@ const ju = {
10881
10919
  classNames: { base: "rounded-3xl" },
10882
10920
  "data-testid": w,
10883
10921
  children: /* @__PURE__ */ f(On, { role: "alertdialog", children: [
10884
- /* @__PURE__ */ f(Pn, { className: "flex flex-col gap-3 p-0", children: [
10922
+ /* @__PURE__ */ f(Pn, { className: "flex flex-col items-center gap-3 p-0 text-center", children: [
10885
10923
  N ? /* @__PURE__ */ a(
10886
10924
  "div",
10887
10925
  {
@@ -10903,7 +10941,7 @@ const ju = {
10903
10941
  }
10904
10942
  )
10905
10943
  ] }),
10906
- S !== null ? /* @__PURE__ */ a(zn, { "data-testid": `${w}-body`, className: "gap-0 p-0", children: typeof S == "string" ? /* @__PURE__ */ a("p", { className: "text-sm text-gray-600", children: S }) : S }) : null,
10944
+ S !== null ? /* @__PURE__ */ a(zn, { "data-testid": `${w}-body`, className: "gap-0 p-0", children: typeof S == "string" ? /* @__PURE__ */ a("p", { className: "mx-auto max-w-sm text-center text-sm text-gray-600", children: S }) : S }) : null,
10907
10945
  /* @__PURE__ */ f(ha, { className: "flex flex-col-reverse gap-2 p-0 sm:flex-row sm:gap-3", children: [
10908
10946
  /* @__PURE__ */ a(
10909
10947
  W,
@@ -10936,14 +10974,14 @@ const ju = {
10936
10974
  }
10937
10975
  );
10938
10976
  };
10939
- qu.displayName = "ConfirmDialog";
10940
- const Wu = 60, Yu = (e, t, n = Wu) => t ? e > n : e < -n, Mi = (e, t) => Math.max(0, Math.min(e, t)), Gu = 160, Ku = (e, t, n = Gu) => Math.min(e, Math.max(0, t - n)), Qu = (e, t, n) => Mi(e - t, n), Zu = (e, t, n) => e !== null ? Mi(e, n) : t ? n : 0, Xu = (e) => e ? "" : "transition-[height] duration-300 ease-out", Ju = (e) => ({
10977
+ Wu.displayName = "ConfirmDialog";
10978
+ const Yu = 60, Gu = (e, t, n = Yu) => t ? e > n : e < -n, Ii = (e, t) => Math.max(0, Math.min(e, t)), Ku = 160, Qu = (e, t, n = Ku) => Math.min(e, Math.max(0, t - n)), Zu = (e, t, n) => Ii(e - t, n), Xu = (e, t, n) => e !== null ? Ii(e, n) : t ? n : 0, Ju = (e) => e ? "" : "transition-[height] duration-300 ease-out", ef = (e) => ({
10941
10979
  onDrag: (t, n) => {
10942
10980
  const r = e.open ? e.fullHeight : 0;
10943
- e.setDragHeight(Qu(r, n?.offset?.y ?? 0, e.fullHeight));
10981
+ e.setDragHeight(Zu(r, n?.offset?.y ?? 0, e.fullHeight));
10944
10982
  },
10945
10983
  onDragEnd: (t, n) => {
10946
- Yu(n?.offset?.y ?? 0, e.open) && e.onToggleOpen?.(), e.setDragHeight(null);
10984
+ Gu(n?.offset?.y ?? 0, e.open) && e.onToggleOpen?.(), e.setDragHeight(null);
10947
10985
  }
10948
10986
  }), at = (e, t) => rt(e.value, t, e.currency), lr = ({
10949
10987
  item: e,
@@ -11068,7 +11106,7 @@ const Wu = 60, Yu = (e, t, n = Wu) => t ? e > n : e < -n, Mi = (e, t) => Math.ma
11068
11106
  ] });
11069
11107
  };
11070
11108
  lr.displayName = "SummaryItemRow";
11071
- const Fi = ({ fee: e, locale: t, className: n }) => /* @__PURE__ */ f("div", { "data-testid": "summary-service-fee", className: b("flex items-center justify-between gap-2", n), children: [
11109
+ const Mi = ({ fee: e, locale: t, className: n }) => /* @__PURE__ */ f("div", { "data-testid": "summary-service-fee", className: b("flex items-center justify-between gap-2", n), children: [
11072
11110
  /* @__PURE__ */ f(
11073
11111
  "button",
11074
11112
  {
@@ -11097,7 +11135,7 @@ const Fi = ({ fee: e, locale: t, className: n }) => /* @__PURE__ */ f("div", { "
11097
11135
  ),
11098
11136
  /* @__PURE__ */ a("span", { "data-testid": "summary-service-fee-amount", className: "whitespace-nowrap text-base text-foreground", children: at(e.amount, t) })
11099
11137
  ] });
11100
- Fi.displayName = "SummaryServiceFeeRow";
11138
+ Mi.displayName = "SummaryServiceFeeRow";
11101
11139
  const or = ({
11102
11140
  row: e,
11103
11141
  locale: t,
@@ -11182,7 +11220,7 @@ const Li = ({
11182
11220
  )) }) : /* @__PURE__ */ a("div", { "data-testid": "summary-empty", children: d }),
11183
11221
  r && /* @__PURE__ */ f(we, { children: [
11184
11222
  /* @__PURE__ */ a(Ke, { className: "bg-default-200" }),
11185
- /* @__PURE__ */ a(Fi, { fee: r, locale: s, className: u.serviceFee })
11223
+ /* @__PURE__ */ a(Mi, { fee: r, locale: s, className: u.serviceFee })
11186
11224
  ] }),
11187
11225
  i && i.length > 0 && /* @__PURE__ */ a("div", { className: b("flex flex-col gap-4", u.totalsRows), children: i.map((y, m) => /* @__PURE__ */ a(or, { row: y, locale: s, emphasized: m === 0 }, y.key)) })
11188
11226
  ] });
@@ -11405,14 +11443,14 @@ const zi = ({
11405
11443
  l && /* @__PURE__ */ a("div", { children: l })
11406
11444
  ] });
11407
11445
  zi.displayName = "SummaryActionBar";
11408
- const ef = "(max-width: 767px)", tf = (e) => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia(e).matches : !1, nf = (e = ef) => {
11409
- const [t, n] = H(() => tf(e));
11410
- return Ie(() => {
11446
+ const tf = "(max-width: 767px)", nf = (e) => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia(e).matches : !1, rf = (e = tf) => {
11447
+ const [t, n] = H(() => nf(e));
11448
+ return Fe(() => {
11411
11449
  if (typeof window > "u" || typeof window.matchMedia != "function") return;
11412
11450
  const r = window.matchMedia(e), i = () => n(r.matches);
11413
11451
  return i(), r.addEventListener("change", i), () => r.removeEventListener("change", i);
11414
11452
  }, [e]), t;
11415
- }, rf = ({
11453
+ }, af = ({
11416
11454
  title: e = "Summary",
11417
11455
  pricesInLabel: t = "Prices are in",
11418
11456
  currency: n,
@@ -11435,25 +11473,25 @@ const ef = "(max-width: 767px)", tf = (e) => typeof window < "u" && typeof windo
11435
11473
  ctaCaption: $,
11436
11474
  variant: x,
11437
11475
  cart: v,
11438
- emptyState: I,
11439
- labels: F,
11476
+ emptyState: F,
11477
+ labels: M,
11440
11478
  classNames: T = {},
11441
11479
  "data-testid": A = "summary",
11442
11480
  className: z
11443
11481
  }) => {
11444
- const M = F?.removeAriaLabel ?? "Remove item", D = F?.removePostTotalRowAriaLabel ?? "Remove applied code", L = F?.toggleAriaLabel ?? "Toggle summary", O = F?.cartAriaLabel ?? "View cart", Z = nf(), K = h ?? (x ?? (Z ? "mobile" : "main")) === "mobile", [te, ie] = H(w), se = y !== void 0, j = !K || (se ? y : te), B = J(() => {
11482
+ const I = M?.removeAriaLabel ?? "Remove item", D = M?.removePostTotalRowAriaLabel ?? "Remove applied code", L = M?.toggleAriaLabel ?? "Toggle summary", O = M?.cartAriaLabel ?? "View cart", Z = rf(), K = h ?? (x ?? (Z ? "mobile" : "main")) === "mobile", [te, ie] = H(w), se = y !== void 0, j = !K || (se ? y : te), B = J(() => {
11445
11483
  se || ie((ve) => !ve), m?.();
11446
- }, [se, m]), [q, X] = H(0), [ue, me] = H(null), Me = ze(null), Ce = ze(null), xe = J(() => {
11447
- const ve = Me.current;
11448
- ve && X(Ku(ve.scrollHeight, window.innerHeight));
11484
+ }, [se, m]), [q, X] = H(0), [ue, me] = H(null), Ie = ze(null), Ce = ze(null), xe = J(() => {
11485
+ const ve = Ie.current;
11486
+ ve && X(Qu(ve.scrollHeight, window.innerHeight));
11449
11487
  }, []), Qe = J(
11450
11488
  (ve) => {
11451
- Ce.current?.disconnect(), Ce.current = null, Me.current = ve, ve && (xe(), typeof ResizeObserver < "u" && (Ce.current = new ResizeObserver(xe), Ce.current.observe(ve)));
11489
+ Ce.current?.disconnect(), Ce.current = null, Ie.current = ve, ve && (xe(), typeof ResizeObserver < "u" && (Ce.current = new ResizeObserver(xe), Ce.current.observe(ve)));
11452
11490
  },
11453
11491
  [xe]
11454
11492
  );
11455
- Ie(() => (window.addEventListener("resize", xe), () => window.removeEventListener("resize", xe)), [xe]);
11456
- const je = Ju({ open: j, fullHeight: q, setDragHeight: me, onToggleOpen: B }), He = ue !== null, qe = Zu(ue, j, q), Ze = q > 0 ? Math.min(1, Math.max(0, qe / q)) : j ? 1 : 0, Oe = /* @__PURE__ */ a(Ti, { total: l, locale: r, className: T.total }), ne = c && c.length > 0 && /* @__PURE__ */ a("div", { "data-testid": "summary-post-total-rows", className: "flex flex-col gap-4", children: c.map((ve) => /* @__PURE__ */ a(
11493
+ Fe(() => (window.addEventListener("resize", xe), () => window.removeEventListener("resize", xe)), [xe]);
11494
+ const je = ef({ open: j, fullHeight: q, setDragHeight: me, onToggleOpen: B }), He = ue !== null, qe = Xu(ue, j, q), Ze = q > 0 ? Math.min(1, Math.max(0, qe / q)) : j ? 1 : 0, Oe = /* @__PURE__ */ a(Ti, { total: l, locale: r, className: T.total }), ne = c && c.length > 0 && /* @__PURE__ */ a("div", { "data-testid": "summary-post-total-rows", className: "flex flex-col gap-4", children: c.map((ve) => /* @__PURE__ */ a(
11457
11495
  or,
11458
11496
  {
11459
11497
  row: ve,
@@ -11481,9 +11519,9 @@ const ef = "(max-width: 767px)", tf = (e) => typeof window < "u" && typeof windo
11481
11519
  rows: o,
11482
11520
  locale: r,
11483
11521
  onRemoveItem: N,
11484
- removeAriaLabel: M,
11522
+ removeAriaLabel: I,
11485
11523
  showRemoveButton: k,
11486
- emptyState: I,
11524
+ emptyState: F,
11487
11525
  classNames: T
11488
11526
  }
11489
11527
  );
@@ -11541,7 +11579,7 @@ const ef = "(max-width: 767px)", tf = (e) => typeof window < "u" && typeof windo
11541
11579
  "min-h-0",
11542
11580
  j && !He ? "overflow-y-auto overscroll-contain [scrollbar-width:none] [&::-webkit-scrollbar]:hidden" : "overflow-hidden",
11543
11581
  !j && "pointer-events-none",
11544
- Xu(He)
11582
+ Ju(He)
11545
11583
  ),
11546
11584
  children: /* @__PURE__ */ f("div", { ref: Qe, className: "flex flex-col gap-4 pb-4", children: [
11547
11585
  At,
@@ -11599,58 +11637,58 @@ const ef = "(max-width: 767px)", tf = (e) => typeof window < "u" && typeof windo
11599
11637
  }
11600
11638
  );
11601
11639
  };
11602
- rf.displayName = "Summary";
11640
+ af.displayName = "Summary";
11603
11641
  export {
11604
11642
  ao as AppliedCodeCard,
11605
11643
  W as Button,
11606
- sm as CashTenderForm,
11644
+ lm as CashTenderForm,
11607
11645
  Pd as CatalogItemCard,
11608
- wu as CheckTenderForm,
11609
- gu as CheckboxCardGroup,
11610
- em as CommitmentDetails,
11611
- qu as ConfirmDialog,
11646
+ Nu as CheckTenderForm,
11647
+ bu as CheckboxCardGroup,
11648
+ tm as CommitmentDetails,
11649
+ Wu as ConfirmDialog,
11612
11650
  ir as ConfirmationModal,
11613
- Bf as ConfirmationPageTemplate,
11651
+ Uf as ConfirmationPageTemplate,
11614
11652
  ai as DatePicker,
11615
- hu as DimensionChip,
11653
+ pu as DimensionChip,
11616
11654
  dc as DonationAmounts,
11617
11655
  Ci as EmptyState,
11618
11656
  Si as ErrorState,
11619
- qf as EventDetails,
11620
- Uf as EventDetailsTemplate,
11657
+ Wf as EventDetails,
11658
+ jf as EventDetailsTemplate,
11621
11659
  hc as ExpireCartTimer,
11622
11660
  $t as FeedbackState,
11623
11661
  ru as FilterPopover,
11624
- jf as Footer,
11625
- zf as HeroUIProvider,
11626
- Xf as InstallmentFundAssignment,
11627
- Jf as InstallmentFundAssignmentSkeleton,
11628
- tm as InstallmentSchedule,
11629
- nm as InstallmentScheduleSkeleton,
11630
- rm as InstallmentTable,
11662
+ Hf as Footer,
11663
+ Rf as HeroUIProvider,
11664
+ Jf as InstallmentFundAssignment,
11665
+ em as InstallmentFundAssignmentSkeleton,
11666
+ nm as InstallmentSchedule,
11667
+ rm as InstallmentScheduleSkeleton,
11668
+ am as InstallmentTable,
11631
11669
  Od as ItemCard,
11632
- bu as ListPanel,
11633
- Vu as LoadingOverlay,
11670
+ yu as ListPanel,
11671
+ Bu as LoadingOverlay,
11634
11672
  $i as LoadingState,
11635
- am as MembershipSelectCards,
11636
- Lu as ModalShell,
11637
- _u as ModalShellFooter,
11638
- Tu as ModalShellHeader,
11639
- Hf as Multiselect,
11640
- Vf as Navbar,
11673
+ im as MembershipSelectCards,
11674
+ Tu as ModalShell,
11675
+ Ou as ModalShellFooter,
11676
+ _u as ModalShellHeader,
11677
+ qf as Multiselect,
11678
+ Bf as Navbar,
11641
11679
  An as OfferCard,
11642
11680
  gc as OfferCardEmpty,
11643
11681
  yc as OfferCardError,
11644
11682
  Cc as OfferCardList,
11645
11683
  vc as OfferCardSkeleton,
11646
- Cu as OtherTenderForm,
11684
+ Su as OtherTenderForm,
11647
11685
  du as PageHeader,
11648
- Ii as PaymentCashChangeBanner,
11649
- Uu as PaymentSubAmountInput,
11650
- Bu as PaymentSuccessView,
11651
- zu as PaymentTotalBanner,
11686
+ Fi as PaymentCashChangeBanner,
11687
+ ju as PaymentSubAmountInput,
11688
+ Uu as PaymentSuccessView,
11689
+ Ru as PaymentTotalBanner,
11652
11690
  tc as RICH_TEXT_PRESETS,
11653
- Rf as RedeemCodeInput,
11691
+ Vf as RedeemCodeInput,
11654
11692
  Gc as RevenueDistributionCard,
11655
11693
  Kc as RevenueDistributionEmpty,
11656
11694
  Zc as RevenueDistributionError,
@@ -11659,27 +11697,27 @@ export {
11659
11697
  nt as Select,
11660
11698
  ou as SessionTimeline,
11661
11699
  Iu as SplitPaymentSummary,
11662
- fu as StatusChip,
11700
+ mu as StatusChip,
11663
11701
  To as Stepper,
11664
11702
  Hd as SuccessState,
11665
- rf as Summary,
11666
- im as TicketSelection,
11667
- Ou as TileSelect,
11703
+ af as Summary,
11704
+ sm as TicketSelection,
11705
+ Pu as TileSelect,
11668
11706
  qd as Toggle,
11669
- Zf as calculateAllocationDifference,
11707
+ Xf as calculateAllocationDifference,
11670
11708
  Pr as computeChange,
11671
11709
  ii as currencyFractionDigits,
11672
11710
  rt as formatMoney,
11673
11711
  Br as formatOfferCurrency,
11674
- Yf as formatRevenueAmount,
11675
- Gf as formatRevenueCurrency,
11712
+ Gf as formatRevenueAmount,
11713
+ Kf as formatRevenueCurrency,
11676
11714
  pd as generateAutomaticInstallments,
11677
11715
  xi as generateDistributionId,
11678
- Kf as getCurrencySymbol,
11716
+ Qf as getCurrencySymbol,
11679
11717
  Nc as offerCardVariants,
11680
11718
  wc as offerListVariants,
11681
- Wf as parseOfferCurrency,
11682
- Qf as parseRevenueCurrency,
11719
+ Yf as parseOfferCurrency,
11720
+ Zf as parseRevenueCurrency,
11683
11721
  _o as roundToCurrency
11684
11722
  };
11685
11723
  (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('.ProseMirror{flex:1;width:100%;min-height:100%;height:100%;cursor:text;background-color:#fff;padding:1rem;overflow-y:auto;box-sizing:border-box}.ProseMirror p{min-height:1.5em}.dark .ProseMirror{background-color:rgb(var(--nextui-background))}.ProseMirror ul{list-style-type:disc!important;list-style-position:outside!important;padding-left:2rem!important;margin:1rem 0!important;display:block!important}.ProseMirror ol{list-style-type:decimal!important;list-style-position:outside!important;padding-left:2rem!important;margin:1rem 0!important;display:block!important}.ProseMirror ul li,.ProseMirror ol li{display:list-item!important;list-style:inherit!important;margin:.25rem 0!important}.ProseMirror ul li p,.ProseMirror ol li p{margin:0!important;display:inline!important}.ProseMirror ul[data-type=taskList]{list-style:none!important;padding-left:0!important;margin:1rem 0!important}.ProseMirror ul[data-type=taskList] li{display:flex!important;align-items:flex-start!important;margin:.5rem 0!important}.ProseMirror ul[data-type=taskList] li label{margin-right:.5rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ProseMirror ul[data-type=taskList] li input[type=checkbox]{cursor:pointer;margin-top:.25rem}.ProseMirror h1,.ProseMirror h2,.ProseMirror h3,.ProseMirror h4,.ProseMirror h5,.ProseMirror h6{line-height:1.2!important;margin:1rem 0 .5rem!important;font-weight:600!important}.ProseMirror h1{font-size:2rem!important}.ProseMirror h2{font-size:1.5rem!important}.ProseMirror h3{font-size:1.25rem!important}.ProseMirror h4{font-size:1.1rem!important}.ProseMirror h5{font-size:1rem!important;font-weight:600!important}.ProseMirror h6{font-size:.9rem!important;font-weight:600!important}.ProseMirror code{background-color:rgb(var(--nextui-default-100));border-radius:.4rem;color:rgb(var(--nextui-default-800));font-size:.85rem;padding:.25em .3em}.ProseMirror pre{background:rgb(var(--nextui-default-900));border-radius:.5rem;color:rgb(var(--nextui-default-50));font-family:JetBrainsMono,monospace;margin:1.5rem 0;padding:.75rem 1rem;overflow-x:auto}.ProseMirror pre code{background:none;color:inherit;font-size:.8rem;padding:0}.ProseMirror mark{background-color:#faf594;border-radius:.4rem;-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:.1rem .3rem}.ProseMirror blockquote{border-left:3px solid rgb(var(--nextui-default-300));margin:1.5rem 0;padding-left:1rem;color:rgb(var(--nextui-default-600))}.ProseMirror hr{border:none;border-top:1px solid rgb(var(--nextui-divider));margin:2rem 0}.ProseMirror a{color:rgb(var(--nextui-primary));text-decoration:underline;cursor:pointer}.ProseMirror a:hover{text-decoration:underline}.ProseMirror strong{font-weight:700!important}.ProseMirror em{font-style:italic!important}.ProseMirror s{text-decoration:line-through!important}.ProseMirror u{text-decoration:underline!important}.ProseMirror .has-text-align-left,.ProseMirror [style*="text-align: left"]{text-align:left!important}.ProseMirror .has-text-align-center,.ProseMirror [style*="text-align: center"]{text-align:center!important}.ProseMirror .has-text-align-right,.ProseMirror [style*="text-align: right"]{text-align:right!important}.ProseMirror .has-text-align-justify,.ProseMirror [style*="text-align: justify"]{text-align:justify!important}.ProseMirror ul li[style*="text-align: left"],.ProseMirror ol li[style*="text-align: left"]{text-align:left!important;list-style-position:inside!important}.ProseMirror ul li[style*="text-align: center"],.ProseMirror ol li[style*="text-align: center"]{text-align:center!important;list-style-position:inside!important}.ProseMirror ul li[style*="text-align: right"],.ProseMirror ol li[style*="text-align: right"]{text-align:right!important;list-style-position:inside!important}.ProseMirror ul li[style*="text-align: justify"],.ProseMirror ol li[style*="text-align: justify"]{text-align:justify!important;list-style-position:inside!important}.ProseMirror ul[data-type=taskList] li[style*="text-align: left"]{justify-content:flex-start!important}.ProseMirror ul[data-type=taskList] li[style*="text-align: center"]{justify-content:center!important}.ProseMirror ul[data-type=taskList] li[style*="text-align: right"]{justify-content:flex-end!important}.ProseMirror p.is-editor-empty:first-child:before{color:rgb(var(--nextui-default-400));content:attr(data-placeholder);float:left;height:0;pointer-events:none}')),document.head.appendChild(r)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();