@tempots/beatui 1.1.3 → 1.2.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 (119) hide show
  1. package/dist/{ar-DaKbK_t8.js → ar-C-kUt6f9.js} +8 -7
  2. package/dist/ar-Dc56zcjW.cjs +1 -0
  3. package/dist/auth/index.cjs.js +1 -1
  4. package/dist/auth/index.es.js +1 -1
  5. package/dist/{auth-divider-Cp3xGpHr.js → auth-divider-DGNQZKEb.js} +7 -7
  6. package/dist/{auth-divider-3t_-R0sL.cjs → auth-divider-DfWGT38w.cjs} +1 -1
  7. package/dist/beatui.css +74 -7
  8. package/dist/beatui.tailwind.css +74 -7
  9. package/dist/better-auth/index.cjs.js +1 -1
  10. package/dist/better-auth/index.es.js +5 -5
  11. package/dist/{colors-DwufPN8S.js → colors-C2sgnzFH.js} +7 -7
  12. package/dist/{colors-B-p6IzX9.cjs → colors-DPCHjRMj.cjs} +1 -1
  13. package/dist/{de-3MTPDS1i.js → de-CP0kbElb.js} +8 -7
  14. package/dist/de-DboQlEC4.cjs +1 -0
  15. package/dist/{deep-merge-Bz9HHpRt.cjs → deep-merge-Bjv1NvKj.cjs} +1 -1
  16. package/dist/{deep-merge-Da602mAN.js → deep-merge-DwXDd3iF.js} +234 -233
  17. package/dist/{duration-input-g-cQ3cs1.cjs → duration-input-CjNZyVkf.cjs} +1 -1
  18. package/dist/{duration-input-HM1i6RRY.js → duration-input-CnMMvPgT.js} +4 -4
  19. package/dist/{editor-toolbar-group-Crlu1QJw.js → editor-toolbar-group-DWUWUO-B.js} +2 -2
  20. package/dist/{editor-toolbar-group-mkL4QozO.cjs → editor-toolbar-group-QVdBUbB8.cjs} +1 -1
  21. package/dist/{es-DwMUvBeU.js → es-BtIkcnsw.js} +8 -7
  22. package/dist/es-CAmE_0Ph.cjs +1 -0
  23. package/dist/{fa-0rvQiKrJ.js → fa-11-rZmQ-.js} +8 -7
  24. package/dist/fa-D9LrFZdW.cjs +1 -0
  25. package/dist/{fr-B4i6NzLl.js → fr-C-L2F8w2.js} +8 -7
  26. package/dist/fr-DKogQyss.cjs +1 -0
  27. package/dist/{he-C71n-hsn.js → he-Bu1xGoQ9.js} +8 -7
  28. package/dist/he-CVx91Jdr.cjs +1 -0
  29. package/dist/hi-BgrHV72l.cjs +1 -0
  30. package/dist/{hi-xmrXpeVU.js → hi-CewH-MAH.js} +8 -7
  31. package/dist/{index-C3o9GSH6.js → index-BGKz2Nol.js} +1 -1
  32. package/dist/{index-B5MAsOC-.cjs → index-DFF7Uahh.cjs} +1 -1
  33. package/dist/index.cjs.js +2 -2
  34. package/dist/index.es.js +1273 -1293
  35. package/dist/{input-container-Di1YvVB_.cjs → input-container-BkPcNDaZ.cjs} +1 -1
  36. package/dist/{input-container-BvEcp7FU.js → input-container-CO3DNqpp.js} +2 -2
  37. package/dist/{it-CDZTtOBC.js → it-5hiKQO_p.js} +8 -7
  38. package/dist/it-B1rA1F9l.cjs +1 -0
  39. package/dist/{ja-Zz1LzidW.js → ja-CGfEmZrm.js} +8 -7
  40. package/dist/ja-DZnjjqoi.cjs +1 -0
  41. package/dist/json-schema/index.cjs.js +1 -1
  42. package/dist/json-schema/index.es.js +10 -10
  43. package/dist/json-schema-display/index.cjs.js +1 -1
  44. package/dist/json-schema-display/index.es.js +1 -1
  45. package/dist/json-structure/index.cjs.js +1 -1
  46. package/dist/json-structure/index.es.js +5 -5
  47. package/dist/ko-CDnYKYWU.cjs +1 -0
  48. package/dist/{ko-9laUsZDL.js → ko-DZthvREd.js} +8 -7
  49. package/dist/lexical/index.cjs.js +1 -1
  50. package/dist/lexical/index.es.js +4 -4
  51. package/dist/{modal-BT0jjDqX.cjs → modal-DCxNGrzk.cjs} +1 -1
  52. package/dist/{modal-DBguyX-b.js → modal-YKqlh4Dk.js} +3 -3
  53. package/dist/nl-Bj8QnDEY.cjs +1 -0
  54. package/dist/{nl-Dcll9fVA.js → nl-CcKyHlQ7.js} +9 -8
  55. package/dist/{notice-Dtz7ADVH.js → notice-Du3tWJTW.js} +4 -4
  56. package/dist/{notice-BNghd0oS.cjs → notice-Q0A1gIho.cjs} +1 -1
  57. package/dist/{oneof-branch-detection-ZUBZ6hqy.cjs → oneof-branch-detection-BEkAezNi.cjs} +1 -1
  58. package/dist/{oneof-branch-detection-J_DYEEcD.js → oneof-branch-detection-DSzC0PkO.js} +1 -1
  59. package/dist/pl-BmuuxxVd.cjs +1 -0
  60. package/dist/{pl-Dm9N9Gbr.js → pl-Mwtjp4MV.js} +8 -7
  61. package/dist/prosemirror/index.cjs.js +1 -1
  62. package/dist/prosemirror/index.es.js +4 -4
  63. package/dist/{pt-CFi5cn0k.js → pt-BaTsY-8f.js} +8 -7
  64. package/dist/pt-RiC0yeVA.cjs +1 -0
  65. package/dist/{ru-CEhZUw8R.js → ru-CvbGmz5s.js} +10 -9
  66. package/dist/ru-pRqtOQHF.cjs +1 -0
  67. package/dist/tailwind/preset.cjs.js +1 -1
  68. package/dist/tailwind/preset.es.js +2 -2
  69. package/dist/tailwind/vite-plugin.cjs.js +1 -1
  70. package/dist/tailwind/vite-plugin.es.js +1 -1
  71. package/dist/{text-input-dDUEUmlC.js → text-input-BAn02BzO.js} +1 -1
  72. package/dist/{text-input-DL9FvpTZ.cjs → text-input-D_IxFd0M.cjs} +1 -1
  73. package/dist/{toolbar-DY0ax2Qd.js → toolbar-BKan3NHw.js} +1 -1
  74. package/dist/{toolbar-DoKdYXIL.cjs → toolbar-CnecqhaU.cjs} +1 -1
  75. package/dist/tr-B9JhBJeL.cjs +1 -0
  76. package/dist/{tr-ZmnVDhLP.js → tr-YFqQdZjM.js} +9 -8
  77. package/dist/{translations-C81buKAw.cjs → translations-C_-cObaF.cjs} +1 -1
  78. package/dist/{translations-A4kR7CW8.js → translations-CxDUnbXn.js} +1 -1
  79. package/dist/{translations-B1_yyDUK.js → translations-DT5QQ4WO.js} +88 -87
  80. package/dist/translations-qefRsdGi.cjs +1 -0
  81. package/dist/types/beatui-i18n/default.d.ts +1 -0
  82. package/dist/types/beatui-i18n/locales/en.d.ts +1 -0
  83. package/dist/types/beatui-i18n/translations.d.ts +1 -0
  84. package/dist/types/components/data/data-table.d.ts +8 -1
  85. package/dist/types/components/form/input/date-input.d.ts +4 -4
  86. package/dist/types/components/form/input/date-time-input.d.ts +4 -4
  87. package/dist/types/components/form/input/input-container.d.ts +1 -1
  88. package/dist/types/components/form/input/nullable-date-input.d.ts +2 -2
  89. package/dist/types/components/form/input/nullable-date-time-input.d.ts +2 -2
  90. package/dist/ur-BZakU0iv.cjs +1 -0
  91. package/dist/{ur-yYgj3NmT.js → ur-CdnwwnG_.js} +8 -7
  92. package/dist/{use-form-CaW192gw.cjs → use-form-BvBkVEKi.cjs} +1 -1
  93. package/dist/{use-form-Dn6v2tEh.js → use-form-D_TJyZhP.js} +2 -2
  94. package/dist/{vi-D5u4CLQO.js → vi-Bwvz1d_n.js} +8 -7
  95. package/dist/vi-D1nly0nb.cjs +1 -0
  96. package/dist/{widget-customization-DOWmUuPU.cjs → widget-customization-CD_NyRQ8.cjs} +1 -1
  97. package/dist/{widget-customization-YhVcA-KM.js → widget-customization-D2a6SVP3.js} +5 -5
  98. package/dist/zh-DBk7sSD9.cjs +1 -0
  99. package/dist/{zh-B0kwMMer.js → zh-hy7Uw6c5.js} +9 -8
  100. package/package.json +1 -1
  101. package/dist/ar-CuI1Jgt6.cjs +0 -1
  102. package/dist/de-DthHehbh.cjs +0 -1
  103. package/dist/es-B6GJLk9h.cjs +0 -1
  104. package/dist/fa-BwgP93iV.cjs +0 -1
  105. package/dist/fr-CQzk5zqY.cjs +0 -1
  106. package/dist/he-DcxxvRfs.cjs +0 -1
  107. package/dist/hi-D-KHVWg4.cjs +0 -1
  108. package/dist/it-D344Dutu.cjs +0 -1
  109. package/dist/ja-BNgnDZ27.cjs +0 -1
  110. package/dist/ko-D-WJ9NK7.cjs +0 -1
  111. package/dist/nl-CrqUlFie.cjs +0 -1
  112. package/dist/pl-9UksIrvX.cjs +0 -1
  113. package/dist/pt-_kfdzwqi.cjs +0 -1
  114. package/dist/ru-CW1WNNlr.cjs +0 -1
  115. package/dist/tr-B6GIRegf.cjs +0 -1
  116. package/dist/translations-Dbx7L7Q1.cjs +0 -1
  117. package/dist/ur-CtFl_tz6.cjs +0 -1
  118. package/dist/vi-DyCZSpsk.cjs +0 -1
  119. package/dist/zh-C3ZxMQKb.cjs +0 -1
