@middag-io/react 0.43.0 → 0.44.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.
@@ -4279,8 +4279,32 @@ function gu(e) {
4279
4279
  return fu.get(e);
4280
4280
  }
4281
4281
  //#endregion
4282
+ //#region src/lib/test-ids.ts
4283
+ var _u = {
4284
+ confirmDialog: "confirm-dialog",
4285
+ confirmDialogConfirm: "confirm-dialog-confirm",
4286
+ confirmDialogCancel: "confirm-dialog-cancel",
4287
+ formSubmit: "form-submit",
4288
+ rowActionsMenu: "row-actions"
4289
+ };
4290
+ function vu(e) {
4291
+ return `block-${e}`;
4292
+ }
4293
+ function yu(e) {
4294
+ return `action-${e}`;
4295
+ }
4296
+ function bu(e) {
4297
+ return `field-${e}`;
4298
+ }
4299
+ function xu(e) {
4300
+ return `row-${e}`;
4301
+ }
4302
+ function Su(e) {
4303
+ return `row-action-${e}`;
4304
+ }
4305
+ //#endregion
4282
4306
  //#region node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.mjs
4283
- var _u = [
4307
+ var Cu = [
4284
4308
  "a",
4285
4309
  "button",
4286
4310
  "div",
@@ -4310,7 +4334,7 @@ var _u = [
4310
4334
  ...e,
4311
4335
  [t]: r
4312
4336
  };
4313
- }, {}), vu = Object.freeze({
4337
+ }, {}), wu = Object.freeze({
4314
4338
  position: "absolute",
4315
4339
  border: 0,
4316
4340
  width: 1,
@@ -4321,16 +4345,16 @@ var _u = [
4321
4345
  clip: "rect(0, 0, 0, 0)",
4322
4346
  whiteSpace: "nowrap",
4323
4347
  wordWrap: "normal"
4324
- }), yu = "VisuallyHidden", bu = z.forwardRef((e, t) => /* @__PURE__ */ V(_u.span, {
4348
+ }), Tu = "VisuallyHidden", Eu = z.forwardRef((e, t) => /* @__PURE__ */ V(Cu.span, {
4325
4349
  ...e,
4326
4350
  ref: t,
4327
4351
  style: {
4328
- ...vu,
4352
+ ...wu,
4329
4353
  ...e.style
4330
4354
  }
4331
4355
  }));
4332
- bu.displayName = yu;
4333
- var xu = bu, Su = [
4356
+ Eu.displayName = Tu;
4357
+ var Du = Eu, Ou = [
4334
4358
  "a",
4335
4359
  "button",
4336
4360
  "div",
@@ -4360,14 +4384,14 @@ var xu = bu, Su = [
4360
4384
  ...e,
4361
4385
  [t]: r
4362
4386
  };
4363
- }, {}), Cu = "Dialog", [wu, Tu] = t(Cu), [Eu, Du] = wu(Cu), Ou = (e) => {
4387
+ }, {}), ku = "Dialog", [Au, ju] = t(ku), [Mu, Nu] = Au(ku), Pu = (e) => {
4364
4388
  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({
4365
4389
  prop: r,
4366
4390
  defaultProp: i ?? !1,
4367
4391
  onChange: a,
4368
- caller: Cu
4392
+ caller: ku
4369
4393
  });
4370
- return /* @__PURE__ */ V(Eu, {
4394
+ return /* @__PURE__ */ V(Mu, {
4371
4395
  scope: t,
4372
4396
  triggerRef: s,
4373
4397
  contentRef: c,
@@ -4381,24 +4405,24 @@ var xu = bu, Su = [
4381
4405
  children: n
4382
4406
  });
4383
4407
  };
4384
- Ou.displayName = Cu;
4385
- var ku = "DialogTrigger", Au = z.forwardRef((e, t) => {
4386
- let { __scopeDialog: n, ...r } = e, i = Du(ku, n), a = c(t, i.triggerRef);
4387
- return /* @__PURE__ */ V(Su.button, {
4408
+ Pu.displayName = ku;
4409
+ var Fu = "DialogTrigger", Iu = z.forwardRef((e, t) => {
4410
+ let { __scopeDialog: n, ...r } = e, i = Nu(Fu, n), a = c(t, i.triggerRef);
4411
+ return /* @__PURE__ */ V(Ou.button, {
4388
4412
  type: "button",
4389
4413
  "aria-haspopup": "dialog",
4390
4414
  "aria-expanded": i.open,
4391
4415
  "aria-controls": i.contentId,
4392
- "data-state": Xu(i.open),
4416
+ "data-state": nd(i.open),
4393
4417
  ...r,
4394
4418
  ref: a,
4395
4419
  onClick: s(e.onClick, i.onOpenToggle)
4396
4420
  });
4397
4421
  });
4398
- Au.displayName = ku;
4399
- var ju = "DialogPortal", [Mu, Nu] = wu(ju, { forceMount: void 0 }), Pu = (e) => {
4400
- let { __scopeDialog: t, forceMount: n, children: r, container: a } = e, o = Du(ju, t);
4401
- return /* @__PURE__ */ V(Mu, {
4422
+ Iu.displayName = Fu;
4423
+ var Lu = "DialogPortal", [Ru, zu] = Au(Lu, { forceMount: void 0 }), Bu = (e) => {
4424
+ let { __scopeDialog: t, forceMount: n, children: r, container: a } = e, o = Nu(Lu, t);
4425
+ return /* @__PURE__ */ V(Ru, {
4402
4426
  scope: t,
4403
4427
  forceMount: n,
4404
4428
  children: z.Children.map(r, (e) => /* @__PURE__ */ V(i, {
@@ -4411,26 +4435,26 @@ var ju = "DialogPortal", [Mu, Nu] = wu(ju, { forceMount: void 0 }), Pu = (e) =>
4411
4435
  }))
4412
4436
  });
4413
4437
  };
4414
- Pu.displayName = ju;
4415
- var Fu = "DialogOverlay", Iu = z.forwardRef((e, t) => {
4416
- let n = Nu(Fu, e.__scopeDialog), { forceMount: r = n.forceMount, ...a } = e, o = Du(Fu, e.__scopeDialog);
4438
+ Bu.displayName = Lu;
4439
+ var Vu = "DialogOverlay", Hu = z.forwardRef((e, t) => {
4440
+ let n = zu(Vu, e.__scopeDialog), { forceMount: r = n.forceMount, ...a } = e, o = Nu(Vu, e.__scopeDialog);
4417
4441
  return o.modal ? /* @__PURE__ */ V(i, {
4418
4442
  present: r || o.open,
4419
- children: /* @__PURE__ */ V(Ru, {
4443
+ children: /* @__PURE__ */ V(Wu, {
4420
4444
  ...a,
4421
4445
  ref: t
4422
4446
  })
4423
4447
  }) : null;
4424
4448
  });
4425
- Iu.displayName = Fu;
4426
- var Lu = f("DialogOverlay.RemoveScroll"), Ru = z.forwardRef((e, t) => {
4427
- let { __scopeDialog: n, ...r } = e, i = Du(Fu, n);
4449
+ Hu.displayName = Vu;
4450
+ var Uu = f("DialogOverlay.RemoveScroll"), Wu = z.forwardRef((e, t) => {
4451
+ let { __scopeDialog: n, ...r } = e, i = Nu(Vu, n);
4428
4452
  return /* @__PURE__ */ V(Je, {
4429
- as: Lu,
4453
+ as: Uu,
4430
4454
  allowPinchZoom: !0,
4431
4455
  shards: [i.contentRef],
4432
- children: /* @__PURE__ */ V(Su.div, {
4433
- "data-state": Xu(i.open),
4456
+ children: /* @__PURE__ */ V(Ou.div, {
4457
+ "data-state": nd(i.open),
4434
4458
  ...r,
4435
4459
  ref: t,
4436
4460
  style: {
@@ -4439,26 +4463,26 @@ var Lu = f("DialogOverlay.RemoveScroll"), Ru = z.forwardRef((e, t) => {
4439
4463
  }
4440
4464
  })
4441
4465
  });
4442
- }), zu = "DialogContent", Bu = z.forwardRef((e, t) => {
4443
- let n = Nu(zu, e.__scopeDialog), { forceMount: r = n.forceMount, ...a } = e, o = Du(zu, e.__scopeDialog);
4466
+ }), Gu = "DialogContent", Ku = z.forwardRef((e, t) => {
4467
+ let n = zu(Gu, e.__scopeDialog), { forceMount: r = n.forceMount, ...a } = e, o = Nu(Gu, e.__scopeDialog);
4444
4468
  return /* @__PURE__ */ V(i, {
4445
4469
  present: r || o.open,
4446
- children: o.modal ? /* @__PURE__ */ V(Vu, {
4470
+ children: o.modal ? /* @__PURE__ */ V(qu, {
4447
4471
  ...a,
4448
4472
  ref: t
4449
- }) : /* @__PURE__ */ V(Hu, {
4473
+ }) : /* @__PURE__ */ V(Ju, {
4450
4474
  ...a,
4451
4475
  ref: t
4452
4476
  })
4453
4477
  });
4454
4478
  });
4455
- Bu.displayName = zu;
4456
- var Vu = z.forwardRef((e, t) => {
4457
- let n = Du(zu, e.__scopeDialog), r = z.useRef(null), i = c(t, n.contentRef, r);
4479
+ Ku.displayName = Gu;
4480
+ var qu = z.forwardRef((e, t) => {
4481
+ let n = Nu(Gu, e.__scopeDialog), r = z.useRef(null), i = c(t, n.contentRef, r);
4458
4482
  return z.useEffect(() => {
4459
4483
  let e = r.current;
4460
4484
  if (e) return nt(e);
4461
- }, []), /* @__PURE__ */ V(Uu, {
4485
+ }, []), /* @__PURE__ */ V(Yu, {
4462
4486
  ...e,
4463
4487
  ref: i,
4464
4488
  trapFocus: n.open,
@@ -4472,9 +4496,9 @@ var Vu = z.forwardRef((e, t) => {
4472
4496
  }),
4473
4497
  onFocusOutside: s(e.onFocusOutside, (e) => e.preventDefault())
4474
4498
  });
4475
- }), Hu = z.forwardRef((e, t) => {
4476
- let n = Du(zu, e.__scopeDialog), r = z.useRef(!1), i = z.useRef(!1);
4477
- return /* @__PURE__ */ V(Uu, {
4499
+ }), Ju = z.forwardRef((e, t) => {
4500
+ let n = Nu(Gu, e.__scopeDialog), r = z.useRef(!1), i = z.useRef(!1);
4501
+ return /* @__PURE__ */ V(Yu, {
4478
4502
  ...e,
4479
4503
  ref: t,
4480
4504
  trapFocus: !1,
@@ -4488,8 +4512,8 @@ var Vu = z.forwardRef((e, t) => {
4488
4512
  n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
4489
4513
  }
4490
4514
  });
4491
- }), Uu = z.forwardRef((e, t) => {
4492
- let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = e, s = Du(zu, n), l = z.useRef(null), u = c(t, l);
4515
+ }), Yu = z.forwardRef((e, t) => {
4516
+ let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, ...o } = e, s = Nu(Gu, n), l = z.useRef(null), u = c(t, l);
4493
4517
  return Qe(), /* @__PURE__ */ H(vt, { children: [/* @__PURE__ */ V(Ye, {
4494
4518
  asChild: !0,
4495
4519
  loop: !0,
@@ -4501,52 +4525,52 @@ var Vu = z.forwardRef((e, t) => {
4501
4525
  id: s.contentId,
4502
4526
  "aria-describedby": s.descriptionId,
4503
4527
  "aria-labelledby": s.titleId,
4504
- "data-state": Xu(s.open),
4528
+ "data-state": nd(s.open),
4505
4529
  ...o,
4506
4530
  ref: u,
4507
4531
  onDismiss: () => s.onOpenChange(!1)
4508
4532
  })
4509
- }), /* @__PURE__ */ H(vt, { children: [/* @__PURE__ */ V(ed, { titleId: s.titleId }), /* @__PURE__ */ V(nd, {
4533
+ }), /* @__PURE__ */ H(vt, { children: [/* @__PURE__ */ V(od, { titleId: s.titleId }), /* @__PURE__ */ V(cd, {
4510
4534
  contentRef: l,
4511
4535
  descriptionId: s.descriptionId
4512
4536
  })] })] });
4513
- }), Wu = "DialogTitle", Gu = z.forwardRef((e, t) => {
4514
- let { __scopeDialog: n, ...r } = e, i = Du(Wu, n);
4515
- return /* @__PURE__ */ V(Su.h2, {
4537
+ }), Xu = "DialogTitle", Zu = z.forwardRef((e, t) => {
4538
+ let { __scopeDialog: n, ...r } = e, i = Nu(Xu, n);
4539
+ return /* @__PURE__ */ V(Ou.h2, {
4516
4540
  id: i.titleId,
4517
4541
  ...r,
4518
4542
  ref: t
4519
4543
  });
4520
4544
  });
4521
- Gu.displayName = Wu;
4522
- var Ku = "DialogDescription", qu = z.forwardRef((e, t) => {
4523
- let { __scopeDialog: n, ...r } = e, i = Du(Ku, n);
4524
- return /* @__PURE__ */ V(Su.p, {
4545
+ Zu.displayName = Xu;
4546
+ var Qu = "DialogDescription", $u = z.forwardRef((e, t) => {
4547
+ let { __scopeDialog: n, ...r } = e, i = Nu(Qu, n);
4548
+ return /* @__PURE__ */ V(Ou.p, {
4525
4549
  id: i.descriptionId,
4526
4550
  ...r,
4527
4551
  ref: t
4528
4552
  });
4529
4553
  });
4530
- qu.displayName = Ku;
4531
- var Ju = "DialogClose", Yu = z.forwardRef((e, t) => {
4532
- let { __scopeDialog: n, ...r } = e, i = Du(Ju, n);
4533
- return /* @__PURE__ */ V(Su.button, {
4554
+ $u.displayName = Qu;
4555
+ var ed = "DialogClose", td = z.forwardRef((e, t) => {
4556
+ let { __scopeDialog: n, ...r } = e, i = Nu(ed, n);
4557
+ return /* @__PURE__ */ V(Ou.button, {
4534
4558
  type: "button",
4535
4559
  ...r,
4536
4560
  ref: t,
4537
4561
  onClick: s(e.onClick, () => i.onOpenChange(!1))
4538
4562
  });
4539
4563
  });
4540
- Yu.displayName = Ju;
4541
- function Xu(e) {
4564
+ td.displayName = ed;
4565
+ function nd(e) {
4542
4566
  return e ? "open" : "closed";
4543
4567
  }
4544
- var Zu = "DialogTitleWarning", [Qu, $u] = u(Zu, {
4545
- contentName: zu,
4546
- titleName: Wu,
4568
+ var rd = "DialogTitleWarning", [id, ad] = u(rd, {
4569
+ contentName: Gu,
4570
+ titleName: Xu,
4547
4571
  docsSlug: "dialog"
4548
- }), ed = ({ titleId: e }) => {
4549
- let t = $u(Zu), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
4572
+ }), od = ({ titleId: e }) => {
4573
+ let t = ad(rd), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
4550
4574
 
4551
4575
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4552
4576
 
@@ -4554,8 +4578,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
4554
4578
  return z.useEffect(() => {
4555
4579
  e && (document.getElementById(e) || console.error(n));
4556
4580
  }, [n, e]), null;
4557
- }, td = "DialogDescriptionWarning", nd = ({ contentRef: e, descriptionId: t }) => {
4558
- let n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$u(td).contentName}}.`;
4581
+ }, sd = "DialogDescriptionWarning", cd = ({ contentRef: e, descriptionId: t }) => {
4582
+ let n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ad(sd).contentName}}.`;
4559
4583
  return z.useEffect(() => {
4560
4584
  let r = e.current?.getAttribute("aria-describedby");
4561
4585
  t && r && (document.getElementById(t) || console.warn(n));
@@ -4564,7 +4588,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
4564
4588
  e,
4565
4589
  t
4566
4590
  ]), null;
4567
- }, rd = Ou, id = Au, ad = Pu, od = Iu, sd = Bu, cd = Gu, ld = qu, ud = Yu, dd = [
4591
+ }, ld = Pu, ud = Iu, dd = Bu, fd = Hu, pd = Ku, md = Zu, hd = $u, gd = td, _d = [
4568
4592
  "a",
4569
4593
  "button",
4570
4594
  "div",
@@ -4594,61 +4618,61 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
4594
4618
  ...e,
4595
4619
  [t]: r
4596
4620
  };
4597
- }, {}), fd = ae();
4598
- function pd() {
4599
- return (0, fd.useSyncExternalStore)(md, () => !0, () => !1);
4621
+ }, {}), vd = ae();
4622
+ function yd() {
4623
+ return (0, vd.useSyncExternalStore)(bd, () => !0, () => !1);
4600
4624
  }
4601
- function md() {
4625
+ function bd() {
4602
4626
  return () => {};
4603
4627
  }
4604
4628
  //#endregion
4605
4629
  //#region node_modules/@radix-ui/react-avatar/dist/index.mjs
4606
- var hd = "Avatar", [gd, _d] = t(hd), [vd, yd] = gd(hd), bd = z.forwardRef((e, t) => {
4630
+ var xd = "Avatar", [Sd, Cd] = t(xd), [wd, Td] = Sd(xd), Ed = z.forwardRef((e, t) => {
4607
4631
  let { __scopeAvatar: n, ...r } = e, [i, a] = z.useState("idle");
4608
- return /* @__PURE__ */ V(vd, {
4632
+ return /* @__PURE__ */ V(wd, {
4609
4633
  scope: n,
4610
4634
  imageLoadingStatus: i,
4611
4635
  onImageLoadingStatusChange: a,
4612
- children: /* @__PURE__ */ V(dd.span, {
4636
+ children: /* @__PURE__ */ V(_d.span, {
4613
4637
  ...r,
4614
4638
  ref: t
4615
4639
  })
4616
4640
  });
4617
4641
  });
4618
- bd.displayName = hd;
4619
- var xd = "AvatarImage", Sd = z.forwardRef((t, n) => {
4620
- let { __scopeAvatar: r, src: i, onLoadingStatusChange: a = () => {}, ...o } = t, s = yd(xd, r), c = Ed(i, o), u = l((e) => {
4642
+ Ed.displayName = xd;
4643
+ var Dd = "AvatarImage", Od = z.forwardRef((t, n) => {
4644
+ let { __scopeAvatar: r, src: i, onLoadingStatusChange: a = () => {}, ...o } = t, s = Td(Dd, r), c = Md(i, o), u = l((e) => {
4621
4645
  a(e), s.onImageLoadingStatusChange(e);
4622
4646
  });
4623
4647
  return e(() => {
4624
4648
  c !== "idle" && u(c);
4625
- }, [c, u]), c === "loaded" ? /* @__PURE__ */ V(dd.img, {
4649
+ }, [c, u]), c === "loaded" ? /* @__PURE__ */ V(_d.img, {
4626
4650
  ...o,
4627
4651
  ref: n,
4628
4652
  src: i
4629
4653
  }) : null;
4630
4654
  });
4631
- Sd.displayName = xd;
4632
- var Cd = "AvatarFallback", wd = z.forwardRef((e, t) => {
4633
- let { __scopeAvatar: n, delayMs: r, ...i } = e, a = yd(Cd, n), [o, s] = z.useState(r === void 0);
4655
+ Od.displayName = Dd;
4656
+ var kd = "AvatarFallback", Ad = z.forwardRef((e, t) => {
4657
+ let { __scopeAvatar: n, delayMs: r, ...i } = e, a = Td(kd, n), [o, s] = z.useState(r === void 0);
4634
4658
  return z.useEffect(() => {
4635
4659
  if (r !== void 0) {
4636
4660
  let e = window.setTimeout(() => s(!0), r);
4637
4661
  return () => window.clearTimeout(e);
4638
4662
  }
4639
- }, [r]), o && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ V(dd.span, {
4663
+ }, [r]), o && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ V(_d.span, {
4640
4664
  ...i,
4641
4665
  ref: t
4642
4666
  }) : null;
4643
4667
  });
4644
- wd.displayName = Cd;
4645
- function Td(e, t) {
4668
+ Ad.displayName = kd;
4669
+ function jd(e, t) {
4646
4670
  return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
4647
4671
  }
4648
- function Ed(t, { referrerPolicy: n, crossOrigin: r }) {
4649
- let i = pd(), a = z.useRef(null), o = i ? (a.current ||= new window.Image(), a.current) : null, [s, c] = z.useState(() => Td(o, t));
4672
+ function Md(t, { referrerPolicy: n, crossOrigin: r }) {
4673
+ let i = yd(), a = z.useRef(null), o = i ? (a.current ||= new window.Image(), a.current) : null, [s, c] = z.useState(() => jd(o, t));
4650
4674
  return e(() => {
4651
- c(Td(o, t));
4675
+ c(jd(o, t));
4652
4676
  }, [o, t]), e(() => {
4653
4677
  let e = (e) => () => {
4654
4678
  c(e);
@@ -4664,10 +4688,10 @@ function Ed(t, { referrerPolicy: n, crossOrigin: r }) {
4664
4688
  n
4665
4689
  ]), s;
4666
4690
  }
4667
- var Dd = bd, Od = Sd, kd = wd;
4691
+ var Nd = Ed, Pd = Od, Fd = Ad;
4668
4692
  //#endregion
4669
4693
  //#region node_modules/@radix-ui/react-use-previous/dist/index.mjs
4670
- function Ad(e) {
4694
+ function Id(e) {
4671
4695
  let t = z.useRef({
4672
4696
  value: e,
4673
4697
  previous: e
@@ -4676,7 +4700,7 @@ function Ad(e) {
4676
4700
  }
4677
4701
  //#endregion
4678
4702
  //#region node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-primitive/dist/index.mjs
4679
- var jd = [
4703
+ var Ld = [
4680
4704
  "a",
4681
4705
  "button",
4682
4706
  "div",
@@ -4706,13 +4730,13 @@ var jd = [
4706
4730
  ...e,
4707
4731
  [t]: r
4708
4732
  };
4709
- }, {}), Md = "Checkbox", [Nd, Pd] = t(Md), [Fd, Id] = Nd(Md);
4710
- function Ld(e) {
4733
+ }, {}), Rd = "Checkbox", [zd, Bd] = t(Rd), [Vd, Hd] = zd(Rd);
4734
+ function Ud(e) {
4711
4735
  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({
4712
4736
  prop: n,
4713
4737
  defaultProp: i ?? !1,
4714
4738
  onChange: c,
4715
- caller: Md
4739
+ caller: Rd
4716
4740
  }), [m, h] = z.useState(null), [g, _] = z.useState(null), v = z.useRef(!1), y = !m || !!o || !!m.closest("form"), b = {
4717
4741
  checked: f,
4718
4742
  disabled: a,
@@ -4724,31 +4748,31 @@ function Ld(e) {
4724
4748
  value: u,
4725
4749
  hasConsumerStoppedPropagationRef: v,
4726
4750
  required: l,
4727
- defaultChecked: !Kd(i) && i,
4751
+ defaultChecked: !Qd(i) && i,
4728
4752
  isFormControl: y,
4729
4753
  bubbleInput: g,
4730
4754
  setBubbleInput: _
4731
4755
  };
4732
- return /* @__PURE__ */ V(Fd, {
4756
+ return /* @__PURE__ */ V(Vd, {
4733
4757
  scope: t,
4734
4758
  ...b,
4735
- children: Gd(d) ? d(b) : r
4759
+ children: Zd(d) ? d(b) : r
4736
4760
  });
4737
4761
  }
4738
- var Rd = "CheckboxTrigger", zd = z.forwardRef(({ __scopeCheckbox: e, onKeyDown: t, onClick: n, ...r }, i) => {
4739
- let { control: a, value: o, disabled: l, checked: u, required: d, setControl: f, setChecked: p, hasConsumerStoppedPropagationRef: m, isFormControl: h, bubbleInput: g } = Id(Rd, e), _ = c(i, f), v = z.useRef(u);
4762
+ var Wd = "CheckboxTrigger", Gd = z.forwardRef(({ __scopeCheckbox: e, onKeyDown: t, onClick: n, ...r }, i) => {
4763
+ let { control: a, value: o, disabled: l, checked: u, required: d, setControl: f, setChecked: p, hasConsumerStoppedPropagationRef: m, isFormControl: h, bubbleInput: g } = Hd(Wd, e), _ = c(i, f), v = z.useRef(u);
4740
4764
  return z.useEffect(() => {
4741
4765
  let e = a?.form;
4742
4766
  if (e) {
4743
4767
  let t = () => p(v.current);
4744
4768
  return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
4745
4769
  }
4746
- }, [a, p]), /* @__PURE__ */ V(jd.button, {
4770
+ }, [a, p]), /* @__PURE__ */ V(Ld.button, {
4747
4771
  type: "button",
4748
4772
  role: "checkbox",
4749
- "aria-checked": Kd(u) ? "mixed" : u,
4773
+ "aria-checked": Qd(u) ? "mixed" : u,
4750
4774
  "aria-required": d,
4751
- "data-state": qd(u),
4775
+ "data-state": $d(u),
4752
4776
  "data-disabled": l ? "" : void 0,
4753
4777
  disabled: l,
4754
4778
  value: o,
@@ -4758,14 +4782,14 @@ var Rd = "CheckboxTrigger", zd = z.forwardRef(({ __scopeCheckbox: e, onKeyDown:
4758
4782
  e.key === "Enter" && e.preventDefault();
4759
4783
  }),
4760
4784
  onClick: s(n, (e) => {
4761
- p((e) => Kd(e) ? !0 : !e), g && h && (m.current = e.isPropagationStopped(), m.current || e.stopPropagation());
4785
+ p((e) => Qd(e) ? !0 : !e), g && h && (m.current = e.isPropagationStopped(), m.current || e.stopPropagation());
4762
4786
  })
4763
4787
  });
4764
4788
  });
4765
- zd.displayName = Rd;
4766
- var Bd = z.forwardRef((e, t) => {
4789
+ Gd.displayName = Wd;
4790
+ var Kd = z.forwardRef((e, t) => {
4767
4791
  let { __scopeCheckbox: n, name: r, checked: i, defaultChecked: a, required: o, disabled: s, value: c, onCheckedChange: l, form: u, ...d } = e;
4768
- return /* @__PURE__ */ V(Ld, {
4792
+ return /* @__PURE__ */ V(Ud, {
4769
4793
  __scopeCheckbox: n,
4770
4794
  checked: i,
4771
4795
  defaultChecked: a,
@@ -4775,20 +4799,20 @@ var Bd = z.forwardRef((e, t) => {
4775
4799
  name: r,
4776
4800
  form: u,
4777
4801
  value: c,
4778
- internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ H(vt, { children: [/* @__PURE__ */ V(zd, {
4802
+ internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ H(vt, { children: [/* @__PURE__ */ V(Gd, {
4779
4803
  ...d,
4780
4804
  ref: t,
4781
4805
  __scopeCheckbox: n
4782
- }), e && /* @__PURE__ */ V(Wd, { __scopeCheckbox: n })] })
4806
+ }), e && /* @__PURE__ */ V(Xd, { __scopeCheckbox: n })] })
4783
4807
  });
4784
4808
  });
4785
- Bd.displayName = Md;
4786
- var Vd = "CheckboxIndicator", Hd = z.forwardRef((e, t) => {
4787
- let { __scopeCheckbox: n, forceMount: r, ...a } = e, o = Id(Vd, n);
4809
+ Kd.displayName = Rd;
4810
+ var qd = "CheckboxIndicator", Jd = z.forwardRef((e, t) => {
4811
+ let { __scopeCheckbox: n, forceMount: r, ...a } = e, o = Hd(qd, n);
4788
4812
  return /* @__PURE__ */ V(i, {
4789
- present: r || Kd(o.checked) || o.checked === !0,
4790
- children: /* @__PURE__ */ V(jd.span, {
4791
- "data-state": qd(o.checked),
4813
+ present: r || Qd(o.checked) || o.checked === !0,
4814
+ children: /* @__PURE__ */ V(Ld.span, {
4815
+ "data-state": $d(o.checked),
4792
4816
  "data-disabled": o.disabled ? "" : void 0,
4793
4817
  ...a,
4794
4818
  ref: t,
@@ -4799,16 +4823,16 @@ var Vd = "CheckboxIndicator", Hd = z.forwardRef((e, t) => {
4799
4823
  })
4800
4824
  });
4801
4825
  });
4802
- Hd.displayName = Vd;
4803
- var Ud = "CheckboxBubbleInput", Wd = z.forwardRef(({ __scopeCheckbox: e, ...t }, n) => {
4804
- let { control: r, hasConsumerStoppedPropagationRef: i, checked: a, defaultChecked: o, required: s, disabled: l, name: u, value: d, form: f, bubbleInput: p, setBubbleInput: m } = Id(Ud, e), h = c(n, m), g = Ad(a), _ = et(r);
4826
+ Jd.displayName = qd;
4827
+ var Yd = "CheckboxBubbleInput", Xd = z.forwardRef(({ __scopeCheckbox: e, ...t }, n) => {
4828
+ let { control: r, hasConsumerStoppedPropagationRef: i, checked: a, defaultChecked: o, required: s, disabled: l, name: u, value: d, form: f, bubbleInput: p, setBubbleInput: m } = Hd(Yd, e), h = c(n, m), g = Id(a), _ = et(r);
4805
4829
  z.useEffect(() => {
4806
4830
  let e = p;
4807
4831
  if (!e) return;
4808
4832
  let t = window.HTMLInputElement.prototype, n = Object.getOwnPropertyDescriptor(t, "checked").set, r = !i.current;
4809
4833
  if (g !== a && n) {
4810
4834
  let t = new Event("click", { bubbles: r });
4811
- e.indeterminate = Kd(a), n.call(e, !Kd(a) && a), e.dispatchEvent(t);
4835
+ e.indeterminate = Qd(a), n.call(e, !Qd(a) && a), e.dispatchEvent(t);
4812
4836
  }
4813
4837
  }, [
4814
4838
  p,
@@ -4816,8 +4840,8 @@ var Ud = "CheckboxBubbleInput", Wd = z.forwardRef(({ __scopeCheckbox: e, ...t },
4816
4840
  a,
4817
4841
  i
4818
4842
  ]);
4819
- let v = z.useRef(!Kd(a) && a);
4820
- return /* @__PURE__ */ V(jd.input, {
4843
+ let v = z.useRef(!Qd(a) && a);
4844
+ return /* @__PURE__ */ V(Ld.input, {
4821
4845
  type: "checkbox",
4822
4846
  "aria-hidden": !0,
4823
4847
  defaultChecked: o ?? v.current,
@@ -4840,19 +4864,19 @@ var Ud = "CheckboxBubbleInput", Wd = z.forwardRef(({ __scopeCheckbox: e, ...t },
4840
4864
  }
4841
4865
  });
4842
4866
  });
4843
- Wd.displayName = Ud;
4844
- function Gd(e) {
4867
+ Xd.displayName = Yd;
4868
+ function Zd(e) {
4845
4869
  return typeof e == "function";
4846
4870
  }
4847
- function Kd(e) {
4871
+ function Qd(e) {
4848
4872
  return e === "indeterminate";
4849
4873
  }
4850
- function qd(e) {
4851
- return Kd(e) ? "indeterminate" : e ? "checked" : "unchecked";
4874
+ function $d(e) {
4875
+ return Qd(e) ? "indeterminate" : e ? "checked" : "unchecked";
4852
4876
  }
4853
4877
  //#endregion
4854
4878
  //#region node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-primitive/dist/index.mjs
4855
- var Jd = [
4879
+ var ef = [
4856
4880
  "a",
4857
4881
  "button",
4858
4882
  "div",
@@ -4882,15 +4906,15 @@ var Jd = [
4882
4906
  ...e,
4883
4907
  [t]: r
4884
4908
  };
4885
- }, {}), Yd = "Label", Xd = z.forwardRef((e, t) => /* @__PURE__ */ V(Jd.label, {
4909
+ }, {}), tf = "Label", nf = z.forwardRef((e, t) => /* @__PURE__ */ V(ef.label, {
4886
4910
  ...e,
4887
4911
  ref: t,
4888
4912
  onMouseDown: (t) => {
4889
4913
  t.target.closest("button, input, select, textarea") || (e.onMouseDown?.(t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
4890
4914
  }
4891
4915
  }));
4892
- Xd.displayName = Yd;
4893
- var Zd = Xd, Qd = [
4916
+ nf.displayName = tf;
4917
+ var rf = nf, af = [
4894
4918
  "a",
4895
4919
  "button",
4896
4920
  "div",
@@ -4920,17 +4944,17 @@ var Zd = Xd, Qd = [
4920
4944
  ...e,
4921
4945
  [t]: r
4922
4946
  };
4923
- }, {}), $d = "Radio", [ef, tf] = t($d), [nf, rf] = ef($d), af = z.forwardRef((e, t) => {
4947
+ }, {}), of = "Radio", [sf, cf] = t(of), [lf, uf] = sf(of), df = z.forwardRef((e, t) => {
4924
4948
  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");
4925
- return /* @__PURE__ */ H(nf, {
4949
+ return /* @__PURE__ */ H(lf, {
4926
4950
  scope: n,
4927
4951
  checked: i,
4928
4952
  disabled: o,
4929
- children: [/* @__PURE__ */ V(Qd.button, {
4953
+ children: [/* @__PURE__ */ V(af.button, {
4930
4954
  type: "button",
4931
4955
  role: "radio",
4932
4956
  "aria-checked": i,
4933
- "data-state": uf(i),
4957
+ "data-state": gf(i),
4934
4958
  "data-disabled": o ? "" : void 0,
4935
4959
  disabled: o,
4936
4960
  value: l,
@@ -4939,7 +4963,7 @@ var Zd = Xd, Qd = [
4939
4963
  onClick: s(e.onClick, (e) => {
4940
4964
  i || u?.(), _ && (g.current = e.isPropagationStopped(), g.current || e.stopPropagation());
4941
4965
  })
4942
- }), _ && /* @__PURE__ */ V(lf, {
4966
+ }), _ && /* @__PURE__ */ V(hf, {
4943
4967
  control: p,
4944
4968
  bubbles: !g.current,
4945
4969
  name: r,
@@ -4952,22 +4976,22 @@ var Zd = Xd, Qd = [
4952
4976
  })]
4953
4977
  });
4954
4978
  });
4955
- af.displayName = $d;
4956
- var of = "RadioIndicator", sf = z.forwardRef((e, t) => {
4957
- let { __scopeRadio: n, forceMount: r, ...a } = e, o = rf(of, n);
4979
+ df.displayName = of;
4980
+ var ff = "RadioIndicator", pf = z.forwardRef((e, t) => {
4981
+ let { __scopeRadio: n, forceMount: r, ...a } = e, o = uf(ff, n);
4958
4982
  return /* @__PURE__ */ V(i, {
4959
4983
  present: r || o.checked,
4960
- children: /* @__PURE__ */ V(Qd.span, {
4961
- "data-state": uf(o.checked),
4984
+ children: /* @__PURE__ */ V(af.span, {
4985
+ "data-state": gf(o.checked),
4962
4986
  "data-disabled": o.disabled ? "" : void 0,
4963
4987
  ...a,
4964
4988
  ref: t
4965
4989
  })
4966
4990
  });
4967
4991
  });
4968
- sf.displayName = of;
4969
- var cf = "RadioBubbleInput", lf = z.forwardRef(({ __scopeRadio: e, control: t, checked: n, bubbles: r = !0, ...i }, a) => {
4970
- let o = z.useRef(null), s = c(o, a), l = Ad(n), u = et(t);
4992
+ pf.displayName = ff;
4993
+ var mf = "RadioBubbleInput", hf = z.forwardRef(({ __scopeRadio: e, control: t, checked: n, bubbles: r = !0, ...i }, a) => {
4994
+ let o = z.useRef(null), s = c(o, a), l = Id(n), u = et(t);
4971
4995
  return z.useEffect(() => {
4972
4996
  let e = o.current;
4973
4997
  if (!e) return;
@@ -4980,7 +5004,7 @@ var cf = "RadioBubbleInput", lf = z.forwardRef(({ __scopeRadio: e, control: t, c
4980
5004
  l,
4981
5005
  n,
4982
5006
  r
4983
- ]), /* @__PURE__ */ V(Qd.input, {
5007
+ ]), /* @__PURE__ */ V(af.input, {
4984
5008
  type: "radio",
4985
5009
  "aria-hidden": !0,
4986
5010
  defaultChecked: n,
@@ -4997,23 +5021,23 @@ var cf = "RadioBubbleInput", lf = z.forwardRef(({ __scopeRadio: e, control: t, c
4997
5021
  }
4998
5022
  });
4999
5023
  });
5000
- lf.displayName = cf;
5001
- function uf(e) {
5024
+ hf.displayName = mf;
5025
+ function gf(e) {
5002
5026
  return e ? "checked" : "unchecked";
5003
5027
  }
5004
- var df = [
5028
+ var _f = [
5005
5029
  "ArrowUp",
5006
5030
  "ArrowDown",
5007
5031
  "ArrowLeft",
5008
5032
  "ArrowRight"
5009
- ], ff = "RadioGroup", [pf, mf] = t(ff, [Ve, tf]), hf = Ve(), gf = tf(), [_f, vf] = pf(ff), yf = z.forwardRef((e, t) => {
5010
- 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 = hf(n), m = Ge(l), [h, g] = Ue({
5033
+ ], vf = "RadioGroup", [yf, bf] = t(vf, [Ve, cf]), xf = Ve(), Sf = cf(), [Cf, wf] = yf(vf), Tf = z.forwardRef((e, t) => {
5034
+ 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 = xf(n), m = Ge(l), [h, g] = Ue({
5011
5035
  prop: a,
5012
5036
  defaultProp: i ?? null,
5013
5037
  onChange: d,
5014
- caller: ff
5038
+ caller: vf
5015
5039
  });
5016
- return /* @__PURE__ */ V(_f, {
5040
+ return /* @__PURE__ */ V(Cf, {
5017
5041
  scope: n,
5018
5042
  name: r,
5019
5043
  required: o,
@@ -5026,7 +5050,7 @@ var df = [
5026
5050
  orientation: c,
5027
5051
  dir: m,
5028
5052
  loop: u,
5029
- children: /* @__PURE__ */ V(Qd.div, {
5053
+ children: /* @__PURE__ */ V(af.div, {
5030
5054
  role: "radiogroup",
5031
5055
  "aria-required": o,
5032
5056
  "aria-orientation": c,
@@ -5038,12 +5062,12 @@ var df = [
5038
5062
  })
5039
5063
  });
5040
5064
  });
5041
- yf.displayName = ff;
5042
- var bf = "RadioGroupItem", xf = z.forwardRef((e, t) => {
5043
- let { __scopeRadioGroup: n, disabled: r, ...i } = e, a = vf(bf, n), o = a.disabled || r, l = hf(n), u = gf(n), d = z.useRef(null), f = c(t, d), p = a.value === i.value, m = z.useRef(!1);
5065
+ Tf.displayName = vf;
5066
+ var Ef = "RadioGroupItem", Df = z.forwardRef((e, t) => {
5067
+ let { __scopeRadioGroup: n, disabled: r, ...i } = e, a = wf(Ef, n), o = a.disabled || r, l = xf(n), u = Sf(n), d = z.useRef(null), f = c(t, d), p = a.value === i.value, m = z.useRef(!1);
5044
5068
  return z.useEffect(() => {
5045
5069
  let e = (e) => {
5046
- df.includes(e.key) && (m.current = !0);
5070
+ _f.includes(e.key) && (m.current = !0);
5047
5071
  }, t = () => m.current = !1;
5048
5072
  return document.addEventListener("keydown", e), document.addEventListener("keyup", t), () => {
5049
5073
  document.removeEventListener("keydown", e), document.removeEventListener("keyup", t);
@@ -5053,7 +5077,7 @@ var bf = "RadioGroupItem", xf = z.forwardRef((e, t) => {
5053
5077
  ...l,
5054
5078
  focusable: !o,
5055
5079
  active: p,
5056
- children: /* @__PURE__ */ V(af, {
5080
+ children: /* @__PURE__ */ V(df, {
5057
5081
  disabled: o,
5058
5082
  required: a.required,
5059
5083
  checked: p,
@@ -5071,17 +5095,17 @@ var bf = "RadioGroupItem", xf = z.forwardRef((e, t) => {
5071
5095
  })
5072
5096
  });
5073
5097
  });
5074
- xf.displayName = bf;
5075
- var Sf = "RadioGroupIndicator", Cf = z.forwardRef((e, t) => {
5098
+ Df.displayName = Ef;
5099
+ var Of = "RadioGroupIndicator", kf = z.forwardRef((e, t) => {
5076
5100
  let { __scopeRadioGroup: n, ...r } = e;
5077
- return /* @__PURE__ */ V(sf, {
5078
- ...gf(n),
5101
+ return /* @__PURE__ */ V(pf, {
5102
+ ...Sf(n),
5079
5103
  ...r,
5080
5104
  ref: t
5081
5105
  });
5082
5106
  });
5083
- Cf.displayName = Sf;
5084
- var wf = yf, Tf = xf, Ef = Cf, $ = [
5107
+ kf.displayName = Of;
5108
+ var Af = Tf, jf = Df, Mf = kf, $ = [
5085
5109
  "a",
5086
5110
  "button",
5087
5111
  "div",
@@ -5111,26 +5135,26 @@ var wf = yf, Tf = xf, Ef = Cf, $ = [
5111
5135
  ...e,
5112
5136
  [t]: r
5113
5137
  };
5114
- }, {}), Df = [
5138
+ }, {}), Nf = [
5115
5139
  " ",
5116
5140
  "Enter",
5117
5141
  "ArrowUp",
5118
5142
  "ArrowDown"
5119
- ], Of = [" ", "Enter"], kf = "Select", [Af, jf, Mf] = ze(kf), [Nf, Pf] = t(kf, [Mf, qe]), Ff = qe(), [If, Lf] = Nf(kf), [Rf, zf] = Nf(kf), Bf = (e) => {
5120
- 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 = Ff(t), [g, _] = z.useState(null), [v, y] = z.useState(null), [b, x] = z.useState(!1), S = Ge(l), [C, w] = Ue({
5143
+ ], Pf = [" ", "Enter"], Ff = "Select", [If, Lf, Rf] = ze(Ff), [zf, Bf] = t(Ff, [Rf, qe]), Vf = qe(), [Hf, Uf] = zf(Ff), [Wf, Gf] = zf(Ff), Kf = (e) => {
5144
+ 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 = Vf(t), [g, _] = z.useState(null), [v, y] = z.useState(null), [b, x] = z.useState(!1), S = Ge(l), [C, w] = Ue({
5121
5145
  prop: r,
5122
5146
  defaultProp: i ?? !1,
5123
5147
  onChange: a,
5124
- caller: kf
5148
+ caller: Ff
5125
5149
  }), [T, E] = Ue({
5126
5150
  prop: o,
5127
5151
  defaultProp: s,
5128
5152
  onChange: c,
5129
- caller: kf
5153
+ caller: Ff
5130
5154
  }), D = z.useRef(null), O = !g || m || !!g.closest("form"), [k, A] = z.useState(/* @__PURE__ */ new Set()), j = Array.from(k).map((e) => e.props.value).join(";");
5131
5155
  return /* @__PURE__ */ V(Ze, {
5132
5156
  ...h,
5133
- children: /* @__PURE__ */ H(If, {
5157
+ children: /* @__PURE__ */ H(Hf, {
5134
5158
  required: p,
5135
5159
  scope: t,
5136
5160
  trigger: g,
@@ -5147,9 +5171,9 @@ var wf = yf, Tf = xf, Ef = Cf, $ = [
5147
5171
  dir: S,
5148
5172
  triggerPointerDownPosRef: D,
5149
5173
  disabled: f,
5150
- children: [/* @__PURE__ */ V(Af.Provider, {
5174
+ children: [/* @__PURE__ */ V(If.Provider, {
5151
5175
  scope: t,
5152
- children: /* @__PURE__ */ V(Rf, {
5176
+ children: /* @__PURE__ */ V(Wf, {
5153
5177
  scope: e.__scopeSelect,
5154
5178
  onNativeOptionAdd: z.useCallback((e) => {
5155
5179
  A((t) => new Set(t).add(e));
@@ -5162,7 +5186,7 @@ var wf = yf, Tf = xf, Ef = Cf, $ = [
5162
5186
  }, []),
5163
5187
  children: n
5164
5188
  })
5165
- }), O ? /* @__PURE__ */ H(Fp, {
5189
+ }), O ? /* @__PURE__ */ H(Vp, {
5166
5190
  "aria-hidden": !0,
5167
5191
  required: p,
5168
5192
  tabIndex: -1,
@@ -5177,10 +5201,10 @@ var wf = yf, Tf = xf, Ef = Cf, $ = [
5177
5201
  })
5178
5202
  });
5179
5203
  };
5180
- Bf.displayName = kf;
5181
- var Vf = "SelectTrigger", Hf = z.forwardRef((e, t) => {
5182
- let { __scopeSelect: n, disabled: r = !1, ...i } = e, a = Ff(n), o = Lf(Vf, n), l = o.disabled || r, u = c(t, o.onTriggerChange), d = jf(n), f = z.useRef("touch"), [p, m, h] = Lp((e) => {
5183
- let t = d().filter((e) => !e.disabled), n = Rp(t, e, t.find((e) => e.value === o.value));
5204
+ Kf.displayName = Ff;
5205
+ var qf = "SelectTrigger", Jf = z.forwardRef((e, t) => {
5206
+ let { __scopeSelect: n, disabled: r = !1, ...i } = e, a = Vf(n), o = Uf(qf, n), l = o.disabled || r, u = c(t, o.onTriggerChange), d = Lf(n), f = z.useRef("touch"), [p, m, h] = Up((e) => {
5207
+ let t = d().filter((e) => !e.disabled), n = Wp(t, e, t.find((e) => e.value === o.value));
5184
5208
  n !== void 0 && o.onValueChange(n.value);
5185
5209
  }), g = (e) => {
5186
5210
  l || (o.onOpenChange(!0), h()), e && (o.triggerPointerDownPosRef.current = {
@@ -5202,7 +5226,7 @@ var Vf = "SelectTrigger", Hf = z.forwardRef((e, t) => {
5202
5226
  "data-state": o.open ? "open" : "closed",
5203
5227
  disabled: l,
5204
5228
  "data-disabled": l ? "" : void 0,
5205
- "data-placeholder": Ip(o.value) ? "" : void 0,
5229
+ "data-placeholder": Hp(o.value) ? "" : void 0,
5206
5230
  ...i,
5207
5231
  ref: u,
5208
5232
  onClick: s(i.onClick, (e) => {
@@ -5215,25 +5239,25 @@ var Vf = "SelectTrigger", Hf = z.forwardRef((e, t) => {
5215
5239
  }),
5216
5240
  onKeyDown: s(i.onKeyDown, (e) => {
5217
5241
  let t = p.current !== "";
5218
- !(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && m(e.key), !(t && e.key === " ") && Df.includes(e.key) && (g(), e.preventDefault());
5242
+ !(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && m(e.key), !(t && e.key === " ") && Nf.includes(e.key) && (g(), e.preventDefault());
5219
5243
  })
5220
5244
  })
5221
5245
  });
5222
5246
  });
5223
- Hf.displayName = Vf;
5224
- var Uf = "SelectValue", Wf = z.forwardRef((t, n) => {
5225
- let { __scopeSelect: r, className: i, style: a, children: o, placeholder: s = "", ...l } = t, u = Lf(Uf, r), { onValueNodeHasChildrenChange: d } = u, f = o !== void 0, p = c(n, u.onValueNodeChange);
5247
+ Jf.displayName = qf;
5248
+ var Yf = "SelectValue", Xf = z.forwardRef((t, n) => {
5249
+ let { __scopeSelect: r, className: i, style: a, children: o, placeholder: s = "", ...l } = t, u = Uf(Yf, r), { onValueNodeHasChildrenChange: d } = u, f = o !== void 0, p = c(n, u.onValueNodeChange);
5226
5250
  return e(() => {
5227
5251
  d(f);
5228
5252
  }, [d, f]), /* @__PURE__ */ V($.span, {
5229
5253
  ...l,
5230
5254
  ref: p,
5231
5255
  style: { pointerEvents: "none" },
5232
- children: Ip(u.value) ? /* @__PURE__ */ V(vt, { children: s }) : o
5256
+ children: Hp(u.value) ? /* @__PURE__ */ V(vt, { children: s }) : o
5233
5257
  });
5234
5258
  });
5235
- Wf.displayName = Uf;
5236
- var Gf = "SelectIcon", Kf = z.forwardRef((e, t) => {
5259
+ Xf.displayName = Yf;
5260
+ var Zf = "SelectIcon", Qf = z.forwardRef((e, t) => {
5237
5261
  let { __scopeSelect: n, children: r, ...i } = e;
5238
5262
  return /* @__PURE__ */ V($.span, {
5239
5263
  "aria-hidden": !0,
@@ -5242,34 +5266,34 @@ var Gf = "SelectIcon", Kf = z.forwardRef((e, t) => {
5242
5266
  children: r || "▼"
5243
5267
  });
5244
5268
  });
5245
- Kf.displayName = Gf;
5246
- var qf = "SelectPortal", Jf = (e) => /* @__PURE__ */ V(it, {
5269
+ Qf.displayName = Zf;
5270
+ var $f = "SelectPortal", ep = (e) => /* @__PURE__ */ V(it, {
5247
5271
  asChild: !0,
5248
5272
  ...e
5249
5273
  });
5250
- Jf.displayName = qf;
5251
- var Yf = "SelectContent", Xf = z.forwardRef((t, n) => {
5252
- let r = Lf(Yf, t.__scopeSelect), [i, a] = z.useState();
5274
+ ep.displayName = $f;
5275
+ var tp = "SelectContent", np = z.forwardRef((t, n) => {
5276
+ let r = Uf(tp, t.__scopeSelect), [i, a] = z.useState();
5253
5277
  if (e(() => {
5254
5278
  a(new DocumentFragment());
5255
5279
  }, []), !r.open) {
5256
5280
  let e = i;
5257
- return e ? bt.createPortal(/* @__PURE__ */ V(Qf, {
5281
+ return e ? bt.createPortal(/* @__PURE__ */ V(ip, {
5258
5282
  scope: t.__scopeSelect,
5259
- children: /* @__PURE__ */ V(Af.Slot, {
5283
+ children: /* @__PURE__ */ V(If.Slot, {
5260
5284
  scope: t.__scopeSelect,
5261
5285
  children: /* @__PURE__ */ V("div", { children: t.children })
5262
5286
  })
5263
5287
  }), e) : null;
5264
5288
  }
5265
- return /* @__PURE__ */ V(np, {
5289
+ return /* @__PURE__ */ V(cp, {
5266
5290
  ...t,
5267
5291
  ref: n
5268
5292
  });
5269
5293
  });
5270
- Xf.displayName = Yf;
5271
- var Zf = 10, [Qf, $f] = Nf(Yf), ep = "SelectContentImpl", tp = f("SelectContent.RemoveScroll"), np = z.forwardRef((e, t) => {
5272
- 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 = Lf(Yf, 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 = jf(n), [j, M] = z.useState(!1), N = z.useRef(!1);
5294
+ np.displayName = tp;
5295
+ var rp = 10, [ip, ap] = zf(tp), op = "SelectContentImpl", sp = f("SelectContent.RemoveScroll"), cp = z.forwardRef((e, t) => {
5296
+ 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 = Uf(tp, 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 = Lf(n), [j, M] = z.useState(!1), N = z.useRef(!1);
5273
5297
  z.useEffect(() => {
5274
5298
  if (x) return nt(x);
5275
5299
  }, [x]), Qe();
@@ -5315,8 +5339,8 @@ var Zf = 10, [Qf, $f] = Nf(Yf), ep = "SelectContentImpl", tp = f("SelectContent.
5315
5339
  window.removeEventListener("blur", e), window.removeEventListener("resize", e);
5316
5340
  };
5317
5341
  }, [P]);
5318
- let [ne, re] = Lp((e) => {
5319
- let t = A().filter((e) => !e.disabled), n = Rp(t, e, t.find((e) => e.ref.current === document.activeElement));
5342
+ let [ne, re] = Up((e) => {
5343
+ let t = A().filter((e) => !e.disabled), n = Wp(t, e, t.find((e) => e.ref.current === document.activeElement));
5320
5344
  n && setTimeout(() => n.ref.current.focus());
5321
5345
  }), ie = z.useCallback((e, t, n) => {
5322
5346
  let r = !N.current && !n;
@@ -5324,7 +5348,7 @@ var Zf = 10, [Qf, $f] = Nf(Yf), ep = "SelectContentImpl", tp = f("SelectContent.
5324
5348
  }, [b.value]), ae = z.useCallback(() => x?.focus(), [x]), oe = z.useCallback((e, t, n) => {
5325
5349
  let r = !N.current && !n;
5326
5350
  (b.value !== void 0 && b.value === t || r) && k(e);
5327
- }, [b.value]), se = r === "popper" ? op : ip, ce = se === op ? {
5351
+ }, [b.value]), se = r === "popper" ? fp : up, ce = se === fp ? {
5328
5352
  side: l,
5329
5353
  sideOffset: u,
5330
5354
  align: d,
@@ -5336,7 +5360,7 @@ var Zf = 10, [Qf, $f] = Nf(Yf), ep = "SelectContentImpl", tp = f("SelectContent.
5336
5360
  hideWhenDetached: _,
5337
5361
  avoidCollisions: v
5338
5362
  } : {};
5339
- return /* @__PURE__ */ V(Qf, {
5363
+ return /* @__PURE__ */ V(ip, {
5340
5364
  scope: n,
5341
5365
  content: x,
5342
5366
  viewport: C,
@@ -5351,7 +5375,7 @@ var Zf = 10, [Qf, $f] = Nf(Yf), ep = "SelectContentImpl", tp = f("SelectContent.
5351
5375
  isPositioned: j,
5352
5376
  searchRef: ne,
5353
5377
  children: /* @__PURE__ */ V(Je, {
5354
- as: tp,
5378
+ as: sp,
5355
5379
  allowPinchZoom: !0,
5356
5380
  children: /* @__PURE__ */ V(Ye, {
5357
5381
  asChild: !0,
@@ -5407,19 +5431,19 @@ var Zf = 10, [Qf, $f] = Nf(Yf), ep = "SelectContentImpl", tp = f("SelectContent.
5407
5431
  })
5408
5432
  });
5409
5433
  });
5410
- np.displayName = ep;
5411
- var rp = "SelectItemAlignedPosition", ip = z.forwardRef((t, n) => {
5412
- let { __scopeSelect: r, onPlaced: i, ...a } = t, o = Lf(Yf, r), s = $f(Yf, r), [l, u] = z.useState(null), [d, f] = z.useState(null), p = c(n, (e) => f(e)), m = jf(r), h = z.useRef(!1), g = z.useRef(!0), { viewport: _, selectedItem: v, selectedItemText: y, focusSelectedItem: b } = s, x = z.useCallback(() => {
5434
+ cp.displayName = op;
5435
+ var lp = "SelectItemAlignedPosition", up = z.forwardRef((t, n) => {
5436
+ let { __scopeSelect: r, onPlaced: i, ...a } = t, o = Uf(tp, r), s = ap(tp, r), [l, u] = z.useState(null), [d, f] = z.useState(null), p = c(n, (e) => f(e)), m = Lf(r), h = z.useRef(!1), g = z.useRef(!0), { viewport: _, selectedItem: v, selectedItemText: y, focusSelectedItem: b } = s, x = z.useCallback(() => {
5413
5437
  if (o.trigger && o.valueNode && l && d && _ && v && y) {
5414
5438
  let e = o.trigger.getBoundingClientRect(), t = d.getBoundingClientRect(), n = o.valueNode.getBoundingClientRect(), r = y.getBoundingClientRect();
5415
5439
  if (o.dir !== "rtl") {
5416
- 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 - Zf, d = Ke(a, [Zf, Math.max(Zf, u - c)]);
5440
+ 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 - rp, d = Ke(a, [rp, Math.max(rp, u - c)]);
5417
5441
  l.style.minWidth = s + "px", l.style.left = d + "px";
5418
5442
  } else {
5419
- 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 - Zf, d = Ke(a, [Zf, Math.max(Zf, u - c)]);
5443
+ 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 - rp, d = Ke(a, [rp, Math.max(rp, u - c)]);
5420
5444
  l.style.minWidth = s + "px", l.style.right = d + "px";
5421
5445
  }
5422
- let a = m(), s = window.innerHeight - Zf * 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 - Zf, D = s - E, O = v.offsetHeight / 2, k = v.offsetTop + O, A = f + p + k, j = x - A;
5446
+ let a = m(), s = window.innerHeight - rp * 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 - rp, D = s - E, O = v.offsetHeight / 2, k = v.offsetTop + O, A = f + p + k, j = x - A;
5423
5447
  if (A <= E) {
5424
5448
  let e = a.length > 0 && v === a[a.length - 1].ref.current;
5425
5449
  l.style.bottom = "0px";
@@ -5431,7 +5455,7 @@ var rp = "SelectItemAlignedPosition", ip = z.forwardRef((t, n) => {
5431
5455
  let t = Math.max(E, f + _.offsetTop + (e ? w : 0) + O) + j;
5432
5456
  l.style.height = t + "px", _.scrollTop = A - E + _.offsetTop;
5433
5457
  }
5434
- l.style.margin = `${Zf}px 0`, l.style.minHeight = S + "px", l.style.maxHeight = s + "px", i?.(), requestAnimationFrame(() => h.current = !0);
5458
+ l.style.margin = `${rp}px 0`, l.style.minHeight = S + "px", l.style.maxHeight = s + "px", i?.(), requestAnimationFrame(() => h.current = !0);
5435
5459
  }
5436
5460
  }, [
5437
5461
  m,
@@ -5449,7 +5473,7 @@ var rp = "SelectItemAlignedPosition", ip = z.forwardRef((t, n) => {
5449
5473
  let [S, C] = z.useState();
5450
5474
  return e(() => {
5451
5475
  d && C(window.getComputedStyle(d).zIndex);
5452
- }, [d]), /* @__PURE__ */ V(sp, {
5476
+ }, [d]), /* @__PURE__ */ V(pp, {
5453
5477
  scope: r,
5454
5478
  contentWrapper: l,
5455
5479
  shouldExpandOnScrollRef: h,
@@ -5476,11 +5500,11 @@ var rp = "SelectItemAlignedPosition", ip = z.forwardRef((t, n) => {
5476
5500
  })
5477
5501
  });
5478
5502
  });
5479
- ip.displayName = rp;
5480
- var ap = "SelectPopperPosition", op = z.forwardRef((e, t) => {
5481
- let { __scopeSelect: n, align: r = "start", collisionPadding: i = Zf, ...a } = e;
5503
+ up.displayName = lp;
5504
+ var dp = "SelectPopperPosition", fp = z.forwardRef((e, t) => {
5505
+ let { __scopeSelect: n, align: r = "start", collisionPadding: i = rp, ...a } = e;
5482
5506
  return /* @__PURE__ */ V(tt, {
5483
- ...Ff(n),
5507
+ ...Vf(n),
5484
5508
  ...a,
5485
5509
  ref: t,
5486
5510
  align: r,
@@ -5496,13 +5520,13 @@ var ap = "SelectPopperPosition", op = z.forwardRef((e, t) => {
5496
5520
  }
5497
5521
  });
5498
5522
  });
5499
- op.displayName = ap;
5500
- var [sp, cp] = Nf(Yf, {}), lp = "SelectViewport", up = z.forwardRef((e, t) => {
5501
- let { __scopeSelect: n, nonce: r, ...i } = e, a = $f(lp, n), o = cp(lp, n), l = c(t, a.onViewportChange), u = z.useRef(0);
5523
+ fp.displayName = dp;
5524
+ var [pp, mp] = zf(tp, {}), hp = "SelectViewport", gp = z.forwardRef((e, t) => {
5525
+ let { __scopeSelect: n, nonce: r, ...i } = e, a = ap(hp, n), o = mp(hp, n), l = c(t, a.onViewportChange), u = z.useRef(0);
5502
5526
  return /* @__PURE__ */ H(vt, { children: [/* @__PURE__ */ V("style", {
5503
5527
  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}" },
5504
5528
  nonce: r
5505
- }), /* @__PURE__ */ V(Af.Slot, {
5529
+ }), /* @__PURE__ */ V(If.Slot, {
5506
5530
  scope: n,
5507
5531
  children: /* @__PURE__ */ V($.div, {
5508
5532
  "data-radix-select-viewport": "",
@@ -5520,7 +5544,7 @@ var [sp, cp] = Nf(Yf, {}), lp = "SelectViewport", up = z.forwardRef((e, t) => {
5520
5544
  if (r?.current && n) {
5521
5545
  let e = Math.abs(u.current - t.scrollTop);
5522
5546
  if (e > 0) {
5523
- let r = window.innerHeight - Zf * 2, i = parseFloat(n.style.minHeight), a = parseFloat(n.style.height), o = Math.max(i, a);
5547
+ let r = window.innerHeight - rp * 2, i = parseFloat(n.style.minHeight), a = parseFloat(n.style.height), o = Math.max(i, a);
5524
5548
  if (o < r) {
5525
5549
  let i = o + e, a = Math.min(r, i), s = i - a;
5526
5550
  n.style.height = a + "px", n.style.bottom === "0px" && (t.scrollTop = s > 0 ? s : 0, n.style.justifyContent = "flex-end");
@@ -5532,10 +5556,10 @@ var [sp, cp] = Nf(Yf, {}), lp = "SelectViewport", up = z.forwardRef((e, t) => {
5532
5556
  })
5533
5557
  })] });
5534
5558
  });
5535
- up.displayName = lp;
5536
- var dp = "SelectGroup", [fp, pp] = Nf(dp), mp = z.forwardRef((e, t) => {
5559
+ gp.displayName = hp;
5560
+ var _p = "SelectGroup", [vp, yp] = zf(_p), bp = z.forwardRef((e, t) => {
5537
5561
  let { __scopeSelect: n, ...r } = e, i = We();
5538
- return /* @__PURE__ */ V(fp, {
5562
+ return /* @__PURE__ */ V(vp, {
5539
5563
  scope: n,
5540
5564
  id: i,
5541
5565
  children: /* @__PURE__ */ V($.div, {
@@ -5546,22 +5570,22 @@ var dp = "SelectGroup", [fp, pp] = Nf(dp), mp = z.forwardRef((e, t) => {
5546
5570
  })
5547
5571
  });
5548
5572
  });
5549
- mp.displayName = dp;
5550
- var hp = "SelectLabel", gp = z.forwardRef((e, t) => {
5551
- let { __scopeSelect: n, ...r } = e, i = pp(hp, n);
5573
+ bp.displayName = _p;
5574
+ var xp = "SelectLabel", Sp = z.forwardRef((e, t) => {
5575
+ let { __scopeSelect: n, ...r } = e, i = yp(xp, n);
5552
5576
  return /* @__PURE__ */ V($.div, {
5553
5577
  id: i.id,
5554
5578
  ...r,
5555
5579
  ref: t
5556
5580
  });
5557
5581
  });
5558
- gp.displayName = hp;
5559
- var _p = "SelectItem", [vp, yp] = Nf(_p), bp = z.forwardRef((e, t) => {
5560
- let { __scopeSelect: n, value: r, disabled: i = !1, textValue: a, ...o } = e, l = Lf(_p, n), u = $f(_p, 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 = () => {
5582
+ Sp.displayName = xp;
5583
+ var Cp = "SelectItem", [wp, Tp] = zf(Cp), Ep = z.forwardRef((e, t) => {
5584
+ let { __scopeSelect: n, value: r, disabled: i = !1, textValue: a, ...o } = e, l = Uf(Cp, n), u = ap(Cp, 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 = () => {
5561
5585
  i || (l.onValueChange(r), l.onOpenChange(!1));
5562
5586
  };
5563
5587
  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.");
5564
- return /* @__PURE__ */ V(vp, {
5588
+ return /* @__PURE__ */ V(wp, {
5565
5589
  scope: n,
5566
5590
  value: r,
5567
5591
  disabled: i,
@@ -5570,7 +5594,7 @@ var _p = "SelectItem", [vp, yp] = Nf(_p), bp = z.forwardRef((e, t) => {
5570
5594
  onItemTextChange: z.useCallback((e) => {
5571
5595
  p((t) => t || (e?.textContent ?? "").trim());
5572
5596
  }, []),
5573
- children: /* @__PURE__ */ V(Af.ItemSlot, {
5597
+ children: /* @__PURE__ */ V(If.ItemSlot, {
5574
5598
  scope: n,
5575
5599
  value: r,
5576
5600
  disabled: i,
@@ -5604,15 +5628,15 @@ var _p = "SelectItem", [vp, yp] = Nf(_p), bp = z.forwardRef((e, t) => {
5604
5628
  e.currentTarget === document.activeElement && u.onItemLeave?.();
5605
5629
  }),
5606
5630
  onKeyDown: s(o.onKeyDown, (e) => {
5607
- u.searchRef?.current !== "" && e.key === " " || (Of.includes(e.key) && y(), e.key === " " && e.preventDefault());
5631
+ u.searchRef?.current !== "" && e.key === " " || (Pf.includes(e.key) && y(), e.key === " " && e.preventDefault());
5608
5632
  })
5609
5633
  })
5610
5634
  })
5611
5635
  });
5612
5636
  });
5613
- bp.displayName = _p;
5614
- var xp = "SelectItemText", Sp = z.forwardRef((t, n) => {
5615
- let { __scopeSelect: r, className: i, style: a, ...o } = t, s = Lf(xp, r), l = $f(xp, r), u = yp(xp, r), d = zf(xp, 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__ */ V("option", {
5637
+ Ep.displayName = Cp;
5638
+ var Dp = "SelectItemText", Op = z.forwardRef((t, n) => {
5639
+ let { __scopeSelect: r, className: i, style: a, ...o } = t, s = Uf(Dp, r), l = ap(Dp, r), u = Tp(Dp, r), d = Gf(Dp, 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__ */ V("option", {
5616
5640
  value: u.value,
5617
5641
  disabled: u.disabled,
5618
5642
  children: h
@@ -5631,18 +5655,18 @@ var xp = "SelectItemText", Sp = z.forwardRef((t, n) => {
5631
5655
  ref: m
5632
5656
  }), u.isSelected && s.valueNode && !s.valueNodeHasChildren ? bt.createPortal(o.children, s.valueNode) : null] });
5633
5657
  });
5634
- Sp.displayName = xp;
5635
- var Cp = "SelectItemIndicator", wp = z.forwardRef((e, t) => {
5658
+ Op.displayName = Dp;
5659
+ var kp = "SelectItemIndicator", Ap = z.forwardRef((e, t) => {
5636
5660
  let { __scopeSelect: n, ...r } = e;
5637
- return yp(Cp, n).isSelected ? /* @__PURE__ */ V($.span, {
5661
+ return Tp(kp, n).isSelected ? /* @__PURE__ */ V($.span, {
5638
5662
  "aria-hidden": !0,
5639
5663
  ...r,
5640
5664
  ref: t
5641
5665
  }) : null;
5642
5666
  });
5643
- wp.displayName = Cp;
5644
- var Tp = "SelectScrollUpButton", Ep = z.forwardRef((t, n) => {
5645
- let r = $f(Tp, t.__scopeSelect), i = cp(Tp, t.__scopeSelect), [a, o] = z.useState(!1), s = c(n, i.onScrollButtonChange);
5667
+ Ap.displayName = kp;
5668
+ var jp = "SelectScrollUpButton", Mp = z.forwardRef((t, n) => {
5669
+ let r = ap(jp, t.__scopeSelect), i = mp(jp, t.__scopeSelect), [a, o] = z.useState(!1), s = c(n, i.onScrollButtonChange);
5646
5670
  return e(() => {
5647
5671
  if (r.viewport && r.isPositioned) {
5648
5672
  let e = function() {
@@ -5651,7 +5675,7 @@ var Tp = "SelectScrollUpButton", Ep = z.forwardRef((t, n) => {
5651
5675
  }, t = r.viewport;
5652
5676
  return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
5653
5677
  }
5654
- }, [r.viewport, r.isPositioned]), a ? /* @__PURE__ */ V(kp, {
5678
+ }, [r.viewport, r.isPositioned]), a ? /* @__PURE__ */ V(Fp, {
5655
5679
  ...t,
5656
5680
  ref: s,
5657
5681
  onAutoScroll: () => {
@@ -5660,9 +5684,9 @@ var Tp = "SelectScrollUpButton", Ep = z.forwardRef((t, n) => {
5660
5684
  }
5661
5685
  }) : null;
5662
5686
  });
5663
- Ep.displayName = Tp;
5664
- var Dp = "SelectScrollDownButton", Op = z.forwardRef((t, n) => {
5665
- let r = $f(Dp, t.__scopeSelect), i = cp(Dp, t.__scopeSelect), [a, o] = z.useState(!1), s = c(n, i.onScrollButtonChange);
5687
+ Mp.displayName = jp;
5688
+ var Np = "SelectScrollDownButton", Pp = z.forwardRef((t, n) => {
5689
+ let r = ap(Np, t.__scopeSelect), i = mp(Np, t.__scopeSelect), [a, o] = z.useState(!1), s = c(n, i.onScrollButtonChange);
5666
5690
  return e(() => {
5667
5691
  if (r.viewport && r.isPositioned) {
5668
5692
  let e = function() {
@@ -5671,7 +5695,7 @@ var Dp = "SelectScrollDownButton", Op = z.forwardRef((t, n) => {
5671
5695
  }, t = r.viewport;
5672
5696
  return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
5673
5697
  }
5674
- }, [r.viewport, r.isPositioned]), a ? /* @__PURE__ */ V(kp, {
5698
+ }, [r.viewport, r.isPositioned]), a ? /* @__PURE__ */ V(Fp, {
5675
5699
  ...t,
5676
5700
  ref: s,
5677
5701
  onAutoScroll: () => {
@@ -5680,9 +5704,9 @@ var Dp = "SelectScrollDownButton", Op = z.forwardRef((t, n) => {
5680
5704
  }
5681
5705
  }) : null;
5682
5706
  });
5683
- Op.displayName = Dp;
5684
- var kp = z.forwardRef((t, n) => {
5685
- let { __scopeSelect: r, onAutoScroll: i, ...a } = t, o = $f("SelectScrollButton", r), c = z.useRef(null), l = jf(r), u = z.useCallback(() => {
5707
+ Pp.displayName = Np;
5708
+ var Fp = z.forwardRef((t, n) => {
5709
+ let { __scopeSelect: r, onAutoScroll: i, ...a } = t, o = ap("SelectScrollButton", r), c = z.useRef(null), l = Lf(r), u = z.useCallback(() => {
5686
5710
  c.current !== null && (window.clearInterval(c.current), c.current = null);
5687
5711
  }, []);
5688
5712
  return z.useEffect(() => () => u(), [u]), e(() => {
@@ -5705,7 +5729,7 @@ var kp = z.forwardRef((t, n) => {
5705
5729
  u();
5706
5730
  })
5707
5731
  });
5708
- }), Ap = "SelectSeparator", jp = z.forwardRef((e, t) => {
5732
+ }), Ip = "SelectSeparator", Lp = z.forwardRef((e, t) => {
5709
5733
  let { __scopeSelect: n, ...r } = e;
5710
5734
  return /* @__PURE__ */ V($.div, {
5711
5735
  "aria-hidden": !0,
@@ -5713,18 +5737,18 @@ var kp = z.forwardRef((t, n) => {
5713
5737
  ref: t
5714
5738
  });
5715
5739
  });
5716
- jp.displayName = Ap;
5717
- var Mp = "SelectArrow", Np = z.forwardRef((e, t) => {
5718
- let { __scopeSelect: n, ...r } = e, i = Ff(n), a = Lf(Mp, n), o = $f(Mp, n);
5740
+ Lp.displayName = Ip;
5741
+ var Rp = "SelectArrow", zp = z.forwardRef((e, t) => {
5742
+ let { __scopeSelect: n, ...r } = e, i = Vf(n), a = Uf(Rp, n), o = ap(Rp, n);
5719
5743
  return a.open && o.position === "popper" ? /* @__PURE__ */ V($e, {
5720
5744
  ...i,
5721
5745
  ...r,
5722
5746
  ref: t
5723
5747
  }) : null;
5724
5748
  });
5725
- Np.displayName = Mp;
5726
- var Pp = "SelectBubbleInput", Fp = z.forwardRef(({ __scopeSelect: e, value: t, ...n }, r) => {
5727
- let i = z.useRef(null), a = c(r, i), o = Ad(t);
5749
+ zp.displayName = Rp;
5750
+ var Bp = "SelectBubbleInput", Vp = z.forwardRef(({ __scopeSelect: e, value: t, ...n }, r) => {
5751
+ let i = z.useRef(null), a = c(r, i), o = Id(t);
5728
5752
  return z.useEffect(() => {
5729
5753
  let e = i.current;
5730
5754
  if (!e) return;
@@ -5736,18 +5760,18 @@ var Pp = "SelectBubbleInput", Fp = z.forwardRef(({ __scopeSelect: e, value: t, .
5736
5760
  }, [o, t]), /* @__PURE__ */ V($.select, {
5737
5761
  ...n,
5738
5762
  style: {
5739
- ...vu,
5763
+ ...wu,
5740
5764
  ...n.style
5741
5765
  },
5742
5766
  ref: a,
5743
5767
  defaultValue: t
5744
5768
  });
5745
5769
  });
5746
- Fp.displayName = Pp;
5747
- function Ip(e) {
5770
+ Vp.displayName = Bp;
5771
+ function Hp(e) {
5748
5772
  return e === "" || e === void 0;
5749
5773
  }
5750
- function Lp(e) {
5774
+ function Up(e) {
5751
5775
  let t = l(e), n = z.useRef(""), r = z.useRef(0), i = z.useCallback((e) => {
5752
5776
  let i = n.current + e;
5753
5777
  t(i), (function e(t) {
@@ -5762,16 +5786,16 @@ function Lp(e) {
5762
5786
  a
5763
5787
  ];
5764
5788
  }
5765
- function Rp(e, t, n) {
5766
- let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = zp(e, Math.max(i, 0));
5789
+ function Wp(e, t, n) {
5790
+ let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = Gp(e, Math.max(i, 0));
5767
5791
  r.length === 1 && (a = a.filter((e) => e !== n));
5768
5792
  let o = a.find((e) => e.textValue.toLowerCase().startsWith(r.toLowerCase()));
5769
5793
  return o === n ? void 0 : o;
5770
5794
  }
5771
- function zp(e, t) {
5795
+ function Gp(e, t) {
5772
5796
  return e.map((n, r) => e[(t + r) % e.length]);
5773
5797
  }
5774
- var Bp = Bf, Vp = Hf, Hp = Wf, Up = Kf, Wp = Jf, Gp = Xf, Kp = up, qp = mp, Jp = gp, Yp = bp, Xp = Sp, Zp = wp, Qp = Ep, $p = Op, em = jp, tm = [
5798
+ var Kp = Kf, qp = Jf, Jp = Xf, Yp = Qf, Xp = ep, Zp = np, Qp = gp, $p = bp, em = Sp, tm = Ep, nm = Op, rm = Ap, im = Mp, am = Pp, om = Lp, sm = [
5775
5799
  "a",
5776
5800
  "button",
5777
5801
  "div",
@@ -5801,23 +5825,23 @@ var Bp = Bf, Vp = Hf, Hp = Wf, Up = Kf, Wp = Jf, Gp = Xf, Kp = up, qp = mp, Jp =
5801
5825
  ...e,
5802
5826
  [t]: r
5803
5827
  };
5804
- }, {}), nm = "Separator", rm = "horizontal", im = ["horizontal", "vertical"], am = z.forwardRef((e, t) => {
5805
- let { decorative: n, orientation: r = rm, ...i } = e, a = om(r) ? r : rm, o = n ? { role: "none" } : {
5828
+ }, {}), cm = "Separator", lm = "horizontal", um = ["horizontal", "vertical"], dm = z.forwardRef((e, t) => {
5829
+ let { decorative: n, orientation: r = lm, ...i } = e, a = fm(r) ? r : lm, o = n ? { role: "none" } : {
5806
5830
  "aria-orientation": a === "vertical" ? a : void 0,
5807
5831
  role: "separator"
5808
5832
  };
5809
- return /* @__PURE__ */ V(tm.div, {
5833
+ return /* @__PURE__ */ V(sm.div, {
5810
5834
  "data-orientation": a,
5811
5835
  ...o,
5812
5836
  ...i,
5813
5837
  ref: t
5814
5838
  });
5815
5839
  });
5816
- am.displayName = nm;
5817
- function om(e) {
5818
- return im.includes(e);
5840
+ dm.displayName = cm;
5841
+ function fm(e) {
5842
+ return um.includes(e);
5819
5843
  }
5820
- var sm = am, cm = [
5844
+ var pm = dm, mm = [
5821
5845
  "a",
5822
5846
  "button",
5823
5847
  "div",
@@ -5847,12 +5871,12 @@ var sm = am, cm = [
5847
5871
  ...e,
5848
5872
  [t]: r
5849
5873
  };
5850
- }, {}), lm = ["PageUp", "PageDown"], um = [
5874
+ }, {}), hm = ["PageUp", "PageDown"], gm = [
5851
5875
  "ArrowUp",
5852
5876
  "ArrowDown",
5853
5877
  "ArrowLeft",
5854
5878
  "ArrowRight"
5855
- ], dm = {
5879
+ ], _m = {
5856
5880
  "from-left": [
5857
5881
  "Home",
5858
5882
  "PageDown",
@@ -5877,8 +5901,8 @@ var sm = am, cm = [
5877
5901
  "ArrowUp",
5878
5902
  "ArrowLeft"
5879
5903
  ]
5880
- }, fm = "Slider", [pm, mm, hm] = ze(fm), [gm, _m] = t(fm, [hm]), [vm, ym] = gm(fm), bm = z.forwardRef((e, t) => {
5881
- 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" ? Cm : wm, [b = [], x] = Ue({
5904
+ }, vm = "Slider", [ym, bm, xm] = ze(vm), [Sm, Cm] = t(vm, [xm]), [wm, Tm] = Sm(vm), Em = z.forwardRef((e, t) => {
5905
+ 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" ? km : Am, [b = [], x] = Ue({
5882
5906
  prop: d,
5883
5907
  defaultProp: u,
5884
5908
  onChange: (e) => {
@@ -5886,7 +5910,7 @@ var sm = am, cm = [
5886
5910
  }
5887
5911
  }), S = z.useRef(b);
5888
5912
  function C(e) {
5889
- E(e, Rm(b, e));
5913
+ E(e, Wm(b, e));
5890
5914
  }
5891
5915
  function w(e) {
5892
5916
  E(e, v.current);
@@ -5896,17 +5920,17 @@ var sm = am, cm = [
5896
5920
  b[v.current] !== e && p(b);
5897
5921
  }
5898
5922
  function E(e, t, { commit: n } = { commit: !1 }) {
5899
- let o = Um(a), s = Ke(Wm(Math.round((e - r) / a) * a + r, o), [r, i]);
5923
+ let o = Ym(a), s = Ke(Xm(Math.round((e - r) / a) * a + r, o), [r, i]);
5900
5924
  x((e = []) => {
5901
- let r = Fm(e, s, t);
5902
- if (Vm(r, l * a)) {
5925
+ let r = Vm(e, s, t);
5926
+ if (qm(r, l * a)) {
5903
5927
  v.current = r.indexOf(s);
5904
5928
  let t = String(r) !== String(e);
5905
5929
  return t && n && p(r), t ? r : e;
5906
5930
  } else return e;
5907
5931
  });
5908
5932
  }
5909
- return /* @__PURE__ */ V(vm, {
5933
+ return /* @__PURE__ */ V(wm, {
5910
5934
  scope: e.__scopeSlider,
5911
5935
  name: n,
5912
5936
  disabled: c,
@@ -5917,9 +5941,9 @@ var sm = am, cm = [
5917
5941
  values: b,
5918
5942
  orientation: o,
5919
5943
  form: h,
5920
- children: /* @__PURE__ */ V(pm.Provider, {
5944
+ children: /* @__PURE__ */ V(ym.Provider, {
5921
5945
  scope: e.__scopeSlider,
5922
- children: /* @__PURE__ */ V(pm.Slot, {
5946
+ children: /* @__PURE__ */ V(ym.Slot, {
5923
5947
  scope: e.__scopeSlider,
5924
5948
  children: /* @__PURE__ */ V(y, {
5925
5949
  "aria-disabled": c,
@@ -5939,7 +5963,7 @@ var sm = am, cm = [
5939
5963
  onEndKeyDown: () => !c && E(i, b.length - 1, { commit: !0 }),
5940
5964
  onStepKeyDown: ({ event: e, direction: t }) => {
5941
5965
  if (!c) {
5942
- let n = lm.includes(e.key) || e.shiftKey && um.includes(e.key) ? 10 : 1, r = v.current, i = b[r];
5966
+ let n = hm.includes(e.key) || e.shiftKey && gm.includes(e.key) ? 10 : 1, r = v.current, i = b[r];
5943
5967
  E(i + a * n * t, r, { commit: !0 });
5944
5968
  }
5945
5969
  }
@@ -5948,25 +5972,25 @@ var sm = am, cm = [
5948
5972
  })
5949
5973
  });
5950
5974
  });
5951
- bm.displayName = fm;
5952
- var [xm, Sm] = gm(fm, {
5975
+ Em.displayName = vm;
5976
+ var [Dm, Om] = Sm(vm, {
5953
5977
  startEdge: "left",
5954
5978
  endEdge: "right",
5955
5979
  size: "width",
5956
5980
  direction: 1
5957
- }), Cm = z.forwardRef((e, t) => {
5981
+ }), km = z.forwardRef((e, t) => {
5958
5982
  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;
5959
5983
  function y(e) {
5960
- let t = h.current || f.getBoundingClientRect(), i = Hm([0, t.width], v ? [n, r] : [r, n]);
5984
+ let t = h.current || f.getBoundingClientRect(), i = Jm([0, t.width], v ? [n, r] : [r, n]);
5961
5985
  return h.current = t, i(e - t.left);
5962
5986
  }
5963
- return /* @__PURE__ */ V(xm, {
5987
+ return /* @__PURE__ */ V(Dm, {
5964
5988
  scope: e.__scopeSlider,
5965
5989
  startEdge: v ? "left" : "right",
5966
5990
  endEdge: v ? "right" : "left",
5967
5991
  direction: v ? 1 : -1,
5968
5992
  size: "width",
5969
- children: /* @__PURE__ */ V(Tm, {
5993
+ children: /* @__PURE__ */ V(jm, {
5970
5994
  dir: g,
5971
5995
  "data-orientation": "horizontal",
5972
5996
  ...d,
@@ -5987,7 +6011,7 @@ var [xm, Sm] = gm(fm, {
5987
6011
  h.current = void 0, l?.();
5988
6012
  },
5989
6013
  onStepKeyDown: (e) => {
5990
- let t = dm[v ? "from-left" : "from-right"].includes(e.key);
6014
+ let t = _m[v ? "from-left" : "from-right"].includes(e.key);
5991
6015
  u?.({
5992
6016
  event: e,
5993
6017
  direction: t ? -1 : 1
@@ -5995,19 +6019,19 @@ var [xm, Sm] = gm(fm, {
5995
6019
  }
5996
6020
  })
5997
6021
  });
5998
- }), wm = z.forwardRef((e, t) => {
6022
+ }), Am = z.forwardRef((e, t) => {
5999
6023
  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;
6000
6024
  function h(e) {
6001
- let t = p.current || d.current.getBoundingClientRect(), i = Hm([0, t.height], m ? [r, n] : [n, r]);
6025
+ let t = p.current || d.current.getBoundingClientRect(), i = Jm([0, t.height], m ? [r, n] : [n, r]);
6002
6026
  return p.current = t, i(e - t.top);
6003
6027
  }
6004
- return /* @__PURE__ */ V(xm, {
6028
+ return /* @__PURE__ */ V(Dm, {
6005
6029
  scope: e.__scopeSlider,
6006
6030
  startEdge: m ? "bottom" : "top",
6007
6031
  endEdge: m ? "top" : "bottom",
6008
6032
  size: "height",
6009
6033
  direction: m ? 1 : -1,
6010
- children: /* @__PURE__ */ V(Tm, {
6034
+ children: /* @__PURE__ */ V(jm, {
6011
6035
  "data-orientation": "vertical",
6012
6036
  ...u,
6013
6037
  ref: f,
@@ -6027,7 +6051,7 @@ var [xm, Sm] = gm(fm, {
6027
6051
  p.current = void 0, s?.();
6028
6052
  },
6029
6053
  onStepKeyDown: (e) => {
6030
- let t = dm[m ? "from-bottom" : "from-top"].includes(e.key);
6054
+ let t = _m[m ? "from-bottom" : "from-top"].includes(e.key);
6031
6055
  l?.({
6032
6056
  event: e,
6033
6057
  direction: t ? -1 : 1
@@ -6035,13 +6059,13 @@ var [xm, Sm] = gm(fm, {
6035
6059
  }
6036
6060
  })
6037
6061
  });
6038
- }), Tm = z.forwardRef((e, t) => {
6039
- let { __scopeSlider: n, onSlideStart: r, onSlideMove: i, onSlideEnd: a, onHomeKeyDown: o, onEndKeyDown: c, onStepKeyDown: l, ...u } = e, d = ym(fm, n);
6040
- return /* @__PURE__ */ V(cm.span, {
6062
+ }), jm = z.forwardRef((e, t) => {
6063
+ let { __scopeSlider: n, onSlideStart: r, onSlideMove: i, onSlideEnd: a, onHomeKeyDown: o, onEndKeyDown: c, onStepKeyDown: l, ...u } = e, d = Tm(vm, n);
6064
+ return /* @__PURE__ */ V(mm.span, {
6041
6065
  ...u,
6042
6066
  ref: t,
6043
6067
  onKeyDown: s(e.onKeyDown, (e) => {
6044
- e.key === "Home" ? (o(e), e.preventDefault()) : e.key === "End" ? (c(e), e.preventDefault()) : lm.concat(um).includes(e.key) && (l(e), e.preventDefault());
6068
+ e.key === "Home" ? (o(e), e.preventDefault()) : e.key === "End" ? (c(e), e.preventDefault()) : hm.concat(gm).includes(e.key) && (l(e), e.preventDefault());
6045
6069
  }),
6046
6070
  onPointerDown: s(e.onPointerDown, (e) => {
6047
6071
  let t = e.target;
@@ -6055,19 +6079,19 @@ var [xm, Sm] = gm(fm, {
6055
6079
  t.hasPointerCapture(e.pointerId) && (t.releasePointerCapture(e.pointerId), a(e));
6056
6080
  })
6057
6081
  });
6058
- }), Em = "SliderTrack", Dm = z.forwardRef((e, t) => {
6059
- let { __scopeSlider: n, ...r } = e, i = ym(Em, n);
6060
- return /* @__PURE__ */ V(cm.span, {
6082
+ }), Mm = "SliderTrack", Nm = z.forwardRef((e, t) => {
6083
+ let { __scopeSlider: n, ...r } = e, i = Tm(Mm, n);
6084
+ return /* @__PURE__ */ V(mm.span, {
6061
6085
  "data-disabled": i.disabled ? "" : void 0,
6062
6086
  "data-orientation": i.orientation,
6063
6087
  ...r,
6064
6088
  ref: t
6065
6089
  });
6066
6090
  });
6067
- Dm.displayName = Em;
6068
- var Om = "SliderRange", km = z.forwardRef((e, t) => {
6069
- let { __scopeSlider: n, ...r } = e, i = ym(Om, n), a = Sm(Om, n), o = c(t, z.useRef(null)), s = i.values.length, l = i.values.map((e) => Im(e, i.min, i.max)), u = s > 1 ? Math.min(...l) : 0, d = 100 - Math.max(...l);
6070
- return /* @__PURE__ */ V(cm.span, {
6091
+ Nm.displayName = Mm;
6092
+ var Pm = "SliderRange", Fm = z.forwardRef((e, t) => {
6093
+ let { __scopeSlider: n, ...r } = e, i = Tm(Pm, n), a = Om(Pm, n), o = c(t, z.useRef(null)), s = i.values.length, l = i.values.map((e) => Hm(e, i.min, i.max)), u = s > 1 ? Math.min(...l) : 0, d = 100 - Math.max(...l);
6094
+ return /* @__PURE__ */ V(mm.span, {
6071
6095
  "data-orientation": i.orientation,
6072
6096
  "data-disabled": i.disabled ? "" : void 0,
6073
6097
  ...r,
@@ -6079,16 +6103,16 @@ var Om = "SliderRange", km = z.forwardRef((e, t) => {
6079
6103
  }
6080
6104
  });
6081
6105
  });
6082
- km.displayName = Om;
6083
- var Am = "SliderThumb", jm = z.forwardRef((e, t) => {
6084
- let n = mm(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]);
6085
- return /* @__PURE__ */ V(Mm, {
6106
+ Fm.displayName = Pm;
6107
+ var Im = "SliderThumb", Lm = z.forwardRef((e, t) => {
6108
+ let n = bm(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]);
6109
+ return /* @__PURE__ */ V(Rm, {
6086
6110
  ...e,
6087
6111
  ref: a,
6088
6112
  index: o
6089
6113
  });
6090
- }), Mm = z.forwardRef((e, t) => {
6091
- let { __scopeSlider: n, index: r, name: i, ...a } = e, o = ym(Am, n), l = Sm(Am, n), [u, d] = z.useState(null), f = c(t, (e) => d(e)), p = !u || o.form || !!u.closest("form"), m = et(u), h = o.values[r], g = h === void 0 ? 0 : Im(h, o.min, o.max), _ = Lm(r, o.values.length), v = m?.[l.size], y = v ? zm(v, g, l.direction) : 0;
6114
+ }), Rm = z.forwardRef((e, t) => {
6115
+ let { __scopeSlider: n, index: r, name: i, ...a } = e, o = Tm(Im, n), l = Om(Im, n), [u, d] = z.useState(null), f = c(t, (e) => d(e)), p = !u || o.form || !!u.closest("form"), m = et(u), h = o.values[r], g = h === void 0 ? 0 : Hm(h, o.min, o.max), _ = Um(r, o.values.length), v = m?.[l.size], y = v ? Gm(v, g, l.direction) : 0;
6092
6116
  return z.useEffect(() => {
6093
6117
  if (u) return o.thumbs.add(u), () => {
6094
6118
  o.thumbs.delete(u);
@@ -6099,9 +6123,9 @@ var Am = "SliderThumb", jm = z.forwardRef((e, t) => {
6099
6123
  position: "absolute",
6100
6124
  [l.startEdge]: `calc(${g}% + ${y}px)`
6101
6125
  },
6102
- children: [/* @__PURE__ */ V(pm.ItemSlot, {
6126
+ children: [/* @__PURE__ */ V(ym.ItemSlot, {
6103
6127
  scope: e.__scopeSlider,
6104
- children: /* @__PURE__ */ V(cm.span, {
6128
+ children: /* @__PURE__ */ V(mm.span, {
6105
6129
  role: "slider",
6106
6130
  "aria-label": e["aria-label"] || _,
6107
6131
  "aria-valuemin": o.min,
@@ -6118,16 +6142,16 @@ var Am = "SliderThumb", jm = z.forwardRef((e, t) => {
6118
6142
  o.valueIndexToChangeRef.current = r;
6119
6143
  })
6120
6144
  })
6121
- }), p && /* @__PURE__ */ V(Pm, {
6145
+ }), p && /* @__PURE__ */ V(Bm, {
6122
6146
  name: i ?? (o.name ? o.name + (o.values.length > 1 ? "[]" : "") : void 0),
6123
6147
  form: o.form,
6124
6148
  value: h
6125
6149
  }, r)]
6126
6150
  });
6127
6151
  });
6128
- jm.displayName = Am;
6129
- var Nm = "RadioBubbleInput", Pm = z.forwardRef(({ __scopeSlider: e, value: t, ...n }, r) => {
6130
- let i = z.useRef(null), a = c(i, r), o = Ad(t);
6152
+ Lm.displayName = Im;
6153
+ var zm = "RadioBubbleInput", Bm = z.forwardRef(({ __scopeSlider: e, value: t, ...n }, r) => {
6154
+ let i = z.useRef(null), a = c(i, r), o = Id(t);
6131
6155
  return z.useEffect(() => {
6132
6156
  let e = i.current;
6133
6157
  if (!e) return;
@@ -6136,59 +6160,59 @@ var Nm = "RadioBubbleInput", Pm = z.forwardRef(({ __scopeSlider: e, value: t, ..
6136
6160
  let n = new Event("input", { bubbles: !0 });
6137
6161
  r.call(e, t), e.dispatchEvent(n);
6138
6162
  }
6139
- }, [o, t]), /* @__PURE__ */ V(cm.input, {
6163
+ }, [o, t]), /* @__PURE__ */ V(mm.input, {
6140
6164
  style: { display: "none" },
6141
6165
  ...n,
6142
6166
  ref: a,
6143
6167
  defaultValue: t
6144
6168
  });
6145
6169
  });
6146
- Pm.displayName = Nm;
6147
- function Fm(e = [], t, n) {
6170
+ Bm.displayName = zm;
6171
+ function Vm(e = [], t, n) {
6148
6172
  let r = [...e];
6149
6173
  return r[n] = t, r.sort((e, t) => e - t);
6150
6174
  }
6151
- function Im(e, t, n) {
6175
+ function Hm(e, t, n) {
6152
6176
  return Ke(100 / (n - t) * (e - t), [0, 100]);
6153
6177
  }
6154
- function Lm(e, t) {
6178
+ function Um(e, t) {
6155
6179
  if (t > 2) return `Value ${e + 1} of ${t}`;
6156
6180
  if (t === 2) return ["Minimum", "Maximum"][e];
6157
6181
  }
6158
- function Rm(e, t) {
6182
+ function Wm(e, t) {
6159
6183
  if (e.length === 1) return 0;
6160
6184
  let n = e.map((e) => Math.abs(e - t)), r = Math.min(...n);
6161
6185
  return n.indexOf(r);
6162
6186
  }
6163
- function zm(e, t, n) {
6187
+ function Gm(e, t, n) {
6164
6188
  let r = e / 2;
6165
- return (r - Hm([0, 50], [0, r])(t) * n) * n;
6189
+ return (r - Jm([0, 50], [0, r])(t) * n) * n;
6166
6190
  }
6167
- function Bm(e) {
6191
+ function Km(e) {
6168
6192
  return e.slice(0, -1).map((t, n) => e[n + 1] - t);
6169
6193
  }
6170
- function Vm(e, t) {
6194
+ function qm(e, t) {
6171
6195
  if (t > 0) {
6172
- let n = Bm(e);
6196
+ let n = Km(e);
6173
6197
  return Math.min(...n) >= t;
6174
6198
  }
6175
6199
  return !0;
6176
6200
  }
6177
- function Hm(e, t) {
6201
+ function Jm(e, t) {
6178
6202
  return (n) => {
6179
6203
  if (e[0] === e[1] || t[0] === t[1]) return t[0];
6180
6204
  let r = (t[1] - t[0]) / (e[1] - e[0]);
6181
6205
  return t[0] + r * (n - e[0]);
6182
6206
  };
6183
6207
  }
6184
- function Um(e) {
6208
+ function Ym(e) {
6185
6209
  return (String(e).split(".")[1] || "").length;
6186
6210
  }
6187
- function Wm(e, t) {
6211
+ function Xm(e, t) {
6188
6212
  let n = 10 ** t;
6189
6213
  return Math.round(e * n) / n;
6190
6214
  }
6191
- var Gm = bm, Km = Dm, qm = km, Jm = jm, Ym = [
6215
+ var Zm = Em, Qm = Nm, $m = Fm, eh = Lm, th = [
6192
6216
  "a",
6193
6217
  "button",
6194
6218
  "div",
@@ -6218,23 +6242,23 @@ var Gm = bm, Km = Dm, qm = km, Jm = jm, Ym = [
6218
6242
  ...e,
6219
6243
  [t]: r
6220
6244
  };
6221
- }, {}), Xm = "Switch", [Zm, Qm] = t(Xm), [$m, eh] = Zm(Xm), th = z.forwardRef((e, t) => {
6245
+ }, {}), nh = "Switch", [rh, ih] = t(nh), [ah, oh] = rh(nh), sh = z.forwardRef((e, t) => {
6222
6246
  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"), [y, b] = Ue({
6223
6247
  prop: i,
6224
6248
  defaultProp: a ?? !1,
6225
6249
  onChange: d,
6226
- caller: Xm
6250
+ caller: nh
6227
6251
  });
6228
- return /* @__PURE__ */ H($m, {
6252
+ return /* @__PURE__ */ H(ah, {
6229
6253
  scope: n,
6230
6254
  checked: y,
6231
6255
  disabled: l,
6232
- children: [/* @__PURE__ */ V(Ym.button, {
6256
+ children: [/* @__PURE__ */ V(th.button, {
6233
6257
  type: "button",
6234
6258
  role: "switch",
6235
6259
  "aria-checked": y,
6236
6260
  "aria-required": o,
6237
- "data-state": oh(y),
6261
+ "data-state": fh(y),
6238
6262
  "data-disabled": l ? "" : void 0,
6239
6263
  disabled: l,
6240
6264
  value: u,
@@ -6243,7 +6267,7 @@ var Gm = bm, Km = Dm, qm = km, Jm = jm, Ym = [
6243
6267
  onClick: s(e.onClick, (e) => {
6244
6268
  b((e) => !e), v && (_.current = e.isPropagationStopped(), _.current || e.stopPropagation());
6245
6269
  })
6246
- }), v && /* @__PURE__ */ V(ah, {
6270
+ }), v && /* @__PURE__ */ V(dh, {
6247
6271
  control: m,
6248
6272
  bubbles: !_.current,
6249
6273
  name: r,
@@ -6256,19 +6280,19 @@ var Gm = bm, Km = Dm, qm = km, Jm = jm, Ym = [
6256
6280
  })]
6257
6281
  });
6258
6282
  });
6259
- th.displayName = Xm;
6260
- var nh = "SwitchThumb", rh = z.forwardRef((e, t) => {
6261
- let { __scopeSwitch: n, ...r } = e, i = eh(nh, n);
6262
- return /* @__PURE__ */ V(Ym.span, {
6263
- "data-state": oh(i.checked),
6283
+ sh.displayName = nh;
6284
+ var ch = "SwitchThumb", lh = z.forwardRef((e, t) => {
6285
+ let { __scopeSwitch: n, ...r } = e, i = oh(ch, n);
6286
+ return /* @__PURE__ */ V(th.span, {
6287
+ "data-state": fh(i.checked),
6264
6288
  "data-disabled": i.disabled ? "" : void 0,
6265
6289
  ...r,
6266
6290
  ref: t
6267
6291
  });
6268
6292
  });
6269
- rh.displayName = nh;
6270
- var ih = "SwitchBubbleInput", ah = z.forwardRef(({ __scopeSwitch: e, control: t, checked: n, bubbles: r = !0, ...i }, a) => {
6271
- let o = z.useRef(null), s = c(o, a), l = Ad(n), u = et(t);
6293
+ lh.displayName = ch;
6294
+ var uh = "SwitchBubbleInput", dh = z.forwardRef(({ __scopeSwitch: e, control: t, checked: n, bubbles: r = !0, ...i }, a) => {
6295
+ let o = z.useRef(null), s = c(o, a), l = Id(n), u = et(t);
6272
6296
  return z.useEffect(() => {
6273
6297
  let e = o.current;
6274
6298
  if (!e) return;
@@ -6298,52 +6322,52 @@ var ih = "SwitchBubbleInput", ah = z.forwardRef(({ __scopeSwitch: e, control: t,
6298
6322
  }
6299
6323
  });
6300
6324
  });
6301
- ah.displayName = ih;
6302
- function oh(e) {
6325
+ dh.displayName = uh;
6326
+ function fh(e) {
6303
6327
  return e ? "checked" : "unchecked";
6304
6328
  }
6305
- var sh = th, ch = rh;
6329
+ var ph = sh, mh = lh;
6306
6330
  //#endregion
6307
6331
  //#region src/primitives/reui/dialog.tsx
6308
- function lh({ ...e }) {
6309
- return /* @__PURE__ */ V(rd, {
6332
+ function hh({ ...e }) {
6333
+ return /* @__PURE__ */ V(ld, {
6310
6334
  "data-slot": "dialog",
6311
6335
  ...e
6312
6336
  });
6313
6337
  }
6314
- function uh({ ...e }) {
6315
- return /* @__PURE__ */ V(id, {
6338
+ function gh({ ...e }) {
6339
+ return /* @__PURE__ */ V(ud, {
6316
6340
  "data-slot": "dialog-trigger",
6317
6341
  ...e
6318
6342
  });
6319
6343
  }
6320
- function dh({ ...e }) {
6321
- return /* @__PURE__ */ V(ad, {
6344
+ function _h({ ...e }) {
6345
+ return /* @__PURE__ */ V(dd, {
6322
6346
  "data-slot": "dialog-portal",
6323
6347
  ...e
6324
6348
  });
6325
6349
  }
6326
- function fh({ ...e }) {
6327
- return /* @__PURE__ */ V(ud, {
6350
+ function vh({ ...e }) {
6351
+ return /* @__PURE__ */ V(gd, {
6328
6352
  "data-slot": "dialog-close",
6329
6353
  ...e
6330
6354
  });
6331
6355
  }
6332
- function ph({ className: e, ...t }) {
6333
- return /* @__PURE__ */ V(od, {
6356
+ function yh({ className: e, ...t }) {
6357
+ return /* @__PURE__ */ V(fd, {
6334
6358
  "data-slot": "dialog-overlay",
6335
6359
  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),
6336
6360
  ...t
6337
6361
  });
6338
6362
  }
6339
- function mh({ className: e, children: t, showCloseButton: n = !0, ...r }) {
6340
- return /* @__PURE__ */ H(dh, {
6363
+ function bh({ className: e, children: t, showCloseButton: n = !0, ...r }) {
6364
+ return /* @__PURE__ */ H(_h, {
6341
6365
  "data-slot": "dialog-portal",
6342
- children: [/* @__PURE__ */ V(ph, {}), /* @__PURE__ */ H(sd, {
6366
+ children: [/* @__PURE__ */ V(yh, {}), /* @__PURE__ */ H(pd, {
6343
6367
  "data-slot": "dialog-content",
6344
6368
  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),
6345
6369
  ...r,
6346
- children: [t, n && /* @__PURE__ */ H(ud, {
6370
+ children: [t, n && /* @__PURE__ */ H(gd, {
6347
6371
  "data-slot": "dialog-close",
6348
6372
  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",
6349
6373
  children: [/* @__PURE__ */ V(me, {}), /* @__PURE__ */ V("span", {
@@ -6354,19 +6378,19 @@ function mh({ className: e, children: t, showCloseButton: n = !0, ...r }) {
6354
6378
  })]
6355
6379
  });
6356
6380
  }
6357
- function hh({ className: e, ...t }) {
6381
+ function xh({ className: e, ...t }) {
6358
6382
  return /* @__PURE__ */ V("div", {
6359
6383
  "data-slot": "dialog-header",
6360
6384
  className: R("flex flex-col gap-2 text-center sm:text-left", e),
6361
6385
  ...t
6362
6386
  });
6363
6387
  }
6364
- function gh({ className: e, showCloseButton: t = !1, children: n, ...r }) {
6388
+ function Sh({ className: e, showCloseButton: t = !1, children: n, ...r }) {
6365
6389
  return /* @__PURE__ */ H("div", {
6366
6390
  "data-slot": "dialog-footer",
6367
6391
  className: R("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
6368
6392
  ...r,
6369
- children: [n, t && /* @__PURE__ */ V(ud, {
6393
+ children: [n, t && /* @__PURE__ */ V(gd, {
6370
6394
  asChild: !0,
6371
6395
  children: /* @__PURE__ */ V(d, {
6372
6396
  variant: "outline",
@@ -6375,15 +6399,15 @@ function gh({ className: e, showCloseButton: t = !1, children: n, ...r }) {
6375
6399
  })]
6376
6400
  });
6377
6401
  }
6378
- function _h({ className: e, ...t }) {
6379
- return /* @__PURE__ */ V(cd, {
6402
+ function Ch({ className: e, ...t }) {
6403
+ return /* @__PURE__ */ V(md, {
6380
6404
  "data-slot": "dialog-title",
6381
6405
  className: R("text-lg leading-none font-semibold", e),
6382
6406
  ...t
6383
6407
  });
6384
6408
  }
6385
- function vh({ className: e, ...t }) {
6386
- return /* @__PURE__ */ V(ld, {
6409
+ function wh({ className: e, ...t }) {
6410
+ return /* @__PURE__ */ V(hd, {
6387
6411
  "data-slot": "dialog-description",
6388
6412
  className: R("text-sm text-muted-foreground", e),
6389
6413
  ...t
@@ -6391,15 +6415,15 @@ function vh({ className: e, ...t }) {
6391
6415
  }
6392
6416
  //#endregion
6393
6417
  //#region src/base/utils/icons.ts
6394
- function yh(e) {
6418
+ function Th(e) {
6395
6419
  return hu(e) ?? Pe;
6396
6420
  }
6397
6421
  //#endregion
6398
6422
  //#region src/i18n/render-label.ts
6399
- function bh(e) {
6423
+ function Eh(e) {
6400
6424
  return typeof e == "object" && !!e && "key" in e && typeof e.key == "string";
6401
6425
  }
6402
- function xh(e, t) {
6426
+ function Dh(e, t) {
6403
6427
  return e == null ? "" : typeof e == "string" ? e : t(e.key, {
6404
6428
  ns: e.domain || void 0,
6405
6429
  defaultValue: e.key,
@@ -6408,7 +6432,7 @@ function xh(e, t) {
6408
6432
  }
6409
6433
  //#endregion
6410
6434
  //#region src/primitives/reui/alert.tsx
6411
- var Sh = o([
6435
+ var Oh = o([
6412
6436
  "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",
6413
6437
  "has-[>[data-slot=alert-title]+[data-slot=alert-description]]:[&_[data-slot=alert-action]]:sm:row-end-3",
6414
6438
  "has-[>[data-slot=alert-title]+[data-slot=alert-description]]:items-start",
@@ -6428,29 +6452,29 @@ var Sh = o([
6428
6452
  } },
6429
6453
  defaultVariants: { variant: "default" }
6430
6454
  });
6431
- function Ch({ className: e, variant: t, ...n }) {
6455
+ function kh({ className: e, variant: t, ...n }) {
6432
6456
  return /* @__PURE__ */ V("div", {
6433
6457
  "data-slot": "alert",
6434
6458
  role: "alert",
6435
- className: R(Sh({ variant: t }), e),
6459
+ className: R(Oh({ variant: t }), e),
6436
6460
  ...n
6437
6461
  });
6438
6462
  }
6439
- function wh({ className: e, ...t }) {
6463
+ function Ah({ className: e, ...t }) {
6440
6464
  return /* @__PURE__ */ V("div", {
6441
6465
  "data-slot": "alert-title",
6442
6466
  className: R("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", e),
6443
6467
  ...t
6444
6468
  });
6445
6469
  }
6446
- function Th({ className: e, ...t }) {
6470
+ function jh({ className: e, ...t }) {
6447
6471
  return /* @__PURE__ */ V("div", {
6448
6472
  "data-slot": "alert-description",
6449
6473
  className: R("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", e),
6450
6474
  ...t
6451
6475
  });
6452
6476
  }
6453
- function Eh({ className: e, ...t }) {
6477
+ function Mh({ className: e, ...t }) {
6454
6478
  return /* @__PURE__ */ V("div", {
6455
6479
  "data-slot": "alert-action",
6456
6480
  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),
@@ -6459,7 +6483,7 @@ function Eh({ className: e, ...t }) {
6459
6483
  }
6460
6484
  //#endregion
6461
6485
  //#region src/primitives/reui/badge.tsx
6462
- var Dh = 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", {
6486
+ var Nh = 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", {
6463
6487
  variants: {
6464
6488
  variant: {
6465
6489
  default: "bg-primary text-primary-foreground",
@@ -6504,10 +6528,10 @@ var Dh = o("relative inline-flex shrink-0 items-center justify-center w-fit bord
6504
6528
  radius: "default"
6505
6529
  }
6506
6530
  });
6507
- function Oh({ className: e, variant: t, size: n, radius: r, asChild: i = !1, ...o }) {
6531
+ function Ph({ className: e, variant: t, size: n, radius: r, asChild: i = !1, ...o }) {
6508
6532
  return /* @__PURE__ */ V(i ? a : "span", {
6509
6533
  "data-slot": "badge",
6510
- className: R(Dh({
6534
+ className: R(Nh({
6511
6535
  variant: t,
6512
6536
  size: n,
6513
6537
  radius: r,
@@ -6518,7 +6542,7 @@ function Oh({ className: e, variant: t, size: n, radius: r, asChild: i = !1, ...
6518
6542
  }
6519
6543
  //#endregion
6520
6544
  //#region src/base/partials/EmptyPlaceholder/index.tsx
6521
- var kh = dt(() => import("./dist-CyQnd0TP.js").then((e) => ({ default: e.DotLottieReact }))), Ah = {
6545
+ var Fh = dt(() => import("./dist-CyQnd0TP.js").then((e) => ({ default: e.DotLottieReact }))), Ih = {
6522
6546
  "first-use": {
6523
6547
  iconSize: 56,
6524
6548
  padding: "py-20",
@@ -6550,14 +6574,14 @@ var kh = dt(() => import("./dist-CyQnd0TP.js").then((e) => ({ default: e.DotLott
6550
6574
  maxDescWidth: "max-w-[320px]"
6551
6575
  }
6552
6576
  };
6553
- function jh(e, t) {
6554
- return e === "error" ? je : e === "permission" ? Me : t ? yh(t) : Pe;
6577
+ function Lh(e, t) {
6578
+ return e === "error" ? je : e === "permission" ? Me : t ? Th(t) : Pe;
6555
6579
  }
6556
- function Mh(e) {
6580
+ function Rh(e) {
6557
6581
  return e === "error" ? "text-destructive" : "text-muted-foreground/50";
6558
6582
  }
6559
- function Nh({ variant: e = "first-use", icon: t, lottieUrl: n, title: r, description: i, cta: a, ctaSecondary: o }) {
6560
- let s = Ah[e], c = jh(e, t), l = Mh(e), u = e !== "permission" && a, f = s.iconSize * 1.8;
6583
+ function zh({ variant: e = "first-use", icon: t, lottieUrl: n, title: r, description: i, cta: a, ctaSecondary: o }) {
6584
+ let s = Ih[e], c = Lh(e, t), l = Rh(e), u = e !== "permission" && a, f = s.iconSize * 1.8;
6561
6585
  return /* @__PURE__ */ H("div", {
6562
6586
  role: "status",
6563
6587
  "aria-live": "polite",
@@ -6571,7 +6595,7 @@ function Nh({ variant: e = "first-use", icon: t, lottieUrl: n, title: r, descrip
6571
6595
  },
6572
6596
  className: "mb-4"
6573
6597
  }),
6574
- children: /* @__PURE__ */ V(kh, {
6598
+ children: /* @__PURE__ */ V(Fh, {
6575
6599
  src: n,
6576
6600
  loop: !0,
6577
6601
  autoplay: !0,
@@ -6622,89 +6646,89 @@ function Nh({ variant: e = "first-use", icon: t, lottieUrl: n, title: r, descrip
6622
6646
  }
6623
6647
  //#endregion
6624
6648
  //#region src/primitives/reui/select.tsx
6625
- function Ph({ ...e }) {
6626
- return /* @__PURE__ */ V(Bp, {
6649
+ function Bh({ ...e }) {
6650
+ return /* @__PURE__ */ V(Kp, {
6627
6651
  "data-slot": "select",
6628
6652
  ...e
6629
6653
  });
6630
6654
  }
6631
- function Fh({ ...e }) {
6632
- return /* @__PURE__ */ V(qp, {
6655
+ function Vh({ ...e }) {
6656
+ return /* @__PURE__ */ V($p, {
6633
6657
  "data-slot": "select-group",
6634
6658
  ...e
6635
6659
  });
6636
6660
  }
6637
- function Ih({ ...e }) {
6638
- return /* @__PURE__ */ V(Hp, {
6661
+ function Hh({ ...e }) {
6662
+ return /* @__PURE__ */ V(Jp, {
6639
6663
  "data-slot": "select-value",
6640
6664
  ...e
6641
6665
  });
6642
6666
  }
6643
- function Lh({ className: e, size: t = "default", children: n, ...i }) {
6644
- return /* @__PURE__ */ H(Vp, {
6667
+ function Uh({ className: e, size: t = "default", children: n, ...i }) {
6668
+ return /* @__PURE__ */ H(qp, {
6645
6669
  "data-slot": "select-trigger",
6646
6670
  "data-size": t,
6647
6671
  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),
6648
6672
  ...i,
6649
- children: [n, /* @__PURE__ */ V(Up, {
6673
+ children: [n, /* @__PURE__ */ V(Yp, {
6650
6674
  asChild: !0,
6651
6675
  children: /* @__PURE__ */ V(r, { className: "size-4 opacity-50" })
6652
6676
  })]
6653
6677
  });
6654
6678
  }
6655
- function Rh({ className: e, children: t, position: n = "item-aligned", align: r = "center", ...i }) {
6656
- return /* @__PURE__ */ V(Wp, { children: /* @__PURE__ */ H(Gp, {
6679
+ function Wh({ className: e, children: t, position: n = "item-aligned", align: r = "center", ...i }) {
6680
+ return /* @__PURE__ */ V(Xp, { children: /* @__PURE__ */ H(Zp, {
6657
6681
  "data-slot": "select-content",
6658
6682
  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),
6659
6683
  position: n,
6660
6684
  align: r,
6661
6685
  ...i,
6662
6686
  children: [
6663
- /* @__PURE__ */ V(Hh, {}),
6664
- /* @__PURE__ */ V(Kp, {
6687
+ /* @__PURE__ */ V(Jh, {}),
6688
+ /* @__PURE__ */ V(Qp, {
6665
6689
  className: R("p-1", n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
6666
6690
  children: t
6667
6691
  }),
6668
- /* @__PURE__ */ V(Uh, {})
6692
+ /* @__PURE__ */ V(Yh, {})
6669
6693
  ]
6670
6694
  }) });
6671
6695
  }
6672
- function zh({ className: e, ...t }) {
6673
- return /* @__PURE__ */ V(Jp, {
6696
+ function Gh({ className: e, ...t }) {
6697
+ return /* @__PURE__ */ V(em, {
6674
6698
  "data-slot": "select-label",
6675
6699
  className: R("px-2 py-1.5 text-xs text-muted-foreground", e),
6676
6700
  ...t
6677
6701
  });
6678
6702
  }
6679
- function Bh({ className: e, children: t, ...n }) {
6680
- return /* @__PURE__ */ H(Yp, {
6703
+ function Kh({ className: e, children: t, ...n }) {
6704
+ return /* @__PURE__ */ H(tm, {
6681
6705
  "data-slot": "select-item",
6682
6706
  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),
6683
6707
  ...n,
6684
6708
  children: [/* @__PURE__ */ V("span", {
6685
6709
  "data-slot": "select-item-indicator",
6686
6710
  className: "absolute right-2 flex size-3.5 items-center justify-center",
6687
- children: /* @__PURE__ */ V(Zp, { children: /* @__PURE__ */ V(ve, { className: "size-4" }) })
6688
- }), /* @__PURE__ */ V(Xp, { children: t })]
6711
+ children: /* @__PURE__ */ V(rm, { children: /* @__PURE__ */ V(ve, { className: "size-4" }) })
6712
+ }), /* @__PURE__ */ V(nm, { children: t })]
6689
6713
  });
6690
6714
  }
6691
- function Vh({ className: e, ...t }) {
6692
- return /* @__PURE__ */ V(em, {
6715
+ function qh({ className: e, ...t }) {
6716
+ return /* @__PURE__ */ V(om, {
6693
6717
  "data-slot": "select-separator",
6694
6718
  className: R("pointer-events-none -mx-1 my-1 h-px bg-border", e),
6695
6719
  ...t
6696
6720
  });
6697
6721
  }
6698
- function Hh({ className: e, ...t }) {
6699
- return /* @__PURE__ */ V(Qp, {
6722
+ function Jh({ className: e, ...t }) {
6723
+ return /* @__PURE__ */ V(im, {
6700
6724
  "data-slot": "select-scroll-up-button",
6701
6725
  className: R("flex cursor-default items-center justify-center py-1", e),
6702
6726
  ...t,
6703
6727
  children: /* @__PURE__ */ V(au, { className: "size-4" })
6704
6728
  });
6705
6729
  }
6706
- function Uh({ className: e, ...t }) {
6707
- return /* @__PURE__ */ V($p, {
6730
+ function Yh({ className: e, ...t }) {
6731
+ return /* @__PURE__ */ V(am, {
6708
6732
  "data-slot": "select-scroll-down-button",
6709
6733
  className: R("flex cursor-default items-center justify-center py-1", e),
6710
6734
  ...t,
@@ -6713,8 +6737,8 @@ function Uh({ className: e, ...t }) {
6713
6737
  }
6714
6738
  //#endregion
6715
6739
  //#region src/primitives/reui/separator.tsx
6716
- function Wh({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
6717
- return /* @__PURE__ */ V(sm, {
6740
+ function Xh({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
6741
+ return /* @__PURE__ */ V(pm, {
6718
6742
  "data-slot": "separator",
6719
6743
  decorative: n,
6720
6744
  orientation: t,
@@ -6724,12 +6748,12 @@ function Wh({ className: e, orientation: t = "horizontal", decorative: n = !0, .
6724
6748
  }
6725
6749
  //#endregion
6726
6750
  //#region src/primitives/reui/checkbox.tsx
6727
- function Gh({ className: e, ...t }) {
6728
- return /* @__PURE__ */ V(Bd, {
6751
+ function Zh({ className: e, ...t }) {
6752
+ return /* @__PURE__ */ V(Kd, {
6729
6753
  "data-slot": "checkbox",
6730
6754
  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),
6731
6755
  ...t,
6732
- children: /* @__PURE__ */ V(Hd, {
6756
+ children: /* @__PURE__ */ V(Jd, {
6733
6757
  "data-slot": "checkbox-indicator",
6734
6758
  className: "grid place-content-center text-current transition-none",
6735
6759
  children: /* @__PURE__ */ V(ve, { className: "size-3.5" })
@@ -6738,7 +6762,7 @@ function Gh({ className: e, ...t }) {
6738
6762
  }
6739
6763
  //#endregion
6740
6764
  //#region src/base/utils/conditions.ts
6741
- function Kh(e, t) {
6765
+ function Qh(e, t) {
6742
6766
  let n = t[e.field], r = e.value;
6743
6767
  switch (e.operator) {
6744
6768
  case "equals": return String(n) === String(r);
@@ -6750,8 +6774,8 @@ function Kh(e, t) {
6750
6774
  }
6751
6775
  //#endregion
6752
6776
  //#region src/primitives/reui/label.tsx
6753
- function qh({ className: e, ...t }) {
6754
- return /* @__PURE__ */ V(Zd, {
6777
+ function $h({ className: e, ...t }) {
6778
+ return /* @__PURE__ */ V(rf, {
6755
6779
  "data-slot": "label",
6756
6780
  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),
6757
6781
  ...t
@@ -6759,11 +6783,11 @@ function qh({ className: e, ...t }) {
6759
6783
  }
6760
6784
  //#endregion
6761
6785
  //#region src/base/form/fields/CheckboxField.tsx
6762
- function Jh({ id: e, value: t, onChange: n, label: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
6786
+ function eg({ id: e, value: t, onChange: n, label: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
6763
6787
  let l = [o ? c : void 0, s].filter(Boolean).join(" ") || void 0;
6764
6788
  return /* @__PURE__ */ H("div", {
6765
6789
  className: "flex items-center gap-2",
6766
- children: [/* @__PURE__ */ V(Gh, {
6790
+ children: [/* @__PURE__ */ V(Zh, {
6767
6791
  id: e,
6768
6792
  checked: !!t,
6769
6793
  onCheckedChange: (e) => n(e === !0),
@@ -6771,7 +6795,7 @@ function Jh({ id: e, value: t, onChange: n, label: r, disabled: i, required: a,
6771
6795
  "aria-invalid": o ? !0 : void 0,
6772
6796
  "aria-required": a || void 0,
6773
6797
  "aria-describedby": l
6774
- }), r && /* @__PURE__ */ V(qh, {
6798
+ }), r && /* @__PURE__ */ V($h, {
6775
6799
  htmlFor: e,
6776
6800
  className: "text-sm font-normal",
6777
6801
  children: r
@@ -6780,7 +6804,7 @@ function Jh({ id: e, value: t, onChange: n, label: r, disabled: i, required: a,
6780
6804
  }
6781
6805
  //#endregion
6782
6806
  //#region src/base/form/fields/ColorField.tsx
6783
- function Yh({ id: e, value: t, onChange: n, placeholder: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
6807
+ function tg({ id: e, value: t, onChange: n, placeholder: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
6784
6808
  let l = [o ? c : void 0, s].filter(Boolean).join(" ") || void 0, u = B((e) => {
6785
6809
  n(e.target.value);
6786
6810
  }, [n]), d = B((e) => {
@@ -6812,7 +6836,7 @@ function Yh({ id: e, value: t, onChange: n, placeholder: r, disabled: i, require
6812
6836
  }
6813
6837
  //#endregion
6814
6838
  //#region src/base/form/fields/CurrencyField.tsx
6815
- var Xh = {
6839
+ var ng = {
6816
6840
  BRL: "R$",
6817
6841
  USD: "$",
6818
6842
  EUR: "€",
@@ -6827,8 +6851,8 @@ var Xh = {
6827
6851
  COP: "$",
6828
6852
  PEN: "S/"
6829
6853
  };
6830
- function Zh({ 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 }) {
6831
- let { t: f, formatCurrency: m } = De(), [h, g] = _t(!1), [_, v] = _t(""), y = [s ? l : void 0, c].filter(Boolean).join(" ") || void 0, b = h ? _ : t == null ? "" : m(t, r), x = Xh[r] ?? r, S = B(() => {
6854
+ function rg({ 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 }) {
6855
+ let { t: f, formatCurrency: m } = De(), [h, g] = _t(!1), [_, v] = _t(""), y = [s ? l : void 0, c].filter(Boolean).join(" ") || void 0, b = h ? _ : t == null ? "" : m(t, r), x = ng[r] ?? r, S = B(() => {
6832
6856
  g(!0), v(t == null ? "" : String(t));
6833
6857
  }, [t]), C = B(() => {
6834
6858
  g(!1);
@@ -6864,14 +6888,14 @@ function Zh({ id: e, value: t, onChange: n, currency: r = "BRL", placeholder: i,
6864
6888
  }
6865
6889
  //#endregion
6866
6890
  //#region src/lib/host-pending.ts
6867
- var Qh = "middag-react/fetch", $h = null;
6868
- function eg(e) {
6869
- $h = e;
6891
+ var ig = "middag-react/fetch", ag = null;
6892
+ function og(e) {
6893
+ ag = e;
6870
6894
  }
6871
- function tg(e = Qh) {
6895
+ function sg(e = ig) {
6872
6896
  let t;
6873
6897
  try {
6874
- t = $h?.(e);
6898
+ t = ag?.(e);
6875
6899
  } catch {
6876
6900
  t = void 0;
6877
6901
  }
@@ -6885,8 +6909,8 @@ function tg(e = Qh) {
6885
6909
  }
6886
6910
  };
6887
6911
  }
6888
- async function ng(e, t) {
6889
- let n = tg();
6912
+ async function cg(e, t) {
6913
+ let n = sg();
6890
6914
  try {
6891
6915
  return await fetch(e, t);
6892
6916
  } finally {
@@ -6895,23 +6919,23 @@ async function ng(e, t) {
6895
6919
  }
6896
6920
  //#endregion
6897
6921
  //#region src/primitives/reui/avatar.tsx
6898
- function rg({ className: e, size: t = "default", ...n }) {
6899
- return /* @__PURE__ */ V(Dd, {
6922
+ function lg({ className: e, size: t = "default", ...n }) {
6923
+ return /* @__PURE__ */ V(Nd, {
6900
6924
  "data-slot": "avatar",
6901
6925
  "data-size": t,
6902
6926
  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),
6903
6927
  ...n
6904
6928
  });
6905
6929
  }
6906
- function ig({ className: e, ...t }) {
6907
- return /* @__PURE__ */ V(Od, {
6930
+ function ug({ className: e, ...t }) {
6931
+ return /* @__PURE__ */ V(Pd, {
6908
6932
  "data-slot": "avatar-image",
6909
6933
  className: R("aspect-square size-full", e),
6910
6934
  ...t
6911
6935
  });
6912
6936
  }
6913
- function ag({ className: e, ...t }) {
6914
- return /* @__PURE__ */ V(kd, {
6937
+ function dg({ className: e, ...t }) {
6938
+ return /* @__PURE__ */ V(Fd, {
6915
6939
  "data-slot": "avatar-fallback",
6916
6940
  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),
6917
6941
  ...t
@@ -6919,7 +6943,7 @@ function ag({ className: e, ...t }) {
6919
6943
  }
6920
6944
  //#endregion
6921
6945
  //#region node_modules/@base-ui/utils/esm/useForcedRerendering.js
6922
- function og() {
6946
+ function fg() {
6923
6947
  let [, e] = z.useState({});
6924
6948
  return z.useCallback(() => {
6925
6949
  e({});
@@ -6927,46 +6951,46 @@ function og() {
6927
6951
  }
6928
6952
  //#endregion
6929
6953
  //#region node_modules/@base-ui/react/esm/internals/clamp.js
6930
- function sg(e, t = -(2 ** 53 - 1), n = 2 ** 53 - 1) {
6954
+ function pg(e, t = -(2 ** 53 - 1), n = 2 ** 53 - 1) {
6931
6955
  return Math.max(t, Math.min(e, n));
6932
6956
  }
6933
6957
  //#endregion
6934
6958
  //#region node_modules/@base-ui/react/esm/utils/formatNumber.js
6935
- var cg = /* @__PURE__ */ new Map();
6936
- function lg(e, t) {
6959
+ var mg = /* @__PURE__ */ new Map();
6960
+ function hg(e, t) {
6937
6961
  let n = JSON.stringify({
6938
6962
  locale: e,
6939
6963
  options: t
6940
- }), r = cg.get(n);
6964
+ }), r = mg.get(n);
6941
6965
  if (r) return r;
6942
6966
  let i = new Intl.NumberFormat(e, t);
6943
- return cg.set(n, i), i;
6967
+ return mg.set(n, i), i;
6944
6968
  }
6945
- function ug(e, t, n) {
6946
- return e == null ? "" : lg(t, n).format(e);
6969
+ function gg(e, t, n) {
6970
+ return e == null ? "" : hg(t, n).format(e);
6947
6971
  }
6948
- function dg(e, t, n) {
6949
- return ug(e, t, {
6972
+ function _g(e, t, n) {
6973
+ return gg(e, t, {
6950
6974
  ...n,
6951
6975
  maximumFractionDigits: 20
6952
6976
  });
6953
6977
  }
6954
6978
  //#endregion
6955
6979
  //#region node_modules/@base-ui/react/esm/number-field/root/NumberFieldRootContext.js
6956
- var fg = /*#__PURE__*/ z.createContext(void 0);
6957
- process.env.NODE_ENV !== "production" && (fg.displayName = "NumberFieldRootContext");
6958
- function pg() {
6959
- let e = z.useContext(fg);
6980
+ var vg = /*#__PURE__*/ z.createContext(void 0);
6981
+ process.env.NODE_ENV !== "production" && (vg.displayName = "NumberFieldRootContext");
6982
+ function yg() {
6983
+ let e = z.useContext(vg);
6960
6984
  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>.");
6961
6985
  return e;
6962
6986
  }
6963
6987
  //#endregion
6964
6988
  //#region node_modules/@base-ui/react/esm/number-field/utils/stateAttributesMapping.js
6965
- var mg = {
6989
+ var bg = {
6966
6990
  inputValue: () => null,
6967
6991
  value: () => null,
6968
6992
  ...M
6969
- }, hg = [
6993
+ }, xg = [
6970
6994
  "零",
6971
6995
  "〇",
6972
6996
  "一",
@@ -6978,7 +7002,7 @@ var mg = {
6978
7002
  "七",
6979
7003
  "八",
6980
7004
  "九"
6981
- ], gg = {
7005
+ ], Sg = {
6982
7006
  零: "0",
6983
7007
  〇: "0",
6984
7008
  一: "1",
@@ -6990,7 +7014,7 @@ var mg = {
6990
7014
  七: "7",
6991
7015
  八: "8",
6992
7016
  九: "9"
6993
- }, _g = [
7017
+ }, Cg = [
6994
7018
  "٠",
6995
7019
  "١",
6996
7020
  "٢",
@@ -7001,7 +7025,7 @@ var mg = {
7001
7025
  "٧",
7002
7026
  "٨",
7003
7027
  "٩"
7004
- ], vg = [
7028
+ ], wg = [
7005
7029
  "۰",
7006
7030
  "۱",
7007
7031
  "۲",
@@ -7012,7 +7036,7 @@ var mg = {
7012
7036
  "۷",
7013
7037
  "۸",
7014
7038
  "۹"
7015
- ], yg = [
7039
+ ], Tg = [
7016
7040
  "0",
7017
7041
  "1",
7018
7042
  "2",
@@ -7023,53 +7047,53 @@ var mg = {
7023
7047
  "7",
7024
7048
  "8",
7025
7049
  "9"
7026
- ], bg = [
7050
+ ], Eg = [
7027
7051
  "%",
7028
7052
  "٪",
7029
7053
  "%",
7030
7054
  "﹪"
7031
- ], xg = ["‰", "؉"], Sg = [
7055
+ ], Dg = ["‰", "؉"], Og = [
7032
7056
  "−",
7033
7057
  "-",
7034
7058
  "‒",
7035
7059
  "–",
7036
7060
  "—",
7037
7061
  "﹣"
7038
- ], Cg = ["+", "﹢"], wg = RegExp(`[${_g.join("")}]`, "g"), Tg = RegExp(`[${vg.join("")}]`, "g"), Eg = RegExp(`[${yg.join("")}]`, "g"), Dg = RegExp(`[${hg.join("")}]`, "g"), Og = RegExp(`[${bg.join("")}]`), kg = RegExp(`[${xg.join("")}]`), Ag = /[٠١٢٣٤٥٦٧٨٩]/, jg = /[۰۱۲۳۴۵۶۷۸۹]/, Mg = /[零〇一二三四五六七八九]/, Ng = RegExp(`[${yg.join("")}]`), Pg = [
7062
+ ], kg = ["+", "﹢"], Ag = RegExp(`[${Cg.join("")}]`, "g"), jg = RegExp(`[${wg.join("")}]`, "g"), Mg = RegExp(`[${Tg.join("")}]`, "g"), Ng = RegExp(`[${xg.join("")}]`, "g"), Pg = RegExp(`[${Eg.join("")}]`), Fg = RegExp(`[${Dg.join("")}]`), Ig = /[٠١٢٣٤٥٦٧٨٩]/, Lg = /[۰۱۲۳۴۵۶۷۸۹]/, Rg = /[零〇一二三四五六七八九]/, zg = RegExp(`[${Tg.join("")}]`), Bg = [
7039
7063
  ".",
7040
7064
  ",",
7041
7065
  ".",
7042
7066
  ",",
7043
7067
  "٫",
7044
7068
  "٬"
7045
- ], Fg = /\p{Zs}/u, Ig = ["+", ...Cg], Lg = ["-", ...Sg], Rg = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), zg = (e) => e.replace(/[-\\\]^]/g, (e) => `\\${e}`), Bg = (e) => `[${e.map(zg).join("")}]`, Vg = Bg(["-"].concat(Sg)), Hg = Bg(["+"].concat(Cg)), Ug = new RegExp(Vg, "gu"), Wg = new RegExp(Hg, "gu"), Gg = new RegExp(Vg), Kg = new RegExp(Hg);
7046
- function qg(e, t) {
7047
- let n = lg(e, t).formatToParts(11111.1), r = {};
7069
+ ], Vg = /\p{Zs}/u, Hg = ["+", ...kg], Ug = ["-", ...Og], Wg = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Gg = (e) => e.replace(/[-\\\]^]/g, (e) => `\\${e}`), Kg = (e) => `[${e.map(Gg).join("")}]`, qg = Kg(["-"].concat(Og)), Jg = Kg(["+"].concat(kg)), Yg = new RegExp(qg, "gu"), Xg = new RegExp(Jg, "gu"), Zg = new RegExp(qg), Qg = new RegExp(Jg);
7070
+ function $g(e, t) {
7071
+ let n = hg(e, t).formatToParts(11111.1), r = {};
7048
7072
  return n.forEach((e) => {
7049
7073
  r[e.type] = e.value;
7050
- }), lg(e).formatToParts(.1).forEach((e) => {
7074
+ }), hg(e).formatToParts(.1).forEach((e) => {
7051
7075
  e.type === "decimal" && (r[e.type] = e.value);
7052
7076
  }), r;
7053
7077
  }
7054
- function Jg(e, t, n) {
7078
+ function e_(e, t, n) {
7055
7079
  if (e == null) return null;
7056
7080
  let r = String(e).replace(/\p{Cf}/gu, "").trim();
7057
- r = r.replace(Ug, "-").replace(Wg, "+");
7081
+ r = r.replace(Yg, "-").replace(Xg, "+");
7058
7082
  let i = !1, a = r.match(/([+-])\s*$/);
7059
7083
  a && (a[1] === "-" && (i = !0), r = r.replace(/([+-])\s*$/, ""));
7060
7084
  let o = r.match(/^\s*([+-])/);
7061
7085
  o && (o[1] === "-" && (i = !0), r = r.replace(/^\s*[+-]/, ""));
7062
7086
  let s = t;
7063
- s === void 0 && (Ag.test(r) || jg.test(r) ? s = "ar" : Mg.test(r) && (s = "zh"));
7064
- let { group: c, decimal: l, currency: u } = qg(s, n), d = lg(s, n).formatToParts(1).filter((e) => e.type === "unit").map((e) => Rg(e.value)), f = d.length ? new RegExp(d.join("|"), "g") : null, p = null;
7065
- c && (p = /\p{Zs}/u.test(c) ? /\p{Zs}/gu : c === "'" || c === "’" ? /['’]/g : new RegExp(Rg(c), "g"));
7087
+ s === void 0 && (Ig.test(r) || Lg.test(r) ? s = "ar" : Rg.test(r) && (s = "zh"));
7088
+ let { group: c, decimal: l, currency: u } = $g(s, n), d = hg(s, n).formatToParts(1).filter((e) => e.type === "unit").map((e) => Wg(e.value)), f = d.length ? new RegExp(d.join("|"), "g") : null, p = null;
7089
+ c && (p = /\p{Zs}/u.test(c) ? /\p{Zs}/gu : c === "'" || c === "’" ? /['’]/g : new RegExp(Wg(c), "g"));
7066
7090
  let m = [
7067
7091
  {
7068
7092
  regex: c ? p : null,
7069
7093
  replacement: ""
7070
7094
  },
7071
7095
  {
7072
- regex: l ? new RegExp(Rg(l), "g") : null,
7096
+ regex: l ? new RegExp(Wg(l), "g") : null,
7073
7097
  replacement: "."
7074
7098
  },
7075
7099
  {
@@ -7089,7 +7113,7 @@ function Jg(e, t, n) {
7089
7113
  replacement: ""
7090
7114
  },
7091
7115
  {
7092
- regex: u ? new RegExp(Rg(u), "g") : null,
7116
+ regex: u ? new RegExp(Wg(u), "g") : null,
7093
7117
  replacement: ""
7094
7118
  },
7095
7119
  {
@@ -7097,63 +7121,63 @@ function Jg(e, t, n) {
7097
7121
  replacement: ""
7098
7122
  },
7099
7123
  {
7100
- regex: wg,
7101
- replacement: (e) => String(_g.indexOf(e))
7124
+ regex: Ag,
7125
+ replacement: (e) => String(Cg.indexOf(e))
7102
7126
  },
7103
7127
  {
7104
- regex: Tg,
7105
- replacement: (e) => String(vg.indexOf(e))
7128
+ regex: jg,
7129
+ replacement: (e) => String(wg.indexOf(e))
7106
7130
  },
7107
7131
  {
7108
- regex: Eg,
7109
- replacement: (e) => String(yg.indexOf(e))
7132
+ regex: Mg,
7133
+ replacement: (e) => String(Tg.indexOf(e))
7110
7134
  },
7111
7135
  {
7112
- regex: Dg,
7113
- replacement: (e) => gg[e]
7136
+ regex: Ng,
7137
+ replacement: (e) => Sg[e]
7114
7138
  }
7115
7139
  ].reduce((e, { regex: t, replacement: n }) => t ? e.replace(t, n) : e, r), h = m.lastIndexOf(".");
7116
7140
  if (h !== -1 && (m = `${m.slice(0, h).replace(/\./g, "")}.${m.slice(h + 1).replace(/\./g, "")}`), /^[-+]?Infinity$/i.test(r) || /[∞]/.test(r)) return null;
7117
- let g = (i ? "-" : "") + m, _ = parseFloat(g), v = n?.style, y = v === "unit" && n?.unit === "percent", b = Og.test(e) || v === "percent";
7118
- return kg.test(e) ? _ /= 1e3 : !y && b && (_ /= 100), Number.isNaN(_) ? null : _;
7141
+ let g = (i ? "-" : "") + m, _ = parseFloat(g), v = n?.style, y = v === "unit" && n?.unit === "percent", b = Pg.test(e) || v === "percent";
7142
+ return Fg.test(e) ? _ /= 1e3 : !y && b && (_ /= 100), Number.isNaN(_) ? null : _;
7119
7143
  }
7120
7144
  //#endregion
7121
7145
  //#region node_modules/@base-ui/react/esm/number-field/utils/validate.js
7122
- var Yg = 1e-10;
7123
- function Xg(e) {
7124
- let t = lg("en-US").resolvedOptions(), n = e?.minimumFractionDigits ?? t.minimumFractionDigits ?? 0;
7146
+ var t_ = 1e-10;
7147
+ function n_(e) {
7148
+ let t = hg("en-US").resolvedOptions(), n = e?.minimumFractionDigits ?? t.minimumFractionDigits ?? 0;
7125
7149
  return {
7126
7150
  maximumFractionDigits: Math.max(e?.maximumFractionDigits ?? t.maximumFractionDigits ?? 20, n),
7127
7151
  minimumFractionDigits: n
7128
7152
  };
7129
7153
  }
7130
- function Zg(e, t) {
7154
+ function r_(e, t) {
7131
7155
  if (!Number.isFinite(e)) return e;
7132
7156
  let n = Math.min(Math.max(t, 0), 20);
7133
7157
  return Number(e.toFixed(n));
7134
7158
  }
7135
- function Qg(e, t) {
7136
- let { maximumFractionDigits: n } = Xg(t);
7137
- return Zg(e, n);
7159
+ function i_(e, t) {
7160
+ let { maximumFractionDigits: n } = n_(t);
7161
+ return r_(e, n);
7138
7162
  }
7139
- function $g(e, t, n, r = "directional") {
7163
+ function a_(e, t, n, r = "directional") {
7140
7164
  if (n === 0) return e;
7141
- let i = Math.abs(n), a = Math.sign(n), o = i * Yg * a, s = r === "nearest" ? n : i, c = (e - t + o) / s, l;
7165
+ let i = Math.abs(n), a = Math.sign(n), o = i * t_ * a, s = r === "nearest" ? n : i, c = (e - t + o) / s, l;
7142
7166
  return l = r === "nearest" ? Math.round(c) : a > 0 ? Math.floor(c) : Math.ceil(c), t + l * (r === "nearest" ? n : i);
7143
7167
  }
7144
- function e_(e, { step: t, minWithDefault: n, maxWithDefault: r, minWithZeroDefault: i, format: a, snapOnStep: o, small: s, clamp: c }) {
7168
+ function o_(e, { step: t, minWithDefault: n, maxWithDefault: r, minWithZeroDefault: i, format: a, snapOnStep: o, small: s, clamp: c }) {
7145
7169
  if (e === null) return e;
7146
- let l = c ? sg(e, n, r) : e;
7170
+ let l = c ? pg(e, n, r) : e;
7147
7171
  if (t != null && o) {
7148
- if (t === 0) return Qg(l, a);
7172
+ if (t === 0) return i_(l, a);
7149
7173
  let e = i;
7150
- return !s && n !== -(2 ** 53 - 1) && (e = n), Qg($g(l, e, t, s ? "nearest" : "directional"), a);
7174
+ return !s && n !== -(2 ** 53 - 1) && (e = n), i_(a_(l, e, t, s ? "nearest" : "directional"), a);
7151
7175
  }
7152
- return Qg(l, a);
7176
+ return i_(l, a);
7153
7177
  }
7154
7178
  //#endregion
7155
7179
  //#region node_modules/@base-ui/react/esm/number-field/root/NumberFieldRoot.js
7156
- var t_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
7180
+ var s_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
7157
7181
  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({
7158
7182
  controlled: h,
7159
7183
  default: p,
@@ -7163,15 +7187,15 @@ var t_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
7163
7187
  ne(() => {
7164
7188
  oe(I !== null);
7165
7189
  }, [oe, I]);
7166
- let je = og(), Me = v(T), Ne = z.useRef(!1), Pe = F((e, t) => {
7190
+ let je = fg(), Me = v(T), Ne = z.useRef(!1), Pe = F((e, t) => {
7167
7191
  Ne.current = !1, _?.(e, t);
7168
- }), Fe = z.useRef(!0), Ie = z.useRef(null), [L, Le] = z.useState(() => h === void 0 ? ug(I, O, T) : n_(I, O, T)), [Re, R] = z.useState("numeric"), ze = F(() => {
7169
- let { decimal: e, group: t, currency: n, literal: r } = qg(O, T), i = /* @__PURE__ */ new Set();
7170
- Pg.forEach((e) => i.add(e)), e && i.add(e), t && (i.add(t), Fg.test(t) && i.add(" "));
7192
+ }), Fe = z.useRef(!0), Ie = z.useRef(null), [L, Le] = z.useState(() => h === void 0 ? gg(I, O, T) : c_(I, O, T)), [Re, R] = z.useState("numeric"), ze = F(() => {
7193
+ let { decimal: e, group: t, currency: n, literal: r } = $g(O, T), i = /* @__PURE__ */ new Set();
7194
+ Bg.forEach((e) => i.add(e)), e && i.add(e), t && (i.add(t), Vg.test(t) && i.add(" "));
7171
7195
  let a = Se === "percent" || Se === "unit" && T?.unit === "percent", o = Se === "percent" || Se === "unit" && T?.unit === "permille";
7172
- return a && bg.forEach((e) => i.add(e)), o && xg.forEach((e) => i.add(e)), Se === "currency" && n && i.add(n), r && (Array.from(r).forEach((e) => i.add(e)), Fg.test(r) && i.add(" ")), Ig.forEach((e) => i.add(e)), ye < 0 && Lg.forEach((e) => i.add(e)), i;
7196
+ return a && Eg.forEach((e) => i.add(e)), o && Dg.forEach((e) => i.add(e)), Se === "currency" && n && i.add(n), r && (Array.from(r).forEach((e) => i.add(e)), Vg.test(r) && i.add(" ")), Hg.forEach((e) => i.add(e)), ye < 0 && Ug.forEach((e) => i.add(e)), i;
7173
7197
  }), Be = F((e) => e?.altKey ? a : e?.shiftKey ? s : ge), Ve = F((e, t) => {
7174
- 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 = e_(e, {
7198
+ 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 = o_(e, {
7175
7199
  step: r ? Be(n) * r : void 0,
7176
7200
  format: Me.current,
7177
7201
  minWithDefault: ye,
@@ -7185,14 +7209,14 @@ var t_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
7185
7209
  if (Ie.current = o, g?.(o, t), t.isCanceled) return c;
7186
7210
  ke(o), P(o !== re.initialValue), Ne.current = !0;
7187
7211
  }
7188
- return Fe.current && Le(ug(o, O, T)), je(), c;
7212
+ return Fe.current && Le(gg(o, O, T)), je(), c;
7189
7213
  }), He = F((e, { direction: t, currentValue: n, event: i, reason: a }) => {
7190
7214
  let o = n ?? Ae.current, s = typeof o == "number" ? o + e * t : Math.max(0, r ?? 0);
7191
7215
  return Ve(s, S(a, i, void 0, { direction: t }));
7192
7216
  });
7193
7217
  ne(function() {
7194
7218
  if (!Fe.current) return;
7195
- let e = h === void 0 ? ug(I, O, T) : n_(I, O, T);
7219
+ let e = h === void 0 ? gg(I, O, T) : c_(I, O, T);
7196
7220
  e !== L && Le(e);
7197
7221
  }), ne(function() {
7198
7222
  if (!D) return;
@@ -7297,9 +7321,9 @@ var t_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
7297
7321
  ref: t,
7298
7322
  state: Ue,
7299
7323
  props: te,
7300
- stateAttributesMapping: mg
7324
+ stateAttributesMapping: bg
7301
7325
  });
7302
- return /*#__PURE__*/ H(fg.Provider, {
7326
+ return /*#__PURE__*/ H(vg.Provider, {
7303
7327
  value: We,
7304
7328
  children: [Ge, /*#__PURE__*/ V("input", {
7305
7329
  ...de.getInputValidationProps({
@@ -7329,25 +7353,25 @@ var t_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
7329
7353
  })]
7330
7354
  });
7331
7355
  });
7332
- process.env.NODE_ENV !== "production" && (t_.displayName = "NumberFieldRoot");
7333
- function n_(e, t, n) {
7334
- return n?.maximumFractionDigits != null || n?.minimumFractionDigits != null ? ug(e, t, n) : dg(e, t, n);
7356
+ process.env.NODE_ENV !== "production" && (s_.displayName = "NumberFieldRoot");
7357
+ function c_(e, t, n) {
7358
+ return n?.maximumFractionDigits != null || n?.minimumFractionDigits != null ? gg(e, t, n) : _g(e, t, n);
7335
7359
  }
7336
7360
  //#endregion
7337
7361
  //#region node_modules/@base-ui/react/esm/number-field/group/NumberFieldGroup.js
7338
- var r_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
7339
- let { render: n, className: r, style: i, ...a } = e, { state: o } = pg();
7362
+ var l_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
7363
+ let { render: n, className: r, style: i, ...a } = e, { state: o } = yg();
7340
7364
  return w("div", e, {
7341
7365
  ref: t,
7342
7366
  state: o,
7343
7367
  props: [{ role: "group" }, a],
7344
- stateAttributesMapping: mg
7368
+ stateAttributesMapping: bg
7345
7369
  });
7346
7370
  });
7347
- process.env.NODE_ENV !== "production" && (r_.displayName = "NumberFieldGroup");
7371
+ process.env.NODE_ENV !== "production" && (l_.displayName = "NumberFieldGroup");
7348
7372
  //#endregion
7349
7373
  //#region node_modules/@base-ui/utils/esm/useInterval.js
7350
- var i_ = 0, a_ = class e extends _ {
7374
+ var u_ = 0, d_ = class e extends _ {
7351
7375
  static create() {
7352
7376
  return new e();
7353
7377
  }
@@ -7357,21 +7381,21 @@ var i_ = 0, a_ = class e extends _ {
7357
7381
  }, e);
7358
7382
  }
7359
7383
  clear = () => {
7360
- this.currentId !== i_ && (clearInterval(this.currentId), this.currentId = i_);
7384
+ this.currentId !== u_ && (clearInterval(this.currentId), this.currentId = u_);
7361
7385
  };
7362
7386
  };
7363
- function o_() {
7364
- let e = re(a_.create).current;
7387
+ function f_() {
7388
+ let e = re(d_.create).current;
7365
7389
  return y(e.disposeEffect), e;
7366
7390
  }
7367
7391
  //#endregion
7368
7392
  //#region node_modules/@base-ui/react/esm/internals/usePressAndHold.js
7369
- var s_ = 60, c_ = 400, l_ = 8, u_ = 50, d_ = 3;
7370
- function f_(e) {
7393
+ var p_ = 60, m_ = 400, h_ = 8, g_ = 50, __ = 3;
7394
+ function v_(e) {
7371
7395
  return e === "touch" || e === "pen";
7372
7396
  }
7373
- function p_(e) {
7374
- let { disabled: t, readOnly: n = !1, tick: r, onStop: i, tickDelay: a = s_, startDelay: o = c_, scrollDistance: s = l_, elementRef: c } = e, l = O(), u = o_(), d = O(), f = z.useRef(!1), p = z.useRef(0), m = z.useRef({
7397
+ function y_(e) {
7398
+ let { disabled: t, readOnly: n = !1, tick: r, onStop: i, tickDelay: a = p_, startDelay: o = m_, scrollDistance: s = h_, elementRef: c } = e, l = O(), u = f_(), d = O(), f = z.useRef(!1), p = z.useRef(0), m = z.useRef({
7375
7399
  x: 0,
7376
7400
  y: 0
7377
7401
  }), h = z.useRef(!1), g = z.useRef(!1), _ = z.useRef(""), v = z.useRef(() => {}), y = F(() => {
@@ -7409,22 +7433,22 @@ function p_(e) {
7409
7433
  e.defaultPrevented || !r || t || n || (_.current = e.pointerType, g.current = !1, f.current = !0, m.current = {
7410
7434
  x: e.clientX,
7411
7435
  y: e.clientY
7412
- }, f_(e.pointerType) ? d.start(u_, () => {
7436
+ }, v_(e.pointerType) ? d.start(g_, () => {
7413
7437
  let t = p.current;
7414
- p.current = 0, f.current && t < d_ ? (b(e.nativeEvent), g.current = !0) : (g.current = !1, y());
7438
+ p.current = 0, f.current && t < __ ? (b(e.nativeEvent), g.current = !0) : (g.current = !1, y());
7415
7439
  }) : (e.preventDefault(), b(e.nativeEvent)));
7416
7440
  },
7417
7441
  onPointerUp(e) {
7418
- f_(e.pointerType) && (f.current = !1);
7442
+ v_(e.pointerType) && (f.current = !1);
7419
7443
  },
7420
7444
  onPointerMove(e) {
7421
- if (t || n || !f_(e.pointerType) || !f.current) return;
7445
+ if (t || n || !v_(e.pointerType) || !f.current) return;
7422
7446
  p.current != null && (p.current += 1);
7423
7447
  let { x: r, y: i } = m.current, a = r - e.clientX, o = i - e.clientY;
7424
7448
  a ** 2 + o ** 2 > s ** 2 && y();
7425
7449
  },
7426
7450
  onMouseEnter(e) {
7427
- e.defaultPrevented || t || n || !f.current || h.current || f_(_.current) || b(e.nativeEvent);
7451
+ e.defaultPrevented || t || n || !f.current || h.current || v_(_.current) || b(e.nativeEvent);
7428
7452
  },
7429
7453
  onMouseLeave() {
7430
7454
  h.current || y();
@@ -7433,22 +7457,22 @@ function p_(e) {
7433
7457
  h.current || y();
7434
7458
  }
7435
7459
  },
7436
- shouldSkipClick: F((e) => e.defaultPrevented ? !0 : f_(_.current) ? g.current : e.detail !== 0)
7460
+ shouldSkipClick: F((e) => e.defaultPrevented ? !0 : v_(_.current) ? g.current : e.detail !== 0)
7437
7461
  };
7438
7462
  }
7439
7463
  //#endregion
7440
7464
  //#region node_modules/@base-ui/react/esm/number-field/root/useNumberFieldButton.js
7441
- function m_(e) {
7465
+ function b_(e) {
7442
7466
  return e === "touch" || e === "pen";
7443
7467
  }
7444
- function h_(e) {
7468
+ function x_(e) {
7445
7469
  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;
7446
7470
  function _(e) {
7447
7471
  t.current = !0;
7448
- let n = Jg(c, u, r.current);
7472
+ let n = e_(c, u, r.current);
7449
7473
  n !== null && (p.current = n, f(n, S(g, e, void 0, { direction: l ? 1 : -1 })));
7450
7474
  }
7451
- let { pointerHandlers: v, shouldSkipClick: y } = p_({
7475
+ let { pointerHandlers: v, shouldSkipClick: y } = y_({
7452
7476
  disabled: n || d,
7453
7477
  elementRef: s,
7454
7478
  tickDelay: 60,
@@ -7493,14 +7517,14 @@ function h_(e) {
7493
7517
  },
7494
7518
  onPointerDown(e) {
7495
7519
  let t = !e.button || e.button === 0;
7496
- e.defaultPrevented || d || !t || n || (_(e.nativeEvent), m_(e.pointerType) || s.current?.focus(), v.onPointerDown(e));
7520
+ e.defaultPrevented || d || !t || n || (_(e.nativeEvent), b_(e.pointerType) || s.current?.focus(), v.onPointerDown(e));
7497
7521
  }
7498
7522
  };
7499
7523
  }
7500
7524
  //#endregion
7501
7525
  //#region node_modules/@base-ui/react/esm/number-field/increment/NumberFieldIncrement.js
7502
- var g_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
7503
- 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 } = pg(), E = i || l || x != null && x >= _, D = h_({
7526
+ var S_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
7527
+ 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 } = yg(), E = i || l || x != null && x >= _, D = x_({
7504
7528
  isIncrement: !0,
7505
7529
  inputRef: m,
7506
7530
  inputValue: h,
@@ -7532,14 +7556,14 @@ var g_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
7532
7556
  s,
7533
7557
  O
7534
7558
  ],
7535
- stateAttributesMapping: mg
7559
+ stateAttributesMapping: bg
7536
7560
  });
7537
7561
  });
7538
- process.env.NODE_ENV !== "production" && (g_.displayName = "NumberFieldIncrement");
7562
+ process.env.NODE_ENV !== "production" && (S_.displayName = "NumberFieldIncrement");
7539
7563
  //#endregion
7540
7564
  //#region node_modules/@base-ui/react/esm/number-field/decrement/NumberFieldDecrement.js
7541
- var __ = /*#__PURE__*/ z.forwardRef(function(e, t) {
7542
- 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 } = pg(), E = i || l || b != null && b <= g, D = h_({
7565
+ var C_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
7566
+ 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 } = yg(), E = i || l || b != null && b <= g, D = x_({
7543
7567
  isIncrement: !1,
7544
7568
  inputRef: m,
7545
7569
  inputValue: h,
@@ -7571,16 +7595,16 @@ var __ = /*#__PURE__*/ z.forwardRef(function(e, t) {
7571
7595
  s,
7572
7596
  O
7573
7597
  ],
7574
- stateAttributesMapping: mg
7598
+ stateAttributesMapping: bg
7575
7599
  });
7576
7600
  });
7577
- process.env.NODE_ENV !== "production" && (__.displayName = "NumberFieldDecrement");
7601
+ process.env.NODE_ENV !== "production" && (C_.displayName = "NumberFieldDecrement");
7578
7602
  //#endregion
7579
7603
  //#region node_modules/@base-ui/react/esm/number-field/input/NumberFieldInput.js
7580
- var v_ = {
7604
+ var w_ = {
7581
7605
  ...M,
7582
- ...mg
7583
- }, y_ = /* @__PURE__ */ new Set([
7606
+ ...bg
7607
+ }, T_ = /* @__PURE__ */ new Set([
7584
7608
  "Backspace",
7585
7609
  "Delete",
7586
7610
  "ArrowLeft",
@@ -7588,8 +7612,8 @@ var v_ = {
7588
7612
  "Tab",
7589
7613
  "Enter",
7590
7614
  "Escape"
7591
- ]), b_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
7592
- 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 } = pg(), { 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);
7615
+ ]), E_ = /*#__PURE__*/ z.forwardRef(function(e, t) {
7616
+ 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 } = yg(), { 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);
7593
7617
  return oe(A, {
7594
7618
  id: d,
7595
7619
  value: j
@@ -7635,12 +7659,12 @@ var v_ = {
7635
7659
  E(null, S(x, e.nativeEvent)), ie === "onBlur" && de.commit(null), M(null, T(x, e.nativeEvent));
7636
7660
  return;
7637
7661
  }
7638
- let r = c.current, i = Jg(m, k, r);
7662
+ let r = c.current, i = e_(m, k, r);
7639
7663
  if (i === null) return;
7640
7664
  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;
7641
7665
  ie === "onBlur" && de.commit(u), f && (me.current = !0, E(u, S(h, e.nativeEvent))), p && M(u, d);
7642
- let g = ug(u, k, r);
7643
- !(!a && i === j && m === dg(i, k, r)) && m !== g && O(g);
7666
+ let g = gg(u, k, r);
7667
+ !(!a && i === j && m === _g(i, k, r)) && m !== g && O(g);
7644
7668
  },
7645
7669
  onChange(e) {
7646
7670
  if (e.nativeEvent.defaultPrevented) return;
@@ -7652,24 +7676,24 @@ var v_ = {
7652
7676
  }
7653
7677
  let n = l();
7654
7678
  if (!Array.from(t).every((e) => {
7655
- let t = e >= "0" && e <= "9", r = Ag.test(e), i = Mg.test(e), a = jg.test(e), o = Ng.test(e), s = Gg.test(e);
7679
+ let t = e >= "0" && e <= "9", r = Ig.test(e), i = Rg.test(e), a = Lg.test(e), o = zg.test(e), s = Zg.test(e);
7656
7680
  return t || r || i || a || o || s || n.has(e);
7657
7681
  })) return;
7658
- let r = Jg(t, k, c.current);
7682
+ let r = e_(t, k, c.current);
7659
7683
  O(t), r !== null && E(r, S(te, e.nativeEvent));
7660
7684
  },
7661
7685
  onKeyDown(e) {
7662
7686
  if (e.defaultPrevented || b || s) return;
7663
7687
  let t = e.nativeEvent;
7664
7688
  o.current = !0;
7665
- let n = l(), r = n.has(e.key), { decimal: i, currency: a, percentSign: d } = qg(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;
7666
- if (Gg.test(e.key) && Array.from(n).some((e) => Gg.test(e || ""))) {
7667
- let e = m.search(Ug), t = e != null && e !== -1 && y(e);
7668
- r = !(Gg.test(m) || Kg.test(m)) || g || t;
7689
+ let n = l(), r = n.has(e.key), { decimal: i, currency: a, percentSign: d } = $g(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;
7690
+ if (Zg.test(e.key) && Array.from(n).some((e) => Zg.test(e || ""))) {
7691
+ let e = m.search(Yg), t = e != null && e !== -1 && y(e);
7692
+ r = !(Zg.test(m) || Qg.test(m)) || g || t;
7669
7693
  }
7670
- if (Kg.test(e.key) && Array.from(n).some((e) => Kg.test(e || ""))) {
7671
- let e = m.search(Wg), t = e != null && e !== -1 && y(e);
7672
- r = !(Gg.test(m) || Kg.test(m)) || g || t;
7694
+ if (Qg.test(e.key) && Array.from(n).some((e) => Qg.test(e || ""))) {
7695
+ let e = m.search(Xg), t = e != null && e !== -1 && y(e);
7696
+ r = !(Zg.test(m) || Qg.test(m)) || g || t;
7673
7697
  }
7674
7698
  [
7675
7699
  i,
@@ -7681,9 +7705,9 @@ var v_ = {
7681
7705
  r = !m.includes(t) || g || n;
7682
7706
  }
7683
7707
  });
7684
- let x = e.key >= "0" && e.key <= "9", C = Ag.test(e.key), w = Mg.test(e.key), D = Ng.test(e.key), O = y_.has(e.key);
7708
+ let x = e.key >= "0" && e.key <= "9", C = Ig.test(e.key), w = Rg.test(e.key), D = zg.test(e.key), O = T_.has(e.key);
7685
7709
  if (e.which === 229 || e.altKey || e.ctrlKey || e.metaKey || r || x || C || D || w || O) return;
7686
- let A = Jg(m, k, c.current), j = u(e) ?? 1;
7710
+ let A = e_(m, k, c.current), j = u(e) ?? 1;
7687
7711
  le(e);
7688
7712
  let ee = T(P, t);
7689
7713
  e.key === "ArrowUp" ? (f(j, {
@@ -7701,36 +7725,36 @@ var v_ = {
7701
7725
  onPaste(e) {
7702
7726
  if (e.defaultPrevented || b || s) return;
7703
7727
  e.preventDefault();
7704
- let t = (e.clipboardData || window.Clipboard).getData("text/plain"), n = Jg(t, k, c.current);
7728
+ let t = (e.clipboardData || window.Clipboard).getData("text/plain"), n = e_(t, k, c.current);
7705
7729
  n !== null && (o.current = !1, E(n, S(ee, e.nativeEvent)), O(t));
7706
7730
  }
7707
7731
  },
7708
7732
  de.getValidationProps(),
7709
7733
  a
7710
7734
  ],
7711
- stateAttributesMapping: v_
7735
+ stateAttributesMapping: w_
7712
7736
  });
7713
7737
  });
7714
- process.env.NODE_ENV !== "production" && (b_.displayName = "NumberFieldInput");
7738
+ process.env.NODE_ENV !== "production" && (E_.displayName = "NumberFieldInput");
7715
7739
  //#endregion
7716
7740
  //#region src/base/form/fields/EntityPickerField.tsx
7717
- function x_(e) {
7741
+ function D_(e) {
7718
7742
  return e.split(/\s+/).slice(0, 2).map((e) => e[0]?.toUpperCase() ?? "").join("");
7719
7743
  }
7720
- function S_({ 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 }) {
7744
+ function O_({ 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 }) {
7721
7745
  let { t: h } = De(), [g, _] = _t(i && t && i.value === t ? i.label : ""), [v, y] = _t([]), [b, x] = _t(!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]);
7722
7746
  pt(() => {
7723
7747
  if (!C) return;
7724
7748
  if (S.current && clearTimeout(S.current), g.length < o) return S.current = setTimeout(() => y([]), 0), () => {
7725
7749
  S.current && clearTimeout(S.current);
7726
7750
  };
7727
- let e = tg();
7751
+ let e = sg();
7728
7752
  return S.current = setTimeout(async () => {
7729
7753
  x(!0);
7730
7754
  try {
7731
7755
  let e = new URL(a, window.location.origin);
7732
7756
  e.searchParams.set("q", g);
7733
- let t = await ng(e.toString());
7757
+ let t = await cg(e.toString());
7734
7758
  if (t.ok) {
7735
7759
  let e = await t.json(), n = (e.items ?? e.data ?? e).map((e) => ({
7736
7760
  value: String(e.value ?? e.id),
@@ -7790,14 +7814,14 @@ function S_({ id: e, value: t, onChange: n, options: r, initialOption: i, autoco
7790
7814
  }), /* @__PURE__ */ V(ce, { children: k.map((e) => /* @__PURE__ */ H(xe, {
7791
7815
  value: e.value,
7792
7816
  className: "flex items-center gap-2.5 px-3 py-2",
7793
- children: [M && /* @__PURE__ */ H(rg, {
7817
+ children: [M && /* @__PURE__ */ H(lg, {
7794
7818
  className: "h-7 w-7 shrink-0",
7795
- children: [e.avatarUrl && /* @__PURE__ */ V(ig, {
7819
+ children: [e.avatarUrl && /* @__PURE__ */ V(ug, {
7796
7820
  src: e.avatarUrl,
7797
7821
  alt: e.label
7798
- }), /* @__PURE__ */ V(ag, {
7822
+ }), /* @__PURE__ */ V(dg, {
7799
7823
  className: "text-[10px]",
7800
- children: x_(e.label)
7824
+ children: D_(e.label)
7801
7825
  })]
7802
7826
  }), /* @__PURE__ */ H("div", {
7803
7827
  className: "min-w-0 flex-1",
@@ -7814,7 +7838,7 @@ function S_({ id: e, value: t, onChange: n, options: r, initialOption: i, autoco
7814
7838
  }
7815
7839
  //#endregion
7816
7840
  //#region src/lib/hooks/use-file-upload.ts
7817
- var C_ = (e = {}) => {
7841
+ var k_ = (e = {}) => {
7818
7842
  let { maxFiles: t = Infinity, maxSize: n = Infinity, accept: r = "*", multiple: i = !1, initialFiles: a = [], onFilesChange: o, onFilesAdded: s, onError: c } = e, [l, u] = _t({
7819
7843
  files: a.map((e) => ({
7820
7844
  file: e,
@@ -7825,8 +7849,8 @@ var C_ = (e = {}) => {
7825
7849
  errors: []
7826
7850
  }), d = gt(null), f = B((e) => {
7827
7851
  if (e instanceof File) {
7828
- if (e.size > n) return `File "${e.name}" exceeds the maximum size of ${w_(n)}.`;
7829
- } else if (e.size > n) return `File "${e.name}" exceeds the maximum size of ${w_(n)}.`;
7852
+ if (e.size > n) return `File "${e.name}" exceeds the maximum size of ${A_(n)}.`;
7853
+ } else if (e.size > n) return `File "${e.name}" exceeds the maximum size of ${A_(n)}.`;
7830
7854
  if (r !== "*") {
7831
7855
  let t = r.split(",").map((e) => e.trim()), n = e instanceof File ? e.type || "" : e.type, i = `.${e instanceof File, e.name.split(".").pop()}`;
7832
7856
  if (!t.some((e) => {
@@ -7867,7 +7891,7 @@ var C_ = (e = {}) => {
7867
7891
  for (let e of r) {
7868
7892
  if (i && l.files.some((t) => t.file.name === e.name && t.file.size === e.size)) return;
7869
7893
  if (e.size > n) {
7870
- a.push(i ? `Some files exceed the maximum size of ${w_(n)}.` : `File exceeds the maximum size of ${w_(n)}.`);
7894
+ a.push(i ? `Some files exceed the maximum size of ${A_(n)}.` : `File exceeds the maximum size of ${A_(n)}.`);
7871
7895
  continue;
7872
7896
  }
7873
7897
  let t = f(e);
@@ -7966,7 +7990,7 @@ var C_ = (e = {}) => {
7966
7990
  C
7967
7991
  ])
7968
7992
  }];
7969
- }, w_ = (e, t = 2) => {
7993
+ }, A_ = (e, t = 2) => {
7970
7994
  if (e === 0) return "0 Bytes";
7971
7995
  let n = 1024, r = t < 0 ? 0 : t, i = [
7972
7996
  "Bytes",
@@ -7983,21 +8007,21 @@ var C_ = (e = {}) => {
7983
8007
  };
7984
8008
  //#endregion
7985
8009
  //#region src/base/form/fields/FileUploadField.tsx
7986
- function T_(e) {
8010
+ function j_(e) {
7987
8011
  let t = e.split(/[?#]/)[0], n = t.split("/");
7988
8012
  return n[n.length - 1] || t;
7989
8013
  }
7990
- function E_(e) {
8014
+ function M_(e) {
7991
8015
  if (e == null || e === "") return null;
7992
8016
  if (typeof e == "string") return {
7993
- name: T_(e),
8017
+ name: j_(e),
7994
8018
  size: 0,
7995
8019
  type: "",
7996
8020
  url: e,
7997
8021
  id: e
7998
8022
  };
7999
8023
  if (typeof e == "object" && !(e instanceof File)) {
8000
- let t = e, n = typeof t.url == "string" ? t.url : "", r = typeof t.name == "string" ? t.name : n ? T_(n) : "";
8024
+ let t = e, n = typeof t.url == "string" ? t.url : "", r = typeof t.name == "string" ? t.name : n ? j_(n) : "";
8001
8025
  return !n && !r ? null : {
8002
8026
  name: r,
8003
8027
  size: typeof t.size == "number" ? t.size : 0,
@@ -8008,11 +8032,11 @@ function E_(e) {
8008
8032
  }
8009
8033
  return null;
8010
8034
  }
8011
- function D_(e) {
8012
- return (Array.isArray(e) ? e : [e]).map(E_).filter((e) => e !== null);
8035
+ function N_(e) {
8036
+ return (Array.isArray(e) ? e : [e]).map(M_).filter((e) => e !== null);
8013
8037
  }
8014
- function O_({ 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 }) {
8015
- let { t: p } = De(), [m] = _t(() => D_(t)), [{ files: h, isDragging: g, errors: _ }, { removeFile: v, handleDragEnter: y, handleDragLeave: b, handleDragOver: x, handleDrop: S, openFileDialog: C, getInputProps: w }] = C_({
8038
+ function P_({ 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 }) {
8039
+ let { t: p } = De(), [m] = _t(() => N_(t)), [{ files: h, isDragging: g, errors: _ }, { removeFile: v, handleDragEnter: y, handleDragLeave: b, handleDragOver: x, handleDrop: S, openFileDialog: C, getInputProps: w }] = k_({
8016
8040
  maxFiles: i ? a : 1,
8017
8041
  maxSize: o,
8018
8042
  accept: r,
@@ -8061,7 +8085,7 @@ function O_({ id: e, value: t, onChange: n, accept: r = "*", multiple: i = !1, m
8061
8085
  children: [
8062
8086
  p("middag.ui.form.file_max_size"),
8063
8087
  " ",
8064
- w_(o)
8088
+ A_(o)
8065
8089
  ]
8066
8090
  })
8067
8091
  ]
@@ -8088,7 +8112,7 @@ function O_({ id: e, value: t, onChange: n, accept: r = "*", multiple: i = !1, m
8088
8112
  children: e.file.name
8089
8113
  }), /* @__PURE__ */ V("p", {
8090
8114
  className: "text-muted-foreground text-xs",
8091
- children: w_(e.file.size)
8115
+ children: A_(e.file.size)
8092
8116
  })]
8093
8117
  }),
8094
8118
  /* @__PURE__ */ V(d, {
@@ -8122,10 +8146,10 @@ function O_({ id: e, value: t, onChange: n, accept: r = "*", multiple: i = !1, m
8122
8146
  }
8123
8147
  //#endregion
8124
8148
  //#region src/base/form/fields/MultiSelectField.tsx
8125
- var k_ = 8;
8126
- function A_({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled: a, required: o, error: s, helpTextId: c, errorId: l, variant: u = "auto" }) {
8149
+ var F_ = 8;
8150
+ function I_({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled: a, required: o, error: s, helpTextId: c, errorId: l, variant: u = "auto" }) {
8127
8151
  let { t: d } = De(), f = t ?? [], p = [s ? l : void 0, c].filter(Boolean).join(" ") || void 0;
8128
- return u === "checkbox" || u === "auto" && r.length <= k_ ? /* @__PURE__ */ V(j_, {
8152
+ return u === "checkbox" || u === "auto" && r.length <= F_ ? /* @__PURE__ */ V(L_, {
8129
8153
  id: e,
8130
8154
  options: r,
8131
8155
  selected: f,
@@ -8135,7 +8159,7 @@ function A_({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled
8135
8159
  error: s,
8136
8160
  describedBy: p,
8137
8161
  t: d
8138
- }) : /* @__PURE__ */ V(M_, {
8162
+ }) : /* @__PURE__ */ V(R_, {
8139
8163
  id: e,
8140
8164
  options: r,
8141
8165
  selected: f,
@@ -8148,7 +8172,7 @@ function A_({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled
8148
8172
  t: d
8149
8173
  });
8150
8174
  }
8151
- function j_({ id: e, options: t, selected: n, onChange: r, disabled: i, required: a, error: o, describedBy: s, t: c }) {
8175
+ function L_({ id: e, options: t, selected: n, onChange: r, disabled: i, required: a, error: o, describedBy: s, t: c }) {
8152
8176
  let l = (e) => {
8153
8177
  n.includes(e) ? r(n.filter((t) => t !== e)) : r([...n, e]);
8154
8178
  };
@@ -8161,12 +8185,12 @@ function j_({ id: e, options: t, selected: n, onChange: r, disabled: i, required
8161
8185
  className: "border-input max-h-48 space-y-2 overflow-y-auto rounded-md border p-3",
8162
8186
  children: [t.map((t) => /* @__PURE__ */ H("div", {
8163
8187
  className: "flex items-center gap-2",
8164
- children: [/* @__PURE__ */ V(Gh, {
8188
+ children: [/* @__PURE__ */ V(Zh, {
8165
8189
  id: `${e}-${t.value}`,
8166
8190
  checked: n.includes(t.value),
8167
8191
  onCheckedChange: () => l(t.value),
8168
8192
  disabled: i
8169
- }), /* @__PURE__ */ V(qh, {
8193
+ }), /* @__PURE__ */ V($h, {
8170
8194
  htmlFor: `${e}-${t.value}`,
8171
8195
  className: "text-sm font-normal",
8172
8196
  children: t.label
@@ -8177,7 +8201,7 @@ function j_({ id: e, options: t, selected: n, onChange: r, disabled: i, required
8177
8201
  })]
8178
8202
  });
8179
8203
  }
8180
- function M_({ id: e, options: t, selected: n, onChange: r, placeholder: i, disabled: a, required: o, error: s, describedBy: c, t: l }) {
8204
+ function R_({ id: e, options: t, selected: n, onChange: r, placeholder: i, disabled: a, required: o, error: s, describedBy: c, t: l }) {
8181
8205
  let [u, d] = _t(""), f = ht(() => {
8182
8206
  if (!u) return t;
8183
8207
  let e = u.toLowerCase();
@@ -8201,7 +8225,7 @@ function M_({ id: e, options: t, selected: n, onChange: r, placeholder: i, disab
8201
8225
  className: "space-y-2",
8202
8226
  children: [p.length > 0 && /* @__PURE__ */ V("div", {
8203
8227
  className: "flex flex-wrap gap-1.5",
8204
- children: p.map((e) => /* @__PURE__ */ H(Oh, {
8228
+ children: p.map((e) => /* @__PURE__ */ H(Ph, {
8205
8229
  variant: "secondary",
8206
8230
  className: "gap-1 pr-1",
8207
8231
  children: [e.label, /* @__PURE__ */ V("button", {
@@ -8246,7 +8270,7 @@ function M_({ id: e, options: t, selected: n, onChange: r, placeholder: i, disab
8246
8270
  }), /* @__PURE__ */ V(ce, { children: f.map((e) => /* @__PURE__ */ H(xe, {
8247
8271
  value: e.value,
8248
8272
  className: "flex items-center gap-2",
8249
- children: [/* @__PURE__ */ V(Gh, {
8273
+ children: [/* @__PURE__ */ V(Zh, {
8250
8274
  checked: n.includes(e.value),
8251
8275
  tabIndex: -1,
8252
8276
  className: "pointer-events-none"
@@ -8260,7 +8284,7 @@ function M_({ id: e, options: t, selected: n, onChange: r, placeholder: i, disab
8260
8284
  }
8261
8285
  //#endregion
8262
8286
  //#region src/primitives/reui/native-select.tsx
8263
- function N_({ className: e, size: t = "default", ...n }) {
8287
+ function z_({ className: e, size: t = "default", ...n }) {
8264
8288
  return /* @__PURE__ */ H("div", {
8265
8289
  className: "group/native-select relative w-fit has-[select:disabled]:opacity-50",
8266
8290
  "data-slot": "native-select-wrapper",
@@ -8276,7 +8300,7 @@ function N_({ className: e, size: t = "default", ...n }) {
8276
8300
  })]
8277
8301
  });
8278
8302
  }
8279
- function P_({ className: e, ...t }) {
8303
+ function B_({ className: e, ...t }) {
8280
8304
  return /* @__PURE__ */ V("option", {
8281
8305
  "data-slot": "native-select-option",
8282
8306
  className: R("bg-[Canvas] text-[CanvasText]", e),
@@ -8285,11 +8309,11 @@ function P_({ className: e, ...t }) {
8285
8309
  }
8286
8310
  //#endregion
8287
8311
  //#region src/base/form/fields/NativeSelectField.tsx
8288
- function F_({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled: a, required: o, error: s, helpTextId: c, errorId: l }) {
8312
+ function V_({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled: a, required: o, error: s, helpTextId: c, errorId: l }) {
8289
8313
  let { t: u } = De(), d = [s ? l : void 0, c].filter(Boolean).join(" ") || void 0;
8290
8314
  return /* @__PURE__ */ V("div", {
8291
8315
  className: "w-full [&>div]:w-full",
8292
- children: /* @__PURE__ */ H(N_, {
8316
+ children: /* @__PURE__ */ H(z_, {
8293
8317
  id: e,
8294
8318
  value: t ?? "",
8295
8319
  onChange: (e) => n(e.target.value),
@@ -8298,11 +8322,11 @@ function F_({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled
8298
8322
  "aria-required": o || void 0,
8299
8323
  "aria-invalid": s ? !0 : void 0,
8300
8324
  "aria-describedby": d,
8301
- children: [/* @__PURE__ */ V(P_, {
8325
+ children: [/* @__PURE__ */ V(B_, {
8302
8326
  value: "",
8303
8327
  disabled: o,
8304
8328
  children: i ?? u("middag.ui.form.select_placeholder")
8305
- }), r.map((e) => /* @__PURE__ */ V(P_, {
8329
+ }), r.map((e) => /* @__PURE__ */ V(B_, {
8306
8330
  value: e.value,
8307
8331
  children: e.label
8308
8332
  }, e.value))]
@@ -8311,21 +8335,21 @@ function F_({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled
8311
8335
  }
8312
8336
  //#endregion
8313
8337
  //#region src/primitives/reui/number-field.tsx
8314
- var I_ = ut(null), L_ = 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]", {
8338
+ var H_ = ut(null), U_ = 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]", {
8315
8339
  variants: { size: {
8316
8340
  sm: "h-8 text-sm",
8317
8341
  default: "h-9 text-sm",
8318
8342
  lg: "h-10 text-sm"
8319
8343
  } },
8320
8344
  defaultVariants: { size: "default" }
8321
- }), R_ = 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", {
8345
+ }), W_ = 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", {
8322
8346
  variants: { size: {
8323
8347
  sm: "px-2 [&_svg:not([class*='size-'])]:size-3.5",
8324
8348
  default: "px-2.5 [&_svg:not([class*='size-'])]:size-4",
8325
8349
  lg: "px-3 [&_svg:not([class*='size-'])]:size-4"
8326
8350
  } },
8327
8351
  defaultVariants: { size: "default" }
8328
- }), z_ = o("w-full min-w-0 flex-1 bg-transparent text-center tabular-nums outline-none", {
8352
+ }), G_ = o("w-full min-w-0 flex-1 bg-transparent text-center tabular-nums outline-none", {
8329
8353
  variants: { size: {
8330
8354
  sm: "px-2.5 py-1",
8331
8355
  default: "px-3 py-1.5",
@@ -8333,14 +8357,14 @@ var I_ = ut(null), L_ = o("relative flex w-full justify-between border border-in
8333
8357
  } },
8334
8358
  defaultVariants: { size: "default" }
8335
8359
  });
8336
- function B_({ id: e, className: t, size: n = "default", ...r }) {
8360
+ function K_({ id: e, className: t, size: n = "default", ...r }) {
8337
8361
  let i = mt(), a = e ?? i, o = n ?? "default";
8338
- return /* @__PURE__ */ V(I_.Provider, {
8362
+ return /* @__PURE__ */ V(H_.Provider, {
8339
8363
  value: {
8340
8364
  fieldId: a,
8341
8365
  size: o
8342
8366
  },
8343
- children: /* @__PURE__ */ V(t_, {
8367
+ children: /* @__PURE__ */ V(s_, {
8344
8368
  className: R("flex w-full flex-col items-start gap-2", t),
8345
8369
  "data-size": o,
8346
8370
  "data-slot": "number-field",
@@ -8349,20 +8373,20 @@ function B_({ id: e, className: t, size: n = "default", ...r }) {
8349
8373
  })
8350
8374
  });
8351
8375
  }
8352
- function V_({ className: e, size: t, ...n }) {
8353
- let r = ft(I_);
8376
+ function q_({ className: e, size: t, ...n }) {
8377
+ let r = ft(H_);
8354
8378
  if (!r) throw Error("NumberFieldGroup must be used within a NumberField component.");
8355
- return /* @__PURE__ */ V(r_, {
8356
- className: R(L_({ size: t ?? r.size }), e),
8379
+ return /* @__PURE__ */ V(l_, {
8380
+ className: R(U_({ size: t ?? r.size }), e),
8357
8381
  "data-slot": "number-field-group",
8358
8382
  ...n
8359
8383
  });
8360
8384
  }
8361
- function H_({ className: e, size: t, children: n, ...r }) {
8362
- let i = ft(I_);
8385
+ function J_({ className: e, size: t, children: n, ...r }) {
8386
+ let i = ft(H_);
8363
8387
  if (!i) throw Error("NumberFieldDecrement must be used within a NumberField component.");
8364
- return /* @__PURE__ */ V(__, {
8365
- className: R(R_({ size: t ?? i.size }), "rounded-s-4xl border-e-0", e),
8388
+ return /* @__PURE__ */ V(C_, {
8389
+ className: R(W_({ size: t ?? i.size }), "rounded-s-4xl border-e-0", e),
8366
8390
  "data-slot": "number-field-decrement",
8367
8391
  ...r,
8368
8392
  children: n ?? /* @__PURE__ */ V(L, {
@@ -8371,11 +8395,11 @@ function H_({ className: e, size: t, children: n, ...r }) {
8371
8395
  })
8372
8396
  });
8373
8397
  }
8374
- function U_({ className: e, size: t, children: n, ...r }) {
8375
- let i = ft(I_);
8398
+ function Y_({ className: e, size: t, children: n, ...r }) {
8399
+ let i = ft(H_);
8376
8400
  if (!i) throw Error("NumberFieldIncrement must be used within a NumberField component.");
8377
- return /* @__PURE__ */ V(g_, {
8378
- className: R(R_({ size: t ?? i.size }), "rounded-e-4xl border-s-0", e),
8401
+ return /* @__PURE__ */ V(S_, {
8402
+ className: R(W_({ size: t ?? i.size }), "rounded-e-4xl border-s-0", e),
8379
8403
  "data-slot": "number-field-increment",
8380
8404
  ...r,
8381
8405
  children: n ?? /* @__PURE__ */ V(L, {
@@ -8384,20 +8408,20 @@ function U_({ className: e, size: t, children: n, ...r }) {
8384
8408
  })
8385
8409
  });
8386
8410
  }
8387
- function W_({ className: e, size: t, ...n }) {
8388
- let r = ft(I_);
8411
+ function X_({ className: e, size: t, ...n }) {
8412
+ let r = ft(H_);
8389
8413
  if (!r) throw Error("NumberFieldInput must be used within a NumberField component.");
8390
- return /* @__PURE__ */ V(b_, {
8391
- className: R(z_({ size: t ?? r.size }), e),
8414
+ return /* @__PURE__ */ V(E_, {
8415
+ className: R(G_({ size: t ?? r.size }), e),
8392
8416
  "data-slot": "number-field-input",
8393
8417
  ...n
8394
8418
  });
8395
8419
  }
8396
8420
  //#endregion
8397
8421
  //#region src/base/form/fields/NumberField.tsx
8398
- function G_({ id: e, value: t, onChange: n, min: r, max: i, step: a = 1, disabled: o, required: s, error: c, helpTextId: l, errorId: u }) {
8422
+ function Z_({ id: e, value: t, onChange: n, min: r, max: i, step: a = 1, disabled: o, required: s, error: c, helpTextId: l, errorId: u }) {
8399
8423
  let d = [c ? u : void 0, l].filter(Boolean).join(" ") || void 0;
8400
- return /* @__PURE__ */ V(B_, {
8424
+ return /* @__PURE__ */ V(K_, {
8401
8425
  id: e,
8402
8426
  value: t ?? void 0,
8403
8427
  onValueChange: (e) => n(e ?? null),
@@ -8408,50 +8432,50 @@ function G_({ id: e, value: t, onChange: n, min: r, max: i, step: a = 1, disable
8408
8432
  "aria-invalid": c ? !0 : void 0,
8409
8433
  "aria-required": s || void 0,
8410
8434
  "aria-describedby": d,
8411
- children: /* @__PURE__ */ H(V_, { children: [
8412
- /* @__PURE__ */ V(H_, {}),
8413
- /* @__PURE__ */ V(W_, {}),
8414
- /* @__PURE__ */ V(U_, {})
8435
+ children: /* @__PURE__ */ H(q_, { children: [
8436
+ /* @__PURE__ */ V(J_, {}),
8437
+ /* @__PURE__ */ V(X_, {}),
8438
+ /* @__PURE__ */ V(Y_, {})
8415
8439
  ] })
8416
8440
  });
8417
8441
  }
8418
8442
  //#endregion
8419
8443
  //#region node_modules/input-otp/dist/index.mjs
8420
- var K_ = Object.defineProperty, q_ = Object.defineProperties, J_ = Object.getOwnPropertyDescriptors, Y_ = Object.getOwnPropertySymbols, X_ = Object.prototype.hasOwnProperty, Z_ = Object.prototype.propertyIsEnumerable, Q_ = (e, t, n) => t in e ? K_(e, t, {
8444
+ var Q_ = Object.defineProperty, $_ = Object.defineProperties, ev = Object.getOwnPropertyDescriptors, tv = Object.getOwnPropertySymbols, nv = Object.prototype.hasOwnProperty, rv = Object.prototype.propertyIsEnumerable, iv = (e, t, n) => t in e ? Q_(e, t, {
8421
8445
  enumerable: !0,
8422
8446
  configurable: !0,
8423
8447
  writable: !0,
8424
8448
  value: n
8425
- }) : e[t] = n, $_ = (e, t) => {
8426
- for (var n in t ||= {}) X_.call(t, n) && Q_(e, n, t[n]);
8427
- if (Y_) for (var n of Y_(t)) Z_.call(t, n) && Q_(e, n, t[n]);
8449
+ }) : e[t] = n, av = (e, t) => {
8450
+ for (var n in t ||= {}) nv.call(t, n) && iv(e, n, t[n]);
8451
+ if (tv) for (var n of tv(t)) rv.call(t, n) && iv(e, n, t[n]);
8428
8452
  return e;
8429
- }, ev = (e, t) => q_(e, J_(t)), tv = (e, t) => {
8453
+ }, ov = (e, t) => $_(e, ev(t)), sv = (e, t) => {
8430
8454
  var n = {};
8431
- for (var r in e) X_.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
8432
- if (e != null && Y_) for (var r of Y_(e)) t.indexOf(r) < 0 && Z_.call(e, r) && (n[r] = e[r]);
8455
+ for (var r in e) nv.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
8456
+ if (e != null && tv) for (var r of tv(e)) t.indexOf(r) < 0 && rv.call(e, r) && (n[r] = e[r]);
8433
8457
  return n;
8434
8458
  };
8435
- function nv(e) {
8459
+ function cv(e) {
8436
8460
  return [
8437
8461
  setTimeout(e, 0),
8438
8462
  setTimeout(e, 10),
8439
8463
  setTimeout(e, 50)
8440
8464
  ];
8441
8465
  }
8442
- function rv(e) {
8466
+ function lv(e) {
8443
8467
  let t = z.useRef();
8444
8468
  return z.useEffect(() => {
8445
8469
  t.current = e;
8446
8470
  }), t.current;
8447
8471
  }
8448
- var iv = 18, av = 40, ov = `${av}px`, sv = [
8472
+ var uv = 18, dv = 40, fv = `${dv}px`, pv = [
8449
8473
  "[data-lastpass-icon-root]",
8450
8474
  "com-1password-button",
8451
8475
  "[data-dashlanecreated]",
8452
8476
  "[style$=\"2147483647 !important;\"]"
8453
8477
  ].join(",");
8454
- function cv({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFocused: r }) {
8478
+ function mv({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFocused: r }) {
8455
8479
  let [i, a] = z.useState(!1), [o, s] = z.useState(!1), [c, l] = z.useState(!1), u = z.useMemo(() => n !== "none" && (n === "increase-width" || n === "experimental-no-flickering") && i && o, [
8456
8480
  i,
8457
8481
  o,
@@ -8459,8 +8483,8 @@ function cv({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
8459
8483
  ]), d = z.useCallback(() => {
8460
8484
  let r = e.current, i = t.current;
8461
8485
  if (!r || !i || c || n === "none") return;
8462
- let o = r, s = o.getBoundingClientRect().left + o.offsetWidth, u = o.getBoundingClientRect().top + o.offsetHeight / 2, d = s - iv, f = u;
8463
- document.querySelectorAll(sv).length === 0 && document.elementFromPoint(d, f) === r || (a(!0), l(!0));
8486
+ let o = r, s = o.getBoundingClientRect().left + o.offsetWidth, u = o.getBoundingClientRect().top + o.offsetHeight / 2, d = s - uv, f = u;
8487
+ document.querySelectorAll(pv).length === 0 && document.elementFromPoint(d, f) === r || (a(!0), l(!0));
8464
8488
  }, [
8465
8489
  e,
8466
8490
  t,
@@ -8472,7 +8496,7 @@ function cv({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
8472
8496
  if (!t || n === "none") return;
8473
8497
  function r() {
8474
8498
  let e = window.innerWidth - t.getBoundingClientRect().right;
8475
- s(e >= av);
8499
+ s(e >= dv);
8476
8500
  }
8477
8501
  r();
8478
8502
  let i = setInterval(r, 1e3);
@@ -8496,11 +8520,11 @@ function cv({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
8496
8520
  ]), {
8497
8521
  hasPWMBadge: i,
8498
8522
  willPushPWMBadge: u,
8499
- PWM_BADGE_SPACE_WIDTH: ov
8523
+ PWM_BADGE_SPACE_WIDTH: fv
8500
8524
  };
8501
8525
  }
8502
- var lv = z.createContext({}), uv = z.forwardRef((e, t) => {
8503
- 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 = fv, render: h, children: g } = n, _ = tv(n, [
8526
+ var hv = z.createContext({}), gv = z.forwardRef((e, t) => {
8527
+ 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 = vv, render: h, children: g } = n, _ = sv(n, [
8504
8528
  "value",
8505
8529
  "onChange",
8506
8530
  "maxLength",
@@ -8516,7 +8540,7 @@ var lv = z.createContext({}), uv = z.forwardRef((e, t) => {
8516
8540
  "render",
8517
8541
  "children"
8518
8542
  ]), v;
8519
- let [y, b] = z.useState(typeof _.defaultValue == "string" ? _.defaultValue : ""), x = r ?? y, S = rv(x), C = z.useCallback((e) => {
8543
+ let [y, b] = z.useState(typeof _.defaultValue == "string" ? _.defaultValue : ""), x = r ?? y, S = lv(x), C = z.useCallback((e) => {
8520
8544
  i?.(e), b(e);
8521
8545
  }, [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({
8522
8546
  value: x,
@@ -8570,7 +8594,7 @@ var lv = z.createContext({}), uv = z.forwardRef((e, t) => {
8570
8594
  let e = document.createElement("style");
8571
8595
  if (e.id = "input-otp-style", document.head.appendChild(e), e.sheet) {
8572
8596
  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;";
8573
- dv(e.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), dv(e.sheet, `[data-input-otp]:autofill { ${t} }`), dv(e.sheet, `[data-input-otp]:-webkit-autofill { ${t} }`), dv(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; } }"), dv(e.sheet, "[data-input-otp] + * { pointer-events: all !important; }");
8597
+ _v(e.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), _v(e.sheet, `[data-input-otp]:autofill { ${t} }`), _v(e.sheet, `[data-input-otp]:-webkit-autofill { ${t} }`), _v(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; } }"), _v(e.sheet, "[data-input-otp] + * { pointer-events: all !important; }");
8574
8598
  }
8575
8599
  }
8576
8600
  let r = () => {
@@ -8584,7 +8608,7 @@ var lv = z.createContext({}), uv = z.forwardRef((e, t) => {
8584
8608
  }, []);
8585
8609
  let [k, A] = z.useState(!1), [j, M] = z.useState(!1), [N, ee] = z.useState(null), [te, P] = z.useState(null);
8586
8610
  z.useEffect(() => {
8587
- nv(() => {
8611
+ cv(() => {
8588
8612
  var e;
8589
8613
  (e = T.current) == null || e.dispatchEvent(new Event("input"));
8590
8614
  let t = T.current?.selectionStart, n = T.current?.selectionEnd, r = T.current?.selectionDirection;
@@ -8602,7 +8626,7 @@ var lv = z.createContext({}), uv = z.forwardRef((e, t) => {
8602
8626
  S,
8603
8627
  x
8604
8628
  ]);
8605
- let F = cv({
8629
+ let F = mv({
8606
8630
  containerRef: E,
8607
8631
  inputRef: T,
8608
8632
  pushPasswordManagerStrategy: d,
@@ -8672,7 +8696,7 @@ var lv = z.createContext({}), uv = z.forwardRef((e, t) => {
8672
8696
  F.PWM_BADGE_SPACE_WIDTH,
8673
8697
  F.willPushPWMBadge,
8674
8698
  o
8675
- ]), se = z.useMemo(() => z.createElement("input", ev($_({ autoComplete: _.autoComplete || "one-time-code" }, _), {
8699
+ ]), se = z.useMemo(() => z.createElement("input", ov(av({ autoComplete: _.autoComplete || "one-time-code" }, _), {
8676
8700
  "data-input-otp": !0,
8677
8701
  "data-input-otp-placeholder-shown": x.length === 0 || void 0,
8678
8702
  "data-input-otp-mss": N,
@@ -8737,7 +8761,7 @@ var lv = z.createContext({}), uv = z.forwardRef((e, t) => {
8737
8761
  N,
8738
8762
  _.disabled,
8739
8763
  x
8740
- ]), le = z.useMemo(() => h ? h(ce) : z.createElement(lv.Provider, { value: ce }, g), [
8764
+ ]), le = z.useMemo(() => h ? h(ce) : z.createElement(hv.Provider, { value: ce }, g), [
8741
8765
  g,
8742
8766
  ce,
8743
8767
  h
@@ -8753,34 +8777,34 @@ var lv = z.createContext({}), uv = z.forwardRef((e, t) => {
8753
8777
  pointerEvents: "none"
8754
8778
  } }, se)));
8755
8779
  });
8756
- uv.displayName = "Input";
8757
- function dv(e, t) {
8780
+ gv.displayName = "Input";
8781
+ function _v(e, t) {
8758
8782
  try {
8759
8783
  e.insertRule(t);
8760
8784
  } catch {
8761
8785
  console.error("input-otp could not insert CSS rule:", t);
8762
8786
  }
8763
8787
  }
8764
- var fv = "\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}", pv = "^\\d+$", mv = "^[a-zA-Z0-9]+$";
8788
+ var vv = "\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}", yv = "^\\d+$", bv = "^[a-zA-Z0-9]+$";
8765
8789
  //#endregion
8766
8790
  //#region src/primitives/reui/input-otp.tsx
8767
- function hv({ className: e, containerClassName: t, ...n }) {
8768
- return /* @__PURE__ */ V(uv, {
8791
+ function xv({ className: e, containerClassName: t, ...n }) {
8792
+ return /* @__PURE__ */ V(gv, {
8769
8793
  "data-slot": "input-otp",
8770
8794
  containerClassName: R("flex items-center gap-2 has-disabled:opacity-50", t),
8771
8795
  className: R("disabled:cursor-not-allowed", e),
8772
8796
  ...n
8773
8797
  });
8774
8798
  }
8775
- function gv({ className: e, ...t }) {
8799
+ function Sv({ className: e, ...t }) {
8776
8800
  return /* @__PURE__ */ V("div", {
8777
8801
  "data-slot": "input-otp-group",
8778
8802
  className: R("flex items-center", e),
8779
8803
  ...t
8780
8804
  });
8781
8805
  }
8782
- function _v({ index: e, className: t, ...n }) {
8783
- let { char: r, hasFakeCaret: i, isActive: a } = z.useContext(lv)?.slots[e] ?? {};
8806
+ function Cv({ index: e, className: t, ...n }) {
8807
+ let { char: r, hasFakeCaret: i, isActive: a } = z.useContext(hv)?.slots[e] ?? {};
8784
8808
  return /* @__PURE__ */ H("div", {
8785
8809
  "data-slot": "input-otp-slot",
8786
8810
  "data-active": a,
@@ -8792,7 +8816,7 @@ function _v({ index: e, className: t, ...n }) {
8792
8816
  })]
8793
8817
  });
8794
8818
  }
8795
- function vv({ ...e }) {
8819
+ function wv({ ...e }) {
8796
8820
  return /* @__PURE__ */ V("div", {
8797
8821
  "data-slot": "input-otp-separator",
8798
8822
  role: "separator",
@@ -8802,15 +8826,15 @@ function vv({ ...e }) {
8802
8826
  }
8803
8827
  //#endregion
8804
8828
  //#region src/base/form/fields/OtpField.tsx
8805
- function yv(e, t) {
8829
+ function Tv(e, t) {
8806
8830
  if (!t || t >= e) return [Array.from({ length: e }, (e, t) => t)];
8807
8831
  let n = [];
8808
8832
  for (let r = 0; r < e; r += t) n.push(Array.from({ length: Math.min(t, e - r) }, (e, t) => r + t));
8809
8833
  return n;
8810
8834
  }
8811
- function bv({ id: e, value: t, onChange: n, maxLength: r = 6, pattern: i = "digits", groupSize: a, disabled: o, required: s, error: c, helpTextId: l, errorId: u }) {
8812
- let d = [c ? u : void 0, l].filter(Boolean).join(" ") || void 0, f = i === "alphanumeric" ? mv : pv, p = yv(r, a);
8813
- return /* @__PURE__ */ V(hv, {
8835
+ function Ev({ id: e, value: t, onChange: n, maxLength: r = 6, pattern: i = "digits", groupSize: a, disabled: o, required: s, error: c, helpTextId: l, errorId: u }) {
8836
+ let d = [c ? u : void 0, l].filter(Boolean).join(" ") || void 0, f = i === "alphanumeric" ? bv : yv, p = Tv(r, a);
8837
+ return /* @__PURE__ */ V(xv, {
8814
8838
  id: e,
8815
8839
  maxLength: r,
8816
8840
  value: t ?? "",
@@ -8820,15 +8844,15 @@ function bv({ id: e, value: t, onChange: n, maxLength: r = 6, pattern: i = "digi
8820
8844
  "aria-invalid": c ? !0 : void 0,
8821
8845
  "aria-required": s || void 0,
8822
8846
  "aria-describedby": d,
8823
- children: p.map((e, t) => /* @__PURE__ */ H(ct, { children: [/* @__PURE__ */ V(gv, { children: e.map((e) => /* @__PURE__ */ V(_v, {
8847
+ children: p.map((e, t) => /* @__PURE__ */ H(ct, { children: [/* @__PURE__ */ V(Sv, { children: e.map((e) => /* @__PURE__ */ V(Cv, {
8824
8848
  index: e,
8825
8849
  "aria-invalid": c ? !0 : void 0
8826
- }, e)) }), t < p.length - 1 && /* @__PURE__ */ V(vv, {})] }, e[0]))
8850
+ }, e)) }), t < p.length - 1 && /* @__PURE__ */ V(wv, {})] }, e[0]))
8827
8851
  });
8828
8852
  }
8829
8853
  //#endregion
8830
8854
  //#region src/base/form/fields/PasswordField.tsx
8831
- function xv({ id: e, value: t, onChange: n, placeholder: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
8855
+ function Dv({ id: e, value: t, onChange: n, placeholder: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
8832
8856
  let [l, u] = _t(!1), f = [o ? c : void 0, s].filter(Boolean).join(" ") || void 0;
8833
8857
  return /* @__PURE__ */ H("div", {
8834
8858
  className: "relative",
@@ -8861,19 +8885,19 @@ function xv({ id: e, value: t, onChange: n, placeholder: r, disabled: i, require
8861
8885
  }
8862
8886
  //#endregion
8863
8887
  //#region src/primitives/reui/radio-group.tsx
8864
- function Sv({ className: e, ...t }) {
8865
- return /* @__PURE__ */ V(wf, {
8888
+ function Ov({ className: e, ...t }) {
8889
+ return /* @__PURE__ */ V(Af, {
8866
8890
  "data-slot": "radio-group",
8867
8891
  className: R("grid gap-3", e),
8868
8892
  ...t
8869
8893
  });
8870
8894
  }
8871
- function Cv({ className: e, ...t }) {
8872
- return /* @__PURE__ */ V(Tf, {
8895
+ function kv({ className: e, ...t }) {
8896
+ return /* @__PURE__ */ V(jf, {
8873
8897
  "data-slot": "radio-group-item",
8874
8898
  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),
8875
8899
  ...t,
8876
- children: /* @__PURE__ */ V(Ef, {
8900
+ children: /* @__PURE__ */ V(Mf, {
8877
8901
  "data-slot": "radio-group-indicator",
8878
8902
  className: "relative flex items-center justify-center",
8879
8903
  children: /* @__PURE__ */ V(ou, { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary" })
@@ -8882,9 +8906,9 @@ function Cv({ className: e, ...t }) {
8882
8906
  }
8883
8907
  //#endregion
8884
8908
  //#region src/base/form/fields/RadioField.tsx
8885
- function wv({ id: e, value: t, onChange: n, options: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
8909
+ function Av({ id: e, value: t, onChange: n, options: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
8886
8910
  let l = [o ? c : void 0, s].filter(Boolean).join(" ") || void 0;
8887
- return /* @__PURE__ */ V(Sv, {
8911
+ return /* @__PURE__ */ V(Ov, {
8888
8912
  id: e,
8889
8913
  value: t ?? "",
8890
8914
  onValueChange: n,
@@ -8896,10 +8920,10 @@ function wv({ id: e, value: t, onChange: n, options: r, disabled: i, required: a
8896
8920
  let n = `${e}-${t.value}`;
8897
8921
  return /* @__PURE__ */ H("div", {
8898
8922
  className: "flex items-center gap-2",
8899
- children: [/* @__PURE__ */ V(Cv, {
8923
+ children: [/* @__PURE__ */ V(kv, {
8900
8924
  value: t.value,
8901
8925
  id: n
8902
- }), /* @__PURE__ */ V(qh, {
8926
+ }), /* @__PURE__ */ V($h, {
8903
8927
  htmlFor: n,
8904
8928
  className: "text-sm font-normal",
8905
8929
  children: t.label
@@ -8910,21 +8934,21 @@ function wv({ id: e, value: t, onChange: n, options: r, disabled: i, required: a
8910
8934
  }
8911
8935
  //#endregion
8912
8936
  //#region src/primitives/reui/rating.tsx
8913
- var Tv = o("flex items-center", {
8937
+ var jv = o("flex items-center", {
8914
8938
  variants: { size: {
8915
8939
  sm: "gap-2",
8916
8940
  default: "gap-2.5",
8917
8941
  lg: "gap-3"
8918
8942
  } },
8919
8943
  defaultVariants: { size: "default" }
8920
- }), Ev = o("", {
8944
+ }), Mv = o("", {
8921
8945
  variants: { size: {
8922
8946
  sm: "w-4 h-4",
8923
8947
  default: "w-5 h-5",
8924
8948
  lg: "w-6 h-6"
8925
8949
  } },
8926
8950
  defaultVariants: { size: "default" }
8927
- }), Dv = o("text-muted-foreground w-5", {
8951
+ }), Nv = o("text-muted-foreground w-5", {
8928
8952
  variants: { size: {
8929
8953
  sm: "text-xs",
8930
8954
  default: "text-sm",
@@ -8932,7 +8956,7 @@ var Tv = o("flex items-center", {
8932
8956
  } },
8933
8957
  defaultVariants: { size: "default" }
8934
8958
  });
8935
- function Ov({ rating: e, maxRating: t = 5, size: n, className: r, starClassName: i, showValue: a = !1, editable: o = !1, onRatingChange: s, ...c }) {
8959
+ function Pv({ rating: e, maxRating: t = 5, size: n, className: r, starClassName: i, showValue: a = !1, editable: o = !1, onRatingChange: s, ...c }) {
8936
8960
  let [l, u] = _t(null), d = o && l !== null ? l : e, f = (e) => {
8937
8961
  o && s && s(e);
8938
8962
  }, p = (e) => {
@@ -8952,7 +8976,7 @@ function Ov({ rating: e, maxRating: t = 5, size: n, className: r, starClassName:
8952
8976
  icon: Fe,
8953
8977
  strokeWidth: 2,
8954
8978
  "data-slot": "rating-star-empty",
8955
- className: R(Ev({ size: n }), "text-muted-foreground/30")
8979
+ className: R(Mv({ size: n }), "text-muted-foreground/30")
8956
8980
  }), /* @__PURE__ */ V("div", {
8957
8981
  className: "absolute inset-0 overflow-hidden",
8958
8982
  style: { width: t ? "100%" : `${i}%` },
@@ -8960,7 +8984,7 @@ function Ov({ rating: e, maxRating: t = 5, size: n, className: r, starClassName:
8960
8984
  icon: Fe,
8961
8985
  strokeWidth: 2,
8962
8986
  "data-slot": "rating-star-filled",
8963
- className: R(Ev({ size: n }), "fill-yellow-400 text-yellow-400")
8987
+ className: R(Mv({ size: n }), "fill-yellow-400 text-yellow-400")
8964
8988
  })
8965
8989
  })]
8966
8990
  }, r));
@@ -8969,21 +8993,21 @@ function Ov({ rating: e, maxRating: t = 5, size: n, className: r, starClassName:
8969
8993
  };
8970
8994
  return /* @__PURE__ */ H("div", {
8971
8995
  "data-slot": "rating",
8972
- className: R(Tv({ size: n }), r),
8996
+ className: R(jv({ size: n }), r),
8973
8997
  ...c,
8974
8998
  children: [/* @__PURE__ */ V("div", {
8975
8999
  className: "flex items-center",
8976
9000
  children: h()
8977
9001
  }), a && /* @__PURE__ */ V("span", {
8978
9002
  "data-slot": "rating-value",
8979
- className: R(Dv({ size: n }), i),
9003
+ className: R(Nv({ size: n }), i),
8980
9004
  children: d.toFixed(1)
8981
9005
  })]
8982
9006
  });
8983
9007
  }
8984
9008
  //#endregion
8985
9009
  //#region src/base/form/fields/RatingField.tsx
8986
- function kv({ id: e, value: t, onChange: n, maxRating: r = 5, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
9010
+ function Fv({ id: e, value: t, onChange: n, maxRating: r = 5, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
8987
9011
  let l = [o ? c : void 0, s].filter(Boolean).join(" ") || void 0;
8988
9012
  return /* @__PURE__ */ V("div", {
8989
9013
  id: e,
@@ -8991,7 +9015,7 @@ function kv({ id: e, value: t, onChange: n, maxRating: r = 5, disabled: i, requi
8991
9015
  "aria-required": a || void 0,
8992
9016
  "aria-invalid": o ? !0 : void 0,
8993
9017
  "aria-describedby": l,
8994
- children: /* @__PURE__ */ V(Ov, {
9018
+ children: /* @__PURE__ */ V(Pv, {
8995
9019
  rating: t ?? 0,
8996
9020
  maxRating: r,
8997
9021
  editable: !i,
@@ -9002,26 +9026,26 @@ function kv({ id: e, value: t, onChange: n, maxRating: r = 5, disabled: i, requi
9002
9026
  }
9003
9027
  //#endregion
9004
9028
  //#region src/base/form/fields/SelectField.tsx
9005
- function Av({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled: a, required: o, error: s, helpTextId: c, errorId: l }) {
9029
+ function Iv({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled: a, required: o, error: s, helpTextId: c, errorId: l }) {
9006
9030
  let { t: u } = De(), d = [s ? l : void 0, c].filter(Boolean).join(" ") || void 0;
9007
- return /* @__PURE__ */ H(Ph, {
9031
+ return /* @__PURE__ */ H(Bh, {
9008
9032
  value: t ?? "",
9009
9033
  onValueChange: n,
9010
9034
  disabled: a,
9011
9035
  required: o,
9012
- children: [/* @__PURE__ */ V(Lh, {
9036
+ children: [/* @__PURE__ */ V(Uh, {
9013
9037
  id: e,
9014
9038
  className: "w-full",
9015
9039
  "aria-invalid": s ? !0 : void 0,
9016
9040
  "aria-required": o || void 0,
9017
9041
  "aria-describedby": d,
9018
- children: /* @__PURE__ */ V(Ih, { placeholder: i ?? u("middag.ui.form.select_placeholder") })
9019
- }), /* @__PURE__ */ V(Rh, {
9042
+ children: /* @__PURE__ */ V(Hh, { placeholder: i ?? u("middag.ui.form.select_placeholder") })
9043
+ }), /* @__PURE__ */ V(Wh, {
9020
9044
  position: "popper",
9021
9045
  sideOffset: 4,
9022
9046
  align: "start",
9023
9047
  className: "w-full",
9024
- children: r.map((e) => /* @__PURE__ */ V(Bh, {
9048
+ children: r.map((e) => /* @__PURE__ */ V(Kh, {
9025
9049
  value: e.value,
9026
9050
  children: e.label
9027
9051
  }, e.value))
@@ -9030,14 +9054,14 @@ function Av({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled
9030
9054
  }
9031
9055
  //#endregion
9032
9056
  //#region src/primitives/reui/slider.tsx
9033
- function jv({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100, ...a }) {
9057
+ function Lv({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100, ...a }) {
9034
9058
  let o = z.useMemo(() => Array.isArray(n) ? n : Array.isArray(t) ? t : [r, i], [
9035
9059
  n,
9036
9060
  t,
9037
9061
  r,
9038
9062
  i
9039
9063
  ]);
9040
- return /* @__PURE__ */ H(Gm, {
9064
+ return /* @__PURE__ */ H(Zm, {
9041
9065
  "data-slot": "slider",
9042
9066
  defaultValue: t,
9043
9067
  value: n,
@@ -9045,14 +9069,14 @@ function jv({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100,
9045
9069
  max: i,
9046
9070
  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),
9047
9071
  ...a,
9048
- children: [/* @__PURE__ */ V(Km, {
9072
+ children: [/* @__PURE__ */ V(Qm, {
9049
9073
  "data-slot": "slider-track",
9050
9074
  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"),
9051
- children: /* @__PURE__ */ V(qm, {
9075
+ children: /* @__PURE__ */ V($m, {
9052
9076
  "data-slot": "slider-range",
9053
9077
  className: R("absolute bg-primary data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
9054
9078
  })
9055
- }), Array.from({ length: o.length }, (e, t) => /* @__PURE__ */ V(Jm, {
9079
+ }), Array.from({ length: o.length }, (e, t) => /* @__PURE__ */ V(eh, {
9056
9080
  "data-slot": "slider-thumb",
9057
9081
  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"
9058
9082
  }, t))]
@@ -9060,11 +9084,11 @@ function jv({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100,
9060
9084
  }
9061
9085
  //#endregion
9062
9086
  //#region src/base/form/fields/SliderField.tsx
9063
- function Mv({ 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 }) {
9087
+ function Rv({ 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 }) {
9064
9088
  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);
9065
9089
  return /* @__PURE__ */ H("div", {
9066
9090
  className: "flex items-center gap-4",
9067
- children: [/* @__PURE__ */ V(jv, {
9091
+ children: [/* @__PURE__ */ V(Lv, {
9068
9092
  id: e,
9069
9093
  value: p,
9070
9094
  min: r,
@@ -9084,14 +9108,14 @@ function Mv({ id: e, value: t, onChange: n, min: r = 0, max: i = 100, step: a =
9084
9108
  }
9085
9109
  //#endregion
9086
9110
  //#region src/base/form/fields/SlugField.tsx
9087
- function Nv(e) {
9111
+ function zv(e) {
9088
9112
  return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").replace(/-{2,}/g, "-");
9089
9113
  }
9090
- function Pv({ id: e, value: t, onChange: n, sourceValue: r, placeholder: i, disabled: a, required: o, error: s, helpTextId: c, errorId: l, prefix: u }) {
9114
+ function Bv({ id: e, value: t, onChange: n, sourceValue: r, placeholder: i, disabled: a, required: o, error: s, helpTextId: c, errorId: l, prefix: u }) {
9091
9115
  let [d, f] = _t(!1), m = [s ? l : void 0, c].filter(Boolean).join(" ") || void 0;
9092
9116
  pt(() => {
9093
9117
  if (!d && r !== void 0) {
9094
- let e = Nv(r);
9118
+ let e = zv(r);
9095
9119
  e !== t && n(e);
9096
9120
  }
9097
9121
  }, [
@@ -9101,7 +9125,7 @@ function Pv({ id: e, value: t, onChange: n, sourceValue: r, placeholder: i, disa
9101
9125
  t
9102
9126
  ]);
9103
9127
  let h = B((e) => {
9104
- f(!0), n(Nv(e.target.value));
9128
+ f(!0), n(zv(e.target.value));
9105
9129
  }, [n]);
9106
9130
  return u ? /* @__PURE__ */ H(p, {
9107
9131
  "data-disabled": a || void 0,
@@ -9136,7 +9160,7 @@ function Pv({ id: e, value: t, onChange: n, sourceValue: r, placeholder: i, disa
9136
9160
  }
9137
9161
  //#endregion
9138
9162
  //#region src/base/form/fields/StaticField.tsx
9139
- function Fv({ id: e, value: t }) {
9163
+ function Vv({ id: e, value: t }) {
9140
9164
  return /* @__PURE__ */ V("p", {
9141
9165
  id: e,
9142
9166
  className: "border-input bg-muted/50 text-foreground rounded-md border px-3 py-2 text-sm",
@@ -9145,13 +9169,13 @@ function Fv({ id: e, value: t }) {
9145
9169
  }
9146
9170
  //#endregion
9147
9171
  //#region src/primitives/reui/switch.tsx
9148
- function Iv({ className: e, size: t = "default", ...n }) {
9149
- return /* @__PURE__ */ V(sh, {
9172
+ function Hv({ className: e, size: t = "default", ...n }) {
9173
+ return /* @__PURE__ */ V(ph, {
9150
9174
  "data-slot": "switch",
9151
9175
  "data-size": t,
9152
9176
  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),
9153
9177
  ...n,
9154
- children: /* @__PURE__ */ V(ch, {
9178
+ children: /* @__PURE__ */ V(mh, {
9155
9179
  "data-slot": "switch-thumb",
9156
9180
  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")
9157
9181
  })
@@ -9159,11 +9183,11 @@ function Iv({ className: e, size: t = "default", ...n }) {
9159
9183
  }
9160
9184
  //#endregion
9161
9185
  //#region src/base/form/fields/SwitchField.tsx
9162
- function Lv({ id: e, value: t, onChange: n, label: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
9186
+ function Uv({ id: e, value: t, onChange: n, label: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c }) {
9163
9187
  let l = [o ? c : void 0, s].filter(Boolean).join(" ") || void 0;
9164
9188
  return /* @__PURE__ */ H("div", {
9165
9189
  className: "flex items-center gap-2",
9166
- children: [/* @__PURE__ */ V(Iv, {
9190
+ children: [/* @__PURE__ */ V(Hv, {
9167
9191
  id: e,
9168
9192
  checked: !!t,
9169
9193
  onCheckedChange: n,
@@ -9171,7 +9195,7 @@ function Lv({ id: e, value: t, onChange: n, label: r, disabled: i, required: a,
9171
9195
  "aria-invalid": o ? !0 : void 0,
9172
9196
  "aria-required": a || void 0,
9173
9197
  "aria-describedby": l
9174
- }), r && /* @__PURE__ */ V(qh, {
9198
+ }), r && /* @__PURE__ */ V($h, {
9175
9199
  htmlFor: e,
9176
9200
  className: "text-sm font-normal",
9177
9201
  children: r
@@ -9180,7 +9204,7 @@ function Lv({ id: e, value: t, onChange: n, label: r, disabled: i, required: a,
9180
9204
  }
9181
9205
  //#endregion
9182
9206
  //#region src/base/form/fields/TagsField.tsx
9183
- function Rv({ id: e, value: t, onChange: n, placeholder: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c, maxTags: l }) {
9207
+ function Wv({ id: e, value: t, onChange: n, placeholder: r, disabled: i, required: a, error: o, helpTextId: s, errorId: c, maxTags: l }) {
9184
9208
  let { t: u } = De(), [d, f] = _t(""), p = gt(null), m = ht(() => t ?? [], [t]), h = [o ? c : void 0, s].filter(Boolean).join(" ") || void 0, g = B((e) => {
9185
9209
  let t = e.trim();
9186
9210
  t && (m.includes(t) || l && m.length >= l || (n([...m, t]), f("")));
@@ -9231,7 +9255,7 @@ function Rv({ id: e, value: t, onChange: n, placeholder: r, disabled: i, require
9231
9255
  }
9232
9256
  //#endregion
9233
9257
  //#region src/base/form/fields/TextareaField.tsx
9234
- function zv({ id: e, value: t, onChange: n, placeholder: r, rows: i = 4, disabled: a, readOnly: o, required: s, error: c, helpTextId: l, errorId: u }) {
9258
+ function Gv({ id: e, value: t, onChange: n, placeholder: r, rows: i = 4, disabled: a, readOnly: o, required: s, error: c, helpTextId: l, errorId: u }) {
9235
9259
  let d = [c ? u : void 0, l].filter(Boolean).join(" ") || void 0;
9236
9260
  return /* @__PURE__ */ V(ge, {
9237
9261
  id: e,
@@ -9248,7 +9272,7 @@ function zv({ id: e, value: t, onChange: n, placeholder: r, rows: i = 4, disable
9248
9272
  }
9249
9273
  //#endregion
9250
9274
  //#region src/base/form/fields/TextField.tsx
9251
- function Bv({ id: e, value: t, onChange: n, type: r = "text", placeholder: i, disabled: a, readOnly: o, required: s, error: c, helpTextId: l, errorId: u }) {
9275
+ function Kv({ id: e, value: t, onChange: n, type: r = "text", placeholder: i, disabled: a, readOnly: o, required: s, error: c, helpTextId: l, errorId: u }) {
9252
9276
  let d = [c ? u : void 0, l].filter(Boolean).join(" ") || void 0;
9253
9277
  return /* @__PURE__ */ V(st, {
9254
9278
  id: e,
@@ -9265,7 +9289,7 @@ function Bv({ id: e, value: t, onChange: n, type: r = "text", placeholder: i, di
9265
9289
  }
9266
9290
  //#endregion
9267
9291
  //#region src/base/partials/FormSection/index.tsx
9268
- function Vv({ id: e, title: t, description: n, children: r, defaultCollapsed: i = !1, hasErrors: a = !1, errorCount: o }) {
9292
+ function qv({ id: e, title: t, description: n, children: r, defaultCollapsed: i = !1, hasErrors: a = !1, errorCount: o }) {
9269
9293
  let { t: s } = De(), [c, l] = _t(i && !a), u = `${e}-content`, f = !!t, p = !c || a;
9270
9294
  return /* @__PURE__ */ H("fieldset", {
9271
9295
  className: "border-border space-y-5 rounded-lg border p-6",
@@ -9318,8 +9342,8 @@ function Vv({ id: e, title: t, description: n, children: r, defaultCollapsed: i
9318
9342
  }
9319
9343
  //#endregion
9320
9344
  //#region src/i18n/resolve-field-error.ts
9321
- function Hv(e, t) {
9322
- return typeof e == "string" ? e : Array.isArray(e) ? e.map((e) => Hv(e, t)).filter(Boolean).join(" ") : t(e.key, {
9345
+ function Jv(e, t) {
9346
+ return typeof e == "string" ? e : Array.isArray(e) ? e.map((e) => Jv(e, t)).filter(Boolean).join(" ") : t(e.key, {
9323
9347
  ns: e.domain || "validators",
9324
9348
  defaultValue: e.message,
9325
9349
  ...e.params ?? {}
@@ -9327,29 +9351,29 @@ function Hv(e, t) {
9327
9351
  }
9328
9352
  //#endregion
9329
9353
  //#region src/base/form/form-utils.ts
9330
- function Uv(e) {
9354
+ function Yv(e) {
9331
9355
  let t = [];
9332
- for (let n of e) n.kind === "field" ? t.push(n) : (n.kind === "section" || n.kind === "group") && t.push(...Uv(n.children));
9356
+ for (let n of e) n.kind === "field" ? t.push(n) : (n.kind === "section" || n.kind === "group") && t.push(...Yv(n.children));
9333
9357
  return t;
9334
9358
  }
9335
- function Wv(e, t) {
9359
+ function Xv(e, t) {
9336
9360
  if (e.component === "header") return !0;
9337
9361
  let { props: n } = e;
9338
- return !(n.hidden_when && Kh(n.hidden_when, t) || n.visible_when && !Kh(n.visible_when, t));
9362
+ return !(n.hidden_when && Qh(n.hidden_when, t) || n.visible_when && !Qh(n.visible_when, t));
9339
9363
  }
9340
- function Gv(e, t) {
9364
+ function Zv(e, t) {
9341
9365
  if (e.component === "header") return !1;
9342
9366
  let { props: n } = e;
9343
- return !!(n.disabled || n.disabled_when && Kh(n.disabled_when, t));
9367
+ return !!(n.disabled || n.disabled_when && Qh(n.disabled_when, t));
9344
9368
  }
9345
- function Kv(e, t) {
9346
- if (e.component === "header" || Gv(e, t)) return !1;
9369
+ function Qv(e, t) {
9370
+ if (e.component === "header" || Zv(e, t)) return !1;
9347
9371
  let { props: n } = e;
9348
- return !!(n.required || n.required_when && Kh(n.required_when, t));
9372
+ return !!(n.required || n.required_when && Qh(n.required_when, t));
9349
9373
  }
9350
9374
  //#endregion
9351
9375
  //#region src/base/form/form-schema-builder.ts
9352
- function qv(e, t, n) {
9376
+ function $v(e, t, n) {
9353
9377
  let { component: r, props: i } = e, a = i.validation, o = n;
9354
9378
  switch (r) {
9355
9379
  case "text":
@@ -9416,18 +9440,18 @@ function qv(e, t, n) {
9416
9440
  default: return _l();
9417
9441
  }
9418
9442
  }
9419
- function Jv(e, t, n) {
9420
- let r = Uv(e), i = {};
9421
- for (let e of r) e.component === "header" || e.component === "hidden" || e.component === "static" || Wv(e, t) && (i[e.key] = qv(e, n, Kv(e, t)));
9443
+ function ey(e, t, n) {
9444
+ let r = Yv(e), i = {};
9445
+ for (let e of r) e.component === "header" || e.component === "hidden" || e.component === "static" || Xv(e, t) && (i[e.key] = $v(e, n, Qv(e, t)));
9422
9446
  return Tl(i);
9423
9447
  }
9424
9448
  //#endregion
9425
9449
  //#region src/base/form/FormField.tsx
9426
- var Yv = dt(() => import("./PhoneField-CP13cgq1.js").then((e) => ({ default: e.PhoneField }))), Xv = dt(() => import("./DateField-lPZsiWfC.js").then((e) => ({ default: e.DateField }))), Zv = dt(() => import("./DocumentField-DutGscEM.js").then((e) => ({ default: e.DocumentField }))), Qv = dt(() => import("./DateRangeField-B7zWB48D.js").then((e) => ({ default: e.DateRangeField })));
9427
- function $v() {
9450
+ var ty = dt(() => import("./PhoneField-CP13cgq1.js").then((e) => ({ default: e.PhoneField }))), ny = dt(() => import("./DateField-lPZsiWfC.js").then((e) => ({ default: e.DateField }))), ry = dt(() => import("./DocumentField-DutGscEM.js").then((e) => ({ default: e.DocumentField }))), iy = dt(() => import("./DateRangeField-B7zWB48D.js").then((e) => ({ default: e.DateRangeField })));
9451
+ function ay() {
9428
9452
  return /* @__PURE__ */ V(ot, { className: "h-9 w-full rounded-md" });
9429
9453
  }
9430
- function ey({ label: e }) {
9454
+ function oy({ label: e }) {
9431
9455
  return /* @__PURE__ */ V("div", {
9432
9456
  className: "pt-4 pb-1",
9433
9457
  children: /* @__PURE__ */ V("h4", {
@@ -9436,25 +9460,26 @@ function ey({ label: e }) {
9436
9460
  })
9437
9461
  });
9438
9462
  }
9439
- function ty({ id: e, value: t }) {
9463
+ function sy({ id: e, value: t }) {
9440
9464
  return /* @__PURE__ */ V("input", {
9441
9465
  type: "hidden",
9442
9466
  id: e,
9443
9467
  value: String(t ?? "")
9444
9468
  });
9445
9469
  }
9446
- function ny({ field: e, value: t, onChange: n, error: r, sourceValues: i = {} }) {
9470
+ function cy({ field: e, value: t, onChange: n, error: r, sourceValues: i = {} }) {
9447
9471
  let { t: a } = De(), o = mt(), s = `field-${e.key}-${o}`, c = `${s}-help`, l = `${s}-error`, { component: u, props: d } = e;
9448
- if (u === "header") return /* @__PURE__ */ V(ey, { label: d.label });
9449
- if (u === "hidden") return /* @__PURE__ */ V(ty, {
9472
+ if (u === "header") return /* @__PURE__ */ V(oy, { label: d.label });
9473
+ if (u === "hidden") return /* @__PURE__ */ V(sy, {
9450
9474
  id: s,
9451
9475
  value: t
9452
9476
  });
9453
- let f = Gv(e, i), p = Kv(e, i), m = u === "checkbox" || u === "switch", h = ry(u, s, t, n, d, r, c, l, a, i, f, p);
9477
+ let f = Zv(e, i), p = Qv(e, i), m = u === "checkbox" || u === "switch", h = ly(u, s, t, n, d, r, c, l, a, i, f, p);
9454
9478
  return /* @__PURE__ */ H("div", {
9455
9479
  className: "space-y-1.5",
9480
+ "data-testid": bu(e.key),
9456
9481
  children: [
9457
- !m && /* @__PURE__ */ H(qh, {
9482
+ !m && /* @__PURE__ */ H($h, {
9458
9483
  htmlFor: s,
9459
9484
  children: [d.label, p && /* @__PURE__ */ V("span", {
9460
9485
  className: "text-destructive ml-0.5",
@@ -9476,7 +9501,7 @@ function ny({ field: e, value: t, onChange: n, error: r, sourceValues: i = {} })
9476
9501
  ]
9477
9502
  });
9478
9503
  }
9479
- function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9504
+ function ly(e, t, n, r, i, a, o, s, c, l, u, d) {
9480
9505
  let f = {
9481
9506
  id: t,
9482
9507
  error: a,
@@ -9486,7 +9511,7 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9486
9511
  required: d
9487
9512
  };
9488
9513
  switch (e) {
9489
- case "text": return /* @__PURE__ */ V(Bv, {
9514
+ case "text": return /* @__PURE__ */ V(Kv, {
9490
9515
  ...f,
9491
9516
  type: "text",
9492
9517
  value: n,
@@ -9494,7 +9519,7 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9494
9519
  placeholder: i.placeholder,
9495
9520
  readOnly: i.readOnly
9496
9521
  });
9497
- case "email": return /* @__PURE__ */ V(Bv, {
9522
+ case "email": return /* @__PURE__ */ V(Kv, {
9498
9523
  ...f,
9499
9524
  type: "email",
9500
9525
  value: n,
@@ -9502,7 +9527,7 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9502
9527
  placeholder: i.placeholder,
9503
9528
  readOnly: i.readOnly
9504
9529
  });
9505
- case "url": return /* @__PURE__ */ V(Bv, {
9530
+ case "url": return /* @__PURE__ */ V(Kv, {
9506
9531
  ...f,
9507
9532
  type: "url",
9508
9533
  value: n,
@@ -9510,7 +9535,7 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9510
9535
  placeholder: i.placeholder,
9511
9536
  readOnly: i.readOnly
9512
9537
  });
9513
- case "textarea": return /* @__PURE__ */ V(zv, {
9538
+ case "textarea": return /* @__PURE__ */ V(Gv, {
9514
9539
  ...f,
9515
9540
  value: n,
9516
9541
  onChange: r,
@@ -9518,13 +9543,13 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9518
9543
  rows: i.rows,
9519
9544
  readOnly: i.readOnly
9520
9545
  });
9521
- case "password": return /* @__PURE__ */ V(xv, {
9546
+ case "password": return /* @__PURE__ */ V(Dv, {
9522
9547
  ...f,
9523
9548
  value: n,
9524
9549
  onChange: r,
9525
9550
  placeholder: i.placeholder
9526
9551
  });
9527
- case "otp": return /* @__PURE__ */ V(bv, {
9552
+ case "otp": return /* @__PURE__ */ V(Ev, {
9528
9553
  ...f,
9529
9554
  value: n,
9530
9555
  onChange: r,
@@ -9532,21 +9557,21 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9532
9557
  pattern: i.pattern,
9533
9558
  groupSize: i.groupSize
9534
9559
  });
9535
- case "select": return /* @__PURE__ */ V(Av, {
9560
+ case "select": return /* @__PURE__ */ V(Iv, {
9536
9561
  ...f,
9537
9562
  value: n,
9538
9563
  onChange: r,
9539
9564
  options: i.options ?? [],
9540
9565
  placeholder: i.placeholder
9541
9566
  });
9542
- case "native_select": return /* @__PURE__ */ V(F_, {
9567
+ case "native_select": return /* @__PURE__ */ V(V_, {
9543
9568
  ...f,
9544
9569
  value: n,
9545
9570
  onChange: r,
9546
9571
  options: i.options ?? [],
9547
9572
  placeholder: i.placeholder
9548
9573
  });
9549
- case "multiselect": return /* @__PURE__ */ V(A_, {
9574
+ case "multiselect": return /* @__PURE__ */ V(I_, {
9550
9575
  ...f,
9551
9576
  value: n,
9552
9577
  onChange: r,
@@ -9554,13 +9579,13 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9554
9579
  placeholder: i.placeholder,
9555
9580
  variant: i.variant
9556
9581
  });
9557
- case "radio": return /* @__PURE__ */ V(wv, {
9582
+ case "radio": return /* @__PURE__ */ V(Av, {
9558
9583
  ...f,
9559
9584
  value: n,
9560
9585
  onChange: r,
9561
9586
  options: i.options ?? []
9562
9587
  });
9563
- case "int": return /* @__PURE__ */ V(G_, {
9588
+ case "int": return /* @__PURE__ */ V(Z_, {
9564
9589
  ...f,
9565
9590
  value: n,
9566
9591
  onChange: r,
@@ -9568,7 +9593,7 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9568
9593
  max: i.max,
9569
9594
  step: 1
9570
9595
  });
9571
- case "float": return /* @__PURE__ */ V(G_, {
9596
+ case "float": return /* @__PURE__ */ V(Z_, {
9572
9597
  ...f,
9573
9598
  value: n,
9574
9599
  onChange: r,
@@ -9576,7 +9601,7 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9576
9601
  max: i.max,
9577
9602
  step: i.step ?? .1
9578
9603
  });
9579
- case "slider": return /* @__PURE__ */ V(Mv, {
9604
+ case "slider": return /* @__PURE__ */ V(Rv, {
9580
9605
  ...f,
9581
9606
  value: n,
9582
9607
  onChange: r,
@@ -9585,21 +9610,21 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9585
9610
  step: i.step,
9586
9611
  multiple: i.multiple
9587
9612
  });
9588
- case "checkbox": return /* @__PURE__ */ V(Jh, {
9613
+ case "checkbox": return /* @__PURE__ */ V(eg, {
9589
9614
  ...f,
9590
9615
  value: n,
9591
9616
  onChange: r,
9592
9617
  label: i.label
9593
9618
  });
9594
- case "switch": return /* @__PURE__ */ V(Lv, {
9619
+ case "switch": return /* @__PURE__ */ V(Uv, {
9595
9620
  ...f,
9596
9621
  value: n,
9597
9622
  onChange: r,
9598
9623
  label: i.label
9599
9624
  });
9600
9625
  case "date": return /* @__PURE__ */ V(lt, {
9601
- fallback: /* @__PURE__ */ V($v, {}),
9602
- children: /* @__PURE__ */ V(Xv, {
9626
+ fallback: /* @__PURE__ */ V(ay, {}),
9627
+ children: /* @__PURE__ */ V(ny, {
9603
9628
  ...f,
9604
9629
  mode: "date",
9605
9630
  value: n,
@@ -9608,8 +9633,8 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9608
9633
  })
9609
9634
  });
9610
9635
  case "datetime": return /* @__PURE__ */ V(lt, {
9611
- fallback: /* @__PURE__ */ V($v, {}),
9612
- children: /* @__PURE__ */ V(Xv, {
9636
+ fallback: /* @__PURE__ */ V(ay, {}),
9637
+ children: /* @__PURE__ */ V(ny, {
9613
9638
  ...f,
9614
9639
  mode: "datetime",
9615
9640
  value: n,
@@ -9617,7 +9642,7 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9617
9642
  placeholder: i.placeholder
9618
9643
  })
9619
9644
  });
9620
- case "file": return /* @__PURE__ */ V(O_, {
9645
+ case "file": return /* @__PURE__ */ V(P_, {
9621
9646
  ...f,
9622
9647
  value: n,
9623
9648
  onChange: r,
@@ -9626,7 +9651,7 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9626
9651
  maxFiles: i.maxFiles,
9627
9652
  maxSize: i.maxSize
9628
9653
  });
9629
- case "entity_picker": return /* @__PURE__ */ V(S_, {
9654
+ case "entity_picker": return /* @__PURE__ */ V(O_, {
9630
9655
  ...f,
9631
9656
  value: n,
9632
9657
  onChange: r,
@@ -9638,13 +9663,13 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9638
9663
  entitySubtitleField: i.entitySubtitleField,
9639
9664
  placeholder: i.placeholder
9640
9665
  });
9641
- case "static": return /* @__PURE__ */ V(Fv, {
9666
+ case "static": return /* @__PURE__ */ V(Vv, {
9642
9667
  id: t,
9643
9668
  value: n
9644
9669
  });
9645
9670
  case "phone": return /* @__PURE__ */ V(lt, {
9646
- fallback: /* @__PURE__ */ V($v, {}),
9647
- children: /* @__PURE__ */ V(Yv, {
9671
+ fallback: /* @__PURE__ */ V(ay, {}),
9672
+ children: /* @__PURE__ */ V(ty, {
9648
9673
  ...f,
9649
9674
  value: n,
9650
9675
  onChange: r,
@@ -9654,8 +9679,8 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9654
9679
  })
9655
9680
  });
9656
9681
  case "document": return /* @__PURE__ */ V(lt, {
9657
- fallback: /* @__PURE__ */ V($v, {}),
9658
- children: /* @__PURE__ */ V(Zv, {
9682
+ fallback: /* @__PURE__ */ V(ay, {}),
9683
+ children: /* @__PURE__ */ V(ry, {
9659
9684
  ...f,
9660
9685
  value: n,
9661
9686
  onChange: r,
@@ -9665,7 +9690,7 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9665
9690
  placeholder: i.placeholder
9666
9691
  })
9667
9692
  });
9668
- case "currency": return /* @__PURE__ */ V(Zh, {
9693
+ case "currency": return /* @__PURE__ */ V(rg, {
9669
9694
  ...f,
9670
9695
  value: n,
9671
9696
  onChange: r,
@@ -9674,13 +9699,13 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9674
9699
  min: i.min,
9675
9700
  max: i.max
9676
9701
  });
9677
- case "color": return /* @__PURE__ */ V(Yh, {
9702
+ case "color": return /* @__PURE__ */ V(tg, {
9678
9703
  ...f,
9679
9704
  value: n,
9680
9705
  onChange: r,
9681
9706
  placeholder: i.placeholder
9682
9707
  });
9683
- case "slug": return /* @__PURE__ */ V(Pv, {
9708
+ case "slug": return /* @__PURE__ */ V(Bv, {
9684
9709
  ...f,
9685
9710
  value: n,
9686
9711
  onChange: r,
@@ -9688,7 +9713,7 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9688
9713
  prefix: i.prefix,
9689
9714
  placeholder: i.placeholder
9690
9715
  });
9691
- case "tags": return /* @__PURE__ */ V(Rv, {
9716
+ case "tags": return /* @__PURE__ */ V(Wv, {
9692
9717
  ...f,
9693
9718
  value: n,
9694
9719
  onChange: r,
@@ -9696,15 +9721,15 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9696
9721
  maxTags: i.maxTags
9697
9722
  });
9698
9723
  case "date_range": return /* @__PURE__ */ V(lt, {
9699
- fallback: /* @__PURE__ */ V($v, {}),
9700
- children: /* @__PURE__ */ V(Qv, {
9724
+ fallback: /* @__PURE__ */ V(ay, {}),
9725
+ children: /* @__PURE__ */ V(iy, {
9701
9726
  ...f,
9702
9727
  value: n,
9703
9728
  onChange: r,
9704
9729
  operator: i.operator
9705
9730
  })
9706
9731
  });
9707
- case "rating": return /* @__PURE__ */ V(kv, {
9732
+ case "rating": return /* @__PURE__ */ V(Fv, {
9708
9733
  ...f,
9709
9734
  value: n,
9710
9735
  onChange: r,
@@ -9717,4 +9742,4 @@ function ry(e, t, n, r, i, a, o, s, c, l, u, d) {
9717
9742
  }
9718
9743
  }
9719
9744
  //#endregion
9720
- export { Th as $, ng as A, Nl as At, Fh as B, Qn as Bt, A_ as C, Tu as Ct, ag as D, gu as Dt, rg as E, pu as Et, Kh as F, dl as Ft, Vh as G, zh as H, Gn as Ht, Gh as I, Tl as It, Nh as J, Lh as K, Wh as L, jl as Lt, Yh as M, Cl as Mt, Jh as N, hl as Nt, ig as O, hu as Ot, qh as P, Fl as Pt, Eh as Q, Ph as R, Bc as Rt, F_ as S, Qu as St, S_ as T, mu as Tt, Uh as U, Bh as V, er as Vt, Hh as W, Dh as X, Oh as Y, Ch as Z, kv as _, od as _t, Wv as a, fh as at, bv as b, cd as bt, Bv as c, gh as ct, Lv as d, dh as dt, wh as et, Iv as f, _h as ft, Av as g, ld as gt, Mv as h, sd as ht, Kv as i, lh as it, Zh as j, _l as jt, eg as k, ou as kt, zv as l, hh as lt, Pv as m, ud as mt, Jv as n, xh as nt, Hv as o, mh as ot, Fv as p, uh as pt, Ih as q, Uv as r, yh as rt, Vv as s, vh as st, ny as t, bh as tt, Rv as u, ph as ut, wv as v, ad as vt, O_ as w, xu as wt, G_ as x, id as xt, xv as y, rd as yt, Rh as z, yl as zt };
9745
+ export { jh as $, cg as A, mu as At, Vh as B, dl as Bt, I_ as C, ju as Ct, dg as D, vu as Dt, lg as E, yu as Et, Qh as F, Nl as Ft, qh as G, Qn as Gt, Gh as H, jl as Ht, Zh as I, _l as It, zh as J, Uh as K, er as Kt, Xh as L, Cl as Lt, tg as M, gu as Mt, eg as N, hu as Nt, ug as O, Su as Ot, $h as P, ou as Pt, Mh as Q, Bh as R, hl as Rt, V_ as S, id as St, O_ as T, _u as Tt, Yh as U, Bc as Ut, Kh as V, Tl as Vt, Jh as W, yl as Wt, Nh as X, Ph as Y, kh as Z, Fv as _, fd as _t, Xv as a, vh as at, Ev as b, md as bt, Kv as c, Sh as ct, Uv as d, _h as dt, Ah as et, Hv as f, Ch as ft, Iv as g, hd as gt, Rv as h, pd as ht, Qv as i, hh as it, rg as j, pu as jt, og as k, xu as kt, Gv as l, xh as lt, Bv as m, gd as mt, ey as n, Dh as nt, Jv as o, bh as ot, Vv as p, gh as pt, Hh as q, Gn as qt, Yv as r, Th as rt, qv as s, wh as st, cy as t, Eh as tt, Wv as u, yh as ut, Av as v, dd as vt, P_ as w, Du as wt, Z_ as x, ud as xt, Dv as y, ld as yt, Wh as z, Fl as zt };