@tempots/beatui 0.40.0 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/README.md +11 -11
  2. package/dist/{2019-nWH_nAwT.cjs → 2019-BFDr925O.cjs} +1 -1
  3. package/dist/{2019-sCKLAY8c.js → 2019-DnG5Y5sm.js} +2 -2
  4. package/dist/{2020-B4xCW_nu.js → 2020-D0-tZTo7.js} +2 -2
  5. package/dist/{2020-D7RWX09D.cjs → 2020-gUs7l1CJ.cjs} +1 -1
  6. package/dist/{ar-D_4BfIJO.cjs → ar-BLgxAefV.cjs} +1 -1
  7. package/dist/{ar-i2uHmy8P.js → ar-DpQo8C31.js} +1 -1
  8. package/dist/auth/index.cjs.js +1 -1
  9. package/dist/auth/index.es.js +4 -4
  10. package/dist/beatui.css +35 -22
  11. package/dist/beatui.tailwind.css +35 -22
  12. package/dist/{de-C0PZz9sE.cjs → de-Bv-qs--J.cjs} +1 -1
  13. package/dist/{de-CeLwmVZz.js → de-D1MQ4wen.js} +1 -1
  14. package/dist/{es-C8qT1ins.cjs → es-3r8Ko5Dn.cjs} +1 -1
  15. package/dist/{es-DxOgARww.js → es-DwPjonS7.js} +1 -1
  16. package/dist/{fa-BFV9MxMX.cjs → fa-Qw6uVZeX.cjs} +1 -1
  17. package/dist/{fa-B9pEff8A.js → fa-fxf_lWjh.js} +1 -1
  18. package/dist/{fr-Caeevx56.js → fr-BDDsMHRZ.js} +1 -1
  19. package/dist/{fr-BBx5IJ7G.cjs → fr-pVhG9qik.cjs} +1 -1
  20. package/dist/{he-DeN-WW3u.js → he-B4deK_wE.js} +1 -1
  21. package/dist/{he-CMOvd4Dr.cjs → he-D-fvzfe1.cjs} +1 -1
  22. package/dist/{hi-Dey2HxiD.js → hi-CxQT8nRD.js} +1 -1
  23. package/dist/{hi-IOU_PzvH.cjs → hi-DKgxHzmH.cjs} +1 -1
  24. package/dist/{index-HqWBd-jW.js → index-Acyxme63.js} +3 -3
  25. package/dist/{index-B0ff5lT-.cjs → index-BZ2AX5sk.cjs} +2 -2
  26. package/dist/{index-DJqo6Guq.js → index-BwEJlbG2.js} +1 -1
  27. package/dist/{index-BTZqW3-b.js → index-CWq36UAJ.js} +710 -710
  28. package/dist/{index-IQ3lRaL0.js → index-Clw0AwwJ.js} +1 -1
  29. package/dist/{index-C2VAPX2b.cjs → index-DRDJFYRb.cjs} +1 -1
  30. package/dist/{index-D8fg48Fv.cjs → index-Lj0QS2po.cjs} +1 -1
  31. package/dist/{index-Dtka01mK.cjs → index-nVVPqgLq.cjs} +1 -1
  32. package/dist/index.cjs.js +4 -4
  33. package/dist/index.es.js +1862 -1865
  34. package/dist/{it-DghnQdZa.js → it-6QS5PWzQ.js} +1 -1
  35. package/dist/{it-uQF0jkDT.cjs → it-Ck0r9TO3.cjs} +1 -1
  36. package/dist/{ja-Kb7rxmFg.js → ja-D2VvVGEN.js} +1 -1
  37. package/dist/{ja-BJD6uPbl.cjs → ja-D6b9suYB.cjs} +1 -1
  38. package/dist/json-schema/index.cjs.js +1 -1
  39. package/dist/json-schema/index.es.js +1 -1
  40. package/dist/{ko-53o5WJ-v.js → ko-CP_WopWz.js} +1 -1
  41. package/dist/{ko-B7bLdRnp.cjs → ko-CzvM2Bjv.cjs} +1 -1
  42. package/dist/{modal-BRUgTJG9.cjs → modal-BmSRMdY9.cjs} +1 -1
  43. package/dist/{modal-_2B8vIo0.js → modal-DMc-R2VT.js} +2 -2
  44. package/dist/{nl-DvUVT7xd.js → nl-DZ4dFolZ.js} +1 -1
  45. package/dist/{nl-CJE0fC8g.cjs → nl-_9vJc8JD.cjs} +1 -1
  46. package/dist/{notice-C4n5jXi6.js → notice-B5Yn_3Ay.js} +89 -89
  47. package/dist/{notice-CncwkUTy.cjs → notice-D3P0lewM.cjs} +2 -2
  48. package/dist/{pl-C3oYeTwf.js → pl-BE81iFSF.js} +1 -1
  49. package/dist/{pl-DUaY5slY.cjs → pl-DKcVCojx.cjs} +1 -1
  50. package/dist/prosemirror/index.cjs.js +1 -1
  51. package/dist/prosemirror/index.es.js +1 -1
  52. package/dist/{pt-BJGeScun.js → pt-BcCdXUA2.js} +1 -1
  53. package/dist/{pt-BAqNKCuy.cjs → pt-DNVS1_MF.cjs} +1 -1
  54. package/dist/{ru-2irv1YXp.js → ru-Bo_jc3s1.js} +1 -1
  55. package/dist/{ru-CAlgJm3K.cjs → ru-DTn9Rssv.cjs} +1 -1
  56. package/dist/{toolbar-CVDXVnje.js → toolbar-DhD5GmMa.js} +1 -1
  57. package/dist/{toolbar-B7HrL0vD.cjs → toolbar-jPGzdJGi.cjs} +1 -1
  58. package/dist/{tr-DMiXAhok.cjs → tr-BhTJYHQ3.cjs} +1 -1
  59. package/dist/{tr-CkHLE5u7.js → tr-CBw3FlOg.js} +1 -1
  60. package/dist/{translations-Q5C5LyIi.js → translations-B0HuWYIz.js} +1 -1
  61. package/dist/{translations-DRNj0YIi.cjs → translations-B7_3phoA.cjs} +1 -1
  62. package/dist/translations-C21osktO.cjs +1 -0
  63. package/dist/{translations-DEEflRUY.js → translations-D-fMB_IO.js} +195 -167
  64. package/dist/types/components/form/controller/color-controller.d.ts +1 -1
  65. package/dist/types/components/form/input/color-input.d.ts +2 -5
  66. package/dist/types/components/form/input/color-swatch-input.d.ts +9 -0
  67. package/dist/types/components/form/input/index.d.ts +1 -0
  68. package/dist/types/components/form/input/input-container.d.ts +7 -0
  69. package/dist/types/utils/{color-validation.d.ts → color.d.ts} +13 -0
  70. package/dist/types/utils/index.d.ts +1 -1
  71. package/dist/{ur-BjiNs3SL.cjs → ur-BjuXyU8Z.cjs} +1 -1
  72. package/dist/{ur-bxBR_9Z-.js → ur-BsXnPgxd.js} +1 -1
  73. package/dist/utils-BOEQMy82.js +2512 -0
  74. package/dist/utils-DH-SYrQg.cjs +1 -0
  75. package/dist/{vi-CByOZvV2.cjs → vi-CvsTHMkK.cjs} +1 -1
  76. package/dist/{vi-CKknZqol.js → vi-D1rLo6MX.js} +1 -1
  77. package/dist/{zh-CmUgcP9o.js → zh-BoLsjdfz.js} +1 -1
  78. package/dist/{zh-C0QOebEA.cjs → zh-zh1FJ4Ud.cjs} +1 -1
  79. package/package.json +2 -2
  80. package/dist/translations-Dw1oO6Dh.cjs +0 -1
  81. package/dist/utils-BCbc19N0.js +0 -2427
  82. package/dist/utils-BJZipnfW.cjs +0 -1
@@ -1,5 +1,5 @@
1
1
  import { Use as q, coalesce as J, aria as B, attr as o, html as b, on as E, Value as y, Empty as _, computedOf as C, OnDispose as Q, When as O, dataAttr as U, input as ne, emitValue as x, prop as I, Fragment as F, emitValueAsNumber as ie, Unless as ae, Ensure as re } from "@tempots/dom";
2
- import { a as z, B as le, I as N, b as R, C as X } from "./translations-DEEflRUY.js";
2
+ import { a as z, B as le, I as L, b as R, c as ce, C as X } from "./translations-D-fMB_IO.js";
3
3
  const W = /* @__PURE__ */ new Map();
4
4
  function Y(e) {
5
5
  const s = W.get(e) ?? 0;
@@ -456,7 +456,7 @@ const S = {
456
456
  return m.success(s);
457
457
  }
458
458
  };