@@ -1,8 +1,8 @@
1
- import { Task as ye, Use as O, Value as f, prop as ae, html as g, attr as l, on as C, WithElement as te, Empty as M, aria as J, bind as ie, OnDispose as ne, coalesce as Ne, ForEach as ee, Fragment as N, Ensure as Pe, OneOfType as je, computedOf as A, input as se, emitValue as P, emitValueAsNumber as we, style as _e, When as U, NotEmpty as We, Repeat as Ze, signal as ke } from "@tempots/dom";
2
- import { I as W, a as He, B as be } from "./input-container-BvEcp7FU.js";
3
- import { C as q, m as qe } from "./text-input-dDUEUmlC.js";
4
- import { I as Ae, m as Ye, c as Ge, C as oe, d as pe, e as Ce } from "./use-form-Dn6v2tEh.js";
5
- import { B as F, d as ce, I as E, b as De, f as Ie } from "./translations-B1_yyDUK.js";
1
+ import { Task as ye, Use as O, Value as f, prop as ae, html as g, attr as r, on as C, WithElement as te, Empty as M, aria as J, bind as ie, OnDispose as ne, coalesce as Ne, ForEach as ee, Fragment as N, Ensure as Pe, OneOfType as je, computedOf as A, input as se, emitValue as P, emitValueAsNumber as we, style as _e, When as U, NotEmpty as We, Repeat as Ze, signal as ke } from "@tempots/dom";
2
+ import { I as W, a as He, B as be } from "./input-container-CO3DNqpp.js";
3
+ import { C as q, m as qe } from "./text-input-BAn02BzO.js";
4
+ import { I as Ae, m as Ye, c as Ge, C as oe, d as pe, e as Ce } from "./use-form-D_TJyZhP.js";
5
+ import { B as F, d as ce, I as E, b as De, f as Ie } from "./translations-DT5QQ4WO.js";
6
6
  import { S as Le } from "./stack-BLMteGTn.js";
7
7
  import { objectEntries as Je, delayedAnimationFrame as Xe, strictEqual as K } from "@tempots/std";
8
8
  import { ElementRect as Qe } from "@tempots/ui";
