@middag-io/react 0.39.0 → 0.40.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.
@@ -3201,22 +3201,25 @@ var tc = n("chevron-up", [["path", {
3201
3201
  }]]), rc = n("minus", [["path", {
3202
3202
  d: "M5 12h14",
3203
3203
  key: "1ays0h"
3204
- }]]), ic = /* @__PURE__ */ new Map(), ac = /* @__PURE__ */ new Map();
3205
- function oc(e, t) {
3206
- ic.set(e, t);
3204
+ }]]), ic = "__MIDDAG_ICON_REGISTRY_V1__", ac = globalThis, oc = ac[ic] ??= {
3205
+ icons: /* @__PURE__ */ new Map(),
3206
+ entityIcons: /* @__PURE__ */ new Map()
3207
+ }, sc = oc.icons, cc = oc.entityIcons;
3208
+ function lc(e, t) {
3209
+ sc.set(e, t);
3207
3210
  }
3208
- function sc(e, t) {
3209
- ac.set(e, t);
3211
+ function uc(e, t) {
3212
+ cc.set(e, t);
3210
3213
  }
3211
- function cc(e) {
3212
- return ic.get(e);
3214
+ function dc(e) {
3215
+ return sc.get(e);
3213
3216
  }
3214
- function lc(e) {
3215
- return ac.get(e);
3217
+ function fc(e) {
3218
+ return cc.get(e);
3216
3219
  }
3217
3220
  //#endregion
3218
3221
  //#region node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.mjs
3219
- var uc = [
3222
+ var pc = [
3220
3223
  "a",
3221
3224
  "button",
3222
3225
  "div",
@@ -3246,7 +3249,7 @@ var uc = [
3246
3249
  ...e,
3247
3250
  [t]: r
3248
3251
  };
3249
- }, {}), dc = Object.freeze({
3252
+ }, {}), mc = Object.freeze({
3250
3253
  position: "absolute",
3251
3254
  border: 0,
3252
3255
  width: 1,
@@ -3257,16 +3260,16 @@ var uc = [
3257
3260
  clip: "rect(0, 0, 0, 0)",
3258
3261
  whiteSpace: "nowrap",
3259
3262
  wordWrap: "normal"
3260
- }), fc = "VisuallyHidden", pc = z.forwardRef((e, t) => /* @__PURE__ */ H(uc.span, {
3263
+ }), hc = "VisuallyHidden", gc = z.forwardRef((e, t) => /* @__PURE__ */ H(pc.span, {
3261
3264
  ...e,
3262
3265
  ref: t,
3263
3266
  style: {
3264
- ...dc,
3267
+ ...mc,
3265
3268
  ...e.style
3266
3269
  }
3267
3270
  }));
3268
- pc.displayName = fc;
3269
- var mc = pc, hc = [
3271
+ gc.displayName = hc;
3272
+ var _c = gc, vc = [
3270
3273
  "a",
3271
3274
  "button",
3272
3275
  "div",
@@ -3296,14 +3299,14 @@ var mc = pc, hc = [
3296
3299
  ...e,
3297
3300
  [t]: r
3298
3301
  };
3299
- }, {}), gc = "Dialog", [_c, vc] = t(gc), [yc, bc] = _c(gc), xc = (e) => {
3302
+ }, {}), yc = "Dialog", [bc, xc] = t(yc), [Sc, Cc] = bc(yc), wc = (e) => {
3300
3303
  let { __scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !0 } = e, s = z.useRef(null), c = z.useRef(null), [l, u] = Ue({
3301
3304
  prop: r,
3302
3305
  defaultProp: i ?? !1,
3303
3306
  onChange: a,
3304
- caller: gc
3307
+ caller: yc
3305
3308
  });
3306
- return /* @__PURE__ */ H(yc, {
3309
+ return /* @__PURE__ */ H(Sc, {
3307
3310
  scope: t,
3308
3311
  triggerRef: s,
3309
3312
  contentRef: c,
@@ -3317,24 +3320,24 @@ var mc = pc, hc = [
3317
3320
  children: n
3318
3321
  });
3319
3322
  };
3320
- xc.displayName = gc;
3321
- var Sc = "DialogTrigger", Cc = z.forwardRef((e, t) => {
3322
- let { __scopeDialog: n, ...r } = e, i = bc(Sc, n), a = c(t, i.triggerRef);
3323
- return /* @__PURE__ */ H(hc.button, {
3323
+ wc.displayName = yc;
3324
+ var Tc = "DialogTrigger", Ec = z.forwardRef((e, t) => {
3325
+ let { __scopeDialog: n, ...r } = e, i = Cc(Tc, n), a = c(t, i.triggerRef);
3326
+ return /* @__PURE__ */ H(vc.button, {
3324
3327
  type: "button",
3325
3328
  "aria-haspopup": "dialog",
3326
3329
  "aria-expanded": i.open,
3327
3330
  "aria-controls": i.contentId,
3328
- "data-state": Uc(i.open),
3331
+ "data-state": Kc(i.open),
3329
3332
  ...r,
3330
3333
  ref: a,
3331
3334
  onClick: s(e.onClick, i.onOpenToggle)
3332
3335
  });
3333
3336
  });
3334
- Cc.displayName = Sc;
3335
- var wc = "DialogPortal", [Tc, Ec] = _c(wc, { forceMount: void 0 }), Dc = (e) => {
3336
- let { __scopeDialog: t, forceMount: n, children: r, container: a } = e, o = bc(wc, t);
3337
- return /* @__PURE__ */ H(Tc, {
3337
+ Ec.displayName = Tc;
3338
+ var Dc = "DialogPortal", [Oc, kc] = bc(Dc, { forceMount: void 0 }), Ac = (e) => {
3339
+ let { __scopeDialog: t, forceMount: n, children: r, container: a } = e, o = Cc(Dc, t);
3340
+ return /* @__PURE__ */ H(Oc, {
3338
3341
  scope: t,
3339
3342
  forceMount: n,
3340
3343
  children: z.Children.map(r, (e) => /* @__PURE__ */ H(i, {
@@ -3347,26 +3350,26 @@ var wc = "DialogPortal", [Tc, Ec] = _c(wc, { forceMount: void 0 }), Dc = (e) =>
3347
3350
  }))
3348
3351
  });
3349
3352
  };
3350
- Dc.displayName = wc;
3351
- var Oc = "DialogOverlay", kc = z.forwardRef((e, t) => {
3352
- let n = Ec(Oc, e.__scopeDialog), { forceMount: r = n.forceMount, ...a } = e, o = bc(Oc, e.__scopeDialog);
3353
+ Ac.displayName = Dc;
3354
+ var jc = "DialogOverlay", Mc = z.forwardRef((e, t) => {
3355
+ let n = kc(jc, e.__scopeDialog), { forceMount: r = n.forceMount, ...a } = e, o = Cc(jc, e.__scopeDialog);
3353
3356
  return o.modal ? /* @__PURE__ */ H(i, {
3354
3357
  present: r || o.open,
3355
- children: /* @__PURE__ */ H(jc, {
3358
+ children: /* @__PURE__ */ H(Pc, {
3356
3359
  ...a,
3357
3360
  ref: t
3358
3361
  })
3359
3362
  }) : null;
3360
3363
  });
3361
- kc.displayName = Oc;
3362
- var Ac = f("DialogOverlay.RemoveScroll"), jc = z.forwardRef((e, t) => {
3363
- let { __scopeDialog: n, ...r } = e, i = bc(Oc, n);
3364
+ Mc.displayName = jc;
3365
+ var Nc = f("DialogOverlay.RemoveScroll"), Pc = z.forwardRef((e, t) => {
3366
+ let { __scopeDialog: n, ...r } = e, i = Cc(jc, n);
3364
3367
  return /* @__PURE__ */ H(Je, {
3365
- as: Ac,
3368
+ as: Nc,
3366
3369
  allowPinchZoom: !0,
3367
3370
  shards: [i.contentRef],
3368
- children: /* @__PURE__ */ H(hc.div, {
3369
- "data-state": Uc(i.open),
3371
+ children: /* @__PURE__ */ H(vc.div, {
3372
+ "data-state": Kc(i.open),
3370
3373
  ...r,
3371
3374
  ref: t,
3372
3375
  style: {
@@ -3375,26 +3378,26 @@ var Ac = f("DialogOverlay.RemoveScroll"), jc = z.forwardRef((e, t) => {
3375
3378
  }
3376
3379
  })
3377
3380
  });
3378
- }), Mc = "DialogContent", Nc = z.forwardRef((e, t) => {
3379
- let n = Ec(Mc, e.__scopeDialog), { forceMount: r = n.forceMount, ...a } = e, o = bc(Mc, e.__scopeDialog);
3381
+ }), Fc = "DialogContent", Ic = z.forwardRef((e, t) => {
3382
+ let n = kc(Fc, e.__scopeDialog), { forceMount: r = n.forceMount, ...a } = e, o = Cc(Fc, e.__scopeDialog);
3380
3383
  return /* @__PURE__ */ H(i, {
3381
3384
  present: r || o.open,
3382
- children: o.modal ? /* @__PURE__ */ H(Pc, {
3385
+ children: o.modal ? /* @__PURE__ */ H(Lc, {
3383
3386
  ...a,
3384
3387
  ref: t
3385
- }) : /* @__PURE__ */ H(Fc, {
3388
+ }) : /* @__PURE__ */ H(Rc, {
3386
3389
  ...a,
3387
3390
  ref: t
3388
3391
  })
3389
3392
  });
3390
3393
  });
3391
- Nc.displayName = Mc;
3392
- var Pc = z.forwardRef((e, t) => {
3393
- let n = bc(Mc, e.__scopeDialog), r = z.useRef(null), i = c(t, n.contentRef, r);
3394
+ Ic.displayName = Fc;
3395
+ var Lc = z.forwardRef((e, t) => {
3396
+ let n = Cc(Fc, e.__scopeDialog), r = z.useRef(null), i = c(t, n.contentRef, r);
3394
3397
  return z.useEffect(() => {
3395
3398
  let e = r.current;
3396
3399
  if (e) return nt(e);
3397
- }, []), /* @__PURE__ */ H(Ic, {
3400
+ }, []), /* @__PURE__ */ H(zc, {
3398
3401
  ...e,
3399
3402
  ref: i,
3400
3403
  trapFocus: n.open,
@@ -3408,9 +3411,9 @@ var Pc = z.forwardRef((e, t) => {
3408
3411
  }),
3409
3412
  onFocusOutside: s(e.onFocusOutside, (e) => e.preventDefault())
3410
3413
  });
3411
- }), Fc = z.forwardRef((e, t) => {
3412
- let n = bc(Mc, e.__scopeDialog), r = z.useRef(!1), i = z.useRef(!1);
3413
- return /* @__PURE__ */ H(Ic, {
3414
+ }), Rc = z.forwardRef((e, t) => {
3415
+ let n = Cc(Fc, e.__scopeDialog), r = z.useRef(!1), i = z.useRef(!1);
3416
+ return /* @__PURE__ */ H(zc, {
3414
3417
  ...e,
3415
3418
  ref: t,
3416
3419
  trapFocus: !1,
@@ -3424,8 +3427,8 @@ var Pc = z.forwardRef((e, t) => {
3424
3427
  n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
3425
3428
  }
3426
3429
  });
3427
- }), Ic = z.forwardRef((e, t) => {
3428
- let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = e, s = bc(Mc, n), l = z.useRef(null), u = c(t, l);
3430
+ }), zc = z.forwardRef((e, t) => {
3431
+ let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = e, s = Cc(Fc, n), l = z.useRef(null), u = c(t, l);
3429
3432
  return Qe(), /* @__PURE__ */ U(_t, { children: [/* @__PURE__ */ H(Ye, {
3430
3433
  asChild: !0,
3431
3434
  loop: !0,
@@ -3437,52 +3440,52 @@ var Pc = z.forwardRef((e, t) => {
3437
3440
  id: s.contentId,
3438
3441
  "aria-describedby": s.descriptionId,
3439
3442
  "aria-labelledby": s.titleId,
3440
- "data-state": Uc(s.open),
3443
+ "data-state": Kc(s.open),
3441
3444
  ...o,
3442
3445
  ref: u,
3443
3446
  onDismiss: () => s.onOpenChange(!1)
3444
3447
  })
3445
- }), /* @__PURE__ */ U(_t, { children: [/* @__PURE__ */ H(qc, { titleId: s.titleId }), /* @__PURE__ */ H(Yc, {
3448
+ }), /* @__PURE__ */ U(_t, { children: [/* @__PURE__ */ H(Xc, { titleId: s.titleId }), /* @__PURE__ */ H(Qc, {
3446
3449
  contentRef: l,
3447
3450
  descriptionId: s.descriptionId
3448
3451
  })] })] });
3449
- }), Lc = "DialogTitle", Rc = z.forwardRef((e, t) => {
3450
- let { __scopeDialog: n, ...r } = e, i = bc(Lc, n);
3451
- return /* @__PURE__ */ H(hc.h2, {
3452
+ }), Bc = "DialogTitle", Vc = z.forwardRef((e, t) => {
3453
+ let { __scopeDialog: n, ...r } = e, i = Cc(Bc, n);
3454
+ return /* @__PURE__ */ H(vc.h2, {
3452
3455
  id: i.titleId,
3453
3456
  ...r,
3454
3457
  ref: t
3455
3458
  });
3456
3459
  });
3457
- Rc.displayName = Lc;
3458
- var zc = "DialogDescription", Bc = z.forwardRef((e, t) => {
3459
- let { __scopeDialog: n, ...r } = e, i = bc(zc, n);
3460
- return /* @__PURE__ */ H(hc.p, {
3460
+ Vc.displayName = Bc;
3461
+ var Hc = "DialogDescription", Uc = z.forwardRef((e, t) => {
3462
+ let { __scopeDialog: n, ...r } = e, i = Cc(Hc, n);
3463
+ return /* @__PURE__ */ H(vc.p, {
3461
3464
  id: i.descriptionId,
3462
3465
  ...r,
3463
3466
  ref: t
3464
3467
  });
3465
3468
  });
3466
- Bc.displayName = zc;
3467
- var Vc = "DialogClose", Hc = z.forwardRef((e, t) => {
3468
- let { __scopeDialog: n, ...r } = e, i = bc(Vc, n);
3469
- return /* @__PURE__ */ H(hc.button, {
3469
+ Uc.displayName = Hc;
3470
+ var Wc = "DialogClose", Gc = z.forwardRef((e, t) => {
3471
+ let { __scopeDialog: n, ...r } = e, i = Cc(Wc, n);
3472
+ return /* @__PURE__ */ H(vc.button, {
3470
3473
  type: "button",
3471
3474
  ...r,
3472
3475
  ref: t,
3473
3476
  onClick: s(e.onClick, () => i.onOpenChange(!1))
3474
3477
  });
3475
3478
  });
3476
- Hc.displayName = Vc;
3477
- function Uc(e) {
3479
+ Gc.displayName = Wc;
3480
+ function Kc(e) {
3478
3481
  return e ? "open" : "closed";
3479
3482
  }
3480
- var Wc = "DialogTitleWarning", [Gc, Kc] = u(Wc, {
3481
- contentName: Mc,
3482
- titleName: Lc,
3483
+ var qc = "DialogTitleWarning", [Jc, Yc] = u(qc, {
3484
+ contentName: Fc,
3485
+ titleName: Bc,
3483
3486
  docsSlug: "dialog"
3484
- }), qc = ({ titleId: e }) => {
3485
- let t = Kc(Wc), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
3487
+ }), Xc = ({ titleId: e }) => {
3488
+ let t = Yc(qc), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
3486
3489
 
3487
3490
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
3488
3491
 
@@ -3490,8 +3493,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
3490
3493
  return z.useEffect(() => {
3491
3494
  e && (document.getElementById(e) || console.error(n));
3492
3495
  }, [n, e]), null;
3493
- }, Jc = "DialogDescriptionWarning", Yc = ({ contentRef: e, descriptionId: t }) => {
3494
- let n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Kc(Jc).contentName}}.`;
3496
+ }, Zc = "DialogDescriptionWarning", Qc = ({ contentRef: e, descriptionId: t }) => {
3497
+ let n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Yc(Zc).contentName}}.`;
3495
3498
  return z.useEffect(() => {
3496
3499
  let r = e.current?.getAttribute("aria-describedby");
3497
3500
  t && r && (document.getElementById(t) || console.warn(n));
@@ -3500,7 +3503,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
3500
3503
  e,
3501
3504
  t
3502
3505
  ]), null;
3503
- }, Xc = xc, Zc = Cc, Qc = Dc, $c = kc, el = Nc, tl = Rc, nl = Bc, rl = Hc, il = [
3506
+ }, $c = wc, el = Ec, tl = Ac, nl = Mc, rl = Ic, il = Vc, al = Uc, ol = Gc, sl = [
3504
3507
  "a",
3505
3508
  "button",
3506
3509
  "div",
@@ -3530,61 +3533,61 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
3530
3533
  ...e,
3531
3534
  [t]: r
3532
3535
  };
3533
- }, {}), al = ae();
3534
- function ol() {
3535
- return (0, al.useSyncExternalStore)(sl, () => !0, () => !1);
3536
+ }, {}), cl = ae();
3537
+ function ll() {
3538
+ return (0, cl.useSyncExternalStore)(ul, () => !0, () => !1);
3536
3539
  }
3537
- function sl() {
3540
+ function ul() {
3538
3541
  return () => {};
3539
3542
  }
3540
3543
  //#endregion
3541
3544
  //#region node_modules/@radix-ui/react-avatar/dist/index.mjs
3542
- var cl = "Avatar", [ll, ul] = t(cl), [dl, fl] = ll(cl), pl = z.forwardRef((e, t) => {
3545
+ var dl = "Avatar", [fl, pl] = t(dl), [ml, hl] = fl(dl), gl = z.forwardRef((e, t) => {
3543
3546
  let { __scopeAvatar: n, ...r } = e, [i, a] = z.useState("idle");
3544
- return /* @__PURE__ */ H(dl, {
3547
+ return /* @__PURE__ */ H(ml, {
3545
3548
  scope: n,
3546
3549
  imageLoadingStatus: i,
3547
3550
  onImageLoadingStatusChange: a,
3548
- children: /* @__PURE__ */ H(il.span, {
3551
+ children: /* @__PURE__ */ H(sl.span, {
3549
3552
  ...r,
3550
3553
  ref: t
3551
3554
  })
3552
3555
  });
3553
3556
  });
3554
- pl.displayName = cl;
3555
- var ml = "AvatarImage", hl = z.forwardRef((t, n) => {
3556
- let { __scopeAvatar: r, src: i, onLoadingStatusChange: a = () => {}, ...o } = t, s = fl(ml, r), c = yl(i, o), u = l((e) => {
3557
+ gl.displayName = dl;
3558
+ var _l = "AvatarImage", vl = z.forwardRef((t, n) => {
3559
+ let { __scopeAvatar: r, src: i, onLoadingStatusChange: a = () => {}, ...o } = t, s = hl(_l, r), c = Sl(i, o), u = l((e) => {
3557
3560
  a(e), s.onImageLoadingStatusChange(e);
3558
3561
  });
3559
3562
  return e(() => {
3560
3563
  c !== "idle" && u(c);
3561
- }, [c, u]), c === "loaded" ? /* @__PURE__ */ H(il.img, {
3564
+ }, [c, u]), c === "loaded" ? /* @__PURE__ */ H(sl.img, {
3562
3565
  ...o,
3563
3566
  ref: n,
3564
3567
  src: i
3565
3568
  }) : null;
3566
3569
  });
3567
- hl.displayName = ml;
3568
- var gl = "AvatarFallback", _l = z.forwardRef((e, t) => {
3569
- let { __scopeAvatar: n, delayMs: r, ...i } = e, a = fl(gl, n), [o, s] = z.useState(r === void 0);
3570
+ vl.displayName = _l;
3571
+ var yl = "AvatarFallback", bl = z.forwardRef((e, t) => {
3572
+ let { __scopeAvatar: n, delayMs: r, ...i } = e, a = hl(yl, n), [o, s] = z.useState(r === void 0);
3570
3573
  return z.useEffect(() => {
3571
3574
  if (r !== void 0) {
3572
3575
  let e = window.setTimeout(() => s(!0), r);
3573
3576
  return () => window.clearTimeout(e);
3574
3577
  }
3575
- }, [r]), o && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ H(il.span, {
3578
+ }, [r]), o && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ H(sl.span, {
3576
3579
  ...i,
3577
3580
  ref: t
3578
3581
  }) : null;
3579
3582
  });
3580
- _l.displayName = gl;
3581
- function vl(e, t) {
3583
+ bl.displayName = yl;
3584
+ function xl(e, t) {
3582
3585
  return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
3583
3586
  }
3584
- function yl(t, { referrerPolicy: n, crossOrigin: r }) {
3585
- let i = ol(), a = z.useRef(null), o = i ? (a.current ||= new window.Image(), a.current) : null, [s, c] = z.useState(() => vl(o, t));
3587
+ function Sl(t, { referrerPolicy: n, crossOrigin: r }) {
3588
+ let i = ll(), a = z.useRef(null), o = i ? (a.current ||= new window.Image(), a.current) : null, [s, c] = z.useState(() => xl(o, t));
3586
3589
  return e(() => {
3587
- c(vl(o, t));
3590
+ c(xl(o, t));
3588
3591
  }, [o, t]), e(() => {
3589
3592
  let e = (e) => () => {
3590
3593
  c(e);
@@ -3600,10 +3603,10 @@ function yl(t, { referrerPolicy: n, crossOrigin: r }) {
3600
3603
  n
3601
3604
  ]), s;
3602
3605
  }
3603
- var bl = pl, xl = hl, Sl = _l;
3606
+ var Cl = gl, wl = vl, Tl = bl;
3604
3607
  //#endregion
3605
3608
  //#region node_modules/@radix-ui/react-use-previous/dist/index.mjs
3606
- function Cl(e) {
3609
+ function El(e) {
3607
3610
  let t = z.useRef({
3608
3611
  value: e,
3609
3612
  previous: e
@@ -3612,7 +3615,7 @@ function Cl(e) {
3612
3615
  }
3613
3616
  //#endregion
3614
3617
  //#region node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-primitive/dist/index.mjs
3615
- var wl = [
3618
+ var Dl = [
3616
3619
  "a",
3617
3620
  "button",
3618
3621
  "div",
@@ -3642,13 +3645,13 @@ var wl = [
3642
3645
  ...e,
3643
3646
  [t]: r
3644
3647
  };
3645
- }, {}), Tl = "Checkbox", [El, Dl] = t(Tl), [Ol, kl] = El(Tl);
3646
- function Al(e) {
3648
+ }, {}), Ol = "Checkbox", [kl, Al] = t(Ol), [jl, Ml] = kl(Ol);
3649
+ function Nl(e) {
3647
3650
  let { __scopeCheckbox: t, checked: n, children: r, defaultChecked: i, disabled: a, form: o, name: s, onCheckedChange: c, required: l, value: u = "on", internal_do_not_use_render: d } = e, [f, p] = Ue({
3648
3651
  prop: n,
3649
3652
  defaultProp: i ?? !1,
3650
3653
  onChange: c,
3651
- caller: Tl
3654
+ caller: Ol
3652
3655
  }), [m, h] = z.useState(null), [g, _] = z.useState(null), v = z.useRef(!1), y = m ? !!o || !!m.closest("form") : !0, b = {
3653
3656
  checked: f,
3654
3657
  disabled: a,
@@ -3660,31 +3663,31 @@ function Al(e) {
3660
3663
  value: u,
3661
3664
  hasConsumerStoppedPropagationRef: v,
3662
3665
  required: l,
3663
- defaultChecked: zl(i) ? !1 : i,
3666
+ defaultChecked: Hl(i) ? !1 : i,
3664
3667
  isFormControl: y,
3665
3668
  bubbleInput: g,
3666
3669
  setBubbleInput: _
3667
3670
  };
3668
- return /* @__PURE__ */ H(Ol, {
3671
+ return /* @__PURE__ */ H(jl, {
3669
3672
  scope: t,
3670
3673
  ...b,
3671
- children: Rl(d) ? d(b) : r
3674
+ children: Vl(d) ? d(b) : r
3672
3675
  });
3673
3676
  }
3674
- var jl = "CheckboxTrigger", Ml = z.forwardRef(({ __scopeCheckbox: e, onKeyDown: t, onClick: n, ...r }, i) => {
3675
- let { control: a, value: o, disabled: l, checked: u, required: d, setControl: f, setChecked: p, hasConsumerStoppedPropagationRef: m, isFormControl: h, bubbleInput: g } = kl(jl, e), _ = c(i, f), v = z.useRef(u);
3677
+ var Pl = "CheckboxTrigger", Fl = z.forwardRef(({ __scopeCheckbox: e, onKeyDown: t, onClick: n, ...r }, i) => {
3678
+ let { control: a, value: o, disabled: l, checked: u, required: d, setControl: f, setChecked: p, hasConsumerStoppedPropagationRef: m, isFormControl: h, bubbleInput: g } = Ml(Pl, e), _ = c(i, f), v = z.useRef(u);
3676
3679
  return z.useEffect(() => {
3677
3680
  let e = a?.form;
3678
3681
  if (e) {
3679
3682
  let t = () => p(v.current);
3680
3683
  return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
3681
3684
  }
3682
- }, [a, p]), /* @__PURE__ */ H(wl.button, {
3685
+ }, [a, p]), /* @__PURE__ */ H(Dl.button, {
3683
3686
  type: "button",
3684
3687
  role: "checkbox",
3685
- "aria-checked": zl(u) ? "mixed" : u,
3688
+ "aria-checked": Hl(u) ? "mixed" : u,
3686
3689
  "aria-required": d,
3687
- "data-state": Bl(u),
3690
+ "data-state": Ul(u),
3688
3691
  "data-disabled": l ? "" : void 0,
3689
3692
  disabled: l,
3690
3693
  value: o,
@@ -3694,14 +3697,14 @@ var jl = "CheckboxTrigger", Ml = z.forwardRef(({ __scopeCheckbox: e, onKeyDown:
3694
3697
  e.key === "Enter" && e.preventDefault();
3695
3698
  }),
3696
3699
  onClick: s(n, (e) => {
3697
- p((e) => zl(e) ? !0 : !e), g && h && (m.current = e.isPropagationStopped(), m.current || e.stopPropagation());
3700
+ p((e) => Hl(e) ? !0 : !e), g && h && (m.current = e.isPropagationStopped(), m.current || e.stopPropagation());
3698
3701
  })
3699
3702
  });
3700
3703
  });
3701
- Ml.displayName = jl;
3702
- var Nl = z.forwardRef((e, t) => {
3704
+ Fl.displayName = Pl;
3705
+ var Il = z.forwardRef((e, t) => {
3703
3706
  let { __scopeCheckbox: n, name: r, checked: i, defaultChecked: a, required: o, disabled: s, value: c, onCheckedChange: l, form: u, ...d } = e;
3704
- return /* @__PURE__ */ H(Al, {
3707
+ return /* @__PURE__ */ H(Nl, {
3705
3708
  __scopeCheckbox: n,
3706
3709
  checked: i,
3707
3710
  defaultChecked: a,
@@ -3711,20 +3714,20 @@ var Nl = z.forwardRef((e, t) => {
3711
3714
  name: r,
3712
3715
  form: u,
3713
3716
  value: c,
3714
- internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ U(_t, { children: [/* @__PURE__ */ H(Ml, {
3717
+ internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ U(_t, { children: [/* @__PURE__ */ H(Fl, {
3715
3718
  ...d,
3716
3719
  ref: t,
3717
3720
  __scopeCheckbox: n
3718
- }), e && /* @__PURE__ */ H(Ll, { __scopeCheckbox: n })] })
3721
+ }), e && /* @__PURE__ */ H(Bl, { __scopeCheckbox: n })] })
3719
3722
  });
3720
3723
  });
3721
- Nl.displayName = Tl;
3722
- var Pl = "CheckboxIndicator", Fl = z.forwardRef((e, t) => {
3723
- let { __scopeCheckbox: n, forceMount: r, ...a } = e, o = kl(Pl, n);
3724
+ Il.displayName = Ol;
3725
+ var Ll = "CheckboxIndicator", Rl = z.forwardRef((e, t) => {
3726
+ let { __scopeCheckbox: n, forceMount: r, ...a } = e, o = Ml(Ll, n);
3724
3727
  return /* @__PURE__ */ H(i, {
3725
- present: r || zl(o.checked) || o.checked === !0,
3726
- children: /* @__PURE__ */ H(wl.span, {
3727
- "data-state": Bl(o.checked),
3728
+ present: r || Hl(o.checked) || o.checked === !0,
3729
+ children: /* @__PURE__ */ H(Dl.span, {
3730
+ "data-state": Ul(o.checked),
3728
3731
  "data-disabled": o.disabled ? "" : void 0,
3729
3732
  ...a,
3730
3733
  ref: t,
@@ -3735,16 +3738,16 @@ var Pl = "CheckboxIndicator", Fl = z.forwardRef((e, t) => {
3735
3738
  })
3736
3739
  });
3737
3740
  });
3738
- Fl.displayName = Pl;
3739
- var Il = "CheckboxBubbleInput", Ll = z.forwardRef(({ __scopeCheckbox: e, ...t }, n) => {
3740
- let { control: r, hasConsumerStoppedPropagationRef: i, checked: a, defaultChecked: o, required: s, disabled: l, name: u, value: d, form: f, bubbleInput: p, setBubbleInput: m } = kl(Il, e), h = c(n, m), g = Cl(a), _ = et(r);
3741
+ Rl.displayName = Ll;
3742
+ var zl = "CheckboxBubbleInput", Bl = z.forwardRef(({ __scopeCheckbox: e, ...t }, n) => {
3743
+ let { control: r, hasConsumerStoppedPropagationRef: i, checked: a, defaultChecked: o, required: s, disabled: l, name: u, value: d, form: f, bubbleInput: p, setBubbleInput: m } = Ml(zl, e), h = c(n, m), g = El(a), _ = et(r);
3741
3744
  z.useEffect(() => {
3742
3745
  let e = p;
3743
3746
  if (!e) return;
3744
3747
  let t = window.HTMLInputElement.prototype, n = Object.getOwnPropertyDescriptor(t, "checked").set, r = !i.current;
3745
3748
  if (g !== a && n) {
3746
3749
  let t = new Event("click", { bubbles: r });
3747
- e.indeterminate = zl(a), n.call(e, zl(a) ? !1 : a), e.dispatchEvent(t);
3750
+ e.indeterminate = Hl(a), n.call(e, Hl(a) ? !1 : a), e.dispatchEvent(t);
3748
3751
  }
3749
3752
  }, [
3750
3753
  p,
@@ -3752,8 +3755,8 @@ var Il = "CheckboxBubbleInput", Ll = z.forwardRef(({ __scopeCheckbox: e, ...t },
3752
3755
  a,
3753
3756
  i
3754
3757
  ]);
3755
- let v = z.useRef(zl(a) ? !1 : a);
3756
- return /* @__PURE__ */ H(wl.input, {
3758
+ let v = z.useRef(Hl(a) ? !1 : a);
3759
+ return /* @__PURE__ */ H(Dl.input, {
3757
3760
  type: "checkbox",
3758
3761
  "aria-hidden": !0,
3759
3762
  defaultChecked: o ?? v.current,
@@ -3776,19 +3779,19 @@ var Il = "CheckboxBubbleInput", Ll = z.forwardRef(({ __scopeCheckbox: e, ...t },
3776
3779
  }
3777
3780
  });
3778
3781
  });
3779
- Ll.displayName = Il;
3780
- function Rl(e) {
3782
+ Bl.displayName = zl;
3783
+ function Vl(e) {
3781
3784
  return typeof e == "function";
3782
3785
  }
3783
- function zl(e) {
3786
+ function Hl(e) {
3784
3787
  return e === "indeterminate";
3785
3788
  }
3786
- function Bl(e) {
3787
- return zl(e) ? "indeterminate" : e ? "checked" : "unchecked";
3789
+ function Ul(e) {
3790
+ return Hl(e) ? "indeterminate" : e ? "checked" : "unchecked";
3788
3791
  }
3789
3792
  //#endregion
3790
3793
  //#region node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-primitive/dist/index.mjs
3791
- var Vl = [
3794
+ var Wl = [
3792
3795
  "a",
3793
3796
  "button",
3794
3797
  "div",
@@ -3818,15 +3821,15 @@ var Vl = [
3818
3821
  ...e,
3819
3822
  [t]: r
3820
3823
  };
3821
- }, {}), Hl = "Label", Ul = z.forwardRef((e, t) => /* @__PURE__ */ H(Vl.label, {
3824
+ }, {}), Gl = "Label", Kl = z.forwardRef((e, t) => /* @__PURE__ */ H(Wl.label, {
3822
3825
  ...e,
3823
3826
  ref: t,
3824
3827
  onMouseDown: (t) => {
3825
3828
  t.target.closest("button, input, select, textarea") || (e.onMouseDown?.(t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
3826
3829
  }
3827
3830
  }));
3828
- Ul.displayName = Hl;
3829
- var Wl = Ul, Gl = [
3831
+ Kl.displayName = Gl;
3832
+ var ql = Kl, Jl = [
3830
3833
  "a",
3831
3834
  "button",
3832
3835
  "div",
@@ -3856,17 +3859,17 @@ var Wl = Ul, Gl = [
3856
3859
  ...e,
3857
3860
  [t]: r
3858
3861
  };
3859
- }, {}), Kl = "Radio", [ql, Jl] = t(Kl), [Yl, Xl] = ql(Kl), Zl = z.forwardRef((e, t) => {
3862
+ }, {}), Yl = "Radio", [Xl, Zl] = t(Yl), [Ql, $l] = Xl(Yl), eu = z.forwardRef((e, t) => {
3860
3863
  let { __scopeRadio: n, name: r, checked: i = !1, required: a, disabled: o, value: l = "on", onCheck: u, form: d, ...f } = e, [p, m] = z.useState(null), h = c(t, (e) => m(e)), g = z.useRef(!1), _ = p ? d || !!p.closest("form") : !0;
3861
- return /* @__PURE__ */ U(Yl, {
3864
+ return /* @__PURE__ */ U(Ql, {
3862
3865
  scope: n,
3863
3866
  checked: i,
3864
3867
  disabled: o,
3865
- children: [/* @__PURE__ */ H(Gl.button, {
3868
+ children: [/* @__PURE__ */ H(Jl.button, {
3866
3869
  type: "button",
3867
3870
  role: "radio",
3868
3871
  "aria-checked": i,
3869
- "data-state": nu(i),
3872
+ "data-state": au(i),
3870
3873
  "data-disabled": o ? "" : void 0,
3871
3874
  disabled: o,
3872
3875
  value: l,
@@ -3875,7 +3878,7 @@ var Wl = Ul, Gl = [
3875
3878
  onClick: s(e.onClick, (e) => {
3876
3879
  i || u?.(), _ && (g.current = e.isPropagationStopped(), g.current || e.stopPropagation());
3877
3880
  })
3878
- }), _ && /* @__PURE__ */ H(tu, {
3881
+ }), _ && /* @__PURE__ */ H(iu, {
3879
3882
  control: p,
3880
3883
  bubbles: !g.current,
3881
3884
  name: r,
@@ -3888,22 +3891,22 @@ var Wl = Ul, Gl = [
3888
3891
  })]
3889
3892
  });
3890
3893
  });
3891
- Zl.displayName = Kl;
3892
- var Ql = "RadioIndicator", $l = z.forwardRef((e, t) => {
3893
- let { __scopeRadio: n, forceMount: r, ...a } = e, o = Xl(Ql, n);
3894
+ eu.displayName = Yl;
3895
+ var tu = "RadioIndicator", nu = z.forwardRef((e, t) => {
3896
+ let { __scopeRadio: n, forceMount: r, ...a } = e, o = $l(tu, n);
3894
3897
  return /* @__PURE__ */ H(i, {
3895
3898
  present: r || o.checked,
3896
- children: /* @__PURE__ */ H(Gl.span, {
3897
- "data-state": nu(o.checked),
3899
+ children: /* @__PURE__ */ H(Jl.span, {
3900
+ "data-state": au(o.checked),
3898
3901
  "data-disabled": o.disabled ? "" : void 0,
3899
3902
  ...a,
3900
3903
  ref: t
3901
3904
  })
3902
3905
  });
3903
3906
  });
3904
- $l.displayName = Ql;
3905
- var eu = "RadioBubbleInput", tu = z.forwardRef(({ __scopeRadio: e, control: t, checked: n, bubbles: r = !0, ...i }, a) => {
3906
- let o = z.useRef(null), s = c(o, a), l = Cl(n), u = et(t);
3907
+ nu.displayName = tu;
3908
+ var ru = "RadioBubbleInput", iu = z.forwardRef(({ __scopeRadio: e, control: t, checked: n, bubbles: r = !0, ...i }, a) => {
3909
+ let o = z.useRef(null), s = c(o, a), l = El(n), u = et(t);
3907
3910
  return z.useEffect(() => {
3908
3911
  let e = o.current;
3909
3912
  if (!e) return;
@@ -3916,7 +3919,7 @@ var eu = "RadioBubbleInput", tu = z.forwardRef(({ __scopeRadio: e, control: t, c
3916
3919
  l,
3917
3920
  n,
3918
3921
  r
3919
- ]), /* @__PURE__ */ H(Gl.input, {
3922
+ ]), /* @__PURE__ */ H(Jl.input, {
3920
3923
  type: "radio",
3921
3924
  "aria-hidden": !0,
3922
3925
  defaultChecked: n,
@@ -3933,23 +3936,23 @@ var eu = "RadioBubbleInput", tu = z.forwardRef(({ __scopeRadio: e, control: t, c
3933
3936
  }
3934
3937
  });
3935
3938
  });
3936
- tu.displayName = eu;
3937
- function nu(e) {
3939
+ iu.displayName = ru;
3940
+ function au(e) {
3938
3941
  return e ? "checked" : "unchecked";
3939
3942
  }
3940
- var ru = [
3943
+ var ou = [
3941
3944
  "ArrowUp",
3942
3945
  "ArrowDown",
3943
3946
  "ArrowLeft",
3944
3947
  "ArrowRight"
3945
- ], iu = "RadioGroup", [au, ou] = t(iu, [Ve, Jl]), su = Ve(), cu = Jl(), [lu, uu] = au(iu), du = z.forwardRef((e, t) => {
3946
- let { __scopeRadioGroup: n, name: r, defaultValue: i, value: a, required: o = !1, disabled: s = !1, orientation: c, dir: l, loop: u = !0, onValueChange: d, ...f } = e, p = su(n), m = Ge(l), [h, g] = Ue({
3948
+ ], su = "RadioGroup", [cu, lu] = t(su, [Ve, Zl]), uu = Ve(), du = Zl(), [fu, pu] = cu(su), mu = z.forwardRef((e, t) => {
3949
+ let { __scopeRadioGroup: n, name: r, defaultValue: i, value: a, required: o = !1, disabled: s = !1, orientation: c, dir: l, loop: u = !0, onValueChange: d, ...f } = e, p = uu(n), m = Ge(l), [h, g] = Ue({
3947
3950
  prop: a,
3948
3951
  defaultProp: i ?? null,
3949
3952
  onChange: d,
3950
- caller: iu
3953
+ caller: su
3951
3954
  });
3952
- return /* @__PURE__ */ H(lu, {
3955
+ return /* @__PURE__ */ H(fu, {
3953
3956
  scope: n,
3954
3957
  name: r,
3955
3958
  required: o,
@@ -3962,7 +3965,7 @@ var ru = [
3962
3965
  orientation: c,
3963
3966
  dir: m,
3964
3967
  loop: u,
3965
- children: /* @__PURE__ */ H(Gl.div, {
3968
+ children: /* @__PURE__ */ H(Jl.div, {
3966
3969
  role: "radiogroup",
3967
3970
  "aria-required": o,
3968
3971
  "aria-orientation": c,
@@ -3974,12 +3977,12 @@ var ru = [
3974
3977
  })
3975
3978
  });
3976
3979
  });
3977
- du.displayName = iu;
3978
- var fu = "RadioGroupItem", pu = z.forwardRef((e, t) => {
3979
- let { __scopeRadioGroup: n, disabled: r, ...i } = e, a = uu(fu, n), o = a.disabled || r, l = su(n), u = cu(n), d = z.useRef(null), f = c(t, d), p = a.value === i.value, m = z.useRef(!1);
3980
+ mu.displayName = su;
3981
+ var hu = "RadioGroupItem", gu = z.forwardRef((e, t) => {
3982
+ let { __scopeRadioGroup: n, disabled: r, ...i } = e, a = pu(hu, n), o = a.disabled || r, l = uu(n), u = du(n), d = z.useRef(null), f = c(t, d), p = a.value === i.value, m = z.useRef(!1);
3980
3983
  return z.useEffect(() => {
3981
3984
  let e = (e) => {
3982
- ru.includes(e.key) && (m.current = !0);
3985
+ ou.includes(e.key) && (m.current = !0);
3983
3986
  }, t = () => m.current = !1;
3984
3987
  return document.addEventListener("keydown", e), document.addEventListener("keyup", t), () => {
3985
3988
  document.removeEventListener("keydown", e), document.removeEventListener("keyup", t);
@@ -3989,7 +3992,7 @@ var fu = "RadioGroupItem", pu = z.forwardRef((e, t) => {
3989
3992
  ...l,
3990
3993
  focusable: !o,
3991
3994
  active: p,
3992
- children: /* @__PURE__ */ H(Zl, {
3995
+ children: /* @__PURE__ */ H(eu, {
3993
3996
  disabled: o,
3994
3997
  required: a.required,
3995
3998
  checked: p,
@@ -4007,17 +4010,17 @@ var fu = "RadioGroupItem", pu = z.forwardRef((e, t) => {
4007
4010
  })
4008
4011
  });
4009
4012
  });
4010
- pu.displayName = fu;
4011
- var mu = "RadioGroupIndicator", hu = z.forwardRef((e, t) => {
4013
+ gu.displayName = hu;
4014
+ var _u = "RadioGroupIndicator", vu = z.forwardRef((e, t) => {
4012
4015
  let { __scopeRadioGroup: n, ...r } = e;
4013
- return /* @__PURE__ */ H($l, {
4014
- ...cu(n),
4016
+ return /* @__PURE__ */ H(nu, {
4017
+ ...du(n),
4015
4018
  ...r,
4016
4019
  ref: t
4017
4020
  });
4018
4021
  });
4019
- hu.displayName = mu;
4020
- var gu = du, _u = pu, vu = hu, yu = [
4022
+ vu.displayName = _u;
4023
+ var yu = mu, bu = gu, xu = vu, Su = [
4021
4024
  "a",
4022
4025
  "button",
4023
4026
  "div",
@@ -4047,26 +4050,26 @@ var gu = du, _u = pu, vu = hu, yu = [
4047
4050
  ...e,
4048
4051
  [t]: r
4049
4052
  };
4050
- }, {}), bu = [
4053
+ }, {}), Cu = [
4051
4054
  " ",
4052
4055
  "Enter",
4053
4056
  "ArrowUp",
4054
4057
  "ArrowDown"
4055
- ], xu = [" ", "Enter"], Su = "Select", [Cu, wu, Tu] = ze(Su), [Eu, Du] = t(Su, [Tu, qe]), Ou = qe(), [ku, Au] = Eu(Su), [ju, Mu] = Eu(Su), Nu = (e) => {
4056
- let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: d, disabled: f, required: p, form: m } = e, h = Ou(t), [g, _] = z.useState(null), [v, y] = z.useState(null), [b, x] = z.useState(!1), S = Ge(l), [C, w] = Ue({
4058
+ ], wu = [" ", "Enter"], Tu = "Select", [Eu, Du, Ou] = ze(Tu), [ku, Au] = t(Tu, [Ou, qe]), ju = qe(), [Mu, Nu] = ku(Tu), [Pu, Fu] = ku(Tu), Iu = (e) => {
4059
+ let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: d, disabled: f, required: p, form: m } = e, h = ju(t), [g, _] = z.useState(null), [v, y] = z.useState(null), [b, x] = z.useState(!1), S = Ge(l), [C, w] = Ue({
4057
4060
  prop: r,
4058
4061
  defaultProp: i ?? !1,
4059
4062
  onChange: a,
4060
- caller: Su
4063
+ caller: Tu
4061
4064
  }), [T, E] = Ue({
4062
4065
  prop: o,
4063
4066
  defaultProp: s,
4064
4067
  onChange: c,
4065
- caller: Su
4068
+ caller: Tu
4066
4069
  }), D = z.useRef(null), O = g ? m || !!g.closest("form") : !0, [k, A] = z.useState(/* @__PURE__ */ new Set()), j = Array.from(k).map((e) => e.props.value).join(";");
4067
4070
  return /* @__PURE__ */ H(Ze, {
4068
4071
  ...h,
4069
- children: /* @__PURE__ */ U(ku, {
4072
+ children: /* @__PURE__ */ U(Mu, {
4070
4073
  required: p,
4071
4074
  scope: t,
4072
4075
  trigger: g,
@@ -4083,9 +4086,9 @@ var gu = du, _u = pu, vu = hu, yu = [
4083
4086
  dir: S,
4084
4087
  triggerPointerDownPosRef: D,
4085
4088
  disabled: f,
4086
- children: [/* @__PURE__ */ H(Cu.Provider, {
4089
+ children: [/* @__PURE__ */ H(Eu.Provider, {
4087
4090
  scope: t,
4088
- children: /* @__PURE__ */ H(ju, {
4091
+ children: /* @__PURE__ */ H(Pu, {
4089
4092
  scope: e.__scopeSelect,
4090
4093
  onNativeOptionAdd: z.useCallback((e) => {
4091
4094
  A((t) => new Set(t).add(e));
@@ -4098,7 +4101,7 @@ var gu = du, _u = pu, vu = hu, yu = [
4098
4101
  }, []),
4099
4102
  children: n
4100
4103
  })
4101
- }), O ? /* @__PURE__ */ U(Od, {
4104
+ }), O ? /* @__PURE__ */ U(jd, {
4102
4105
  "aria-hidden": !0,
4103
4106
  required: p,
4104
4107
  tabIndex: -1,
@@ -4113,10 +4116,10 @@ var gu = du, _u = pu, vu = hu, yu = [
4113
4116
  })
4114
4117
  });
4115
4118
  };
4116
- Nu.displayName = Su;
4117
- var Pu = "SelectTrigger", Fu = z.forwardRef((e, t) => {
4118
- let { __scopeSelect: n, disabled: r = !1, ...i } = e, a = Ou(n), o = Au(Pu, n), l = o.disabled || r, u = c(t, o.onTriggerChange), d = wu(n), f = z.useRef("touch"), [p, m, h] = Ad((e) => {
4119
- let t = d().filter((e) => !e.disabled), n = jd(t, e, t.find((e) => e.value === o.value));
4119
+ Iu.displayName = Tu;
4120
+ var Lu = "SelectTrigger", Ru = z.forwardRef((e, t) => {
4121
+ let { __scopeSelect: n, disabled: r = !1, ...i } = e, a = ju(n), o = Nu(Lu, n), l = o.disabled || r, u = c(t, o.onTriggerChange), d = Du(n), f = z.useRef("touch"), [p, m, h] = Nd((e) => {
4122
+ let t = d().filter((e) => !e.disabled), n = Pd(t, e, t.find((e) => e.value === o.value));
4120
4123
  n !== void 0 && o.onValueChange(n.value);
4121
4124
  }), g = (e) => {
4122
4125
  l || (o.onOpenChange(!0), h()), e && (o.triggerPointerDownPosRef.current = {
@@ -4127,7 +4130,7 @@ var Pu = "SelectTrigger", Fu = z.forwardRef((e, t) => {
4127
4130
  return /* @__PURE__ */ H(rt, {
4128
4131
  asChild: !0,
4129
4132
  ...a,
4130
- children: /* @__PURE__ */ H(yu.button, {
4133
+ children: /* @__PURE__ */ H(Su.button, {
4131
4134
  type: "button",
4132
4135
  role: "combobox",
4133
4136
  "aria-controls": o.contentId,
@@ -4138,7 +4141,7 @@ var Pu = "SelectTrigger", Fu = z.forwardRef((e, t) => {
4138
4141
  "data-state": o.open ? "open" : "closed",
4139
4142
  disabled: l,
4140
4143
  "data-disabled": l ? "" : void 0,
4141
- "data-placeholder": kd(o.value) ? "" : void 0,
4144
+ "data-placeholder": Md(o.value) ? "" : void 0,
4142
4145
  ...i,
4143
4146
  ref: u,
4144
4147
  onClick: s(i.onClick, (e) => {
@@ -4151,61 +4154,61 @@ var Pu = "SelectTrigger", Fu = z.forwardRef((e, t) => {
4151
4154
  }),
4152
4155
  onKeyDown: s(i.onKeyDown, (e) => {
4153
4156
  let t = p.current !== "";
4154
- !(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && m(e.key), !(t && e.key === " ") && bu.includes(e.key) && (g(), e.preventDefault());
4157
+ !(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && m(e.key), !(t && e.key === " ") && Cu.includes(e.key) && (g(), e.preventDefault());
4155
4158
  })
4156
4159
  })
4157
4160
  });
4158
4161
  });
4159
- Fu.displayName = Pu;
4160
- var Iu = "SelectValue", Lu = z.forwardRef((t, n) => {
4161
- let { __scopeSelect: r, className: i, style: a, children: o, placeholder: s = "", ...l } = t, u = Au(Iu, r), { onValueNodeHasChildrenChange: d } = u, f = o !== void 0, p = c(n, u.onValueNodeChange);
4162
+ Ru.displayName = Lu;
4163
+ var zu = "SelectValue", Bu = z.forwardRef((t, n) => {
4164
+ let { __scopeSelect: r, className: i, style: a, children: o, placeholder: s = "", ...l } = t, u = Nu(zu, r), { onValueNodeHasChildrenChange: d } = u, f = o !== void 0, p = c(n, u.onValueNodeChange);
4162
4165
  return e(() => {
4163
4166
  d(f);
4164
- }, [d, f]), /* @__PURE__ */ H(yu.span, {
4167
+ }, [d, f]), /* @__PURE__ */ H(Su.span, {
4165
4168
  ...l,
4166
4169
  ref: p,
4167
4170
  style: { pointerEvents: "none" },
4168
- children: kd(u.value) ? /* @__PURE__ */ H(_t, { children: s }) : o
4171
+ children: Md(u.value) ? /* @__PURE__ */ H(_t, { children: s }) : o
4169
4172
  });
4170
4173
  });
4171
- Lu.displayName = Iu;
4172
- var Ru = "SelectIcon", zu = z.forwardRef((e, t) => {
4174
+ Bu.displayName = zu;
4175
+ var Vu = "SelectIcon", Hu = z.forwardRef((e, t) => {
4173
4176
  let { __scopeSelect: n, children: r, ...i } = e;
4174
- return /* @__PURE__ */ H(yu.span, {
4177
+ return /* @__PURE__ */ H(Su.span, {
4175
4178
  "aria-hidden": !0,
4176
4179
  ...i,
4177
4180
  ref: t,
4178
4181
  children: r || "▼"
4179
4182
  });
4180
4183
  });
4181
- zu.displayName = Ru;
4182
- var Bu = "SelectPortal", Vu = (e) => /* @__PURE__ */ H(it, {
4184
+ Hu.displayName = Vu;
4185
+ var Uu = "SelectPortal", Wu = (e) => /* @__PURE__ */ H(it, {
4183
4186
  asChild: !0,
4184
4187
  ...e
4185
4188
  });
4186
- Vu.displayName = Bu;
4187
- var Hu = "SelectContent", Uu = z.forwardRef((t, n) => {
4188
- let r = Au(Hu, t.__scopeSelect), [i, a] = z.useState();
4189
+ Wu.displayName = Uu;
4190
+ var Gu = "SelectContent", Ku = z.forwardRef((t, n) => {
4191
+ let r = Nu(Gu, t.__scopeSelect), [i, a] = z.useState();
4189
4192
  if (e(() => {
4190
4193
  a(new DocumentFragment());
4191
4194
  }, []), !r.open) {
4192
4195
  let e = i;
4193
- return e ? yt.createPortal(/* @__PURE__ */ H(Gu, {
4196
+ return e ? yt.createPortal(/* @__PURE__ */ H(Ju, {
4194
4197
  scope: t.__scopeSelect,
4195
- children: /* @__PURE__ */ H(Cu.Slot, {
4198
+ children: /* @__PURE__ */ H(Eu.Slot, {
4196
4199
  scope: t.__scopeSelect,
4197
4200
  children: /* @__PURE__ */ H("div", { children: t.children })
4198
4201
  })
4199
4202
  }), e) : null;
4200
4203
  }
4201
- return /* @__PURE__ */ H(Yu, {
4204
+ return /* @__PURE__ */ H(Qu, {
4202
4205
  ...t,
4203
4206
  ref: n
4204
4207
  });
4205
4208
  });
4206
- Uu.displayName = Hu;
4207
- var Wu = 10, [Gu, Ku] = Eu(Hu), qu = "SelectContentImpl", Ju = f("SelectContent.RemoveScroll"), Yu = z.forwardRef((e, t) => {
4208
- let { __scopeSelect: n, position: r = "item-aligned", onCloseAutoFocus: i, onEscapeKeyDown: a, onPointerDownOutside: o, side: l, sideOffset: u, align: d, alignOffset: f, arrowPadding: p, collisionBoundary: m, collisionPadding: h, sticky: g, hideWhenDetached: _, avoidCollisions: v, ...y } = e, b = Au(Hu, n), [x, S] = z.useState(null), [C, w] = z.useState(null), T = c(t, (e) => S(e)), [E, D] = z.useState(null), [O, k] = z.useState(null), A = wu(n), [j, M] = z.useState(!1), N = z.useRef(!1);
4209
+ Ku.displayName = Gu;
4210
+ var qu = 10, [Ju, Yu] = ku(Gu), Xu = "SelectContentImpl", Zu = f("SelectContent.RemoveScroll"), Qu = z.forwardRef((e, t) => {
4211
+ let { __scopeSelect: n, position: r = "item-aligned", onCloseAutoFocus: i, onEscapeKeyDown: a, onPointerDownOutside: o, side: l, sideOffset: u, align: d, alignOffset: f, arrowPadding: p, collisionBoundary: m, collisionPadding: h, sticky: g, hideWhenDetached: _, avoidCollisions: v, ...y } = e, b = Nu(Gu, n), [x, S] = z.useState(null), [C, w] = z.useState(null), T = c(t, (e) => S(e)), [E, D] = z.useState(null), [O, k] = z.useState(null), A = Du(n), [j, M] = z.useState(!1), N = z.useRef(!1);
4209
4212
  z.useEffect(() => {
4210
4213
  if (x) return nt(x);
4211
4214
  }, [x]), Qe();
@@ -4251,8 +4254,8 @@ var Wu = 10, [Gu, Ku] = Eu(Hu), qu = "SelectContentImpl", Ju = f("SelectContent.
4251
4254
  window.removeEventListener("blur", e), window.removeEventListener("resize", e);
4252
4255
  };
4253
4256
  }, [P]);
4254
- let [ne, re] = Ad((e) => {
4255
- let t = A().filter((e) => !e.disabled), n = jd(t, e, t.find((e) => e.ref.current === document.activeElement));
4257
+ let [ne, re] = Nd((e) => {
4258
+ let t = A().filter((e) => !e.disabled), n = Pd(t, e, t.find((e) => e.ref.current === document.activeElement));
4256
4259
  n && setTimeout(() => n.ref.current.focus());
4257
4260
  }), ie = z.useCallback((e, t, n) => {
4258
4261
  let r = !N.current && !n;
@@ -4260,7 +4263,7 @@ var Wu = 10, [Gu, Ku] = Eu(Hu), qu = "SelectContentImpl", Ju = f("SelectContent.
4260
4263
  }, [b.value]), ae = z.useCallback(() => x?.focus(), [x]), oe = z.useCallback((e, t, n) => {
4261
4264
  let r = !N.current && !n;
4262
4265
  (b.value !== void 0 && b.value === t || r) && k(e);
4263
- }, [b.value]), se = r === "popper" ? $u : Zu, ce = se === $u ? {
4266
+ }, [b.value]), se = r === "popper" ? nd : ed, ce = se === nd ? {
4264
4267
  side: l,
4265
4268
  sideOffset: u,
4266
4269
  align: d,
@@ -4272,7 +4275,7 @@ var Wu = 10, [Gu, Ku] = Eu(Hu), qu = "SelectContentImpl", Ju = f("SelectContent.
4272
4275
  hideWhenDetached: _,
4273
4276
  avoidCollisions: v
4274
4277
  } : {};
4275
- return /* @__PURE__ */ H(Gu, {
4278
+ return /* @__PURE__ */ H(Ju, {
4276
4279
  scope: n,
4277
4280
  content: x,
4278
4281
  viewport: C,
@@ -4287,7 +4290,7 @@ var Wu = 10, [Gu, Ku] = Eu(Hu), qu = "SelectContentImpl", Ju = f("SelectContent.
4287
4290
  isPositioned: j,
4288
4291
  searchRef: ne,
4289
4292
  children: /* @__PURE__ */ H(Je, {
4290
- as: Ju,
4293
+ as: Zu,
4291
4294
  allowPinchZoom: !0,
4292
4295
  children: /* @__PURE__ */ H(Ye, {
4293
4296
  asChild: !0,
@@ -4343,19 +4346,19 @@ var Wu = 10, [Gu, Ku] = Eu(Hu), qu = "SelectContentImpl", Ju = f("SelectContent.
4343
4346
  })
4344
4347
  });
4345
4348
  });
4346
- Yu.displayName = qu;
4347
- var Xu = "SelectItemAlignedPosition", Zu = z.forwardRef((t, n) => {
4348
- let { __scopeSelect: r, onPlaced: i, ...a } = t, o = Au(Hu, r), s = Ku(Hu, r), [l, u] = z.useState(null), [d, f] = z.useState(null), p = c(n, (e) => f(e)), m = wu(r), h = z.useRef(!1), g = z.useRef(!0), { viewport: _, selectedItem: v, selectedItemText: y, focusSelectedItem: b } = s, x = z.useCallback(() => {
4349
+ Qu.displayName = Xu;
4350
+ var $u = "SelectItemAlignedPosition", ed = z.forwardRef((t, n) => {
4351
+ let { __scopeSelect: r, onPlaced: i, ...a } = t, o = Nu(Gu, r), s = Yu(Gu, r), [l, u] = z.useState(null), [d, f] = z.useState(null), p = c(n, (e) => f(e)), m = Du(r), h = z.useRef(!1), g = z.useRef(!0), { viewport: _, selectedItem: v, selectedItemText: y, focusSelectedItem: b } = s, x = z.useCallback(() => {
4349
4352
  if (o.trigger && o.valueNode && l && d && _ && v && y) {
4350
4353
  let e = o.trigger.getBoundingClientRect(), t = d.getBoundingClientRect(), n = o.valueNode.getBoundingClientRect(), r = y.getBoundingClientRect();
4351
4354
  if (o.dir !== "rtl") {
4352
- let i = r.left - t.left, a = n.left - i, o = e.left - a, s = e.width + o, c = Math.max(s, t.width), u = window.innerWidth - Wu, d = Ke(a, [Wu, Math.max(Wu, u - c)]);
4355
+ let i = r.left - t.left, a = n.left - i, o = e.left - a, s = e.width + o, c = Math.max(s, t.width), u = window.innerWidth - qu, d = Ke(a, [qu, Math.max(qu, u - c)]);
4353
4356
  l.style.minWidth = s + "px", l.style.left = d + "px";
4354
4357
  } else {
4355
- let i = t.right - r.right, a = window.innerWidth - n.right - i, o = window.innerWidth - e.right - a, s = e.width + o, c = Math.max(s, t.width), u = window.innerWidth - Wu, d = Ke(a, [Wu, Math.max(Wu, u - c)]);
4358
+ let i = t.right - r.right, a = window.innerWidth - n.right - i, o = window.innerWidth - e.right - a, s = e.width + o, c = Math.max(s, t.width), u = window.innerWidth - qu, d = Ke(a, [qu, Math.max(qu, u - c)]);
4356
4359
  l.style.minWidth = s + "px", l.style.right = d + "px";
4357
4360
  }
4358
- let a = m(), s = window.innerHeight - Wu * 2, c = _.scrollHeight, u = window.getComputedStyle(d), f = parseInt(u.borderTopWidth, 10), p = parseInt(u.paddingTop, 10), g = parseInt(u.borderBottomWidth, 10), b = parseInt(u.paddingBottom, 10), x = f + p + c + b + g, S = Math.min(v.offsetHeight * 5, x), C = window.getComputedStyle(_), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - Wu, D = s - E, O = v.offsetHeight / 2, k = v.offsetTop + O, A = f + p + k, j = x - A;
4361
+ let a = m(), s = window.innerHeight - qu * 2, c = _.scrollHeight, u = window.getComputedStyle(d), f = parseInt(u.borderTopWidth, 10), p = parseInt(u.paddingTop, 10), g = parseInt(u.borderBottomWidth, 10), b = parseInt(u.paddingBottom, 10), x = f + p + c + b + g, S = Math.min(v.offsetHeight * 5, x), C = window.getComputedStyle(_), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - qu, D = s - E, O = v.offsetHeight / 2, k = v.offsetTop + O, A = f + p + k, j = x - A;
4359
4362
  if (A <= E) {
4360
4363
  let e = a.length > 0 && v === a[a.length - 1].ref.current;
4361
4364
  l.style.bottom = "0px";
@@ -4367,7 +4370,7 @@ var Xu = "SelectItemAlignedPosition", Zu = z.forwardRef((t, n) => {
4367
4370
  let t = Math.max(E, f + _.offsetTop + (e ? w : 0) + O) + j;
4368
4371
  l.style.height = t + "px", _.scrollTop = A - E + _.offsetTop;
4369
4372
  }
4370
- l.style.margin = `${Wu}px 0`, l.style.minHeight = S + "px", l.style.maxHeight = s + "px", i?.(), requestAnimationFrame(() => h.current = !0);
4373
+ l.style.margin = `${qu}px 0`, l.style.minHeight = S + "px", l.style.maxHeight = s + "px", i?.(), requestAnimationFrame(() => h.current = !0);
4371
4374
  }
4372
4375
  }, [
4373
4376
  m,
@@ -4385,7 +4388,7 @@ var Xu = "SelectItemAlignedPosition", Zu = z.forwardRef((t, n) => {
4385
4388
  let [S, C] = z.useState();
4386
4389
  return e(() => {
4387
4390
  d && C(window.getComputedStyle(d).zIndex);
4388
- }, [d]), /* @__PURE__ */ H(ed, {
4391
+ }, [d]), /* @__PURE__ */ H(rd, {
4389
4392
  scope: r,
4390
4393
  contentWrapper: l,
4391
4394
  shouldExpandOnScrollRef: h,
@@ -4400,7 +4403,7 @@ var Xu = "SelectItemAlignedPosition", Zu = z.forwardRef((t, n) => {
4400
4403
  position: "fixed",
4401
4404
  zIndex: S
4402
4405
  },
4403
- children: /* @__PURE__ */ H(yu.div, {
4406
+ children: /* @__PURE__ */ H(Su.div, {
4404
4407
  ...a,
4405
4408
  ref: p,
4406
4409
  style: {
@@ -4412,11 +4415,11 @@ var Xu = "SelectItemAlignedPosition", Zu = z.forwardRef((t, n) => {
4412
4415
  })
4413
4416
  });
4414
4417
  });
4415
- Zu.displayName = Xu;
4416
- var Qu = "SelectPopperPosition", $u = z.forwardRef((e, t) => {
4417
- let { __scopeSelect: n, align: r = "start", collisionPadding: i = Wu, ...a } = e;
4418
+ ed.displayName = $u;
4419
+ var td = "SelectPopperPosition", nd = z.forwardRef((e, t) => {
4420
+ let { __scopeSelect: n, align: r = "start", collisionPadding: i = qu, ...a } = e;
4418
4421
  return /* @__PURE__ */ H(tt, {
4419
- ...Ou(n),
4422
+ ...ju(n),
4420
4423
  ...a,
4421
4424
  ref: t,
4422
4425
  align: r,
@@ -4432,15 +4435,15 @@ var Qu = "SelectPopperPosition", $u = z.forwardRef((e, t) => {
4432
4435
  }
4433
4436
  });
4434
4437
  });
4435
- $u.displayName = Qu;
4436
- var [ed, td] = Eu(Hu, {}), nd = "SelectViewport", rd = z.forwardRef((e, t) => {
4437
- let { __scopeSelect: n, nonce: r, ...i } = e, a = Ku(nd, n), o = td(nd, n), l = c(t, a.onViewportChange), u = z.useRef(0);
4438
+ nd.displayName = td;
4439
+ var [rd, id] = ku(Gu, {}), ad = "SelectViewport", od = z.forwardRef((e, t) => {
4440
+ let { __scopeSelect: n, nonce: r, ...i } = e, a = Yu(ad, n), o = id(ad, n), l = c(t, a.onViewportChange), u = z.useRef(0);
4438
4441
  return /* @__PURE__ */ U(_t, { children: [/* @__PURE__ */ H("style", {
4439
4442
  dangerouslySetInnerHTML: { __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}" },
4440
4443
  nonce: r
4441
- }), /* @__PURE__ */ H(Cu.Slot, {
4444
+ }), /* @__PURE__ */ H(Eu.Slot, {
4442
4445
  scope: n,
4443
- children: /* @__PURE__ */ H(yu.div, {
4446
+ children: /* @__PURE__ */ H(Su.div, {
4444
4447
  "data-radix-select-viewport": "",
4445
4448
  role: "presentation",
4446
4449
  ...i,
@@ -4456,7 +4459,7 @@ var [ed, td] = Eu(Hu, {}), nd = "SelectViewport", rd = z.forwardRef((e, t) => {
4456
4459
  if (r?.current && n) {
4457
4460
  let e = Math.abs(u.current - t.scrollTop);
4458
4461
  if (e > 0) {
4459
- let r = window.innerHeight - Wu * 2, i = parseFloat(n.style.minHeight), a = parseFloat(n.style.height), o = Math.max(i, a);
4462
+ let r = window.innerHeight - qu * 2, i = parseFloat(n.style.minHeight), a = parseFloat(n.style.height), o = Math.max(i, a);
4460
4463
  if (o < r) {
4461
4464
  let i = o + e, a = Math.min(r, i), s = i - a;
4462
4465
  n.style.height = a + "px", n.style.bottom === "0px" && (t.scrollTop = s > 0 ? s : 0, n.style.justifyContent = "flex-end");
@@ -4468,13 +4471,13 @@ var [ed, td] = Eu(Hu, {}), nd = "SelectViewport", rd = z.forwardRef((e, t) => {
4468
4471
  })
4469
4472
  })] });
4470
4473
  });
4471
- rd.displayName = nd;
4472
- var id = "SelectGroup", [ad, od] = Eu(id), sd = z.forwardRef((e, t) => {
4474
+ od.displayName = ad;
4475
+ var sd = "SelectGroup", [cd, ld] = ku(sd), ud = z.forwardRef((e, t) => {
4473
4476
  let { __scopeSelect: n, ...r } = e, i = We();
4474
- return /* @__PURE__ */ H(ad, {
4477
+ return /* @__PURE__ */ H(cd, {
4475
4478
  scope: n,
4476
4479
  id: i,
4477
- children: /* @__PURE__ */ H(yu.div, {
4480
+ children: /* @__PURE__ */ H(Su.div, {
4478
4481
  role: "group",
4479
4482
  "aria-labelledby": i,
4480
4483
  ...r,
@@ -4482,22 +4485,22 @@ var id = "SelectGroup", [ad, od] = Eu(id), sd = z.forwardRef((e, t) => {
4482
4485
  })
4483
4486
  });
4484
4487
  });
4485
- sd.displayName = id;
4486
- var cd = "SelectLabel", ld = z.forwardRef((e, t) => {
4487
- let { __scopeSelect: n, ...r } = e, i = od(cd, n);
4488
- return /* @__PURE__ */ H(yu.div, {
4488
+ ud.displayName = sd;
4489
+ var dd = "SelectLabel", fd = z.forwardRef((e, t) => {
4490
+ let { __scopeSelect: n, ...r } = e, i = ld(dd, n);
4491
+ return /* @__PURE__ */ H(Su.div, {
4489
4492
  id: i.id,
4490
4493
  ...r,
4491
4494
  ref: t
4492
4495
  });
4493
4496
  });
4494
- ld.displayName = cd;
4495
- var ud = "SelectItem", [dd, fd] = Eu(ud), pd = z.forwardRef((e, t) => {
4496
- let { __scopeSelect: n, value: r, disabled: i = !1, textValue: a, ...o } = e, l = Au(ud, n), u = Ku(ud, n), d = l.value === r, [f, p] = z.useState(a ?? ""), [m, h] = z.useState(!1), g = c(t, (e) => u.itemRefCallback?.(e, r, i)), _ = We(), v = z.useRef("touch"), y = () => {
4497
+ fd.displayName = dd;
4498
+ var pd = "SelectItem", [md, hd] = ku(pd), gd = z.forwardRef((e, t) => {
4499
+ let { __scopeSelect: n, value: r, disabled: i = !1, textValue: a, ...o } = e, l = Nu(pd, n), u = Yu(pd, n), d = l.value === r, [f, p] = z.useState(a ?? ""), [m, h] = z.useState(!1), g = c(t, (e) => u.itemRefCallback?.(e, r, i)), _ = We(), v = z.useRef("touch"), y = () => {
4497
4500
  i || (l.onValueChange(r), l.onOpenChange(!1));
4498
4501
  };
4499
4502
  if (r === "") throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");
4500
- return /* @__PURE__ */ H(dd, {
4503
+ return /* @__PURE__ */ H(md, {
4501
4504
  scope: n,
4502
4505
  value: r,
4503
4506
  disabled: i,
@@ -4506,12 +4509,12 @@ var ud = "SelectItem", [dd, fd] = Eu(ud), pd = z.forwardRef((e, t) => {
4506
4509
  onItemTextChange: z.useCallback((e) => {
4507
4510
  p((t) => t || (e?.textContent ?? "").trim());
4508
4511
  }, []),
4509
- children: /* @__PURE__ */ H(Cu.ItemSlot, {
4512
+ children: /* @__PURE__ */ H(Eu.ItemSlot, {
4510
4513
  scope: n,
4511
4514
  value: r,
4512
4515
  disabled: i,
4513
4516
  textValue: f,
4514
- children: /* @__PURE__ */ H(yu.div, {
4517
+ children: /* @__PURE__ */ H(Su.div, {
4515
4518
  role: "option",
4516
4519
  "aria-labelledby": _,
4517
4520
  "data-highlighted": m ? "" : void 0,
@@ -4540,15 +4543,15 @@ var ud = "SelectItem", [dd, fd] = Eu(ud), pd = z.forwardRef((e, t) => {
4540
4543
  e.currentTarget === document.activeElement && u.onItemLeave?.();
4541
4544
  }),
4542
4545
  onKeyDown: s(o.onKeyDown, (e) => {
4543
- u.searchRef?.current !== "" && e.key === " " || (xu.includes(e.key) && y(), e.key === " " && e.preventDefault());
4546
+ u.searchRef?.current !== "" && e.key === " " || (wu.includes(e.key) && y(), e.key === " " && e.preventDefault());
4544
4547
  })
4545
4548
  })
4546
4549
  })
4547
4550
  });
4548
4551
  });
4549
- pd.displayName = ud;
4550
- var md = "SelectItemText", hd = z.forwardRef((t, n) => {
4551
- let { __scopeSelect: r, className: i, style: a, ...o } = t, s = Au(md, r), l = Ku(md, r), u = fd(md, r), d = Mu(md, r), [f, p] = z.useState(null), m = c(n, (e) => p(e), u.onItemTextChange, (e) => l.itemTextRefCallback?.(e, u.value, u.disabled)), h = f?.textContent, g = z.useMemo(() => /* @__PURE__ */ H("option", {
4552
+ gd.displayName = pd;
4553
+ var _d = "SelectItemText", vd = z.forwardRef((t, n) => {
4554
+ let { __scopeSelect: r, className: i, style: a, ...o } = t, s = Nu(_d, r), l = Yu(_d, r), u = hd(_d, r), d = Fu(_d, r), [f, p] = z.useState(null), m = c(n, (e) => p(e), u.onItemTextChange, (e) => l.itemTextRefCallback?.(e, u.value, u.disabled)), h = f?.textContent, g = z.useMemo(() => /* @__PURE__ */ H("option", {
4552
4555
  value: u.value,
4553
4556
  disabled: u.disabled,
4554
4557
  children: h
@@ -4561,24 +4564,24 @@ var md = "SelectItemText", hd = z.forwardRef((t, n) => {
4561
4564
  _,
4562
4565
  v,
4563
4566
  g
4564
- ]), /* @__PURE__ */ U(_t, { children: [/* @__PURE__ */ H(yu.span, {
4567
+ ]), /* @__PURE__ */ U(_t, { children: [/* @__PURE__ */ H(Su.span, {
4565
4568
  id: u.textId,
4566
4569
  ...o,
4567
4570
  ref: m
4568
4571
  }), u.isSelected && s.valueNode && !s.valueNodeHasChildren ? yt.createPortal(o.children, s.valueNode) : null] });
4569
4572
  });
4570
- hd.displayName = md;
4571
- var gd = "SelectItemIndicator", _d = z.forwardRef((e, t) => {
4573
+ vd.displayName = _d;
4574
+ var yd = "SelectItemIndicator", bd = z.forwardRef((e, t) => {
4572
4575
  let { __scopeSelect: n, ...r } = e;
4573
- return fd(gd, n).isSelected ? /* @__PURE__ */ H(yu.span, {
4576
+ return hd(yd, n).isSelected ? /* @__PURE__ */ H(Su.span, {
4574
4577
  "aria-hidden": !0,
4575
4578
  ...r,
4576
4579
  ref: t
4577
4580
  }) : null;
4578
4581
  });
4579
- _d.displayName = gd;
4580
- var vd = "SelectScrollUpButton", yd = z.forwardRef((t, n) => {
4581
- let r = Ku(vd, t.__scopeSelect), i = td(vd, t.__scopeSelect), [a, o] = z.useState(!1), s = c(n, i.onScrollButtonChange);
4582
+ bd.displayName = yd;
4583
+ var xd = "SelectScrollUpButton", Sd = z.forwardRef((t, n) => {
4584
+ let r = Yu(xd, t.__scopeSelect), i = id(xd, t.__scopeSelect), [a, o] = z.useState(!1), s = c(n, i.onScrollButtonChange);
4582
4585
  return e(() => {
4583
4586
  if (r.viewport && r.isPositioned) {
4584
4587
  let e = function() {
@@ -4586,7 +4589,7 @@ var vd = "SelectScrollUpButton", yd = z.forwardRef((t, n) => {
4586
4589
  }, t = r.viewport;
4587
4590
  return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
4588
4591
  }
4589
- }, [r.viewport, r.isPositioned]), a ? /* @__PURE__ */ H(Sd, {
4592
+ }, [r.viewport, r.isPositioned]), a ? /* @__PURE__ */ H(Td, {
4590
4593
  ...t,
4591
4594
  ref: s,
4592
4595
  onAutoScroll: () => {
@@ -4595,9 +4598,9 @@ var vd = "SelectScrollUpButton", yd = z.forwardRef((t, n) => {
4595
4598
  }
4596
4599
  }) : null;
4597
4600
  });
4598
- yd.displayName = vd;
4599
- var bd = "SelectScrollDownButton", xd = z.forwardRef((t, n) => {
4600
- let r = Ku(bd, t.__scopeSelect), i = td(bd, t.__scopeSelect), [a, o] = z.useState(!1), s = c(n, i.onScrollButtonChange);
4601
+ Sd.displayName = xd;
4602
+ var Cd = "SelectScrollDownButton", wd = z.forwardRef((t, n) => {
4603
+ let r = Yu(Cd, t.__scopeSelect), i = id(Cd, t.__scopeSelect), [a, o] = z.useState(!1), s = c(n, i.onScrollButtonChange);
4601
4604
  return e(() => {
4602
4605
  if (r.viewport && r.isPositioned) {
4603
4606
  let e = function() {
@@ -4606,7 +4609,7 @@ var bd = "SelectScrollDownButton", xd = z.forwardRef((t, n) => {
4606
4609
  }, t = r.viewport;
4607
4610
  return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
4608
4611
  }
4609
- }, [r.viewport, r.isPositioned]), a ? /* @__PURE__ */ H(Sd, {
4612
+ }, [r.viewport, r.isPositioned]), a ? /* @__PURE__ */ H(Td, {
4610
4613
  ...t,
4611
4614
  ref: s,
4612
4615
  onAutoScroll: () => {
@@ -4615,14 +4618,14 @@ var bd = "SelectScrollDownButton", xd = z.forwardRef((t, n) => {
4615
4618
  }
4616
4619
  }) : null;
4617
4620
  });
4618
- xd.displayName = bd;
4619
- var Sd = z.forwardRef((t, n) => {
4620
- let { __scopeSelect: r, onAutoScroll: i, ...a } = t, o = Ku("SelectScrollButton", r), c = z.useRef(null), l = wu(r), u = z.useCallback(() => {
4621
+ wd.displayName = Cd;
4622
+ var Td = z.forwardRef((t, n) => {
4623
+ let { __scopeSelect: r, onAutoScroll: i, ...a } = t, o = Yu("SelectScrollButton", r), c = z.useRef(null), l = Du(r), u = z.useCallback(() => {
4621
4624
  c.current !== null && (window.clearInterval(c.current), c.current = null);
4622
4625
  }, []);
4623
4626
  return z.useEffect(() => () => u(), [u]), e(() => {
4624
4627
  l().find((e) => e.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
4625
- }, [l]), /* @__PURE__ */ H(yu.div, {
4628
+ }, [l]), /* @__PURE__ */ H(Su.div, {
4626
4629
  "aria-hidden": !0,
4627
4630
  ...a,
4628
4631
  ref: n,
@@ -4640,26 +4643,26 @@ var Sd = z.forwardRef((t, n) => {
4640
4643
  u();
4641
4644
  })
4642
4645
  });
4643
- }), Cd = "SelectSeparator", wd = z.forwardRef((e, t) => {
4646
+ }), Ed = "SelectSeparator", Dd = z.forwardRef((e, t) => {
4644
4647
  let { __scopeSelect: n, ...r } = e;
4645
- return /* @__PURE__ */ H(yu.div, {
4648
+ return /* @__PURE__ */ H(Su.div, {
4646
4649
  "aria-hidden": !0,
4647
4650
  ...r,
4648
4651
  ref: t
4649
4652
  });
4650
4653
  });
4651
- wd.displayName = Cd;
4652
- var Td = "SelectArrow", Ed = z.forwardRef((e, t) => {
4653
- let { __scopeSelect: n, ...r } = e, i = Ou(n), a = Au(Td, n), o = Ku(Td, n);
4654
+ Dd.displayName = Ed;
4655
+ var Od = "SelectArrow", kd = z.forwardRef((e, t) => {
4656
+ let { __scopeSelect: n, ...r } = e, i = ju(n), a = Nu(Od, n), o = Yu(Od, n);
4654
4657
  return a.open && o.position === "popper" ? /* @__PURE__ */ H($e, {
4655
4658
  ...i,
4656
4659
  ...r,
4657
4660
  ref: t
4658
4661
  }) : null;
4659
4662
  });
4660
- Ed.displayName = Td;
4661
- var Dd = "SelectBubbleInput", Od = z.forwardRef(({ __scopeSelect: e, value: t, ...n }, r) => {
4662
- let i = z.useRef(null), a = c(r, i), o = Cl(t);
4663
+ kd.displayName = Od;
4664
+ var Ad = "SelectBubbleInput", jd = z.forwardRef(({ __scopeSelect: e, value: t, ...n }, r) => {
4665
+ let i = z.useRef(null), a = c(r, i), o = El(t);
4663
4666
  return z.useEffect(() => {
4664
4667
  let e = i.current;
4665
4668
  if (!e) return;
@@ -4668,21 +4671,21 @@ var Dd = "SelectBubbleInput", Od = z.forwardRef(({ __scopeSelect: e, value: t, .
4668
4671
  let n = new Event("change", { bubbles: !0 });
4669
4672
  r.call(e, t), e.dispatchEvent(n);
4670
4673
  }
4671
- }, [o, t]), /* @__PURE__ */ H(yu.select, {
4674
+ }, [o, t]), /* @__PURE__ */ H(Su.select, {
4672
4675
  ...n,
4673
4676
  style: {
4674
- ...dc,
4677
+ ...mc,
4675
4678
  ...n.style
4676
4679
  },
4677
4680
  ref: a,
4678
4681
  defaultValue: t
4679
4682
  });
4680
4683
  });
4681
- Od.displayName = Dd;
4682
- function kd(e) {
4684
+ jd.displayName = Ad;
4685
+ function Md(e) {
4683
4686
  return e === "" || e === void 0;
4684
4687
  }
4685
- function Ad(e) {
4688
+ function Nd(e) {
4686
4689
  let t = l(e), n = z.useRef(""), r = z.useRef(0), i = z.useCallback((e) => {
4687
4690
  let i = n.current + e;
4688
4691
  t(i), (function e(t) {
@@ -4697,16 +4700,16 @@ function Ad(e) {
4697
4700
  a
4698
4701
  ];
4699
4702
  }
4700
- function jd(e, t, n) {
4701
- let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = Md(e, Math.max(i, 0));
4703
+ function Pd(e, t, n) {
4704
+ let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = Fd(e, Math.max(i, 0));
4702
4705
  r.length === 1 && (a = a.filter((e) => e !== n));
4703
4706
  let o = a.find((e) => e.textValue.toLowerCase().startsWith(r.toLowerCase()));
4704
4707
  return o === n ? void 0 : o;
4705
4708
  }
4706
- function Md(e, t) {
4709
+ function Fd(e, t) {
4707
4710
  return e.map((n, r) => e[(t + r) % e.length]);
4708
4711
  }
4709
- var Nd = Nu, Pd = Fu, Fd = Lu, Id = zu, Ld = Vu, Rd = Uu, zd = rd, Bd = sd, Vd = ld, Hd = pd, Ud = hd, Wd = _d, Gd = yd, Kd = xd, qd = wd, Jd = [
4712
+ var Id = Iu, Ld = Ru, Rd = Bu, zd = Hu, Bd = Wu, Vd = Ku, Hd = od, Ud = ud, Wd = fd, Gd = gd, Kd = vd, qd = bd, Jd = Sd, Yd = wd, Xd = Dd, Zd = [
4710
4713
  "a",
4711
4714
  "button",
4712
4715
  "div",
@@ -4736,23 +4739,23 @@ var Nd = Nu, Pd = Fu, Fd = Lu, Id = zu, Ld = Vu, Rd = Uu, zd = rd, Bd = sd, Vd =
4736
4739
  ...e,
4737
4740
  [t]: r
4738
4741
  };
4739
- }, {}), Yd = "Separator", Xd = "horizontal", Zd = ["horizontal", "vertical"], Qd = z.forwardRef((e, t) => {
4740
- let { decorative: n, orientation: r = Xd, ...i } = e, a = $d(r) ? r : Xd, o = a === "vertical" ? a : void 0, s = n ? { role: "none" } : {
4742
+ }, {}), Qd = "Separator", $d = "horizontal", ef = ["horizontal", "vertical"], tf = z.forwardRef((e, t) => {
4743
+ let { decorative: n, orientation: r = $d, ...i } = e, a = nf(r) ? r : $d, o = a === "vertical" ? a : void 0, s = n ? { role: "none" } : {
4741
4744
  "aria-orientation": o,
4742
4745
  role: "separator"
4743
4746
  };
4744
- return /* @__PURE__ */ H(Jd.div, {
4747
+ return /* @__PURE__ */ H(Zd.div, {
4745
4748
  "data-orientation": a,
4746
4749
  ...s,
4747
4750
  ...i,
4748
4751
  ref: t
4749
4752
  });
4750
4753
  });
4751
- Qd.displayName = Yd;
4752
- function $d(e) {
4753
- return Zd.includes(e);
4754
+ tf.displayName = Qd;
4755
+ function nf(e) {
4756
+ return ef.includes(e);
4754
4757
  }
4755
- var ef = Qd, tf = [
4758
+ var rf = tf, af = [
4756
4759
  "a",
4757
4760
  "button",
4758
4761
  "div",
@@ -4782,12 +4785,12 @@ var ef = Qd, tf = [
4782
4785
  ...e,
4783
4786
  [t]: r
4784
4787
  };
4785
- }, {}), nf = ["PageUp", "PageDown"], rf = [
4788
+ }, {}), of = ["PageUp", "PageDown"], sf = [
4786
4789
  "ArrowUp",
4787
4790
  "ArrowDown",
4788
4791
  "ArrowLeft",
4789
4792
  "ArrowRight"
4790
- ], af = {
4793
+ ], cf = {
4791
4794
  "from-left": [
4792
4795
  "Home",
4793
4796
  "PageDown",
@@ -4812,8 +4815,8 @@ var ef = Qd, tf = [
4812
4815
  "ArrowUp",
4813
4816
  "ArrowLeft"
4814
4817
  ]
4815
- }, of = "Slider", [sf, cf, lf] = ze(of), [uf, df] = t(of, [lf]), [ff, pf] = uf(of), mf = z.forwardRef((e, t) => {
4816
- let { name: n, min: r = 0, max: i = 100, step: a = 1, orientation: o = "horizontal", disabled: c = !1, minStepsBetweenThumbs: l = 0, defaultValue: u = [r], value: d, onValueChange: f = () => {}, onValueCommit: p = () => {}, inverted: m = !1, form: h, ...g } = e, _ = z.useRef(/* @__PURE__ */ new Set()), v = z.useRef(0), y = o === "horizontal" ? _f : vf, [b = [], x] = Ue({
4818
+ }, lf = "Slider", [uf, df, ff] = ze(lf), [pf, mf] = t(lf, [ff]), [hf, gf] = pf(lf), _f = z.forwardRef((e, t) => {
4819
+ let { name: n, min: r = 0, max: i = 100, step: a = 1, orientation: o = "horizontal", disabled: c = !1, minStepsBetweenThumbs: l = 0, defaultValue: u = [r], value: d, onValueChange: f = () => {}, onValueCommit: p = () => {}, inverted: m = !1, form: h, ...g } = e, _ = z.useRef(/* @__PURE__ */ new Set()), v = z.useRef(0), y = o === "horizontal" ? bf : xf, [b = [], x] = Ue({
4817
4820
  prop: d,
4818
4821
  defaultProp: u,
4819
4822
  onChange: (e) => {
@@ -4821,7 +4824,7 @@ var ef = Qd, tf = [
4821
4824
  }
4822
4825
  }), S = z.useRef(b);
4823
4826
  function C(e) {
4824
- E(e, Mf(b, e));
4827
+ E(e, Ff(b, e));
4825
4828
  }
4826
4829
  function w(e) {
4827
4830
  E(e, v.current);
@@ -4831,17 +4834,17 @@ var ef = Qd, tf = [
4831
4834
  b[v.current] !== e && p(b);
4832
4835
  }
4833
4836
  function E(e, t, { commit: n } = { commit: !1 }) {
4834
- let o = Lf(a), s = Ke(Rf(Math.round((e - r) / a) * a + r, o), [r, i]);
4837
+ let o = Bf(a), s = Ke(Vf(Math.round((e - r) / a) * a + r, o), [r, i]);
4835
4838
  x((e = []) => {
4836
- let r = kf(e, s, t);
4837
- if (Ff(r, l * a)) {
4839
+ let r = Mf(e, s, t);
4840
+ if (Rf(r, l * a)) {
4838
4841
  v.current = r.indexOf(s);
4839
4842
  let t = String(r) !== String(e);
4840
4843
  return t && n && p(r), t ? r : e;
4841
4844
  } else return e;
4842
4845
  });
4843
4846
  }
4844
- return /* @__PURE__ */ H(ff, {
4847
+ return /* @__PURE__ */ H(hf, {
4845
4848
  scope: e.__scopeSlider,
4846
4849
  name: n,
4847
4850
  disabled: c,
@@ -4852,9 +4855,9 @@ var ef = Qd, tf = [
4852
4855
  values: b,
4853
4856
  orientation: o,
4854
4857
  form: h,
4855
- children: /* @__PURE__ */ H(sf.Provider, {
4858
+ children: /* @__PURE__ */ H(uf.Provider, {
4856
4859
  scope: e.__scopeSlider,
4857
- children: /* @__PURE__ */ H(sf.Slot, {
4860
+ children: /* @__PURE__ */ H(uf.Slot, {
4858
4861
  scope: e.__scopeSlider,
4859
4862
  children: /* @__PURE__ */ H(y, {
4860
4863
  "aria-disabled": c,
@@ -4874,7 +4877,7 @@ var ef = Qd, tf = [
4874
4877
  onEndKeyDown: () => !c && E(i, b.length - 1, { commit: !0 }),
4875
4878
  onStepKeyDown: ({ event: e, direction: t }) => {
4876
4879
  if (!c) {
4877
- let n = nf.includes(e.key) || e.shiftKey && rf.includes(e.key) ? 10 : 1, r = v.current, i = b[r];
4880
+ let n = of.includes(e.key) || e.shiftKey && sf.includes(e.key) ? 10 : 1, r = v.current, i = b[r];
4878
4881
  E(i + a * n * t, r, { commit: !0 });
4879
4882
  }
4880
4883
  }
@@ -4883,25 +4886,25 @@ var ef = Qd, tf = [
4883
4886
  })
4884
4887
  });
4885
4888
  });
4886
- mf.displayName = of;
4887
- var [hf, gf] = uf(of, {
4889
+ _f.displayName = lf;
4890
+ var [vf, yf] = pf(lf, {
4888
4891
  startEdge: "left",
4889
4892
  endEdge: "right",
4890
4893
  size: "width",
4891
4894
  direction: 1
4892
- }), _f = z.forwardRef((e, t) => {
4895
+ }), bf = z.forwardRef((e, t) => {
4893
4896
  let { min: n, max: r, dir: i, inverted: a, onSlideStart: o, onSlideMove: s, onSlideEnd: l, onStepKeyDown: u, ...d } = e, [f, p] = z.useState(null), m = c(t, (e) => p(e)), h = z.useRef(void 0), g = Ge(i), _ = g === "ltr", v = _ && !a || !_ && a;
4894
4897
  function y(e) {
4895
- let t = h.current || f.getBoundingClientRect(), i = If([0, t.width], v ? [n, r] : [r, n]);
4898
+ let t = h.current || f.getBoundingClientRect(), i = zf([0, t.width], v ? [n, r] : [r, n]);
4896
4899
  return h.current = t, i(e - t.left);
4897
4900
  }
4898
- return /* @__PURE__ */ H(hf, {
4901
+ return /* @__PURE__ */ H(vf, {
4899
4902
  scope: e.__scopeSlider,
4900
4903
  startEdge: v ? "left" : "right",
4901
4904
  endEdge: v ? "right" : "left",
4902
4905
  direction: v ? 1 : -1,
4903
4906
  size: "width",
4904
- children: /* @__PURE__ */ H(yf, {
4907
+ children: /* @__PURE__ */ H(Sf, {
4905
4908
  dir: g,
4906
4909
  "data-orientation": "horizontal",
4907
4910
  ...d,
@@ -4922,7 +4925,7 @@ var [hf, gf] = uf(of, {
4922
4925
  h.current = void 0, l?.();
4923
4926
  },
4924
4927
  onStepKeyDown: (e) => {
4925
- let t = af[v ? "from-left" : "from-right"].includes(e.key);
4928
+ let t = cf[v ? "from-left" : "from-right"].includes(e.key);
4926
4929
  u?.({
4927
4930
  event: e,
4928
4931
  direction: t ? -1 : 1
@@ -4930,19 +4933,19 @@ var [hf, gf] = uf(of, {
4930
4933
  }
4931
4934
  })
4932
4935
  });
4933
- }), vf = z.forwardRef((e, t) => {
4936
+ }), xf = z.forwardRef((e, t) => {
4934
4937
  let { min: n, max: r, inverted: i, onSlideStart: a, onSlideMove: o, onSlideEnd: s, onStepKeyDown: l, ...u } = e, d = z.useRef(null), f = c(t, d), p = z.useRef(void 0), m = !i;
4935
4938
  function h(e) {
4936
- let t = p.current || d.current.getBoundingClientRect(), i = If([0, t.height], m ? [r, n] : [n, r]);
4939
+ let t = p.current || d.current.getBoundingClientRect(), i = zf([0, t.height], m ? [r, n] : [n, r]);
4937
4940
  return p.current = t, i(e - t.top);
4938
4941
  }
4939
- return /* @__PURE__ */ H(hf, {
4942
+ return /* @__PURE__ */ H(vf, {
4940
4943
  scope: e.__scopeSlider,
4941
4944
  startEdge: m ? "bottom" : "top",
4942
4945
  endEdge: m ? "top" : "bottom",
4943
4946
  size: "height",
4944
4947
  direction: m ? 1 : -1,
4945
- children: /* @__PURE__ */ H(yf, {
4948
+ children: /* @__PURE__ */ H(Sf, {
4946
4949
  "data-orientation": "vertical",
4947
4950
  ...u,
4948
4951
  ref: f,
@@ -4962,7 +4965,7 @@ var [hf, gf] = uf(of, {
4962
4965
  p.current = void 0, s?.();
4963
4966
  },
4964
4967
  onStepKeyDown: (e) => {
4965
- let t = af[m ? "from-bottom" : "from-top"].includes(e.key);
4968
+ let t = cf[m ? "from-bottom" : "from-top"].includes(e.key);
4966
4969
  l?.({
4967
4970
  event: e,
4968
4971
  direction: t ? -1 : 1
@@ -4970,13 +4973,13 @@ var [hf, gf] = uf(of, {
4970
4973
  }
4971
4974
  })
4972
4975
  });
4973
- }), yf = z.forwardRef((e, t) => {
4974
- let { __scopeSlider: n, onSlideStart: r, onSlideMove: i, onSlideEnd: a, onHomeKeyDown: o, onEndKeyDown: c, onStepKeyDown: l, ...u } = e, d = pf(of, n);
4975
- return /* @__PURE__ */ H(tf.span, {
4976
+ }), Sf = z.forwardRef((e, t) => {
4977
+ let { __scopeSlider: n, onSlideStart: r, onSlideMove: i, onSlideEnd: a, onHomeKeyDown: o, onEndKeyDown: c, onStepKeyDown: l, ...u } = e, d = gf(lf, n);
4978
+ return /* @__PURE__ */ H(af.span, {
4976
4979
  ...u,
4977
4980
  ref: t,
4978
4981
  onKeyDown: s(e.onKeyDown, (e) => {
4979
- e.key === "Home" ? (o(e), e.preventDefault()) : e.key === "End" ? (c(e), e.preventDefault()) : nf.concat(rf).includes(e.key) && (l(e), e.preventDefault());
4982
+ e.key === "Home" ? (o(e), e.preventDefault()) : e.key === "End" ? (c(e), e.preventDefault()) : of.concat(sf).includes(e.key) && (l(e), e.preventDefault());
4980
4983
  }),
4981
4984
  onPointerDown: s(e.onPointerDown, (e) => {
4982
4985
  let t = e.target;
@@ -4990,19 +4993,19 @@ var [hf, gf] = uf(of, {
4990
4993
  t.hasPointerCapture(e.pointerId) && (t.releasePointerCapture(e.pointerId), a(e));
4991
4994
  })
4992
4995
  });
4993
- }), bf = "SliderTrack", xf = z.forwardRef((e, t) => {
4994
- let { __scopeSlider: n, ...r } = e, i = pf(bf, n);
4995
- return /* @__PURE__ */ H(tf.span, {
4996
+ }), Cf = "SliderTrack", wf = z.forwardRef((e, t) => {
4997
+ let { __scopeSlider: n, ...r } = e, i = gf(Cf, n);
4998
+ return /* @__PURE__ */ H(af.span, {
4996
4999
  "data-disabled": i.disabled ? "" : void 0,
4997
5000
  "data-orientation": i.orientation,
4998
5001
  ...r,
4999
5002
  ref: t
5000
5003
  });
5001
5004
  });
5002
- xf.displayName = bf;
5003
- var Sf = "SliderRange", Cf = z.forwardRef((e, t) => {
5004
- let { __scopeSlider: n, ...r } = e, i = pf(Sf, n), a = gf(Sf, n), o = c(t, z.useRef(null)), s = i.values.length, l = i.values.map((e) => Af(e, i.min, i.max)), u = s > 1 ? Math.min(...l) : 0, d = 100 - Math.max(...l);
5005
- return /* @__PURE__ */ H(tf.span, {
5005
+ wf.displayName = Cf;
5006
+ var Tf = "SliderRange", Ef = z.forwardRef((e, t) => {
5007
+ let { __scopeSlider: n, ...r } = e, i = gf(Tf, n), a = yf(Tf, n), o = c(t, z.useRef(null)), s = i.values.length, l = i.values.map((e) => Nf(e, i.min, i.max)), u = s > 1 ? Math.min(...l) : 0, d = 100 - Math.max(...l);
5008
+ return /* @__PURE__ */ H(af.span, {
5006
5009
  "data-orientation": i.orientation,
5007
5010
  "data-disabled": i.disabled ? "" : void 0,
5008
5011
  ...r,
@@ -5014,16 +5017,16 @@ var Sf = "SliderRange", Cf = z.forwardRef((e, t) => {
5014
5017
  }
5015
5018
  });
5016
5019
  });
5017
- Cf.displayName = Sf;
5018
- var wf = "SliderThumb", Tf = z.forwardRef((e, t) => {
5019
- let n = cf(e.__scopeSlider), [r, i] = z.useState(null), a = c(t, (e) => i(e)), o = z.useMemo(() => r ? n().findIndex((e) => e.ref.current === r) : -1, [n, r]);
5020
- return /* @__PURE__ */ H(Ef, {
5020
+ Ef.displayName = Tf;
5021
+ var Df = "SliderThumb", Of = z.forwardRef((e, t) => {
5022
+ let n = df(e.__scopeSlider), [r, i] = z.useState(null), a = c(t, (e) => i(e)), o = z.useMemo(() => r ? n().findIndex((e) => e.ref.current === r) : -1, [n, r]);
5023
+ return /* @__PURE__ */ H(kf, {
5021
5024
  ...e,
5022
5025
  ref: a,
5023
5026
  index: o
5024
5027
  });
5025
- }), Ef = z.forwardRef((e, t) => {
5026
- let { __scopeSlider: n, index: r, name: i, ...a } = e, o = pf(wf, n), l = gf(wf, n), [u, d] = z.useState(null), f = c(t, (e) => d(e)), p = u ? o.form || !!u.closest("form") : !0, m = et(u), h = o.values[r], g = h === void 0 ? 0 : Af(h, o.min, o.max), _ = jf(r, o.values.length), v = m?.[l.size], y = v ? Nf(v, g, l.direction) : 0;
5028
+ }), kf = z.forwardRef((e, t) => {
5029
+ let { __scopeSlider: n, index: r, name: i, ...a } = e, o = gf(Df, n), l = yf(Df, n), [u, d] = z.useState(null), f = c(t, (e) => d(e)), p = u ? o.form || !!u.closest("form") : !0, m = et(u), h = o.values[r], g = h === void 0 ? 0 : Nf(h, o.min, o.max), _ = Pf(r, o.values.length), v = m?.[l.size], y = v ? If(v, g, l.direction) : 0;
5027
5030
  return z.useEffect(() => {
5028
5031
  if (u) return o.thumbs.add(u), () => {
5029
5032
  o.thumbs.delete(u);
@@ -5034,9 +5037,9 @@ var wf = "SliderThumb", Tf = z.forwardRef((e, t) => {
5034
5037
  position: "absolute",
5035
5038
  [l.startEdge]: `calc(${g}% + ${y}px)`
5036
5039
  },
5037
- children: [/* @__PURE__ */ H(sf.ItemSlot, {
5040
+ children: [/* @__PURE__ */ H(uf.ItemSlot, {
5038
5041
  scope: e.__scopeSlider,
5039
- children: /* @__PURE__ */ H(tf.span, {
5042
+ children: /* @__PURE__ */ H(af.span, {
5040
5043
  role: "slider",
5041
5044
  "aria-label": e["aria-label"] || _,
5042
5045
  "aria-valuemin": o.min,
@@ -5053,16 +5056,16 @@ var wf = "SliderThumb", Tf = z.forwardRef((e, t) => {
5053
5056
  o.valueIndexToChangeRef.current = r;
5054
5057
  })
5055
5058
  })
5056
- }), p && /* @__PURE__ */ H(Of, {
5059
+ }), p && /* @__PURE__ */ H(jf, {
5057
5060
  name: i ?? (o.name ? o.name + (o.values.length > 1 ? "[]" : "") : void 0),
5058
5061
  form: o.form,
5059
5062
  value: h
5060
5063
  }, r)]
5061
5064
  });
5062
5065
  });
5063
- Tf.displayName = wf;
5064
- var Df = "RadioBubbleInput", Of = z.forwardRef(({ __scopeSlider: e, value: t, ...n }, r) => {
5065
- let i = z.useRef(null), a = c(i, r), o = Cl(t);
5066
+ Of.displayName = Df;
5067
+ var Af = "RadioBubbleInput", jf = z.forwardRef(({ __scopeSlider: e, value: t, ...n }, r) => {
5068
+ let i = z.useRef(null), a = c(i, r), o = El(t);
5066
5069
  return z.useEffect(() => {
5067
5070
  let e = i.current;
5068
5071
  if (!e) return;
@@ -5071,59 +5074,59 @@ var Df = "RadioBubbleInput", Of = z.forwardRef(({ __scopeSlider: e, value: t, ..
5071
5074
  let n = new Event("input", { bubbles: !0 });
5072
5075
  r.call(e, t), e.dispatchEvent(n);
5073
5076
  }
5074
- }, [o, t]), /* @__PURE__ */ H(tf.input, {
5077
+ }, [o, t]), /* @__PURE__ */ H(af.input, {
5075
5078
  style: { display: "none" },
5076
5079
  ...n,
5077
5080
  ref: a,
5078
5081
  defaultValue: t
5079
5082
  });
5080
5083
  });
5081
- Of.displayName = Df;
5082
- function kf(e = [], t, n) {
5084
+ jf.displayName = Af;
5085
+ function Mf(e = [], t, n) {
5083
5086
  let r = [...e];
5084
5087
  return r[n] = t, r.sort((e, t) => e - t);
5085
5088
  }
5086
- function Af(e, t, n) {
5089
+ function Nf(e, t, n) {
5087
5090
  return Ke(100 / (n - t) * (e - t), [0, 100]);
5088
5091
  }
5089
- function jf(e, t) {
5092
+ function Pf(e, t) {
5090
5093
  if (t > 2) return `Value ${e + 1} of ${t}`;
5091
5094
  if (t === 2) return ["Minimum", "Maximum"][e];
5092
5095
  }
5093
- function Mf(e, t) {
5096
+ function Ff(e, t) {
5094
5097
  if (e.length === 1) return 0;
5095
5098
  let n = e.map((e) => Math.abs(e - t)), r = Math.min(...n);
5096
5099
  return n.indexOf(r);
5097
5100
  }
5098
- function Nf(e, t, n) {
5101
+ function If(e, t, n) {
5099
5102
  let r = e / 2;
5100
- return (r - If([0, 50], [0, r])(t) * n) * n;
5103
+ return (r - zf([0, 50], [0, r])(t) * n) * n;
5101
5104
  }
5102
- function Pf(e) {
5105
+ function Lf(e) {
5103
5106
  return e.slice(0, -1).map((t, n) => e[n + 1] - t);
5104
5107
  }
5105
- function Ff(e, t) {
5108
+ function Rf(e, t) {
5106
5109
  if (t > 0) {
5107
- let n = Pf(e);
5110
+ let n = Lf(e);
5108
5111
  return Math.min(...n) >= t;
5109
5112
  }
5110
5113
  return !0;
5111
5114
  }
5112
- function If(e, t) {
5115
+ function zf(e, t) {
5113
5116
  return (n) => {
5114
5117
  if (e[0] === e[1] || t[0] === t[1]) return t[0];
5115
5118
  let r = (t[1] - t[0]) / (e[1] - e[0]);
5116
5119
  return t[0] + r * (n - e[0]);
5117
5120
  };
5118
5121
  }
5119
- function Lf(e) {
5122
+ function Bf(e) {
5120
5123
  return (String(e).split(".")[1] || "").length;
5121
5124
  }
5122
- function Rf(e, t) {
5125
+ function Vf(e, t) {
5123
5126
  let n = 10 ** t;
5124
5127
  return Math.round(e * n) / n;
5125
5128
  }
5126
- var zf = mf, Bf = xf, Vf = Cf, Hf = Tf, Uf = [
5129
+ var Hf = _f, Uf = wf, Wf = Ef, Gf = Of, Kf = [
5127
5130
  "a",
5128
5131
  "button",
5129
5132
  "div",
@@ -5153,23 +5156,23 @@ var zf = mf, Bf = xf, Vf = Cf, Hf = Tf, Uf = [
5153
5156
  ...e,
5154
5157
  [t]: r
5155
5158
  };
5156
- }, {}), Wf = "Switch", [Gf, Kf] = t(Wf), [qf, Jf] = Gf(Wf), Yf = z.forwardRef((e, t) => {
5159
+ }, {}), qf = "Switch", [Jf, Yf] = t(qf), [Xf, Zf] = Jf(qf), Qf = z.forwardRef((e, t) => {
5157
5160
  let { __scopeSwitch: n, name: r, checked: i, defaultChecked: a, required: o, disabled: l, value: u = "on", onCheckedChange: d, form: f, ...p } = e, [m, h] = z.useState(null), g = c(t, (e) => h(e)), _ = z.useRef(!1), v = m ? f || !!m.closest("form") : !0, [y, b] = Ue({
5158
5161
  prop: i,
5159
5162
  defaultProp: a ?? !1,
5160
5163
  onChange: d,
5161
- caller: Wf
5164
+ caller: qf
5162
5165
  });
5163
- return /* @__PURE__ */ U(qf, {
5166
+ return /* @__PURE__ */ U(Xf, {
5164
5167
  scope: n,
5165
5168
  checked: y,
5166
5169
  disabled: l,
5167
- children: [/* @__PURE__ */ H(Uf.button, {
5170
+ children: [/* @__PURE__ */ H(Kf.button, {
5168
5171
  type: "button",
5169
5172
  role: "switch",
5170
5173
  "aria-checked": y,
5171
5174
  "aria-required": o,
5172
- "data-state": ep(y),
5175
+ "data-state": rp(y),
5173
5176
  "data-disabled": l ? "" : void 0,
5174
5177
  disabled: l,
5175
5178
  value: u,
@@ -5178,7 +5181,7 @@ var zf = mf, Bf = xf, Vf = Cf, Hf = Tf, Uf = [
5178
5181
  onClick: s(e.onClick, (e) => {
5179
5182
  b((e) => !e), v && (_.current = e.isPropagationStopped(), _.current || e.stopPropagation());
5180
5183
  })
5181
- }), v && /* @__PURE__ */ H($f, {
5184
+ }), v && /* @__PURE__ */ H(np, {
5182
5185
  control: m,
5183
5186
  bubbles: !_.current,
5184
5187
  name: r,
@@ -5191,19 +5194,19 @@ var zf = mf, Bf = xf, Vf = Cf, Hf = Tf, Uf = [
5191
5194
  })]
5192
5195
  });
5193
5196
  });
5194
- Yf.displayName = Wf;
5195
- var Xf = "SwitchThumb", Zf = z.forwardRef((e, t) => {
5196
- let { __scopeSwitch: n, ...r } = e, i = Jf(Xf, n);
5197
- return /* @__PURE__ */ H(Uf.span, {
5198
- "data-state": ep(i.checked),
5197
+ Qf.displayName = qf;
5198
+ var $f = "SwitchThumb", ep = z.forwardRef((e, t) => {
5199
+ let { __scopeSwitch: n, ...r } = e, i = Zf($f, n);
5200
+ return /* @__PURE__ */ H(Kf.span, {
5201
+ "data-state": rp(i.checked),
5199
5202
  "data-disabled": i.disabled ? "" : void 0,
5200
5203
  ...r,
5201
5204
  ref: t
5202
5205
  });
5203
5206
  });
5204
- Zf.displayName = Xf;
5205
- var Qf = "SwitchBubbleInput", $f = z.forwardRef(({ __scopeSwitch: e, control: t, checked: n, bubbles: r = !0, ...i }, a) => {
5206
- let o = z.useRef(null), s = c(o, a), l = Cl(n), u = et(t);
5207
+ ep.displayName = $f;
5208
+ var tp = "SwitchBubbleInput", np = z.forwardRef(({ __scopeSwitch: e, control: t, checked: n, bubbles: r = !0, ...i }, a) => {
5209
+ let o = z.useRef(null), s = c(o, a), l = El(n), u = et(t);
5207
5210
  return z.useEffect(() => {
5208
5211
  let e = o.current;
5209
5212
  if (!e) return;
@@ -5233,52 +5236,52 @@ var Qf = "SwitchBubbleInput", $f = z.forwardRef(({ __scopeSwitch: e, control: t,
5233
5236
  }
5234
5237
  });
5235
5238
  });
5236
- $f.displayName = Qf;
5237
- function ep(e) {
5239
+ np.displayName = tp;
5240
+ function rp(e) {
5238
5241
  return e ? "checked" : "unchecked";
5239
5242
  }
5240
- var tp = Yf, np = Zf;
5243
+ var ip = Qf, ap = ep;
5241
5244
  //#endregion
5242
5245
  //#region src/primitives/reui/dialog.tsx
5243
- function rp({ ...e }) {
5244
- return /* @__PURE__ */ H(Xc, {
5246
+ function op({ ...e }) {
5247
+ return /* @__PURE__ */ H($c, {
5245
5248
  "data-slot": "dialog",
5246
5249
  ...e
5247
5250
  });
5248
5251
  }
5249
- function ip({ ...e }) {
5250
- return /* @__PURE__ */ H(Zc, {
5252
+ function sp({ ...e }) {
5253
+ return /* @__PURE__ */ H(el, {
5251
5254
  "data-slot": "dialog-trigger",
5252
5255
  ...e
5253
5256
  });
5254
5257
  }
5255
- function ap({ ...e }) {
5256
- return /* @__PURE__ */ H(Qc, {
5258
+ function cp({ ...e }) {
5259
+ return /* @__PURE__ */ H(tl, {
5257
5260
  "data-slot": "dialog-portal",
5258
5261
  ...e
5259
5262
  });
5260
5263
  }
5261
- function op({ ...e }) {
5262
- return /* @__PURE__ */ H(rl, {
5264
+ function lp({ ...e }) {
5265
+ return /* @__PURE__ */ H(ol, {
5263
5266
  "data-slot": "dialog-close",
5264
5267
  ...e
5265
5268
  });
5266
5269
  }
5267
- function sp({ className: e, ...t }) {
5268
- return /* @__PURE__ */ H($c, {
5270
+ function up({ className: e, ...t }) {
5271
+ return /* @__PURE__ */ H(nl, {
5269
5272
  "data-slot": "dialog-overlay",
5270
5273
  className: R("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", e),
5271
5274
  ...t
5272
5275
  });
5273
5276
  }
5274
- function cp({ className: e, children: t, showCloseButton: n = !0, ...r }) {
5275
- return /* @__PURE__ */ U(ap, {
5277
+ function dp({ className: e, children: t, showCloseButton: n = !0, ...r }) {
5278
+ return /* @__PURE__ */ U(cp, {
5276
5279
  "data-slot": "dialog-portal",
5277
- children: [/* @__PURE__ */ H(sp, {}), /* @__PURE__ */ U(el, {
5280
+ children: [/* @__PURE__ */ H(up, {}), /* @__PURE__ */ U(rl, {
5278
5281
  "data-slot": "dialog-content",
5279
5282
  className: R("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg", e),
5280
5283
  ...r,
5281
- children: [t, n && /* @__PURE__ */ U(rl, {
5284
+ children: [t, n && /* @__PURE__ */ U(ol, {
5282
5285
  "data-slot": "dialog-close",
5283
5286
  className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
5284
5287
  children: [/* @__PURE__ */ H(me, {}), /* @__PURE__ */ H("span", {
@@ -5289,19 +5292,19 @@ function cp({ className: e, children: t, showCloseButton: n = !0, ...r }) {
5289
5292
  })]
5290
5293
  });
5291
5294
  }
5292
- function lp({ className: e, ...t }) {
5295
+ function fp({ className: e, ...t }) {
5293
5296
  return /* @__PURE__ */ H("div", {
5294
5297
  "data-slot": "dialog-header",
5295
5298
  className: R("flex flex-col gap-2 text-center sm:text-left", e),
5296
5299
  ...t
5297
5300
  });
5298
5301
  }
5299
- function up({ className: e, showCloseButton: t = !1, children: n, ...r }) {
5302
+ function pp({ className: e, showCloseButton: t = !1, children: n, ...r }) {
5300
5303
  return /* @__PURE__ */ U("div", {
5301
5304
  "data-slot": "dialog-footer",
5302
5305
  className: R("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
5303
5306
  ...r,
5304
- children: [n, t && /* @__PURE__ */ H(rl, {
5307
+ children: [n, t && /* @__PURE__ */ H(ol, {
5305
5308
  asChild: !0,
5306
5309
  children: /* @__PURE__ */ H(d, {
5307
5310
  variant: "outline",
@@ -5310,15 +5313,15 @@ function up({ className: e, showCloseButton: t = !1, children: n, ...r }) {
5310
5313
  })]
5311
5314
  });
5312
5315
  }
5313
- function dp({ className: e, ...t }) {
5314
- return /* @__PURE__ */ H(tl, {
5316
+ function mp({ className: e, ...t }) {
5317
+ return /* @__PURE__ */ H(il, {
5315
5318
  "data-slot": "dialog-title",
5316
5319
  className: R("text-lg leading-none font-semibold", e),
5317
5320
  ...t
5318
5321
  });
5319
5322
  }
5320
- function fp({ className: e, ...t }) {
5321
- return /* @__PURE__ */ H(nl, {
5323
+ function hp({ className: e, ...t }) {
5324
+ return /* @__PURE__ */ H(al, {
5322
5325
  "data-slot": "dialog-description",
5323
5326
  className: R("text-sm text-muted-foreground", e),
5324
5327
  ...t
@@ -5326,15 +5329,15 @@ function fp({ className: e, ...t }) {
5326
5329
  }
5327
5330
  //#endregion
5328
5331
  //#region src/base/utils/icons.ts
5329
- function pp(e) {
5330
- return cc(e) ?? Pe;
5332
+ function gp(e) {
5333
+ return dc(e) ?? Pe;
5331
5334
  }
5332
5335
  //#endregion
5333
5336
  //#region src/i18n/render-label.ts
5334
- function mp(e) {
5337
+ function _p(e) {
5335
5338
  return typeof e == "object" && !!e && "key" in e && typeof e.key == "string";
5336
5339
  }
5337
- function hp(e, t) {
5340
+ function vp(e, t) {
5338
5341
  return e == null ? "" : typeof e == "string" ? e : t(e.key, {
5339
5342
  ns: e.domain || void 0,
5340
5343
  defaultValue: e.key,
@@ -5343,7 +5346,7 @@ function hp(e, t) {
5343
5346
  }
5344
5347
  //#endregion
5345
5348
  //#region src/primitives/reui/alert.tsx
5346
- var gp = o([
5349
+ var yp = o([
5347
5350
  "relative w-full text-sm border has-[>svg]:grid-cols-[calc(var(--spacing)*3)_1fr] grid-cols-[0_1fr] grid gap-y-0.5 items-center [&>svg:not([class*=size-])]:size-4",
5348
5351
  "has-[>[data-slot=alert-title]+[data-slot=alert-description]]:[&_[data-slot=alert-action]]:sm:row-end-3",
5349
5352
  "has-[>[data-slot=alert-title]+[data-slot=alert-description]]:items-start",
@@ -5363,29 +5366,29 @@ var gp = o([
5363
5366
  } },
5364
5367
  defaultVariants: { variant: "default" }
5365
5368
  });
5366
- function _p({ className: e, variant: t, ...n }) {
5369
+ function bp({ className: e, variant: t, ...n }) {
5367
5370
  return /* @__PURE__ */ H("div", {
5368
5371
  "data-slot": "alert",
5369
5372
  role: "alert",
5370
- className: R(gp({ variant: t }), e),
5373
+ className: R(yp({ variant: t }), e),
5371
5374
  ...n
5372
5375
  });
5373
5376
  }
5374
- function vp({ className: e, ...t }) {
5377
+ function xp({ className: e, ...t }) {
5375
5378
  return /* @__PURE__ */ H("div", {
5376
5379
  "data-slot": "alert-title",
5377
5380
  className: R("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", e),
5378
5381
  ...t
5379
5382
  });
5380
5383
  }
5381
- function yp({ className: e, ...t }) {
5384
+ function Sp({ className: e, ...t }) {
5382
5385
  return /* @__PURE__ */ H("div", {
5383
5386
  "data-slot": "alert-description",
5384
5387
  className: R("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", e),
5385
5388
  ...t
5386
5389
  });
5387
5390
  }
5388
- function bp({ className: e, ...t }) {
5391
+ function Cp({ className: e, ...t }) {
5389
5392
  return /* @__PURE__ */ H("div", {
5390
5393
  "data-slot": "alert-action",
5391
5394
  className: R("flex gap-1.5 max-sm:col-start-2 max-sm:mt-2 max-sm:justify-start sm:col-start-3 sm:row-start-1 sm:justify-end sm:self-center", e),
@@ -5394,7 +5397,7 @@ function bp({ className: e, ...t }) {
5394
5397
  }
5395
5398
  //#endregion
5396
5399
  //#region src/primitives/reui/badge.tsx
5397
- var xp = o("relative inline-flex shrink-0 items-center justify-center w-fit border border-transparent font-medium whitespace-nowrap outline-none transition-shadow focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-3", {
5400
+ var wp = o("relative inline-flex shrink-0 items-center justify-center w-fit border border-transparent font-medium whitespace-nowrap outline-none transition-shadow focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-3", {
5398
5401
  variants: {
5399
5402
  variant: {
5400
5403
  default: "bg-primary text-primary-foreground",
@@ -5439,10 +5442,10 @@ var xp = o("relative inline-flex shrink-0 items-center justify-center w-fit bord
5439
5442
  radius: "default"
5440
5443
  }
5441
5444
  });
5442
- function Sp({ className: e, variant: t, size: n, radius: r, asChild: i = !1, ...o }) {
5445
+ function Tp({ className: e, variant: t, size: n, radius: r, asChild: i = !1, ...o }) {
5443
5446
  return /* @__PURE__ */ H(i ? a : "span", {
5444
5447
  "data-slot": "badge",
5445
- className: R(xp({
5448
+ className: R(wp({
5446
5449
  variant: t,
5447
5450
  size: n,
5448
5451
  radius: r,
@@ -5453,7 +5456,7 @@ function Sp({ className: e, variant: t, size: n, radius: r, asChild: i = !1, ...
5453
5456
  }
5454
5457
  //#endregion
5455
5458
  //#region src/base/partials/EmptyPlaceholder/index.tsx
5456
- var Cp = dt(() => import("./dist-axU0pUop.js").then((e) => ({ default: e.DotLottieReact }))), wp = {
5459
+ var Ep = dt(() => import("./dist-axU0pUop.js").then((e) => ({ default: e.DotLottieReact }))), Dp = {
5457
5460
  "first-use": {
5458
5461
  iconSize: 56,
5459
5462
  padding: "py-20",
@@ -5485,14 +5488,14 @@ var Cp = dt(() => import("./dist-axU0pUop.js").then((e) => ({ default: e.DotLott
5485
5488
  maxDescWidth: "max-w-[320px]"
5486
5489
  }
5487
5490
  };
5488
- function Tp(e, t) {
5489
- return e === "error" ? je : e === "permission" ? Me : t ? pp(t) : Pe;
5491
+ function Op(e, t) {
5492
+ return e === "error" ? je : e === "permission" ? Me : t ? gp(t) : Pe;
5490
5493
  }
5491
- function Ep(e) {
5494
+ function kp(e) {
5492
5495
  return e === "error" ? "text-destructive" : "text-muted-foreground/50";
5493
5496
  }
5494
- function Dp({ variant: e = "first-use", icon: t, lottieUrl: n, title: r, description: i, cta: a, ctaSecondary: o }) {
5495
- let s = wp[e], c = Tp(e, t), l = Ep(e), u = e !== "permission" && a, f = s.iconSize * 1.8;
5497
+ function Ap({ variant: e = "first-use", icon: t, lottieUrl: n, title: r, description: i, cta: a, ctaSecondary: o }) {
5498
+ let s = Dp[e], c = Op(e, t), l = kp(e), u = e !== "permission" && a, f = s.iconSize * 1.8;
5496
5499
  return /* @__PURE__ */ U("div", {
5497
5500
  role: "status",
5498
5501
  "aria-live": "polite",
@@ -5506,7 +5509,7 @@ function Dp({ variant: e = "first-use", icon: t, lottieUrl: n, title: r, descrip
5506
5509
  },
5507
5510
  className: "mb-4"
5508
5511
  }),
5509
- children: /* @__PURE__ */ H(Cp, {
5512
+ children: /* @__PURE__ */ H(Ep, {
5510
5513
  src: n,
5511
5514
  loop: !0,
5512
5515
  autoplay: !0,
@@ -5557,89 +5560,89 @@ function Dp({ variant: e = "first-use", icon: t, lottieUrl: n, title: r, descrip
5557
5560
  }
5558
5561
  //#endregion
5559
5562
  //#region src/primitives/reui/select.tsx
5560
- function Op({ ...e }) {
5561
- return /* @__PURE__ */ H(Nd, {
5563
+ function jp({ ...e }) {
5564
+ return /* @__PURE__ */ H(Id, {
5562
5565
  "data-slot": "select",
5563
5566
  ...e
5564
5567
  });
5565
5568
  }
5566
- function kp({ ...e }) {
5567
- return /* @__PURE__ */ H(Bd, {
5569
+ function Mp({ ...e }) {
5570
+ return /* @__PURE__ */ H(Ud, {
5568
5571
  "data-slot": "select-group",
5569
5572
  ...e
5570
5573
  });
5571
5574
  }
5572
- function Ap({ ...e }) {
5573
- return /* @__PURE__ */ H(Fd, {
5575
+ function Np({ ...e }) {
5576
+ return /* @__PURE__ */ H(Rd, {
5574
5577
  "data-slot": "select-value",
5575
5578
  ...e
5576
5579
  });
5577
5580
  }
5578
- function jp({ className: e, size: t = "default", children: n, ...i }) {
5579
- return /* @__PURE__ */ U(Pd, {
5581
+ function Pp({ className: e, size: t = "default", children: n, ...i }) {
5582
+ return /* @__PURE__ */ U(Ld, {
5580
5583
  "data-slot": "select-trigger",
5581
5584
  "data-size": t,
5582
5585
  className: R("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground", e),
5583
5586
  ...i,
5584
- children: [n, /* @__PURE__ */ H(Id, {
5587
+ children: [n, /* @__PURE__ */ H(zd, {
5585
5588
  asChild: !0,
5586
5589
  children: /* @__PURE__ */ H(r, { className: "size-4 opacity-50" })
5587
5590
  })]
5588
5591
  });
5589
5592
  }
5590
- function Mp({ className: e, children: t, position: n = "item-aligned", align: r = "center", ...i }) {
5591
- return /* @__PURE__ */ H(Ld, { children: /* @__PURE__ */ U(Rd, {
5593
+ function Fp({ className: e, children: t, position: n = "item-aligned", align: r = "center", ...i }) {
5594
+ return /* @__PURE__ */ H(Bd, { children: /* @__PURE__ */ U(Vd, {
5592
5595
  "data-slot": "select-content",
5593
5596
  className: R("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95", n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", e),
5594
5597
  position: n,
5595
5598
  align: r,
5596
5599
  ...i,
5597
5600
  children: [
5598
- /* @__PURE__ */ H(Ip, {}),
5599
- /* @__PURE__ */ H(zd, {
5601
+ /* @__PURE__ */ H(zp, {}),
5602
+ /* @__PURE__ */ H(Hd, {
5600
5603
  className: R("p-1", n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
5601
5604
  children: t
5602
5605
  }),
5603
- /* @__PURE__ */ H(Lp, {})
5606
+ /* @__PURE__ */ H(Bp, {})
5604
5607
  ]
5605
5608
  }) });
5606
5609
  }
5607
- function Np({ className: e, ...t }) {
5608
- return /* @__PURE__ */ H(Vd, {
5610
+ function Ip({ className: e, ...t }) {
5611
+ return /* @__PURE__ */ H(Wd, {
5609
5612
  "data-slot": "select-label",
5610
5613
  className: R("px-2 py-1.5 text-xs text-muted-foreground", e),
5611
5614
  ...t
5612
5615
  });
5613
5616
  }
5614
- function Pp({ className: e, children: t, ...n }) {
5615
- return /* @__PURE__ */ U(Hd, {
5617
+ function Lp({ className: e, children: t, ...n }) {
5618
+ return /* @__PURE__ */ U(Gd, {
5616
5619
  "data-slot": "select-item",
5617
5620
  className: R("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
5618
5621
  ...n,
5619
5622
  children: [/* @__PURE__ */ H("span", {
5620
5623
  "data-slot": "select-item-indicator",
5621
5624
  className: "absolute right-2 flex size-3.5 items-center justify-center",
5622
- children: /* @__PURE__ */ H(Wd, { children: /* @__PURE__ */ H(ve, { className: "size-4" }) })
5623
- }), /* @__PURE__ */ H(Ud, { children: t })]
5625
+ children: /* @__PURE__ */ H(qd, { children: /* @__PURE__ */ H(ve, { className: "size-4" }) })
5626
+ }), /* @__PURE__ */ H(Kd, { children: t })]
5624
5627
  });
5625
5628
  }
5626
- function Fp({ className: e, ...t }) {
5627
- return /* @__PURE__ */ H(qd, {
5629
+ function Rp({ className: e, ...t }) {
5630
+ return /* @__PURE__ */ H(Xd, {
5628
5631
  "data-slot": "select-separator",
5629
5632
  className: R("pointer-events-none -mx-1 my-1 h-px bg-border", e),
5630
5633
  ...t
5631
5634
  });
5632
5635
  }
5633
- function Ip({ className: e, ...t }) {
5634
- return /* @__PURE__ */ H(Gd, {
5636
+ function zp({ className: e, ...t }) {
5637
+ return /* @__PURE__ */ H(Jd, {
5635
5638
  "data-slot": "select-scroll-up-button",
5636
5639
  className: R("flex cursor-default items-center justify-center py-1", e),
5637
5640
  ...t,
5638
5641
  children: /* @__PURE__ */ H(tc, { className: "size-4" })
5639
5642
  });
5640
5643
  }
5641
- function Lp({ className: e, ...t }) {
5642
- return /* @__PURE__ */ H(Kd, {
5644
+ function Bp({ className: e, ...t }) {
5645
+ return /* @__PURE__ */ H(Yd, {
5643
5646
  "data-slot": "select-scroll-down-button",
5644
5647
  className: R("flex cursor-default items-center justify-center py-1", e),
5645
5648
  ...t,
@@ -5648,8 +5651,8 @@ function Lp({ className: e, ...t }) {
5648
5651
  }
5649
5652
  //#endregion
5650
5653
  //#region src/primitives/reui/separator.tsx
5651
- function Rp({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
5652
- return /* @__PURE__ */ H(ef, {
5654
+ function Vp({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
5655
+ return /* @__PURE__ */ H(rf, {
5653
5656
  "data-slot": "separator",
5654
5657
  decorative: n,
5655
5658
  orientation: t,
@@ -5659,12 +5662,12 @@ function Rp({ className: e, orientation: t = "horizontal", decorative: n = !0, .
5659
5662
  }
5660
5663
  //#endregion
5661
5664
  //#region src/primitives/reui/checkbox.tsx
5662
- function zp({ className: e, ...t }) {
5663
- return /* @__PURE__ */ H(Nl, {
5665
+ function Hp({ className: e, ...t }) {
5666
+ return /* @__PURE__ */ H(Il, {
5664
5667
  "data-slot": "checkbox",
5665
5668
  className: R("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary", e),
5666
5669
  ...t,
5667
- children: /* @__PURE__ */ H(Fl, {
5670
+ children: /* @__PURE__ */ H(Rl, {
5668
5671
  "data-slot": "checkbox-indicator",
5669
5672
  className: "grid place-content-center text-current transition-none",
5670
5673
  children: /* @__PURE__ */ H(ve, { className: "size-3.5" })
@@ -5673,7 +5676,7 @@ function zp({ className: e, ...t }) {
5673
5676
  }
5674
5677
  //#endregion
5675
5678
  //#region src/base/utils/conditions.ts
5676
- function Bp(e, t) {
5679
+ function Up(e, t) {
5677
5680
  let n = t[e.field], r = e.value;
5678
5681
  switch (e.operator) {
5679
5682
  case "equals": return String(n) === String(r);
@@ -5685,8 +5688,8 @@ function Bp(e, t) {
5685
5688
  }
5686
5689
  //#endregion
5687
5690
  //#region src/primitives/reui/label.tsx
5688
- function Vp({ className: e, ...t }) {
5689
- return /* @__PURE__ */ H(Wl, {
5691
+ function Wp({ className: e, ...t }) {
5692
+ return /* @__PURE__ */ H(ql, {
5690
5693
  "data-slot": "label",
5691
5694
  className: R("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
5692
5695
  ...t
@@ -5694,11 +5697,11 @@ function Vp({ className: e, ...t }) {
5694
5697
  }
5695
5698
  //#endregion
5696
5699
  //#region src/base/form/fields/CheckboxField.tsx
5697
- function Hp({ id: e, value: t, onChange: n, label: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
5700
+ function Gp({ id: e, value: t, onChange: n, label: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
5698
5701
  let l = [o ? c : void 0, s].filter(Boolean).join(" ") || void 0;
5699
5702
  return /* @__PURE__ */ U("div", {
5700
5703
  className: "flex items-center gap-2",
5701
- children: [/* @__PURE__ */ H(zp, {
5704
+ children: [/* @__PURE__ */ H(Hp, {
5702
5705
  id: e,
5703
5706
  checked: !!t,
5704
5707
  onCheckedChange: (e) => n(e === !0),
@@ -5706,7 +5709,7 @@ function Hp({ id: e, value: t, onChange: n, label: r, disabled: i, required: a,
5706
5709
  "aria-invalid": o ? !0 : void 0,
5707
5710
  "aria-required": a || void 0,
5708
5711
  "aria-describedby": l
5709
- }), r && /* @__PURE__ */ H(Vp, {
5712
+ }), r && /* @__PURE__ */ H(Wp, {
5710
5713
  htmlFor: e,
5711
5714
  className: "text-sm font-normal",
5712
5715
  children: r
@@ -5715,7 +5718,7 @@ function Hp({ id: e, value: t, onChange: n, label: r, disabled: i, required: a,
5715
5718
  }
5716
5719
  //#endregion
5717
5720
  //#region src/base/form/fields/ColorField.tsx
5718
- function Up({ id: e, value: t, onChange: n, placeholder: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
5721
+ function Kp({ id: e, value: t, onChange: n, placeholder: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
5719
5722
  let l = [o ? c : void 0, s].filter(Boolean).join(" ") || void 0, u = B((e) => {
5720
5723
  n(e.target.value);
5721
5724
  }, [n]), d = B((e) => {
@@ -5747,7 +5750,7 @@ function Up({ id: e, value: t, onChange: n, placeholder: r, disabled: i, require
5747
5750
  }
5748
5751
  //#endregion
5749
5752
  //#region src/base/form/fields/CurrencyField.tsx
5750
- var Wp = {
5753
+ var qp = {
5751
5754
  BRL: "R$",
5752
5755
  USD: "$",
5753
5756
  EUR: "€",
@@ -5762,8 +5765,8 @@ var Wp = {
5762
5765
  COP: "$",
5763
5766
  PEN: "S/"
5764
5767
  };
5765
- function Gp({ id: e, value: t, onChange: n, currency: r = "BRL", placeholder: i, disabled: a, required: o, error: s, helpTextId: c, errorId: l, min: u, max: d }) {
5766
- let { t: f, formatCurrency: m } = De(), [h, g] = V(!1), [_, v] = V(""), y = [s ? l : void 0, c].filter(Boolean).join(" ") || void 0, b = h ? _ : t == null ? "" : m(t, r), x = Wp[r] ?? r, S = B(() => {
5768
+ function Jp({ id: e, value: t, onChange: n, currency: r = "BRL", placeholder: i, disabled: a, required: o, error: s, helpTextId: c, errorId: l, min: u, max: d }) {
5769
+ let { t: f, formatCurrency: m } = De(), [h, g] = V(!1), [_, v] = V(""), y = [s ? l : void 0, c].filter(Boolean).join(" ") || void 0, b = h ? _ : t == null ? "" : m(t, r), x = qp[r] ?? r, S = B(() => {
5767
5770
  g(!0), v(t == null ? "" : String(t));
5768
5771
  }, [t]), C = B(() => {
5769
5772
  g(!1);
@@ -5799,23 +5802,23 @@ function Gp({ id: e, value: t, onChange: n, currency: r = "BRL", placeholder: i,
5799
5802
  }
5800
5803
  //#endregion
5801
5804
  //#region src/primitives/reui/avatar.tsx
5802
- function Kp({ className: e, size: t = "default", ...n }) {
5803
- return /* @__PURE__ */ H(bl, {
5805
+ function Yp({ className: e, size: t = "default", ...n }) {
5806
+ return /* @__PURE__ */ H(Cl, {
5804
5807
  "data-slot": "avatar",
5805
5808
  "data-size": t,
5806
5809
  className: R("group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6", e),
5807
5810
  ...n
5808
5811
  });
5809
5812
  }
5810
- function qp({ className: e, ...t }) {
5811
- return /* @__PURE__ */ H(xl, {
5813
+ function Xp({ className: e, ...t }) {
5814
+ return /* @__PURE__ */ H(wl, {
5812
5815
  "data-slot": "avatar-image",
5813
5816
  className: R("aspect-square size-full", e),
5814
5817
  ...t
5815
5818
  });
5816
5819
  }
5817
- function Jp({ className: e, ...t }) {
5818
- return /* @__PURE__ */ H(Sl, {
5820
+ function Zp({ className: e, ...t }) {
5821
+ return /* @__PURE__ */ H(Tl, {
5819
5822
  "data-slot": "avatar-fallback",
5820
5823
  className: R("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs", e),
5821
5824
  ...t
@@ -5823,7 +5826,7 @@ function Jp({ className: e, ...t }) {
5823
5826
  }
5824
5827
  //#endregion
5825
5828
  //#region node_modules/@base-ui/utils/esm/useForcedRerendering.js
5826
- function Yp() {
5829
+ function Qp() {
5827
5830
  let [, e] = z.useState({});
5828
5831
  return z.useCallback(() => {
5829
5832
  e({});
@@ -5831,46 +5834,46 @@ function Yp() {
5831
5834
  }
5832
5835
  //#endregion
5833
5836
  //#region node_modules/@base-ui/react/esm/internals/clamp.js
5834
- function Xp(e, t = -(2 ** 53 - 1), n = 2 ** 53 - 1) {
5837
+ function $p(e, t = -(2 ** 53 - 1), n = 2 ** 53 - 1) {
5835
5838
  return Math.max(t, Math.min(e, n));
5836
5839
  }
5837
5840
  //#endregion
5838
5841
  //#region node_modules/@base-ui/react/esm/utils/formatNumber.js
5839
- var Zp = /* @__PURE__ */ new Map();
5840
- function Qp(e, t) {
5842
+ var em = /* @__PURE__ */ new Map();
5843
+ function tm(e, t) {
5841
5844
  let n = JSON.stringify({
5842
5845
  locale: e,
5843
5846
  options: t
5844
- }), r = Zp.get(n);
5847
+ }), r = em.get(n);
5845
5848
  if (r) return r;
5846
5849
  let i = new Intl.NumberFormat(e, t);
5847
- return Zp.set(n, i), i;
5850
+ return em.set(n, i), i;
5848
5851
  }
5849
- function $p(e, t, n) {
5850
- return e == null ? "" : Qp(t, n).format(e);
5852
+ function nm(e, t, n) {
5853
+ return e == null ? "" : tm(t, n).format(e);
5851
5854
  }
5852
- function em(e, t, n) {
5853
- return $p(e, t, {
5855
+ function rm(e, t, n) {
5856
+ return nm(e, t, {
5854
5857
  ...n,
5855
5858
  maximumFractionDigits: 20
5856
5859
  });
5857
5860
  }
5858
5861
  //#endregion
5859
5862
  //#region node_modules/@base-ui/react/esm/number-field/root/NumberFieldRootContext.js
5860
- var tm = /* @__PURE__ */ z.createContext(void 0);
5861
- process.env.NODE_ENV !== "production" && (tm.displayName = "NumberFieldRootContext");
5862
- function nm() {
5863
- let e = z.useContext(tm);
5863
+ var im = /* @__PURE__ */ z.createContext(void 0);
5864
+ process.env.NODE_ENV !== "production" && (im.displayName = "NumberFieldRootContext");
5865
+ function am() {
5866
+ let e = z.useContext(im);
5864
5867
  if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? C(43) : "Base UI: NumberFieldRootContext is missing. NumberField parts must be placed within <NumberField.Root>.");
5865
5868
  return e;
5866
5869
  }
5867
5870
  //#endregion
5868
5871
  //#region node_modules/@base-ui/react/esm/number-field/utils/stateAttributesMapping.js
5869
- var rm = {
5872
+ var om = {
5870
5873
  inputValue: () => null,
5871
5874
  value: () => null,
5872
5875
  ...M
5873
- }, im = [
5876
+ }, sm = [
5874
5877
  "零",
5875
5878
  "〇",
5876
5879
  "一",
@@ -5882,7 +5885,7 @@ var rm = {
5882
5885
  "七",
5883
5886
  "八",
5884
5887
  "九"
5885
- ], am = {
5888
+ ], cm = {
5886
5889
  零: "0",
5887
5890
  〇: "0",
5888
5891
  一: "1",
@@ -5894,7 +5897,7 @@ var rm = {
5894
5897
  七: "7",
5895
5898
  八: "8",
5896
5899
  九: "9"
5897
- }, om = [
5900
+ }, lm = [
5898
5901
  "٠",
5899
5902
  "١",
5900
5903
  "٢",
@@ -5905,7 +5908,7 @@ var rm = {
5905
5908
  "٧",
5906
5909
  "٨",
5907
5910
  "٩"
5908
- ], sm = [
5911
+ ], um = [
5909
5912
  "۰",
5910
5913
  "۱",
5911
5914
  "۲",
@@ -5916,7 +5919,7 @@ var rm = {
5916
5919
  "۷",
5917
5920
  "۸",
5918
5921
  "۹"
5919
- ], cm = [
5922
+ ], dm = [
5920
5923
  "0",
5921
5924
  "1",
5922
5925
  "2",
@@ -5927,53 +5930,53 @@ var rm = {
5927
5930
  "7",
5928
5931
  "8",
5929
5932
  "9"
5930
- ], lm = [
5933
+ ], fm = [
5931
5934
  "%",
5932
5935
  "٪",
5933
5936
  "%",
5934
5937
  "﹪"
5935
- ], um = ["‰", "؉"], dm = [
5938
+ ], pm = ["‰", "؉"], mm = [
5936
5939
  "−",
5937
5940
  "-",
5938
5941
  "‒",
5939
5942
  "–",
5940
5943
  "—",
5941
5944
  "﹣"
5942
- ], fm = ["+", "﹢"], pm = RegExp(`[${om.join("")}]`, "g"), mm = RegExp(`[${sm.join("")}]`, "g"), hm = RegExp(`[${cm.join("")}]`, "g"), gm = RegExp(`[${im.join("")}]`, "g"), _m = RegExp(`[${lm.join("")}]`), vm = RegExp(`[${um.join("")}]`), ym = /[٠١٢٣٤٥٦٧٨٩]/, bm = /[۰۱۲۳۴۵۶۷۸۹]/, xm = /[零〇一二三四五六七八九]/, Sm = RegExp(`[${cm.join("")}]`), Cm = [
5945
+ ], hm = ["+", "﹢"], gm = RegExp(`[${lm.join("")}]`, "g"), _m = RegExp(`[${um.join("")}]`, "g"), vm = RegExp(`[${dm.join("")}]`, "g"), ym = RegExp(`[${sm.join("")}]`, "g"), bm = RegExp(`[${fm.join("")}]`), xm = RegExp(`[${pm.join("")}]`), Sm = /[٠١٢٣٤٥٦٧٨٩]/, Cm = /[۰۱۲۳۴۵۶۷۸۹]/, wm = /[零〇一二三四五六七八九]/, Tm = RegExp(`[${dm.join("")}]`), Em = [
5943
5946
  ".",
5944
5947
  ",",
5945
5948
  ".",
5946
5949
  ",",
5947
5950
  "٫",
5948
5951
  "٬"
5949
- ], wm = /\p{Zs}/u, Tm = ["+", ...fm], Em = ["-", ...dm], Dm = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Om = (e) => e.replace(/[-\\\]^]/g, (e) => `\\${e}`), km = (e) => `[${e.map(Om).join("")}]`, Am = km(["-"].concat(dm)), jm = km(["+"].concat(fm)), Mm = new RegExp(Am, "gu"), Nm = new RegExp(jm, "gu"), Pm = new RegExp(Am), Fm = new RegExp(jm);
5950
- function Im(e, t) {
5951
- let n = Qp(e, t).formatToParts(11111.1), r = {};
5952
+ ], Dm = /\p{Zs}/u, Om = ["+", ...hm], km = ["-", ...mm], Am = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), jm = (e) => e.replace(/[-\\\]^]/g, (e) => `\\${e}`), Mm = (e) => `[${e.map(jm).join("")}]`, Nm = Mm(["-"].concat(mm)), Pm = Mm(["+"].concat(hm)), Fm = new RegExp(Nm, "gu"), Im = new RegExp(Pm, "gu"), Lm = new RegExp(Nm), Rm = new RegExp(Pm);
5953
+ function zm(e, t) {
5954
+ let n = tm(e, t).formatToParts(11111.1), r = {};
5952
5955
  return n.forEach((e) => {
5953
5956
  r[e.type] = e.value;
5954
- }), Qp(e).formatToParts(.1).forEach((e) => {
5957
+ }), tm(e).formatToParts(.1).forEach((e) => {
5955
5958
  e.type === "decimal" && (r[e.type] = e.value);
5956
5959
  }), r;
5957
5960
  }
5958
- function Lm(e, t, n) {
5961
+ function Bm(e, t, n) {
5959
5962
  if (e == null) return null;
5960
5963
  let r = String(e).replace(/\p{Cf}/gu, "").trim();
5961
- r = r.replace(Mm, "-").replace(Nm, "+");
5964
+ r = r.replace(Fm, "-").replace(Im, "+");
5962
5965
  let i = !1, a = r.match(/([+-])\s*$/);
5963
5966
  a && (a[1] === "-" && (i = !0), r = r.replace(/([+-])\s*$/, ""));
5964
5967
  let o = r.match(/^\s*([+-])/);
5965
5968
  o && (o[1] === "-" && (i = !0), r = r.replace(/^\s*[+-]/, ""));
5966
5969
  let s = t;
5967
- s === void 0 && (ym.test(r) || bm.test(r) ? s = "ar" : xm.test(r) && (s = "zh"));
5968
- let { group: c, decimal: l, currency: u } = Im(s, n), d = Qp(s, n).formatToParts(1).filter((e) => e.type === "unit").map((e) => Dm(e.value)), f = d.length ? new RegExp(d.join("|"), "g") : null, p = null;
5969
- c && (p = /\p{Zs}/u.test(c) ? /\p{Zs}/gu : c === "'" || c === "’" ? /['’]/g : new RegExp(Dm(c), "g"));
5970
+ s === void 0 && (Sm.test(r) || Cm.test(r) ? s = "ar" : wm.test(r) && (s = "zh"));
5971
+ let { group: c, decimal: l, currency: u } = zm(s, n), d = tm(s, n).formatToParts(1).filter((e) => e.type === "unit").map((e) => Am(e.value)), f = d.length ? new RegExp(d.join("|"), "g") : null, p = null;
5972
+ c && (p = /\p{Zs}/u.test(c) ? /\p{Zs}/gu : c === "'" || c === "’" ? /['’]/g : new RegExp(Am(c), "g"));
5970
5973
  let m = [
5971
5974
  {
5972
5975
  regex: c ? p : null,
5973
5976
  replacement: ""
5974
5977
  },
5975
5978
  {
5976
- regex: l ? new RegExp(Dm(l), "g") : null,
5979
+ regex: l ? new RegExp(Am(l), "g") : null,
5977
5980
  replacement: "."
5978
5981
  },
5979
5982
  {
@@ -5993,7 +5996,7 @@ function Lm(e, t, n) {
5993
5996
  replacement: ""
5994
5997
  },
5995
5998
  {
5996
- regex: u ? new RegExp(Dm(u), "g") : null,
5999
+ regex: u ? new RegExp(Am(u), "g") : null,
5997
6000
  replacement: ""
5998
6001
  },
5999
6002
  {
@@ -6001,63 +6004,63 @@ function Lm(e, t, n) {
6001
6004
  replacement: ""
6002
6005
  },
6003
6006
  {
6004
- regex: pm,
6005
- replacement: (e) => String(om.indexOf(e))
6007
+ regex: gm,
6008
+ replacement: (e) => String(lm.indexOf(e))
6006
6009
  },
6007
6010
  {
6008
- regex: mm,
6009
- replacement: (e) => String(sm.indexOf(e))
6011
+ regex: _m,
6012
+ replacement: (e) => String(um.indexOf(e))
6010
6013
  },
6011
6014
  {
6012
- regex: hm,
6013
- replacement: (e) => String(cm.indexOf(e))
6015
+ regex: vm,
6016
+ replacement: (e) => String(dm.indexOf(e))
6014
6017
  },
6015
6018
  {
6016
- regex: gm,
6017
- replacement: (e) => am[e]
6019
+ regex: ym,
6020
+ replacement: (e) => cm[e]
6018
6021
  }
6019
6022
  ].reduce((e, { regex: t, replacement: n }) => t ? e.replace(t, n) : e, r), h = m.lastIndexOf(".");
6020
6023
  if (h !== -1 && (m = `${m.slice(0, h).replace(/\./g, "")}.${m.slice(h + 1).replace(/\./g, "")}`), /^[-+]?Infinity$/i.test(r) || /[∞]/.test(r)) return null;
6021
- let g = (i ? "-" : "") + m, _ = parseFloat(g), v = n?.style, y = v === "unit" && n?.unit === "percent", b = _m.test(e) || v === "percent";
6022
- return vm.test(e) ? _ /= 1e3 : !y && b && (_ /= 100), Number.isNaN(_) ? null : _;
6024
+ let g = (i ? "-" : "") + m, _ = parseFloat(g), v = n?.style, y = v === "unit" && n?.unit === "percent", b = bm.test(e) || v === "percent";
6025
+ return xm.test(e) ? _ /= 1e3 : !y && b && (_ /= 100), Number.isNaN(_) ? null : _;
6023
6026
  }
6024
6027
  //#endregion
6025
6028
  //#region node_modules/@base-ui/react/esm/number-field/utils/validate.js
6026
- var Rm = 1e-10;
6027
- function zm(e) {
6028
- let t = Qp("en-US").resolvedOptions(), n = e?.minimumFractionDigits ?? t.minimumFractionDigits ?? 0;
6029
+ var Vm = 1e-10;
6030
+ function Hm(e) {
6031
+ let t = tm("en-US").resolvedOptions(), n = e?.minimumFractionDigits ?? t.minimumFractionDigits ?? 0;
6029
6032
  return {
6030
6033
  maximumFractionDigits: Math.max(e?.maximumFractionDigits ?? t.maximumFractionDigits ?? 20, n),
6031
6034
  minimumFractionDigits: n
6032
6035
  };
6033
6036
  }
6034
- function Bm(e, t) {
6037
+ function Um(e, t) {
6035
6038
  if (!Number.isFinite(e)) return e;
6036
6039
  let n = Math.min(Math.max(t, 0), 20);
6037
6040
  return Number(e.toFixed(n));
6038
6041
  }
6039
- function Vm(e, t) {
6040
- let { maximumFractionDigits: n } = zm(t);
6041
- return Bm(e, n);
6042
+ function Wm(e, t) {
6043
+ let { maximumFractionDigits: n } = Hm(t);
6044
+ return Um(e, n);
6042
6045
  }
6043
- function Hm(e, t, n, r = "directional") {
6046
+ function Gm(e, t, n, r = "directional") {
6044
6047
  if (n === 0) return e;
6045
- let i = Math.abs(n), a = Math.sign(n), o = i * Rm * a, s = r === "nearest" ? n : i, c = (e - t + o) / s, l;
6048
+ let i = Math.abs(n), a = Math.sign(n), o = i * Vm * a, s = r === "nearest" ? n : i, c = (e - t + o) / s, l;
6046
6049
  return l = r === "nearest" ? Math.round(c) : a > 0 ? Math.floor(c) : Math.ceil(c), t + l * (r === "nearest" ? n : i);
6047
6050
  }
6048
- function Um(e, { step: t, minWithDefault: n, maxWithDefault: r, minWithZeroDefault: i, format: a, snapOnStep: o, small: s, clamp: c }) {
6051
+ function Km(e, { step: t, minWithDefault: n, maxWithDefault: r, minWithZeroDefault: i, format: a, snapOnStep: o, small: s, clamp: c }) {
6049
6052
  if (e === null) return e;
6050
- let l = c ? Xp(e, n, r) : e;
6053
+ let l = c ? $p(e, n, r) : e;
6051
6054
  if (t != null && o) {
6052
- if (t === 0) return Vm(l, a);
6055
+ if (t === 0) return Wm(l, a);
6053
6056
  let e = i;
6054
- return !s && n !== -(2 ** 53 - 1) && (e = n), Vm(Hm(l, e, t, s ? "nearest" : "directional"), a);
6057
+ return !s && n !== -(2 ** 53 - 1) && (e = n), Wm(Gm(l, e, t, s ? "nearest" : "directional"), a);
6055
6058
  }
6056
- return Vm(l, a);
6059
+ return Wm(l, a);
6057
6060
  }
6058
6061
  //#endregion
6059
6062
  //#region node_modules/@base-ui/react/esm/number-field/root/NumberFieldRoot.js
6060
- var Wm = /* @__PURE__ */ z.forwardRef(function(e, t) {
6063
+ var qm = /* @__PURE__ */ z.forwardRef(function(e, t) {
6061
6064
  let { id: n, min: r, max: i, smallStep: a = .1, step: o = 1, largeStep: s = 10, required: c = !1, disabled: l = !1, readOnly: u = !1, form: d, name: f, defaultValue: p, value: h, onValueChange: g, onValueCommitted: _, allowWheelScrub: y = !1, snapOnStep: x = !1, allowOutOfRange: C = !1, format: T, locale: O, render: k, className: j, inputRef: M, style: ee, ...te } = e, { setDirty: P, validityData: re, disabled: ae, setFilled: oe, invalid: se, name: ce, state: le, validation: de, shouldValidateOnChange: fe } = we(), pe = ae || l, me = ce ?? f, ge = o === "any" ? 1 : o, [_e, ve] = z.useState(!1), ye = r ?? -(2 ** 53 - 1), be = i ?? 2 ** 53 - 1, xe = r ?? 0, Se = T?.style, Te = z.useRef(null), Ee = he(M, de.inputRef), De = ie({ id: n }), [Oe, ke] = A({
6062
6065
  controlled: h,
6063
6066
  default: p,
@@ -6067,15 +6070,15 @@ var Wm = /* @__PURE__ */ z.forwardRef(function(e, t) {
6067
6070
  ne(() => {
6068
6071
  oe(I !== null);
6069
6072
  }, [oe, I]);
6070
- let je = Yp(), Me = v(T), Ne = z.useRef(!1), Pe = F((e, t) => {
6073
+ let je = Qp(), Me = v(T), Ne = z.useRef(!1), Pe = F((e, t) => {
6071
6074
  Ne.current = !1, _?.(e, t);
6072
- }), Fe = z.useRef(!0), Ie = z.useRef(null), [L, Le] = z.useState(() => h === void 0 ? $p(I, O, T) : Gm(I, O, T)), [Re, R] = z.useState("numeric"), ze = F(() => {
6073
- let { decimal: e, group: t, currency: n, literal: r } = Im(O, T), i = /* @__PURE__ */ new Set();
6074
- Cm.forEach((e) => i.add(e)), e && i.add(e), t && (i.add(t), wm.test(t) && i.add(" "));
6075
+ }), Fe = z.useRef(!0), Ie = z.useRef(null), [L, Le] = z.useState(() => h === void 0 ? nm(I, O, T) : Jm(I, O, T)), [Re, R] = z.useState("numeric"), ze = F(() => {
6076
+ let { decimal: e, group: t, currency: n, literal: r } = zm(O, T), i = /* @__PURE__ */ new Set();
6077
+ Em.forEach((e) => i.add(e)), e && i.add(e), t && (i.add(t), Dm.test(t) && i.add(" "));
6075
6078
  let a = Se === "percent" || Se === "unit" && T?.unit === "percent", o = Se === "percent" || Se === "unit" && T?.unit === "permille";
6076
- return a && lm.forEach((e) => i.add(e)), o && um.forEach((e) => i.add(e)), Se === "currency" && n && i.add(n), r && (Array.from(r).forEach((e) => i.add(e)), wm.test(r) && i.add(" ")), Tm.forEach((e) => i.add(e)), ye < 0 && Em.forEach((e) => i.add(e)), i;
6079
+ return a && fm.forEach((e) => i.add(e)), o && pm.forEach((e) => i.add(e)), Se === "currency" && n && i.add(n), r && (Array.from(r).forEach((e) => i.add(e)), Dm.test(r) && i.add(" ")), Om.forEach((e) => i.add(e)), ye < 0 && km.forEach((e) => i.add(e)), i;
6077
6080
  }), Be = F((e) => e?.altKey ? a : e?.shiftKey ? s : ge), Ve = F((e, t) => {
6078
- let n = t.event, r = t.direction, i = t.reason, a = !C || !(i === "input-change" || i === "input-blur" || i === "input-paste" || i === "input-clear" || i === "none"), o = Um(e, {
6081
+ let n = t.event, r = t.direction, i = t.reason, a = !C || !(i === "input-change" || i === "input-blur" || i === "input-paste" || i === "input-clear" || i === "none"), o = Km(e, {
6079
6082
  step: r ? Be(n) * r : void 0,
6080
6083
  format: Me.current,
6081
6084
  minWithDefault: ye,
@@ -6089,14 +6092,14 @@ var Wm = /* @__PURE__ */ z.forwardRef(function(e, t) {
6089
6092
  if (Ie.current = o, g?.(o, t), t.isCanceled) return c;
6090
6093
  ke(o), P(o !== re.initialValue), Ne.current = !0;
6091
6094
  }
6092
- return Fe.current && Le($p(o, O, T)), je(), c;
6095
+ return Fe.current && Le(nm(o, O, T)), je(), c;
6093
6096
  }), He = F((e, { direction: t, currentValue: n, event: i, reason: a }) => {
6094
6097
  let o = n ?? Ae.current;
6095
6098
  return Ve(typeof o == "number" ? o + e * t : Math.max(0, r ?? 0), S(a, i, void 0, { direction: t }));
6096
6099
  });
6097
6100
  ne(function() {
6098
6101
  if (!Fe.current) return;
6099
- let e = h === void 0 ? $p(I, O, T) : Gm(I, O, T);
6102
+ let e = h === void 0 ? nm(I, O, T) : Jm(I, O, T);
6100
6103
  e !== L && Le(e);
6101
6104
  }), ne(function() {
6102
6105
  if (!D) return;
@@ -6198,9 +6201,9 @@ var Wm = /* @__PURE__ */ z.forwardRef(function(e, t) {
6198
6201
  ref: t,
6199
6202
  state: Ue,
6200
6203
  props: te,
6201
- stateAttributesMapping: rm
6204
+ stateAttributesMapping: om
6202
6205
  });
6203
- return /* @__PURE__ */ U(tm.Provider, {
6206
+ return /* @__PURE__ */ U(im.Provider, {
6204
6207
  value: We,
6205
6208
  children: [Ge, /* @__PURE__ */ H("input", {
6206
6209
  ...de.getInputValidationProps({
@@ -6230,25 +6233,25 @@ var Wm = /* @__PURE__ */ z.forwardRef(function(e, t) {
6230
6233
  })]
6231
6234
  });
6232
6235
  });
6233
- process.env.NODE_ENV !== "production" && (Wm.displayName = "NumberFieldRoot");
6234
- function Gm(e, t, n) {
6235
- return n?.maximumFractionDigits != null || n?.minimumFractionDigits != null ? $p(e, t, n) : em(e, t, n);
6236
+ process.env.NODE_ENV !== "production" && (qm.displayName = "NumberFieldRoot");
6237
+ function Jm(e, t, n) {
6238
+ return n?.maximumFractionDigits != null || n?.minimumFractionDigits != null ? nm(e, t, n) : rm(e, t, n);
6236
6239
  }
6237
6240
  //#endregion
6238
6241
  //#region node_modules/@base-ui/react/esm/number-field/group/NumberFieldGroup.js
6239
- var Km = /* @__PURE__ */ z.forwardRef(function(e, t) {
6240
- let { render: n, className: r, style: i, ...a } = e, { state: o } = nm();
6242
+ var Ym = /* @__PURE__ */ z.forwardRef(function(e, t) {
6243
+ let { render: n, className: r, style: i, ...a } = e, { state: o } = am();
6241
6244
  return w("div", e, {
6242
6245
  ref: t,
6243
6246
  state: o,
6244
6247
  props: [{ role: "group" }, a],
6245
- stateAttributesMapping: rm
6248
+ stateAttributesMapping: om
6246
6249
  });
6247
6250
  });
6248
- process.env.NODE_ENV !== "production" && (Km.displayName = "NumberFieldGroup");
6251
+ process.env.NODE_ENV !== "production" && (Ym.displayName = "NumberFieldGroup");
6249
6252
  //#endregion
6250
6253
  //#region node_modules/@base-ui/utils/esm/useInterval.js
6251
- var qm = 0, Jm = class e extends _ {
6254
+ var Xm = 0, Zm = class e extends _ {
6252
6255
  static create() {
6253
6256
  return new e();
6254
6257
  }
@@ -6258,21 +6261,21 @@ var qm = 0, Jm = class e extends _ {
6258
6261
  }, e);
6259
6262
  }
6260
6263
  clear = () => {
6261
- this.currentId !== qm && (clearInterval(this.currentId), this.currentId = qm);
6264
+ this.currentId !== Xm && (clearInterval(this.currentId), this.currentId = Xm);
6262
6265
  };
6263
6266
  };
6264
- function Ym() {
6265
- let e = re(Jm.create).current;
6267
+ function Qm() {
6268
+ let e = re(Zm.create).current;
6266
6269
  return y(e.disposeEffect), e;
6267
6270
  }
6268
6271
  //#endregion
6269
6272
  //#region node_modules/@base-ui/react/esm/internals/usePressAndHold.js
6270
- var Xm = 60, Zm = 400, Qm = 8, $m = 50, eh = 3;
6271
- function th(e) {
6273
+ var $m = 60, eh = 400, th = 8, nh = 50, rh = 3;
6274
+ function ih(e) {
6272
6275
  return e === "touch" || e === "pen";
6273
6276
  }
6274
- function nh(e) {
6275
- let { disabled: t, readOnly: n = !1, tick: r, onStop: i, tickDelay: a = Xm, startDelay: o = Zm, scrollDistance: s = Qm, elementRef: c } = e, l = O(), u = Ym(), d = O(), f = z.useRef(!1), p = z.useRef(0), m = z.useRef({
6277
+ function ah(e) {
6278
+ let { disabled: t, readOnly: n = !1, tick: r, onStop: i, tickDelay: a = $m, startDelay: o = eh, scrollDistance: s = th, elementRef: c } = e, l = O(), u = Qm(), d = O(), f = z.useRef(!1), p = z.useRef(0), m = z.useRef({
6276
6279
  x: 0,
6277
6280
  y: 0
6278
6281
  }), h = z.useRef(!1), g = z.useRef(!1), _ = z.useRef(""), v = z.useRef(() => {}), y = F(() => {
@@ -6310,22 +6313,22 @@ function nh(e) {
6310
6313
  e.defaultPrevented || !r || t || n || (_.current = e.pointerType, g.current = !1, f.current = !0, m.current = {
6311
6314
  x: e.clientX,
6312
6315
  y: e.clientY
6313
- }, th(e.pointerType) ? d.start($m, () => {
6316
+ }, ih(e.pointerType) ? d.start(nh, () => {
6314
6317
  let t = p.current;
6315
- p.current = 0, f.current && t < eh ? (b(e.nativeEvent), g.current = !0) : (g.current = !1, y());
6318
+ p.current = 0, f.current && t < rh ? (b(e.nativeEvent), g.current = !0) : (g.current = !1, y());
6316
6319
  }) : (e.preventDefault(), b(e.nativeEvent)));
6317
6320
  },
6318
6321
  onPointerUp(e) {
6319
- th(e.pointerType) && (f.current = !1);
6322
+ ih(e.pointerType) && (f.current = !1);
6320
6323
  },
6321
6324
  onPointerMove(e) {
6322
- if (t || n || !th(e.pointerType) || !f.current) return;
6325
+ if (t || n || !ih(e.pointerType) || !f.current) return;
6323
6326
  p.current != null && (p.current += 1);
6324
6327
  let { x: r, y: i } = m.current, a = r - e.clientX, o = i - e.clientY;
6325
6328
  a ** 2 + o ** 2 > s ** 2 && y();
6326
6329
  },
6327
6330
  onMouseEnter(e) {
6328
- e.defaultPrevented || t || n || !f.current || h.current || th(_.current) || b(e.nativeEvent);
6331
+ e.defaultPrevented || t || n || !f.current || h.current || ih(_.current) || b(e.nativeEvent);
6329
6332
  },
6330
6333
  onMouseLeave() {
6331
6334
  h.current || y();
@@ -6334,22 +6337,22 @@ function nh(e) {
6334
6337
  h.current || y();
6335
6338
  }
6336
6339
  },
6337
- shouldSkipClick: F((e) => e.defaultPrevented ? !0 : th(_.current) ? g.current : e.detail !== 0)
6340
+ shouldSkipClick: F((e) => e.defaultPrevented ? !0 : ih(_.current) ? g.current : e.detail !== 0)
6338
6341
  };
6339
6342
  }
6340
6343
  //#endregion
6341
6344
  //#region node_modules/@base-ui/react/esm/number-field/root/useNumberFieldButton.js
6342
- function rh(e) {
6345
+ function oh(e) {
6343
6346
  return e === "touch" || e === "pen";
6344
6347
  }
6345
- function ih(e) {
6348
+ function sh(e) {
6346
6349
  let { allowInputSyncRef: t, disabled: n, formatOptionsRef: r, getStepAmount: i, id: a, incrementValue: o, inputRef: s, inputValue: c, isIncrement: l, locale: u, readOnly: d, setValue: f, valueRef: p, lastChangedValueRef: m, onValueCommitted: h } = e, g = l ? Ee : j;
6347
6350
  function _(e) {
6348
6351
  t.current = !0;
6349
- let n = Lm(c, u, r.current);
6352
+ let n = Bm(c, u, r.current);
6350
6353
  n !== null && (p.current = n, f(n, S(g, e, void 0, { direction: l ? 1 : -1 })));
6351
6354
  }
6352
- let { pointerHandlers: v, shouldSkipClick: y } = nh({
6355
+ let { pointerHandlers: v, shouldSkipClick: y } = ah({
6353
6356
  disabled: n || d,
6354
6357
  elementRef: s,
6355
6358
  tickDelay: 60,
@@ -6392,14 +6395,14 @@ function ih(e) {
6392
6395
  },
6393
6396
  onPointerDown(e) {
6394
6397
  let t = !e.button || e.button === 0;
6395
- e.defaultPrevented || d || !t || n || (_(e.nativeEvent), rh(e.pointerType) || s.current?.focus(), v.onPointerDown(e));
6398
+ e.defaultPrevented || d || !t || n || (_(e.nativeEvent), oh(e.pointerType) || s.current?.focus(), v.onPointerDown(e));
6396
6399
  }
6397
6400
  };
6398
6401
  }
6399
6402
  //#endregion
6400
6403
  //#region node_modules/@base-ui/react/esm/number-field/increment/NumberFieldIncrement.js
6401
- var ah = /* @__PURE__ */ z.forwardRef(function(e, t) {
6402
- let { render: n, className: r, disabled: i = !1, nativeButton: a = !0, style: o, ...s } = e, { allowInputSyncRef: c, disabled: l, formatOptionsRef: u, getStepAmount: d, id: f, incrementValue: p, inputRef: m, inputValue: h, locale: g, maxWithDefault: _, readOnly: v, setValue: y, state: b, value: x, valueRef: S, lastChangedValueRef: C, onValueCommitted: T } = nm(), E = i || l || x != null && x >= _, D = ih({
6404
+ var ch = /* @__PURE__ */ z.forwardRef(function(e, t) {
6405
+ let { render: n, className: r, disabled: i = !1, nativeButton: a = !0, style: o, ...s } = e, { allowInputSyncRef: c, disabled: l, formatOptionsRef: u, getStepAmount: d, id: f, incrementValue: p, inputRef: m, inputValue: h, locale: g, maxWithDefault: _, readOnly: v, setValue: y, state: b, value: x, valueRef: S, lastChangedValueRef: C, onValueCommitted: T } = am(), E = i || l || x != null && x >= _, D = sh({
6403
6406
  isIncrement: !0,
6404
6407
  inputRef: m,
6405
6408
  inputValue: h,
@@ -6431,14 +6434,14 @@ var ah = /* @__PURE__ */ z.forwardRef(function(e, t) {
6431
6434
  s,
6432
6435
  O
6433
6436
  ],
6434
- stateAttributesMapping: rm
6437
+ stateAttributesMapping: om
6435
6438
  });
6436
6439
  });
6437
- process.env.NODE_ENV !== "production" && (ah.displayName = "NumberFieldIncrement");
6440
+ process.env.NODE_ENV !== "production" && (ch.displayName = "NumberFieldIncrement");
6438
6441
  //#endregion
6439
6442
  //#region node_modules/@base-ui/react/esm/number-field/decrement/NumberFieldDecrement.js
6440
- var oh = /* @__PURE__ */ z.forwardRef(function(e, t) {
6441
- let { render: n, className: r, disabled: i = !1, nativeButton: a = !0, style: o, ...s } = e, { allowInputSyncRef: c, disabled: l, formatOptionsRef: u, getStepAmount: d, id: f, incrementValue: p, inputRef: m, inputValue: h, minWithDefault: g, readOnly: _, setValue: v, state: y, value: b, valueRef: x, locale: S, lastChangedValueRef: C, onValueCommitted: T } = nm(), E = i || l || b != null && b <= g, D = ih({
6443
+ var lh = /* @__PURE__ */ z.forwardRef(function(e, t) {
6444
+ let { render: n, className: r, disabled: i = !1, nativeButton: a = !0, style: o, ...s } = e, { allowInputSyncRef: c, disabled: l, formatOptionsRef: u, getStepAmount: d, id: f, incrementValue: p, inputRef: m, inputValue: h, minWithDefault: g, readOnly: _, setValue: v, state: y, value: b, valueRef: x, locale: S, lastChangedValueRef: C, onValueCommitted: T } = am(), E = i || l || b != null && b <= g, D = sh({
6442
6445
  isIncrement: !1,
6443
6446
  inputRef: m,
6444
6447
  inputValue: h,
@@ -6470,16 +6473,16 @@ var oh = /* @__PURE__ */ z.forwardRef(function(e, t) {
6470
6473
  s,
6471
6474
  O
6472
6475
  ],
6473
- stateAttributesMapping: rm
6476
+ stateAttributesMapping: om
6474
6477
  });
6475
6478
  });
6476
- process.env.NODE_ENV !== "production" && (oh.displayName = "NumberFieldDecrement");
6479
+ process.env.NODE_ENV !== "production" && (lh.displayName = "NumberFieldDecrement");
6477
6480
  //#endregion
6478
6481
  //#region node_modules/@base-ui/react/esm/number-field/input/NumberFieldInput.js
6479
- var sh = {
6482
+ var uh = {
6480
6483
  ...M,
6481
- ...rm
6482
- }, ch = new Set([
6484
+ ...om
6485
+ }, dh = new Set([
6483
6486
  "Backspace",
6484
6487
  "Delete",
6485
6488
  "ArrowLeft",
@@ -6487,8 +6490,8 @@ var sh = {
6487
6490
  "Tab",
6488
6491
  "Enter",
6489
6492
  "Escape"
6490
- ]), lh = /* @__PURE__ */ z.forwardRef(function(e, t) {
6491
- let { render: n, className: r, style: i, ...a } = e, { allowInputSyncRef: o, disabled: s, formatOptionsRef: c, getAllowedNonNumericKeys: l, getStepAmount: u, id: d, incrementValue: f, inputMode: p, inputValue: m, max: _, min: v, name: y, readOnly: b, required: C, setValue: E, state: D, setInputValue: O, locale: k, inputRef: A, value: j, onValueCommitted: M, lastChangedValueRef: N, hasPendingCommitRef: F, valueRef: ne } = nm(), { clearErrors: re } = Te(), { validationMode: ie, setTouched: ae, setFocused: se, invalid: ce, shouldValidateOnChange: ue, validation: de } = we(), { labelId: fe } = Se(), pe = z.useRef(!1), me = z.useRef(!1);
6493
+ ]), fh = /* @__PURE__ */ z.forwardRef(function(e, t) {
6494
+ let { render: n, className: r, style: i, ...a } = e, { allowInputSyncRef: o, disabled: s, formatOptionsRef: c, getAllowedNonNumericKeys: l, getStepAmount: u, id: d, incrementValue: f, inputMode: p, inputValue: m, max: _, min: v, name: y, readOnly: b, required: C, setValue: E, state: D, setInputValue: O, locale: k, inputRef: A, value: j, onValueCommitted: M, lastChangedValueRef: N, hasPendingCommitRef: F, valueRef: ne } = am(), { clearErrors: re } = Te(), { validationMode: ie, setTouched: ae, setFocused: se, invalid: ce, shouldValidateOnChange: ue, validation: de } = we(), { labelId: fe } = Se(), pe = z.useRef(!1), me = z.useRef(!1);
6492
6495
  return oe(A, {
6493
6496
  id: d,
6494
6497
  value: j
@@ -6534,12 +6537,12 @@ var sh = {
6534
6537
  E(null, S(x, e.nativeEvent)), ie === "onBlur" && de.commit(null), M(null, T(x, e.nativeEvent));
6535
6538
  return;
6536
6539
  }
6537
- let r = c.current, i = Lm(m, k, r);
6540
+ let r = c.current, i = Bm(m, k, r);
6538
6541
  if (i === null) return;
6539
6542
  let a = r?.maximumFractionDigits != null || r?.minimumFractionDigits != null, l = r?.maximumFractionDigits, u = a && typeof l == "number" ? Number(i.toFixed(l)) : i, d = T(h, e.nativeEvent), f = j !== u, p = t || f || n;
6540
6543
  ie === "onBlur" && de.commit(u), f && (me.current = !0, E(u, S(h, e.nativeEvent))), p && M(u, d);
6541
- let g = $p(u, k, r);
6542
- !(!a && i === j && m === em(i, k, r)) && m !== g && O(g);
6544
+ let g = nm(u, k, r);
6545
+ !(!a && i === j && m === rm(i, k, r)) && m !== g && O(g);
6543
6546
  },
6544
6547
  onChange(e) {
6545
6548
  if (e.nativeEvent.defaultPrevented) return;
@@ -6551,24 +6554,24 @@ var sh = {
6551
6554
  }
6552
6555
  let n = l();
6553
6556
  if (!Array.from(t).every((e) => {
6554
- let t = e >= "0" && e <= "9", r = ym.test(e), i = xm.test(e), a = bm.test(e), o = Sm.test(e), s = Pm.test(e);
6557
+ let t = e >= "0" && e <= "9", r = Sm.test(e), i = wm.test(e), a = Cm.test(e), o = Tm.test(e), s = Lm.test(e);
6555
6558
  return t || r || i || a || o || s || n.has(e);
6556
6559
  })) return;
6557
- let r = Lm(t, k, c.current);
6560
+ let r = Bm(t, k, c.current);
6558
6561
  O(t), r !== null && E(r, S(te, e.nativeEvent));
6559
6562
  },
6560
6563
  onKeyDown(e) {
6561
6564
  if (e.defaultPrevented || b || s) return;
6562
6565
  let t = e.nativeEvent;
6563
6566
  o.current = !0;
6564
- let n = l(), r = n.has(e.key), { decimal: i, currency: a, percentSign: d } = Im(k, c.current), p = e.currentTarget.selectionStart, h = e.currentTarget.selectionEnd, g = p === 0 && h === m.length, y = (e) => p != null && h != null && e >= p && e < h;
6565
- if (Pm.test(e.key) && Array.from(n).some((e) => Pm.test(e || ""))) {
6566
- let e = m.search(Mm), t = e != null && e !== -1 && y(e);
6567
- r = !(Pm.test(m) || Fm.test(m)) || g || t;
6567
+ let n = l(), r = n.has(e.key), { decimal: i, currency: a, percentSign: d } = zm(k, c.current), p = e.currentTarget.selectionStart, h = e.currentTarget.selectionEnd, g = p === 0 && h === m.length, y = (e) => p != null && h != null && e >= p && e < h;
6568
+ if (Lm.test(e.key) && Array.from(n).some((e) => Lm.test(e || ""))) {
6569
+ let e = m.search(Fm), t = e != null && e !== -1 && y(e);
6570
+ r = !(Lm.test(m) || Rm.test(m)) || g || t;
6568
6571
  }
6569
- if (Fm.test(e.key) && Array.from(n).some((e) => Fm.test(e || ""))) {
6570
- let e = m.search(Nm), t = e != null && e !== -1 && y(e);
6571
- r = !(Pm.test(m) || Fm.test(m)) || g || t;
6572
+ if (Rm.test(e.key) && Array.from(n).some((e) => Rm.test(e || ""))) {
6573
+ let e = m.search(Im), t = e != null && e !== -1 && y(e);
6574
+ r = !(Lm.test(m) || Rm.test(m)) || g || t;
6572
6575
  }
6573
6576
  [
6574
6577
  i,
@@ -6580,9 +6583,9 @@ var sh = {
6580
6583
  r = !m.includes(t) || g || e;
6581
6584
  }
6582
6585
  });
6583
- let x = e.key >= "0" && e.key <= "9", C = ym.test(e.key), w = xm.test(e.key), D = Sm.test(e.key), O = ch.has(e.key);
6586
+ let x = e.key >= "0" && e.key <= "9", C = Sm.test(e.key), w = wm.test(e.key), D = Tm.test(e.key), O = dh.has(e.key);
6584
6587
  if (e.which === 229 || e.altKey || e.ctrlKey || e.metaKey || r || x || C || D || w || O) return;
6585
- let A = Lm(m, k, c.current), j = u(e) ?? 1;
6588
+ let A = Bm(m, k, c.current), j = u(e) ?? 1;
6586
6589
  le(e);
6587
6590
  let ee = T(P, t);
6588
6591
  e.key === "ArrowUp" ? (f(j, {
@@ -6600,23 +6603,23 @@ var sh = {
6600
6603
  onPaste(e) {
6601
6604
  if (e.defaultPrevented || b || s) return;
6602
6605
  e.preventDefault();
6603
- let t = (e.clipboardData || window.Clipboard).getData("text/plain"), n = Lm(t, k, c.current);
6606
+ let t = (e.clipboardData || window.Clipboard).getData("text/plain"), n = Bm(t, k, c.current);
6604
6607
  n !== null && (o.current = !1, E(n, S(ee, e.nativeEvent)), O(t));
6605
6608
  }
6606
6609
  },
6607
6610
  de.getValidationProps(),
6608
6611
  a
6609
6612
  ],
6610
- stateAttributesMapping: sh
6613
+ stateAttributesMapping: uh
6611
6614
  });
6612
6615
  });
6613
- process.env.NODE_ENV !== "production" && (lh.displayName = "NumberFieldInput");
6616
+ process.env.NODE_ENV !== "production" && (fh.displayName = "NumberFieldInput");
6614
6617
  //#endregion
6615
6618
  //#region src/base/form/fields/EntityPickerField.tsx
6616
- function uh(e) {
6619
+ function ph(e) {
6617
6620
  return e.split(/\s+/).slice(0, 2).map((e) => e[0]?.toUpperCase() ?? "").join("");
6618
6621
  }
6619
- function dh({ id: e, value: t, onChange: n, options: r, initialOption: i, autocompleteHref: a, autocompleteMinChars: o = 2, entityAvatarField: s, entitySubtitleField: c, placeholder: l, disabled: u, required: d, error: f, helpTextId: p, errorId: m }) {
6622
+ function mh({ id: e, value: t, onChange: n, options: r, initialOption: i, autocompleteHref: a, autocompleteMinChars: o = 2, entityAvatarField: s, entitySubtitleField: c, placeholder: l, disabled: u, required: d, error: f, helpTextId: p, errorId: m }) {
6620
6623
  let { t: h } = De(), [g, _] = V(i && t && i.value === t ? i.label : ""), [v, y] = V([]), [b, x] = V(!1), S = gt(void 0), C = !!a, w = [f ? m : void 0, p].filter(Boolean).join(" ") || void 0, T = ht(() => [], []), E = ht(() => r ?? T, [r, T]);
6621
6624
  pt(() => {
6622
6625
  if (C) return S.current && clearTimeout(S.current), g.length < o ? (S.current = setTimeout(() => y([]), 0), () => {
@@ -6686,14 +6689,14 @@ function dh({ id: e, value: t, onChange: n, options: r, initialOption: i, autoco
6686
6689
  }), /* @__PURE__ */ H(ce, { children: k.map((e) => /* @__PURE__ */ U(xe, {
6687
6690
  value: e.value,
6688
6691
  className: "flex items-center gap-2.5 px-3 py-2",
6689
- children: [M && /* @__PURE__ */ U(Kp, {
6692
+ children: [M && /* @__PURE__ */ U(Yp, {
6690
6693
  className: "h-7 w-7 shrink-0",
6691
- children: [e.avatarUrl && /* @__PURE__ */ H(qp, {
6694
+ children: [e.avatarUrl && /* @__PURE__ */ H(Xp, {
6692
6695
  src: e.avatarUrl,
6693
6696
  alt: e.label
6694
- }), /* @__PURE__ */ H(Jp, {
6697
+ }), /* @__PURE__ */ H(Zp, {
6695
6698
  className: "text-[10px]",
6696
- children: uh(e.label)
6699
+ children: ph(e.label)
6697
6700
  })]
6698
6701
  }), /* @__PURE__ */ U("div", {
6699
6702
  className: "min-w-0 flex-1",
@@ -6710,7 +6713,7 @@ function dh({ id: e, value: t, onChange: n, options: r, initialOption: i, autoco
6710
6713
  }
6711
6714
  //#endregion
6712
6715
  //#region src/lib/hooks/use-file-upload.ts
6713
- var fh = (e = {}) => {
6716
+ var hh = (e = {}) => {
6714
6717
  let { maxFiles: t = Infinity, maxSize: n = Infinity, accept: r = "*", multiple: i = !1, initialFiles: a = [], onFilesChange: o, onFilesAdded: s, onError: c } = e, [l, u] = V({
6715
6718
  files: a.map((e) => ({
6716
6719
  file: e,
@@ -6721,8 +6724,8 @@ var fh = (e = {}) => {
6721
6724
  errors: []
6722
6725
  }), d = gt(null), f = B((e) => {
6723
6726
  if (e instanceof File) {
6724
- if (e.size > n) return `File "${e.name}" exceeds the maximum size of ${ph(n)}.`;
6725
- } else if (e.size > n) return `File "${e.name}" exceeds the maximum size of ${ph(n)}.`;
6727
+ if (e.size > n) return `File "${e.name}" exceeds the maximum size of ${gh(n)}.`;
6728
+ } else if (e.size > n) return `File "${e.name}" exceeds the maximum size of ${gh(n)}.`;
6726
6729
  if (r !== "*") {
6727
6730
  let t = r.split(",").map((e) => e.trim()), n = e instanceof File ? e.type || "" : e.type, i = `.${e instanceof File, e.name.split(".").pop()}`;
6728
6731
  if (!t.some((e) => {
@@ -6763,7 +6766,7 @@ var fh = (e = {}) => {
6763
6766
  for (let e of r) {
6764
6767
  if (i && l.files.some((t) => t.file.name === e.name && t.file.size === e.size)) return;
6765
6768
  if (e.size > n) {
6766
- a.push(i ? `Some files exceed the maximum size of ${ph(n)}.` : `File exceeds the maximum size of ${ph(n)}.`);
6769
+ a.push(i ? `Some files exceed the maximum size of ${gh(n)}.` : `File exceeds the maximum size of ${gh(n)}.`);
6767
6770
  continue;
6768
6771
  }
6769
6772
  let t = f(e);
@@ -6862,7 +6865,7 @@ var fh = (e = {}) => {
6862
6865
  C
6863
6866
  ])
6864
6867
  }];
6865
- }, ph = (e, t = 2) => {
6868
+ }, gh = (e, t = 2) => {
6866
6869
  if (e === 0) return "0 Bytes";
6867
6870
  let n = 1024, r = t < 0 ? 0 : t, i = [
6868
6871
  "Bytes",
@@ -6879,21 +6882,21 @@ var fh = (e = {}) => {
6879
6882
  };
6880
6883
  //#endregion
6881
6884
  //#region src/base/form/fields/FileUploadField.tsx
6882
- function mh(e) {
6885
+ function _h(e) {
6883
6886
  let t = e.split(/[?#]/)[0], n = t.split("/");
6884
6887
  return n[n.length - 1] || t;
6885
6888
  }
6886
- function hh(e) {
6889
+ function vh(e) {
6887
6890
  if (e == null || e === "") return null;
6888
6891
  if (typeof e == "string") return {
6889
- name: mh(e),
6892
+ name: _h(e),
6890
6893
  size: 0,
6891
6894
  type: "",
6892
6895
  url: e,
6893
6896
  id: e
6894
6897
  };
6895
6898
  if (typeof e == "object" && !(e instanceof File)) {
6896
- let t = e, n = typeof t.url == "string" ? t.url : "", r = typeof t.name == "string" ? t.name : n ? mh(n) : "";
6899
+ let t = e, n = typeof t.url == "string" ? t.url : "", r = typeof t.name == "string" ? t.name : n ? _h(n) : "";
6897
6900
  return !n && !r ? null : {
6898
6901
  name: r,
6899
6902
  size: typeof t.size == "number" ? t.size : 0,
@@ -6904,11 +6907,11 @@ function hh(e) {
6904
6907
  }
6905
6908
  return null;
6906
6909
  }
6907
- function gh(e) {
6908
- return (Array.isArray(e) ? e : [e]).map(hh).filter((e) => e !== null);
6910
+ function yh(e) {
6911
+ return (Array.isArray(e) ? e : [e]).map(vh).filter((e) => e !== null);
6909
6912
  }
6910
- function _h({ id: e, value: t, onChange: n, accept: r = "*", multiple: i = !1, maxFiles: a = 10, maxSize: o = 10 * 1024 * 1024, disabled: s, required: c, error: l, helpTextId: u, errorId: f }) {
6911
- let { t: p } = De(), [m] = V(() => gh(t)), [{ files: h, isDragging: g, errors: _ }, { removeFile: v, handleDragEnter: y, handleDragLeave: b, handleDragOver: x, handleDrop: S, openFileDialog: C, getInputProps: w }] = fh({
6913
+ function bh({ id: e, value: t, onChange: n, accept: r = "*", multiple: i = !1, maxFiles: a = 10, maxSize: o = 10 * 1024 * 1024, disabled: s, required: c, error: l, helpTextId: u, errorId: f }) {
6914
+ let { t: p } = De(), [m] = V(() => yh(t)), [{ files: h, isDragging: g, errors: _ }, { removeFile: v, handleDragEnter: y, handleDragLeave: b, handleDragOver: x, handleDrop: S, openFileDialog: C, getInputProps: w }] = hh({
6912
6915
  maxFiles: i ? a : 1,
6913
6916
  maxSize: o,
6914
6917
  accept: r,
@@ -6957,7 +6960,7 @@ function _h({ id: e, value: t, onChange: n, accept: r = "*", multiple: i = !1, m
6957
6960
  children: [
6958
6961
  p("middag.ui.form.file_max_size"),
6959
6962
  " ",
6960
- ph(o)
6963
+ gh(o)
6961
6964
  ]
6962
6965
  })
6963
6966
  ]
@@ -6984,7 +6987,7 @@ function _h({ id: e, value: t, onChange: n, accept: r = "*", multiple: i = !1, m
6984
6987
  children: e.file.name
6985
6988
  }), /* @__PURE__ */ H("p", {
6986
6989
  className: "text-muted-foreground text-xs",
6987
- children: ph(e.file.size)
6990
+ children: gh(e.file.size)
6988
6991
  })]
6989
6992
  }),
6990
6993
  /* @__PURE__ */ H(d, {
@@ -7018,10 +7021,10 @@ function _h({ id: e, value: t, onChange: n, accept: r = "*", multiple: i = !1, m
7018
7021
  }
7019
7022
  //#endregion
7020
7023
  //#region src/base/form/fields/MultiSelectField.tsx
7021
- var vh = 8;
7022
- function yh({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled: a, required: o, error: s, helpTextId: c, errorId: l, variant: u = "auto" }) {
7024
+ var xh = 8;
7025
+ function Sh({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled: a, required: o, error: s, helpTextId: c, errorId: l, variant: u = "auto" }) {
7023
7026
  let { t: d } = De(), f = t ?? [], p = [s ? l : void 0, c].filter(Boolean).join(" ") || void 0;
7024
- return u === "checkbox" || u === "auto" && r.length <= vh ? /* @__PURE__ */ H(bh, {
7027
+ return u === "checkbox" || u === "auto" && r.length <= xh ? /* @__PURE__ */ H(Ch, {
7025
7028
  id: e,
7026
7029
  options: r,
7027
7030
  selected: f,
@@ -7031,7 +7034,7 @@ function yh({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled
7031
7034
  error: s,
7032
7035
  describedBy: p,
7033
7036
  t: d
7034
- }) : /* @__PURE__ */ H(xh, {
7037
+ }) : /* @__PURE__ */ H(wh, {
7035
7038
  id: e,
7036
7039
  options: r,
7037
7040
  selected: f,
@@ -7044,7 +7047,7 @@ function yh({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled
7044
7047
  t: d
7045
7048
  });
7046
7049
  }
7047
- function bh({ id: e, options: t, selected: n, onChange: r, disabled: i, required: a, error: o, describedBy: s, t: c }) {
7050
+ function Ch({ id: e, options: t, selected: n, onChange: r, disabled: i, required: a, error: o, describedBy: s, t: c }) {
7048
7051
  let l = (e) => {
7049
7052
  n.includes(e) ? r(n.filter((t) => t !== e)) : r([...n, e]);
7050
7053
  };
@@ -7057,12 +7060,12 @@ function bh({ id: e, options: t, selected: n, onChange: r, disabled: i, required
7057
7060
  className: "border-input max-h-48 space-y-2 overflow-y-auto rounded-md border p-3",
7058
7061
  children: [t.map((t) => /* @__PURE__ */ U("div", {
7059
7062
  className: "flex items-center gap-2",
7060
- children: [/* @__PURE__ */ H(zp, {
7063
+ children: [/* @__PURE__ */ H(Hp, {
7061
7064
  id: `${e}-${t.value}`,
7062
7065
  checked: n.includes(t.value),
7063
7066
  onCheckedChange: () => l(t.value),
7064
7067
  disabled: i
7065
- }), /* @__PURE__ */ H(Vp, {
7068
+ }), /* @__PURE__ */ H(Wp, {
7066
7069
  htmlFor: `${e}-${t.value}`,
7067
7070
  className: "text-sm font-normal",
7068
7071
  children: t.label
@@ -7073,7 +7076,7 @@ function bh({ id: e, options: t, selected: n, onChange: r, disabled: i, required
7073
7076
  })]
7074
7077
  });
7075
7078
  }
7076
- function xh({ id: e, options: t, selected: n, onChange: r, placeholder: i, disabled: a, required: o, error: s, describedBy: c, t: l }) {
7079
+ function wh({ id: e, options: t, selected: n, onChange: r, placeholder: i, disabled: a, required: o, error: s, describedBy: c, t: l }) {
7077
7080
  let [u, d] = V(""), f = ht(() => {
7078
7081
  if (!u) return t;
7079
7082
  let e = u.toLowerCase();
@@ -7097,7 +7100,7 @@ function xh({ id: e, options: t, selected: n, onChange: r, placeholder: i, disab
7097
7100
  className: "space-y-2",
7098
7101
  children: [p.length > 0 && /* @__PURE__ */ H("div", {
7099
7102
  className: "flex flex-wrap gap-1.5",
7100
- children: p.map((e) => /* @__PURE__ */ U(Sp, {
7103
+ children: p.map((e) => /* @__PURE__ */ U(Tp, {
7101
7104
  variant: "secondary",
7102
7105
  className: "gap-1 pr-1",
7103
7106
  children: [e.label, /* @__PURE__ */ H("button", {
@@ -7142,7 +7145,7 @@ function xh({ id: e, options: t, selected: n, onChange: r, placeholder: i, disab
7142
7145
  }), /* @__PURE__ */ H(ce, { children: f.map((e) => /* @__PURE__ */ U(xe, {
7143
7146
  value: e.value,
7144
7147
  className: "flex items-center gap-2",
7145
- children: [/* @__PURE__ */ H(zp, {
7148
+ children: [/* @__PURE__ */ H(Hp, {
7146
7149
  checked: n.includes(e.value),
7147
7150
  tabIndex: -1,
7148
7151
  className: "pointer-events-none"
@@ -7156,7 +7159,7 @@ function xh({ id: e, options: t, selected: n, onChange: r, placeholder: i, disab
7156
7159
  }
7157
7160
  //#endregion
7158
7161
  //#region src/primitives/reui/native-select.tsx
7159
- function Sh({ className: e, size: t = "default", ...n }) {
7162
+ function Th({ className: e, size: t = "default", ...n }) {
7160
7163
  return /* @__PURE__ */ U("div", {
7161
7164
  className: "group/native-select relative w-fit has-[select:disabled]:opacity-50",
7162
7165
  "data-slot": "native-select-wrapper",
@@ -7172,7 +7175,7 @@ function Sh({ className: e, size: t = "default", ...n }) {
7172
7175
  })]
7173
7176
  });
7174
7177
  }
7175
- function Ch({ className: e, ...t }) {
7178
+ function Eh({ className: e, ...t }) {
7176
7179
  return /* @__PURE__ */ H("option", {
7177
7180
  "data-slot": "native-select-option",
7178
7181
  className: R("bg-[Canvas] text-[CanvasText]", e),
@@ -7181,11 +7184,11 @@ function Ch({ className: e, ...t }) {
7181
7184
  }
7182
7185
  //#endregion
7183
7186
  //#region src/base/form/fields/NativeSelectField.tsx
7184
- function wh({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled: a, required: o, error: s, helpTextId: c, errorId: l }) {
7187
+ function Dh({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled: a, required: o, error: s, helpTextId: c, errorId: l }) {
7185
7188
  let { t: u } = De(), d = [s ? l : void 0, c].filter(Boolean).join(" ") || void 0;
7186
7189
  return /* @__PURE__ */ H("div", {
7187
7190
  className: "w-full [&>div]:w-full",
7188
- children: /* @__PURE__ */ U(Sh, {
7191
+ children: /* @__PURE__ */ U(Th, {
7189
7192
  id: e,
7190
7193
  value: t ?? "",
7191
7194
  onChange: (e) => n(e.target.value),
@@ -7194,11 +7197,11 @@ function wh({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled
7194
7197
  "aria-required": o || void 0,
7195
7198
  "aria-invalid": s ? !0 : void 0,
7196
7199
  "aria-describedby": d,
7197
- children: [/* @__PURE__ */ H(Ch, {
7200
+ children: [/* @__PURE__ */ H(Eh, {
7198
7201
  value: "",
7199
7202
  disabled: o,
7200
7203
  children: i ?? u("middag.ui.form.select_placeholder")
7201
- }), r.map((e) => /* @__PURE__ */ H(Ch, {
7204
+ }), r.map((e) => /* @__PURE__ */ H(Eh, {
7202
7205
  value: e.value,
7203
7206
  children: e.label
7204
7207
  }, e.value))]
@@ -7207,21 +7210,21 @@ function wh({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled
7207
7210
  }
7208
7211
  //#endregion
7209
7212
  //#region src/primitives/reui/number-field.tsx
7210
- var Th = ut(null), Eh = o("relative flex w-full justify-between border border-input data-disabled:pointer-events-none data-disabled:opacity-50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive focus-within:has-aria-invalid:border-destructive focus-within:has-aria-invalid:ring-destructive/20 dark:focus-within:has-aria-invalid:ring-destructive/40 rounded-4xl bg-input/30 transition-colors focus-within:border-ring focus-within:ring-ring/50 focus-within:ring-[3px]", {
7213
+ var Oh = ut(null), kh = o("relative flex w-full justify-between border border-input data-disabled:pointer-events-none data-disabled:opacity-50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive focus-within:has-aria-invalid:border-destructive focus-within:has-aria-invalid:ring-destructive/20 dark:focus-within:has-aria-invalid:ring-destructive/40 rounded-4xl bg-input/30 transition-colors focus-within:border-ring focus-within:ring-ring/50 focus-within:ring-[3px]", {
7211
7214
  variants: { size: {
7212
7215
  sm: "h-8 text-sm",
7213
7216
  default: "h-9 text-sm",
7214
7217
  lg: "h-10 text-sm"
7215
7218
  } },
7216
7219
  defaultVariants: { size: "default" }
7217
- }), Dh = o("relative flex shrink-0 cursor-pointer items-center justify-center transition-colors pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:bg-accent", {
7220
+ }), Ah = o("relative flex shrink-0 cursor-pointer items-center justify-center transition-colors pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:bg-accent", {
7218
7221
  variants: { size: {
7219
7222
  sm: "px-2 [&_svg:not([class*='size-'])]:size-3.5",
7220
7223
  default: "px-2.5 [&_svg:not([class*='size-'])]:size-4",
7221
7224
  lg: "px-3 [&_svg:not([class*='size-'])]:size-4"
7222
7225
  } },
7223
7226
  defaultVariants: { size: "default" }
7224
- }), Oh = o("w-full min-w-0 flex-1 bg-transparent text-center tabular-nums outline-none", {
7227
+ }), jh = o("w-full min-w-0 flex-1 bg-transparent text-center tabular-nums outline-none", {
7225
7228
  variants: { size: {
7226
7229
  sm: "px-2.5 py-1",
7227
7230
  default: "px-3 py-1.5",
@@ -7229,14 +7232,14 @@ var Th = ut(null), Eh = o("relative flex w-full justify-between border border-in
7229
7232
  } },
7230
7233
  defaultVariants: { size: "default" }
7231
7234
  });
7232
- function kh({ id: e, className: t, size: n = "default", ...r }) {
7235
+ function Mh({ id: e, className: t, size: n = "default", ...r }) {
7233
7236
  let i = mt(), a = e ?? i, o = n ?? "default";
7234
- return /* @__PURE__ */ H(Th.Provider, {
7237
+ return /* @__PURE__ */ H(Oh.Provider, {
7235
7238
  value: {
7236
7239
  fieldId: a,
7237
7240
  size: o
7238
7241
  },
7239
- children: /* @__PURE__ */ H(Wm, {
7242
+ children: /* @__PURE__ */ H(qm, {
7240
7243
  className: R("flex w-full flex-col items-start gap-2", t),
7241
7244
  "data-size": o,
7242
7245
  "data-slot": "number-field",
@@ -7245,20 +7248,20 @@ function kh({ id: e, className: t, size: n = "default", ...r }) {
7245
7248
  })
7246
7249
  });
7247
7250
  }
7248
- function Ah({ className: e, size: t, ...n }) {
7249
- let r = ft(Th);
7251
+ function Nh({ className: e, size: t, ...n }) {
7252
+ let r = ft(Oh);
7250
7253
  if (!r) throw Error("NumberFieldGroup must be used within a NumberField component.");
7251
- return /* @__PURE__ */ H(Km, {
7252
- className: R(Eh({ size: t ?? r.size }), e),
7254
+ return /* @__PURE__ */ H(Ym, {
7255
+ className: R(kh({ size: t ?? r.size }), e),
7253
7256
  "data-slot": "number-field-group",
7254
7257
  ...n
7255
7258
  });
7256
7259
  }
7257
- function jh({ className: e, size: t, children: n, ...r }) {
7258
- let i = ft(Th);
7260
+ function Ph({ className: e, size: t, children: n, ...r }) {
7261
+ let i = ft(Oh);
7259
7262
  if (!i) throw Error("NumberFieldDecrement must be used within a NumberField component.");
7260
- return /* @__PURE__ */ H(oh, {
7261
- className: R(Dh({ size: t ?? i.size }), "rounded-s-4xl border-e-0", e),
7263
+ return /* @__PURE__ */ H(lh, {
7264
+ className: R(Ah({ size: t ?? i.size }), "rounded-s-4xl border-e-0", e),
7262
7265
  "data-slot": "number-field-decrement",
7263
7266
  ...r,
7264
7267
  children: n ?? /* @__PURE__ */ H(L, {
@@ -7267,11 +7270,11 @@ function jh({ className: e, size: t, children: n, ...r }) {
7267
7270
  })
7268
7271
  });
7269
7272
  }
7270
- function Mh({ className: e, size: t, children: n, ...r }) {
7271
- let i = ft(Th);
7273
+ function Fh({ className: e, size: t, children: n, ...r }) {
7274
+ let i = ft(Oh);
7272
7275
  if (!i) throw Error("NumberFieldIncrement must be used within a NumberField component.");
7273
- return /* @__PURE__ */ H(ah, {
7274
- className: R(Dh({ size: t ?? i.size }), "rounded-e-4xl border-s-0", e),
7276
+ return /* @__PURE__ */ H(ch, {
7277
+ className: R(Ah({ size: t ?? i.size }), "rounded-e-4xl border-s-0", e),
7275
7278
  "data-slot": "number-field-increment",
7276
7279
  ...r,
7277
7280
  children: n ?? /* @__PURE__ */ H(L, {
@@ -7280,20 +7283,20 @@ function Mh({ className: e, size: t, children: n, ...r }) {
7280
7283
  })
7281
7284
  });
7282
7285
  }
7283
- function Nh({ className: e, size: t, ...n }) {
7284
- let r = ft(Th);
7286
+ function Ih({ className: e, size: t, ...n }) {
7287
+ let r = ft(Oh);
7285
7288
  if (!r) throw Error("NumberFieldInput must be used within a NumberField component.");
7286
- return /* @__PURE__ */ H(lh, {
7287
- className: R(Oh({ size: t ?? r.size }), e),
7289
+ return /* @__PURE__ */ H(fh, {
7290
+ className: R(jh({ size: t ?? r.size }), e),
7288
7291
  "data-slot": "number-field-input",
7289
7292
  ...n
7290
7293
  });
7291
7294
  }
7292
7295
  //#endregion
7293
7296
  //#region src/base/form/fields/NumberField.tsx
7294
- function Ph({ id: e, value: t, onChange: n, min: r, max: i, step: a = 1, disabled: o, required: s, error: c, helpTextId: l, errorId: u }) {
7297
+ function Lh({ id: e, value: t, onChange: n, min: r, max: i, step: a = 1, disabled: o, required: s, error: c, helpTextId: l, errorId: u }) {
7295
7298
  let d = [c ? u : void 0, l].filter(Boolean).join(" ") || void 0;
7296
- return /* @__PURE__ */ H(kh, {
7299
+ return /* @__PURE__ */ H(Mh, {
7297
7300
  id: e,
7298
7301
  value: t ?? void 0,
7299
7302
  onValueChange: (e) => n(e ?? null),
@@ -7304,50 +7307,50 @@ function Ph({ id: e, value: t, onChange: n, min: r, max: i, step: a = 1, disable
7304
7307
  "aria-invalid": c ? !0 : void 0,
7305
7308
  "aria-required": s || void 0,
7306
7309
  "aria-describedby": d,
7307
- children: /* @__PURE__ */ U(Ah, { children: [
7308
- /* @__PURE__ */ H(jh, {}),
7309
- /* @__PURE__ */ H(Nh, {}),
7310
- /* @__PURE__ */ H(Mh, {})
7310
+ children: /* @__PURE__ */ U(Nh, { children: [
7311
+ /* @__PURE__ */ H(Ph, {}),
7312
+ /* @__PURE__ */ H(Ih, {}),
7313
+ /* @__PURE__ */ H(Fh, {})
7311
7314
  ] })
7312
7315
  });
7313
7316
  }
7314
7317
  //#endregion
7315
7318
  //#region node_modules/input-otp/dist/index.mjs
7316
- var Fh = Object.defineProperty, Ih = Object.defineProperties, Lh = Object.getOwnPropertyDescriptors, Rh = Object.getOwnPropertySymbols, zh = Object.prototype.hasOwnProperty, Bh = Object.prototype.propertyIsEnumerable, Vh = (e, t, n) => t in e ? Fh(e, t, {
7319
+ var Rh = Object.defineProperty, zh = Object.defineProperties, Bh = Object.getOwnPropertyDescriptors, Vh = Object.getOwnPropertySymbols, Hh = Object.prototype.hasOwnProperty, Uh = Object.prototype.propertyIsEnumerable, Wh = (e, t, n) => t in e ? Rh(e, t, {
7317
7320
  enumerable: !0,
7318
7321
  configurable: !0,
7319
7322
  writable: !0,
7320
7323
  value: n
7321
- }) : e[t] = n, Hh = (e, t) => {
7322
- for (var n in t ||= {}) zh.call(t, n) && Vh(e, n, t[n]);
7323
- if (Rh) for (var n of Rh(t)) Bh.call(t, n) && Vh(e, n, t[n]);
7324
+ }) : e[t] = n, Gh = (e, t) => {
7325
+ for (var n in t ||= {}) Hh.call(t, n) && Wh(e, n, t[n]);
7326
+ if (Vh) for (var n of Vh(t)) Uh.call(t, n) && Wh(e, n, t[n]);
7324
7327
  return e;
7325
- }, Uh = (e, t) => Ih(e, Lh(t)), Wh = (e, t) => {
7328
+ }, Kh = (e, t) => zh(e, Bh(t)), qh = (e, t) => {
7326
7329
  var n = {};
7327
- for (var r in e) zh.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
7328
- if (e != null && Rh) for (var r of Rh(e)) t.indexOf(r) < 0 && Bh.call(e, r) && (n[r] = e[r]);
7330
+ for (var r in e) Hh.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
7331
+ if (e != null && Vh) for (var r of Vh(e)) t.indexOf(r) < 0 && Uh.call(e, r) && (n[r] = e[r]);
7329
7332
  return n;
7330
7333
  };
7331
- function Gh(e) {
7334
+ function Jh(e) {
7332
7335
  return [
7333
7336
  setTimeout(e, 0),
7334
7337
  setTimeout(e, 10),
7335
7338
  setTimeout(e, 50)
7336
7339
  ];
7337
7340
  }
7338
- function Kh(e) {
7341
+ function Yh(e) {
7339
7342
  let t = z.useRef();
7340
7343
  return z.useEffect(() => {
7341
7344
  t.current = e;
7342
7345
  }), t.current;
7343
7346
  }
7344
- var qh = 18, Jh = 40, Yh = `${Jh}px`, Xh = [
7347
+ var Xh = 18, Zh = 40, Qh = `${Zh}px`, $h = [
7345
7348
  "[data-lastpass-icon-root]",
7346
7349
  "com-1password-button",
7347
7350
  "[data-dashlanecreated]",
7348
7351
  "[style$=\"2147483647 !important;\"]"
7349
7352
  ].join(",");
7350
- function Zh({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFocused: r }) {
7353
+ function eg({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFocused: r }) {
7351
7354
  let [i, a] = z.useState(!1), [o, s] = z.useState(!1), [c, l] = z.useState(!1), u = z.useMemo(() => n === "none" ? !1 : (n === "increase-width" || n === "experimental-no-flickering") && i && o, [
7352
7355
  i,
7353
7356
  o,
@@ -7355,8 +7358,8 @@ function Zh({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
7355
7358
  ]), d = z.useCallback(() => {
7356
7359
  let r = e.current, i = t.current;
7357
7360
  if (!r || !i || c || n === "none") return;
7358
- let o = r, s = o.getBoundingClientRect().left + o.offsetWidth, u = o.getBoundingClientRect().top + o.offsetHeight / 2, d = s - qh, f = u;
7359
- document.querySelectorAll(Xh).length === 0 && document.elementFromPoint(d, f) === r || (a(!0), l(!0));
7361
+ let o = r, s = o.getBoundingClientRect().left + o.offsetWidth, u = o.getBoundingClientRect().top + o.offsetHeight / 2, d = s - Xh, f = u;
7362
+ document.querySelectorAll($h).length === 0 && document.elementFromPoint(d, f) === r || (a(!0), l(!0));
7360
7363
  }, [
7361
7364
  e,
7362
7365
  t,
@@ -7367,7 +7370,7 @@ function Zh({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
7367
7370
  let t = e.current;
7368
7371
  if (!t || n === "none") return;
7369
7372
  function r() {
7370
- s(window.innerWidth - t.getBoundingClientRect().right >= Jh);
7373
+ s(window.innerWidth - t.getBoundingClientRect().right >= Zh);
7371
7374
  }
7372
7375
  r();
7373
7376
  let i = setInterval(r, 1e3);
@@ -7391,11 +7394,11 @@ function Zh({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
7391
7394
  ]), {
7392
7395
  hasPWMBadge: i,
7393
7396
  willPushPWMBadge: u,
7394
- PWM_BADGE_SPACE_WIDTH: Yh
7397
+ PWM_BADGE_SPACE_WIDTH: Qh
7395
7398
  };
7396
7399
  }
7397
- var Qh = z.createContext({}), $h = z.forwardRef((e, t) => {
7398
- var n = e, { value: r, onChange: i, maxLength: a, textAlign: o = "left", pattern: s, placeholder: c, inputMode: l = "numeric", onComplete: u, pushPasswordManagerStrategy: d = "increase-width", pasteTransformer: f, containerClassName: p, noScriptCSSFallback: m = tg, render: h, children: g } = n, _ = Wh(n, [
7400
+ var tg = z.createContext({}), ng = z.forwardRef((e, t) => {
7401
+ var n = e, { value: r, onChange: i, maxLength: a, textAlign: o = "left", pattern: s, placeholder: c, inputMode: l = "numeric", onComplete: u, pushPasswordManagerStrategy: d = "increase-width", pasteTransformer: f, containerClassName: p, noScriptCSSFallback: m = ig, render: h, children: g } = n, _ = qh(n, [
7399
7402
  "value",
7400
7403
  "onChange",
7401
7404
  "maxLength",
@@ -7411,7 +7414,7 @@ var Qh = z.createContext({}), $h = z.forwardRef((e, t) => {
7411
7414
  "render",
7412
7415
  "children"
7413
7416
  ]), v;
7414
- let [y, b] = z.useState(typeof _.defaultValue == "string" ? _.defaultValue : ""), x = r ?? y, S = Kh(x), C = z.useCallback((e) => {
7417
+ let [y, b] = z.useState(typeof _.defaultValue == "string" ? _.defaultValue : ""), x = r ?? y, S = Yh(x), C = z.useCallback((e) => {
7415
7418
  i?.(e), b(e);
7416
7419
  }, [i]), w = z.useMemo(() => s ? typeof s == "string" ? new RegExp(s) : s : null, [s]), T = z.useRef(null), E = z.useRef(null), D = z.useRef({
7417
7420
  value: x,
@@ -7465,7 +7468,7 @@ var Qh = z.createContext({}), $h = z.forwardRef((e, t) => {
7465
7468
  let e = document.createElement("style");
7466
7469
  if (e.id = "input-otp-style", document.head.appendChild(e), e.sheet) {
7467
7470
  let t = "background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";
7468
- eg(e.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), eg(e.sheet, `[data-input-otp]:autofill { ${t} }`), eg(e.sheet, `[data-input-otp]:-webkit-autofill { ${t} }`), eg(e.sheet, "@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"), eg(e.sheet, "[data-input-otp] + * { pointer-events: all !important; }");
7471
+ rg(e.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), rg(e.sheet, `[data-input-otp]:autofill { ${t} }`), rg(e.sheet, `[data-input-otp]:-webkit-autofill { ${t} }`), rg(e.sheet, "@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"), rg(e.sheet, "[data-input-otp] + * { pointer-events: all !important; }");
7469
7472
  }
7470
7473
  }
7471
7474
  let r = () => {
@@ -7479,7 +7482,7 @@ var Qh = z.createContext({}), $h = z.forwardRef((e, t) => {
7479
7482
  }, []);
7480
7483
  let [k, A] = z.useState(!1), [j, M] = z.useState(!1), [N, ee] = z.useState(null), [te, P] = z.useState(null);
7481
7484
  z.useEffect(() => {
7482
- Gh(() => {
7485
+ Jh(() => {
7483
7486
  var e;
7484
7487
  (e = T.current) == null || e.dispatchEvent(new Event("input"));
7485
7488
  let t = T.current?.selectionStart, n = T.current?.selectionEnd, r = T.current?.selectionDirection;
@@ -7497,7 +7500,7 @@ var Qh = z.createContext({}), $h = z.forwardRef((e, t) => {
7497
7500
  S,
7498
7501
  x
7499
7502
  ]);
7500
- let F = Zh({
7503
+ let F = eg({
7501
7504
  containerRef: E,
7502
7505
  inputRef: T,
7503
7506
  pushPasswordManagerStrategy: d,
@@ -7567,7 +7570,7 @@ var Qh = z.createContext({}), $h = z.forwardRef((e, t) => {
7567
7570
  F.PWM_BADGE_SPACE_WIDTH,
7568
7571
  F.willPushPWMBadge,
7569
7572
  o
7570
- ]), se = z.useMemo(() => z.createElement("input", Uh(Hh({ autoComplete: _.autoComplete || "one-time-code" }, _), {
7573
+ ]), se = z.useMemo(() => z.createElement("input", Kh(Gh({ autoComplete: _.autoComplete || "one-time-code" }, _), {
7571
7574
  "data-input-otp": !0,
7572
7575
  "data-input-otp-placeholder-shown": x.length === 0 || void 0,
7573
7576
  "data-input-otp-mss": N,
@@ -7632,7 +7635,7 @@ var Qh = z.createContext({}), $h = z.forwardRef((e, t) => {
7632
7635
  N,
7633
7636
  _.disabled,
7634
7637
  x
7635
- ]), le = z.useMemo(() => h ? h(ce) : z.createElement(Qh.Provider, { value: ce }, g), [
7638
+ ]), le = z.useMemo(() => h ? h(ce) : z.createElement(tg.Provider, { value: ce }, g), [
7636
7639
  g,
7637
7640
  ce,
7638
7641
  h
@@ -7648,34 +7651,34 @@ var Qh = z.createContext({}), $h = z.forwardRef((e, t) => {
7648
7651
  pointerEvents: "none"
7649
7652
  } }, se)));
7650
7653
  });
7651
- $h.displayName = "Input";
7652
- function eg(e, t) {
7654
+ ng.displayName = "Input";
7655
+ function rg(e, t) {
7653
7656
  try {
7654
7657
  e.insertRule(t);
7655
7658
  } catch {
7656
7659
  console.error("input-otp could not insert CSS rule:", t);
7657
7660
  }
7658
7661
  }
7659
- var tg = "\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: black !important;\n\n background-color: var(--nojs-bg) !important;\n color: var(--nojs-fg) !important;\n caret-color: var(--nojs-fg) !important;\n letter-spacing: .25em !important;\n text-align: center !important;\n border: 1px solid var(--nojs-fg) !important;\n border-radius: 4px !important;\n width: 100% !important;\n}\n@media (prefers-color-scheme: dark) {\n [data-input-otp] {\n --nojs-bg: black !important;\n --nojs-fg: white !important;\n }\n}", ng = "^\\d+$", rg = "^[a-zA-Z0-9]+$";
7662
+ var ig = "\n[data-input-otp] {\n --nojs-bg: white !important;\n --nojs-fg: black !important;\n\n background-color: var(--nojs-bg) !important;\n color: var(--nojs-fg) !important;\n caret-color: var(--nojs-fg) !important;\n letter-spacing: .25em !important;\n text-align: center !important;\n border: 1px solid var(--nojs-fg) !important;\n border-radius: 4px !important;\n width: 100% !important;\n}\n@media (prefers-color-scheme: dark) {\n [data-input-otp] {\n --nojs-bg: black !important;\n --nojs-fg: white !important;\n }\n}", ag = "^\\d+$", og = "^[a-zA-Z0-9]+$";
7660
7663
  //#endregion
7661
7664
  //#region src/primitives/reui/input-otp.tsx
7662
- function ig({ className: e, containerClassName: t, ...n }) {
7663
- return /* @__PURE__ */ H($h, {
7665
+ function sg({ className: e, containerClassName: t, ...n }) {
7666
+ return /* @__PURE__ */ H(ng, {
7664
7667
  "data-slot": "input-otp",
7665
7668
  containerClassName: R("flex items-center gap-2 has-disabled:opacity-50", t),
7666
7669
  className: R("disabled:cursor-not-allowed", e),
7667
7670
  ...n
7668
7671
  });
7669
7672
  }
7670
- function ag({ className: e, ...t }) {
7673
+ function cg({ className: e, ...t }) {
7671
7674
  return /* @__PURE__ */ H("div", {
7672
7675
  "data-slot": "input-otp-group",
7673
7676
  className: R("flex items-center", e),
7674
7677
  ...t
7675
7678
  });
7676
7679
  }
7677
- function og({ index: e, className: t, ...n }) {
7678
- let { char: r, hasFakeCaret: i, isActive: a } = z.useContext(Qh)?.slots[e] ?? {};
7680
+ function lg({ index: e, className: t, ...n }) {
7681
+ let { char: r, hasFakeCaret: i, isActive: a } = z.useContext(tg)?.slots[e] ?? {};
7679
7682
  return /* @__PURE__ */ U("div", {
7680
7683
  "data-slot": "input-otp-slot",
7681
7684
  "data-active": a,
@@ -7687,7 +7690,7 @@ function og({ index: e, className: t, ...n }) {
7687
7690
  })]
7688
7691
  });
7689
7692
  }
7690
- function sg({ ...e }) {
7693
+ function ug({ ...e }) {
7691
7694
  return /* @__PURE__ */ H("div", {
7692
7695
  "data-slot": "input-otp-separator",
7693
7696
  role: "separator",
@@ -7697,15 +7700,15 @@ function sg({ ...e }) {
7697
7700
  }
7698
7701
  //#endregion
7699
7702
  //#region src/base/form/fields/OtpField.tsx
7700
- function cg(e, t) {
7703
+ function dg(e, t) {
7701
7704
  if (!t || t >= e) return [Array.from({ length: e }, (e, t) => t)];
7702
7705
  let n = [];
7703
7706
  for (let r = 0; r < e; r += t) n.push(Array.from({ length: Math.min(t, e - r) }, (e, t) => r + t));
7704
7707
  return n;
7705
7708
  }
7706
- function lg({ id: e, value: t, onChange: n, maxLength: r = 6, pattern: i = "digits", groupSize: a, disabled: o, required: s, error: c, helpTextId: l, errorId: u }) {
7707
- let d = [c ? u : void 0, l].filter(Boolean).join(" ") || void 0, f = i === "alphanumeric" ? rg : ng, p = cg(r, a);
7708
- return /* @__PURE__ */ H(ig, {
7709
+ function fg({ id: e, value: t, onChange: n, maxLength: r = 6, pattern: i = "digits", groupSize: a, disabled: o, required: s, error: c, helpTextId: l, errorId: u }) {
7710
+ let d = [c ? u : void 0, l].filter(Boolean).join(" ") || void 0, f = i === "alphanumeric" ? og : ag, p = dg(r, a);
7711
+ return /* @__PURE__ */ H(sg, {
7709
7712
  id: e,
7710
7713
  maxLength: r,
7711
7714
  value: t ?? "",
@@ -7715,15 +7718,15 @@ function lg({ id: e, value: t, onChange: n, maxLength: r = 6, pattern: i = "digi
7715
7718
  "aria-invalid": c ? !0 : void 0,
7716
7719
  "aria-required": s || void 0,
7717
7720
  "aria-describedby": d,
7718
- children: p.map((e, t) => /* @__PURE__ */ U(ct, { children: [/* @__PURE__ */ H(ag, { children: e.map((e) => /* @__PURE__ */ H(og, {
7721
+ children: p.map((e, t) => /* @__PURE__ */ U(ct, { children: [/* @__PURE__ */ H(cg, { children: e.map((e) => /* @__PURE__ */ H(lg, {
7719
7722
  index: e,
7720
7723
  "aria-invalid": c ? !0 : void 0
7721
- }, e)) }), t < p.length - 1 && /* @__PURE__ */ H(sg, {})] }, e[0]))
7724
+ }, e)) }), t < p.length - 1 && /* @__PURE__ */ H(ug, {})] }, e[0]))
7722
7725
  });
7723
7726
  }
7724
7727
  //#endregion
7725
7728
  //#region src/base/form/fields/PasswordField.tsx
7726
- function ug({ id: e, value: t, onChange: n, placeholder: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
7729
+ function pg({ id: e, value: t, onChange: n, placeholder: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
7727
7730
  let [l, u] = V(!1), f = [o ? c : void 0, s].filter(Boolean).join(" ") || void 0;
7728
7731
  return /* @__PURE__ */ U("div", {
7729
7732
  className: "relative",
@@ -7756,19 +7759,19 @@ function ug({ id: e, value: t, onChange: n, placeholder: r, disabled: i, require
7756
7759
  }
7757
7760
  //#endregion
7758
7761
  //#region src/primitives/reui/radio-group.tsx
7759
- function dg({ className: e, ...t }) {
7760
- return /* @__PURE__ */ H(gu, {
7762
+ function mg({ className: e, ...t }) {
7763
+ return /* @__PURE__ */ H(yu, {
7761
7764
  "data-slot": "radio-group",
7762
7765
  className: R("grid gap-3", e),
7763
7766
  ...t
7764
7767
  });
7765
7768
  }
7766
- function fg({ className: e, ...t }) {
7767
- return /* @__PURE__ */ H(_u, {
7769
+ function hg({ className: e, ...t }) {
7770
+ return /* @__PURE__ */ H(bu, {
7768
7771
  "data-slot": "radio-group-item",
7769
7772
  className: R("aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40", e),
7770
7773
  ...t,
7771
- children: /* @__PURE__ */ H(vu, {
7774
+ children: /* @__PURE__ */ H(xu, {
7772
7775
  "data-slot": "radio-group-indicator",
7773
7776
  className: "relative flex items-center justify-center",
7774
7777
  children: /* @__PURE__ */ H(nc, { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary" })
@@ -7777,9 +7780,9 @@ function fg({ className: e, ...t }) {
7777
7780
  }
7778
7781
  //#endregion
7779
7782
  //#region src/base/form/fields/RadioField.tsx
7780
- function pg({ id: e, value: t, onChange: n, options: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
7783
+ function gg({ id: e, value: t, onChange: n, options: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
7781
7784
  let l = [o ? c : void 0, s].filter(Boolean).join(" ") || void 0;
7782
- return /* @__PURE__ */ H(dg, {
7785
+ return /* @__PURE__ */ H(mg, {
7783
7786
  id: e,
7784
7787
  value: t ?? "",
7785
7788
  onValueChange: n,
@@ -7791,10 +7794,10 @@ function pg({ id: e, value: t, onChange: n, options: r, disabled: i, required: a
7791
7794
  let n = `${e}-${t.value}`;
7792
7795
  return /* @__PURE__ */ U("div", {
7793
7796
  className: "flex items-center gap-2",
7794
- children: [/* @__PURE__ */ H(fg, {
7797
+ children: [/* @__PURE__ */ H(hg, {
7795
7798
  value: t.value,
7796
7799
  id: n
7797
- }), /* @__PURE__ */ H(Vp, {
7800
+ }), /* @__PURE__ */ H(Wp, {
7798
7801
  htmlFor: n,
7799
7802
  className: "text-sm font-normal",
7800
7803
  children: t.label
@@ -7805,21 +7808,21 @@ function pg({ id: e, value: t, onChange: n, options: r, disabled: i, required: a
7805
7808
  }
7806
7809
  //#endregion
7807
7810
  //#region src/primitives/reui/rating.tsx
7808
- var mg = o("flex items-center", {
7811
+ var _g = o("flex items-center", {
7809
7812
  variants: { size: {
7810
7813
  sm: "gap-2",
7811
7814
  default: "gap-2.5",
7812
7815
  lg: "gap-3"
7813
7816
  } },
7814
7817
  defaultVariants: { size: "default" }
7815
- }), hg = o("", {
7818
+ }), vg = o("", {
7816
7819
  variants: { size: {
7817
7820
  sm: "w-4 h-4",
7818
7821
  default: "w-5 h-5",
7819
7822
  lg: "w-6 h-6"
7820
7823
  } },
7821
7824
  defaultVariants: { size: "default" }
7822
- }), gg = o("text-muted-foreground w-5", {
7825
+ }), yg = o("text-muted-foreground w-5", {
7823
7826
  variants: { size: {
7824
7827
  sm: "text-xs",
7825
7828
  default: "text-sm",
@@ -7827,7 +7830,7 @@ var mg = o("flex items-center", {
7827
7830
  } },
7828
7831
  defaultVariants: { size: "default" }
7829
7832
  });
7830
- function _g({ rating: e, maxRating: t = 5, size: n, className: r, starClassName: i, showValue: a = !1, editable: o = !1, onRatingChange: s, ...c }) {
7833
+ function bg({ rating: e, maxRating: t = 5, size: n, className: r, starClassName: i, showValue: a = !1, editable: o = !1, onRatingChange: s, ...c }) {
7831
7834
  let [l, u] = V(null), d = o && l !== null ? l : e, f = (e) => {
7832
7835
  o && s && s(e);
7833
7836
  }, p = (e) => {
@@ -7847,7 +7850,7 @@ function _g({ rating: e, maxRating: t = 5, size: n, className: r, starClassName:
7847
7850
  icon: Fe,
7848
7851
  strokeWidth: 2,
7849
7852
  "data-slot": "rating-star-empty",
7850
- className: R(hg({ size: n }), "text-muted-foreground/30")
7853
+ className: R(vg({ size: n }), "text-muted-foreground/30")
7851
7854
  }), /* @__PURE__ */ H("div", {
7852
7855
  className: "absolute inset-0 overflow-hidden",
7853
7856
  style: { width: t ? "100%" : `${i}%` },
@@ -7855,7 +7858,7 @@ function _g({ rating: e, maxRating: t = 5, size: n, className: r, starClassName:
7855
7858
  icon: Fe,
7856
7859
  strokeWidth: 2,
7857
7860
  "data-slot": "rating-star-filled",
7858
- className: R(hg({ size: n }), "fill-yellow-400 text-yellow-400")
7861
+ className: R(vg({ size: n }), "fill-yellow-400 text-yellow-400")
7859
7862
  })
7860
7863
  })]
7861
7864
  }, r));
@@ -7864,21 +7867,21 @@ function _g({ rating: e, maxRating: t = 5, size: n, className: r, starClassName:
7864
7867
  };
7865
7868
  return /* @__PURE__ */ U("div", {
7866
7869
  "data-slot": "rating",
7867
- className: R(mg({ size: n }), r),
7870
+ className: R(_g({ size: n }), r),
7868
7871
  ...c,
7869
7872
  children: [/* @__PURE__ */ H("div", {
7870
7873
  className: "flex items-center",
7871
7874
  children: h()
7872
7875
  }), a && /* @__PURE__ */ H("span", {
7873
7876
  "data-slot": "rating-value",
7874
- className: R(gg({ size: n }), i),
7877
+ className: R(yg({ size: n }), i),
7875
7878
  children: d.toFixed(1)
7876
7879
  })]
7877
7880
  });
7878
7881
  }
7879
7882
  //#endregion
7880
7883
  //#region src/base/form/fields/RatingField.tsx
7881
- function vg({ id: e, value: t, onChange: n, maxRating: r = 5, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
7884
+ function xg({ id: e, value: t, onChange: n, maxRating: r = 5, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
7882
7885
  let l = [o ? c : void 0, s].filter(Boolean).join(" ") || void 0;
7883
7886
  return /* @__PURE__ */ H("div", {
7884
7887
  id: e,
@@ -7886,7 +7889,7 @@ function vg({ id: e, value: t, onChange: n, maxRating: r = 5, disabled: i, requi
7886
7889
  "aria-required": a || void 0,
7887
7890
  "aria-invalid": o ? !0 : void 0,
7888
7891
  "aria-describedby": l,
7889
- children: /* @__PURE__ */ H(_g, {
7892
+ children: /* @__PURE__ */ H(bg, {
7890
7893
  rating: t ?? 0,
7891
7894
  maxRating: r,
7892
7895
  editable: !i,
@@ -7897,21 +7900,21 @@ function vg({ id: e, value: t, onChange: n, maxRating: r = 5, disabled: i, requi
7897
7900
  }
7898
7901
  //#endregion
7899
7902
  //#region src/base/form/fields/SelectField.tsx
7900
- function yg({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled: a, required: o, error: s, helpTextId: c, errorId: l }) {
7903
+ function Sg({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled: a, required: o, error: s, helpTextId: c, errorId: l }) {
7901
7904
  let { t: u } = De(), d = [s ? l : void 0, c].filter(Boolean).join(" ") || void 0;
7902
- return /* @__PURE__ */ U(Op, {
7905
+ return /* @__PURE__ */ U(jp, {
7903
7906
  value: t ?? "",
7904
7907
  onValueChange: n,
7905
7908
  disabled: a,
7906
7909
  required: o,
7907
- children: [/* @__PURE__ */ H(jp, {
7910
+ children: [/* @__PURE__ */ H(Pp, {
7908
7911
  id: e,
7909
7912
  className: "w-full",
7910
7913
  "aria-invalid": s ? !0 : void 0,
7911
7914
  "aria-required": o || void 0,
7912
7915
  "aria-describedby": d,
7913
- children: /* @__PURE__ */ H(Ap, { placeholder: i ?? u("middag.ui.form.select_placeholder") })
7914
- }), /* @__PURE__ */ H(Mp, { children: r.map((e) => /* @__PURE__ */ H(Pp, {
7916
+ children: /* @__PURE__ */ H(Np, { placeholder: i ?? u("middag.ui.form.select_placeholder") })
7917
+ }), /* @__PURE__ */ H(Fp, { children: r.map((e) => /* @__PURE__ */ H(Lp, {
7915
7918
  value: e.value,
7916
7919
  children: e.label
7917
7920
  }, e.value)) })]
@@ -7919,14 +7922,14 @@ function yg({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled
7919
7922
  }
7920
7923
  //#endregion
7921
7924
  //#region src/primitives/reui/slider.tsx
7922
- function bg({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100, ...a }) {
7925
+ function Cg({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100, ...a }) {
7923
7926
  let o = z.useMemo(() => Array.isArray(n) ? n : Array.isArray(t) ? t : [r, i], [
7924
7927
  n,
7925
7928
  t,
7926
7929
  r,
7927
7930
  i
7928
7931
  ]);
7929
- return /* @__PURE__ */ U(zf, {
7932
+ return /* @__PURE__ */ U(Hf, {
7930
7933
  "data-slot": "slider",
7931
7934
  defaultValue: t,
7932
7935
  value: n,
@@ -7934,14 +7937,14 @@ function bg({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100,
7934
7937
  max: i,
7935
7938
  className: R("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", e),
7936
7939
  ...a,
7937
- children: [/* @__PURE__ */ H(Bf, {
7940
+ children: [/* @__PURE__ */ H(Uf, {
7938
7941
  "data-slot": "slider-track",
7939
7942
  className: R("relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),
7940
- children: /* @__PURE__ */ H(Vf, {
7943
+ children: /* @__PURE__ */ H(Wf, {
7941
7944
  "data-slot": "slider-range",
7942
7945
  className: R("absolute bg-primary data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
7943
7946
  })
7944
- }), Array.from({ length: o.length }, (e, t) => /* @__PURE__ */ H(Hf, {
7947
+ }), Array.from({ length: o.length }, (e, t) => /* @__PURE__ */ H(Gf, {
7945
7948
  "data-slot": "slider-thumb",
7946
7949
  className: "block size-4 shrink-0 rounded-full border border-primary bg-white shadow-sm ring-ring/50 transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
7947
7950
  }, t))]
@@ -7949,11 +7952,11 @@ function bg({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100,
7949
7952
  }
7950
7953
  //#endregion
7951
7954
  //#region src/base/form/fields/SliderField.tsx
7952
- function xg({ id: e, value: t, onChange: n, min: r = 0, max: i = 100, step: a = 1, multiple: o = !1, disabled: s, required: c, error: l, helpTextId: u, errorId: d }) {
7955
+ function wg({ id: e, value: t, onChange: n, min: r = 0, max: i = 100, step: a = 1, multiple: o = !1, disabled: s, required: c, error: l, helpTextId: u, errorId: d }) {
7953
7956
  let f = [l ? d : void 0, u].filter(Boolean).join(" ") || void 0, p = Array.isArray(t) ? t : t == null ? o ? [r, i] : [r] : [t], m = o ? p.join(" – ") : String(p[0] ?? r);
7954
7957
  return /* @__PURE__ */ U("div", {
7955
7958
  className: "flex items-center gap-4",
7956
- children: [/* @__PURE__ */ H(bg, {
7959
+ children: [/* @__PURE__ */ H(Cg, {
7957
7960
  id: e,
7958
7961
  value: p,
7959
7962
  min: r,
@@ -7973,14 +7976,14 @@ function xg({ id: e, value: t, onChange: n, min: r = 0, max: i = 100, step: a =
7973
7976
  }
7974
7977
  //#endregion
7975
7978
  //#region src/base/form/fields/SlugField.tsx
7976
- function Sg(e) {
7979
+ function Tg(e) {
7977
7980
  return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").replace(/-{2,}/g, "-");
7978
7981
  }
7979
- function Cg({ id: e, value: t, onChange: n, sourceValue: r, placeholder: i, disabled: a, required: o, error: s, helpTextId: c, errorId: l, prefix: u }) {
7982
+ function Eg({ id: e, value: t, onChange: n, sourceValue: r, placeholder: i, disabled: a, required: o, error: s, helpTextId: c, errorId: l, prefix: u }) {
7980
7983
  let [d, f] = V(!1), m = [s ? l : void 0, c].filter(Boolean).join(" ") || void 0;
7981
7984
  pt(() => {
7982
7985
  if (!d && r !== void 0) {
7983
- let e = Sg(r);
7986
+ let e = Tg(r);
7984
7987
  e !== t && n(e);
7985
7988
  }
7986
7989
  }, [
@@ -7990,7 +7993,7 @@ function Cg({ id: e, value: t, onChange: n, sourceValue: r, placeholder: i, disa
7990
7993
  t
7991
7994
  ]);
7992
7995
  let h = B((e) => {
7993
- f(!0), n(Sg(e.target.value));
7996
+ f(!0), n(Tg(e.target.value));
7994
7997
  }, [n]);
7995
7998
  return u ? /* @__PURE__ */ U(p, {
7996
7999
  "data-disabled": a || void 0,
@@ -8025,7 +8028,7 @@ function Cg({ id: e, value: t, onChange: n, sourceValue: r, placeholder: i, disa
8025
8028
  }
8026
8029
  //#endregion
8027
8030
  //#region src/base/form/fields/StaticField.tsx
8028
- function wg({ id: e, value: t }) {
8031
+ function Dg({ id: e, value: t }) {
8029
8032
  return /* @__PURE__ */ H("p", {
8030
8033
  id: e,
8031
8034
  className: "border-input bg-muted/50 text-foreground rounded-md border px-3 py-2 text-sm",
@@ -8034,13 +8037,13 @@ function wg({ id: e, value: t }) {
8034
8037
  }
8035
8038
  //#endregion
8036
8039
  //#region src/primitives/reui/switch.tsx
8037
- function Tg({ className: e, size: t = "default", ...n }) {
8038
- return /* @__PURE__ */ H(tp, {
8040
+ function Og({ className: e, size: t = "default", ...n }) {
8041
+ return /* @__PURE__ */ H(ip, {
8039
8042
  "data-slot": "switch",
8040
8043
  "data-size": t,
8041
8044
  className: R("peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80", e),
8042
8045
  ...n,
8043
- children: /* @__PURE__ */ H(np, {
8046
+ children: /* @__PURE__ */ H(ap, {
8044
8047
  "data-slot": "switch-thumb",
8045
8048
  className: R("pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground")
8046
8049
  })
@@ -8048,11 +8051,11 @@ function Tg({ className: e, size: t = "default", ...n }) {
8048
8051
  }
8049
8052
  //#endregion
8050
8053
  //#region src/base/form/fields/SwitchField.tsx
8051
- function Eg({ id: e, value: t, onChange: n, label: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
8054
+ function kg({ id: e, value: t, onChange: n, label: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
8052
8055
  let l = [o ? c : void 0, s].filter(Boolean).join(" ") || void 0;
8053
8056
  return /* @__PURE__ */ U("div", {
8054
8057
  className: "flex items-center gap-2",
8055
- children: [/* @__PURE__ */ H(Tg, {
8058
+ children: [/* @__PURE__ */ H(Og, {
8056
8059
  id: e,
8057
8060
  checked: !!t,
8058
8061
  onCheckedChange: n,
@@ -8060,7 +8063,7 @@ function Eg({ id: e, value: t, onChange: n, label: r, disabled: i, required: a,
8060
8063
  "aria-invalid": o ? !0 : void 0,
8061
8064
  "aria-required": a || void 0,
8062
8065
  "aria-describedby": l
8063
- }), r && /* @__PURE__ */ H(Vp, {
8066
+ }), r && /* @__PURE__ */ H(Wp, {
8064
8067
  htmlFor: e,
8065
8068
  className: "text-sm font-normal",
8066
8069
  children: r
@@ -8069,7 +8072,7 @@ function Eg({ id: e, value: t, onChange: n, label: r, disabled: i, required: a,
8069
8072
  }
8070
8073
  //#endregion
8071
8074
  //#region src/base/form/fields/TagsField.tsx
8072
- function Dg({ id: e, value: t, onChange: n, placeholder: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c, maxTags: l }) {
8075
+ function Ag({ id: e, value: t, onChange: n, placeholder: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c, maxTags: l }) {
8073
8076
  let { t: u } = De(), [d, f] = V(""), p = gt(null), m = ht(() => t ?? [], [t]), h = [o ? c : void 0, s].filter(Boolean).join(" ") || void 0, g = B((e) => {
8074
8077
  let t = e.trim();
8075
8078
  t && (m.includes(t) || l && m.length >= l || (n([...m, t]), f("")));
@@ -8120,7 +8123,7 @@ function Dg({ id: e, value: t, onChange: n, placeholder: r, disabled: i, require
8120
8123
  }
8121
8124
  //#endregion
8122
8125
  //#region src/base/form/fields/TextareaField.tsx
8123
- function Og({ id: e, value: t, onChange: n, placeholder: r, rows: i = 4, disabled: a, readOnly: o, required: s, error: c, helpTextId: l, errorId: u }) {
8126
+ function jg({ id: e, value: t, onChange: n, placeholder: r, rows: i = 4, disabled: a, readOnly: o, required: s, error: c, helpTextId: l, errorId: u }) {
8124
8127
  let d = [c ? u : void 0, l].filter(Boolean).join(" ") || void 0;
8125
8128
  return /* @__PURE__ */ H(ge, {
8126
8129
  id: e,
@@ -8137,7 +8140,7 @@ function Og({ id: e, value: t, onChange: n, placeholder: r, rows: i = 4, disable
8137
8140
  }
8138
8141
  //#endregion
8139
8142
  //#region src/base/form/fields/TextField.tsx
8140
- function kg({ id: e, value: t, onChange: n, type: r = "text", placeholder: i, disabled: a, readOnly: o, required: s, error: c, helpTextId: l, errorId: u }) {
8143
+ function Mg({ id: e, value: t, onChange: n, type: r = "text", placeholder: i, disabled: a, readOnly: o, required: s, error: c, helpTextId: l, errorId: u }) {
8141
8144
  let d = [c ? u : void 0, l].filter(Boolean).join(" ") || void 0;
8142
8145
  return /* @__PURE__ */ H(st, {
8143
8146
  id: e,
@@ -8154,7 +8157,7 @@ function kg({ id: e, value: t, onChange: n, type: r = "text", placeholder: i, di
8154
8157
  }
8155
8158
  //#endregion
8156
8159
  //#region src/base/partials/FormSection/index.tsx
8157
- function Ag({ id: e, title: t, description: n, children: r, defaultCollapsed: i = !1, hasErrors: a = !1, errorCount: o }) {
8160
+ function Ng({ id: e, title: t, description: n, children: r, defaultCollapsed: i = !1, hasErrors: a = !1, errorCount: o }) {
8158
8161
  let { t: s } = De(), [c, l] = V(i && !a), u = `${e}-content`, f = !!t, p = !c || a;
8159
8162
  return /* @__PURE__ */ U("fieldset", {
8160
8163
  className: "border-border space-y-5 rounded-lg border p-6",
@@ -8207,8 +8210,8 @@ function Ag({ id: e, title: t, description: n, children: r, defaultCollapsed: i
8207
8210
  }
8208
8211
  //#endregion
8209
8212
  //#region src/i18n/resolve-field-error.ts
8210
- function jg(e, t) {
8211
- return typeof e == "string" ? e : Array.isArray(e) ? e.map((e) => jg(e, t)).filter(Boolean).join(" ") : t(e.key, {
8213
+ function Pg(e, t) {
8214
+ return typeof e == "string" ? e : Array.isArray(e) ? e.map((e) => Pg(e, t)).filter(Boolean).join(" ") : t(e.key, {
8212
8215
  ns: e.domain || "validators",
8213
8216
  defaultValue: e.message,
8214
8217
  ...e.params ?? {}
@@ -8216,29 +8219,29 @@ function jg(e, t) {
8216
8219
  }
8217
8220
  //#endregion
8218
8221
  //#region src/base/form/form-utils.ts
8219
- function Mg(e) {
8222
+ function Fg(e) {
8220
8223
  let t = [];
8221
- for (let n of e) n.kind === "field" ? t.push(n) : (n.kind === "section" || n.kind === "group") && t.push(...Mg(n.children));
8224
+ for (let n of e) n.kind === "field" ? t.push(n) : (n.kind === "section" || n.kind === "group") && t.push(...Fg(n.children));
8222
8225
  return t;
8223
8226
  }
8224
- function Ng(e, t) {
8227
+ function Ig(e, t) {
8225
8228
  if (e.component === "header") return !0;
8226
8229
  let { props: n } = e;
8227
- return !(n.hidden_when && Bp(n.hidden_when, t) || n.visible_when && !Bp(n.visible_when, t));
8230
+ return !(n.hidden_when && Up(n.hidden_when, t) || n.visible_when && !Up(n.visible_when, t));
8228
8231
  }
8229
- function Pg(e, t) {
8232
+ function Lg(e, t) {
8230
8233
  if (e.component === "header") return !1;
8231
8234
  let { props: n } = e;
8232
- return !!(n.disabled || n.disabled_when && Bp(n.disabled_when, t));
8235
+ return !!(n.disabled || n.disabled_when && Up(n.disabled_when, t));
8233
8236
  }
8234
- function Fg(e, t) {
8235
- if (e.component === "header" || Pg(e, t)) return !1;
8237
+ function Rg(e, t) {
8238
+ if (e.component === "header" || Lg(e, t)) return !1;
8236
8239
  let { props: n } = e;
8237
- return !!(n.required || n.required_when && Bp(n.required_when, t));
8240
+ return !!(n.required || n.required_when && Up(n.required_when, t));
8238
8241
  }
8239
8242
  //#endregion
8240
8243
  //#region src/base/form/form-schema-builder.ts
8241
- function Ig(e, t, n) {
8244
+ function zg(e, t, n) {
8242
8245
  let { component: r, props: i } = e, a = i.validation, o = n;
8243
8246
  switch (r) {
8244
8247
  case "text":
@@ -8305,18 +8308,18 @@ function Ig(e, t, n) {
8305
8308
  default: return ps();
8306
8309
  }
8307
8310
  }
8308
- function Lg(e, t, n) {
8309
- let r = Mg(e), i = {};
8310
- for (let e of r) e.component === "header" || e.component === "hidden" || e.component === "static" || Ng(e, t) && (i[e.key] = Ig(e, n, Fg(e, t)));
8311
+ function Bg(e, t, n) {
8312
+ let r = Fg(e), i = {};
8313
+ for (let e of r) e.component === "header" || e.component === "hidden" || e.component === "static" || Ig(e, t) && (i[e.key] = zg(e, n, Rg(e, t)));
8311
8314
  return xs(i);
8312
8315
  }
8313
8316
  //#endregion
8314
8317
  //#region src/base/form/FormField.tsx
8315
- var Rg = dt(() => import("./PhoneField-DZQc97Eo.js").then((e) => ({ default: e.PhoneField }))), zg = dt(() => import("./DateField-x0Ot_z_i.js").then((e) => ({ default: e.DateField }))), Bg = dt(() => import("./DocumentField-fwq79IWM.js").then((e) => ({ default: e.DocumentField }))), Vg = dt(() => import("./DateRangeField-DbWZ2f92.js").then((e) => ({ default: e.DateRangeField })));
8316
- function Hg() {
8318
+ var Vg = dt(() => import("./PhoneField-DZQc97Eo.js").then((e) => ({ default: e.PhoneField }))), Hg = dt(() => import("./DateField-x0Ot_z_i.js").then((e) => ({ default: e.DateField }))), Ug = dt(() => import("./DocumentField-fwq79IWM.js").then((e) => ({ default: e.DocumentField }))), Wg = dt(() => import("./DateRangeField-DbWZ2f92.js").then((e) => ({ default: e.DateRangeField })));
8319
+ function Gg() {
8317
8320
  return /* @__PURE__ */ H(ot, { className: "h-9 w-full rounded-md" });
8318
8321
  }
8319
- function Ug({ label: e }) {
8322
+ function Kg({ label: e }) {
8320
8323
  return /* @__PURE__ */ H("div", {
8321
8324
  className: "pt-4 pb-1",
8322
8325
  children: /* @__PURE__ */ H("h4", {
@@ -8325,25 +8328,25 @@ function Ug({ label: e }) {
8325
8328
  })
8326
8329
  });
8327
8330
  }
8328
- function Wg({ id: e, value: t }) {
8331
+ function qg({ id: e, value: t }) {
8329
8332
  return /* @__PURE__ */ H("input", {
8330
8333
  type: "hidden",
8331
8334
  id: e,
8332
8335
  value: String(t ?? "")
8333
8336
  });
8334
8337
  }
8335
- function Gg({ field: e, value: t, onChange: n, error: r, sourceValues: i = {} }) {
8338
+ function Jg({ field: e, value: t, onChange: n, error: r, sourceValues: i = {} }) {
8336
8339
  let { t: a } = De(), o = mt(), s = `field-${e.key}-${o}`, c = `${s}-help`, l = `${s}-error`, { component: u, props: d } = e;
8337
- if (u === "header") return /* @__PURE__ */ H(Ug, { label: d.label });
8338
- if (u === "hidden") return /* @__PURE__ */ H(Wg, {
8340
+ if (u === "header") return /* @__PURE__ */ H(Kg, { label: d.label });
8341
+ if (u === "hidden") return /* @__PURE__ */ H(qg, {
8339
8342
  id: s,
8340
8343
  value: t
8341
8344
  });
8342
- let f = Pg(e, i), p = Fg(e, i), m = u === "checkbox" || u === "switch", h = Kg(u, s, t, n, d, r, c, l, a, i, f, p);
8345
+ let f = Lg(e, i), p = Rg(e, i), m = u === "checkbox" || u === "switch", h = Yg(u, s, t, n, d, r, c, l, a, i, f, p);
8343
8346
  return /* @__PURE__ */ U("div", {
8344
8347
  className: "space-y-1.5",
8345
8348
  children: [
8346
- !m && /* @__PURE__ */ U(Vp, {
8349
+ !m && /* @__PURE__ */ U(Wp, {
8347
8350
  htmlFor: s,
8348
8351
  children: [d.label, p && /* @__PURE__ */ H("span", {
8349
8352
  className: "text-destructive ml-0.5",
@@ -8365,7 +8368,7 @@ function Gg({ field: e, value: t, onChange: n, error: r, sourceValues: i = {} })
8365
8368
  ]
8366
8369
  });
8367
8370
  }
8368
- function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8371
+ function Yg(e, t, n, r, i, a, o, s, c, l, u, d) {
8369
8372
  let f = {
8370
8373
  id: t,
8371
8374
  error: a,
@@ -8375,7 +8378,7 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8375
8378
  required: d
8376
8379
  };
8377
8380
  switch (e) {
8378
- case "text": return /* @__PURE__ */ H(kg, {
8381
+ case "text": return /* @__PURE__ */ H(Mg, {
8379
8382
  ...f,
8380
8383
  type: "text",
8381
8384
  value: n,
@@ -8383,7 +8386,7 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8383
8386
  placeholder: i.placeholder,
8384
8387
  readOnly: i.readOnly
8385
8388
  });
8386
- case "email": return /* @__PURE__ */ H(kg, {
8389
+ case "email": return /* @__PURE__ */ H(Mg, {
8387
8390
  ...f,
8388
8391
  type: "email",
8389
8392
  value: n,
@@ -8391,7 +8394,7 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8391
8394
  placeholder: i.placeholder,
8392
8395
  readOnly: i.readOnly
8393
8396
  });
8394
- case "url": return /* @__PURE__ */ H(kg, {
8397
+ case "url": return /* @__PURE__ */ H(Mg, {
8395
8398
  ...f,
8396
8399
  type: "url",
8397
8400
  value: n,
@@ -8399,7 +8402,7 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8399
8402
  placeholder: i.placeholder,
8400
8403
  readOnly: i.readOnly
8401
8404
  });
8402
- case "textarea": return /* @__PURE__ */ H(Og, {
8405
+ case "textarea": return /* @__PURE__ */ H(jg, {
8403
8406
  ...f,
8404
8407
  value: n,
8405
8408
  onChange: r,
@@ -8407,13 +8410,13 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8407
8410
  rows: i.rows,
8408
8411
  readOnly: i.readOnly
8409
8412
  });
8410
- case "password": return /* @__PURE__ */ H(ug, {
8413
+ case "password": return /* @__PURE__ */ H(pg, {
8411
8414
  ...f,
8412
8415
  value: n,
8413
8416
  onChange: r,
8414
8417
  placeholder: i.placeholder
8415
8418
  });
8416
- case "otp": return /* @__PURE__ */ H(lg, {
8419
+ case "otp": return /* @__PURE__ */ H(fg, {
8417
8420
  ...f,
8418
8421
  value: n,
8419
8422
  onChange: r,
@@ -8421,21 +8424,21 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8421
8424
  pattern: i.pattern,
8422
8425
  groupSize: i.groupSize
8423
8426
  });
8424
- case "select": return /* @__PURE__ */ H(yg, {
8427
+ case "select": return /* @__PURE__ */ H(Sg, {
8425
8428
  ...f,
8426
8429
  value: n,
8427
8430
  onChange: r,
8428
8431
  options: i.options ?? [],
8429
8432
  placeholder: i.placeholder
8430
8433
  });
8431
- case "native_select": return /* @__PURE__ */ H(wh, {
8434
+ case "native_select": return /* @__PURE__ */ H(Dh, {
8432
8435
  ...f,
8433
8436
  value: n,
8434
8437
  onChange: r,
8435
8438
  options: i.options ?? [],
8436
8439
  placeholder: i.placeholder
8437
8440
  });
8438
- case "multiselect": return /* @__PURE__ */ H(yh, {
8441
+ case "multiselect": return /* @__PURE__ */ H(Sh, {
8439
8442
  ...f,
8440
8443
  value: n,
8441
8444
  onChange: r,
@@ -8443,13 +8446,13 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8443
8446
  placeholder: i.placeholder,
8444
8447
  variant: i.variant
8445
8448
  });
8446
- case "radio": return /* @__PURE__ */ H(pg, {
8449
+ case "radio": return /* @__PURE__ */ H(gg, {
8447
8450
  ...f,
8448
8451
  value: n,
8449
8452
  onChange: r,
8450
8453
  options: i.options ?? []
8451
8454
  });
8452
- case "int": return /* @__PURE__ */ H(Ph, {
8455
+ case "int": return /* @__PURE__ */ H(Lh, {
8453
8456
  ...f,
8454
8457
  value: n,
8455
8458
  onChange: r,
@@ -8457,7 +8460,7 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8457
8460
  max: i.max,
8458
8461
  step: 1
8459
8462
  });
8460
- case "float": return /* @__PURE__ */ H(Ph, {
8463
+ case "float": return /* @__PURE__ */ H(Lh, {
8461
8464
  ...f,
8462
8465
  value: n,
8463
8466
  onChange: r,
@@ -8465,7 +8468,7 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8465
8468
  max: i.max,
8466
8469
  step: i.step ?? .1
8467
8470
  });
8468
- case "slider": return /* @__PURE__ */ H(xg, {
8471
+ case "slider": return /* @__PURE__ */ H(wg, {
8469
8472
  ...f,
8470
8473
  value: n,
8471
8474
  onChange: r,
@@ -8474,21 +8477,21 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8474
8477
  step: i.step,
8475
8478
  multiple: i.multiple
8476
8479
  });
8477
- case "checkbox": return /* @__PURE__ */ H(Hp, {
8480
+ case "checkbox": return /* @__PURE__ */ H(Gp, {
8478
8481
  ...f,
8479
8482
  value: n,
8480
8483
  onChange: r,
8481
8484
  label: i.label
8482
8485
  });
8483
- case "switch": return /* @__PURE__ */ H(Eg, {
8486
+ case "switch": return /* @__PURE__ */ H(kg, {
8484
8487
  ...f,
8485
8488
  value: n,
8486
8489
  onChange: r,
8487
8490
  label: i.label
8488
8491
  });
8489
8492
  case "date": return /* @__PURE__ */ H(lt, {
8490
- fallback: /* @__PURE__ */ H(Hg, {}),
8491
- children: /* @__PURE__ */ H(zg, {
8493
+ fallback: /* @__PURE__ */ H(Gg, {}),
8494
+ children: /* @__PURE__ */ H(Hg, {
8492
8495
  ...f,
8493
8496
  mode: "date",
8494
8497
  value: n,
@@ -8497,8 +8500,8 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8497
8500
  })
8498
8501
  });
8499
8502
  case "datetime": return /* @__PURE__ */ H(lt, {
8500
- fallback: /* @__PURE__ */ H(Hg, {}),
8501
- children: /* @__PURE__ */ H(zg, {
8503
+ fallback: /* @__PURE__ */ H(Gg, {}),
8504
+ children: /* @__PURE__ */ H(Hg, {
8502
8505
  ...f,
8503
8506
  mode: "datetime",
8504
8507
  value: n,
@@ -8506,7 +8509,7 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8506
8509
  placeholder: i.placeholder
8507
8510
  })
8508
8511
  });
8509
- case "file": return /* @__PURE__ */ H(_h, {
8512
+ case "file": return /* @__PURE__ */ H(bh, {
8510
8513
  ...f,
8511
8514
  value: n,
8512
8515
  onChange: r,
@@ -8515,7 +8518,7 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8515
8518
  maxFiles: i.maxFiles,
8516
8519
  maxSize: i.maxSize
8517
8520
  });
8518
- case "entity_picker": return /* @__PURE__ */ H(dh, {
8521
+ case "entity_picker": return /* @__PURE__ */ H(mh, {
8519
8522
  ...f,
8520
8523
  value: n,
8521
8524
  onChange: r,
@@ -8527,13 +8530,13 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8527
8530
  entitySubtitleField: i.entitySubtitleField,
8528
8531
  placeholder: i.placeholder
8529
8532
  });
8530
- case "static": return /* @__PURE__ */ H(wg, {
8533
+ case "static": return /* @__PURE__ */ H(Dg, {
8531
8534
  id: t,
8532
8535
  value: n
8533
8536
  });
8534
8537
  case "phone": return /* @__PURE__ */ H(lt, {
8535
- fallback: /* @__PURE__ */ H(Hg, {}),
8536
- children: /* @__PURE__ */ H(Rg, {
8538
+ fallback: /* @__PURE__ */ H(Gg, {}),
8539
+ children: /* @__PURE__ */ H(Vg, {
8537
8540
  ...f,
8538
8541
  value: n,
8539
8542
  onChange: r,
@@ -8543,8 +8546,8 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8543
8546
  })
8544
8547
  });
8545
8548
  case "document": return /* @__PURE__ */ H(lt, {
8546
- fallback: /* @__PURE__ */ H(Hg, {}),
8547
- children: /* @__PURE__ */ H(Bg, {
8549
+ fallback: /* @__PURE__ */ H(Gg, {}),
8550
+ children: /* @__PURE__ */ H(Ug, {
8548
8551
  ...f,
8549
8552
  value: n,
8550
8553
  onChange: r,
@@ -8554,7 +8557,7 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8554
8557
  placeholder: i.placeholder
8555
8558
  })
8556
8559
  });
8557
- case "currency": return /* @__PURE__ */ H(Gp, {
8560
+ case "currency": return /* @__PURE__ */ H(Jp, {
8558
8561
  ...f,
8559
8562
  value: n,
8560
8563
  onChange: r,
@@ -8563,13 +8566,13 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8563
8566
  min: i.min,
8564
8567
  max: i.max
8565
8568
  });
8566
- case "color": return /* @__PURE__ */ H(Up, {
8569
+ case "color": return /* @__PURE__ */ H(Kp, {
8567
8570
  ...f,
8568
8571
  value: n,
8569
8572
  onChange: r,
8570
8573
  placeholder: i.placeholder
8571
8574
  });
8572
- case "slug": return /* @__PURE__ */ H(Cg, {
8575
+ case "slug": return /* @__PURE__ */ H(Eg, {
8573
8576
  ...f,
8574
8577
  value: n,
8575
8578
  onChange: r,
@@ -8577,7 +8580,7 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8577
8580
  prefix: i.prefix,
8578
8581
  placeholder: i.placeholder
8579
8582
  });
8580
- case "tags": return /* @__PURE__ */ H(Dg, {
8583
+ case "tags": return /* @__PURE__ */ H(Ag, {
8581
8584
  ...f,
8582
8585
  value: n,
8583
8586
  onChange: r,
@@ -8585,15 +8588,15 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8585
8588
  maxTags: i.maxTags
8586
8589
  });
8587
8590
  case "date_range": return /* @__PURE__ */ H(lt, {
8588
- fallback: /* @__PURE__ */ H(Hg, {}),
8589
- children: /* @__PURE__ */ H(Vg, {
8591
+ fallback: /* @__PURE__ */ H(Gg, {}),
8592
+ children: /* @__PURE__ */ H(Wg, {
8590
8593
  ...f,
8591
8594
  value: n,
8592
8595
  onChange: r,
8593
8596
  operator: i.operator
8594
8597
  })
8595
8598
  });
8596
- case "rating": return /* @__PURE__ */ H(vg, {
8599
+ case "rating": return /* @__PURE__ */ H(xg, {
8597
8600
  ...f,
8598
8601
  value: n,
8599
8602
  onChange: r,
@@ -8606,4 +8609,4 @@ function Kg(e, t, n, r, i, a, o, s, c, l, u, d) {
8606
8609
  }
8607
8610
  }
8608
8611
  //#endregion
8609
- export { mp as $, Up as A, ys as At, Np as B, cn as Bt, yh as C, sc as Ct, Jp as D, nc as Dt, Kp as E, cc as Et, Rp as F, Ds as Ft, Ap as G, Ip as H, Op as I, Bo as It, xp as J, Dp as K, Mp as L, hs as Lt, Vp as M, js as Mt, Bp as N, ss as Nt, qp as O, ks as Ot, zp as P, xs as Pt, vp as Q, kp as R, pn as Rt, wh as S, mc as St, dh as T, lc as Tt, Fp as U, Lp as V, jp as W, bp as X, _p as Y, yp as Z, vg as _, Xc as _t, Ng as a, fp as at, lg as b, Gc as bt, kg as c, sp as ct, Eg as d, ip as dt, hp as et, Tg as f, rl as ft, yg as g, Qc as gt, xg as h, $c as ht, Fg as i, cp as it, Hp as j, ds as jt, Gp as k, ps as kt, Og as l, ap as lt, Cg as m, nl as mt, Lg as n, rp as nt, jg as o, up as ot, wg as p, el as pt, Sp as q, Mg as r, op as rt, Ag as s, lp as st, Gg as t, pp as tt, Dg as u, dp as ut, pg as v, tl as vt, _h as w, oc as wt, Ph as x, vc as xt, ug as y, Zc as yt, Pp as z, hn as zt };
8612
+ export { _p as $, Kp as A, ys as At, Ip as B, cn as Bt, Sh as C, uc as Ct, Zp as D, nc as Dt, Yp as E, dc as Et, Vp as F, Ds as Ft, Np as G, zp as H, jp as I, Bo as It, wp as J, Ap as K, Fp as L, hs as Lt, Wp as M, js as Mt, Up as N, ss as Nt, Xp as O, ks as Ot, Hp as P, xs as Pt, xp as Q, Mp as R, pn as Rt, Dh as S, _c as St, mh as T, fc as Tt, Rp as U, Bp as V, Pp as W, Cp as X, bp as Y, Sp as Z, xg as _, $c as _t, Ig as a, hp as at, fg as b, Jc as bt, Mg as c, up as ct, kg as d, sp as dt, vp as et, Og as f, ol as ft, Sg as g, tl as gt, wg as h, nl as ht, Rg as i, dp as it, Gp as j, ds as jt, Jp as k, ps as kt, jg as l, cp as lt, Eg as m, al as mt, Bg as n, op as nt, Pg as o, pp as ot, Dg as p, rl as pt, Tp as q, Fg as r, lp as rt, Ng as s, fp as st, Jg as t, gp as tt, Ag as u, mp as ut, gg as v, il as vt, bh as w, lc as wt, Lh as x, xc as xt, pg as y, el as yt, Lp as z, hn as zt };