459
- function ce({
459
+ function oe({
460
460
  size: e = "sm",
461
461
  icon: s = "line-md:close",
462
462
  disabled: t,
@@ -479,14 +479,14 @@ function ce({
479
479
  o.title(f),
480
480
  B.label(f),
481
481
  ...r,
482
- N({ icon: s, size: e ?? "sm" })
482
+ L({ icon: s, size: e ?? "sm" })
483
483
  );
484
484
  });
485
485
  }
486
486
  function H(e) {
487
487
  return `bc-label bc-label--${e}`;
488
488
  }
489
- const Ae = (...e) => b.span(o.class(H("emphasis")), ...e), oe = (...e) => b.span(o.class(H("default")), ...e), ue = (...e) => b.span(o.class(H("muted")), ...e), Ve = (...e) => b.span(o.class(H("danger")), ...e), Oe = (e) => {
489
+ const Ve = (...e) => b.span(o.class(H("emphasis")), ...e), ue = (...e) => b.span(o.class(H("default")), ...e), he = (...e) => b.span(o.class(H("muted")), ...e), Oe = (...e) => b.span(o.class(H("danger")), ...e), Me = (e) => {
490
490
  const {
491
491
  value: s,
492
492
  onBlur: t,
@@ -538,7 +538,7 @@ const Ae = (...e) => b.span(o.class(H("emphasis")), ...e), oe = (...e) => b.span
538
538
  n != null ? B.labelledby(g) : _,
539
539
  E.keydown(v),
540
540
  t != null ? E.blur(t) : _,
541
- N({
541
+ L({
542
542
  icon: C(
543
543
  s,
544
544
  r,
@@ -554,21 +554,21 @@ const Ae = (...e) => b.span(o.class(H("emphasis")), ...e), oe = (...e) => b.span
554
554
  o.class("bc-checkbox-input__label"),
555
555
  o.id(g),
556
556
  o.for(u),
557
- ue(n)
557
+ he(n)
558
558
  ) : _
559
559
  )
560
560
  },
561
561
  E.click(w)
562
562
  );
563
- }, he = b.span(
563
+ }, de = b.span(
564
564
  o.class("bc-input-wrapper__required"),
565
565
  " *"
566
566
  );
567
- function de(e) {
567
+ function pe(e) {
568
568
  const s = ["bc-input-wrapper"];
569
569
  return e !== "vertical" && s.push(`bc-input-wrapper--${e}`), s.join(" ");
570
570
  }
571
- function pe(e, s) {
571
+ function fe(e, s) {
572
572
  const t = ["bc-input-wrapper__label-text"];
573
573
  return e ? t.push("bc-input-wrapper__label-text--error") : s ? t.push("bc-input-wrapper__label-text--disabled") : t.push("bc-input-wrapper__label-text--default"), t.join(" ");
574
574
  }
@@ -591,10 +591,10 @@ const Z = ({
591
591
  layout: g,
592
592
  labelWidth: w
593
593
  }, ...v) => {
594
- const h = f ?? r != null, d = u ?? !1, p = g ?? "vertical", T = Y("input-wrapper"), A = a ? `${T}-description` : void 0, $ = r != null ? `${T}-error` : void 0, L = C(p)((k) => k !== "vertical");
594
+ const h = f ?? r != null, d = u ?? !1, p = g ?? "vertical", T = Y("input-wrapper"), A = a ? `${T}-description` : void 0, $ = r != null ? `${T}-error` : void 0, N = C(p)((k) => k !== "vertical");
595
595
  return b.div(
596
- Q(L),
597
- o.class(y.map(p, (k) => de(k))),
596
+ Q(N),
597
+ o.class(y.map(p, (k) => pe(k))),
598
598
  o.class(
599
599
  y.map(
600
600
  e,
@@ -629,7 +629,7 @@ const Z = ({
629
629
  h,
630
630
  d
631
631
  )(
632
- (k, V) => pe(
632
+ (k, V) => fe(
633
633
  k ?? !1,
634
634
  V ?? !1
635
635
  )
@@ -637,12 +637,12 @@ const Z = ({
637
637
  ),
638
638
  t
639
639
  ),
640
- t != null && s ? he : _
640
+ t != null && s ? de : _
641
641
  ),
642
642
  // Show description under label when horizontal
643
643
  O(
644
644
  C(
645
- L,
645
+ N,
646
646
  a
647
647
  )((k, V) => k && V != null),
648
648
  () => b.div(
@@ -654,7 +654,7 @@ const Z = ({
654
654
  )
655
655
  )
656
656
  ),
657
- n != null ? oe(n) : _,
657
+ n != null ? ue(n) : _,
658
658
  i
659
659
  ) : _,
660
660
  b.div(
@@ -669,7 +669,7 @@ const Z = ({
669
669
  ),
670
670
  // Show description at bottom only when not horizontal
671
671
  O(
672
- C(L, a)((k, V) => !k && V != null),
672
+ C(N, a)((k, V) => !k && V != null),
673
673
  () => b.div(
674
674
  o.class("bc-input-wrapper__description"),
675
675
  o.id(A),
@@ -691,10 +691,10 @@ const Z = ({
691
691
  ...v
692
692
  );
693
693
  };
694
- function Me(...e) {
694
+ function $e(...e) {
695
695
  return b.div(o.class("bc-stack"), ...e);
696
696
  }
697
- const $e = (e) => {
697
+ const xe = (e) => {
698
698
  const s = {
699
699
  name: "email",
700
700
  autocomplete: "email",
@@ -706,9 +706,9 @@ const $e = (e) => {
706
706
  onChange: a,
707
707
  onInput: l,
708
708
  placeholder: r
709
- } = s, c = i ?? N({
709
+ } = s, c = i ?? ce({
710
710
  icon: "line-md:email",
711
- size: "sm",
711
+ size: e.size,
712
712
  color: "neutral"
713
713
  });
714
714
  return q(
@@ -727,7 +727,7 @@ const $e = (e) => {
727
727
  )
728
728
  })
729
729
  );
730
- }, xe = (e) => {
730
+ }, Fe = (e) => {
731
731
  const {
732
732
  value: s,
733
733
  onBlur: t,
@@ -753,15 +753,15 @@ const $e = (e) => {
753
753
  d.$.passwordPlaceholderText,
754
754
  v,
755
755
  u
756
- )((A, $, L) => $ ? "•••••••••••••••" : L ?? A), T = b.button(
756
+ )((A, $, N) => $ ? "•••••••••••••••" : N ?? A), T = b.button(
757
757
  o.type("button"),
758
758
  o.class("bc-input-container__password-toggle"),
759
759
  B.label(d.$.togglePasswordVisibility),
760
760
  E.click(() => v.update((A) => !A)),
761
761
  O(
762
762
  v,
763
- () => N({ icon: "line-md:watch" }),
764
- () => N({ icon: "line-md:watch-off" })
763
+ () => L({ icon: "line-md:watch" }),
764
+ () => L({ icon: "line-md:watch-off" })
765
765
  )
766
766
  );
767
767
  return R({
@@ -788,12 +788,12 @@ const $e = (e) => {
788
788
  after: l != null ? F(T, l) : T
789
789
  });
790
790
  });
791
- }, fe = (
791
+ }, be = (
792
792
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
793
793
  (e, s) => () => {
794
794
  e.markTouched(), s?.();
795
795
  }
796
- ), be = (e, s) => (t) => {
796
+ ), me = (e, s) => (t) => {
797
797
  e.change(t), s?.(t);
798
798
  };
799
799
  function ee(e, s) {
@@ -804,11 +804,11 @@ function ee(e, s) {
804
804
  value: t.signal,
805
805
  hasError: t.errorVisible,
806
806
  ...a,
807
- onChange: be(t, n),
808
- onBlur: fe(t, i)
807
+ onChange: me(t, n),
808
+ onBlur: be(t, i)
809
809
  });
810
810
  }
811
- function Fe(e, s, ...t) {
811
+ function Pe(e, s, ...t) {
812
812
  return Z(
813
813
  {
814
814
  ...s,
@@ -820,37 +820,37 @@ function Fe(e, s, ...t) {
820
820
  ...t
821
821
  );
822
822
  }
823
- function me(e, s) {
823
+ function ge(e, s) {
824
824
  const { toInput: t, fromInput: i, controller: n, ...a } = s, l = n.transform(t, i);
825
825
  return ee(e, {
826
826
  ...a,
827
827
  controller: l
828
828
  });
829
829
  }
830
- function Pe(e, s, ...t) {
830
+ function Be(e, s, ...t) {
831
831
  return Z(
832
832
  {
833
833
  ...s,
834
- content: me(e, s)
834
+ content: ge(e, s)
835
835
  },
836
836
  ...t
837
837
  );
838
838
  }
839
- function Be(e) {
839
+ function Ne(e) {
840
840
  return e.split(".").map((t) => {
841
841
  const i = t.match(/^\[(\d+)\]$/);
842
842
  return i ? Number(i[1]) : t;
843
843
  });
844
844
  }
845
- function ge(e) {
845
+ function ve(e) {
846
846
  return typeof e == "number" ? `[${e}]` : `.${e}`;
847
847
  }
848
- function ve(e) {
848
+ function ye(e) {
849
849
  if (e.length === 0) return "";
850
850
  const [s, ...t] = e;
851
851
  return [
852
852
  typeof s == "number" ? `[${s}]` : s,
853
- ...t.map(ge)
853
+ ...t.map(ve)
854
854
  ].join("");
855
855
  }
856
856
  function j(e) {
@@ -909,7 +909,7 @@ class M {
909
909
  });
910
910
  }
911
911
  get name() {
912
- return ve(this.path);
912
+ return ye(this.path);
913
913
  }
914
914
  onDispose = (s) => {
915
915
  this.#n.push(s);
@@ -940,7 +940,7 @@ class M {
940
940
  reset = () => {
941
941
  this.change(this.#s.value);
942
942
  };
943
- array = (s = P) => new we(
943
+ array = (s = P) => new ke(
944
944
  this.path,
945
945
  this.change,
946
946
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -949,7 +949,7 @@ class M {
949
949
  this.parent,
950
950
  s
951
951
  );
952
- object = (s = P) => new ye(
952
+ object = (s = P) => new we(
953
953
  this.path,
954
954
  this.change,
955
955
  this.signal,
@@ -976,7 +976,7 @@ class M {
976
976
  a
977
977
  );
978
978
  }
979
- class ye extends M {
979
+ class we extends M {
980
980
  #e = /* @__PURE__ */ new Map();
981
981
  #t = /* @__PURE__ */ new Map();
982
982
  #s = /* @__PURE__ */ new Map();
@@ -1076,7 +1076,7 @@ class ye extends M {
1076
1076
  this.#l.set(this.dirty.value || s);
1077
1077
  };
1078
1078
  }
1079
- class we extends M {
1079
+ class ke extends M {
1080
1080
  #e = new Array();
1081
1081
  length;
1082
1082
  #t = /* @__PURE__ */ new Map();
@@ -1196,7 +1196,7 @@ class we extends M {
1196
1196
  this.#l.set(this.dirty.value || s);
1197
1197
  };
1198
1198
  }
1199
- function ke(e) {
1199
+ function Se(e) {
1200
1200
  function s(t) {
1201
1201
  return typeof t == "number" ? t : t.toString();
1202
1202
  }
@@ -1204,9 +1204,9 @@ function ke(e) {
1204
1204
  (t) => typeof t == "object" && t.key != null ? s(t.key) : s(t)
1205
1205
  );
1206
1206
  }
1207
- function Se(e) {
1207
+ function Ce(e) {
1208
1208
  const s = e.filter((n) => n.path == null || n.path.length === 0).map((n) => n.message), t = e.filter((n) => n.path != null && n.path.length > 0).reduce((n, a) => {
1209
- const l = ke(a.path), r = l.pop();
1209
+ const l = Se(a.path), r = l.pop();
1210
1210
  let c = n;
1211
1211
  for (const f of l)
1212
1212
  c.dependencies == null && (c.dependencies = {}), c.dependencies[f] == null && (c.dependencies[f] = {}), c = c.dependencies[f];
@@ -1218,7 +1218,7 @@ function Se(e) {
1218
1218
  message: i != "" ? i : void 0
1219
1219
  };
1220
1220
  }
1221
- function Ce({
1221
+ function _e({
1222
1222
  initialValue: e,
1223
1223
  onChange: s,
1224
1224
  validate: t,
@@ -1264,7 +1264,7 @@ function Ce({
1264
1264
  function se(e) {
1265
1265
  return F(o.disabled(e.disabled), o.name(e.name));
1266
1266
  }
1267
- function Ne(e, {
1267
+ function Le(e, {
1268
1268
  triggerOn: s = "change"
1269
1269
  } = {}) {
1270
1270
  return F(
@@ -1273,7 +1273,7 @@ function Ne(e, {
1273
1273
  (s === "input" ? E.input : E.change)(x(e.change))
1274
1274
  );
1275
1275
  }
1276
- function Le(e, {
1276
+ function je(e, {
1277
1277
  triggerOn: s = "change"
1278
1278
  } = {}) {
1279
1279
  return F(
@@ -1285,9 +1285,9 @@ function Le(e, {
1285
1285
  );
1286
1286
  }
1287
1287
  function G(e) {
1288
- return e.issues != null ? D.invalid(Se(e.issues)) : D.valid;
1288
+ return e.issues != null ? D.invalid(Ce(e.issues)) : D.valid;
1289
1289
  }
1290
- async function je({
1290
+ async function qe({
1291
1291
  task: e,
1292
1292
  errorMessage: s,
1293
1293
  errorPath: t = ["root"],
@@ -1317,14 +1317,14 @@ function te(e, s) {
1317
1317
  }
1318
1318
  };
1319
1319
  }
1320
- function qe({
1320
+ function ze({
1321
1321
  initialValue: e = {},
1322
1322
  schema: s,
1323
1323
  onSubmit: t = async () => D.valid,
1324
1324
  validationMode: i,
1325
1325
  validateDebounceMs: n
1326
1326
  }) {
1327
- const { controller: a, setStatus: l } = Ce({
1327
+ const { controller: a, setStatus: l } = _e({
1328
1328
  initialValue: e,
1329
1329
  validationMode: i ?? "touchedOrSubmit",
1330
1330
  validateDebounceMs: n,
@@ -1354,7 +1354,7 @@ function qe({
1354
1354
  submitting: r
1355
1355
  };
1356
1356
  }
1357
- function _e(e) {
1357
+ function De(e) {
1358
1358
  switch (e) {
1359
1359
  case "success":
1360
1360
  return "material-symbols:check-circle-outline";
@@ -1367,7 +1367,7 @@ function _e(e) {
1367
1367
  return "material-symbols:info-outline";
1368
1368
  }
1369
1369
  }
1370
- function De(e) {
1370
+ function Ee(e) {
1371
1371
  switch (e) {
1372
1372
  case "success":
1373
1373
  return "success";
@@ -1380,7 +1380,7 @@ function De(e) {
1380
1380
  return "info";
1381
1381
  }
1382
1382
  }
1383
- function Ee(e, s, t, i) {
1383
+ function Ie(e, s, t, i) {
1384
1384
  const n = [
1385
1385
  "bc-notice",
1386
1386
  `bc-notice--${e}`,
@@ -1388,7 +1388,7 @@ function Ee(e, s, t, i) {
1388
1388
  ];
1389
1389
  return t && n.push("bc-notice--dismissible"), i && i.length > 0 && n.push(i), n.join(" ");
1390
1390
  }
1391
- function ze({
1391
+ function He({
1392
1392
  variant: e = "info",
1393
1393
  tone: s = "subtle",
1394
1394
  role: t,
@@ -1415,7 +1415,7 @@ function ze({
1415
1415
  g,
1416
1416
  f,
1417
1417
  r
1418
- )((p, T, A, $) => Ee(p, T, A, $))
1418
+ )((p, T, A, $) => Ie(p, T, A, $))
1419
1419
  ),
1420
1420
  // Accessibility role mapping (always defined)
1421
1421
  o.role(y.map(w, (p) => p)),
@@ -1423,13 +1423,13 @@ function ze({
1423
1423
  y.map(n, (p) => p === !1),
1424
1424
  () => b.div(
1425
1425
  o.class("bc-notice__icon"),
1426
- N({
1426
+ L({
1427
1427
  icon: C(
1428
1428
  n,
1429
1429
  u
1430
- )((p, T) => p === void 0 ? _e(T) : String(p)),
1430
+ )((p, T) => p === void 0 ? De(T) : String(p)),
1431
1431
  size: "md",
1432
- color: y.map(u, De)
1432
+ color: y.map(u, Ee)
1433
1433
  })
1434
1434
  )
1435
1435
  ),
@@ -1440,7 +1440,7 @@ function ze({
1440
1440
  ),
1441
1441
  O(
1442
1442
  f,
1443
- () => ce({
1443
+ () => oe({
1444
1444
  size: "xs",
1445
1445
  label: d.$.closeModal,
1446
1446
  onClick: () => {
@@ -1462,41 +1462,41 @@ function ze({
1462
1462
  );
1463
1463
  }
1464
1464
  export {
1465
- we as A,
1465
+ ke as A,
1466
1466
  ee as B,
1467
- ce as C,
1468
- Ve as D,
1469
- $e as E,
1467
+ oe as C,
1468
+ Oe as D,
1469
+ xe as E,
1470
1470
  Z as I,
1471
- oe as L,
1472
- Pe as M,
1473
- ze as N,
1471
+ ue as L,
1472
+ Be as M,
1473
+ He as N,
1474
1474
  P as O,
1475
- xe as P,
1476
- he as R,
1477
- Me as S,
1475
+ Fe as P,
1476
+ de as R,
1477
+ $e as S,
1478
1478
  D as a,
1479
- Oe as b,
1480
- Fe as c,
1481
- be as d,
1479
+ Me as b,
1480
+ Pe as c,
1481
+ me as d,
1482
1482
  M as e,
1483
1483
  j as f,
1484
- me as g,
1485
- ve as h,
1486
- ye as i,
1487
- ke as j,
1488
- Se as k,
1489
- Ce as l,
1490
- fe as m,
1484
+ ge as g,
1485
+ ye as h,
1486
+ we as i,
1487
+ Se as j,
1488
+ Ce as k,
1489
+ _e as l,
1490
+ be as m,
1491
1491
  se as n,
1492
- Ne as o,
1493
- Be as p,
1494
- Le as q,
1492
+ Le as o,
1493
+ Ne as p,
1494
+ je as q,
1495
1495
  G as r,
1496
1496
  Y as s,
1497
- je as t,
1498
- qe as u,
1499
- Ae as v,
1500
- ge as w,
1501
- ue as x
1497
+ qe as t,
1498
+ ze as u,
1499
+ Ve as v,
1500
+ ve as w,
1501
+ he as x
1502
1502
  };
@@ -1,2 +1,2 @@
1
- "use strict";const s=require("@tempots/dom"),w=require("./translations-Dw1oO6Dh.cjs"),L=new Map;function F(e){const t=L.get(e)??0;return L.set(e,t+1),`${e}-${t}`}const k={notAsked:{type:"NotAsked"},loading(e=void 0){return{type:"Loading",previousValue:e}},success(e){return{type:"AsyncSuccess",value:e}},failure(e){return{type:"AsyncFailure",error:e}},isSuccess(e){return e.type==="AsyncSuccess"},isFailure(e){return e.type==="AsyncFailure"},isNotAsked(e){return e.type==="NotAsked"},isLoading(e){return e.type==="Loading"},getOrElse(e,t){return k.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return k.isSuccess(e)?e.value:t()},getOrNull(e){return k.isSuccess(e)?e.value:null},getOrUndefined(e){return k.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(k.isSuccess(e))return e.value;throw k.isFailure(e)?e.error:new Error("Cannot get value from a not-asked or loading result")},match:(e,{success:t,failure:n,loading:a,notAsked:r=a})=>k.isSuccess(e)?t(e.value):k.isFailure(e)?n(e.error):k.isNotAsked(e)?r():a(e.previousValue),whenSuccess:(e,t)=>(k.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(k.isFailure(e)&&t(e.error),e),equals:(e,t,n={valueEquals:(a,r)=>a===r,errorEquals:(a,r)=>a===r})=>e.type==="AsyncSuccess"&&t.type==="AsyncSuccess"?n.valueEquals(e.value,t.value):e.type==="AsyncFailure"&&t.type==="AsyncFailure"?n.errorEquals(e.error,t.error):e.type==="Loading"&&t.type==="Loading"?n.valueEquals(e.previousValue,t.previousValue):e.type==="NotAsked"&&t.type==="NotAsked",all:e=>{const t=[];for(const n of e)if(k.isSuccess(n))t.push(n.value);else return n;return k.success(t)},ofPromise:async e=>{try{const t=await e;return k.success(t)}catch(t){return k.failure(t instanceof Error?t:new Error(String(t)))}}},_=(e,t)=>e===t||e!==e&&t!==t,S={valid:{type:"valid"},invalid(e){return{type:"invalid",error:e}},isValid(e){return e.type==="valid"},isInvalid(e){return e.type==="invalid"},match:(e,t,n)=>S.isValid(e)?t():n(e.error),toResult:(e,t)=>S.match(e,()=>f.success(t),n=>f.failure(n)),whenValid:(e,t)=>(S.isValid(e)&&t(),e),whenInvalid:(e,t)=>(S.isInvalid(e)&&t(e.error),e)},f={success(e){return{type:"Success",value:e}},failure(e){return{type:"Failure",error:e}},map:(e,t)=>e.type==="Success"?f.success(t(e.value)):e,flatMap:(e,t)=>e.type==="Success"?t(e.value):e,toAsync(e){return f.match(e,t=>k.success(t),t=>k.failure(t))},toValidation(e){return f.match(e,()=>S.valid,t=>S.invalid(t))},isSuccess(e){return e.type==="Success"},isFailure(e){return e.type==="Failure"},getOrElse(e,t){return f.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return f.isSuccess(e)?e.value:t()},getOrNull(e){return f.isSuccess(e)?e.value:null},getOrUndefined(e){return f.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(f.isSuccess(e))return e.value;throw e.error},match:(e,t,n)=>f.isSuccess(e)?t(e.value):n(e.error),whenSuccess:(e,t)=>(f.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(f.isFailure(e)&&t(e.error),e),combine:(e,t,n,a)=>f.match(e,r=>f.match(t,i=>f.success(n(r,i)),i=>f.failure(i)),r=>f.match(t,i=>f.failure(r),i=>f.failure(a(r,i)))),equals:(e,t,n={valueEquals:(a,r)=>a===r,errorEquals:(a,r)=>a===r})=>e.type==="Success"&&t.type==="Success"?n.valueEquals(e.value,t.value):e.type==="Failure"&&t.type==="Failure"?n.errorEquals(e.error,t.error):!1,all:e=>{const t=[];for(const n of e)if(f.isSuccess(n))t.push(n.value);else return n;return f.success(t)}};function N({size:e="sm",icon:t="line-md:close",disabled:n,roundedness:a="full",color:r="base",onClick:i,label:o},...l){return s.Use(w.BeatUII18n,c=>{const m=s.coalesce(o,c.$.closeModal);return w.Button({variant:"text",size:e,roundedness:a,disabled:n,color:r,onClick:i},s.attr.title(m),s.aria.label(m),...l,w.Icon({icon:t,size:e??"sm"}))})}function A(e){return`bc-label bc-label--${e}`}const ee=(...e)=>s.html.span(s.attr.class(A("emphasis")),...e),j=(...e)=>s.html.span(s.attr.class(A("default")),...e),q=(...e)=>s.html.span(s.attr.class(A("muted")),...e),te=(...e)=>s.html.span(s.attr.class(A("danger")),...e),se=e=>{const{value:t,onBlur:n,onChange:a,placeholder:r,disabled:i,id:o,checkedIcon:l,uncheckedIcon:c,iconSize:m="lg"}=e,u=o??F("checkbox"),b=`${u}-label`,y=()=>{if(s.Value.get(i??!1))return;const h=s.Value.get(t);a?.(!h)},g=h=>{s.Value.get(i??!1)||(h.key===" "||h.key==="Enter")&&(h.preventDefault(),y())};return w.InputContainer({baseContainer:!0,growInput:!1,...e,input:s.html.span(s.attr.class("bc-checkbox-input"),s.html.span(s.attr.class("bc-checkbox-input__checkbox"),s.attr.class(s.Value.map(t,h=>h?"bc-checkbox-input__checkbox--checked":"bc-checkbox-input__checkbox--unchecked")),s.attr.class(s.Value.map(i??!1,h=>h?"bc-checkbox-input__checkbox--disabled":"")),s.attr.id(u),s.attr.role("checkbox"),s.attr.tabindex(s.Value.map(i??!1,h=>h?-1:0)),s.aria.checked(t),s.aria.disabled(i),r!=null?s.aria.labelledby(b):s.Empty,s.on.keydown(g),n!=null?s.on.blur(n):s.Empty,w.Icon({icon:s.computedOf(t,l,c)((h,p,d)=>h?p??"akar-icons/check-box-fill":d??"akar-icons/box"),accessibility:"decorative",size:m})),r!=null?s.html.label(s.attr.class("bc-checkbox-input__label"),s.attr.id(b),s.attr.for(u),q(r)):s.Empty)},s.on.click(y))},U=s.html.span(s.attr.class("bc-input-wrapper__required")," *");function ne(e){const t=["bc-input-wrapper"];return e!=="vertical"&&t.push(`bc-input-wrapper--${e}`),t.join(" ")}function re(e,t){const n=["bc-input-wrapper__label-text"];return e?n.push("bc-input-wrapper__label-text--error"):t?n.push("bc-input-wrapper__label-text--disabled"):n.push("bc-input-wrapper__label-text--default"),n.join(" ")}function x(e,t){if(e==="horizontal-fixed"&&t!=null)return`--input-wrapper-label-width: ${t}`}const B=({fullWidth:e=!1,required:t,label:n,labelChildren:a,context:r,description:i,content:o,error:l,labelFor:c,hasError:m,disabled:u,layout:b,labelWidth:y},...g)=>{const h=m??l!=null,p=u??!1,d=b??"vertical",C=F("input-wrapper"),I=i?`${C}-description`:void 0,O=l!=null?`${C}-error`:void 0,D=s.computedOf(d)(v=>v!=="vertical");return s.html.div(s.OnDispose(D),s.attr.class(s.Value.map(d,v=>ne(v))),s.attr.class(s.Value.map(e,v=>v?"bc-input-wrapper--full-width":"")),s.When(s.computedOf(d,y??void 0)((v,V)=>x(v,V)!=null),()=>s.attr.style(s.Value.map(s.computedOf(d,y??void 0)((v,V)=>x(v,V)),v=>v))),n!=null||r!=null?s.html.div(s.attr.class("bc-input-wrapper__header"),s.html.div(s.attr.class("bc-input-wrapper__label-section"),s.html.label(s.attr.class("bc-input-wrapper__label"),c!=null?s.attr.for(c):s.Empty,s.html.span(s.attr.class(s.computedOf(h,p)((v,V)=>re(v??!1,V??!1))),n),n!=null&&t?U:s.Empty),s.When(s.computedOf(D,i)((v,V)=>v&&V!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description bc-input-wrapper__description--under-label"),s.attr.id(I),i))),r!=null?j(r):s.Empty,a):s.Empty,s.html.div(s.attr.class("bc-input-wrapper__content"),[I,O].filter(Boolean).length>0?s.dataAttr.describedby([I,O].filter(Boolean).join(" ")):s.Empty,t?s.dataAttr.required("true"):s.Empty,s.When(h,()=>s.dataAttr.invalid("true")),o),s.When(s.computedOf(D,i)((v,V)=>!v&&V!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description"),s.attr.id(I),i)),l!=null?s.When(h,()=>s.html.div(s.attr.class("bc-input-wrapper__error"),s.attr.id(O),s.aria.live("polite"),s.attr.role("alert"),l)):null,...g)};function ae(...e){return s.html.div(s.attr.class("bc-stack"),...e)}const ie=e=>{const t={name:"email",autocomplete:"email",...e},{value:n,before:a,onBlur:r,onChange:i,onInput:o,placeholder:l}=t,c=a??w.Icon({icon:"line-md:email",size:"sm",color:"neutral"});return s.Use(w.BeatUII18n,m=>w.InputContainer({...e,before:c,input:s.input.email(w.CommonInputAttributes(t),s.attr.placeholder(s.coalesce(l,m.$.emailPlaceholderText)),s.attr.value(n),s.attr.class("bc-input"),r!=null?s.on.blur(s.emitValue(r)):s.Empty,i!=null?s.on.change(s.emitValue(i)):s.Empty,o!=null?s.on.input(s.emitValue(o)):s.Empty)}))},le=e=>{const{value:t,onBlur:n,onChange:a,onInput:r,before:i,after:o,hasError:l,disabled:c,autocomplete:m,placeholder:u,...b}=e,y={name:"password",disabled:c,...b},g=s.prop(!0),h=s.computedOf(g,m)((p,d)=>p?d??"current-password":"off");return s.Use(w.BeatUII18n,p=>{const d=s.computedOf(p.$.passwordPlaceholderText,g,u)((I,O,D)=>O?"•••••••••••••••":D??I),C=s.html.button(s.attr.type("button"),s.attr.class("bc-input-container__password-toggle"),s.aria.label(p.$.togglePasswordVisibility),s.on.click(()=>g.update(I=>!I)),s.When(g,()=>w.Icon({icon:"line-md:watch"}),()=>w.Icon({icon:"line-md:watch-off"})));return w.InputContainer({before:i,disabled:c,hasError:l,input:s.html.input(w.CommonInputAttributes({...y,autocomplete:h,placeholder:d}),s.When(g,()=>s.Fragment(s.attr.type("password")),()=>s.Fragment(s.attr.type("text"))),s.attr.class("bc-input"),s.attr.value(t),n!=null?s.on.blur(s.emitValue(n)):s.Empty,a!=null?s.on.change(s.emitValue(a)):s.Empty,r!=null?s.on.input(s.emitValue(r)):s.Empty),after:o!=null?s.Fragment(C,o):C})})},W=(e,t)=>()=>{e.markTouched(),t?.()},H=(e,t)=>n=>{e.change(n),t?.(n)};function P(e,t){const{controller:n,onBlur:a,onChange:r,...i}=t;return e({id:n.name,disabled:n.disabled,value:n.signal,hasError:n.errorVisible,...i,onChange:H(n,r),onBlur:W(n,a)})}function oe(e,t,...n){return B({...t,content:P(e,t)},...n)}function z(e,t){const{toInput:n,fromInput:a,controller:r,...i}=t,o=r.transform(n,a);return P(e,{...i,controller:o})}function ce(e,t,...n){return B({...t,content:z(e,t)},...n)}function ue(e){return e.split(".").map(n=>{const a=n.match(/^\[(\d+)\]$/);return a?Number(a[1]):n})}function R(e){return typeof e=="number"?`[${e}]`:`.${e}`}function K(e){if(e.length===0)return"";const[t,...n]=e;return[typeof t=="number"?`[${t}]`:t,...n.map(R)].join("")}function T(e){return function(n){if(n.type==="valid")return n;let a=n.error;for(const r of e)if(a=a?.dependencies?.[r],a==null)return S.valid;return S.invalid(a)}}class E{path;change;signal;status;error;hasError;touched;errorVisible;dirty;dependencyErrors;#e={disabled:s.prop(!1),touched:s.prop(!1)};#s;#t=s.prop(void 0);parent;disabled;#n=[];disabledOrHasErrors;constructor(t,n,a,r,i,o=_){this.path=t,this.change=n,this.signal=a,this.status=r,this.#s=o,this.#t.set(a.value),this.error=r.map(l=>l?.type==="invalid"?l.error?.message:void 0),this.hasError=this.error.map(l=>l!=null),this.touched=this.#e.touched,i.validationMode?this.errorVisible=s.computedOf(this.hasError,this.touched,i.validationMode)((l,c,m)=>m==="continuous"?!!l:!!l&&!!c):this.errorVisible=s.computedOf(this.hasError,this.touched)((l,c)=>!!l&&!!c),this.dirty=s.computedOf(this.signal,this.#t)((l,c)=>!this.#s(l,c)),this.dependencyErrors=r.map(l=>l?.type==="invalid"?l.error?.dependencies:void 0),this.parent=i,this.disabled=s.computedOf(this.#e.disabled,i.disabled)((l,c)=>l||c),this.disabledOrHasErrors=s.computedOf(this.disabled,this.hasError)((l,c)=>l||c),this.onDispose(()=>{this.#e.disabled.dispose(),this.#e.touched.dispose(),this.disabled.dispose(),this.error.dispose(),this.errorVisible.dispose(),this.dirty.dispose(),this.#t.dispose(),this.dependencyErrors.dispose(),this.disabledOrHasErrors.dispose()})}get name(){return K(this.path)}onDispose=t=>{this.#n.push(t)};dispose=()=>{for(const t of this.#n)try{t()}catch(n){console.error("Error in dispose callback:",n)}this.#n.length=0};setDisabled=t=>{this.#e.disabled.set(t)};disable=()=>this.setDisabled(!0);enable=()=>this.setDisabled(!1);markTouched=()=>{this.#e.touched.set(!0)};resetTouched=()=>{this.#e.touched.set(!1)};markPristine=()=>{this.#t.set(this.signal.value)};reset=()=>{this.change(this.#t.value)};array=(t=_)=>new J(this.path,this.change,this.signal,this.status,this.parent,t);object=(t=_)=>new G(this.path,this.change,this.signal,this.status,this.parent,t);transform=(t,n,a=[],r=_)=>new E([...this.path,...a],i=>this.change(n(i)),this.signal.map(t,r),this.status.map(T(a)),this.parent,r);asyncTransform=(t,n,a,r=[],i=_)=>new E([...this.path,...r],o=>{n(o).then(l=>this.change(l))},this.signal.mapAsync(t,a,void 0,i),this.status.map(T(r)),this.parent,i)}class G extends E{#e=new Map;#s=new Map;#t=new Map;#n=s.prop(!1);touchedDeep=this.#n;#a=new Map;#r=new Map;#l=s.prop(!1);dirtyDeep=this.#l;#c;#u;#o=()=>{let t=!1;for(const n of this.#s.values())if(n){t=!0;break}this.#n.set(this.touched.value||t)};constructor(t,n,a,r,i,o){super(t,n,a.map(c=>c??{},o),r,i,o),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const l=this.signal.on(()=>this.#i());this.onDispose(()=>{for(const c of this.#e.values())c.dispose();this.#e.clear();for(const c of this.#t.values())c();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const c of this.#r.values())c();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),l()})}field=t=>{if(this.#e.has(t))return this.#e.get(t);const n=async o=>{this.change({...this.signal.value,[t]:o})},a=new E([...this.path,t],n,this.signal.map(o=>o[t]),this.status.map(T([t])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e.set(t,a);const r=a.touched.on(o=>{this.#s.set(t,o),this.#o()});this.#t.set(t,r);const i=a.dirty.on(o=>{this.#a.set(t,o),this.#i()});return this.#r.set(t,i),a};markAllTouched=()=>{this.markTouched();const t=this.signal.value;for(const n of Object.keys(t))this.field(n).markTouched();for(const n of this.#e.values())n.markTouched()};markAllPristine=()=>{this.markPristine();const t=this.signal.value;for(const n of Object.keys(t))this.field(n).markPristine?.();for(const n of this.#e.values())n.markPristine?.()};#i=()=>{let t=!1;for(const n of this.#a.values())if(n){t=!0;break}this.#l.set(this.dirty.value||t)}}class J extends E{#e=new Array;length;#s=new Map;#t=new Map;#n=s.prop(!1);touchedDeep=this.#n;#a=new Map;#r=new Map;#l=s.prop(!1);dirtyDeep=this.#l;#c;#u;#o=()=>{let t=!1;for(const n of this.#s.values())if(n){t=!0;break}this.#n.set(this.touched.value||t)};constructor(t,n,a,r,i,o){const l=a.map(u=>u??[],o);super(t,n,l,r,i,o);const c=l.on(u=>{const b=this.#e.length-u.length;b>0&&(this.#e.splice(u.length,b).forEach((y,g)=>{const h=u.length+g;y.dispose(),this.#t.get(h)?.(),this.#t.delete(h),this.#s.delete(h),this.#r.get(h)?.(),this.#r.delete(h),this.#a.delete(h)}),this.#o(),this.#i())});this.length=l.map(u=>u.length),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const m=this.signal.on(()=>this.#i());this.onDispose(()=>{for(const u of this.#e)u.dispose();this.length.dispose(),this.#e.length=0,c(),l.dispose();for(const u of this.#t.values())u();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const u of this.#r.values())u();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),m()})}item=t=>{if(this.#e[t])return this.#e[t];const n=async o=>{const l=this.signal.value.slice();l[t]=o,this.change(l)},a=new E([...this.path,t],n,this.signal.map(o=>o[t]),this.status.map(T([t])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e[t]=a;const r=a.touched.on(o=>{this.#s.set(t,o),this.#o()});this.#t.set(t,r);const i=a.dirty.on(o=>{this.#a.set(t,o),this.#i()});return this.#r.set(t,i),a};push=(...t)=>{this.change([...this.signal.value,...t])};pop=()=>{this.splice(this.signal.value.length-1,1)};shift=()=>{this.splice(0,1)};unshift=(...t)=>{this.change([...t,...this.signal.value])};removeAt=t=>{this.splice(t,1)};splice=(t,n)=>{const a=this.signal.value.slice();a.splice(t,n),this.change(a)};move=(t,n,a=1)=>{if(a<1||t===n)return;const r=this.signal.value.slice(),i=r.splice(t,a);r.splice(n,0,...i),this.change(r)};markAllTouched=()=>{this.markTouched();const t=this.signal.value.length;for(let n=0;n<t;n++)this.item(n).markTouched()};markAllPristine=()=>{this.markPristine();const t=this.signal.value.length;for(let n=0;n<t;n++)this.item(n).markPristine?.()};#i=()=>{let t=!1;for(const n of this.#a.values())if(n){t=!0;break}this.#l.set(this.dirty.value||t)}}function Q(e){function t(n){return typeof n=="number"?n:n.toString()}return e.map(n=>typeof n=="object"&&n.key!=null?t(n.key):t(n))}function X(e){const t=e.filter(r=>r.path==null||r.path.length===0).map(r=>r.message),n=e.filter(r=>r.path!=null&&r.path.length>0).reduce((r,i)=>{const o=Q(i.path),l=o.pop();let c=r;for(const m of o)c.dependencies==null&&(c.dependencies={}),c.dependencies[m]==null&&(c.dependencies[m]={}),c=c.dependencies[m];return c.dependencies==null&&(c.dependencies={}),c.dependencies[l]={message:i.message},r},{}),a=t.join(`
2
- `);return{...n,message:a!=""?a:void 0}}function Y({initialValue:e,onChange:t,validate:n,equals:a,validationMode:r,validateDebounceMs:i}){const o=s.Value.deriveProp(e),l=s.prop(S.valid),c=s.prop(!1),m=s.prop(r??"touchedOrSubmit"),u=p=>{l.set(p)};let b;const y=async p=>{if(n!=null){const d=await n(p);u(d)}},g=async p=>{o.set(p),t?.(p);const d=m.value;if(n!=null){if(d==="onSubmit")return;const C=i??0;C>0?(b&&clearTimeout(b),b=setTimeout(()=>{y(p)},C)):await y(p)}},h=new E([],g,o,l,{disabled:c,validationMode:m},a??_);return h.onDispose(()=>{c.dispose(),o.dispose(),l.dispose(),m.dispose(),b&&clearTimeout(b)}),{controller:h,setStatus:u}}function $(e){return s.Fragment(s.attr.disabled(e.disabled),s.attr.name(e.name))}function he(e,{triggerOn:t="change"}={}){return s.Fragment($(e),s.attr.value(e.signal),(t==="input"?s.on.input:s.on.change)(s.emitValue(e.change)))}function pe(e,{triggerOn:t="change"}={}){return s.Fragment($(e),s.attr.valueAsNumber(e.signal),(t==="input"?s.on.input:s.on.change)(s.emitValueAsNumber(e.change)))}function M(e){return e.issues!=null?S.invalid(X(e.issues)):S.valid}async function de({task:e,errorMessage:t,errorPath:n=["root"],validation:a}){try{const r=await e();return a!=null?a(r):S.valid}catch(r){const i=t??(r instanceof Error?r.message:"Operation failed");return n.length===1&&n[0]==="root"?S.invalid({message:i}):S.invalid({dependencies:Z(n,i)})}}function Z(e,t){if(e.length===1)return{[e[0]]:{message:t}};const[n,...a]=e;return{[n]:{dependencies:Z(a,t)}}}function me({initialValue:e={},schema:t,onSubmit:n=async()=>S.valid,validationMode:a,validateDebounceMs:r}){const{controller:i,setStatus:o}=Y({initialValue:e,validationMode:a??"touchedOrSubmit",validateDebounceMs:r,validate:(a??"touchedOrSubmit")==="onSubmit"||t==null?void 0:async u=>M(await t["~standard"].validate(u))}),l=s.prop(!1),c=i.object();return c.onDispose(l.dispose),{controller:c,setStatus:o,submit:async u=>{if(l.set(!0),u?.preventDefault(),c.markAllTouched(),(a??"touchedOrSubmit")==="onSubmit"){const y=c.signal.value,g=t?.["~standard"].validate;if(g==null){l.set(!1);return}const h=M(await g(y));if(o(h),h.type==="invalid"){l.set(!1);return}}const b=await n(c.signal.value);l.set(!1),b.type==="invalid"&&o(b)},submitting:l}}function fe(e){switch(e){case"success":return"material-symbols:check-circle-outline";case"warning":return"material-symbols:warning-outline";case"danger":return"material-symbols:error-outline";case"info":default:return"material-symbols:info-outline"}}function be(e){switch(e){case"success":return"success";case"warning":return"warning";case"danger":return"danger";case"info":default:return"info"}}function ge(e,t,n,a){const r=["bc-notice",`bc-notice--${e}`,`bc-notice--tone-${t}`];return n&&r.push("bc-notice--dismissible"),a&&a.length>0&&r.push(a),r.join(" ")}function ye({variant:e="info",tone:t="subtle",role:n,title:a,icon:r,closable:i=!1,onDismiss:o,class:l},...c){const m=s.Value.map(i,p=>!!p||o!=null),u=s.Value.map(e,p=>p??"info"),b=s.Value.map(t,p=>p??"subtle"),y=s.computedOf(n,u)((p,d)=>p??(d==="danger"?"alert":"status")),g=s.prop(!0),h=s.Use(w.BeatUII18n,p=>s.html.div(s.attr.class(s.computedOf(u,b,m,l)((d,C,I,O)=>ge(d,C,I,O))),s.attr.role(s.Value.map(y,d=>d)),s.Unless(s.Value.map(r,d=>d===!1),()=>s.html.div(s.attr.class("bc-notice__icon"),w.Icon({icon:s.computedOf(r,u)((d,C)=>d===void 0?fe(C):String(d)),size:"md",color:s.Value.map(u,be)}))),s.html.div(s.attr.class("bc-notice__body"),s.Ensure(a,d=>s.html.div(s.attr.class("bc-notice__title"),d)),s.html.div(s.attr.class("bc-notice__content"),...c)),s.When(m,()=>N({size:"xs",label:p.$.closeModal,onClick:()=>{g.set(!1),o?.()}}))));return s.Fragment(s.OnDispose(()=>{s.Value.dispose(m),s.Value.dispose(u),s.Value.dispose(b)},y,g),s.When(g,()=>h))}exports.ArrayController=J;exports.BaseControl=P;exports.BaseMappedControl=z;exports.CheckboxInput=se;exports.CloseButton=N;exports.Control=oe;exports.Controller=E;exports.DangerLabel=te;exports.EmailInput=ie;exports.EmphasisLabel=ee;exports.InputWrapper=B;exports.Label=j;exports.MappedControl=ce;exports.MutedLabel=q;exports.Notice=ye;exports.O=_;exports.ObjectController=G;exports.PasswordInput=le;exports.RequiredSymbol=U;exports.Stack=ae;exports.a=S;exports.connectCommonAttributes=$;exports.connectNumberInput=pe;exports.connectStringInput=he;exports.convertStandardSchemaIssues=X;exports.convertStandardSchemaPathToPath=Q;exports.makeMapValidation=T;exports.makeOnBlurHandler=W;exports.makeOnChangeHandler=H;exports.parsePath=ue;exports.pathToString=K;exports.sessionId=F;exports.standardSchemaResultToValidation=M;exports.taskToValidation=de;exports.useController=Y;exports.useForm=me;exports.wrapSegment=R;
1
+ "use strict";const s=require("@tempots/dom"),w=require("./translations-C21osktO.cjs"),L=new Map;function F(e){const t=L.get(e)??0;return L.set(e,t+1),`${e}-${t}`}const k={notAsked:{type:"NotAsked"},loading(e=void 0){return{type:"Loading",previousValue:e}},success(e){return{type:"AsyncSuccess",value:e}},failure(e){return{type:"AsyncFailure",error:e}},isSuccess(e){return e.type==="AsyncSuccess"},isFailure(e){return e.type==="AsyncFailure"},isNotAsked(e){return e.type==="NotAsked"},isLoading(e){return e.type==="Loading"},getOrElse(e,t){return k.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return k.isSuccess(e)?e.value:t()},getOrNull(e){return k.isSuccess(e)?e.value:null},getOrUndefined(e){return k.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(k.isSuccess(e))return e.value;throw k.isFailure(e)?e.error:new Error("Cannot get value from a not-asked or loading result")},match:(e,{success:t,failure:n,loading:a,notAsked:r=a})=>k.isSuccess(e)?t(e.value):k.isFailure(e)?n(e.error):k.isNotAsked(e)?r():a(e.previousValue),whenSuccess:(e,t)=>(k.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(k.isFailure(e)&&t(e.error),e),equals:(e,t,n={valueEquals:(a,r)=>a===r,errorEquals:(a,r)=>a===r})=>e.type==="AsyncSuccess"&&t.type==="AsyncSuccess"?n.valueEquals(e.value,t.value):e.type==="AsyncFailure"&&t.type==="AsyncFailure"?n.errorEquals(e.error,t.error):e.type==="Loading"&&t.type==="Loading"?n.valueEquals(e.previousValue,t.previousValue):e.type==="NotAsked"&&t.type==="NotAsked",all:e=>{const t=[];for(const n of e)if(k.isSuccess(n))t.push(n.value);else return n;return k.success(t)},ofPromise:async e=>{try{const t=await e;return k.success(t)}catch(t){return k.failure(t instanceof Error?t:new Error(String(t)))}}},_=(e,t)=>e===t||e!==e&&t!==t,S={valid:{type:"valid"},invalid(e){return{type:"invalid",error:e}},isValid(e){return e.type==="valid"},isInvalid(e){return e.type==="invalid"},match:(e,t,n)=>S.isValid(e)?t():n(e.error),toResult:(e,t)=>S.match(e,()=>f.success(t),n=>f.failure(n)),whenValid:(e,t)=>(S.isValid(e)&&t(),e),whenInvalid:(e,t)=>(S.isInvalid(e)&&t(e.error),e)},f={success(e){return{type:"Success",value:e}},failure(e){return{type:"Failure",error:e}},map:(e,t)=>e.type==="Success"?f.success(t(e.value)):e,flatMap:(e,t)=>e.type==="Success"?t(e.value):e,toAsync(e){return f.match(e,t=>k.success(t),t=>k.failure(t))},toValidation(e){return f.match(e,()=>S.valid,t=>S.invalid(t))},isSuccess(e){return e.type==="Success"},isFailure(e){return e.type==="Failure"},getOrElse(e,t){return f.isSuccess(e)?e.value:t},getOrElseLazy(e,t){return f.isSuccess(e)?e.value:t()},getOrNull(e){return f.isSuccess(e)?e.value:null},getOrUndefined(e){return f.isSuccess(e)?e.value:void 0},getUnsafe:e=>{if(f.isSuccess(e))return e.value;throw e.error},match:(e,t,n)=>f.isSuccess(e)?t(e.value):n(e.error),whenSuccess:(e,t)=>(f.isSuccess(e)&&t(e.value),e),whenFailure:(e,t)=>(f.isFailure(e)&&t(e.error),e),combine:(e,t,n,a)=>f.match(e,r=>f.match(t,i=>f.success(n(r,i)),i=>f.failure(i)),r=>f.match(t,i=>f.failure(r),i=>f.failure(a(r,i)))),equals:(e,t,n={valueEquals:(a,r)=>a===r,errorEquals:(a,r)=>a===r})=>e.type==="Success"&&t.type==="Success"?n.valueEquals(e.value,t.value):e.type==="Failure"&&t.type==="Failure"?n.errorEquals(e.error,t.error):!1,all:e=>{const t=[];for(const n of e)if(f.isSuccess(n))t.push(n.value);else return n;return f.success(t)}};function N({size:e="sm",icon:t="line-md:close",disabled:n,roundedness:a="full",color:r="base",onClick:i,label:o},...l){return s.Use(w.BeatUII18n,c=>{const m=s.coalesce(o,c.$.closeModal);return w.Button({variant:"text",size:e,roundedness:a,disabled:n,color:r,onClick:i},s.attr.title(m),s.aria.label(m),...l,w.Icon({icon:t,size:e??"sm"}))})}function A(e){return`bc-label bc-label--${e}`}const ee=(...e)=>s.html.span(s.attr.class(A("emphasis")),...e),j=(...e)=>s.html.span(s.attr.class(A("default")),...e),q=(...e)=>s.html.span(s.attr.class(A("muted")),...e),te=(...e)=>s.html.span(s.attr.class(A("danger")),...e),se=e=>{const{value:t,onBlur:n,onChange:a,placeholder:r,disabled:i,id:o,checkedIcon:l,uncheckedIcon:c,iconSize:m="lg"}=e,u=o??F("checkbox"),b=`${u}-label`,y=()=>{if(s.Value.get(i??!1))return;const h=s.Value.get(t);a?.(!h)},g=h=>{s.Value.get(i??!1)||(h.key===" "||h.key==="Enter")&&(h.preventDefault(),y())};return w.InputContainer({baseContainer:!0,growInput:!1,...e,input:s.html.span(s.attr.class("bc-checkbox-input"),s.html.span(s.attr.class("bc-checkbox-input__checkbox"),s.attr.class(s.Value.map(t,h=>h?"bc-checkbox-input__checkbox--checked":"bc-checkbox-input__checkbox--unchecked")),s.attr.class(s.Value.map(i??!1,h=>h?"bc-checkbox-input__checkbox--disabled":"")),s.attr.id(u),s.attr.role("checkbox"),s.attr.tabindex(s.Value.map(i??!1,h=>h?-1:0)),s.aria.checked(t),s.aria.disabled(i),r!=null?s.aria.labelledby(b):s.Empty,s.on.keydown(g),n!=null?s.on.blur(n):s.Empty,w.Icon({icon:s.computedOf(t,l,c)((h,p,d)=>h?p??"akar-icons/check-box-fill":d??"akar-icons/box"),accessibility:"decorative",size:m})),r!=null?s.html.label(s.attr.class("bc-checkbox-input__label"),s.attr.id(b),s.attr.for(u),q(r)):s.Empty)},s.on.click(y))},U=s.html.span(s.attr.class("bc-input-wrapper__required")," *");function ne(e){const t=["bc-input-wrapper"];return e!=="vertical"&&t.push(`bc-input-wrapper--${e}`),t.join(" ")}function re(e,t){const n=["bc-input-wrapper__label-text"];return e?n.push("bc-input-wrapper__label-text--error"):t?n.push("bc-input-wrapper__label-text--disabled"):n.push("bc-input-wrapper__label-text--default"),n.join(" ")}function x(e,t){if(e==="horizontal-fixed"&&t!=null)return`--input-wrapper-label-width: ${t}`}const B=({fullWidth:e=!1,required:t,label:n,labelChildren:a,context:r,description:i,content:o,error:l,labelFor:c,hasError:m,disabled:u,layout:b,labelWidth:y},...g)=>{const h=m??l!=null,p=u??!1,d=b??"vertical",C=F("input-wrapper"),I=i?`${C}-description`:void 0,O=l!=null?`${C}-error`:void 0,D=s.computedOf(d)(v=>v!=="vertical");return s.html.div(s.OnDispose(D),s.attr.class(s.Value.map(d,v=>ne(v))),s.attr.class(s.Value.map(e,v=>v?"bc-input-wrapper--full-width":"")),s.When(s.computedOf(d,y??void 0)((v,V)=>x(v,V)!=null),()=>s.attr.style(s.Value.map(s.computedOf(d,y??void 0)((v,V)=>x(v,V)),v=>v))),n!=null||r!=null?s.html.div(s.attr.class("bc-input-wrapper__header"),s.html.div(s.attr.class("bc-input-wrapper__label-section"),s.html.label(s.attr.class("bc-input-wrapper__label"),c!=null?s.attr.for(c):s.Empty,s.html.span(s.attr.class(s.computedOf(h,p)((v,V)=>re(v??!1,V??!1))),n),n!=null&&t?U:s.Empty),s.When(s.computedOf(D,i)((v,V)=>v&&V!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description bc-input-wrapper__description--under-label"),s.attr.id(I),i))),r!=null?j(r):s.Empty,a):s.Empty,s.html.div(s.attr.class("bc-input-wrapper__content"),[I,O].filter(Boolean).length>0?s.dataAttr.describedby([I,O].filter(Boolean).join(" ")):s.Empty,t?s.dataAttr.required("true"):s.Empty,s.When(h,()=>s.dataAttr.invalid("true")),o),s.When(s.computedOf(D,i)((v,V)=>!v&&V!=null),()=>s.html.div(s.attr.class("bc-input-wrapper__description"),s.attr.id(I),i)),l!=null?s.When(h,()=>s.html.div(s.attr.class("bc-input-wrapper__error"),s.attr.id(O),s.aria.live("polite"),s.attr.role("alert"),l)):null,...g)};function ae(...e){return s.html.div(s.attr.class("bc-stack"),...e)}const ie=e=>{const t={name:"email",autocomplete:"email",...e},{value:n,before:a,onBlur:r,onChange:i,onInput:o,placeholder:l}=t,c=a??w.InputIcon({icon:"line-md:email",size:e.size,color:"neutral"});return s.Use(w.BeatUII18n,m=>w.InputContainer({...e,before:c,input:s.input.email(w.CommonInputAttributes(t),s.attr.placeholder(s.coalesce(l,m.$.emailPlaceholderText)),s.attr.value(n),s.attr.class("bc-input"),r!=null?s.on.blur(s.emitValue(r)):s.Empty,i!=null?s.on.change(s.emitValue(i)):s.Empty,o!=null?s.on.input(s.emitValue(o)):s.Empty)}))},le=e=>{const{value:t,onBlur:n,onChange:a,onInput:r,before:i,after:o,hasError:l,disabled:c,autocomplete:m,placeholder:u,...b}=e,y={name:"password",disabled:c,...b},g=s.prop(!0),h=s.computedOf(g,m)((p,d)=>p?d??"current-password":"off");return s.Use(w.BeatUII18n,p=>{const d=s.computedOf(p.$.passwordPlaceholderText,g,u)((I,O,D)=>O?"•••••••••••••••":D??I),C=s.html.button(s.attr.type("button"),s.attr.class("bc-input-container__password-toggle"),s.aria.label(p.$.togglePasswordVisibility),s.on.click(()=>g.update(I=>!I)),s.When(g,()=>w.Icon({icon:"line-md:watch"}),()=>w.Icon({icon:"line-md:watch-off"})));return w.InputContainer({before:i,disabled:c,hasError:l,input:s.html.input(w.CommonInputAttributes({...y,autocomplete:h,placeholder:d}),s.When(g,()=>s.Fragment(s.attr.type("password")),()=>s.Fragment(s.attr.type("text"))),s.attr.class("bc-input"),s.attr.value(t),n!=null?s.on.blur(s.emitValue(n)):s.Empty,a!=null?s.on.change(s.emitValue(a)):s.Empty,r!=null?s.on.input(s.emitValue(r)):s.Empty),after:o!=null?s.Fragment(C,o):C})})},W=(e,t)=>()=>{e.markTouched(),t?.()},z=(e,t)=>n=>{e.change(n),t?.(n)};function P(e,t){const{controller:n,onBlur:a,onChange:r,...i}=t;return e({id:n.name,disabled:n.disabled,value:n.signal,hasError:n.errorVisible,...i,onChange:z(n,r),onBlur:W(n,a)})}function oe(e,t,...n){return B({...t,content:P(e,t)},...n)}function H(e,t){const{toInput:n,fromInput:a,controller:r,...i}=t,o=r.transform(n,a);return P(e,{...i,controller:o})}function ce(e,t,...n){return B({...t,content:H(e,t)},...n)}function ue(e){return e.split(".").map(n=>{const a=n.match(/^\[(\d+)\]$/);return a?Number(a[1]):n})}function R(e){return typeof e=="number"?`[${e}]`:`.${e}`}function K(e){if(e.length===0)return"";const[t,...n]=e;return[typeof t=="number"?`[${t}]`:t,...n.map(R)].join("")}function T(e){return function(n){if(n.type==="valid")return n;let a=n.error;for(const r of e)if(a=a?.dependencies?.[r],a==null)return S.valid;return S.invalid(a)}}class E{path;change;signal;status;error;hasError;touched;errorVisible;dirty;dependencyErrors;#e={disabled:s.prop(!1),touched:s.prop(!1)};#s;#t=s.prop(void 0);parent;disabled;#n=[];disabledOrHasErrors;constructor(t,n,a,r,i,o=_){this.path=t,this.change=n,this.signal=a,this.status=r,this.#s=o,this.#t.set(a.value),this.error=r.map(l=>l?.type==="invalid"?l.error?.message:void 0),this.hasError=this.error.map(l=>l!=null),this.touched=this.#e.touched,i.validationMode?this.errorVisible=s.computedOf(this.hasError,this.touched,i.validationMode)((l,c,m)=>m==="continuous"?!!l:!!l&&!!c):this.errorVisible=s.computedOf(this.hasError,this.touched)((l,c)=>!!l&&!!c),this.dirty=s.computedOf(this.signal,this.#t)((l,c)=>!this.#s(l,c)),this.dependencyErrors=r.map(l=>l?.type==="invalid"?l.error?.dependencies:void 0),this.parent=i,this.disabled=s.computedOf(this.#e.disabled,i.disabled)((l,c)=>l||c),this.disabledOrHasErrors=s.computedOf(this.disabled,this.hasError)((l,c)=>l||c),this.onDispose(()=>{this.#e.disabled.dispose(),this.#e.touched.dispose(),this.disabled.dispose(),this.error.dispose(),this.errorVisible.dispose(),this.dirty.dispose(),this.#t.dispose(),this.dependencyErrors.dispose(),this.disabledOrHasErrors.dispose()})}get name(){return K(this.path)}onDispose=t=>{this.#n.push(t)};dispose=()=>{for(const t of this.#n)try{t()}catch(n){console.error("Error in dispose callback:",n)}this.#n.length=0};setDisabled=t=>{this.#e.disabled.set(t)};disable=()=>this.setDisabled(!0);enable=()=>this.setDisabled(!1);markTouched=()=>{this.#e.touched.set(!0)};resetTouched=()=>{this.#e.touched.set(!1)};markPristine=()=>{this.#t.set(this.signal.value)};reset=()=>{this.change(this.#t.value)};array=(t=_)=>new J(this.path,this.change,this.signal,this.status,this.parent,t);object=(t=_)=>new G(this.path,this.change,this.signal,this.status,this.parent,t);transform=(t,n,a=[],r=_)=>new E([...this.path,...a],i=>this.change(n(i)),this.signal.map(t,r),this.status.map(T(a)),this.parent,r);asyncTransform=(t,n,a,r=[],i=_)=>new E([...this.path,...r],o=>{n(o).then(l=>this.change(l))},this.signal.mapAsync(t,a,void 0,i),this.status.map(T(r)),this.parent,i)}class G extends E{#e=new Map;#s=new Map;#t=new Map;#n=s.prop(!1);touchedDeep=this.#n;#a=new Map;#r=new Map;#l=s.prop(!1);dirtyDeep=this.#l;#c;#u;#o=()=>{let t=!1;for(const n of this.#s.values())if(n){t=!0;break}this.#n.set(this.touched.value||t)};constructor(t,n,a,r,i,o){super(t,n,a.map(c=>c??{},o),r,i,o),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const l=this.signal.on(()=>this.#i());this.onDispose(()=>{for(const c of this.#e.values())c.dispose();this.#e.clear();for(const c of this.#t.values())c();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const c of this.#r.values())c();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),l()})}field=t=>{if(this.#e.has(t))return this.#e.get(t);const n=async o=>{this.change({...this.signal.value,[t]:o})},a=new E([...this.path,t],n,this.signal.map(o=>o[t]),this.status.map(T([t])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e.set(t,a);const r=a.touched.on(o=>{this.#s.set(t,o),this.#o()});this.#t.set(t,r);const i=a.dirty.on(o=>{this.#a.set(t,o),this.#i()});return this.#r.set(t,i),a};markAllTouched=()=>{this.markTouched();const t=this.signal.value;for(const n of Object.keys(t))this.field(n).markTouched();for(const n of this.#e.values())n.markTouched()};markAllPristine=()=>{this.markPristine();const t=this.signal.value;for(const n of Object.keys(t))this.field(n).markPristine?.();for(const n of this.#e.values())n.markPristine?.()};#i=()=>{let t=!1;for(const n of this.#a.values())if(n){t=!0;break}this.#l.set(this.dirty.value||t)}}class J extends E{#e=new Array;length;#s=new Map;#t=new Map;#n=s.prop(!1);touchedDeep=this.#n;#a=new Map;#r=new Map;#l=s.prop(!1);dirtyDeep=this.#l;#c;#u;#o=()=>{let t=!1;for(const n of this.#s.values())if(n){t=!0;break}this.#n.set(this.touched.value||t)};constructor(t,n,a,r,i,o){const l=a.map(u=>u??[],o);super(t,n,l,r,i,o);const c=l.on(u=>{const b=this.#e.length-u.length;b>0&&(this.#e.splice(u.length,b).forEach((y,g)=>{const h=u.length+g;y.dispose(),this.#t.get(h)?.(),this.#t.delete(h),this.#s.delete(h),this.#r.get(h)?.(),this.#r.delete(h),this.#a.delete(h)}),this.#o(),this.#i())});this.length=l.map(u=>u.length),this.#c=this.touched.on(()=>{this.#o()}),this.#u=this.dirty.on(()=>{this.#i()});const m=this.signal.on(()=>this.#i());this.onDispose(()=>{for(const u of this.#e)u.dispose();this.length.dispose(),this.#e.length=0,c(),l.dispose();for(const u of this.#t.values())u();this.#t.clear(),this.#s.clear(),this.#n.dispose();for(const u of this.#r.values())u();this.#r.clear(),this.#a.clear(),this.#l.dispose(),this.#c(),this.#u(),m()})}item=t=>{if(this.#e[t])return this.#e[t];const n=async o=>{const l=this.signal.value.slice();l[t]=o,this.change(l)},a=new E([...this.path,t],n,this.signal.map(o=>o[t]),this.status.map(T([t])),{disabled:this.disabled,validationMode:this.parent.validationMode});this.#e[t]=a;const r=a.touched.on(o=>{this.#s.set(t,o),this.#o()});this.#t.set(t,r);const i=a.dirty.on(o=>{this.#a.set(t,o),this.#i()});return this.#r.set(t,i),a};push=(...t)=>{this.change([...this.signal.value,...t])};pop=()=>{this.splice(this.signal.value.length-1,1)};shift=()=>{this.splice(0,1)};unshift=(...t)=>{this.change([...t,...this.signal.value])};removeAt=t=>{this.splice(t,1)};splice=(t,n)=>{const a=this.signal.value.slice();a.splice(t,n),this.change(a)};move=(t,n,a=1)=>{if(a<1||t===n)return;const r=this.signal.value.slice(),i=r.splice(t,a);r.splice(n,0,...i),this.change(r)};markAllTouched=()=>{this.markTouched();const t=this.signal.value.length;for(let n=0;n<t;n++)this.item(n).markTouched()};markAllPristine=()=>{this.markPristine();const t=this.signal.value.length;for(let n=0;n<t;n++)this.item(n).markPristine?.()};#i=()=>{let t=!1;for(const n of this.#a.values())if(n){t=!0;break}this.#l.set(this.dirty.value||t)}}function Q(e){function t(n){return typeof n=="number"?n:n.toString()}return e.map(n=>typeof n=="object"&&n.key!=null?t(n.key):t(n))}function X(e){const t=e.filter(r=>r.path==null||r.path.length===0).map(r=>r.message),n=e.filter(r=>r.path!=null&&r.path.length>0).reduce((r,i)=>{const o=Q(i.path),l=o.pop();let c=r;for(const m of o)c.dependencies==null&&(c.dependencies={}),c.dependencies[m]==null&&(c.dependencies[m]={}),c=c.dependencies[m];return c.dependencies==null&&(c.dependencies={}),c.dependencies[l]={message:i.message},r},{}),a=t.join(`
2
+ `);return{...n,message:a!=""?a:void 0}}function Y({initialValue:e,onChange:t,validate:n,equals:a,validationMode:r,validateDebounceMs:i}){const o=s.Value.deriveProp(e),l=s.prop(S.valid),c=s.prop(!1),m=s.prop(r??"touchedOrSubmit"),u=p=>{l.set(p)};let b;const y=async p=>{if(n!=null){const d=await n(p);u(d)}},g=async p=>{o.set(p),t?.(p);const d=m.value;if(n!=null){if(d==="onSubmit")return;const C=i??0;C>0?(b&&clearTimeout(b),b=setTimeout(()=>{y(p)},C)):await y(p)}},h=new E([],g,o,l,{disabled:c,validationMode:m},a??_);return h.onDispose(()=>{c.dispose(),o.dispose(),l.dispose(),m.dispose(),b&&clearTimeout(b)}),{controller:h,setStatus:u}}function $(e){return s.Fragment(s.attr.disabled(e.disabled),s.attr.name(e.name))}function he(e,{triggerOn:t="change"}={}){return s.Fragment($(e),s.attr.value(e.signal),(t==="input"?s.on.input:s.on.change)(s.emitValue(e.change)))}function pe(e,{triggerOn:t="change"}={}){return s.Fragment($(e),s.attr.valueAsNumber(e.signal),(t==="input"?s.on.input:s.on.change)(s.emitValueAsNumber(e.change)))}function M(e){return e.issues!=null?S.invalid(X(e.issues)):S.valid}async function de({task:e,errorMessage:t,errorPath:n=["root"],validation:a}){try{const r=await e();return a!=null?a(r):S.valid}catch(r){const i=t??(r instanceof Error?r.message:"Operation failed");return n.length===1&&n[0]==="root"?S.invalid({message:i}):S.invalid({dependencies:Z(n,i)})}}function Z(e,t){if(e.length===1)return{[e[0]]:{message:t}};const[n,...a]=e;return{[n]:{dependencies:Z(a,t)}}}function me({initialValue:e={},schema:t,onSubmit:n=async()=>S.valid,validationMode:a,validateDebounceMs:r}){const{controller:i,setStatus:o}=Y({initialValue:e,validationMode:a??"touchedOrSubmit",validateDebounceMs:r,validate:(a??"touchedOrSubmit")==="onSubmit"||t==null?void 0:async u=>M(await t["~standard"].validate(u))}),l=s.prop(!1),c=i.object();return c.onDispose(l.dispose),{controller:c,setStatus:o,submit:async u=>{if(l.set(!0),u?.preventDefault(),c.markAllTouched(),(a??"touchedOrSubmit")==="onSubmit"){const y=c.signal.value,g=t?.["~standard"].validate;if(g==null){l.set(!1);return}const h=M(await g(y));if(o(h),h.type==="invalid"){l.set(!1);return}}const b=await n(c.signal.value);l.set(!1),b.type==="invalid"&&o(b)},submitting:l}}function fe(e){switch(e){case"success":return"material-symbols:check-circle-outline";case"warning":return"material-symbols:warning-outline";case"danger":return"material-symbols:error-outline";case"info":default:return"material-symbols:info-outline"}}function be(e){switch(e){case"success":return"success";case"warning":return"warning";case"danger":return"danger";case"info":default:return"info"}}function ge(e,t,n,a){const r=["bc-notice",`bc-notice--${e}`,`bc-notice--tone-${t}`];return n&&r.push("bc-notice--dismissible"),a&&a.length>0&&r.push(a),r.join(" ")}function ye({variant:e="info",tone:t="subtle",role:n,title:a,icon:r,closable:i=!1,onDismiss:o,class:l},...c){const m=s.Value.map(i,p=>!!p||o!=null),u=s.Value.map(e,p=>p??"info"),b=s.Value.map(t,p=>p??"subtle"),y=s.computedOf(n,u)((p,d)=>p??(d==="danger"?"alert":"status")),g=s.prop(!0),h=s.Use(w.BeatUII18n,p=>s.html.div(s.attr.class(s.computedOf(u,b,m,l)((d,C,I,O)=>ge(d,C,I,O))),s.attr.role(s.Value.map(y,d=>d)),s.Unless(s.Value.map(r,d=>d===!1),()=>s.html.div(s.attr.class("bc-notice__icon"),w.Icon({icon:s.computedOf(r,u)((d,C)=>d===void 0?fe(C):String(d)),size:"md",color:s.Value.map(u,be)}))),s.html.div(s.attr.class("bc-notice__body"),s.Ensure(a,d=>s.html.div(s.attr.class("bc-notice__title"),d)),s.html.div(s.attr.class("bc-notice__content"),...c)),s.When(m,()=>N({size:"xs",label:p.$.closeModal,onClick:()=>{g.set(!1),o?.()}}))));return s.Fragment(s.OnDispose(()=>{s.Value.dispose(m),s.Value.dispose(u),s.Value.dispose(b)},y,g),s.When(g,()=>h))}exports.ArrayController=J;exports.BaseControl=P;exports.BaseMappedControl=H;exports.CheckboxInput=se;exports.CloseButton=N;exports.Control=oe;exports.Controller=E;exports.DangerLabel=te;exports.EmailInput=ie;exports.EmphasisLabel=ee;exports.InputWrapper=B;exports.Label=j;exports.MappedControl=ce;exports.MutedLabel=q;exports.Notice=ye;exports.O=_;exports.ObjectController=G;exports.PasswordInput=le;exports.RequiredSymbol=U;exports.Stack=ae;exports.a=S;exports.connectCommonAttributes=$;exports.connectNumberInput=pe;exports.connectStringInput=he;exports.convertStandardSchemaIssues=X;exports.convertStandardSchemaPathToPath=Q;exports.makeMapValidation=T;exports.makeOnBlurHandler=W;exports.makeOnChangeHandler=z;exports.parsePath=ue;exports.pathToString=K;exports.sessionId=F;exports.standardSchemaResultToValidation=M;exports.taskToValidation=de;exports.useController=Y;exports.useForm=me;exports.wrapSegment=R;
@@ -1,4 +1,4 @@
1
- import { f as l } from "./translations-DEEflRUY.js";
1
+ import { f as l } from "./translations-D-fMB_IO.js";
2
2
  const s = {
3
3
  loadingExtended: "Ładowanie, proszę czekać",
4
4
  loadingShort: "Ładowanie...",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./translations-Dw1oO6Dh.cjs"),t={loadingExtended:"Ładowanie, proszę czekać",loadingShort:"Ładowanie...",locale:"Język",iconDescription:"Ikona",loadingIcon:"Ikona ładowania",failedToLoadIcon:"Nie udało się załadować ikony",editLabel:"Edytuj",selectOne:"Wybierz jeden",selectMany:"Wybierz wiele",noResults:"Brak wyników",passwordPlaceholderText:"Tajne hasło",togglePasswordVisibility:"Przełącz widoczność hasła",toggleMenu:"Przełącz menu",toggleAside:"Przełącz panel boczny",mainNavigation:"Główna nawigacja",sidebar:"Pasek boczny",closeDrawer:"Zamknij szufladę",closeModal:"Zamknij modal",confirm:"Potwierdź",cancel:"Anuluj",addLabel:"Dodaj",removeItem:"Usuń element",currentLocale:"Polski",ar:"Arabski",de:"Niemiecki",en:"Angielski",es:"Hiszpański",fr:"Francuski",hi:"Hindi",it:"Włoski",ja:"Japoński",ko:"Koreański",nl:"Holenderski",pl:"Polski",pt:"Portugalski",ru:"Rosyjski",tr:"Turecki",vi:"Wietnamski",zh:"Chiński",he:"Hebrajski",fa:"Perski",ur:"Urdu",emailPlaceholderText:"Wprowadź adres e-mail",incrementValue:"Zwiększ wartość",decrementValue:"Zmniejsz wartość",dropZoneInstructions:e=>e?"Kliknij aby wybrać lub przeciągnij pliki tutaj, lub naciśnij Enter lub Spację, aby otworzyć selektor plików":"Przeciągnij pliki tutaj",fileSizeUnits:["Bajty","KB","MB","GB","TB"],removeFile:"Usuń plik",clearAllFiles:"Usuń wszystkie pliki",clearValue:"Wyczyść wartość",unknownType:"Nieznany typ",filesInputInstructions:(e,o,a)=>{let n=e==null||e>1?"Kliknij aby wybrać lub przeciągnij pliki tutaj":"Kliknij aby wybrać lub przeciągnij plik tutaj";if(e||o){const i=[];if(e!=null&&e>1&&i.push(`do ${e} plików`),o&&a){const r=l.formatFileSize(o,{units:a});i.push(`maks ${r} każdy`)}i.length>0&&(n+=` (${i.join(", ")})`)}else if(o&&a){const i=l.formatFileSize(o,{units:a});n+=` (maks ${i})`}return n},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"}};exports.default=t;exports.pl=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./translations-C21osktO.cjs"),t={loadingExtended:"Ładowanie, proszę czekać",loadingShort:"Ładowanie...",locale:"Język",iconDescription:"Ikona",loadingIcon:"Ikona ładowania",failedToLoadIcon:"Nie udało się załadować ikony",editLabel:"Edytuj",selectOne:"Wybierz jeden",selectMany:"Wybierz wiele",noResults:"Brak wyników",passwordPlaceholderText:"Tajne hasło",togglePasswordVisibility:"Przełącz widoczność hasła",toggleMenu:"Przełącz menu",toggleAside:"Przełącz panel boczny",mainNavigation:"Główna nawigacja",sidebar:"Pasek boczny",closeDrawer:"Zamknij szufladę",closeModal:"Zamknij modal",confirm:"Potwierdź",cancel:"Anuluj",addLabel:"Dodaj",removeItem:"Usuń element",currentLocale:"Polski",ar:"Arabski",de:"Niemiecki",en:"Angielski",es:"Hiszpański",fr:"Francuski",hi:"Hindi",it:"Włoski",ja:"Japoński",ko:"Koreański",nl:"Holenderski",pl:"Polski",pt:"Portugalski",ru:"Rosyjski",tr:"Turecki",vi:"Wietnamski",zh:"Chiński",he:"Hebrajski",fa:"Perski",ur:"Urdu",emailPlaceholderText:"Wprowadź adres e-mail",incrementValue:"Zwiększ wartość",decrementValue:"Zmniejsz wartość",dropZoneInstructions:e=>e?"Kliknij aby wybrać lub przeciągnij pliki tutaj, lub naciśnij Enter lub Spację, aby otworzyć selektor plików":"Przeciągnij pliki tutaj",fileSizeUnits:["Bajty","KB","MB","GB","TB"],removeFile:"Usuń plik",clearAllFiles:"Usuń wszystkie pliki",clearValue:"Wyczyść wartość",unknownType:"Nieznany typ",filesInputInstructions:(e,o,a)=>{let n=e==null||e>1?"Kliknij aby wybrać lub przeciągnij pliki tutaj":"Kliknij aby wybrać lub przeciągnij plik tutaj";if(e||o){const i=[];if(e!=null&&e>1&&i.push(`do ${e} plików`),o&&a){const r=l.formatFileSize(o,{units:a});i.push(`maks ${r} każdy`)}i.length>0&&(n+=` (${i.join(", ")})`)}else if(o&&a){const i=l.formatFileSize(o,{units:a});n+=` (maks ${i})`}return n},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"}};exports.default=t;exports.pl=t;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../index-Dtka01mK.cjs");exports.DEFAULT_FEATURES=r.DEFAULT_FEATURES;exports.ProseMirrorMarkdownInput=r.ProseMirrorMarkdownInput;exports.ProseMirrorToolbar=r.ProseMirrorToolbar;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../index-nVVPqgLq.cjs");exports.DEFAULT_FEATURES=r.DEFAULT_FEATURES;exports.ProseMirrorMarkdownInput=r.ProseMirrorMarkdownInput;exports.ProseMirrorToolbar=r.ProseMirrorToolbar;
@@ -1,4 +1,4 @@
1
- import { D as a, P as s, b as e } from "../index-HqWBd-jW.js";
1
+ import { D as a, P as s, b as e } from "../index-Acyxme63.js";
2
2
  export {
3
3
  a as DEFAULT_FEATURES,
4
4
  s as ProseMirrorMarkdownInput,
@@ -1,4 +1,4 @@
1
- import { f as i } from "./translations-DEEflRUY.js";
1
+ import { f as i } from "./translations-D-fMB_IO.js";
2
2
  const s = {
3
3
  loadingExtended: "Carregando, por favor aguarde",
4
4
  loadingShort: "Carregando...",