@@ -24,7 +24,7 @@ function de({
24
24
  value: e,
25
25
  accept: n = "*/*",
26
26
  enableClick: s = !0,
27
- content: r,
27
+ content: l,
28
28
  disabled: h = !1,
29
29
  allowMultiple: o
30
30
  }) {
@@ -51,11 +51,11 @@ function de({
51
51
  f.get(s) && (a.key === "Enter" || a.key === " ") && (a.preventDefault(), i(a));
52
52
  };
53
53
  return g.div(
54
- l.role("button"),
55
- l.tabindex(
54
+ r.role("button"),
55
+ r.tabindex(
56
56
  f.map(s, (a) => a ? 0 : -1)
57
57
  ),
58
- l.style("position: relative;"),
58
+ r.style("position: relative;"),
59
59
  C.dragover(p),
60
60
  C.dragleave(m),
61
61
  C.drop(v),
@@ -63,11 +63,11 @@ function de({
63
63
  C.keydown(S),
64
64
  // Hidden file input
65
65
  g.input(
66
- l.type("file"),
67
- l.disabled(h),
68
- l.accept(n),
69
- l.multiple(o),
70
- l.style(
66
+ r.type("file"),
67
+ r.disabled(h),
68
+ r.accept(n),
69
+ r.multiple(o),
70
+ r.style(
71
71
  "position: absolute; left: -9999px; opacity: 0; pointer-events: none;"
72
72
  ),
73
73
  C.change(D),
@@ -82,7 +82,7 @@ function de({
82
82
  // Screen reader instructions
83
83
  J.label(ie(d.$.dropZoneInstructions)(s)),
84
84
  // Content
85
- r({
85
+ l({
86
86
  files: b,
87
87
  clear: () => b.value = [],
88
88
  change: (a) => b.set(a)
@@ -92,7 +92,7 @@ function de({
92
92
  }
93
93
  const ge = "$$tts-exp-", et = (t, e) => te((n) => {
94
94
  const s = `${ge}${t}`;
95
- return ne(f.on(e, (r) => Reflect.set(n, s, r)));
95
+ return ne(f.on(e, (l) => Reflect.set(n, s, l)));
96
96
  }), $t = (t, e) => {
97
97
  const n = `${ge}${t}`;
98
98
  return (s) => {
@@ -101,27 +101,27 @@ const ge = "$$tts-exp-", et = (t, e) => te((n) => {
101
101
  }, $e = (t, e) => {
102
102
  const n = `${ge}${t}`;
103
103
  return (s) => {
104
- const r = s.target, h = r.selectedIndex, o = r.options[h];
104
+ const l = s.target, h = l.selectedIndex, o = l.options[h];
105
105
  e(Reflect.get(o, n));
106
106
  };
107
107
  }, Ue = (t, e, n) => Pe(
108
108
  t,
109
109
  (s) => je(s, {
110
- value: (r) => {
110
+ value: (l) => {
111
111
  const h = A(
112
- r,
112
+ l,
113
113
  n
114
114
  )((o, d) => e(o.value, d));
115
115
  return g.option(
116
- l.selected(h),
117
- et("value", r.$.value),
118
- r.$.label
116
+ r.selected(h),
117
+ et("value", l.$.value),
118
+ l.$.label
119
119
  );
120
120
  },
121
- group: (r) => g.optgroup(
122
- l.label(r.$.group),
121
+ group: (l) => g.optgroup(
122
+ r.label(l.$.group),
123
123
  ee(
124
- r.$.options,
124
+ l.$.options,
125
125
  (h) => Ue(
126
126
  h,
127
127
  e,
@@ -136,7 +136,7 @@ const ge = "$$tts-exp-", et = (t, e) => te((n) => {
136
136
  value: e,
137
137
  onBlur: n,
138
138
  onChange: s,
139
- onInput: r,
139
+ onInput: l,
140
140
  options: h,
141
141
  unselectedLabel: o,
142
142
  equality: d = (p, m) => p === m,
@@ -164,18 +164,18 @@ const ge = "$$tts-exp-", et = (t, e) => te((n) => {
164
164
  return m.observe(p, { childList: !0 }), ne(() => m.disconnect());
165
165
  }),
166
166
  q(t),
167
- l.class("bc-native-select bc-input"),
167
+ r.class("bc-native-select bc-input"),
168
168
  O(
169
169
  F,
170
170
  (p) => g.option(
171
- l.hidden("hidden"),
171
+ r.hidden("hidden"),
172
172
  Ne(o, p.$.selectOne)
173
173
  )
174
174
  ),
175
175
  ee(h, (p) => Ue(p, d, e)),
176
176
  n != null ? C.blur(n) : M,
177
177
  s != null ? C.change($e("value", (p) => s(p))) : M,
178
- r != null ? C.input($e("value", (p) => r(p))) : M
178
+ l != null ? C.input($e("value", (p) => l(p))) : M
179
179
  )
180
180
  },
181
181
  C.click(() => {
@@ -188,9 +188,9 @@ const ge = "$$tts-exp-", et = (t, e) => te((n) => {
188
188
  );
189
189
  };
190
190
  function nt(t) {
191
- const { controller: e, onChange: n, onBlur: s, ...r } = t;
191
+ const { controller: e, onChange: n, onBlur: s, ...l } = t;
192
192
  return tt({
193
- ...r,
193
+ ...l,
194
194
  value: e.signal,
195
195
  onChange: Ge(e, n),
196
196
  onBlur: Ye(e, s)
@@ -203,16 +203,16 @@ function Mt(t) {
203
203
  });
204
204
  }
205
205
  function Ee(t, e, n) {
206
- const s = f.map(t, (o) => o != null), r = A(
206
+ const s = f.map(t, (o) => o != null), l = A(
207
207
  s,
208
208
  e ?? !1
209
209
  )((o, d) => !o || d), h = ce.clearValue;
210
210
  return g.button(
211
- l.type("button"),
212
- l.class("bc-input-container__reset"),
211
+ r.type("button"),
212
+ r.class("bc-input-container__reset"),
213
213
  J.label(h),
214
- l.title(h),
215
- l.disabled(r),
214
+ r.title(h),
215
+ r.disabled(l),
216
216
  E({ icon: "mdi:close", size: "sm" }),
217
217
  C.click((o) => {
218
218
  o.stopPropagation(), n?.(null);
@@ -220,7 +220,7 @@ function Ee(t, e, n) {
220
220
  );
221
221
  }
222
222
  function Me(...t) {
223
- return g.div(l.class("bc-group"), ...t);
223
+ return g.div(r.class("bc-group"), ...t);
224
224
  }
225
225
  function st(t) {
226
226
  const e = String(t), n = e.indexOf(".");
@@ -233,8 +233,8 @@ function G(t, e) {
233
233
  return Math.round(t * s) / s;
234
234
  }
235
235
  const St = (t) => {
236
- const { value: e, step: n, min: s, max: r, onBlur: h, onChange: o, onInput: d, after: b } = t, w = (v) => {
237
- const i = s != null ? f.get(s) : void 0, u = r != null ? f.get(r) : void 0;
236
+ const { value: e, step: n, min: s, max: l, onBlur: h, onChange: o, onInput: d, after: b } = t, w = (v) => {
237
+ const i = s != null ? f.get(s) : void 0, u = l != null ? f.get(l) : void 0;
238
238
  return i != null && v < i ? i : u != null && v > u ? u : v;
239
239
  }, p = n != null ? O(F, (v) => {
240
240
  const i = A(
@@ -242,7 +242,7 @@ const St = (t) => {
242
242
  s
243
243
  )((a, x) => x == null ? !0 : (a ?? 0) > x), u = A(
244
244
  e,
245
- r
245
+ l
246
246
  )((a, x) => x == null ? !0 : (a ?? 0) < x), D = (a) => {
247
247
  const x = f.get(e) ?? 0, $ = f.get(n), I = a?.shiftKey ? 10 : 1, V = G(
248
248
  x - $ * I,
@@ -256,21 +256,21 @@ const St = (t) => {
256
256
  const x = f.get(e) ?? 0, $ = f.get(n), I = a?.shiftKey ? 10 : 1, V = G(
257
257
  x + $ * I,
258
258
  $
259
- ), k = r != null ? f.get(r) : void 0;
259
+ ), k = l != null ? f.get(l) : void 0;
260
260
  if (k != null && V > k)
261
261
  return;
262
262
  const c = w(V);
263
263
  c !== x && (o?.(c), d?.(c));
264
264
  };
265
265
  return Le(
266
- l.class("bc-number-input-steppers"),
266
+ r.class("bc-number-input-steppers"),
267
267
  // Increment second
268
268
  g.button(
269
- l.type("button"),
270
- l.class(
269
+ r.type("button"),
270
+ r.class(
271
271
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
272
272
  ),
273
- l.disabled(
273
+ r.disabled(
274
274
  A(
275
275
  u,
276
276
  t.disabled ?? !1
@@ -282,11 +282,11 @@ const St = (t) => {
282
282
  ),
283
283
  // Decrement first (matches tests expecting first button to be decrement)
284
284
  g.button(
285
- l.type("button"),
286
- l.class(
285
+ r.type("button"),
286
+ r.class(
287
287
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
288
288
  ),
289
- l.disabled(
289
+ r.disabled(
290
290
  A(
291
291
  i,
292
292
  t.disabled ?? !1
@@ -301,12 +301,12 @@ const St = (t) => {
301
301
  return W({
302
302
  ...t,
303
303
  input: se.number(
304
- s != null ? l.min(s) : M,
305
- r != null ? l.max(r) : M,
304
+ s != null ? r.min(s) : M,
305
+ l != null ? r.max(l) : M,
306
306
  q(t),
307
- l.valueAsNumber(e),
308
- l.step(n),
309
- l.class("bc-input bc-number-input"),
307
+ r.valueAsNumber(e),
308
+ r.step(n),
309
+ r.class("bc-input bc-number-input"),
310
310
  h != null ? C.blur(P(h)) : M,
311
311
  o != null ? C.change(we(o)) : M,
312
312
  d != null ? C.input(we(d)) : M,
@@ -330,14 +330,14 @@ function rt(t, e, n) {
330
330
  function it(t) {
331
331
  if (t == null) return "";
332
332
  const e = /* @__PURE__ */ new Map(), n = De(t, "solid", "light"), s = De(t, "solid", "dark");
333
- return e.set("--si-indicator-bg", n.backgroundColor), e.set("--si-active-text", n.textColor), e.set("--si-indicator-bg-dark", s.backgroundColor), e.set("--si-active-text-dark", s.textColor), Array.from(e.entries()).map(([r, h]) => `${r}: ${h}`).join("; ");
333
+ return e.set("--si-indicator-bg", n.backgroundColor), e.set("--si-active-text", n.textColor), e.set("--si-indicator-bg-dark", s.backgroundColor), e.set("--si-active-text-dark", s.textColor), Array.from(e.entries()).map(([l, h]) => `${l}: ${h}`).join("; ");
334
334
  }
335
335
  function Tt({
336
336
  options: t,
337
337
  value: e,
338
338
  onChange: n,
339
339
  size: s = "md",
340
- disabled: r = !1,
340
+ disabled: l = !1,
341
341
  variant: h = "pill",
342
342
  color: o
343
343
  }, ...d) {
@@ -353,10 +353,10 @@ function Tt({
353
353
  lt
354
354
  );
355
355
  return g.div(
356
- l.class(
356
+ r.class(
357
357
  A(
358
358
  s,
359
- r,
359
+ l,
360
360
  h
361
361
  )(
362
362
  (m, v, i) => rt(
@@ -366,13 +366,13 @@ function Tt({
366
366
  )
367
367
  )
368
368
  ),
369
- l.style(
369
+ r.style(
370
370
  o != null ? f.map(o, (m) => it(m)) : ""
371
371
  ),
372
372
  g.div(
373
- l.class("bc-segmented-input__container"),
373
+ r.class("bc-segmented-input__container"),
374
374
  g.div(
375
- l.class("bc-segmented-input__indicator"),
375
+ r.class("bc-segmented-input__indicator"),
376
376
  _e.width(
377
377
  A(
378
378
  e,
@@ -394,13 +394,13 @@ function Tt({
394
394
  ),
395
395
  // clickable buttons
396
396
  b.map(({ label: m, key: v }, i) => g.button(
397
- l.type("button"),
397
+ r.type("button"),
398
398
  C.click((u) => {
399
- u.preventDefault(), f.get(r) || n?.(v);
399
+ u.preventDefault(), f.get(l) || n?.(v);
400
400
  }),
401
- l.disabled(r),
402
- l.class("bc-segmented-input__segment"),
403
- l.class(
401
+ r.disabled(l),
402
+ r.class("bc-segmented-input__segment"),
403
+ r.class(
404
404
  f.map(e, (u) => u === v ? "bc-segmented-input__segment--active" : "bc-segmented-input__segment--inactive")
405
405
  ),
406
406
  Qe((u) => {
@@ -444,11 +444,11 @@ function me(t) {
444
444
  ne(() => {
445
445
  e.value && URL.revokeObjectURL(e.value);
446
446
  }),
447
- l.class("bc-file-input__thumbnail-container"),
447
+ r.class("bc-file-input__thumbnail-container"),
448
448
  g.img(
449
- l.src(e),
450
- l.alt(t.map((n) => n.name)),
451
- l.class("bc-file-input__thumbnail")
449
+ r.src(e),
450
+ r.alt(t.map((n) => n.name)),
451
+ r.class("bc-file-input__thumbnail")
452
452
  )
453
453
  );
454
454
  },
@@ -459,7 +459,7 @@ const zt = (t, ...e) => {
459
459
  const {
460
460
  value: n = ae([]),
461
461
  accept: s = "*/*",
462
- maxFiles: r,
462
+ maxFiles: l,
463
463
  maxFileSize: h,
464
464
  onChange: o,
465
465
  onBlur: d,
@@ -470,8 +470,8 @@ const zt = (t, ...e) => {
470
470
  ...v
471
471
  } = t, i = n, u = f.map(p, (k) => k === "input"), D = f.map(p, (k) => k === "compact"), S = (k) => {
472
472
  let c = k;
473
- if (r != null) {
474
- const y = f.get(r);
473
+ if (l != null) {
474
+ const y = f.get(l);
475
475
  c = c.slice(0, y);
476
476
  }
477
477
  if (h) {
@@ -491,16 +491,16 @@ const zt = (t, ...e) => {
491
491
  }) => O(
492
492
  F,
493
493
  (T) => g.div(
494
- l.class("bc-file-input__drop-zone"),
494
+ r.class("bc-file-input__drop-zone"),
495
495
  g.div(
496
- l.class(
496
+ r.class(
497
497
  "bc-file-input__drop-zone-content bc-file-input__drop-zone-content--empty"
498
498
  ),
499
499
  E({ icon: "mdi:cloud-upload-outline", size: "xl" }),
500
500
  g.div(
501
- l.class("bc-file-input__drop-zone-text"),
501
+ r.class("bc-file-input__drop-zone-text"),
502
502
  ie(T.$.filesInputInstructions)(
503
- r,
503
+ l,
504
504
  h,
505
505
  T.$.fileSizeUnits.value
506
506
  )
@@ -512,28 +512,28 @@ const zt = (t, ...e) => {
512
512
  }) => O(
513
513
  F,
514
514
  (c) => g.div(
515
- l.class("bc-file-input__compact-drop-zone"),
515
+ r.class("bc-file-input__compact-drop-zone"),
516
516
  U(
517
517
  k.map((y) => y.length > 0),
518
518
  () => g.div(
519
- l.class("bc-file-input__compact-file-list"),
519
+ r.class("bc-file-input__compact-file-list"),
520
520
  ee(k, (y, T) => {
521
521
  const z = T.index;
522
522
  return g.div(
523
- l.class("bc-file-input__compact-file-item"),
523
+ r.class("bc-file-input__compact-file-item"),
524
524
  g.div(
525
- l.class("bc-file-input__compact-file-icon"),
525
+ r.class("bc-file-input__compact-file-icon"),
526
526
  me(y)
527
527
  ),
528
528
  g.div(
529
- l.class("bc-file-input__compact-file-info"),
529
+ r.class("bc-file-input__compact-file-info"),
530
530
  g.div(
531
- l.class("bc-file-input__compact-file-name"),
532
- l.title(y.$.name),
531
+ r.class("bc-file-input__compact-file-name"),
532
+ r.title(y.$.name),
533
533
  y.$.name
534
534
  ),
535
535
  g.div(
536
- l.class("bc-file-input__compact-file-meta"),
536
+ r.class("bc-file-input__compact-file-meta"),
537
537
  A(
538
538
  y.$.size,
539
539
  c.$.fileSizeUnits
@@ -552,18 +552,18 @@ const zt = (t, ...e) => {
552
552
  disabled: b,
553
553
  onClick: () => a(z)
554
554
  },
555
- l.class("bc-file-input__compact-remove-button")
555
+ r.class("bc-file-input__compact-remove-button")
556
556
  )
557
557
  );
558
558
  })
559
559
  ),
560
560
  () => g.div(
561
- l.class("bc-file-input__compact-placeholder"),
561
+ r.class("bc-file-input__compact-placeholder"),
562
562
  E({ icon: "mdi:cloud-upload-outline", size: "lg" }),
563
563
  g.div(
564
- l.class("bc-file-input__compact-placeholder-text"),
564
+ r.class("bc-file-input__compact-placeholder-text"),
565
565
  ie(c.$.filesInputInstructions)(
566
- r,
566
+ l,
567
567
  h,
568
568
  c.$.fileSizeUnits.value
569
569
  )
@@ -576,29 +576,29 @@ const zt = (t, ...e) => {
576
576
  }) => O(
577
577
  F,
578
578
  (c) => g.div(
579
- l.class("bc-file-input__compact-input"),
579
+ r.class("bc-file-input__compact-input"),
580
580
  U(
581
581
  k.map((y) => y.length > 0),
582
582
  () => g.span(
583
- l.class("bc-file-input__compact-value"),
583
+ r.class("bc-file-input__compact-value"),
584
584
  ee(
585
585
  k,
586
586
  (y) => g.span(
587
- l.class("bc-file-input__compact-value-item"),
587
+ r.class("bc-file-input__compact-value-item"),
588
588
  me(y),
589
589
  g.span(
590
- l.class("bc-file-input__compact-value-item-name"),
590
+ r.class("bc-file-input__compact-value-item-name"),
591
591
  y.$.name
592
592
  )
593
593
  )
594
594
  )
595
595
  ),
596
596
  () => g.span(
597
- l.class("bc-file-input__compact-placeholder"),
597
+ r.class("bc-file-input__compact-placeholder"),
598
598
  E({ icon: "mdi:cloud-upload-outline", size: "md" }),
599
599
  " ",
600
600
  ie(c.$.filesInputInstructions)(
601
- r,
601
+ l,
602
602
  h,
603
603
  c.$.fileSizeUnits.value
604
604
  )
@@ -624,7 +624,7 @@ const zt = (t, ...e) => {
624
624
  disabled: b,
625
625
  onClick: x
626
626
  },
627
- l.class("bc-file-input__compact-clear")
627
+ r.class("bc-file-input__compact-clear")
628
628
  )
629
629
  )
630
630
  ),
@@ -632,12 +632,12 @@ const zt = (t, ...e) => {
632
632
  input: U(
633
633
  u,
634
634
  () => g.div(
635
- l.class("bc-file-input bc-file-input--input"),
635
+ r.class("bc-file-input bc-file-input--input"),
636
636
  de({
637
637
  value: i,
638
638
  accept: s,
639
639
  enableClick: !0,
640
- allowMultiple: f.map(r ?? 1 / 0, (c) => c > 1),
640
+ allowMultiple: f.map(l ?? 1 / 0, (c) => c > 1),
641
641
  disabled: b,
642
642
  onChange: S,
643
643
  content: V
@@ -646,24 +646,24 @@ const zt = (t, ...e) => {
646
646
  () => U(
647
647
  D,
648
648
  () => g.div(
649
- l.class("bc-file-input bc-file-input--compact"),
649
+ r.class("bc-file-input bc-file-input--compact"),
650
650
  de({
651
651
  value: i,
652
652
  accept: s,
653
653
  enableClick: !0,
654
- allowMultiple: f.map(r ?? 1 / 0, (c) => c > 1),
654
+ allowMultiple: f.map(l ?? 1 / 0, (c) => c > 1),
655
655
  disabled: b,
656
656
  onChange: S,
657
657
  content: I
658
658
  })
659
659
  ),
660
660
  () => g.div(
661
- l.class("bc-file-input"),
661
+ r.class("bc-file-input"),
662
662
  de({
663
663
  value: i,
664
664
  accept: s,
665
665
  enableClick: !0,
666
- allowMultiple: f.map(r ?? 1 / 0, (c) => c > 1),
666
+ allowMultiple: f.map(l ?? 1 / 0, (c) => c > 1),
667
667
  disabled: b,
668
668
  onChange: S,
669
669
  content: $
@@ -674,24 +674,24 @@ const zt = (t, ...e) => {
674
674
  i,
675
675
  () => N(
676
676
  g.div(
677
- l.class("bc-file-input__file-list"),
677
+ r.class("bc-file-input__file-list"),
678
678
  ee(i, (c, y) => {
679
679
  const T = y.index;
680
680
  return g.div(
681
- l.class("bc-file-input__file-item"),
681
+ r.class("bc-file-input__file-item"),
682
682
  g.div(
683
- l.class("bc-file-input__file-icon"),
683
+ r.class("bc-file-input__file-icon"),
684
684
  me(c)
685
685
  ),
686
686
  g.div(
687
- l.class("bc-file-input__file-info"),
687
+ r.class("bc-file-input__file-info"),
688
688
  g.div(
689
- l.class("bc-file-input__file-name"),
690
- l.title(c.$.name),
689
+ r.class("bc-file-input__file-name"),
690
+ r.title(c.$.name),
691
691
  c.$.name
692
692
  ),
693
693
  g.div(
694
- l.class("bc-file-input__file-meta"),
694
+ r.class("bc-file-input__file-meta"),
695
695
  A(
696
696
  c.$.size,
697
697
  k.$.fileSizeUnits
@@ -712,7 +712,7 @@ const zt = (t, ...e) => {
712
712
  disabled: b,
713
713
  onClick: () => a(T)
714
714
  },
715
- l.class("bc-file-input__remove-button")
715
+ r.class("bc-file-input__remove-button")
716
716
  )
717
717
  );
718
718
  })
@@ -720,13 +720,13 @@ const zt = (t, ...e) => {
720
720
  U(
721
721
  i.map(({ length: c }) => c > 1),
722
722
  () => g.div(
723
- l.class(
723
+ r.class(
724
724
  "bc-file-input__clear-all-button-container"
725
725
  ),
726
726
  g.button(
727
- l.type("button"),
728
- l.class("bc-file-input__clear-all-button"),
729
- l.disabled(b),
727
+ r.type("button"),
728
+ r.class("bc-file-input__clear-all-button"),
729
+ r.disabled(b),
730
730
  k.$.clearAllFiles,
731
731
  C.click((c) => {
732
732
  c.preventDefault(), c.stopPropagation(), x();
@@ -746,11 +746,11 @@ const zt = (t, ...e) => {
746
746
  );
747
747
  };
748
748
  function at(t, e, n) {
749
- const s = t.length.map((r) => r);
749
+ const s = t.length.map((l) => l);
750
750
  return Ze(
751
751
  s,
752
- (r) => {
753
- const h = t.item(r.index), o = [];
752
+ (l) => {
753
+ const h = t.item(l.index), o = [];
754
754
  return N(
755
755
  ne(() => {
756
756
  o.forEach((d) => d());
@@ -758,32 +758,32 @@ function at(t, e, n) {
758
758
  e({
759
759
  list: t,
760
760
  item: h,
761
- position: r,
762
- remove: () => t.removeAt(r.index),
761
+ position: l,
762
+ remove: () => t.removeAt(l.index),
763
763
  move: (d) => {
764
764
  switch (d) {
765
765
  case "up":
766
- if (r.index === 0) return;
767
- t.move(r.index, r.index - 1);
766
+ if (l.index === 0) return;
767
+ t.move(l.index, l.index - 1);
768
768
  break;
769
769
  case "down":
770
- if (r.index === t.length.value - 1) return;
771
- t.move(r.index, r.index + 1);
770
+ if (l.index === t.length.value - 1) return;
771
+ t.move(l.index, l.index + 1);
772
772
  break;
773
773
  case "first":
774
- t.move(r.index, 0);
774
+ t.move(l.index, 0);
775
775
  break;
776
776
  case "last":
777
- t.move(r.index, t.length.value - 1);
777
+ t.move(l.index, t.length.value - 1);
778
778
  }
779
779
  },
780
780
  canMove: (d) => {
781
781
  const b = (() => {
782
782
  switch (d) {
783
783
  case "up":
784
- return ke(r.index > 0);
784
+ return ke(l.index > 0);
785
785
  case "down":
786
- return t.length.map((w) => r.index < w - 1);
786
+ return t.length.map((w) => l.index < w - 1);
787
787
  }
788
788
  })();
789
789
  return o.push(() => b.dispose()), b;
@@ -792,9 +792,9 @@ function at(t, e, n) {
792
792
  const b = (() => {
793
793
  switch (d) {
794
794
  case "up":
795
- return ke(r.index === 0);
795
+ return ke(l.index === 0);
796
796
  case "down":
797
- return t.length.map((w) => r.index === w - 1);
797
+ return t.length.map((w) => l.index === w - 1);
798
798
  }
799
799
  })();
800
800
  return o.push(() => b.dispose()), b;
@@ -812,18 +812,18 @@ const Se = {
812
812
  }, ut = (t) => t instanceof RegExp;
813
813
  function Oe(t, e, n) {
814
814
  if (t == null) return [];
815
- const s = n ? { ...Se, ...e } : e ?? Se, r = (o, d) => {
815
+ const s = n ? { ...Se, ...e } : e ?? Se, l = (o, d) => {
816
816
  const b = s[d];
817
817
  b ? o.push({ type: "pattern", name: d, ...b }) : o.push({ type: "literal", char: d });
818
818
  }, h = [];
819
819
  if (typeof t == "string") {
820
- for (const o of t) r(h, o);
820
+ for (const o of t) l(h, o);
821
821
  return h;
822
822
  }
823
823
  for (const o of t)
824
824
  if (typeof o == "string")
825
- if (o.length <= 1) r(h, o);
826
- else for (const d of o) r(h, d);
825
+ if (o.length <= 1) l(h, o);
826
+ else for (const d of o) l(h, d);
827
827
  else ut(o) ? h.push({ type: "pattern", pattern: o }) : typeof o == "object" && o && h.push(o);
828
828
  return h;
829
829
  }
@@ -843,11 +843,11 @@ function pt(t, e) {
843
843
  }
844
844
  };
845
845
  }
846
- function Te(t, e, n, s, r, h) {
846
+ function Te(t, e, n, s, l, h) {
847
847
  const o = {
848
848
  raw: t,
849
849
  previousConformed: e,
850
- cursor: r ?? t.length,
850
+ cursor: l ?? t.length,
851
851
  completed: !1
852
852
  }, d = s.definitions ?? {}, b = typeof n == "function" ? n(t, o) : n, w = Oe(
853
853
  b,
@@ -905,7 +905,7 @@ const Fe = (t) => {
905
905
  value: e,
906
906
  onBlur: n,
907
907
  onChange: s,
908
- onInput: r,
908
+ onInput: l,
909
909
  onAccept: h,
910
910
  onComplete: o,
911
911
  mask: d,
@@ -986,14 +986,14 @@ const Fe = (t) => {
986
986
  conformed: H,
987
987
  completed: ve,
988
988
  cursor: ue
989
- }), y === "input" ? r?.(H) : (s?.(H), ve && o?.({ raw: xe, conformed: H }));
989
+ }), y === "input" ? l?.(H) : (s?.(H), ve && o?.({ raw: xe, conformed: H }));
990
990
  };
991
991
  return W({
992
992
  ...t,
993
993
  input: se.text(
994
994
  q(t),
995
- l.value(V),
996
- l.class("bc-input"),
995
+ r.value(V),
996
+ r.class("bc-input"),
997
997
  n != null ? C.blur(n) : M,
998
998
  te(
999
999
  (c) => c instanceof HTMLInputElement ? N(
@@ -1030,17 +1030,17 @@ const Fe = (t) => {
1030
1030
  )
1031
1031
  });
1032
1032
  }, Bt = (t) => {
1033
- const { value: e, onBlur: n, onChange: s, onInput: r, rows: h } = t;
1033
+ const { value: e, onBlur: n, onChange: s, onInput: l, rows: h } = t;
1034
1034
  return W({
1035
1035
  ...t,
1036
1036
  input: g.textarea(
1037
1037
  q(t),
1038
- l.rows(h ?? 3),
1039
- l.value(e),
1040
- l.class("bc-input"),
1038
+ r.rows(h ?? 3),
1039
+ r.value(e),
1040
+ r.class("bc-input"),
1041
1041
  n != null ? C.blur(P(n)) : M,
1042
1042
  s != null ? C.change(P(s)) : M,
1043
- r != null ? C.input(P(r)) : M
1043
+ l != null ? C.input(P(l)) : M
1044
1044
  )
1045
1045
  });
1046
1046
  }, ze = (t) => {
@@ -1048,8 +1048,8 @@ const Fe = (t) => {
1048
1048
  const e = Number(t);
1049
1049
  return Number.isNaN(e) ? null : e;
1050
1050
  }, Vt = (t) => {
1051
- const { value: e, step: n, min: s, max: r, onBlur: h, onChange: o, onInput: d, after: b } = t, w = (i) => {
1052
- const u = s != null ? f.get(s) : void 0, D = r != null ? f.get(r) : void 0;
1051
+ const { value: e, step: n, min: s, max: l, onBlur: h, onChange: o, onInput: d, after: b } = t, w = (i) => {
1052
+ const u = s != null ? f.get(s) : void 0, D = l != null ? f.get(l) : void 0;
1053
1053
  return u != null && i < u ? u : D != null && i > D ? D : i;
1054
1054
  }, p = (() => {
1055
1055
  if (n == null) return null;
@@ -1061,7 +1061,7 @@ const Fe = (t) => {
1061
1061
  return $ == null ? !0 : I > $;
1062
1062
  }), u = A(
1063
1063
  e,
1064
- r
1064
+ l
1065
1065
  )((x, $) => {
1066
1066
  const I = x ?? 0;
1067
1067
  return $ == null ? !0 : I < $;
@@ -1071,19 +1071,19 @@ const Fe = (t) => {
1071
1071
  const y = w(k);
1072
1072
  y !== $ && (o?.(y), d?.(y));
1073
1073
  }, S = (x) => {
1074
- const $ = f.get(e) ?? 0, I = f.get(n), V = x?.shiftKey ? 10 : 1, k = G($ + I * V, I), c = r != null ? f.get(r) : void 0;
1074
+ const $ = f.get(e) ?? 0, I = f.get(n), V = x?.shiftKey ? 10 : 1, k = G($ + I * V, I), c = l != null ? f.get(l) : void 0;
1075
1075
  if (c != null && k > c) return;
1076
1076
  const y = w(k);
1077
1077
  y !== $ && (o?.(y), d?.(y));
1078
1078
  };
1079
1079
  return ((x, $) => Le(
1080
- l.class("bc-number-input-steppers"),
1080
+ r.class("bc-number-input-steppers"),
1081
1081
  g.button(
1082
- l.type("button"),
1083
- l.class(
1082
+ r.type("button"),
1083
+ r.class(
1084
1084
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
1085
1085
  ),
1086
- l.disabled(
1086
+ r.disabled(
1087
1087
  A(
1088
1088
  u,
1089
1089
  t.disabled ?? !1
@@ -1094,11 +1094,11 @@ const Fe = (t) => {
1094
1094
  E({ icon: "line-md:plus", size: "xs" })
1095
1095
  ),
1096
1096
  g.button(
1097
- l.type("button"),
1098
- l.class(
1097
+ r.type("button"),
1098
+ r.class(
1099
1099
  "bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
1100
1100
  ),
1101
- l.disabled(
1101
+ r.disabled(
1102
1102
  A(
1103
1103
  i,
1104
1104
  t.disabled ?? !1
@@ -1121,13 +1121,13 @@ const Fe = (t) => {
1121
1121
  ...t,
1122
1122
  input: se.number(
1123
1123
  // min/max attributes and reactive watchers (no forced correction)
1124
- s != null ? l.min(s) : M,
1125
- r != null ? l.max(r) : M,
1124
+ s != null ? r.min(s) : M,
1125
+ l != null ? r.max(l) : M,
1126
1126
  q(t),
1127
1127
  // Represent null as empty string so the field can be cleared
1128
- l.value(f.map(e, (i) => i == null ? "" : String(i))),
1129
- l.step(n),
1130
- l.class("bc-input bc-number-input"),
1128
+ r.value(f.map(e, (i) => i == null ? "" : String(i))),
1129
+ r.step(n),
1130
+ r.class("bc-input bc-number-input"),
1131
1131
  h != null ? C.blur(P(h)) : M,
1132
1132
  o != null ? C.change(
1133
1133
  P((i) => {
@@ -1154,48 +1154,49 @@ const Fe = (t) => {
1154
1154
  const e = {
1155
1155
  type: "pattern",
1156
1156
  pattern: /[0-9A-Fa-f]/,
1157
- transform: (s) => s.toLowerCase()
1158
- };
1157
+ transform: (l) => l.toLowerCase()
1158
+ }, n = [
1159
+ e,
1160
+ e,
1161
+ e,
1162
+ e,
1163
+ e,
1164
+ e,
1165
+ e,
1166
+ e,
1167
+ "-",
1168
+ e,
1169
+ e,
1170
+ e,
1171
+ e,
1172
+ "-",
1173
+ e,
1174
+ e,
1175
+ e,
1176
+ e,
1177
+ "-",
1178
+ e,
1179
+ e,
1180
+ e,
1181
+ e,
1182
+ "-",
1183
+ e,
1184
+ e,
1185
+ e,
1186
+ e,
1187
+ e,
1188
+ e,
1189
+ e,
1190
+ e,
1191
+ e,
1192
+ e,
1193
+ e,
1194
+ e
1195
+ ], s = t.class ? f.map(t.class, (l) => `bc-uuid-input ${l}`) : "bc-uuid-input";
1159
1196
  return Fe({
1160
1197
  ...t,
1161
- mask: [
1162
- e,
1163
- e,
1164
- e,
1165
- e,
1166
- e,
1167
- e,
1168
- e,
1169
- e,
1170
- "-",
1171
- e,
1172
- e,
1173
- e,
1174
- e,
1175
- "-",
1176
- e,
1177
- e,
1178
- e,
1179
- e,
1180
- "-",
1181
- e,
1182
- e,
1183
- e,
1184
- e,
1185
- "-",
1186
- e,
1187
- e,
1188
- e,
1189
- e,
1190
- e,
1191
- e,
1192
- e,
1193
- e,
1194
- e,
1195
- e,
1196
- e,
1197
- e
1198
- ],
1198
+ class: s,
1199
+ mask: n,
1199
1200
  // Sensible default placeholder; can be overridden via options.placeholder
1200
1201
  placeholder: t.placeholder ?? "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
1201
1202
  });
@@ -1231,10 +1232,10 @@ const Be = (t, e) => {
1231
1232
  return null;
1232
1233
  }
1233
1234
  }, Lt = (t) => {
1234
- const { value: e, onChange: n, onInput: s, after: r, disabled: h, onBlur: o } = t, d = () => {
1235
+ const { value: e, onChange: n, onInput: s, after: l, disabled: h, onBlur: o } = t, d = () => {
1235
1236
  const p = Ee(e, h, n ?? s);
1236
- return r != null ? N(p, r) : p;
1237
- }, b = t.placeholder != null ? M : l.placeholder("P0DT0H0M0S");
1237
+ return l != null ? N(p, l) : p;
1238
+ }, b = t.placeholder != null ? M : r.placeholder("P0DT0H0M0S");
1238
1239
  return Ke(
1239
1240
  (p) => {
1240
1241
  const m = qe(
@@ -1272,8 +1273,8 @@ const Be = (t, e) => {
1272
1273
  ...t,
1273
1274
  input: se.text(
1274
1275
  q(t),
1275
- l.value(f.map(e, (m) => m?.toString() ?? "")),
1276
- l.class("bc-input"),
1276
+ r.value(f.map(e, (m) => m?.toString() ?? "")),
1277
+ r.class("bc-input"),
1277
1278
  b,
1278
1279
  o != null ? C.blur(() => o()) : M,
1279
1280
  n != null ? C.change(p(n)) : M,
@@ -1284,16 +1285,16 @@ const Be = (t, e) => {
1284
1285
  } }
1285
1286
  );
1286
1287
  }, Ut = (t) => {
1287
- const { value: e, onBlur: n, onChange: s, onInput: r } = t;
1288
+ const { value: e, onBlur: n, onChange: s, onInput: l } = t;
1288
1289
  return W({
1289
1290
  ...t,
1290
1291
  input: se.url(
1291
1292
  q(t),
1292
- l.value(e),
1293
- l.class("bc-input"),
1293
+ r.value(e),
1294
+ r.class("bc-input"),
1294
1295
  n != null ? C.blur(P(n)) : M,
1295
1296
  s != null ? C.change(P(s)) : M,
1296
- r != null ? C.input(P(r)) : M
1297
+ l != null ? C.input(P(l)) : M
1297
1298
  )
1298
1299
  });
1299
1300
  };
@@ -1301,7 +1302,7 @@ function ht(t, e) {
1301
1302
  const {
1302
1303
  onMove: n,
1303
1304
  cannotMoveUp: s,
1304
- cannotMoveDown: r,
1305
+ cannotMoveDown: l,
1305
1306
  onRemove: h,
1306
1307
  showMove: o = !0,
1307
1308
  showRemove: d = !0,
@@ -1311,7 +1312,7 @@ function ht(t, e) {
1311
1312
  } = t, m = f.toSignal(p).map((u) => u === "aside"), v = U(
1312
1313
  o,
1313
1314
  () => g.div(
1314
- l.class("bc-list-item-controls__move"),
1315
+ r.class("bc-list-item-controls__move"),
1315
1316
  be(
1316
1317
  {
1317
1318
  size: "xs",
@@ -1335,7 +1336,7 @@ function ht(t, e) {
1335
1336
  roundedness: "full",
1336
1337
  variant: "text",
1337
1338
  onClick: () => n("down"),
1338
- disabled: r
1339
+ disabled: l
1339
1340
  },
1340
1341
  O(
1341
1342
  F,
@@ -1363,19 +1364,19 @@ function ht(t, e) {
1363
1364
  return U(
1364
1365
  m,
1365
1366
  () => g.div(
1366
- l.class("bc-list-item-controls bc-list-item-controls--aside"),
1367
- g.div(l.class("bc-list-item-controls__content"), e),
1367
+ r.class("bc-list-item-controls bc-list-item-controls--aside"),
1368
+ g.div(r.class("bc-list-item-controls__content"), e),
1368
1369
  g.div(
1369
- l.class("bc-list-item-controls__actions"),
1370
+ r.class("bc-list-item-controls__actions"),
1370
1371
  U(w, () => v),
1371
1372
  i
1372
1373
  )
1373
1374
  ),
1374
1375
  () => g.div(
1375
- l.class("bc-list-item-controls bc-list-item-controls--below"),
1376
- g.div(l.class("bc-list-item-controls__content"), e),
1376
+ r.class("bc-list-item-controls bc-list-item-controls--below"),
1377
+ g.div(r.class("bc-list-item-controls__content"), e),
1377
1378
  g.div(
1378
- l.class("bc-list-item-controls__actions"),
1379
+ r.class("bc-list-item-controls__actions"),
1379
1380
  U(
1380
1381
  w,
1381
1382
  () => v,
@@ -1391,7 +1392,7 @@ const gt = (t) => {
1391
1392
  controller: e,
1392
1393
  element: n,
1393
1394
  separator: s,
1394
- showMove: r = !0,
1395
+ showMove: l = !0,
1395
1396
  showRemove: h = !0,
1396
1397
  showAdd: o = !0,
1397
1398
  createItem: d,
@@ -1402,7 +1403,7 @@ const gt = (t) => {
1402
1403
  } = t, v = U(
1403
1404
  A(o, d)((i, u) => i && u != null),
1404
1405
  () => Me(
1405
- l.class(
1406
+ r.class(
1406
1407
  "bc-group--gap-2 bc-group--align-center bc-group--justify-center"
1407
1408
  ),
1408
1409
  be(
@@ -1420,7 +1421,7 @@ const gt = (t) => {
1420
1421
  O(
1421
1422
  F,
1422
1423
  (i) => Me(
1423
- l.class("bc-group--gap-2"),
1424
+ r.class("bc-group--gap-2"),
1424
1425
  E({ icon: "line-md:plus" }),
1425
1426
  b ?? i.$.addLabel
1426
1427
  )
@@ -1437,7 +1438,7 @@ const gt = (t) => {
1437
1438
  cannotMoveUp: i.cannotMove("up"),
1438
1439
  cannotMoveDown: i.cannotMove("down"),
1439
1440
  onRemove: i.remove,
1440
- showMove: r,
1441
+ showMove: l,
1441
1442
  showRemove: h,
1442
1443
  removeDisabled: p,
1443
1444
  showMoveButtons: e.signal.map((u) => u.length > 1),
@@ -1453,7 +1454,7 @@ const gt = (t) => {
1453
1454
  const {
1454
1455
  controller: n,
1455
1456
  element: s,
1456
- separator: r,
1457
+ separator: l,
1457
1458
  showMove: h,
1458
1459
  showRemove: o,
1459
1460
  showAdd: d,
@@ -1470,7 +1471,7 @@ const gt = (t) => {
1470
1471
  content: gt({
1471
1472
  controller: n,
1472
1473
  element: s,
1473
- separator: r,
1474
+ separator: l,
1474
1475
  showMove: h,
1475
1476
  showRemove: o,
1476
1477
  showAdd: d,
@@ -1504,8 +1505,8 @@ class Ot extends pe {
1504
1505
  * @param branches - Array of branch definitions describing the possible value types
1505
1506
  * @param equals - Optional equality function for comparing values. Defaults to `strictEqual`.
1506
1507
  */
1507
- constructor(e, n, s, r, h, o, d = K) {
1508
- super(e, n, s, r, h, d), this.branches = o;
1508
+ constructor(e, n, s, l, h, o, d = K) {
1509
+ super(e, n, s, l, h, d), this.branches = o;
1509
1510
  const b = (p) => {
1510
1511
  for (const m of o)
1511
1512
  if (m.detect(p))
@@ -1528,7 +1529,7 @@ class Ot extends pe {
1528
1529
  (i) => m.detect(i) ? i : m.defaultValue(),
1529
1530
  d
1530
1531
  ),
1531
- r.map(Ce([p])),
1532
+ l.map(Ce([p])),
1532
1533
  {
1533
1534
  disabled: this.disabled,
1534
1535
  validationMode: this.parent.validationMode
@@ -1567,18 +1568,18 @@ class Ot extends pe {
1567
1568
  * @throws Error if the branch key is not found in the branches array
1568
1569
  */
1569
1570
  getBranchController(e) {
1570
- const n = this.branches.find((r) => r.key === e);
1571
+ const n = this.branches.find((l) => l.key === e);
1571
1572
  if (!n)
1572
1573
  throw new Error(`Unknown branch: ${e}`);
1573
1574
  if (this.#e.has(e))
1574
1575
  return this.#e.get(e);
1575
1576
  const s = new pe(
1576
1577
  [...this.path, e],
1577
- (r) => {
1578
- this.change(r);
1578
+ (l) => {
1579
+ this.change(l);
1579
1580
  },
1580
1581
  this.signal.map(
1581
- (r) => n.detect(r) ? r : n.defaultValue(),
1582
+ (l) => n.detect(l) ? l : n.defaultValue(),
1582
1583
  K
1583
1584
  ),
1584
1585
  this.status.map(Ce([e])),
@@ -1608,11 +1609,11 @@ class Ot extends pe {
1608
1609
  const s = this.branches.find((o) => o.key === e);
1609
1610
  if (!s)
1610
1611
  throw new Error(`Unknown branch: ${e}`);
1611
- const r = f.get(this.signal);
1612
- if (s.detect(r))
1612
+ const l = f.get(this.signal);
1613
+ if (s.detect(l))
1613
1614
  return !0;
1614
1615
  if (s.convert) {
1615
- const o = s.convert(r);
1616
+ const o = s.convert(l);
1616
1617
  if (o.ok)
1617
1618
  return this.change(o.value), !0;
1618
1619
  }