uikit-react-public 0.51.0 → 0.52.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/components/MultiSelect/MultiSelect.d.ts +4 -0
  2. package/dist/components/MultiSelect/MultiSelect.stories.d.ts +206 -0
  3. package/dist/components/MultiSelect/MultiSelect.types.d.ts +128 -0
  4. package/dist/components/MultiSelect/__tests__/MultiSelect.test.d.ts +1 -0
  5. package/dist/components/MultiSelect/index.d.ts +2 -0
  6. package/dist/components/MultiSelect/subcomponents/CustomOption.d.ts +3 -0
  7. package/dist/components/MultiSelect/subcomponents/CustomSelect.d.ts +4 -0
  8. package/dist/components/MultiSelect/subcomponents/FilterInput.d.ts +16 -0
  9. package/dist/components/MultiSelect/subcomponents/Panel.d.ts +8 -0
  10. package/dist/components/MultiSelect/subcomponents/VisibleField.d.ts +17 -0
  11. package/dist/components/MultiSelect/subcomponents/index.d.ts +5 -0
  12. package/dist/components/index.d.ts +2 -0
  13. package/dist/index.js +1079 -525
  14. package/lib/components/Calendar/__tests__/__snapshots__/Calendar.test.tsx.snap +4 -4
  15. package/lib/components/MultiSelect/MultiSelect.mdx +151 -0
  16. package/lib/components/MultiSelect/MultiSelect.stories.tsx +308 -0
  17. package/lib/components/MultiSelect/MultiSelect.tsx +24 -0
  18. package/lib/components/MultiSelect/MultiSelect.types.ts +142 -0
  19. package/lib/components/MultiSelect/__tests__/MultiSelect.test.tsx +1300 -0
  20. package/lib/components/MultiSelect/__tests__/__snapshots__/MultiSelect.test.tsx.snap +44 -0
  21. package/lib/components/MultiSelect/index.ts +2 -0
  22. package/lib/components/MultiSelect/subcomponents/CustomOption.tsx +107 -0
  23. package/lib/components/MultiSelect/subcomponents/CustomSelect.tsx +701 -0
  24. package/lib/components/MultiSelect/subcomponents/FilterInput.tsx +90 -0
  25. package/lib/components/MultiSelect/subcomponents/Panel.tsx +69 -0
  26. package/lib/components/MultiSelect/subcomponents/VisibleField.tsx +147 -0
  27. package/lib/components/MultiSelect/subcomponents/index.tsx +5 -0
  28. package/lib/components/index.ts +3 -0
  29. package/lib/theme/Theme.mdx +2 -0
  30. package/lib/theme/light/lightColour.ts +3 -7
  31. package/lib/theme/original/originalColourNewStructure.ts +3 -7
  32. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1489,6 +1489,14 @@ var Et = "ucl-uikit-icon", Dt = s(({ svg: e, size: t = 24, title: n, width: r, h
1489
1489
  alpha: 1
1490
1490
  }
1491
1491
  },
1492
+ "inverse-brand-secondary": {
1493
+ $type: "color",
1494
+ $alias: "colour/brand-purple/02",
1495
+ $value: {
1496
+ hex: "#32194C",
1497
+ alpha: 1
1498
+ }
1499
+ },
1492
1500
  backdrop: {
1493
1501
  $type: "color",
1494
1502
  $value: {
@@ -3727,6 +3735,7 @@ var Et = "ucl-uikit-icon", Dt = s(({ svg: e, size: t = 24, title: n, width: r, h
3727
3735
  },
3728
3736
  "brand-inverse": {
3729
3737
  $type: "color",
3738
+ $description: "on dark colors",
3730
3739
  $alias: "colour/grey/01",
3731
3740
  $value: {
3732
3741
  hex: "#FAFAFA",
@@ -3767,9 +3776,9 @@ var Et = "ucl-uikit-icon", Dt = s(({ svg: e, size: t = 24, title: n, width: r, h
3767
3776
  },
3768
3777
  success: {
3769
3778
  $type: "color",
3770
- $alias: "colour/green/09",
3779
+ $alias: "colour/green/10",
3771
3780
  $value: {
3772
- hex: "#00A756",
3781
+ hex: "#008E49",
3773
3782
  alpha: 1
3774
3783
  }
3775
3784
  },
@@ -3895,7 +3904,7 @@ var Et = "ucl-uikit-icon", Dt = s(({ svg: e, size: t = 24, title: n, width: r, h
3895
3904
  alpha: 1
3896
3905
  }
3897
3906
  },
3898
- "inverse-hover": {
3907
+ "brand-inverse-hover": {
3899
3908
  $type: "color",
3900
3909
  $alias: "colour/brand-purple/05",
3901
3910
  $value: {
@@ -3983,6 +3992,14 @@ var Et = "ucl-uikit-icon", Dt = s(({ svg: e, size: t = 24, title: n, width: r, h
3983
3992
  alpha: 1
3984
3993
  }
3985
3994
  },
3995
+ warning: {
3996
+ $type: "color",
3997
+ $alias: "colour/orange/08",
3998
+ $value: {
3999
+ hex: "#FF8E4D",
4000
+ alpha: 1
4001
+ }
4002
+ },
3986
4003
  "warning-subtle": {
3987
4004
  $type: "color",
3988
4005
  $alias: "colour/orange/03",
@@ -4107,6 +4124,7 @@ var Et = "ucl-uikit-icon", Dt = s(({ svg: e, size: t = 24, title: n, width: r, h
4107
4124
  },
4108
4125
  "brand-inverse": {
4109
4126
  $type: "color",
4127
+ $description: "on dark",
4110
4128
  $alias: "colour/grey/01",
4111
4129
  $value: {
4112
4130
  hex: "#FAFAFA",
@@ -4191,19 +4209,27 @@ var Et = "ucl-uikit-icon", Dt = s(({ svg: e, size: t = 24, title: n, width: r, h
4191
4209
  alpha: 1
4192
4210
  }
4193
4211
  },
4194
- "caution-subtle": {
4212
+ "caution-on-bg-fill": {
4195
4213
  $type: "color",
4196
- $alias: "colour/yellow/12",
4214
+ $alias: "colour/yellow/14",
4197
4215
  $value: {
4198
- hex: "#996D00",
4216
+ hex: "#412D00",
4199
4217
  alpha: 1
4200
4218
  }
4201
4219
  },
4202
4220
  caution: {
4203
4221
  $type: "color",
4204
- $alias: "colour/yellow/14",
4222
+ $alias: "colour/yellow/08",
4205
4223
  $value: {
4206
- hex: "#412D00",
4224
+ hex: "#FFBF00",
4225
+ alpha: 1
4226
+ }
4227
+ },
4228
+ "caution-subtle": {
4229
+ $type: "color",
4230
+ $alias: "colour/yellow/12",
4231
+ $value: {
4232
+ hex: "#996D00",
4207
4233
  alpha: 1
4208
4234
  }
4209
4235
  },
@@ -4216,12 +4242,21 @@ var Et = "ucl-uikit-icon", Dt = s(({ svg: e, size: t = 24, title: n, width: r, h
4216
4242
  alpha: 1
4217
4243
  }
4218
4244
  },
4245
+ "warning-subtle": {
4246
+ $type: "color",
4247
+ $description: "Use for icons",
4248
+ $alias: "colour/orange/12",
4249
+ $value: {
4250
+ hex: "#C86432",
4251
+ alpha: 1
4252
+ }
4253
+ },
4219
4254
  "warning-on-bg-fill": {
4220
4255
  $type: "color",
4221
4256
  $description: "use for text and icons",
4222
- $alias: "colour/orange/12",
4257
+ $alias: "colour/orange/14",
4223
4258
  $value: {
4224
- hex: "#CC6633",
4259
+ hex: "#803E20",
4225
4260
  alpha: 1
4226
4261
  }
4227
4262
  }
@@ -4309,9 +4344,9 @@ var Et = "ucl-uikit-icon", Dt = s(({ svg: e, size: t = 24, title: n, width: r, h
4309
4344
  },
4310
4345
  critical: {
4311
4346
  $type: "color",
4312
- $alias: "colour/red/03",
4347
+ $alias: "colour/red/02",
4313
4348
  $value: {
4314
- hex: "#FBDBE2",
4349
+ hex: "#FCEEF1",
4315
4350
  alpha: 1
4316
4351
  }
4317
4352
  },
@@ -4331,6 +4366,14 @@ var Et = "ucl-uikit-icon", Dt = s(({ svg: e, size: t = 24, title: n, width: r, h
4331
4366
  alpha: 1
4332
4367
  }
4333
4368
  },
4369
+ "inverse-brand-secondary": {
4370
+ $type: "color",
4371
+ $alias: "colour/brand-purple/14",
4372
+ $value: {
4373
+ hex: "#522880",
4374
+ alpha: 1
4375
+ }
4376
+ },
4334
4377
  backdrop: {
4335
4378
  $type: "color",
4336
4379
  $description: "for the scrim behind the modal",
@@ -4441,7 +4484,7 @@ var Et = "ucl-uikit-icon", Dt = s(({ svg: e, size: t = 24, title: n, width: r, h
4441
4484
  },
4442
4485
  "brand-inverse": {
4443
4486
  $type: "color",
4444
- $description: "CTA secondary, ghost buttons",
4487
+ $description: "same on dark mode",
4445
4488
  $alias: "colour/grey/01",
4446
4489
  $value: {
4447
4490
  hex: "#FAFAFA",
@@ -4486,21 +4529,39 @@ var Et = "ucl-uikit-icon", Dt = s(({ svg: e, size: t = 24, title: n, width: r, h
4486
4529
  },
4487
4530
  critical: {
4488
4531
  $type: "color",
4489
- $alias: "colour/red/09",
4532
+ $alias: "colour/red/10",
4490
4533
  $value: {
4491
- hex: "#D6335C",
4534
+ hex: "#C22E53",
4535
+ alpha: 1
4536
+ }
4537
+ },
4538
+ caution: {
4539
+ $type: "color",
4540
+ $alias: "colour/yellow/13",
4541
+ $value: {
4542
+ hex: "#805A00",
4492
4543
  alpha: 1
4493
4544
  }
4494
4545
  },
4495
4546
  "caution-subtle": {
4496
4547
  $type: "color",
4497
- $alias: "colour/yellow/12",
4548
+ $alias: "colour/yellow/13",
4549
+ $deprecated: "Renamed to colour/text/caution. Use that token instead.",
4498
4550
  $value: {
4499
- hex: "#996D00",
4551
+ hex: "#805A00",
4500
4552
  alpha: 1
4501
4553
  }
4502
4554
  },
4503
- caution: {
4555
+ "caution-on-bg": {
4556
+ $type: "color",
4557
+ $alias: "colour/yellow/14",
4558
+ $deprecated: "Renamed to colour/text/caution-on-bg-fill. Use that token instead.",
4559
+ $value: {
4560
+ hex: "#412D00",
4561
+ alpha: 1
4562
+ }
4563
+ },
4564
+ "caution-on-bg-fill": {
4504
4565
  $type: "color",
4505
4566
  $alias: "colour/yellow/14",
4506
4567
  $value: {
@@ -4516,12 +4577,31 @@ var Et = "ucl-uikit-icon", Dt = s(({ svg: e, size: t = 24, title: n, width: r, h
4516
4577
  alpha: 1
4517
4578
  }
4518
4579
  },
4580
+ "warning-on-bg": {
4581
+ $type: "color",
4582
+ $description: "warning, calendar week end days",
4583
+ $alias: "colour/orange/15",
4584
+ $value: {
4585
+ hex: "#5E321D",
4586
+ alpha: 1
4587
+ }
4588
+ },
4589
+ warning: {
4590
+ $type: "color",
4591
+ $description: "warning, calendar week end days",
4592
+ $alias: "colour/orange/13",
4593
+ $value: {
4594
+ hex: "#994D29",
4595
+ alpha: 1
4596
+ }
4597
+ },
4519
4598
  "warning-on-bg-fill": {
4520
4599
  $type: "color",
4521
4600
  $description: "warning, calendar week end days",
4522
- $alias: "colour/orange/12",
4601
+ $alias: "colour/orange/13",
4602
+ $deprecated: "Renamed to colour/text/warning. Use that token instead.",
4523
4603
  $value: {
4524
- hex: "#CC6633",
4604
+ hex: "#994D29",
4525
4605
  alpha: 1
4526
4606
  }
4527
4607
  }
@@ -4599,6 +4679,15 @@ var Et = "ucl-uikit-icon", Dt = s(({ svg: e, size: t = 24, title: n, width: r, h
4599
4679
  alpha: 1
4600
4680
  }
4601
4681
  },
4682
+ "brand-inverse": {
4683
+ $type: "color",
4684
+ $description: "on dark brand",
4685
+ $alias: "colour/grey/01",
4686
+ $value: {
4687
+ hex: "#FAFAFA",
4688
+ alpha: 1
4689
+ }
4690
+ },
4602
4691
  "inverse-disabled": {
4603
4692
  $type: "color",
4604
4693
  $value: {
@@ -4618,7 +4707,7 @@ var Et = "ucl-uikit-icon", Dt = s(({ svg: e, size: t = 24, title: n, width: r, h
4618
4707
  $type: "color",
4619
4708
  $value: {
4620
4709
  hex: "#FFFFFF",
4621
- alpha: .5
4710
+ alpha: .7
4622
4711
  }
4623
4712
  }
4624
4713
  },
@@ -5795,7 +5884,7 @@ var Et = "ucl-uikit-icon", Dt = s(({ svg: e, size: t = 24, title: n, width: r, h
5795
5884
  alpha: 1
5796
5885
  } },
5797
5886
  12: { $value: {
5798
- hex: "#CC6633",
5887
+ hex: "#C86432",
5799
5888
  alpha: 1
5800
5889
  } },
5801
5890
  13: { $value: {
@@ -13299,10 +13388,10 @@ var { light: Os, primitives: ks, darkPrimitives: As } = Ot, W = Os, js = ks, Ms
13299
13388
  brandInverseSecondarySelected: K.base.blue25,
13300
13389
  brandPrimary: K.interaction.blue100,
13301
13390
  critical: K.system.red70,
13302
- cautionSubtle: q(J.colour.text["caution-subtle"].$value),
13391
+ cautionSubtle: q(J.colour.text.caution.$value),
13303
13392
  caution: q(J.colour.text.caution.$value),
13304
13393
  success: K.system.green70,
13305
- warningOnBgFill: q(J.colour.text["warning-on-bg-fill"].$value)
13394
+ warningOnBgFill: q(J.colour.text.warning.$value)
13306
13395
  },
13307
13396
  link: {
13308
13397
  default: q(J.colour.link.default.$value),
@@ -13519,7 +13608,7 @@ var { light: Os, primitives: ks, darkPrimitives: As } = Ot, W = Os, js = ks, Ms
13519
13608
  disabled: q(Z.colour.fill.disabled.$value),
13520
13609
  inverse: q(Z.colour.fill.inverse.$value),
13521
13610
  brandInverseSecondary: q(Z.colour.fill["brand-inverse-secondary"].$value),
13522
- inverseHover: q(Z.colour.fill["inverse-hover"].$value),
13611
+ inverseHover: q(Z.colour.fill["brand-inverse-hover"].$value),
13523
13612
  critical: q(Z.colour.fill.critical.$value),
13524
13613
  criticalHover: q(Z.colour.fill["critical-hover"].$value),
13525
13614
  criticalSelected: q(Z.colour.fill["critical-selected"].$value),
@@ -13598,10 +13687,10 @@ var { light: Os, primitives: ks, darkPrimitives: As } = Ot, W = Os, js = ks, Ms
13598
13687
  brandInverseSecondarySelected: q(Z.colour.text["brand-inverse-secondary-selected"].$value),
13599
13688
  brandPrimary: q(Z.colour.text["brand-primary"].$value),
13600
13689
  critical: q(Z.colour.text.critical.$value),
13601
- cautionSubtle: q(Z.colour.text["caution-subtle"].$value),
13690
+ cautionSubtle: q(Z.colour.text.caution.$value),
13602
13691
  caution: q(Z.colour.text.caution.$value),
13603
13692
  success: q(Z.colour.text.success.$value),
13604
- warningOnBgFill: q(Z.colour.text["warning-on-bg-fill"].$value)
13693
+ warningOnBgFill: q(Z.colour.text.warning.$value)
13605
13694
  },
13606
13695
  link: {
13607
13696
  default: q(Z.colour.link.default.$value),
@@ -20532,8 +20621,473 @@ var Am = ({ icon: e, iconPosition: t = "left", endAdornment: n, className: r, ch
20532
20621
  PrimaryItem: ch.PrimaryItem,
20533
20622
  SecondaryItem: ch.SecondaryItem,
20534
20623
  ActionButton: ch.ActionButton
20535
- }), Oh = "ucl-divider", kh = ({ testId: e = Oh, className: t, ...n }) => {
20536
- let [r] = $(), i = V(Oh, H`
20624
+ }), Oh = "ucl-uikit-multiselect", kh = "a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex=\"-1\"]), [contenteditable=\"true\"], audio[controls], video[controls], details > summary:first-of-type", Ah = ({ value: e = [], options: t = [], onValueChange: n, disabled: r, width: i = 325, clearable: a = !1, placeholder: o, selectionCountLabel: s, lineBreak: c = !1, dropdownWidth: u = "content", filterInputProps: p, testId: v = Oh, className: x, panelClassName: S, visibleFieldClassName: C, optionClassName: w, chevronIconClassName: T, filterable: E = !1, ref: D, ...O }) => {
20625
+ let k = h(() => {
20626
+ let e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
20627
+ for (let r of t) e.has(r.value) ? n.add(r.value) : e.add(r.value);
20628
+ return Array.from(n);
20629
+ }, [t]);
20630
+ d(() => {
20631
+ k.length > 0 && console.warn(`Select options contain non-unique values: ${k.map(String).join(", ")}`);
20632
+ }, [k]);
20633
+ let A = g(null), j = l((e) => {
20634
+ A.current = e, typeof D == "function" ? D(e) : D && "current" in D && (D.current = e);
20635
+ }, [D]), [M] = $(), [N, P] = _(!1), [F, I] = _(""), [L, R] = _(null), ee = g(null), [te, ne] = _(null), [re, ie] = _(null), [ae, oe] = _(null), [se, ce] = _(""), le = g(null), z = g(null), ue = f(), B = g(!1), de = O.id ?? `${v}-${ue.replace(/[:]/g, "")}`, fe = `${de}-listbox`, pe = `${de}-selection-status`, me = parseFloat(String(M.margin.m32));
20636
+ d(() => {
20637
+ ee.current = L;
20638
+ }, [L]);
20639
+ let he = h(() => {
20640
+ let e = F.toLowerCase();
20641
+ return E ? t.reduce((t, n, r) => (n.label.toLowerCase().includes(e) && t.push(r), t), []) : t.map((e, t) => t);
20642
+ }, [
20643
+ E,
20644
+ t,
20645
+ F
20646
+ ]), ge = h(() => he.map((e) => t[e]), [he, t]);
20647
+ d(() => {
20648
+ !N && F && I("");
20649
+ }, [N, F]), d(() => {
20650
+ N && !B.current && ce(""), B.current = N;
20651
+ }, [N]), d(() => {
20652
+ let e = (e) => {
20653
+ A.current && !A.current.contains(e.target) && P(!1);
20654
+ };
20655
+ return document.addEventListener("mousedown", e), () => {
20656
+ document.removeEventListener("mousedown", e);
20657
+ };
20658
+ }, [A]);
20659
+ let _e = (e) => {
20660
+ let t = e.relatedTarget;
20661
+ A.current && t && A.current.contains(t) || Ce();
20662
+ }, ve = (e) => {
20663
+ if (!e.isConnected || e instanceof HTMLInputElement && e.type === "hidden" || e.tabIndex < 0 || "disabled" in e && e.disabled) return !1;
20664
+ let t = window.getComputedStyle(e);
20665
+ return t.display !== "none" && t.visibility !== "hidden";
20666
+ }, ye = (e) => {
20667
+ if (!A.current) return !1;
20668
+ let t = Array.from(document.querySelectorAll(kh)).filter(ve), n = le.current;
20669
+ if (!n) return !1;
20670
+ let r = t.indexOf(n);
20671
+ if (r === -1) return !1;
20672
+ let i = e ? -1 : 1, a = r + i;
20673
+ for (; a >= 0 && a < t.length;) {
20674
+ let e = t[a];
20675
+ if (!A.current.contains(e) && (e.focus(), document.activeElement === e)) return !0;
20676
+ a += i;
20677
+ }
20678
+ return !1;
20679
+ }, be = (e) => {
20680
+ Ce(), (!e.shiftKey && z.current && (z.current.focus(), document.activeElement === z.current) || ye(e.shiftKey)) && e.preventDefault();
20681
+ };
20682
+ d(() => {
20683
+ r && N && P(!1);
20684
+ }, [r, N]), d(() => {
20685
+ E && N && le.current && le.current.focus();
20686
+ }, [E, N]), m(() => {
20687
+ if (!N) {
20688
+ ne(null), ie(null), oe(null);
20689
+ return;
20690
+ }
20691
+ let e = () => {
20692
+ let e = A.current, t = ((e?.closest("dialog"))?.querySelector("[role=\"document\"]"))?.getBoundingClientRect(), n = e?.getBoundingClientRect();
20693
+ ie(n?.width ?? null), ne(t && n ? Math.max(0, t.right - n.left) : null);
20694
+ };
20695
+ return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
20696
+ }, [A, N]);
20697
+ let xe = () => {
20698
+ r || P((e) => !e);
20699
+ }, Se = () => {
20700
+ r || P(!0);
20701
+ }, Ce = () => {
20702
+ r || (P(!1), R(null));
20703
+ }, we = (e) => {
20704
+ oe((t) => t && t.referenceWidth === e.referenceWidth && t.availableWidth === e.availableWidth && t.availableHeight === e.availableHeight ? t : e);
20705
+ }, Te = (e) => {
20706
+ r || (N ? E && le.current && le.current.contains(e.target) || Ce() : (Se(), E && le.current && le.current.focus()));
20707
+ }, Ee = (e) => {
20708
+ r || (e.stopPropagation(), R(null), I(""), Ce(), A.current?.focus(), n?.([], e));
20709
+ }, De = (t) => e.includes(t) ? e.filter((e) => e !== t) : [...e, t], Oe = (e, t) => {
20710
+ n?.(De(t), e);
20711
+ }, ke = t.filter((t) => e.includes(t.value)), Ae = L !== null && L >= 0 && L < ge.length ? L : null, je = Ae, Me = N && Ae !== null && je !== null ? `${de}-option-${he[je]}` : void 0, Ne = (t) => {
20712
+ (t.key === "ArrowUp" || t.key === "ArrowDown" || t.key === "ArrowLeft" || t.key === "ArrowRight") && t.preventDefault();
20713
+ let i = () => L !== null && L >= 0 && L < ge.length ? L : null;
20714
+ if (r) return;
20715
+ let a = t.getModifierState("AltGraph"), o = t.key.length === 1 && t.key !== " " && !t.metaKey && (!t.altKey && !t.ctrlKey || a);
20716
+ if (E && !N && o) t.preventDefault(), I(t.key), Se();
20717
+ else if (t.key === "Enter") {
20718
+ if (!N) {
20719
+ Se();
20720
+ return;
20721
+ }
20722
+ if (ge.length > 0) {
20723
+ let r = i(), a = ge[r === null ? 0 : r];
20724
+ n?.(De(a.value), t), ce(`${a.label} ${e.includes(a.value) ? "deselected" : "selected"}`), I(""), t.preventDefault();
20725
+ return;
20726
+ }
20727
+ t.preventDefault(), xe();
20728
+ } else if (!N && t.code === "Space") t.preventDefault(), Se();
20729
+ else if (N && t.key === "Escape") Ce(), t.currentTarget.focus();
20730
+ else if (t.key === "ArrowUp" || t.key === "ArrowLeft") {
20731
+ if (!N) {
20732
+ Se();
20733
+ return;
20734
+ }
20735
+ if (ge.length === 0) return;
20736
+ let e = i(), t = e === null ? ge.length - 1 : (e - 1 + ge.length) % ge.length;
20737
+ R(t);
20738
+ } else if (t.key === "ArrowDown" || t.key === "ArrowRight") {
20739
+ if (!N) {
20740
+ Se();
20741
+ return;
20742
+ }
20743
+ let e = i(), t = e === null ? 0 : (e + 1) % ge.length;
20744
+ R(t);
20745
+ }
20746
+ }, { md: Pe } = M.typography.body, Fe = H`
20747
+ display: inline-flex;
20748
+ align-items: center;
20749
+ justify-content: space-between;
20750
+ position: relative;
20751
+ min-width: 80px;
20752
+ max-width: calc(100vw - 64px);
20753
+ height: 48px;
20754
+ box-sizing: border-box;
20755
+ padding: 0 16px;
20756
+ background-color: ${M.colour.fill.inverse};
20757
+ color: ${M.colour.text.default};
20758
+ font-family: ${Pe.fontFamily};
20759
+ font-feature-settings: ${Pe.fontSettings};
20760
+ font-size: ${Pe.fontSize}px;
20761
+ font-weight: ${Pe.fontWeight};
20762
+ line-height: ${Pe.lineHeight}%;
20763
+ border: ${M.border.b1} solid ${M.colour.speciality.inputDefault};
20764
+ border-radius: ${M.radius.r4};
20765
+ cursor: pointer;
20766
+ user-select: none;
20767
+
20768
+ &:focus-visible,
20769
+ &:focus-within {
20770
+ outline: none;
20771
+ box-shadow: ${M.boxShadow.focus};
20772
+ }
20773
+ `, Ie = H`
20774
+ width: ${i}px;
20775
+ `, Le = H`
20776
+ color: ${M.colour.text.disabled};
20777
+ border: ${M.border.b1} solid ${M.colour.border.disabled};
20778
+ cursor: not-allowed;
20779
+
20780
+ &:hover {
20781
+ background-color: ${M.colour.fill.inverse};
20782
+ }
20783
+ `, Re = H`
20784
+ padding: ${M.padding.p8} ${M.padding.p16};
20785
+ color: ${M.colour.text.secondary};
20786
+ `, ze = H`
20787
+ position: absolute;
20788
+ width: 1px;
20789
+ height: 1px;
20790
+ padding: 0;
20791
+ margin: -1px;
20792
+ overflow: hidden;
20793
+ clip: rect(0, 0, 0, 0);
20794
+ white-space: nowrap;
20795
+ border: 0;
20796
+ `, Be = V(Oh, Fe, Ie, r && Le, x), Ve = {
20797
+ ...O["aria-label"] === void 0 ? {} : { "aria-label": O["aria-label"] },
20798
+ ...O["aria-labelledby"] === void 0 ? {} : { "aria-labelledby": O["aria-labelledby"] },
20799
+ "aria-describedby": [O["aria-describedby"], ke.length > 0 ? pe : void 0].filter(Boolean).join(" ") || void 0
20800
+ };
20801
+ return /* @__PURE__ */ b("div", {
20802
+ onClick: Te,
20803
+ onKeyDown: Ne,
20804
+ onBlur: _e,
20805
+ tabIndex: r || E && N ? -1 : 0,
20806
+ className: Be,
20807
+ "data-testid": v,
20808
+ ref: j,
20809
+ role: "combobox",
20810
+ "aria-haspopup": "listbox",
20811
+ "aria-expanded": N,
20812
+ "aria-disabled": r || void 0,
20813
+ "aria-controls": N ? fe : void 0,
20814
+ "aria-activedescendant": Me,
20815
+ ...O,
20816
+ children: [
20817
+ /* @__PURE__ */ y(Ih, {
20818
+ isOpen: N,
20819
+ selectedOptions: ke,
20820
+ placeholder: o,
20821
+ selectionCountLabel: s,
20822
+ disabled: r,
20823
+ filterable: E,
20824
+ clearable: a,
20825
+ onClear: Ee,
20826
+ clearButtonRef: z,
20827
+ className: C,
20828
+ chevronIconClassName: T,
20829
+ children: E && /* @__PURE__ */ y(Lh, {
20830
+ value: F,
20831
+ onChange: I,
20832
+ placeholder: o,
20833
+ disabled: r,
20834
+ inputRef: le,
20835
+ onBlur: _e,
20836
+ onTabOut: be,
20837
+ ariaControls: fe,
20838
+ ariaExpanded: N,
20839
+ ariaActiveDescendant: Me,
20840
+ ...Ve,
20841
+ ...p
20842
+ })
20843
+ }),
20844
+ E && N && ke.length > 0 && /* @__PURE__ */ y("span", {
20845
+ id: pe,
20846
+ className: ze,
20847
+ children: `${ke.length}${s ? ` ${s}` : ""} selected`
20848
+ }),
20849
+ /* @__PURE__ */ y("span", {
20850
+ role: "status",
20851
+ "aria-live": "polite",
20852
+ className: ze,
20853
+ children: se
20854
+ }),
20855
+ N && /* @__PURE__ */ y(Ed, {
20856
+ reference: A,
20857
+ placement: "bottom-start",
20858
+ strategy: "fixed",
20859
+ offset: 8,
20860
+ flip: { padding: me },
20861
+ shift: ({ rects: e }) => ({
20862
+ padding: me,
20863
+ mainAxis: u === "content" && e.floating.width > e.reference.width,
20864
+ crossAxis: !1
20865
+ }),
20866
+ size: {
20867
+ matchReferenceWidth: !0,
20868
+ padding: me
20869
+ },
20870
+ onSizeChange: we,
20871
+ children: /* @__PURE__ */ b(Ph, {
20872
+ className: S,
20873
+ dropdownWidth: u,
20874
+ referenceWidth: ae?.referenceWidth ?? re ?? void 0,
20875
+ maxWidth: te ?? void 0,
20876
+ "aria-multiselectable": "true",
20877
+ id: fe,
20878
+ role: "listbox",
20879
+ children: [ge.map((t, n) => {
20880
+ let { className: r, ...i } = t.optionProps ?? {}, a = typeof r == "string" ? r : void 0;
20881
+ return /* @__PURE__ */ y(Mh, {
20882
+ id: `${de}-option-${he[n]}`,
20883
+ value: t.value,
20884
+ isSelected: e.includes(t.value),
20885
+ isActive: je === n,
20886
+ onSelect: Oe,
20887
+ lineBreak: c,
20888
+ role: "option",
20889
+ "aria-selected": e.includes(t.value),
20890
+ "aria-posinset": n + 1,
20891
+ "aria-setsize": ge.length,
20892
+ ...i,
20893
+ className: V(w, a),
20894
+ children: t.label
20895
+ }, `${String(t.value)}-${he[n]}`);
20896
+ }), ge.length === 0 && /* @__PURE__ */ y("div", {
20897
+ className: Re,
20898
+ children: "No options"
20899
+ })]
20900
+ })
20901
+ })
20902
+ ]
20903
+ });
20904
+ }, jh = "ucl-uikit-multiselect__option", Mh = ({ value: e, isSelected: t = !1, isActive: n = !1, onSelect: r, lineBreak: i = !1, testId: a = jh, className: o, children: s, ...c }) => {
20905
+ let [l] = $(), u = g(null);
20906
+ d(() => {
20907
+ n && u.current && u.current.scrollIntoView({
20908
+ behavior: "auto",
20909
+ block: "nearest"
20910
+ });
20911
+ }, [n]);
20912
+ let { md: f } = l.typography.body, p = (t) => {
20913
+ r(t, e), t.stopPropagation();
20914
+ }, m = (e) => {
20915
+ e.preventDefault();
20916
+ }, h = H`
20917
+ display: flex;
20918
+ align-items: center;
20919
+ gap: 8px;
20920
+ min-height: 40px;
20921
+ box-sizing: border-box;
20922
+ padding: ${l.padding.p8} ${l.padding.p16};
20923
+ font-family: ${f.fontFamily};
20924
+ font-feature-settings: ${f.fontSettings};
20925
+ font-size: ${f.fontSize}px;
20926
+ font-weight: ${f.fontWeight};
20927
+ line-height: ${f.lineHeight}%;
20928
+ background-color: ${l.colour.fill.inverse};
20929
+ overflow: hidden;
20930
+
20931
+ &:hover {
20932
+ background-color: ${l.colour.fill.brandSubtleHover};
20933
+ }
20934
+ `, _ = H`
20935
+ white-space: nowrap;
20936
+ text-overflow: ellipsis;
20937
+ `, v = H`
20938
+ word-break: break-all;
20939
+ `, x = H`
20940
+ background-color: ${l.colour.fill.brandSubtleSelected};
20941
+ `, S = V(jh, h, !i && _, i && v, n && x, o);
20942
+ return /* @__PURE__ */ b("div", {
20943
+ onMouseDown: m,
20944
+ onClick: p,
20945
+ className: S,
20946
+ "data-testid": a,
20947
+ ref: u,
20948
+ ...c,
20949
+ children: [/* @__PURE__ */ y(Np, {
20950
+ checked: t,
20951
+ readOnly: !0,
20952
+ tabIndex: -1,
20953
+ "aria-hidden": "true"
20954
+ }), s]
20955
+ });
20956
+ }, Nh = "ucl-uikit-multiselect__panel", Ph = ({ className: e, dropdownWidth: t = "content", referenceWidth: n, maxWidth: r, ...i }) => {
20957
+ let [a] = $(), o = (e) => {
20958
+ e.stopPropagation();
20959
+ }, s = typeof n == "number" ? `${n}px` : "100%", c = H`
20960
+ min-width: ${s};
20961
+ width: fit-content;
20962
+ max-width: ${typeof r == "number" ? `min(${r}px, calc(100vw - (${a.margin.m32} * 2)))` : `calc(100vw - (${a.margin.m32} * 2))`};
20963
+ max-height: min(400px, var(--ucl-overlay-available-height, 400px));
20964
+ overflow-y: auto;
20965
+ overflow-x: hidden;
20966
+ box-sizing: border-box;
20967
+ padding: ${a.padding.p8} 0;
20968
+ border: ${a.border.b1} solid ${a.colour.border.subtle};
20969
+ background-color: ${a.colour.fill.inverse};
20970
+ `, l = H`
20971
+ width: ${s};
20972
+ max-width: ${s};
20973
+ `, u = V(Nh, c, t === "match-select" && l, e);
20974
+ return /* @__PURE__ */ y("div", {
20975
+ className: u,
20976
+ "data-testid": Nh,
20977
+ onClick: o,
20978
+ ...i
20979
+ });
20980
+ }, Fh = "ucl-uikit-multiselect__visible-field", Ih = ({ selectedOptions: e, isOpen: t, placeholder: n, selectionCountLabel: r, disabled: i, filterable: a, clearable: o = !1, onClear: s, clearButtonRef: c, className: l, chevronIconClassName: u, children: d }) => {
20981
+ let [f] = $(), { md: p } = f.typography.body, m = V(Fh, H`
20982
+ display: flex;
20983
+ align-items: center;
20984
+ justify-content: space-between;
20985
+
20986
+ gap: 8px;
20987
+ width: 100%;
20988
+ font-family: ${p.fontFamily};
20989
+ font-feature-settings: ${p.fontSettings};
20990
+ font-size: ${p.fontSize}px;
20991
+ font-weight: ${p.fontWeight};
20992
+ line-height: ${p.lineHeight}%;
20993
+ `, l), h = H`
20994
+ overflow: hidden;
20995
+ white-space: nowrap;
20996
+ text-overflow: ellipsis;
20997
+ `, g = H`
20998
+ flex-shrink: 0;
20999
+ margin-left: auto;
21000
+ color: ${f.colour.icon.default};
21001
+ `, _ = H`
21002
+ transform: rotate(180deg);
21003
+ `, v = H`
21004
+ color: ${f.colour.icon.disabled};
21005
+ `, x = V(g, t && _, i && v, u), S = H`
21006
+ display: flex;
21007
+ align-items: center;
21008
+ justify-content: center;
21009
+ flex-shrink: 0;
21010
+ margin-left: auto;
21011
+ padding: 0;
21012
+ border: none;
21013
+ background: transparent;
21014
+ color: ${f.colour.icon.default};
21015
+ cursor: pointer;
21016
+
21017
+ &:focus-visible {
21018
+ outline: none;
21019
+ box-shadow: ${f.boxShadow.focus};
21020
+ }
21021
+ `, C = e.length > 0, w = o && C && !i;
21022
+ return /* @__PURE__ */ b("div", {
21023
+ className: m,
21024
+ "data-testid": Fh,
21025
+ children: [a && t ? /* @__PURE__ */ y("div", {
21026
+ className: h,
21027
+ children: d
21028
+ }) : /* @__PURE__ */ y("span", {
21029
+ className: h,
21030
+ children: C ? e.length >= 3 ? `${e.length}${r ? ` ${r}` : ""} selected` : e.map((e) => e.label).join(", ") : n || ""
21031
+ }), w ? /* @__PURE__ */ y("button", {
21032
+ ref: c,
21033
+ type: "button",
21034
+ className: S,
21035
+ "aria-label": "Clear selection",
21036
+ "data-testid": `${Fh}-clear-button`,
21037
+ onClick: (e) => {
21038
+ e.stopPropagation(), s?.(e);
21039
+ },
21040
+ onKeyDown: (e) => {
21041
+ e.stopPropagation();
21042
+ },
21043
+ children: /* @__PURE__ */ y(U.X, {})
21044
+ }) : /* @__PURE__ */ y(U.ChevronDown, { className: x })]
21045
+ });
21046
+ }, Lh = ({ value: e, onChange: t, onBlur: n, onTabOut: r, placeholder: i, disabled: a, inputRef: o, className: s, ariaControls: c, ariaExpanded: l, ariaActiveDescendant: u, ...d }) => {
21047
+ let [f] = $(), p = (e) => {
21048
+ e.key === "Tab" ? r?.(e) : e.key !== "Escape" && e.key !== "Enter" && e.key !== "ArrowUp" && e.key !== "ArrowDown" && e.stopPropagation();
21049
+ }, m = H`
21050
+ flex: 1;
21051
+ border: none;
21052
+ outline: none;
21053
+ background: transparent;
21054
+ font: inherit;
21055
+ color: ${f.colour.text.default};
21056
+ &::placeholder {
21057
+ color: ${f.colour.text.tertiary};
21058
+ }
21059
+ &:disabled {
21060
+ color: ${f.colour.text.disabled};
21061
+ cursor: not-allowed;
21062
+ }
21063
+ `;
21064
+ return /* @__PURE__ */ y("input", {
21065
+ ref: o,
21066
+ className: V(m, s),
21067
+ value: e,
21068
+ placeholder: i,
21069
+ disabled: a,
21070
+ onChange: (e) => t(e.target.value),
21071
+ onBlur: n,
21072
+ onClick: (e) => e.stopPropagation(),
21073
+ onKeyDown: (e) => p(e),
21074
+ "aria-autocomplete": "list",
21075
+ role: "searchbox",
21076
+ "aria-haspopup": "listbox",
21077
+ "aria-controls": c,
21078
+ "aria-expanded": l,
21079
+ "aria-activedescendant": u,
21080
+ "aria-label": "Filter options",
21081
+ ...d
21082
+ });
21083
+ }, Rh = ((e) => {
21084
+ let { ref: t, ...n } = e;
21085
+ return /* @__PURE__ */ y(Ah, {
21086
+ ref: t,
21087
+ ...n
21088
+ });
21089
+ }), zh = "ucl-divider", Bh = ({ testId: e = zh, className: t, ...n }) => {
21090
+ let [r] = $(), i = V(zh, H`
20537
21091
  margin: 0;
20538
21092
  height: 1px;
20539
21093
  border: none;
@@ -20545,8 +21099,8 @@ var Am = ({ icon: e, iconPosition: t = "left", endAdornment: n, className: r, ch
20545
21099
  role: "separator",
20546
21100
  ...n
20547
21101
  });
20548
- }, Ah = "ucl-uikit-footer__column", jh = s(({ heading: e, testId: t = Ah, className: n, children: r, ...i }) => {
20549
- let [a] = $(), o = V(Ah, H`
21102
+ }, Vh = "ucl-uikit-footer__column", Hh = s(({ heading: e, testId: t = Vh, className: n, children: r, ...i }) => {
21103
+ let [a] = $(), o = V(Vh, H`
20550
21104
  margin-top: ${a.margin.m24};
20551
21105
  margin-bottom: ${a.margin.m24};
20552
21106
  flex: 1;
@@ -20569,7 +21123,7 @@ var Am = ({ icon: e, iconPosition: t = "left", endAdornment: n, className: r, ch
20569
21123
  children: e
20570
21124
  }), r]
20571
21125
  });
20572
- }), Mh = "ucl-uikit-footer__social-link", Nh = s(({ socialNetwork: e, testId: t = Mh, className: n, ...r }) => {
21126
+ }), Uh = "ucl-uikit-footer__social-link", Wh = s(({ socialNetwork: e, testId: t = Uh, className: n, ...r }) => {
20573
21127
  let i = {
20574
21128
  facebook: "https://www.facebook.com/uclofficial/",
20575
21129
  flickr: "https://www.flickr.com/groups/ucl/",
@@ -20586,7 +21140,7 @@ var Am = ({ icon: e, iconPosition: t = "left", endAdornment: n, className: r, ch
20586
21140
  tiktok: "TikTok",
20587
21141
  x: "X social media platform",
20588
21142
  youtube: "YouTube"
20589
- }[e], [o] = $(), s = V(Mh, H`
21143
+ }[e], [o] = $(), s = V(Uh, H`
20590
21144
  display: inline-block;
20591
21145
  height: ${o.height.h24};
20592
21146
  border-radius: ${o.radius.r8};
@@ -20633,8 +21187,8 @@ var Am = ({ icon: e, iconPosition: t = "left", endAdornment: n, className: r, ch
20633
21187
  title: a
20634
21188
  })
20635
21189
  });
20636
- }), Ph = "ucl-uikit-footer__nav-link", Fh = s(({ href: e, testId: t = Ph, className: n, children: r, ...i }) => {
20637
- let [a] = $(), o = V(Ph, H`
21190
+ }), Gh = "ucl-uikit-footer__nav-link", Kh = s(({ href: e, testId: t = Gh, className: n, children: r, ...i }) => {
21191
+ let [a] = $(), o = V(Gh, H`
20638
21192
  margin: ${a.margin.m8} 0;
20639
21193
  text-decoration: none;
20640
21194
  color: ${a.color.text.inverted};
@@ -20661,8 +21215,8 @@ var Am = ({ icon: e, iconPosition: t = "left", endAdornment: n, className: r, ch
20661
21215
  ...i,
20662
21216
  children: r
20663
21217
  });
20664
- }), Ih = "ucl-uikit-footer__column", Lh = s(({ heading: e, testId: t = Ih, className: n, children: r, ...i }) => {
20665
- let [a] = $(), o = V(Ih, H`
21218
+ }), qh = "ucl-uikit-footer__column", Jh = s(({ heading: e, testId: t = qh, className: n, children: r, ...i }) => {
21219
+ let [a] = $(), o = V(qh, H`
20666
21220
  flex: 1;
20667
21221
  display: flex;
20668
21222
  flex-direction: column;
@@ -20714,8 +21268,8 @@ var Am = ({ icon: e, iconPosition: t = "left", endAdornment: n, className: r, ch
20714
21268
  children: e
20715
21269
  }), r]
20716
21270
  });
20717
- }), Rh = "ucl-uikit-footer__nav-link", zh = s(({ href: e, testId: t = Rh, className: n, children: r, ...i }) => {
20718
- let [a] = $(), o = a.typography.body.sm, s = a.typography.body.md, c = V(Rh, H`
21271
+ }), Yh = "ucl-uikit-footer__nav-link", Xh = s(({ href: e, testId: t = Yh, className: n, children: r, ...i }) => {
21272
+ let [a] = $(), o = a.typography.body.sm, s = a.typography.body.md, c = V(Yh, H`
20719
21273
  text-decoration: none;
20720
21274
  color: ${a.colour.text.brandInverse};
20721
21275
  font-family: ${o.fontFamily};
@@ -20754,7 +21308,7 @@ var Am = ({ icon: e, iconPosition: t = "left", endAdornment: n, className: r, ch
20754
21308
  ...i,
20755
21309
  children: r
20756
21310
  });
20757
- }), Bh = "ucl-uikit-footer__social-link", Vh = s(({ socialNetwork: e, testId: t = Bh, className: n, ...r }) => {
21311
+ }), Zh = "ucl-uikit-footer__social-link", Qh = s(({ socialNetwork: e, testId: t = Zh, className: n, ...r }) => {
20758
21312
  let i = {
20759
21313
  bluesky: "https://bsky.app/profile/ucl.ac.uk",
20760
21314
  instagram: "https://www.instagram.com/ucl/",
@@ -20773,7 +21327,7 @@ var Am = ({ icon: e, iconPosition: t = "left", endAdornment: n, className: r, ch
20773
21327
  tiktok: "TikTok",
20774
21328
  threads: "Threads",
20775
21329
  soundcloud: "SoundCloud"
20776
- }[e], [o] = $(), s = V(Bh, H`
21330
+ }[e], [o] = $(), s = V(Zh, H`
20777
21331
  width: 36px;
20778
21332
  height: 36px;
20779
21333
  box-sizing: border-box;
@@ -20821,7 +21375,7 @@ var Am = ({ icon: e, iconPosition: t = "left", endAdornment: n, className: r, ch
20821
21375
  title: a
20822
21376
  })
20823
21377
  });
20824
- }), Hh = "ucl-uikit-footer__logo-address-social", Uh = ({ compact: e = !1, addressFormat: t, showSocialLinks: n = !0, testId: r = Hh, className: i, ...a }) => {
21378
+ }), $h = "ucl-uikit-footer__logo-address-social", eg = ({ compact: e = !1, addressFormat: t, showSocialLinks: n = !0, testId: r = $h, className: i, ...a }) => {
20825
21379
  let [o] = $(), s = H`
20826
21380
  margin-top: ${o.margin.m48};
20827
21381
 
@@ -20844,7 +21398,7 @@ var Am = ({ icon: e, iconPosition: t = "left", endAdornment: n, className: r, ch
20844
21398
  @media screen and (min-width: ${o.breakpoints.desktopLarge}px) {
20845
21399
  margin-left: 0;
20846
21400
  }
20847
- `, l = V(Hh, s, e && c, i), u = H`
21401
+ `, l = V($h, s, e && c, i), u = H`
20848
21402
  display: block;
20849
21403
  `, d = H`
20850
21404
  margin-top: ${o.margin.m16};
@@ -20929,20 +21483,20 @@ var Am = ({ icon: e, iconPosition: t = "left", endAdornment: n, className: r, ch
20929
21483
  n && /* @__PURE__ */ b("div", {
20930
21484
  className: h,
20931
21485
  children: [
20932
- /* @__PURE__ */ y(Vh, { socialNetwork: "instagram" }),
20933
- /* @__PURE__ */ y(Vh, { socialNetwork: "linkedin" }),
20934
- /* @__PURE__ */ y(Vh, { socialNetwork: "youtube" }),
20935
- /* @__PURE__ */ y(Vh, { socialNetwork: "tiktok" }),
20936
- /* @__PURE__ */ y(Vh, { socialNetwork: "facebook" }),
20937
- /* @__PURE__ */ y(Vh, { socialNetwork: "bluesky" }),
20938
- /* @__PURE__ */ y(Vh, { socialNetwork: "threads" }),
20939
- /* @__PURE__ */ y(Vh, { socialNetwork: "soundcloud" })
21486
+ /* @__PURE__ */ y(Qh, { socialNetwork: "instagram" }),
21487
+ /* @__PURE__ */ y(Qh, { socialNetwork: "linkedin" }),
21488
+ /* @__PURE__ */ y(Qh, { socialNetwork: "youtube" }),
21489
+ /* @__PURE__ */ y(Qh, { socialNetwork: "tiktok" }),
21490
+ /* @__PURE__ */ y(Qh, { socialNetwork: "facebook" }),
21491
+ /* @__PURE__ */ y(Qh, { socialNetwork: "bluesky" }),
21492
+ /* @__PURE__ */ y(Qh, { socialNetwork: "threads" }),
21493
+ /* @__PURE__ */ y(Qh, { socialNetwork: "soundcloud" })
20940
21494
  ]
20941
21495
  })
20942
21496
  ]
20943
21497
  });
20944
- }, Wh = "ucl-uikit-footer__legal-and-copyright", Gh = ({ disclaimer: e, freedomOfInformation: t, accessibility: n, cookies: r, privacy: i, slaveryStatement: a, login: o, testId: s = Wh, className: c, ...l }) => {
20945
- let u = (/* @__PURE__ */ new Date()).getFullYear(), [d] = $(), f = d.typography.body.sm, p = V(Wh, H`
21498
+ }, tg = "ucl-uikit-footer__legal-and-copyright", ng = ({ disclaimer: e, freedomOfInformation: t, accessibility: n, cookies: r, privacy: i, slaveryStatement: a, login: o, testId: s = tg, className: c, ...l }) => {
21499
+ let u = (/* @__PURE__ */ new Date()).getFullYear(), [d] = $(), f = d.typography.body.sm, p = V(tg, H`
20946
21500
  margin-top: ${d.margin.m16};
20947
21501
  border-top: 6px solid ${d.colour.border.brandInverseSecondary};
20948
21502
  padding-top: ${d.padding.p24};
@@ -21062,14 +21616,14 @@ var Am = ({ icon: e, iconPosition: t = "left", endAdornment: n, className: r, ch
21062
21616
  ]
21063
21617
  })]
21064
21618
  });
21065
- }, Kh = () => {
21619
+ }, rg = () => {
21066
21620
  window?.scrollTo({
21067
21621
  top: 0,
21068
21622
  behavior: "smooth"
21069
21623
  });
21070
- }, qh = "ucl-uikit-footer__back-to-top", Jh = ({ compact: e, testId: t = qh, className: n, ...r }) => {
21624
+ }, ig = "ucl-uikit-footer__back-to-top", ag = ({ compact: e, testId: t = ig, className: n, ...r }) => {
21071
21625
  let [i] = $(), a = i.typography.body.sm, o = i.typography.body.md, s = () => {
21072
- Kh();
21626
+ rg();
21073
21627
  }, c = H`
21074
21628
  margin-top: ${i.margin.m56};
21075
21629
  text-align: right;
@@ -21083,7 +21637,7 @@ var Am = ({ icon: e, iconPosition: t = "left", endAdornment: n, className: r, ch
21083
21637
  @media screen and (min-width: ${i.breakpoints.tablet}px) {
21084
21638
  margin-top: ${i.margin.m16};
21085
21639
  }
21086
- `, u = V(qh, c, e && l, n), d = H`
21640
+ `, u = V(ig, c, e && l, n), d = H`
21087
21641
  display: inline;
21088
21642
  background-color: transparent;
21089
21643
  border: none;
@@ -21120,8 +21674,8 @@ var Am = ({ icon: e, iconPosition: t = "left", endAdornment: n, className: r, ch
21120
21674
  children: ["Back to top ", /* @__PURE__ */ y(U.ArrowUp, {})]
21121
21675
  })
21122
21676
  });
21123
- }, Yh = "ucl-uikit-footer__links", Xh = ({ testId: e = Yh, className: t, children: n, ...r }) => {
21124
- let [i] = $(), a = V(Yh, H`
21677
+ }, og = "ucl-uikit-footer__links", sg = ({ testId: e = og, className: t, children: n, ...r }) => {
21678
+ let [i] = $(), a = V(og, H`
21125
21679
  @media screen and (min-width: ${i.breakpoints.tablet}px) {
21126
21680
  display: flex;
21127
21681
  justify-content: start;
@@ -21138,8 +21692,8 @@ var Am = ({ icon: e, iconPosition: t = "left", endAdornment: n, className: r, ch
21138
21692
  ...r,
21139
21693
  children: n
21140
21694
  });
21141
- }, Zh = "ucl-uikit-footer", Qh = s(({ testId: e = Zh, className: t, addressFormat: n = "full", showSocialLinks: r = !0, disclaimer: i = "https://www.ucl.ac.uk/legal-services/disclaimer", freedomOfInformation: a = "https://www.ucl.ac.uk/foi", accessibility: o = "https://www.ucl.ac.uk/accessibility", cookies: s = "https://www.ucl.ac.uk/legal-services/privacy/cookie-policy", privacy: c = "https://www.ucl.ac.uk/legal-services/privacy", slaveryStatement: l = "https://www.ucl.ac.uk/commercial-procurement/modern-day-slavery-statement", login: u, children: d, ...f }) => {
21142
- let p = !!d, m = !p, [h] = $(), g = V(Zh, H`
21695
+ }, cg = "ucl-uikit-footer", lg = s(({ testId: e = cg, className: t, addressFormat: n = "full", showSocialLinks: r = !0, disclaimer: i = "https://www.ucl.ac.uk/legal-services/disclaimer", freedomOfInformation: a = "https://www.ucl.ac.uk/foi", accessibility: o = "https://www.ucl.ac.uk/accessibility", cookies: s = "https://www.ucl.ac.uk/legal-services/privacy/cookie-policy", privacy: c = "https://www.ucl.ac.uk/legal-services/privacy", slaveryStatement: l = "https://www.ucl.ac.uk/commercial-procurement/modern-day-slavery-statement", login: u, children: d, ...f }) => {
21696
+ let p = !!d, m = !p, [h] = $(), g = V(cg, H`
21143
21697
  background-color: ${h.colour.surface.inverseBrandPrimary};
21144
21698
  color: ${h.colour.text.brandInverse};
21145
21699
  padding: ${h.padding.p40} ${h.padding.p16};
@@ -21164,14 +21718,14 @@ var Am = ({ icon: e, iconPosition: t = "left", endAdornment: n, className: r, ch
21164
21718
  children: [
21165
21719
  /* @__PURE__ */ b("div", {
21166
21720
  className: _,
21167
- children: [p && /* @__PURE__ */ y(Xh, { children: d }), /* @__PURE__ */ y(Uh, {
21721
+ children: [p && /* @__PURE__ */ y(sg, { children: d }), /* @__PURE__ */ y(eg, {
21168
21722
  compact: m,
21169
21723
  addressFormat: n,
21170
21724
  showSocialLinks: r
21171
21725
  })]
21172
21726
  }),
21173
- /* @__PURE__ */ y(Jh, { compact: m }),
21174
- /* @__PURE__ */ y(Gh, {
21727
+ /* @__PURE__ */ y(ag, { compact: m }),
21728
+ /* @__PURE__ */ y(ng, {
21175
21729
  disclaimer: i,
21176
21730
  freedomOfInformation: a,
21177
21731
  accessibility: o,
@@ -21183,10 +21737,10 @@ var Am = ({ icon: e, iconPosition: t = "left", endAdornment: n, className: r, ch
21183
21737
  ]
21184
21738
  });
21185
21739
  });
21186
- Qh.Column = Lh, Qh.NavLink = zh;
21740
+ lg.Column = Jh, lg.NavLink = Xh;
21187
21741
  // lib/components/Footer/Footer.tsx
21188
- var $h = "ucl-uikit-footer", eg = ({ testId: e = $h, className: t, disclaimer: n = "https://www.ucl.ac.uk/legal-services/disclaimer", freedomOfInformation: r = "https://www.ucl.ac.uk/foi", accessibility: i = "https://www.ucl.ac.uk/accessibility", cookies: a = "https://www.ucl.ac.uk/legal-services/privacy/cookie-policy", privacy: o = "https://www.ucl.ac.uk/legal-services/privacy", slaveryStatement: s = "https://www.ucl.ac.uk/commercial-procurement/modern-day-slavery-statement", children: c, ...l }) => {
21189
- let u = (/* @__PURE__ */ new Date()).getFullYear(), [d] = $(), f = d.typography.body.sm, p = V($h, H`
21742
+ var ug = "ucl-uikit-footer", dg = ({ testId: e = ug, className: t, disclaimer: n = "https://www.ucl.ac.uk/legal-services/disclaimer", freedomOfInformation: r = "https://www.ucl.ac.uk/foi", accessibility: i = "https://www.ucl.ac.uk/accessibility", cookies: a = "https://www.ucl.ac.uk/legal-services/privacy/cookie-policy", privacy: o = "https://www.ucl.ac.uk/legal-services/privacy", slaveryStatement: s = "https://www.ucl.ac.uk/commercial-procurement/modern-day-slavery-statement", children: c, ...l }) => {
21743
+ let u = (/* @__PURE__ */ new Date()).getFullYear(), [d] = $(), f = d.typography.body.sm, p = V(ug, H`
21190
21744
  background-color: ${d.color.neutral.grey90};
21191
21745
  color: ${d.color.text.inverted};
21192
21746
  font-family: ${f.fontFamily};
@@ -21320,17 +21874,17 @@ var $h = "ucl-uikit-footer", eg = ({ testId: e = $h, className: t, disclaimer: n
21320
21874
  children: [/* @__PURE__ */ y(Xf, { className: _ }), /* @__PURE__ */ b("div", {
21321
21875
  className: v,
21322
21876
  children: [
21323
- /* @__PURE__ */ y(Nh, { socialNetwork: "facebook" }),
21324
- /* @__PURE__ */ y(Nh, { socialNetwork: "flickr" }),
21325
- /* @__PURE__ */ y(Nh, { socialNetwork: "tiktok" }),
21326
- /* @__PURE__ */ y(Nh, { socialNetwork: "youtube" }),
21327
- /* @__PURE__ */ y(Nh, { socialNetwork: "soundcloud" }),
21328
- /* @__PURE__ */ y(Nh, { socialNetwork: "x" }),
21329
- /* @__PURE__ */ y(Nh, { socialNetwork: "instagram" })
21877
+ /* @__PURE__ */ y(Wh, { socialNetwork: "facebook" }),
21878
+ /* @__PURE__ */ y(Wh, { socialNetwork: "flickr" }),
21879
+ /* @__PURE__ */ y(Wh, { socialNetwork: "tiktok" }),
21880
+ /* @__PURE__ */ y(Wh, { socialNetwork: "youtube" }),
21881
+ /* @__PURE__ */ y(Wh, { socialNetwork: "soundcloud" }),
21882
+ /* @__PURE__ */ y(Wh, { socialNetwork: "x" }),
21883
+ /* @__PURE__ */ y(Wh, { socialNetwork: "instagram" })
21330
21884
  ]
21331
21885
  })]
21332
21886
  }),
21333
- /* @__PURE__ */ y(kh, {}),
21887
+ /* @__PURE__ */ y(Bh, {}),
21334
21888
  /* @__PURE__ */ b("div", {
21335
21889
  className: x,
21336
21890
  children: [
@@ -21403,9 +21957,9 @@ var $h = "ucl-uikit-footer", eg = ({ testId: e = $h, className: t, disclaimer: n
21403
21957
  ]
21404
21958
  })
21405
21959
  });
21406
- }, tg = ({ testId: e = $h, className: t, addressFormat: n, showSocialLinks: r, disclaimer: i, freedomOfInformation: a, accessibility: o, cookies: s, privacy: c, slaveryStatement: l, login: u, children: d, ...f }) => {
21960
+ }, fg = ({ testId: e = ug, className: t, addressFormat: n, showSocialLinks: r, disclaimer: i, freedomOfInformation: a, accessibility: o, cookies: s, privacy: c, slaveryStatement: l, login: u, children: d, ...f }) => {
21407
21961
  let [p] = $();
21408
- return p === xc.default ? /* @__PURE__ */ y(eg, {
21962
+ return p === xc.default ? /* @__PURE__ */ y(dg, {
21409
21963
  testId: e,
21410
21964
  className: t,
21411
21965
  disclaimer: i,
@@ -21416,7 +21970,7 @@ var $h = "ucl-uikit-footer", eg = ({ testId: e = $h, className: t, disclaimer: n
21416
21970
  slaveryStatement: l,
21417
21971
  ...f,
21418
21972
  children: d
21419
- }) : /* @__PURE__ */ y(Qh, {
21973
+ }) : /* @__PURE__ */ y(lg, {
21420
21974
  testId: e,
21421
21975
  className: t,
21422
21976
  addressFormat: n,
@@ -21431,17 +21985,17 @@ var $h = "ucl-uikit-footer", eg = ({ testId: e = $h, className: t, disclaimer: n
21431
21985
  ...f,
21432
21986
  children: d
21433
21987
  });
21434
- }, ng = (e) => {
21435
- let [t] = $(), n = t === xc.default ? jh : Qh.Column;
21988
+ }, pg = (e) => {
21989
+ let [t] = $(), n = t === xc.default ? Hh : lg.Column;
21436
21990
  return /* @__PURE__ */ y(n, { ...e });
21437
- }, rg = (e) => {
21438
- let [t] = $(), n = t === xc.default ? Fh : Qh.NavLink;
21991
+ }, mg = (e) => {
21992
+ let [t] = $(), n = t === xc.default ? Kh : lg.NavLink;
21439
21993
  return /* @__PURE__ */ y(n, { ...e });
21440
- }, ig = s(tg);
21441
- ig.Column = ng, ig.NavLink = rg;
21994
+ }, hg = s(fg);
21995
+ hg.Column = pg, hg.NavLink = mg;
21442
21996
  // lib/components/Header/HeaderMenu.tsx
21443
- var ag = "ucl-uikit-header__menu", og = ({ testId: e = ag, className: t, children: n, ...r }) => {
21444
- let [i] = $(), a = V(ag, H`
21997
+ var gg = "ucl-uikit-header__menu", _g = ({ testId: e = gg, className: t, children: n, ...r }) => {
21998
+ let [i] = $(), a = V(gg, H`
21445
21999
  position: absolute;
21446
22000
  right: 16px;
21447
22001
 
@@ -21455,8 +22009,8 @@ var ag = "ucl-uikit-header__menu", og = ({ testId: e = ag, className: t, childre
21455
22009
  ...r,
21456
22010
  children: n
21457
22011
  });
21458
- }, sg = "ucl-uikit-header__menu-container", cg = ({ testId: e = sg, className: t, children: n, ...r }) => {
21459
- let i = V(sg, H`
22012
+ }, vg = "ucl-uikit-header__menu-container", yg = ({ testId: e = vg, className: t, children: n, ...r }) => {
22013
+ let i = V(vg, H`
21460
22014
  display: inline-flex;
21461
22015
  align-items: center;
21462
22016
  align-self: center;
@@ -21469,8 +22023,8 @@ var ag = "ucl-uikit-header__menu", og = ({ testId: e = ag, className: t, childre
21469
22023
  ...r,
21470
22024
  children: n
21471
22025
  });
21472
- }, lg = "ucl-uikit-header__item", ug = ({ testId: e = lg, className: t, children: n, ...r }) => {
21473
- let [i] = $(), { md: a } = i.typography.body, o = V(lg, H`
22026
+ }, bg = "ucl-uikit-header__item", xg = ({ testId: e = bg, className: t, children: n, ...r }) => {
22027
+ let [i] = $(), { md: a } = i.typography.body, o = V(bg, H`
21474
22028
  display: inline-flex;
21475
22029
  align-items: center;
21476
22030
  align-self: center;
@@ -21497,8 +22051,8 @@ var ag = "ucl-uikit-header__menu", og = ({ testId: e = ag, className: t, childre
21497
22051
  ...r,
21498
22052
  children: n
21499
22053
  });
21500
- }, dg = "ucl-uikit-header__title", fg = ({ title: e, as: t = "span", linkHref: n, linkProps: r, testId: i = dg, className: a, ...o }) => {
21501
- let [s] = $(), c = V(dg, H`
22054
+ }, Sg = "ucl-uikit-header__title", Cg = ({ title: e, as: t = "span", linkHref: n, linkProps: r, testId: i = Sg, className: a, ...o }) => {
22055
+ let [s] = $(), c = V(Sg, H`
21502
22056
  display: block;
21503
22057
  flex: 1 1 auto;
21504
22058
  min-width: 0;
@@ -21546,8 +22100,8 @@ var ag = "ucl-uikit-header__menu", og = ({ testId: e = ag, className: t, childre
21546
22100
  children: e
21547
22101
  }) : e
21548
22102
  });
21549
- }, pg = "ucl-uikit-header__logo", mg = ({ linkHref: e, linkProps: t, testId: n = pg, className: r, ...i }) => {
21550
- let [a] = $(), o = V(pg, H`
22103
+ }, wg = "ucl-uikit-header__logo", Tg = ({ linkHref: e, linkProps: t, testId: n = wg, className: r, ...i }) => {
22104
+ let [a] = $(), o = V(wg, H`
21551
22105
  display: none;
21552
22106
  flex: 0 0 auto;
21553
22107
  height: 29px;
@@ -21583,8 +22137,8 @@ var ag = "ucl-uikit-header__menu", og = ({ testId: e = ag, className: t, childre
21583
22137
  "data-test": n,
21584
22138
  ...i
21585
22139
  });
21586
- }, hg = "ucl-uikit-header__border", gg = ({ linkHref: e, linkProps: t, testId: n = hg, className: r, ...i }) => {
21587
- let [a] = $(), o = V(hg, H`
22140
+ }, Eg = "ucl-uikit-header__border", Dg = ({ linkHref: e, linkProps: t, testId: n = Eg, className: r, ...i }) => {
22141
+ let [a] = $(), o = V(Eg, H`
21588
22142
  position: absolute;
21589
22143
  left: 16px;
21590
22144
  height: 100%;
@@ -21626,8 +22180,8 @@ var ag = "ucl-uikit-header__menu", og = ({ testId: e = ag, className: t, childre
21626
22180
  children: /* @__PURE__ */ y("div", { className: s })
21627
22181
  }) : /* @__PURE__ */ y("div", { className: s })
21628
22182
  });
21629
- }, _g = "ucl-uikit-header", vg = s(({ title: e, showBorder: t = !0, titleAs: n = "div", titleClassName: r, titleProps: i, homeLinkHref: a, homeLinkProps: o, testId: s = _g, className: c, children: l, ...u }) => {
21630
- let [d] = $(), f = V(_g, H`
22183
+ }, Og = "ucl-uikit-header", kg = s(({ title: e, showBorder: t = !0, titleAs: n = "div", titleClassName: r, titleProps: i, homeLinkHref: a, homeLinkProps: o, testId: s = Og, className: c, children: l, ...u }) => {
22184
+ let [d] = $(), f = V(Og, H`
21631
22185
  position: relative;
21632
22186
  background-color: ${d.colour.surface.primary};
21633
22187
  font-synthesis: none;
@@ -21652,15 +22206,15 @@ var ag = "ucl-uikit-header__menu", og = ({ testId: e = ag, className: t, childre
21652
22206
  "data-testid": s,
21653
22207
  ...u,
21654
22208
  children: [
21655
- /* @__PURE__ */ y(gg, {
22209
+ /* @__PURE__ */ y(Dg, {
21656
22210
  linkHref: a,
21657
22211
  linkProps: o
21658
22212
  }),
21659
- /* @__PURE__ */ y(mg, {
22213
+ /* @__PURE__ */ y(Tg, {
21660
22214
  linkHref: a,
21661
22215
  linkProps: o
21662
22216
  }),
21663
- /* @__PURE__ */ y(fg, {
22217
+ /* @__PURE__ */ y(Cg, {
21664
22218
  className: r,
21665
22219
  title: e,
21666
22220
  as: n,
@@ -21672,9 +22226,9 @@ var ag = "ucl-uikit-header__menu", og = ({ testId: e = ag, className: t, childre
21672
22226
  ]
21673
22227
  });
21674
22228
  });
21675
- vg.MenuContainer = cg, vg.Item = ug;
22229
+ kg.MenuContainer = yg, kg.Item = xg;
21676
22230
  // lib/components/Header/Header.tsx
21677
- var yg = "ucl-uikit-header", bg = ({ title: e, fixed: t = !1, titleAs: n = "div", titleClassName: r, titleProps: i, homeLinkHref: a, homeLinkProps: o, homeLinkAriaLabel: s = "Go to homepage", testId: c = yg, className: l, children: u, ...d }) => {
22231
+ var Ag = "ucl-uikit-header", jg = ({ title: e, fixed: t = !1, titleAs: n = "div", titleClassName: r, titleProps: i, homeLinkHref: a, homeLinkProps: o, homeLinkAriaLabel: s = "Go to homepage", testId: c = Ag, className: l, children: u, ...d }) => {
21678
22232
  let [f] = $(), p = f.typography.heading.lg.md, m = H`
21679
22233
  background-color: ${f.color.neutral.white};
21680
22234
  font-synthesis: none;
@@ -21698,7 +22252,7 @@ var yg = "ucl-uikit-header", bg = ({ title: e, fixed: t = !1, titleAs: n = "div"
21698
22252
  top: 0;
21699
22253
  width: 100%;
21700
22254
  z-index: ${3};
21701
- `, g = V(yg, m, t && h, l), _ = H`
22255
+ `, g = V(Ag, m, t && h, l), _ = H`
21702
22256
  position: absolute;
21703
22257
  left: 16px;
21704
22258
  bottom: -0.5px;
@@ -21758,9 +22312,9 @@ var yg = "ucl-uikit-header", bg = ({ title: e, fixed: t = !1, titleAs: n = "div"
21758
22312
  children: w
21759
22313
  }) : w, u]
21760
22314
  });
21761
- }, xg = s(({ title: e, showBorder: t = !0, titleAs: n = "div", titleClassName: r, titleProps: i, homeLinkHref: a, homeLinkProps: o, homeLinkAriaLabel: s, testId: c = yg, className: l, children: u, fixed: d, ...f }) => {
22315
+ }, Mg = s(({ title: e, showBorder: t = !0, titleAs: n = "div", titleClassName: r, titleProps: i, homeLinkHref: a, homeLinkProps: o, homeLinkAriaLabel: s, testId: c = Ag, className: l, children: u, fixed: d, ...f }) => {
21762
22316
  let [p] = $();
21763
- if (p === xc.default) return /* @__PURE__ */ y(bg, {
22317
+ if (p === xc.default) return /* @__PURE__ */ y(jg, {
21764
22318
  title: e,
21765
22319
  fixed: d,
21766
22320
  titleAs: n,
@@ -21778,7 +22332,7 @@ var yg = "ucl-uikit-header", bg = ({ title: e, fixed: t = !1, titleAs: n = "div"
21778
22332
  ...o,
21779
22333
  "aria-label": s
21780
22334
  } : o;
21781
- return /* @__PURE__ */ y(vg, {
22335
+ return /* @__PURE__ */ y(kg, {
21782
22336
  title: e ?? "",
21783
22337
  showBorder: t,
21784
22338
  titleAs: n,
@@ -21792,9 +22346,9 @@ var yg = "ucl-uikit-header", bg = ({ title: e, fixed: t = !1, titleAs: n = "div"
21792
22346
  children: u
21793
22347
  });
21794
22348
  });
21795
- xg.Menu = og, xg.MenuContainer = vg.MenuContainer, xg.Item = vg.Item;
22349
+ Mg.Menu = _g, Mg.MenuContainer = kg.MenuContainer, Mg.Item = kg.Item;
21796
22350
  // lib/components/NavigationBar/NavigationBarItem.tsx
21797
- var Sg = "ucl-uikit-navigation-bar__item", Cg = a(function({ active: e = !1, disabled: t = !1, icon: i, iconPosition: a = "right", testId: s = Sg, className: c, children: l, asChild: u = !1, ...d }, f) {
22351
+ var Ng = "ucl-uikit-navigation-bar__item", Pg = a(function({ active: e = !1, disabled: t = !1, icon: i, iconPosition: a = "right", testId: s = Ng, className: c, children: l, asChild: u = !1, ...d }, f) {
21798
22352
  let [p] = $(), m = H`
21799
22353
  display: inline-flex;
21800
22354
  `, h = H`
@@ -21876,7 +22430,7 @@ var Sg = "ucl-uikit-navigation-bar__item", Cg = a(function({ active: e = !1, dis
21876
22430
  `, E = H`
21877
22431
  display: block;
21878
22432
  flex-shrink: 0;
21879
- `, D = V(Sg, h, e && g, t && _, c), O = (t) => /* @__PURE__ */ b("span", {
22433
+ `, D = V(Ng, h, e && g, t && _, c), O = (t) => /* @__PURE__ */ b("span", {
21880
22434
  className: v,
21881
22435
  children: [/* @__PURE__ */ b("span", {
21882
22436
  className: x,
@@ -21927,7 +22481,7 @@ var Sg = "ucl-uikit-navigation-bar__item", Cg = a(function({ active: e = !1, dis
21927
22481
  children: k
21928
22482
  })
21929
22483
  });
21930
- }), wg = s(Cg), Tg = "ucl-uikit-navigation-bar", Eg = Object.assign(s(({ testId: e = Tg, className: t, children: r, "aria-label": i = "Primary navigation", ...a }) => {
22484
+ }), Fg = s(Pg), Ig = "ucl-uikit-navigation-bar", Lg = Object.assign(s(({ testId: e = Ig, className: t, children: r, "aria-label": i = "Primary navigation", ...a }) => {
21931
22485
  let [s] = $(), c = n.toArray(r).filter(o), l = H`
21932
22486
  box-sizing: border-box;
21933
22487
  display: flex;
@@ -21948,7 +22502,7 @@ var Sg = "ucl-uikit-navigation-bar__item", Cg = a(function({ active: e = !1, dis
21948
22502
  margin: 0;
21949
22503
  padding: 0;
21950
22504
  list-style: none;
21951
- `, d = V(Tg, l, t);
22505
+ `, d = V(Ig, l, t);
21952
22506
  return /* @__PURE__ */ y("nav", {
21953
22507
  className: d,
21954
22508
  "data-testid": e,
@@ -21959,8 +22513,8 @@ var Sg = "ucl-uikit-navigation-bar__item", Cg = a(function({ active: e = !1, dis
21959
22513
  children: c
21960
22514
  })
21961
22515
  });
21962
- }), { Item: wg }), Dg = "ucl-uikit-header__bottom--breadcrumbs", Og = s(({ testId: e = Dg, className: t, children: n, ...r }) => {
21963
- let [i] = $(), { sm: a } = i.typography.body, o = V(Dg, H`
22516
+ }), { Item: Fg }), Rg = "ucl-uikit-header__bottom--breadcrumbs", zg = s(({ testId: e = Rg, className: t, children: n, ...r }) => {
22517
+ let [i] = $(), { sm: a } = i.typography.body, o = V(Rg, H`
21964
22518
  color: ${i.color.text.primary};
21965
22519
  padding: ${i.padding.p16} 60px;
21966
22520
  box-sizing: border-box;
@@ -21987,8 +22541,8 @@ var Sg = "ucl-uikit-navigation-bar__item", Cg = a(function({ active: e = !1, dis
21987
22541
  children: n
21988
22542
  })
21989
22543
  });
21990
- }), kg = "ucl-uikit-header__avatar", Ag = s(({ heading: e, subheading: t, name: n, role: r, profileImageSrc: i, testId: a = kg, className: o, ...s }) => {
21991
- let [c] = $(), l = c.typography.heading.sm.md, u = c.typography.body.md, d = c.typography.body.sm, f = V(kg, H`
22544
+ }), Bg = "ucl-uikit-header__avatar", Vg = s(({ heading: e, subheading: t, name: n, role: r, profileImageSrc: i, testId: a = Bg, className: o, ...s }) => {
22545
+ let [c] = $(), l = c.typography.heading.sm.md, u = c.typography.body.md, d = c.typography.body.sm, f = V(Bg, H`
21992
22546
  color: ${c.color.text.primary};
21993
22547
  padding: ${c.padding.p20} 60px;
21994
22548
  box-sizing: border-box;
@@ -22092,7 +22646,7 @@ var Sg = "ucl-uikit-navigation-bar__item", Cg = a(function({ active: e = !1, dis
22092
22646
  ]
22093
22647
  })]
22094
22648
  });
22095
- }), jg = "ucl-uikit-header__breadcrumb", Mg = s(({ link: e = !1, testId: t = jg, className: n, children: r, ...i }) => {
22649
+ }), Hg = "ucl-uikit-header__breadcrumb", Ug = s(({ link: e = !1, testId: t = Hg, className: n, children: r, ...i }) => {
22096
22650
  let [a] = $(), { sm: o, smSemibold: s } = a.typography.body, c = H`
22097
22651
  color: ${a.color.text.primary};
22098
22652
  font-family: ${o.fontFamily};
@@ -22124,7 +22678,7 @@ var Sg = "ucl-uikit-navigation-bar__item", Cg = a(function({ active: e = !1, dis
22124
22678
  margin-left: ${a.margin.m8};
22125
22679
  vertical-align: middle;
22126
22680
  color: ${a.color.text.secondary};
22127
- `, p = V(jg, c, n);
22681
+ `, p = V(Hg, c, n);
22128
22682
  return /* @__PURE__ */ b("li", {
22129
22683
  className: p,
22130
22684
  "data-testid": t,
@@ -22138,14 +22692,14 @@ var Sg = "ucl-uikit-navigation-bar__item", Cg = a(function({ active: e = !1, dis
22138
22692
  strokeWidth: 1.5
22139
22693
  })]
22140
22694
  });
22141
- }), Ng = "ucl-uikit-header__menu", Pg = ({ testId: e = Ng, children: t, ...n }) => /* @__PURE__ */ y("div", {
22695
+ }), Wg = "ucl-uikit-header__menu", Gg = ({ testId: e = Wg, children: t, ...n }) => /* @__PURE__ */ y("div", {
22142
22696
  "data-testid": e,
22143
22697
  ...n,
22144
22698
  children: t
22145
- }), Fg = "ucl-uikit-header", Ig = s(({ variant: e, title: n, heading: r, subheading: i, name: a, role: o, profileImageSrc: s, menu: c = !1, fixed: l = !1, sticky: u = !1, testId: d = Fg, className: f, children: p, ...m }) => {
22699
+ }), Kg = "ucl-uikit-header", qg = s(({ variant: e, title: n, heading: r, subheading: i, name: a, role: o, profileImageSrc: s, menu: c = !1, fixed: l = !1, sticky: u = !1, testId: d = Kg, className: f, children: p, ...m }) => {
22146
22700
  let [h] = $(), { mdSemibold: g, lgBold: _ } = h.typography.body, v = [], x = [];
22147
22701
  t.Children.forEach(p, (e) => {
22148
- t.isValidElement(e) && e.type === Pg ? v.push(e) : x.push(e);
22702
+ t.isValidElement(e) && e.type === Gg ? v.push(e) : x.push(e);
22149
22703
  });
22150
22704
  let S = H`
22151
22705
  background-color: ${h.color.neutral.white};
@@ -22167,7 +22721,7 @@ var Sg = "ucl-uikit-navigation-bar__item", Cg = a(function({ active: e = !1, dis
22167
22721
  `, w = H`
22168
22722
  position: sticky;
22169
22723
  top: -${72}px;
22170
- `, T = V(Fg, S, l && C, u && w, f), E = H`
22724
+ `, T = V(Kg, S, l && C, u && w, f), E = H`
22171
22725
  position: relative;
22172
22726
  height: ${72}px;
22173
22727
  background-color: ${h.color.neutral.grey90};
@@ -22233,8 +22787,8 @@ var Sg = "ucl-uikit-navigation-bar__item", Cg = a(function({ active: e = !1, dis
22233
22787
  })
22234
22788
  ]
22235
22789
  }),
22236
- e === "breadcrumbs" && /* @__PURE__ */ y(Og, { children: x }),
22237
- e === "avatar" && /* @__PURE__ */ y(Ag, {
22790
+ e === "breadcrumbs" && /* @__PURE__ */ y(zg, { children: x }),
22791
+ e === "avatar" && /* @__PURE__ */ y(Vg, {
22238
22792
  heading: r,
22239
22793
  subheading: i,
22240
22794
  name: a,
@@ -22244,13 +22798,13 @@ var Sg = "ucl-uikit-navigation-bar__item", Cg = a(function({ active: e = !1, dis
22244
22798
  ]
22245
22799
  });
22246
22800
  });
22247
- Ig.Breadcrumb = Mg, Ig.Menu = Pg;
22801
+ qg.Breadcrumb = Ug, qg.Menu = Gg;
22248
22802
  // lib/components/Table/Table.context.ts
22249
- var Lg = i({
22803
+ var Jg = i({
22250
22804
  columns: [],
22251
22805
  disableMobileView: !1
22252
- }), Rg = Lg.Provider, zg = () => c(Lg), Bg = (e, t) => t ? -1 : e - 1, Vg = "ucl-uikit-table__head", Hg = ({ className: e, children: t, ...n }) => {
22253
- let [r] = $(), { disableMobileView: i } = zg(), a = Bg(r.breakpoints.tablet, i), o = H`
22806
+ }), Yg = Jg.Provider, Xg = () => c(Jg), Zg = (e, t) => t ? -1 : e - 1, Qg = "ucl-uikit-table__head", $g = ({ className: e, children: t, ...n }) => {
22807
+ let [r] = $(), { disableMobileView: i } = Xg(), a = Zg(r.breakpoints.tablet, i), o = H`
22254
22808
  height: 40px;
22255
22809
  background-color: ${r.colour.surface.secondary};
22256
22810
 
@@ -22267,17 +22821,17 @@ var Lg = i({
22267
22821
  }
22268
22822
  `, s = H`
22269
22823
  border-bottom: 1px solid ${r.colour.border.disabled};
22270
- `, c = V(o, e, Vg);
22824
+ `, c = V(o, e, Qg);
22271
22825
  return /* @__PURE__ */ y("thead", {
22272
22826
  className: c,
22273
- "data-testid": Vg,
22827
+ "data-testid": Qg,
22274
22828
  ...n,
22275
22829
  children: /* @__PURE__ */ y("tr", {
22276
22830
  className: s,
22277
22831
  children: t
22278
22832
  })
22279
22833
  });
22280
- }, Ug = ({ sortOrder: e, size: t = 16 }) => {
22834
+ }, e_ = ({ sortOrder: e, size: t = 16 }) => {
22281
22835
  let [n] = $(), r = e === "asc" ? n.colour.icon.default : n.colour.icon.disabled, i = e === "desc" ? n.colour.icon.default : n.colour.icon.disabled;
22282
22836
  return /* @__PURE__ */ y("svg", {
22283
22837
  width: t,
@@ -22317,26 +22871,26 @@ var Lg = i({
22317
22871
  })
22318
22872
  ] })
22319
22873
  });
22320
- }, Wg = "ucl-uikit-table__head-cell-content", Gg = ({ variant: e, sort: t, showSortIcon: n, checked: r, onCheckboxChange: i, checkboxAriaLabel: a, children: o }) => {
22874
+ }, t_ = "ucl-uikit-table__head-cell-content", n_ = ({ variant: e, sort: t, showSortIcon: n, checked: r, onCheckboxChange: i, checkboxAriaLabel: a, children: o }) => {
22321
22875
  let s = H`
22322
22876
  display: flex;
22323
22877
  align-items: center;
22324
22878
  gap: 8px;
22325
22879
  `, c = H`
22326
22880
  justify-content: flex-end;
22327
- `, l = V(s, e === "checkbox" && c, Wg);
22881
+ `, l = V(s, e === "checkbox" && c, t_);
22328
22882
  return /* @__PURE__ */ b("div", {
22329
22883
  className: l,
22330
- "data-testid": Wg,
22331
- children: [e === "default" && /* @__PURE__ */ b(v, { children: [o, n && /* @__PURE__ */ y(Ug, { sortOrder: t })] }), e === "checkbox" && /* @__PURE__ */ y(Np, {
22884
+ "data-testid": t_,
22885
+ children: [e === "default" && /* @__PURE__ */ b(v, { children: [o, n && /* @__PURE__ */ y(e_, { sortOrder: t })] }), e === "checkbox" && /* @__PURE__ */ y(Np, {
22332
22886
  checked: r,
22333
22887
  onChange: i,
22334
22888
  ariaLabel: a
22335
22889
  })]
22336
22890
  });
22337
- }, Kg = "ucl-uikit-table__head-cell", qg = ({ variant: e = "default", accessor: t, mobileRole: n, mobileLabel: r, sort: i = null, onSortChange: a, showSortIcon: o = !0, checked: s = !1, onCheck: c, testId: l = Kg, className: u, children: d, checkboxAriaLabel: f = "Select all rows", ...p }) => {
22891
+ }, r_ = "ucl-uikit-table__head-cell", i_ = ({ variant: e = "default", accessor: t, mobileRole: n, mobileLabel: r, sort: i = null, onSortChange: a, showSortIcon: o = !0, checked: s = !1, onCheck: c, testId: l = r_, className: u, children: d, checkboxAriaLabel: f = "Select all rows", ...p }) => {
22338
22892
  let [m] = $(), h = e !== "checkbox" && a && t, g = (e) => {
22339
- a && !t ? console.warn(`${Kg}: onSortChange requires an accessor to be defined.`) : h && (i === "asc" ? a(t, "desc", e) : i === "desc" ? a(t, null, e) : a(t, "asc", e));
22893
+ a && !t ? console.warn(`${r_}: onSortChange requires an accessor to be defined.`) : h && (i === "asc" ? a(t, "desc", e) : i === "desc" ? a(t, null, e) : a(t, "asc", e));
22340
22894
  }, _ = (e) => {
22341
22895
  g(e);
22342
22896
  }, v = (e) => {
@@ -22354,7 +22908,7 @@ var Lg = i({
22354
22908
  text-align: left;
22355
22909
  cursor: ${h ? "pointer" : "default"};
22356
22910
  user-select: none;
22357
- `, u, Kg);
22911
+ `, u, r_);
22358
22912
  return /* @__PURE__ */ y("th", {
22359
22913
  onClick: _,
22360
22914
  onKeyDown: v,
@@ -22368,7 +22922,7 @@ var Lg = i({
22368
22922
  tabIndex: h ? 0 : void 0,
22369
22923
  "aria-sort": h ? i === "asc" ? "ascending" : i === "desc" ? "descending" : "none" : void 0,
22370
22924
  ...p,
22371
- children: /* @__PURE__ */ y(Gg, {
22925
+ children: /* @__PURE__ */ y(n_, {
22372
22926
  variant: e,
22373
22927
  sort: i,
22374
22928
  showSortIcon: o,
@@ -22378,21 +22932,21 @@ var Lg = i({
22378
22932
  children: d
22379
22933
  })
22380
22934
  });
22381
- }, Jg = "ucl-uikit-table__body", Yg = ({ className: e, children: t, ...n }) => {
22382
- let [r] = $(), { disableMobileView: i } = zg(), a = V(H`
22383
- @media screen and (max-width: ${Bg(r.breakpoints.tablet, i)}px) {
22935
+ }, a_ = "ucl-uikit-table__body", o_ = ({ className: e, children: t, ...n }) => {
22936
+ let [r] = $(), { disableMobileView: i } = Xg(), a = V(H`
22937
+ @media screen and (max-width: ${Zg(r.breakpoints.tablet, i)}px) {
22384
22938
  display: block;
22385
22939
  width: 100%;
22386
22940
  }
22387
- `, e, Jg);
22941
+ `, e, a_);
22388
22942
  return /* @__PURE__ */ y("tbody", {
22389
22943
  className: a,
22390
- "data-testid": Jg,
22944
+ "data-testid": a_,
22391
22945
  ...n,
22392
22946
  children: t
22393
22947
  });
22394
- }, Xg = "ucl-uikit-table__row", Zg = (e) => !e || e === "field", Qg = (e, t) => e === t, $g = ({ selected: e = !1, mobileExpanded: t, defaultMobileExpanded: i = !0, mobileCollapsible: a = !0, mobileDetailsLabel: s = "Details", mobileExpandLabel: c = "Show details", mobileCollapseLabel: l = "Hide details", onMobileExpandedChange: u, className: d, children: f, ...p }) => {
22395
- let [m] = $(), { columns: h, disableMobileView: g } = zg(), v = Bg(m.breakpoints.tablet, g), [x, S] = _(i), C = t === void 0 ? x : t, w = n.toArray(f).some((e, t) => o(e) && Zg(h[t]?.mobileRole)), T = n.toArray(f).some((e, t) => o(e) && Qg(h[t]?.mobileRole, "selection")), E = n.toArray(f).some((e, t) => o(e) && Qg(h[t]?.mobileRole, "primaryMeta")), D = n.toArray(f).some((e, t) => o(e) && Qg(h[t]?.mobileRole, "contextMenu")), O = n.toArray(f).findIndex((e, t) => o(e) && Zg(h[t]?.mobileRole)), k = a && w, A = !k || C, j = () => {
22948
+ }, s_ = "ucl-uikit-table__row", c_ = (e) => !e || e === "field", l_ = (e, t) => e === t, u_ = ({ selected: e = !1, mobileExpanded: t, defaultMobileExpanded: i = !0, mobileCollapsible: a = !0, mobileDetailsLabel: s = "Details", mobileExpandLabel: c = "Show details", mobileCollapseLabel: l = "Hide details", onMobileExpandedChange: u, className: d, children: f, ...p }) => {
22949
+ let [m] = $(), { columns: h, disableMobileView: g } = Xg(), v = Zg(m.breakpoints.tablet, g), [x, S] = _(i), C = t === void 0 ? x : t, w = n.toArray(f).some((e, t) => o(e) && c_(h[t]?.mobileRole)), T = n.toArray(f).some((e, t) => o(e) && l_(h[t]?.mobileRole, "selection")), E = n.toArray(f).some((e, t) => o(e) && l_(h[t]?.mobileRole, "primaryMeta")), D = n.toArray(f).some((e, t) => o(e) && l_(h[t]?.mobileRole, "contextMenu")), O = n.toArray(f).findIndex((e, t) => o(e) && c_(h[t]?.mobileRole)), k = a && w, A = !k || C, j = () => {
22396
22950
  let e = !C;
22397
22951
  t === void 0 && S(e), u?.(e);
22398
22952
  }, M = H`
@@ -22447,7 +23001,7 @@ var Lg = i({
22447
23001
  @media screen and (max-width: ${v}px) {
22448
23002
  grid-template-columns: auto minmax(0, 1fr) auto auto;
22449
23003
  }
22450
- `, F = V(M, e && N, D && P, d, Xg), I = H`
23004
+ `, F = V(M, e && N, D && P, d, s_), I = H`
22451
23005
  display: block;
22452
23006
  grid-column: 1 / -1;
22453
23007
  order: 10;
@@ -22483,7 +23037,7 @@ var Lg = i({
22483
23037
  })) : e), te = C ? l : c;
22484
23038
  return /* @__PURE__ */ b("tr", {
22485
23039
  className: F,
22486
- "data-testid": Xg,
23040
+ "data-testid": s_,
22487
23041
  "aria-selected": e,
22488
23042
  "data-mobile-expanded": A,
22489
23043
  ...p,
@@ -22500,8 +23054,8 @@ var Lg = i({
22500
23054
  })
22501
23055
  })]
22502
23056
  });
22503
- }, e_ = "ucl-uikit-table__cell-content", t_ = ({ variant: e, mobileRole: t, icon: n, checked: r, checkboxProps: i, buttonProps: a, handleCheckboxChange: o, handleButtonClick: s, children: c }) => {
22504
- let [l] = $(), { disableMobileView: u } = zg(), d = Bg(l.breakpoints.tablet, u), f = H`
23057
+ }, d_ = "ucl-uikit-table__cell-content", f_ = ({ variant: e, mobileRole: t, icon: n, checked: r, checkboxProps: i, buttonProps: a, handleCheckboxChange: o, handleButtonClick: s, children: c }) => {
23058
+ let [l] = $(), { disableMobileView: u } = Xg(), d = Zg(l.breakpoints.tablet, u), f = H`
22505
23059
  display: flex;
22506
23060
  align-items: center;
22507
23061
  justify-content: flex-start;
@@ -22570,10 +23124,10 @@ var Lg = i({
22570
23124
  [_]: t === "primaryMeta",
22571
23125
  [v]: t === "primaryAction",
22572
23126
  [x]: t === "status" || t === "contextMenu"
22573
- }, h, e_);
23127
+ }, h, d_);
22574
23128
  return /* @__PURE__ */ b("div", {
22575
23129
  className: S,
22576
- "data-testid": e_,
23130
+ "data-testid": d_,
22577
23131
  children: [
22578
23132
  n,
22579
23133
  e === "checkbox" && /* @__PURE__ */ y(Np, {
@@ -22591,9 +23145,9 @@ var Lg = i({
22591
23145
  e !== "checkbox" && e !== "button" && c
22592
23146
  ]
22593
23147
  });
22594
- }, n_ = "ucl-uikit-table__cell", r_ = (e) => e === "checkbox" ? "selection" : e === "button" ? "primaryAction" : "field", i_ = ({ variant: e = "default", icon: t, onCheck: n, checked: r, onButtonClick: i = () => {}, testId: a = n_, className: o, children: s, checkboxProps: c, buttonProps: l, __mobileColumnIndex: u, __mobileHasSelection: d = !1, __mobileHasPrimaryMeta: f = !1, __mobileIsFirstBodyField: p = !1, ...m }) => {
22595
- let [h] = $(), { columns: g, disableMobileView: _ } = zg(), v = Bg(h.breakpoints.tablet, _), b = g[u ?? -1], x = b?.mobileRole ?? r_(e), S = b?.mobileLabel;
22596
- e === "checkbox" && !c?.ariaLabel && !c?.["aria-label"] && console.warn(`${n_}: checkboxProps.ariaLabel is required when using variant="checkbox". Provide a row-specific label (e.g. "Select John Smith") so screen readers can identify each checkbox.`);
23148
+ }, p_ = "ucl-uikit-table__cell", m_ = (e) => e === "checkbox" ? "selection" : e === "button" ? "primaryAction" : "field", h_ = ({ variant: e = "default", icon: t, onCheck: n, checked: r, onButtonClick: i = () => {}, testId: a = p_, className: o, children: s, checkboxProps: c, buttonProps: l, __mobileColumnIndex: u, __mobileHasSelection: d = !1, __mobileHasPrimaryMeta: f = !1, __mobileIsFirstBodyField: p = !1, ...m }) => {
23149
+ let [h] = $(), { columns: g, disableMobileView: _ } = Xg(), v = Zg(h.breakpoints.tablet, _), b = g[u ?? -1], x = b?.mobileRole ?? m_(e), S = b?.mobileLabel;
23150
+ e === "checkbox" && !c?.ariaLabel && !c?.["aria-label"] && console.warn(`${p_}: checkboxProps.ariaLabel is required when using variant="checkbox". Provide a row-specific label (e.g. "Select John Smith") so screen readers can identify each checkbox.`);
22597
23151
  let C = (t) => {
22598
23152
  e === "checkbox" && n && n(t.target.checked, t);
22599
23153
  }, w = (t) => {
@@ -22710,7 +23264,7 @@ var Lg = i({
22710
23264
  @media screen and (max-width: ${v}px) {
22711
23265
  display: none;
22712
23266
  }
22713
- `, ne = V(T, o, n_), re = V({
23267
+ `, ne = V(T, o, p_), re = V({
22714
23268
  [E]: x === "selection",
22715
23269
  [D]: x === "primary",
22716
23270
  [O]: x === "primary" && d,
@@ -22733,7 +23287,7 @@ var Lg = i({
22733
23287
  "data-mobile-role": x,
22734
23288
  "data-mobile-label": S,
22735
23289
  ...m,
22736
- children: /* @__PURE__ */ y(t_, {
23290
+ children: /* @__PURE__ */ y(f_, {
22737
23291
  variant: e,
22738
23292
  mobileRole: x,
22739
23293
  icon: t,
@@ -22745,12 +23299,12 @@ var Lg = i({
22745
23299
  children: s
22746
23300
  })
22747
23301
  });
22748
- }, a_ = "ucl-uikit-table", o_ = (e) => typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(o_).join("").trim() : o(e) ? o_(e.props.children) : "", s_ = (e, t) => e === "primaryStatus" ? "status" : e || (t === "checkbox" ? "selection" : "field"), c_ = (e) => {
22749
- let t = n.toArray(e).find((e) => o(e) && e.type === Hg);
23302
+ }, g_ = "ucl-uikit-table", __ = (e) => typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(__).join("").trim() : o(e) ? __(e.props.children) : "", v_ = (e, t) => e === "primaryStatus" ? "status" : e || (t === "checkbox" ? "selection" : "field"), y_ = (e) => {
23303
+ let t = n.toArray(e).find((e) => o(e) && e.type === $g);
22750
23304
  if (!o(t)) return [];
22751
23305
  let r = n.toArray(t.props.children).filter(o).map((e) => ({
22752
- mobileRole: s_(e.props.mobileRole, e.props.variant),
22753
- mobileLabel: e.props.mobileLabel ?? o_(e.props.children)
23306
+ mobileRole: v_(e.props.mobileRole, e.props.variant),
23307
+ mobileLabel: e.props.mobileLabel ?? __(e.props.children)
22754
23308
  }));
22755
23309
  if (r.some((e) => e.mobileRole === "primary")) return r;
22756
23310
  let i = r.findIndex((e) => e.mobileRole === "field");
@@ -22758,8 +23312,8 @@ var Lg = i({
22758
23312
  ...e,
22759
23313
  mobileRole: "primary"
22760
23314
  } : e);
22761
- }, l_ = ({ testId: e = a_, className: t, children: n, ref: r, ariaLabel: i, disableMobileView: a = !1, ...o }) => {
22762
- let [s] = $(), c = c_(n), l = Bg(s.breakpoints.tablet, a), u = V(H`
23315
+ }, b_ = ({ testId: e = g_, className: t, children: n, ref: r, ariaLabel: i, disableMobileView: a = !1, ...o }) => {
23316
+ let [s] = $(), c = y_(n), l = Zg(s.breakpoints.tablet, a), u = V(H`
22763
23317
  width: 100%;
22764
23318
  font-family: ${s.typography.body.sm.fontFamily};
22765
23319
  font-feature-settings: ${s.typography.body.sm.fontSettings};
@@ -22772,8 +23326,8 @@ var Lg = i({
22772
23326
  display: block;
22773
23327
  border-collapse: separate;
22774
23328
  }
22775
- `, t, a_);
22776
- return /* @__PURE__ */ y(Rg, {
23329
+ `, t, g_);
23330
+ return /* @__PURE__ */ y(Yg, {
22777
23331
  value: {
22778
23332
  columns: c,
22779
23333
  disableMobileView: a
@@ -22788,10 +23342,10 @@ var Lg = i({
22788
23342
  })
22789
23343
  });
22790
23344
  };
22791
- l_.Head = Hg, l_.HeadCell = qg, l_.Body = Yg, l_.Row = $g, l_.Cell = i_;
23345
+ b_.Head = $g, b_.HeadCell = i_, b_.Body = o_, b_.Row = u_, b_.Cell = h_;
22792
23346
  // lib/components/Alert/AlertMessage.tsx
22793
- var u_ = "ucl-uikit-alert__message", d_ = ({ testId: e = u_, className: t, children: n, ...r }) => {
22794
- let i = V(u_, t);
23347
+ var x_ = "ucl-uikit-alert__message", S_ = ({ testId: e = x_, className: t, children: n, ...r }) => {
23348
+ let i = V(x_, t);
22795
23349
  return /* @__PURE__ */ y(Ic, {
22796
23350
  level: "md",
22797
23351
  noMargins: !0,
@@ -22800,12 +23354,12 @@ var u_ = "ucl-uikit-alert__message", d_ = ({ testId: e = u_, className: t, child
22800
23354
  ...r,
22801
23355
  children: n
22802
23356
  });
22803
- }, f_ = "ucl-uikit-alert__title", p_ = ({ children: e, testId: t = f_, className: n, ...r }) => {
23357
+ }, C_ = "ucl-uikit-alert__title", w_ = ({ children: e, testId: t = C_, className: n, ...r }) => {
22804
23358
  let [i] = $(), a = H`
22805
23359
  margin: 0 0 ${i.margin.m8} 0;
22806
23360
  `;
22807
23361
  return /* @__PURE__ */ y("h3", {
22808
- className: V(f_, a, n),
23362
+ className: V(C_, a, n),
22809
23363
  "data-test-id": t,
22810
23364
  ...r,
22811
23365
  children: /* @__PURE__ */ y(Mc, {
@@ -22813,10 +23367,10 @@ var u_ = "ucl-uikit-alert__message", d_ = ({ testId: e = u_, className: t, child
22813
23367
  children: e
22814
23368
  })
22815
23369
  });
22816
- }, m_ = (e) => e.charAt(0).toUpperCase() + e.slice(1), h_ = "ucl-uikit-alert", g_ = i(null), __ = ({ variant: e, type: t, iconProps: n, contentProps: i, actionButton: a, children: o, testId: s = h_, className: c, ...l }) => {
23370
+ }, T_ = (e) => e.charAt(0).toUpperCase() + e.slice(1), E_ = "ucl-uikit-alert", D_ = i(null), O_ = ({ variant: e, type: t, iconProps: n, contentProps: i, actionButton: a, children: o, testId: s = E_, className: c, ...l }) => {
22817
23371
  let u = e ?? t;
22818
23372
  if (!u) throw Error("Alert requires a variant");
22819
- let d = m_(u), [f] = $(), { padding: p } = f, m = H`
23373
+ let d = T_(u), [f] = $(), { padding: p } = f, m = H`
22820
23374
  display: flex;
22821
23375
  align-items: flex-start;
22822
23376
  gap: ${a ? f.margin.m32 : f.margin.m8};
@@ -22835,7 +23389,7 @@ var u_ = "ucl-uikit-alert__message", d_ = ({ testId: e = u_, className: t, child
22835
23389
  `, x = H`
22836
23390
  background-color: ${f.colour.surface.critical};
22837
23391
  border-color: ${f.colour.border.critical};
22838
- `, S = V(h_, m, Ac(l, f), u === "info" && h, u === "success" && g, u === "warning" && _, u === "error" && x, c), C = V(u === "info" && H`
23392
+ `, S = V(E_, m, Ac(l, f), u === "info" && h, u === "success" && g, u === "warning" && _, u === "error" && x, c), C = V(u === "info" && H`
22839
23393
  color: ${f.colour.icon.brand};
22840
23394
  `, u === "success" && H`
22841
23395
  color: ${f.colour.icon.success};
@@ -22879,7 +23433,7 @@ var u_ = "ucl-uikit-alert__message", d_ = ({ testId: e = u_, className: t, child
22879
23433
  className: V(w, i?.className),
22880
23434
  children: o
22881
23435
  })] });
22882
- return /* @__PURE__ */ y(g_.Provider, {
23436
+ return /* @__PURE__ */ y(D_.Provider, {
22883
23437
  value: { type: u },
22884
23438
  children: /* @__PURE__ */ b("div", {
22885
23439
  className: S,
@@ -22892,17 +23446,17 @@ var u_ = "ucl-uikit-alert__message", d_ = ({ testId: e = u_, className: t, child
22892
23446
  }) : k, O]
22893
23447
  })
22894
23448
  });
22895
- }, v_ = __;
22896
- __.Title = p_, __.Message = d_;
23449
+ }, k_ = O_;
23450
+ O_.Title = w_, O_.Message = S_;
22897
23451
  // lib/components/Tabs/TabContext.tsx
22898
- var y_ = i(void 0), b_ = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-"), x_ = (e, t) => `${e}-panel-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-"), S_ = () => {
22899
- let e = c(y_);
23452
+ var A_ = i(void 0), j_ = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-"), M_ = (e, t) => `${e}-panel-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-"), N_ = () => {
23453
+ let e = c(A_);
22900
23454
  if (!e) throw Error("Tab components must be used within a Tabs component");
22901
23455
  return e;
22902
- }, C_ = "ucl-uikit-tabs__tab", w_ = (e, t) => (n) => {
23456
+ }, P_ = "ucl-uikit-tabs__tab", F_ = (e, t) => (n) => {
22903
23457
  e?.(n), t?.(n);
22904
- }, T_ = s(({ testId: e = C_, className: t, children: i, label: a, value: s, count: c, counter: l, disabled: u = !1, asChild: d = !1, onClick: f, ref: p, ...m }) => {
22905
- let [h] = $(), { value: g, setValue: _, baseId: y, fullWidth: x, panelValues: S } = S_(), C = g === s, w = i ?? a, T = c ?? l, E = H`
23458
+ }, I_ = s(({ testId: e = P_, className: t, children: i, label: a, value: s, count: c, counter: l, disabled: u = !1, asChild: d = !1, onClick: f, ref: p, ...m }) => {
23459
+ let [h] = $(), { value: g, setValue: _, baseId: y, fullWidth: x, panelValues: S } = N_(), C = g === s, w = i ?? a, T = c ?? l, E = H`
22906
23460
  all: unset;
22907
23461
  box-sizing: border-box;
22908
23462
  height: 40px;
@@ -22963,15 +23517,15 @@ var y_ = i(void 0), b_ = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-
22963
23517
  overflow: hidden;
22964
23518
  visibility: hidden;
22965
23519
  pointer-events: none;
22966
- `, N = V(C_, E, x ? D : O, C && k, u && A, t), P = (e) => {
23520
+ `, N = V(P_, E, x ? D : O, C && k, u && A, t), P = (e) => {
22967
23521
  f?.(e), !(e.defaultPrevented || u) && _(s);
22968
23522
  }, F = {
22969
23523
  ...m,
22970
23524
  ref: p,
22971
23525
  className: N,
22972
23526
  role: "tab",
22973
- id: b_(y, s),
22974
- ...S.has(s) ? { "aria-controls": x_(y, s) } : {},
23527
+ id: j_(y, s),
23528
+ ...S.has(s) ? { "aria-controls": M_(y, s) } : {},
22975
23529
  "aria-selected": C,
22976
23530
  "aria-disabled": u || void 0,
22977
23531
  tabIndex: C ? 0 : -1,
@@ -22988,7 +23542,7 @@ var y_ = i(void 0), b_ = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-
22988
23542
  tabIndex: u ? -1 : m.tabIndex ?? F.tabIndex,
22989
23543
  onClick: u ? (e) => {
22990
23544
  e.preventDefault(), e.stopPropagation();
22991
- } : w_(P, e.props.onClick),
23545
+ } : F_(P, e.props.onClick),
22992
23546
  children: /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ b(Mc, {
22993
23547
  level: C ? "md-semibold" : "md",
22994
23548
  className: j,
@@ -23018,8 +23572,8 @@ var y_ = i(void 0), b_ = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-
23018
23572
  children: [w, T === void 0 ? "" : ` ${T}`]
23019
23573
  })]
23020
23574
  });
23021
- }), E_ = "ucl-uikit-tabs__list", D_ = (e) => Array.from(e.querySelectorAll("[role=\"tab\"]:not([aria-disabled=\"true\"])")), O_ = s(({ fullWidth: e, testId: t = E_, className: n, children: r, onKeyDown: i, ref: a, ...o }) => {
23022
- let [s] = $(), { orientation: c, activationMode: l, fullWidth: u, setValue: d } = S_(), f = e ?? u, p = (e) => {
23575
+ }), L_ = "ucl-uikit-tabs__list", R_ = (e) => Array.from(e.querySelectorAll("[role=\"tab\"]:not([aria-disabled=\"true\"])")), z_ = s(({ fullWidth: e, testId: t = L_, className: n, children: r, onKeyDown: i, ref: a, ...o }) => {
23576
+ let [s] = $(), { orientation: c, activationMode: l, fullWidth: u, setValue: d } = N_(), f = e ?? u, p = (e) => {
23023
23577
  if (i?.(e), e.defaultPrevented) return;
23024
23578
  let t = c === "vertical" ? {
23025
23579
  next: "ArrowDown",
@@ -23034,7 +23588,7 @@ var y_ = i(void 0), b_ = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-
23034
23588
  "Home",
23035
23589
  "End"
23036
23590
  ].includes(e.key)) return;
23037
- let n = D_(e.currentTarget), r = n.indexOf(document.activeElement);
23591
+ let n = R_(e.currentTarget), r = n.indexOf(document.activeElement);
23038
23592
  if (r === -1) return;
23039
23593
  e.preventDefault();
23040
23594
  let a = n[{
@@ -23061,7 +23615,7 @@ var y_ = i(void 0), b_ = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-
23061
23615
  border-right: ${s.border.b1} solid ${s.colour.border.subtle};
23062
23616
  `, g = H`
23063
23617
  width: 100%;
23064
- `, _ = V(E_, m, c === "vertical" && h, f && g, n);
23618
+ `, _ = V(L_, m, c === "vertical" && h, f && g, n);
23065
23619
  return /* @__PURE__ */ y("div", {
23066
23620
  ref: a,
23067
23621
  className: _,
@@ -23072,10 +23626,10 @@ var y_ = i(void 0), b_ = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-
23072
23626
  ...o,
23073
23627
  children: r
23074
23628
  });
23075
- }), k_ = "ucl-uikit-tabs__panel", A_ = s(({ value: e, forceMount: t = !1, testId: n = k_, className: r, children: i, ref: a, ...o }) => {
23076
- let [s] = $(), { value: c, baseId: l } = S_(), u = c === e;
23629
+ }), B_ = "ucl-uikit-tabs__panel", V_ = s(({ value: e, forceMount: t = !1, testId: n = B_, className: r, children: i, ref: a, ...o }) => {
23630
+ let [s] = $(), { value: c, baseId: l } = N_(), u = c === e;
23077
23631
  if (!t && !u) return null;
23078
- let d = V(k_, H`
23632
+ let d = V(B_, H`
23079
23633
  color: ${s.colour.text.default};
23080
23634
  outline: none;
23081
23635
  `, r);
@@ -23084,23 +23638,23 @@ var y_ = i(void 0), b_ = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-
23084
23638
  className: d,
23085
23639
  "data-testid": n,
23086
23640
  role: "tabpanel",
23087
- id: x_(l, e),
23088
- "aria-labelledby": b_(l, e),
23641
+ id: M_(l, e),
23642
+ "aria-labelledby": j_(l, e),
23089
23643
  hidden: !u,
23090
23644
  ...o,
23091
23645
  children: i
23092
23646
  });
23093
- }), j_ = "ucl-uikit-tabs", M_ = (e) => n.toArray(e).some((e) => o(e) && e.type === O_), N_ = (e) => {
23647
+ }), H_ = "ucl-uikit-tabs", U_ = (e) => n.toArray(e).some((e) => o(e) && e.type === z_), W_ = (e) => {
23094
23648
  let t = /* @__PURE__ */ new Set();
23095
23649
  return n.toArray(e).forEach((e) => {
23096
- o(e) && (e.type === A_ && e.props.value ? t.add(e.props.value) : e.props.children && N_(e.props.children).forEach((e) => {
23650
+ o(e) && (e.type === V_ && e.props.value ? t.add(e.props.value) : e.props.children && W_(e.props.children).forEach((e) => {
23097
23651
  t.add(e);
23098
23652
  }));
23099
23653
  }), t;
23100
- }, P_ = Object.assign(s(({ value: e, defaultValue: t, onValueChange: n, activationMode: r = "automatic", orientation: i = "horizontal", activeTab: a, onChange: o, fullWidth: s, color: c, testId: l = j_, className: u, children: d, ref: p, ...m }) => {
23101
- let [h] = $(), g = f(), [v, b] = _(t ?? a), x = M_(d), S = N_(d), C = e !== void 0 || a !== void 0, w = e ?? a ?? v, T = s ?? !x, E = (e) => {
23654
+ }, G_ = Object.assign(s(({ value: e, defaultValue: t, onValueChange: n, activationMode: r = "automatic", orientation: i = "horizontal", activeTab: a, onChange: o, fullWidth: s, color: c, testId: l = H_, className: u, children: d, ref: p, ...m }) => {
23655
+ let [h] = $(), g = f(), [v, b] = _(t ?? a), x = U_(d), S = W_(d), C = e !== void 0 || a !== void 0, w = e ?? a ?? v, T = s ?? !x, E = (e) => {
23102
23656
  C || b(e), n?.(e), o?.(e);
23103
- }, D = V(j_, Ac(m, h), u), O = {
23657
+ }, D = V(H_, Ac(m, h), u), O = {
23104
23658
  value: w,
23105
23659
  setValue: E,
23106
23660
  baseId: `ucl-uikit-tabs-${g}`,
@@ -23109,7 +23663,7 @@ var y_ = i(void 0), b_ = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-
23109
23663
  fullWidth: T,
23110
23664
  panelValues: S
23111
23665
  };
23112
- return /* @__PURE__ */ y(y_.Provider, {
23666
+ return /* @__PURE__ */ y(A_.Provider, {
23113
23667
  value: O,
23114
23668
  children: x ? /* @__PURE__ */ y("div", {
23115
23669
  ref: p,
@@ -23117,7 +23671,7 @@ var y_ = i(void 0), b_ = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-
23117
23671
  "data-testid": l,
23118
23672
  ...m,
23119
23673
  children: d
23120
- }) : /* @__PURE__ */ y(O_, {
23674
+ }) : /* @__PURE__ */ y(z_, {
23121
23675
  ref: p,
23122
23676
  className: D,
23123
23677
  "data-testid": l,
@@ -23127,12 +23681,12 @@ var y_ = i(void 0), b_ = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-
23127
23681
  })
23128
23682
  });
23129
23683
  }), {
23130
- List: O_,
23131
- Tab: T_,
23132
- Panel: A_,
23133
- Trigger: T_
23134
- }), F_ = "ucl-uikit-accordion__heading", I_ = "ucl-uikit-accordion__heading__icon", L_ = ({ children: e, as: t, testId: n = F_, className: r }) => {
23135
- let [i] = $(), { isOpen: a, toggleAccordion: o, disabled: s, size: c } = H_(), l = c === "large", u = l ? "md" : "xs", d = t ?? (l ? "h4" : "h6"), f = (e) => {
23684
+ List: z_,
23685
+ Tab: I_,
23686
+ Panel: V_,
23687
+ Trigger: I_
23688
+ }), K_ = "ucl-uikit-accordion__heading", q_ = "ucl-uikit-accordion__heading__icon", J_ = ({ children: e, as: t, testId: n = K_, className: r }) => {
23689
+ let [i] = $(), { isOpen: a, toggleAccordion: o, disabled: s, size: c } = $_(), l = c === "large", u = l ? "md" : "xs", d = t ?? (l ? "h4" : "h6"), f = (e) => {
23136
23690
  s || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), o());
23137
23691
  }, p = H`
23138
23692
  display: flex;
@@ -23153,7 +23707,7 @@ var y_ = i(void 0), b_ = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-
23153
23707
  &:hover {
23154
23708
  background-color: ${i.colour.surface.brandHover};
23155
23709
 
23156
- [class*='${I_}'] {
23710
+ [class*='${q_}'] {
23157
23711
  color: ${i.colour.icon.default};
23158
23712
  }
23159
23713
  }
@@ -23163,20 +23717,20 @@ var y_ = i(void 0), b_ = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-
23163
23717
  box-shadow: ${i.boxShadow.focus};
23164
23718
  z-index: 1;
23165
23719
 
23166
- [class*='${I_}'] {
23720
+ [class*='${q_}'] {
23167
23721
  color: ${i.colour.icon.brand};
23168
23722
  }
23169
23723
  }
23170
23724
  `, m = H`
23171
23725
  cursor: not-allowed;
23172
23726
  color: ${i.colour.text.disabled};
23173
- `, h = V(F_, p, s && m, r), g = H`
23727
+ `, h = V(K_, p, s && m, r), g = H`
23174
23728
  transform: rotate(${a ? "180deg" : "0deg"});
23175
23729
  transition: transform 0.15s ease;
23176
23730
  color: ${i.colour.icon.default};
23177
23731
  `, _ = H`
23178
23732
  color: ${i.colour.icon.disabled};
23179
- `, v = V(I_, g, s && _);
23733
+ `, v = V(q_, g, s && _);
23180
23734
  return /* @__PURE__ */ b(Yd, {
23181
23735
  level: u,
23182
23736
  as: d,
@@ -23193,10 +23747,10 @@ var y_ = i(void 0), b_ = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-
23193
23747
  className: v
23194
23748
  })]
23195
23749
  });
23196
- }, R_ = "ucl-uikit-accordion__panel", z_ = ({ children: e, className: t, testId: n = R_ }) => {
23197
- let [r] = $(), { isOpen: i } = H_();
23750
+ }, Y_ = "ucl-uikit-accordion__panel", X_ = ({ children: e, className: t, testId: n = Y_ }) => {
23751
+ let [r] = $(), { isOpen: i } = $_();
23198
23752
  if (!i) return null;
23199
- let a = V(R_, H`
23753
+ let a = V(Y_, H`
23200
23754
  position: relative;
23201
23755
  width: 100%;
23202
23756
  max-width: 100%;
@@ -23216,11 +23770,11 @@ var y_ = i(void 0), b_ = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-
23216
23770
  testId: n,
23217
23771
  children: e
23218
23772
  });
23219
- }, B_ = "ucl-uikit-accordion", V_ = i(void 0), H_ = () => {
23220
- let e = u(V_);
23773
+ }, Z_ = "ucl-uikit-accordion", Q_ = i(void 0), $_ = () => {
23774
+ let e = u(Q_);
23221
23775
  if (!e) throw Error("useAccordionContext must be used within an AccordionProvider");
23222
23776
  return e;
23223
- }, U_ = ({ size: e = "default", disabled: t = !1, isOpen: n = !1, variant: r = "no-background", children: i, className: a, testId: o = B_ }) => {
23777
+ }, ev = ({ size: e = "default", disabled: t = !1, isOpen: n = !1, variant: r = "no-background", children: i, className: a, testId: o = Z_ }) => {
23224
23778
  let [s, c] = _(n), [l] = $(), u = e === "small" ? "default" : e === "medium" ? "large" : e, d = () => {
23225
23779
  t || c((e) => !e);
23226
23780
  }, f = H`
@@ -23237,8 +23791,8 @@ var y_ = i(void 0), b_ = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-
23237
23791
  color: ${l.colour.text.disabled};
23238
23792
  `, m = H`
23239
23793
  border: 1px solid ${l.colour.border.default};
23240
- `, h = V(B_, f, t && p, r === "on-background" && m, a);
23241
- return /* @__PURE__ */ y(V_.Provider, {
23794
+ `, h = V(Z_, f, t && p, r === "on-background" && m, a);
23795
+ return /* @__PURE__ */ y(Q_.Provider, {
23242
23796
  value: {
23243
23797
  isOpen: s,
23244
23798
  toggleAccordion: d,
@@ -23253,32 +23807,32 @@ var y_ = i(void 0), b_ = (e, t) => `${e}-tab-${t}`.replace(/[^a-zA-Z0-9_-]/g, "-
23253
23807
  })
23254
23808
  });
23255
23809
  };
23256
- U_.Heading = L_, U_.Panel = z_;
23810
+ ev.Heading = J_, ev.Panel = X_;
23257
23811
  // lib/utils/announce.ts
23258
- var W_ = null, G_ = [], K_ = !1, q_ = "", J_ = 100, Y_ = 1e3, X_ = (e) => {
23812
+ var tv = null, nv = [], rv = !1, iv = "", av = 100, ov = 1e3, sv = (e) => {
23259
23813
  if (typeof document > "u") return;
23260
- W_ && !document.contains(W_) && (W_ = null);
23814
+ tv && !document.contains(tv) && (tv = null);
23261
23815
  let t = e || document.body || document.documentElement;
23262
23816
  if (!t) return;
23263
- if (W_ && e && W_.parentNode !== e) {
23264
- e.appendChild(W_);
23817
+ if (tv && e && tv.parentNode !== e) {
23818
+ e.appendChild(tv);
23265
23819
  return;
23266
23820
  }
23267
- if (W_) return;
23821
+ if (tv) return;
23268
23822
  let n = document.createElement("div");
23269
- n.setAttribute("aria-live", "polite"), n.setAttribute("aria-atomic", "true"), n.setAttribute("role", "status"), n.setAttribute("data-testid", "aria-live-region"), n.style.position = "absolute", n.style.left = "-9999px", n.style.width = "1px", n.style.height = "1px", n.style.overflow = "hidden", t.appendChild(n), W_ = n;
23270
- }, Z_ = () => {
23271
- if (K_ || G_.length === 0 || !W_) return;
23272
- let e = G_.shift();
23273
- q_ = e, K_ = !0, W_.textContent = "", setTimeout(() => {
23274
- W_ && (W_.textContent = e), setTimeout(() => {
23275
- K_ = !1, Z_();
23276
- }, Y_);
23277
- }, J_);
23278
- }, Q_ = (e, t = !1, n) => {
23279
- typeof document < "u" && (X_(n), t && (G_.length = 0), !t && e === q_ && G_.length === 0 || G_.includes(e) || K_ && q_ === e || (G_.push(e), Z_()));
23280
- }, $_ = s(({ name: e, testId: t, className: n, ...r }) => {
23281
- let [i] = $(), a = u(Ev), [o, s] = _(String(a?.currentPage ?? 1)), [c, l] = _(""), p = f();
23823
+ n.setAttribute("aria-live", "polite"), n.setAttribute("aria-atomic", "true"), n.setAttribute("role", "status"), n.setAttribute("data-testid", "aria-live-region"), n.style.position = "absolute", n.style.left = "-9999px", n.style.width = "1px", n.style.height = "1px", n.style.overflow = "hidden", t.appendChild(n), tv = n;
23824
+ }, cv = () => {
23825
+ if (rv || nv.length === 0 || !tv) return;
23826
+ let e = nv.shift();
23827
+ iv = e, rv = !0, tv.textContent = "", setTimeout(() => {
23828
+ tv && (tv.textContent = e), setTimeout(() => {
23829
+ rv = !1, cv();
23830
+ }, ov);
23831
+ }, av);
23832
+ }, lv = (e, t = !1, n) => {
23833
+ typeof document < "u" && (sv(n), t && (nv.length = 0), !t && e === iv && nv.length === 0 || nv.includes(e) || rv && iv === e || (nv.push(e), cv()));
23834
+ }, uv = s(({ name: e, testId: t, className: n, ...r }) => {
23835
+ let [i] = $(), a = u(Lv), [o, s] = _(String(a?.currentPage ?? 1)), [c, l] = _(""), p = f();
23282
23836
  if (d(() => {
23283
23837
  s(String(a?.currentPage ?? 1)), l("");
23284
23838
  }, [a?.currentPage]), !a) return null;
@@ -23305,7 +23859,7 @@ var W_ = null, G_ = [], K_ = !1, q_ = "", J_ = 100, Y_ = 1e3, X_ = (e) => {
23305
23859
  let t = /^\d+$/.test(o), n = Number(o);
23306
23860
  if (!t || !Number.isInteger(n) || n < 1 || n > O) {
23307
23861
  let e = `Enter a page number from 1 to ${O}.`;
23308
- l(e), Q_(e, !0);
23862
+ l(e), lv(e, !0);
23309
23863
  } else l(""), A(n), e.currentTarget.blur();
23310
23864
  }, I = H`
23311
23865
  margin: 0;
@@ -23405,16 +23959,16 @@ var W_ = null, G_ = [], K_ = !1, q_ = "", J_ = 100, Y_ = 1e3, X_ = (e) => {
23405
23959
  ]
23406
23960
  })
23407
23961
  });
23408
- }), ev = (e, t, n) => {
23962
+ }), dv = (e, t, n) => {
23409
23963
  if (t <= n) return Array.from({ length: t }, (e, t) => t + 1);
23410
23964
  let r = [], i = n - 2, a = Math.max(2, e - Math.floor(i / 2)), o = Math.min(t - 1, a + i - 1), s = Math.max(2, o - i + 1);
23411
23965
  r.push(1), s > 2 && r.push("...1");
23412
23966
  for (let e = s; e <= o; e++) r.push(e);
23413
23967
  return o < t - 1 && r.push("...2"), r.push(t), r;
23414
- }, tv = "a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex=\"-1\"]), [contenteditable=\"true\"], audio[controls], video[controls], details > summary:first-of-type", nv = ({ isActive: e, containerRef: t, initialFocusRef: n, finalFocusRef: r, restoreFocus: i = !0, skipFirstFocusable: a = !1 }) => {
23968
+ }, fv = "a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex=\"-1\"]), [contenteditable=\"true\"], audio[controls], video[controls], details > summary:first-of-type", pv = ({ isActive: e, containerRef: t, initialFocusRef: n, finalFocusRef: r, restoreFocus: i = !0, skipFirstFocusable: a = !1 }) => {
23415
23969
  let o = g(null), s = l(() => {
23416
23970
  if (!t.current) return [];
23417
- let e = t.current.querySelectorAll(tv);
23971
+ let e = t.current.querySelectorAll(fv);
23418
23972
  return Array.from(e);
23419
23973
  }, [t]), c = l((n) => {
23420
23974
  if (!e || n.key !== "Tab") return;
@@ -23460,47 +24014,47 @@ var W_ = null, G_ = [], K_ = !1, q_ = "", J_ = 100, Y_ = 1e3, X_ = (e) => {
23460
24014
  r,
23461
24015
  i
23462
24016
  ]);
23463
- }, rv = "application/x-ucl-uikit-dnd", iv = (e) => e ? (typeof e == "string" ? e.split(",") : Array.from(e)).map((e) => e.trim()).filter(Boolean) : [], av = (e) => Array.from(e.types ?? []), ov = (e, t) => t.length === 0 ? e[0] ?? null : t.find((t) => e.includes(t)) ?? null, sv = (e) => {
24017
+ }, mv = "application/x-ucl-uikit-dnd", hv = (e) => e ? (typeof e == "string" ? e.split(",") : Array.from(e)).map((e) => e.trim()).filter(Boolean) : [], gv = (e) => Array.from(e.types ?? []), _v = (e, t) => t.length === 0 ? e[0] ?? null : t.find((t) => e.includes(t)) ?? null, vv = (e) => {
23464
24018
  if (!e) return e;
23465
24019
  try {
23466
24020
  return JSON.parse(e);
23467
24021
  } catch {
23468
24022
  return e;
23469
24023
  }
23470
- }, cv = (e, t, n) => {
23471
- let r = ov(av(e), t);
24024
+ }, yv = (e, t, n) => {
24025
+ let r = _v(gv(e), t);
23472
24026
  if (!r) return null;
23473
24027
  let i = r === "Files" ? "" : e.getData(r);
23474
24028
  return {
23475
- data: n ? n(i, r) : sv(i),
24029
+ data: n ? n(i, r) : vv(i),
23476
24030
  dataTransfer: e,
23477
24031
  files: Array.from(e.files ?? []),
23478
24032
  rawData: i,
23479
24033
  type: r
23480
24034
  };
23481
- }, lv = null, uv = /* @__PURE__ */ new Set(), dv = () => lv, fv = (e) => {
23482
- lv = e, uv.forEach((e) => e());
23483
- }, pv = () => {
23484
- lv = null, uv.forEach((e) => e());
23485
- }, mv = (e) => (uv.add(e), () => {
23486
- uv.delete(e);
23487
- }), hv = (e, t) => {
24035
+ }, bv = null, xv = /* @__PURE__ */ new Set(), Sv = () => bv, Cv = (e) => {
24036
+ bv = e, xv.forEach((e) => e());
24037
+ }, wv = () => {
24038
+ bv = null, xv.forEach((e) => e());
24039
+ }, Tv = (e) => (xv.add(e), () => {
24040
+ xv.delete(e);
24041
+ }), Ev = (e, t) => {
23488
24042
  e && (typeof e == "function" ? e(t) : e.current = t);
23489
- }, gv = ({ acceptedTypes: e, canDrop: t, disabled: n = !1, dropEffect: r = "move", keyboardDrop: i = !0, onDrop: a, onReject: o, parseData: s } = {}) => {
23490
- let c = g(null), u = g([]), [f, p] = _([]), [m, v] = _(!1), [y, b] = _(!1), [x, S] = _(!1), [C, w] = _(null), [T, E] = _(null), D = h(() => iv(e), [e]), O = l(() => {
24043
+ }, Dv = ({ acceptedTypes: e, canDrop: t, disabled: n = !1, dropEffect: r = "move", keyboardDrop: i = !0, onDrop: a, onReject: o, parseData: s } = {}) => {
24044
+ let c = g(null), u = g([]), [f, p] = _([]), [m, v] = _(!1), [y, b] = _(!1), [x, S] = _(!1), [C, w] = _(null), [T, E] = _(null), D = h(() => hv(e), [e]), O = l(() => {
23491
24045
  u.current = [], p([]), v(!1), b(!1), S(!1);
23492
24046
  }, []);
23493
24047
  d(() => {
23494
24048
  let e = () => {
23495
- let e = dv();
24049
+ let e = Sv();
23496
24050
  if (!e || n || !i) {
23497
24051
  O();
23498
24052
  return;
23499
24053
  }
23500
- let t = [e.type], r = ov(t, D) !== null;
24054
+ let t = [e.type], r = _v(t, D) !== null;
23501
24055
  p(t), v(!0), b(r), S(!r);
23502
24056
  };
23503
- return e(), mv(e);
24057
+ return e(), Tv(e);
23504
24058
  }, [
23505
24059
  n,
23506
24060
  i,
@@ -23530,23 +24084,23 @@ var W_ = null, G_ = [], K_ = !1, q_ = "", J_ = 100, Y_ = 1e3, X_ = (e) => {
23530
24084
  activeTypes: f,
23531
24085
  getRootProps: l(({ onDragEnter: e, onDragLeave: t, onDragOver: a, onDrop: o, onKeyDown: l, ref: d, tabIndex: f, ...h } = {}) => {
23532
24086
  let g = (e) => {
23533
- c.current = e, hv(d, e);
24087
+ c.current = e, Ev(d, e);
23534
24088
  }, _ = (t) => {
23535
24089
  if (e?.(t), n || t.defaultPrevented) return;
23536
24090
  t.preventDefault();
23537
- let r = av(t.dataTransfer), i = ov(r, D) !== null;
24091
+ let r = gv(t.dataTransfer), i = _v(r, D) !== null;
23538
24092
  u.current = [...u.current, t.target], p(r), v(!0), b(i), S(!i);
23539
24093
  }, C = (e) => {
23540
24094
  a?.(e), !(n || e.defaultPrevented) && (e.preventDefault(), e.dataTransfer.dropEffect = r);
23541
24095
  }, w = (e) => {
23542
24096
  t?.(e), !(n || e.defaultPrevented) && (e.preventDefault(), u.current = u.current.filter((t) => t !== e.target), u.current.length === 0 && O());
23543
24097
  }, T = (e) => {
23544
- o?.(e), !(n || e.defaultPrevented) && (e.preventDefault(), O(), k(cv(e.dataTransfer, D, s), e));
24098
+ o?.(e), !(n || e.defaultPrevented) && (e.preventDefault(), O(), k(yv(e.dataTransfer, D, s), e));
23545
24099
  }, E = (e) => {
23546
- let t = dv();
23547
- if (l?.(e), n || !i || e.defaultPrevented || e.key !== "Enter" && e.key !== " " || e.target !== e.currentTarget || !t || dv()?.id !== t.id) return;
24100
+ let t = Sv();
24101
+ if (l?.(e), n || !i || e.defaultPrevented || e.key !== "Enter" && e.key !== " " || e.target !== e.currentTarget || !t || Sv()?.id !== t.id) return;
23548
24102
  e.preventDefault();
23549
- let r = ov([t.type], D);
24103
+ let r = _v([t.type], D);
23550
24104
  if (!r) {
23551
24105
  k(null, e);
23552
24106
  return;
@@ -23558,7 +24112,7 @@ var W_ = null, G_ = [], K_ = !1, q_ = "", J_ = 100, Y_ = 1e3, X_ = (e) => {
23558
24112
  files: [],
23559
24113
  rawData: a,
23560
24114
  type: r
23561
- }, e), pv(), O();
24115
+ }, e), wv(), O();
23562
24116
  };
23563
24117
  return {
23564
24118
  ...h,
@@ -23592,16 +24146,16 @@ var W_ = null, G_ = [], K_ = !1, q_ = "", J_ = 100, Y_ = 1e3, X_ = (e) => {
23592
24146
  lastDrop: C,
23593
24147
  lastRejection: T
23594
24148
  };
23595
- }, _v = (e) => {
24149
+ }, Ov = (e) => {
23596
24150
  let t = JSON.stringify(e);
23597
24151
  if (t === void 0) throw TypeError("Drag data must be JSON-serializable");
23598
24152
  return t;
23599
- }, vv = (e, t) => {
24153
+ }, kv = (e, t) => {
23600
24154
  e && (typeof e == "function" ? e(t) : e.current = t);
23601
- }, yv = ({ data: e, disabled: t = !1, dragImage: n, dragImageOffset: r = {
24155
+ }, Av = ({ data: e, disabled: t = !1, dragImage: n, dragImageOffset: r = {
23602
24156
  x: 0,
23603
24157
  y: 0
23604
- }, effectAllowed: i = "move", keyboardDrag: a = !0, onDragEnd: o, onKeyboardDragCancel: s, onDragStart: c, onKeyboardDragStart: u, serializeData: p = _v, type: m }) => {
24158
+ }, effectAllowed: i = "move", keyboardDrag: a = !0, onDragEnd: o, onKeyboardDragCancel: s, onDragStart: c, onKeyboardDragStart: u, serializeData: p = Ov, type: m }) => {
23605
24159
  let h = f(), v = g(null), [y, b] = _(!1), x = l(() => ({
23606
24160
  data: e,
23607
24161
  rawData: p(e),
@@ -23612,22 +24166,22 @@ var W_ = null, G_ = [], K_ = !1, q_ = "", J_ = 100, Y_ = 1e3, X_ = (e) => {
23612
24166
  m
23613
24167
  ]);
23614
24168
  return d(() => {
23615
- let e = mv(() => {
23616
- dv()?.id !== h && b(!1);
24169
+ let e = Tv(() => {
24170
+ Sv()?.id !== h && b(!1);
23617
24171
  });
23618
24172
  return () => {
23619
- e(), dv()?.id === h && pv();
24173
+ e(), Sv()?.id === h && wv();
23620
24174
  };
23621
24175
  }, [h]), d(() => {
23622
- t && dv()?.id === h && pv();
24176
+ t && Sv()?.id === h && wv();
23623
24177
  }, [t, h]), {
23624
24178
  getDragProps: l(({ onDragEnd: e, onDragStart: l, onKeyDown: d, ref: f, tabIndex: p, ...g } = {}) => {
23625
24179
  let _ = (e) => {
23626
- v.current = e, vv(f, e);
24180
+ v.current = e, kv(f, e);
23627
24181
  }, S = (e) => {
23628
24182
  if (l?.(e), t || e.defaultPrevented) return;
23629
24183
  let a = x();
23630
- e.dataTransfer.effectAllowed = i, e.dataTransfer.setData(m, a.rawData ?? ""), e.dataTransfer.setData(rv, JSON.stringify({
24184
+ e.dataTransfer.effectAllowed = i, e.dataTransfer.setData(m, a.rawData ?? ""), e.dataTransfer.setData(mv, JSON.stringify({
23631
24185
  data: a.rawData,
23632
24186
  type: m
23633
24187
  })), n && e.dataTransfer.setDragImage(n, r.x, r.y), b(!0), c?.(a, e);
@@ -23638,13 +24192,13 @@ var W_ = null, G_ = [], K_ = !1, q_ = "", J_ = 100, Y_ = 1e3, X_ = (e) => {
23638
24192
  if (e.key === "Escape" && y) {
23639
24193
  e.preventDefault();
23640
24194
  let t = x();
23641
- pv(), b(!1), s?.(t);
24195
+ wv(), b(!1), s?.(t);
23642
24196
  return;
23643
24197
  }
23644
- if (e.key !== "Enter" && e.key !== " " || dv()) return;
24198
+ if (e.key !== "Enter" && e.key !== " " || Sv()) return;
23645
24199
  e.preventDefault();
23646
24200
  let n = x();
23647
- fv({
24201
+ Cv({
23648
24202
  ...n,
23649
24203
  id: h,
23650
24204
  rawData: n.rawData ?? ""
@@ -23677,15 +24231,15 @@ var W_ = null, G_ = [], K_ = !1, q_ = "", J_ = 100, Y_ = 1e3, X_ = (e) => {
23677
24231
  ]),
23678
24232
  isDragging: y
23679
24233
  };
23680
- }, bv = s(({ maxNumberButtons: e, name: t, testId: n, className: r, ...i }) => {
23681
- let [a] = $(), o = nf(`(min-width: ${a.breakpoints.tablet}px)`), s = u(Ev);
24234
+ }, jv = s(({ maxNumberButtons: e, name: t, testId: n, className: r, ...i }) => {
24235
+ let [a] = $(), o = nf(`(min-width: ${a.breakpoints.tablet}px)`), s = u(Lv);
23682
24236
  if (!s) return null;
23683
24237
  let { mode: c, limit: l, total: d, currentPage: f, trackedMaxPage: p, hasPreviousPage: m, hasNextPage: h, onPageChange: g, onNextPage: _, onPreviousPage: x } = s, S = (e) => {
23684
24238
  if (c === "tracked") {
23685
24239
  if (e < 1 || e > p || e === f) return;
23686
24240
  g?.(e);
23687
24241
  } else g?.((e - 1) * l);
23688
- }, C = typeof d == "number" ? Math.ceil(d / l) : void 0, w = c === "tracked" ? Array.from({ length: p }, (e, t) => t + 1) : ev(f, C ?? 0, o ? e : 5), T = V(t, r), E = H`
24242
+ }, C = typeof d == "number" ? Math.ceil(d / l) : void 0, w = c === "tracked" ? Array.from({ length: p }, (e, t) => t + 1) : dv(f, C ?? 0, o ? e : 5), T = V(t, r), E = H`
23689
24243
  margin: 0;
23690
24244
  padding: 0;
23691
24245
  display: flex;
@@ -23792,24 +24346,24 @@ var W_ = null, G_ = [], K_ = !1, q_ = "", J_ = 100, Y_ = 1e3, X_ = (e) => {
23792
24346
  ]
23793
24347
  })
23794
24348
  });
23795
- }), xv = "ucl-ukit-pagination__controls", Sv = s(({ variant: e = "default", maxNumberButtons: t = 9, testId: n = xv, className: r, ...i }) => {
24349
+ }), Mv = "ucl-ukit-pagination__controls", Nv = s(({ variant: e = "default", maxNumberButtons: t = 9, testId: n = Mv, className: r, ...i }) => {
23796
24350
  let a = {
23797
24351
  ...i,
23798
24352
  className: r,
23799
- name: xv,
24353
+ name: Mv,
23800
24354
  testId: n
23801
24355
  };
23802
- return e === "compact" ? /* @__PURE__ */ y($_, { ...a }) : /* @__PURE__ */ y(bv, {
24356
+ return e === "compact" ? /* @__PURE__ */ y(uv, { ...a }) : /* @__PURE__ */ y(jv, {
23803
24357
  ...a,
23804
24358
  maxNumberButtons: t
23805
24359
  });
23806
- }), Cv = "ucl-uikit-pagination__info", wv = s(({ format: e = "pages", itemsPluralName: t, testId: n = Cv, className: r, ...i }) => {
23807
- let [a] = $(), o = u(Ev);
24360
+ }), Pv = "ucl-uikit-pagination__info", Fv = s(({ format: e = "pages", itemsPluralName: t, testId: n = Pv, className: r, ...i }) => {
24361
+ let [a] = $(), o = u(Lv);
23808
24362
  if (!o) return null;
23809
24363
  let { offset: s, limit: c, total: l, currentPage: d } = o, f = typeof l == "number" ? Math.ceil(l / c) : void 0, p = s + 1, m = typeof l == "number" ? Math.min(s + c, l) : s + c, h = {
23810
24364
  pages: typeof f == "number" ? `Page ${d} of ${f}` : `Page ${d}`,
23811
24365
  items: typeof l == "number" ? `${p}-${m} of ${l}${t ? ` ${t}` : ""}` : `${p}-${m}${t ? ` ${t}` : ""}`
23812
- }[e], g = V(Cv, H`
24366
+ }[e], g = V(Pv, H`
23813
24367
  margin: ${a.margin.m16} 0;
23814
24368
  text-align: center;
23815
24369
  color: ${a.colour.text.secondary};
@@ -23829,7 +24383,7 @@ var W_ = null, G_ = [], K_ = !1, q_ = "", J_ = 100, Y_ = 1e3, X_ = (e) => {
23829
24383
  ...i,
23830
24384
  children: h
23831
24385
  });
23832
- }), Tv = "ucl-uikit-pagination", Ev = i(void 0), Dv = ({ offset: e, limit: t, total: n, onPageChange: r, mode: i = "offset", currentPage: a, trackedMaxPage: o, hasNextPage: s, hasPreviousPage: c, onNextPage: l, onPreviousPage: u, testId: d, className: f, children: p, ...m }) => {
24386
+ }), Iv = "ucl-uikit-pagination", Lv = i(void 0), Rv = ({ offset: e, limit: t, total: n, onPageChange: r, mode: i = "offset", currentPage: a, trackedMaxPage: o, hasNextPage: s, hasPreviousPage: c, onNextPage: l, onPreviousPage: u, testId: d, className: f, children: p, ...m }) => {
23833
24387
  let [h] = $(), g = i === "tracked", _ = g ? Math.max(1, a ?? 1) : Math.floor((e ?? 0) / t) + 1, v = g ? (_ - 1) * t : e ?? 0, b = {
23834
24388
  mode: i,
23835
24389
  offset: v,
@@ -23842,11 +24396,11 @@ var W_ = null, G_ = [], K_ = !1, q_ = "", J_ = 100, Y_ = 1e3, X_ = (e) => {
23842
24396
  onPageChange: r,
23843
24397
  onNextPage: l,
23844
24398
  onPreviousPage: u
23845
- }, x = V(Tv, H`
24399
+ }, x = V(Iv, H`
23846
24400
  margin-left: auto;
23847
24401
  margin-right: auto;
23848
24402
  `, Ac(m, h), f);
23849
- return /* @__PURE__ */ y(Ev.Provider, {
24403
+ return /* @__PURE__ */ y(Lv.Provider, {
23850
24404
  value: b,
23851
24405
  children: /* @__PURE__ */ y("div", {
23852
24406
  "data-testid": d,
@@ -23856,17 +24410,17 @@ var W_ = null, G_ = [], K_ = !1, q_ = "", J_ = 100, Y_ = 1e3, X_ = (e) => {
23856
24410
  })
23857
24411
  });
23858
24412
  };
23859
- Dv.Controls = Sv, Dv.Info = wv;
24413
+ Rv.Controls = Nv, Rv.Info = Fv;
23860
24414
  // lib/components/Dialog/DialogHeader.tsx
23861
- var Ov = "ucl-uikit-dialog__header", kv = ({ decoration: e, headingProps: t, closeButtonStopPropagation: n = !0, children: r, testId: i = Ov, className: a }) => {
23862
- let { onClose: o, dialogHeaderId: s } = u(Fv), [c] = $(), d = H`
24415
+ var zv = "ucl-uikit-dialog__header", Bv = ({ decoration: e, headingProps: t, closeButtonStopPropagation: n = !0, children: r, testId: i = zv, className: a }) => {
24416
+ let { onClose: o, dialogHeaderId: s } = u(Kv), [c] = $(), d = H`
23863
24417
  padding: ${c.padding.p32} ${c.padding.p32} 0 ${c.padding.p32};
23864
24418
  `, f = H`
23865
24419
  height: ${c.height.h32};
23866
24420
  display: flex;
23867
24421
  justify-content: flex-end;
23868
24422
  align-items: start;
23869
- `, p = V(Ov, d, a), m = l((e) => {
24423
+ `, p = V(zv, d, a), m = l((e) => {
23870
24424
  o && (n && e.stopPropagation(), o(e));
23871
24425
  }, [n, o]);
23872
24426
  return /* @__PURE__ */ b("header", {
@@ -23894,8 +24448,8 @@ var Ov = "ucl-uikit-dialog__header", kv = ({ decoration: e, headingProps: t, clo
23894
24448
  })
23895
24449
  ]
23896
24450
  });
23897
- }, Av = "ucl-uikit-dialog__body", jv = s(({ children: e, testId: t = Av, className: n }) => {
23898
- let [r] = $(), { dialogBodyId: i } = u(Fv), a = V(Av, H`
24451
+ }, Vv = "ucl-uikit-dialog__body", Hv = s(({ children: e, testId: t = Vv, className: n }) => {
24452
+ let [r] = $(), { dialogBodyId: i } = u(Kv), a = V(Vv, H`
23899
24453
  margin: ${r.padding.p24} ${r.padding.p32};
23900
24454
  `, n);
23901
24455
  return /* @__PURE__ */ y("div", {
@@ -23905,8 +24459,8 @@ var Ov = "ucl-uikit-dialog__header", kv = ({ decoration: e, headingProps: t, clo
23905
24459
  role: "document",
23906
24460
  children: e
23907
24461
  });
23908
- }), Mv = "ucl-uikit-dialog__footer", Nv = ({ primaryButton: e, secondaryButton: t, primaryButtonProps: n, secondaryButtonProps: r, testId: i, className: a, ...o }) => {
23909
- let s = !(!e || t), c = !(e || !t), l = !!(e && t), { onAction: d, onSecondaryAction: f } = u(Fv), [p] = $(), m = H`
24462
+ }), Uv = "ucl-uikit-dialog__footer", Wv = ({ primaryButton: e, secondaryButton: t, primaryButtonProps: n, secondaryButtonProps: r, testId: i, className: a, ...o }) => {
24463
+ let s = !(!e || t), c = !(e || !t), l = !!(e && t), { onAction: d, onSecondaryAction: f } = u(Kv), [p] = $(), m = H`
23910
24464
  display: flex;
23911
24465
  align-items: center;
23912
24466
  margin: ${p.margin.m24} ${p.margin.m32} ${p.margin.m32};
@@ -23916,7 +24470,7 @@ var Ov = "ucl-uikit-dialog__header", kv = ({ decoration: e, headingProps: t, clo
23916
24470
  justify-content: flex-start;
23917
24471
  `, _ = H`
23918
24472
  justify-content: space-between;
23919
- `, v = V(Mv, m, s && h, c && g, l && _, a);
24473
+ `, v = V(Uv, m, s && h, c && g, l && _, a);
23920
24474
  return /* @__PURE__ */ b("footer", {
23921
24475
  className: v,
23922
24476
  "aria-label": "Dialog actions",
@@ -23934,19 +24488,19 @@ var Ov = "ucl-uikit-dialog__header", kv = ({ decoration: e, headingProps: t, clo
23934
24488
  children: e
23935
24489
  })]
23936
24490
  });
23937
- }, Pv = "ucl-uikit-dialog", Fv = i({}), Iv = a(function({ onClose: e, onAction: t, onSecondaryAction: n, testId: r = Pv, className: i, children: a, ...o }, s) {
24491
+ }, Gv = "ucl-uikit-dialog", Kv = i({}), qv = a(function({ onClose: e, onAction: t, onSecondaryAction: n, testId: r = Gv, className: i, children: a, ...o }, s) {
23938
24492
  let [c] = $(), l = {
23939
24493
  dialogHeaderId: f(),
23940
24494
  dialogBodyId: f(),
23941
24495
  onClose: e,
23942
24496
  onAction: t,
23943
24497
  onSecondaryAction: n
23944
- }, u = V(Pv, H`
24498
+ }, u = V(Gv, H`
23945
24499
  box-shadow: ${c.boxShadow.x2y4};
23946
24500
  `, i);
23947
- return /* @__PURE__ */ y(Fv, {
24501
+ return /* @__PURE__ */ y(Kv, {
23948
24502
  value: l,
23949
- children: /* @__PURE__ */ y(zv, {
24503
+ children: /* @__PURE__ */ y(Xv, {
23950
24504
  ref: s,
23951
24505
  onClose: e,
23952
24506
  testId: r,
@@ -23957,17 +24511,17 @@ var Ov = "ucl-uikit-dialog__header", kv = ({ decoration: e, headingProps: t, clo
23957
24511
  })
23958
24512
  });
23959
24513
  });
23960
- Iv.Header = kv, Iv.Body = jv, Iv.Footer = Nv;
24514
+ qv.Header = Bv, qv.Body = Hv, qv.Footer = Wv;
23961
24515
  // lib/components/Dialog/BaseDialog.tsx
23962
- var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "medium", fullScreenOnMobile: n = !0, modal: r = !0, closeOnClickOutside: i = !0, closeOnClickOutsideStopPropagation: a = !0, nonModalCloseOnEscape: o = !1, onClose: s, className: c, children: f, initialFocusRef: p, finalFocusRef: m, disableFocusTrap: h = !1, restoreFocus: _ = !0, skipCloseOnInitialFocus: v = !1, testId: b = Lv, ...x }, S) {
24516
+ var Jv = "ucl-uikit-base-dialog", Yv = a(function({ open: e = !1, size: t = "medium", fullScreenOnMobile: n = !0, modal: r = !0, closeOnClickOutside: i = !0, closeOnClickOutsideStopPropagation: a = !0, nonModalCloseOnEscape: o = !1, onClose: s, className: c, children: f, initialFocusRef: p, finalFocusRef: m, disableFocusTrap: h = !1, restoreFocus: _ = !0, skipCloseOnInitialFocus: v = !1, testId: b = Jv, ...x }, S) {
23963
24517
  let C = {
23964
24518
  small: 495,
23965
24519
  medium: 495,
23966
24520
  large: 740
23967
24521
  }[t], [w] = $(), { md: T } = w.typography.body, E = g(null), D = g(null), O = l((e) => {
23968
24522
  E.current = e, typeof S == "function" ? S(e) : S && (S.current = e);
23969
- }, [S]), k = u(Fv), A = k?.dialogHeaderId, j = k?.dialogBodyId;
23970
- nv({
24523
+ }, [S]), k = u(Kv), A = k?.dialogHeaderId, j = k?.dialogBodyId;
24524
+ pv({
23971
24525
  isActive: e && r && !h,
23972
24526
  containerRef: E,
23973
24527
  initialFocusRef: p,
@@ -24050,7 +24604,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24050
24604
  max-height: none;
24051
24605
  }
24052
24606
  }
24053
- `, L = V(Lv, F, n && I, c);
24607
+ `, L = V(Jv, F, n && I, c);
24054
24608
  return e ? /* @__PURE__ */ y("dialog", {
24055
24609
  ref: O,
24056
24610
  className: L,
@@ -24063,7 +24617,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24063
24617
  ...x,
24064
24618
  children: f
24065
24619
  }) : null;
24066
- }), zv = s(Rv), Bv = "ucl-uikit-dialog--feedback", Vv = ({ type: e, heading: t, buttonLabel: n, buttonVariant: r = "primary", buttonProps: i, testId: a = Bv, className: o, children: s, ...c }) => {
24620
+ }), Xv = s(Yv), Zv = "ucl-uikit-dialog--feedback", Qv = ({ type: e, heading: t, buttonLabel: n, buttonVariant: r = "primary", buttonProps: i, testId: a = Zv, className: o, children: s, ...c }) => {
24067
24621
  let l = typeof s == "string", [u] = $(), { colour: { icon: d } } = u, f = V(H`
24068
24622
  display: block;
24069
24623
  margin-top: ${u.margin.m32};
@@ -24089,7 +24643,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24089
24643
  size: 72,
24090
24644
  className: f
24091
24645
  })
24092
- }[e], m = V(Bv, H``, o), h = H`
24646
+ }[e], m = V(Zv, H``, o), h = H`
24093
24647
  text-align: center;
24094
24648
  `, g = H`
24095
24649
  text-align: center;
@@ -24099,12 +24653,12 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24099
24653
  margin-bottom: ${u.margin.m48};
24100
24654
  justify-content: center;
24101
24655
  `;
24102
- return /* @__PURE__ */ b(Iv, {
24656
+ return /* @__PURE__ */ b(qv, {
24103
24657
  testId: a,
24104
24658
  className: m,
24105
24659
  ...c,
24106
24660
  children: [
24107
- /* @__PURE__ */ y(Iv.Header, {
24661
+ /* @__PURE__ */ y(qv.Header, {
24108
24662
  decoration: p,
24109
24663
  headingProps: { className: h },
24110
24664
  children: t
@@ -24113,7 +24667,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24113
24667
  className: g,
24114
24668
  children: s
24115
24669
  }),
24116
- /* @__PURE__ */ y(Iv.Footer, {
24670
+ /* @__PURE__ */ y(qv.Footer, {
24117
24671
  className: _,
24118
24672
  primaryButton: n,
24119
24673
  primaryButtonProps: {
@@ -24123,7 +24677,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24123
24677
  })
24124
24678
  ]
24125
24679
  });
24126
- }, Hv = "ucl-uikit-error-dialog", Uv = ({ heading: e, errorCode: t, referenceCode: n, details: r = [], primaryButton: i = "Close", secondaryButton: a, primaryButtonProps: o, secondaryButtonProps: s, closeButtonProps: c, closeButtonAriaLabel: u = "Close error dialog", footerDivider: d = !1, onAction: p, onSecondaryAction: m, onClose: h, size: g = "medium", modal: _ = !0, role: v = "alertdialog", testId: x = Hv, className: S, children: C, ...w }) => {
24680
+ }, $v = "ucl-uikit-error-dialog", ey = ({ heading: e, errorCode: t, referenceCode: n, details: r = [], primaryButton: i = "Close", secondaryButton: a, primaryButtonProps: o, secondaryButtonProps: s, closeButtonProps: c, closeButtonAriaLabel: u = "Close error dialog", footerDivider: d = !1, onAction: p, onSecondaryAction: m, onClose: h, size: g = "medium", modal: _ = !0, role: v = "alertdialog", testId: x = $v, className: S, children: C, ...w }) => {
24127
24681
  let [T] = $(), E = f(), D = f(), O = C != null, k = t != null, A = n != null, j = k || A, M = r.length > 0, N = i != null, P = a != null, F = N || P, I = l((e) => {
24128
24682
  c?.onClick?.(e), e.defaultPrevented || h?.(e);
24129
24683
  }, [c, h]), L = l((e) => {
@@ -24138,7 +24692,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24138
24692
  h,
24139
24693
  m,
24140
24694
  s
24141
- ]), ee = V(Hv, H`
24695
+ ]), ee = V($v, H`
24142
24696
  box-shadow: ${T.boxShadow.x2y4};
24143
24697
  border-top: ${T.padding.p4} solid ${T.colour.border.critical};
24144
24698
  display: flex;
@@ -24154,20 +24708,20 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24154
24708
  @media (min-width: ${T.breakpoints.tablet}px) {
24155
24709
  padding: ${T.padding.p32} ${T.padding.p32} 0;
24156
24710
  }
24157
- `, ne = V(`${Hv}__header`, te), re = H`
24711
+ `, ne = V(`${$v}__header`, te), re = H`
24158
24712
  flex: 1 1 auto;
24159
24713
  min-width: 0;
24160
24714
  display: flex;
24161
24715
  flex-direction: column;
24162
24716
  align-items: flex-start;
24163
24717
  gap: ${T.padding.p16};
24164
- `, ie = V(`${Hv}__header-content`, re), ae = H`
24718
+ `, ie = V(`${$v}__header-content`, re), ae = H`
24165
24719
  flex: 0 0 auto;
24166
24720
  color: ${T.colour.icon.secondary};
24167
- `, oe = V(`${Hv}__close-button`, ae, c?.className), se = H`
24721
+ `, oe = V(`${$v}__close-button`, ae, c?.className), se = H`
24168
24722
  color: ${T.colour.icon.critical};
24169
24723
  flex: 0 0 auto;
24170
- `, ce = V(`${Hv}__icon`, se), le = H`
24724
+ `, ce = V(`${$v}__icon`, se), le = H`
24171
24725
  flex: 1 1 auto;
24172
24726
  min-height: 0;
24173
24727
  overflow-y: auto;
@@ -24176,27 +24730,27 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24176
24730
  @media (min-width: ${T.breakpoints.tablet}px) {
24177
24731
  padding: ${T.padding.p16} ${T.padding.p32};
24178
24732
  }
24179
- `, z = V(`${Hv}__body`, le), ue = H`
24733
+ `, z = V(`${$v}__body`, le), ue = H`
24180
24734
  display: flex;
24181
24735
  flex-direction: column;
24182
24736
  gap: ${T.padding.p8};
24183
- `, B = V(`${Hv}__body-content`, ue), de = H`
24737
+ `, B = V(`${$v}__body-content`, ue), de = H`
24184
24738
  display: flex;
24185
24739
  flex-direction: column;
24186
24740
  gap: ${T.padding.p8};
24187
24741
  margin-top: ${T.margin.m16};
24188
- `, fe = V(`${Hv}__details`, de), pe = H`
24742
+ `, fe = V(`${$v}__details`, de), pe = H`
24189
24743
  width: 100%;
24190
24744
  max-width: none;
24191
- `, me = V(`${Hv}__detail`, pe), he = H`
24745
+ `, me = V(`${$v}__detail`, pe), he = H`
24192
24746
  white-space: pre-line;
24193
- `, ge = V(`${Hv}__detail-value`, he), _e = H`
24747
+ `, ge = V(`${$v}__detail-value`, he), _e = H`
24194
24748
  color: ${T.colour.text.default};
24195
24749
  opacity: 0.9;
24196
- `, ve = V(`${Hv}__error-code`, _e), ye = H`
24750
+ `, ve = V(`${$v}__error-code`, _e), ye = H`
24197
24751
  color: ${T.colour.text.default};
24198
24752
  opacity: 0.9;
24199
- `, be = V(`${Hv}__reference-code`, ye), xe = H`
24753
+ `, be = V(`${$v}__reference-code`, ye), xe = H`
24200
24754
  flex: 0 0 auto;
24201
24755
  display: flex;
24202
24756
  flex-direction: column-reverse;
@@ -24211,11 +24765,11 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24211
24765
  }
24212
24766
  `, Se = H`
24213
24767
  border-top: ${T.border.b1} solid ${T.colour.border.default};
24214
- `, Ce = V(`${Hv}__footer`, xe, d && Se), we = H`
24768
+ `, Ce = V(`${$v}__footer`, xe, d && Se), we = H`
24215
24769
  display: flex;
24216
24770
  flex-direction: column;
24217
24771
  gap: ${T.padding.p4};
24218
- `, Te = V(`${Hv}__footer-metadata`, we), Ee = H`
24772
+ `, Te = V(`${$v}__footer-metadata`, we), Ee = H`
24219
24773
  display: flex;
24220
24774
  flex-direction: column-reverse;
24221
24775
  gap: ${T.padding.p12};
@@ -24225,14 +24779,14 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24225
24779
  justify-content: flex-end;
24226
24780
  align-items: center;
24227
24781
  }
24228
- `, De = V(`${Hv}__footer-actions`, Ee), Oe = H`
24782
+ `, De = V(`${$v}__footer-actions`, Ee), Oe = H`
24229
24783
  width: 100%;
24230
24784
 
24231
24785
  @media (min-width: ${T.breakpoints.tablet}px) {
24232
24786
  width: auto;
24233
24787
  }
24234
- `, ke = V(`${Hv}__primary-button`, Oe, o?.className), Ae = V(`${Hv}__secondary-button`, Oe, s?.className);
24235
- return /* @__PURE__ */ b(zv, {
24788
+ `, ke = V(`${$v}__primary-button`, Oe, o?.className), Ae = V(`${$v}__secondary-button`, Oe, s?.className);
24789
+ return /* @__PURE__ */ b(Xv, {
24236
24790
  size: g,
24237
24791
  modal: _,
24238
24792
  role: v,
@@ -24284,9 +24838,9 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24284
24838
  children: C
24285
24839
  }), M && /* @__PURE__ */ y("div", {
24286
24840
  className: fe,
24287
- children: r.map(({ label: e, value: t }, n) => /* @__PURE__ */ b(U_, {
24841
+ children: r.map(({ label: e, value: t }, n) => /* @__PURE__ */ b(ev, {
24288
24842
  className: me,
24289
- children: [/* @__PURE__ */ y(U_.Heading, { children: e }), /* @__PURE__ */ y(U_.Panel, { children: /* @__PURE__ */ y("span", {
24843
+ children: [/* @__PURE__ */ y(ev.Heading, { children: e }), /* @__PURE__ */ y(ev.Panel, { children: /* @__PURE__ */ y("span", {
24290
24844
  className: ge,
24291
24845
  children: t
24292
24846
  }) })]
@@ -24327,7 +24881,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24327
24881
  })
24328
24882
  ]
24329
24883
  });
24330
- }, Wv = "ucl-uikit-radio", Gv = a(({ checked: e, defaultChecked: t, disabled: n, testId: r = Wv, className: i, ...a }, o) => {
24884
+ }, ty = "ucl-uikit-radio", ny = a(({ checked: e, defaultChecked: t, disabled: n, testId: r = ty, className: i, ...a }, o) => {
24331
24885
  let [s] = $(), c = e !== void 0, [l, u] = _(t ?? !1), d = c ? e : l, f = (e) => {
24332
24886
  c || u(e.target.checked), a.onChange?.(e);
24333
24887
  }, p = H`
@@ -24365,7 +24919,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24365
24919
  background-color: ${s.colour.icon.disabled};
24366
24920
  border-color: ${s.colour.icon.disabled};
24367
24921
  cursor: not-allowed;
24368
- `, S = V(Wv, p, Ac(a, s), !n && m, d && h, !d && g, n && !d && v, n && d && x, i), C = H`
24922
+ `, S = V(ty, p, Ac(a, s), !n && m, d && h, !d && g, n && !d && v, n && d && x, i), C = H`
24369
24923
  cursor: inherit;
24370
24924
  position: absolute;
24371
24925
  opacity: 0;
@@ -24401,7 +24955,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24401
24955
  ...c ? { checked: e } : { defaultChecked: t }
24402
24956
  }), d && /* @__PURE__ */ y("div", { className: w })]
24403
24957
  });
24404
- }), Kv = s(Gv), qv = "ucl-uikit-labelled-radio", Jv = a(({ id: e, labelProps: t, testId: n = qv, m: r, mv: i, mh: a, mt: o, mb: s, ml: c, mr: l, noMargins: u, className: d, children: p, ...m }, h) => {
24958
+ }), ry = s(ny), iy = "ucl-uikit-labelled-radio", ay = a(({ id: e, labelProps: t, testId: n = iy, m: r, mv: i, mh: a, mt: o, mb: s, ml: c, mr: l, noMargins: u, className: d, children: p, ...m }, h) => {
24405
24959
  let [g] = $(), _ = f();
24406
24960
  e ??= _;
24407
24961
  let v = H`
@@ -24415,7 +24969,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24415
24969
  &:focus-within {
24416
24970
  box-shadow: ${g.boxShadow.focus};
24417
24971
  }
24418
- `, S = V(qv, v, !m.disabled && x, Ac({
24972
+ `, S = V(iy, v, !m.disabled && x, Ac({
24419
24973
  m: r,
24420
24974
  mv: i,
24421
24975
  mh: a,
@@ -24432,7 +24986,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24432
24986
  return /* @__PURE__ */ b("div", {
24433
24987
  className: S,
24434
24988
  "data-testid": n,
24435
- children: [/* @__PURE__ */ y(Kv, {
24989
+ children: [/* @__PURE__ */ y(ry, {
24436
24990
  ref: h,
24437
24991
  className: C,
24438
24992
  id: e,
@@ -24445,12 +24999,12 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24445
24999
  children: p
24446
25000
  })]
24447
25001
  });
24448
- }), Yv = s(Jv), Xv = (e, t, n) => {
25002
+ }), oy = s(ay), sy = (e, t, n) => {
24449
25003
  let r = (e) => (e.setHours(0, 0, 0, 0), e), i = /^(\d{1,2})[-/ ](\d{1,2})[-/ ](\d{4})$/.exec(e.trim());
24450
25004
  if (!i) return null;
24451
25005
  let a = Number(i[1]), o = Number(i[2]), s = Number(i[3]), c = new Date(s, o - 1, a);
24452
25006
  return Number.isNaN(c.getTime()) || c.getDate() !== a || c.getMonth() !== o - 1 || c.getFullYear() !== s ? null : t && c < r(new Date(t)) ? (console.warn(`Parsed date ${c} is before the minimum date ${t}`), null) : n && c > r(new Date(n)) ? (console.warn(`Parsed date ${c} is after the maximum date ${n}`), null) : c;
24453
- }, Zv = "ucl-uikit-datepicker", Qv = ({ value: e = null, onValueChange: t = () => {}, minDate: n, maxDate: r, minYear: i, maxYear: a, pickedMonth: o = null, disabled: s = !1, clearable: c = !1, events: u, statuses: f, showAcademicWeeks: p, academicWeeks: m = [], testId: h = Zv, className: v, ref: x, inputRef: S, inputProps: C = {}, ...w }) => {
25007
+ }, cy = "ucl-uikit-datepicker", ly = ({ value: e = null, onValueChange: t = () => {}, minDate: n, maxDate: r, minYear: i, maxYear: a, pickedMonth: o = null, disabled: s = !1, clearable: c = !1, events: u, statuses: f, showAcademicWeeks: p, academicWeeks: m = [], testId: h = cy, className: v, ref: x, inputRef: S, inputProps: C = {}, ...w }) => {
24454
25008
  e && isNaN(e.getTime()) && (console.warn("CustomDatepicker: value is invalid, defaulting to null"), e = null);
24455
25009
  let T = g(null), E = x || T, D = g(null), O = S || D, k = g(!1), [A] = $(), [j, M] = _(!1), N = parseFloat(A.margin.m32), P = e?.getDate().toString().padStart(2, "0") ?? "", F = e ? (e.getMonth() + 1).toString().padStart(2, "0") : "", I = e?.getFullYear().toString() ?? "", L = e ? `${P}/${F}/${I}` : "", [R, ee] = _(L), te = l(() => {
24456
25010
  ee(L);
@@ -24463,8 +25017,8 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24463
25017
  let ne = (e) => {
24464
25018
  ee(e.target.value);
24465
25019
  }, re = (e) => {
24466
- let i = Xv(R, n, r);
24467
- i ? (Q_("Selected date " + i.toLocaleDateString("en-GB", {
25020
+ let i = sy(R, n, r);
25021
+ i ? (lv("Selected date " + i.toLocaleDateString("en-GB", {
24468
25022
  weekday: "long",
24469
25023
  day: "numeric",
24470
25024
  month: "long",
@@ -24499,7 +25053,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24499
25053
  s && j && M(!1);
24500
25054
  }, [s, j]);
24501
25055
  let ae = (e, n) => {
24502
- t && (Q_("Selected date " + e?.toLocaleDateString("en-GB", {
25056
+ t && (lv("Selected date " + e?.toLocaleDateString("en-GB", {
24503
25057
  weekday: "long",
24504
25058
  day: "numeric",
24505
25059
  month: "long",
@@ -24511,7 +25065,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24511
25065
  s || M((e) => !e);
24512
25066
  }, ce = (e) => {
24513
25067
  e.stopPropagation(), k.current = !0, t(null, e);
24514
- }, le = V(Zv, H`
25068
+ }, le = V(cy, H`
24515
25069
  width: 196px;
24516
25070
  height: 48px;
24517
25071
  box-sizing: border-box;
@@ -24522,7 +25076,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24522
25076
  "data-testid": h,
24523
25077
  ref: E,
24524
25078
  ...w,
24525
- children: [/* @__PURE__ */ y(ey, {
25079
+ children: [/* @__PURE__ */ y(dy, {
24526
25080
  inputValue: R,
24527
25081
  onInputChange: ne,
24528
25082
  onInputKeyDown: ie,
@@ -24545,7 +25099,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24545
25099
  crossAxis: !0
24546
25100
  },
24547
25101
  offset: 8,
24548
- children: /* @__PURE__ */ y(iy, { children: /* @__PURE__ */ y(Ry, {
25102
+ children: /* @__PURE__ */ y(hy, { children: /* @__PURE__ */ y(Yy, {
24549
25103
  pickedDate: e,
24550
25104
  pickedMonth: o,
24551
25105
  onDatePick: ae,
@@ -24560,7 +25114,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24560
25114
  }) })
24561
25115
  })]
24562
25116
  });
24563
- }, $v = "ucl-uikit-datepicker__visible-field", ey = ({ inputValue: e, onInputChange: t, onInputKeyDown: n, onInputFocus: r, onButtonClick: i, onClear: a, disabled: o, clearable: s = !1, hasValue: c = !1, inputRef: l, inputProps: u }) => {
25117
+ }, uy = "ucl-uikit-datepicker__visible-field", dy = ({ inputValue: e, onInputChange: t, onInputKeyDown: n, onInputFocus: r, onButtonClick: i, onClear: a, disabled: o, clearable: s = !1, hasValue: c = !1, inputRef: l, inputProps: u }) => {
24564
25118
  let [d] = $(), f = H`
24565
25119
  display: flex;
24566
25120
  align-items: center;
@@ -24603,11 +25157,11 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24603
25157
  `, h = H`
24604
25158
  min-width: 24px;
24605
25159
  color: ${o ? d.colour.icon.disabled : d.colour.icon.secondary};
24606
- `, g = s && c && !o, _ = V($v, f, o && p);
25160
+ `, g = s && c && !o, _ = V(uy, f, o && p);
24607
25161
  return /* @__PURE__ */ b("div", {
24608
25162
  className: _,
24609
- "data-testid": $v,
24610
- children: [/* @__PURE__ */ y(ny, {
25163
+ "data-testid": uy,
25164
+ children: [/* @__PURE__ */ y(py, {
24611
25165
  value: e,
24612
25166
  onChange: t,
24613
25167
  onKeyDown: n,
@@ -24620,20 +25174,20 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24620
25174
  onClick: a,
24621
25175
  className: m,
24622
25176
  "aria-label": "Clear date",
24623
- "data-testid": `${$v}-icon-button`,
25177
+ "data-testid": `${uy}-icon-button`,
24624
25178
  children: /* @__PURE__ */ y(U.X, { className: h })
24625
25179
  }) : /* @__PURE__ */ y(Qc, {
24626
25180
  type: "button",
24627
25181
  onClick: i,
24628
25182
  className: m,
24629
25183
  "aria-label": "Open calendar",
24630
- "data-testid": `${$v}-icon-button`,
25184
+ "data-testid": `${uy}-icon-button`,
24631
25185
  tabIndex: -1,
24632
25186
  disabled: o,
24633
25187
  children: /* @__PURE__ */ y(U.Calendar, { className: h })
24634
25188
  })]
24635
25189
  });
24636
- }, ty = "ucl-uikit-datepicker__input", ny = ({ disabled: e, placeholder: t = "DD/MM/YYYY", inputMode: n = "numeric", testId: r = ty, className: i, ...a }) => {
25190
+ }, fy = "ucl-uikit-datepicker__input", py = ({ disabled: e, placeholder: t = "DD/MM/YYYY", inputMode: n = "numeric", testId: r = fy, className: i, ...a }) => {
24637
25191
  let [o] = $(), { md: s } = o.typography.body, c = H`
24638
25192
  width: 100%;
24639
25193
  height: 100%;
@@ -24663,7 +25217,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24663
25217
  &::placeholder {
24664
25218
  color: ${o.colour.text.disabled};
24665
25219
  }
24666
- `, u = V(ty, c, e && l, i);
25220
+ `, u = V(fy, c, e && l, i);
24667
25221
  return /* @__PURE__ */ y("input", {
24668
25222
  placeholder: t,
24669
25223
  inputMode: n,
@@ -24673,11 +25227,11 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24673
25227
  disabled: e,
24674
25228
  type: "text"
24675
25229
  });
24676
- }, ry = "ucl-uikit-datepicker__panel", iy = ({ children: e }) => /* @__PURE__ */ y("div", {
24677
- "data-testid": ry,
24678
- className: ry,
25230
+ }, my = "ucl-uikit-datepicker__panel", hy = ({ children: e }) => /* @__PURE__ */ y("div", {
25231
+ "data-testid": my,
25232
+ className: my,
24679
25233
  children: e
24680
- }), ay = ({ value: e, onValueChange: t, minDate: n, maxDate: r, minYear: i, maxYear: a, disabled: o, className: s, clearable: c, ...l }) => /* @__PURE__ */ y(Qv, {
25234
+ }), gy = ({ value: e, onValueChange: t, minDate: n, maxDate: r, minYear: i, maxYear: a, disabled: o, className: s, clearable: c, ...l }) => /* @__PURE__ */ y(ly, {
24681
25235
  value: e,
24682
25236
  onValueChange: t,
24683
25237
  minDate: n,
@@ -24688,7 +25242,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24688
25242
  disabled: o,
24689
25243
  clearable: c,
24690
25244
  ...l
24691
- }), oy = (e) => e ? e.toLocaleDateString("sv-SE") : null, sy = "ucl-uikit-native-datepicker", cy = ({ value: e, onValueChange: t, minDate: n, maxDate: r, className: i, disabled: a, testId: o = sy, ref: s, ...c }) => {
25245
+ }), _y = (e) => e ? e.toLocaleDateString("sv-SE") : null, vy = "ucl-uikit-native-datepicker", yy = ({ value: e, onValueChange: t, minDate: n, maxDate: r, className: i, disabled: a, testId: o = vy, ref: s, ...c }) => {
24692
25246
  let [l] = $(), { md: u } = l.typography.body, d = H`
24693
25247
  width: 196px;
24694
25248
  height: 48px;
@@ -24718,10 +25272,10 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24718
25272
  background-color: ${l.colour.fill.inverse};
24719
25273
  border-color: ${l.colour.border.disabled};
24720
25274
  cursor: not-allowed;
24721
- `, p = V(sy, d, a && f, i);
25275
+ `, p = V(vy, d, a && f, i);
24722
25276
  return /* @__PURE__ */ y("input", {
24723
25277
  type: "date",
24724
- value: oy(e) ?? "",
25278
+ value: _y(e) ?? "",
24725
25279
  onChange: (e) => {
24726
25280
  let n = e.target.value;
24727
25281
  t?.(n ? new Date(n) : null, e);
@@ -24734,7 +25288,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24734
25288
  ref: s,
24735
25289
  ...c
24736
25290
  });
24737
- }, ly = ({ label: e, value: t, options: n, onValueChange: r }) => {
25291
+ }, by = ({ label: e, value: t, options: n, onValueChange: r }) => {
24738
25292
  let [i] = $(), { md: a, mdSemibold: o } = i.typography.body, s = H`
24739
25293
  && {
24740
25294
  width: auto;
@@ -24788,25 +25342,25 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24788
25342
  value: t,
24789
25343
  onValueChange: r
24790
25344
  });
24791
- }, uy = (e) => {
25345
+ }, xy = (e) => {
24792
25346
  if (!e) return null;
24793
25347
  let t = new Date(e);
24794
25348
  return t.setDate(1), t.setHours(0, 0, 0, 0), t;
24795
- }, dy = (e) => {
25349
+ }, Sy = (e) => {
24796
25350
  let t = new Date(e);
24797
25351
  return isNaN(t.getTime()) ? (console.warn(`Calendar: Invalid date string provided: "${e}". Expected format is ISO 8601 (YYYY-MM-DD)`), null) : t;
24798
- }, fy = (e) => {
25352
+ }, Cy = (e) => {
24799
25353
  let t = new Date(e), n = (t.getDay() + 6) % 7;
24800
25354
  return t.setDate(t.getDate() - n), t.setHours(0, 0, 0, 0), t;
24801
- }, py = (e, t) => {
25355
+ }, wy = (e, t) => {
24802
25356
  if (!e || e.length === 0) return console.warn("Datepicker: No academic weeks provided"), [];
24803
25357
  if (!t || !(t instanceof Date) || Number.isNaN(t.getTime())) return console.warn("Datepicker: Invalid target date provided"), [];
24804
- let n = t.getFullYear(), r = t.getMonth(), i = fy(new Date(n, r, 1)), a = [];
25358
+ let n = t.getFullYear(), r = t.getMonth(), i = Cy(new Date(n, r, 1)), a = [];
24805
25359
  a.push(i);
24806
25360
  let o = new Date(i);
24807
25361
  for (o.setDate(i.getDate() + 7); o.getMonth() === r;) a.push(new Date(o)), o.setDate(o.getDate() + 7);
24808
25362
  return a.map((t) => e.find((e) => new Date(e.start).toDateString() === t.toDateString())?.number);
24809
- }, my = (e) => {
25363
+ }, Ty = (e) => {
24810
25364
  if (!e || !(e instanceof Date)) throw Error("No date provided");
24811
25365
  let t = e.getMonth(), n = new Date(e.getFullYear(), t + 1, 0).getDate(), r = [];
24812
25366
  for (let i = 1; i <= n; i++) {
@@ -24819,7 +25373,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24819
25373
  let l = [], u = new Date(e.getFullYear(), t + 1, 1), d = 6 - i(new Date(e.getFullYear(), t, n).getDay());
24820
25374
  for (let e = 1; e <= d; e++) l.push(new Date(u.getFullYear(), u.getMonth(), e));
24821
25375
  return r.unshift(...a), r.push(...l), r;
24822
- }, hy = [
25376
+ }, Ey = [
24823
25377
  "January",
24824
25378
  "February",
24825
25379
  "March",
@@ -24832,11 +25386,11 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24832
25386
  "October",
24833
25387
  "November",
24834
25388
  "December"
24835
- ], gy = () => hy.map((e, t) => ({
25389
+ ], Dy = () => Ey.map((e, t) => ({
24836
25390
  name: e,
24837
25391
  index: t
24838
- })), _y = "ucl-uikit-calendar__controls", vy = ({ month: e, changeMonth: t, onMonthSelect: n, onYearSelect: r, minYear: i, maxYear: a }) => {
24839
- let [o] = $(), s = e ?? /* @__PURE__ */ new Date(), c = s.getMonth(), l = s.getFullYear(), u = gy().map(({ name: e, index: t }) => ({
25392
+ })), Oy = "ucl-uikit-calendar__controls", ky = ({ month: e, changeMonth: t, onMonthSelect: n, onYearSelect: r, minYear: i, maxYear: a }) => {
25393
+ let [o] = $(), s = e ?? /* @__PURE__ */ new Date(), c = s.getMonth(), l = s.getFullYear(), u = Dy().map(({ name: e, index: t }) => ({
24840
25394
  label: e,
24841
25395
  value: t
24842
25396
  })), d = i, f = a, p = Array.from({ length: Math.max(1, f - d + 1) }, (e, t) => {
@@ -24862,10 +25416,10 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24862
25416
  width: 20px;
24863
25417
  height: 20px;
24864
25418
  color: ${o.colour.icon.default};
24865
- `, _ = V(_y, m);
25419
+ `, _ = V(Oy, m);
24866
25420
  return /* @__PURE__ */ b("div", {
24867
25421
  className: _,
24868
- "data-testid": _y,
25422
+ "data-testid": Oy,
24869
25423
  children: [/* @__PURE__ */ b("div", {
24870
25424
  className: h,
24871
25425
  children: [/* @__PURE__ */ y(Qc, {
@@ -24874,7 +25428,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24874
25428
  "aria-label": "Show previous month",
24875
25429
  onClick: () => t(-1),
24876
25430
  children: /* @__PURE__ */ y(U.ChevronLeft, { size: 20 })
24877
- }), /* @__PURE__ */ y(ly, {
25431
+ }), /* @__PURE__ */ y(by, {
24878
25432
  label: "Month",
24879
25433
  options: u,
24880
25434
  value: c,
@@ -24882,7 +25436,7 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24882
25436
  })]
24883
25437
  }), /* @__PURE__ */ b("div", {
24884
25438
  className: h,
24885
- children: [/* @__PURE__ */ y(ly, {
25439
+ children: [/* @__PURE__ */ y(by, {
24886
25440
  label: "Year",
24887
25441
  options: p,
24888
25442
  value: l,
@@ -24896,8 +25450,8 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24896
25450
  })]
24897
25451
  })]
24898
25452
  });
24899
- }, yy = "ucl-uikit-calendar__academic-weeks", by = ({ date: e, weeks: t }) => {
24900
- let [n] = $(), r = py(t, e), i = V(yy, H`
25453
+ }, Ay = "ucl-uikit-calendar__academic-weeks", jy = ({ date: e, weeks: t }) => {
25454
+ let [n] = $(), r = wy(t, e), i = V(Ay, H`
24901
25455
  display: flex;
24902
25456
  flex-direction: column;
24903
25457
  padding-top: 32px;
@@ -24906,12 +25460,12 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24906
25460
  user-select: none;
24907
25461
  `);
24908
25462
  return /* @__PURE__ */ y("div", {
24909
- "data-testid": yy,
25463
+ "data-testid": Ay,
24910
25464
  className: i,
24911
- children: r.map((e) => /* @__PURE__ */ y(Sy, { weekNumber: e }, e))
25465
+ children: r.map((e) => /* @__PURE__ */ y(Ny, { weekNumber: e }, e))
24912
25466
  });
24913
- }, xy = "ucl-uikit-calendar__academic-week", Sy = ({ weekNumber: e }) => {
24914
- let [t] = $(), n = V(xy, H`
25467
+ }, My = "ucl-uikit-calendar__academic-week", Ny = ({ weekNumber: e }) => {
25468
+ let [t] = $(), n = V(My, H`
24915
25469
  display: flex;
24916
25470
  align-items: center;
24917
25471
  justify-content: center;
@@ -24923,26 +25477,26 @@ var Lv = "ucl-uikit-base-dialog", Rv = a(function({ open: e = !1, size: t = "med
24923
25477
  as: "div",
24924
25478
  level: "sm",
24925
25479
  noMargins: !0,
24926
- testId: xy,
25480
+ testId: My,
24927
25481
  className: n,
24928
25482
  children: e && "W " + e.toString().padStart(2, "0")
24929
25483
  });
24930
- }, Cy = "ucl-uikit-calendar__grid";
24931
- function wy(e) {
25484
+ }, Py = "ucl-uikit-calendar__grid";
25485
+ function Fy(e) {
24932
25486
  let [t, n, r] = e.split("-").map(Number);
24933
25487
  return new Date(t, n - 1, r);
24934
25488
  }
24935
- function Ty(e) {
25489
+ function Iy(e) {
24936
25490
  return e.toISOString().split("T")[0];
24937
25491
  }
24938
- function Ey(e) {
25492
+ function Ly(e) {
24939
25493
  let t = /* @__PURE__ */ new Map();
24940
25494
  return e.forEach((e) => {
24941
- let n = Ty(wy(e.date));
25495
+ let n = Iy(Fy(e.date));
24942
25496
  t.has(n) || t.set(n, []), t.get(n).push(e);
24943
25497
  }), t;
24944
25498
  }
24945
- var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDate: i, events: a, statuses: o = {} }) => {
25499
+ var Ry = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDate: i, events: a, statuses: o = {} }) => {
24946
25500
  r && !isNaN(r.getTime()) && r.setHours(0, 0, 0, 0);
24947
25501
  let [s] = $(), c = [
24948
25502
  "M",
@@ -24952,7 +25506,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
24952
25506
  "F",
24953
25507
  "S",
24954
25508
  "S"
24955
- ], l = my(e), u = h(() => Ey(a), [a]), d = V(Cy, H`
25509
+ ], l = Ty(e), u = h(() => Ly(a), [a]), d = V(Py, H`
24956
25510
  display: grid;
24957
25511
  grid-template-columns: repeat(7, 1fr);
24958
25512
  gap: 0;
@@ -24963,14 +25517,14 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
24963
25517
  `);
24964
25518
  return /* @__PURE__ */ b("div", {
24965
25519
  className: d,
24966
- "data-testid": Cy,
24967
- children: [c.map((e, t) => /* @__PURE__ */ y(ky, {
25520
+ "data-testid": Py,
25521
+ children: [c.map((e, t) => /* @__PURE__ */ y(By, {
24968
25522
  index: t,
24969
25523
  day: e,
24970
25524
  isWeekend: t >= 5
24971
25525
  }, t)), l.map((a) => {
24972
- let s = Ty(a), c = u.get(s) || [];
24973
- return /* @__PURE__ */ y(jy, {
25526
+ let s = Iy(a), c = u.get(s) || [];
25527
+ return /* @__PURE__ */ y(Hy, {
24974
25528
  date: a,
24975
25529
  isSelected: t?.toDateString() === a.toDateString(),
24976
25530
  isToday: a.toDateString() === (/* @__PURE__ */ new Date()).toDateString(),
@@ -24982,8 +25536,8 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
24982
25536
  }, a.toISOString());
24983
25537
  })]
24984
25538
  });
24985
- }, Oy = "ucl-uikit-calendar__column-heading", ky = ({ index: e, day: t, isWeekend: n }) => {
24986
- let [r] = $(), i = V(Oy, H`
25539
+ }, zy = "ucl-uikit-calendar__column-heading", By = ({ index: e, day: t, isWeekend: n }) => {
25540
+ let [r] = $(), i = V(zy, H`
24987
25541
  display: flex;
24988
25542
  align-items: center;
24989
25543
  justify-content: center;
@@ -24996,10 +25550,10 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
24996
25550
  level: "md-semibold",
24997
25551
  noMargins: !0,
24998
25552
  className: i,
24999
- testId: Oy,
25553
+ testId: zy,
25000
25554
  children: t
25001
25555
  }, e);
25002
- }, Ay = "ucl-uikit-calendar__day", jy = ({ date: e, onPick: t, isSelected: n = !1, isToday: r = !1, isInCurrentMonth: i = !0, isDisabled: a = !1, events: o = [], statuses: s = {}, ariaLabel: c }) => {
25556
+ }, Vy = "ucl-uikit-calendar__day", Hy = ({ date: e, onPick: t, isSelected: n = !1, isToday: r = !1, isInCurrentMonth: i = !0, isDisabled: a = !1, events: o = [], statuses: s = {}, ariaLabel: c }) => {
25003
25557
  let [l] = $(), { md: u, mdSemibold: d } = l.typography.body, f = o.slice(0, 3), p = o.reduce((e, t) => {
25004
25558
  let n = t.status && s[t.status]?.ariaLabel || "event";
25005
25559
  return e.set(n, (e.get(n) ?? 0) + 1), e;
@@ -25067,13 +25621,13 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25067
25621
  position: absolute;
25068
25622
  bottom: 3px;
25069
25623
  width: 100%;
25070
- `, C = V(Ay, v);
25624
+ `, C = V(Vy, v);
25071
25625
  return /* @__PURE__ */ b("button", {
25072
25626
  type: "button",
25073
25627
  onClick: _,
25074
25628
  disabled: a,
25075
25629
  className: C,
25076
- "data-testid": Ay,
25630
+ "data-testid": Vy,
25077
25631
  "aria-label": g,
25078
25632
  tabIndex: -1,
25079
25633
  children: [/* @__PURE__ */ y("div", {
@@ -25081,14 +25635,14 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25081
25635
  children: e.getDate()
25082
25636
  }), /* @__PURE__ */ y("div", {
25083
25637
  className: S,
25084
- children: f.map((e, t) => /* @__PURE__ */ y(Py, {
25638
+ children: f.map((e, t) => /* @__PURE__ */ y(Gy, {
25085
25639
  inverted: n,
25086
25640
  variant: e.status ? s[e.status]?.variant : void 0,
25087
25641
  inCurrentMonth: i
25088
25642
  }, t))
25089
25643
  })]
25090
25644
  });
25091
- }, My = "ucl-uikit-calendar__event-dot", Ny = (e, t, n, r) => {
25645
+ }, Uy = "ucl-uikit-calendar__event-dot", Wy = (e, t, n, r) => {
25092
25646
  if (!n) return e.colour.icon.disabled;
25093
25647
  switch (r) {
25094
25648
  case "critical": return e.colour.icon.critical;
@@ -25098,23 +25652,23 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25098
25652
  case "info": return t ? e.colour.icon.inverse : e.colour.fill.brand;
25099
25653
  default: return t ? e.colour.icon.inverse : e.colour.fill.brand;
25100
25654
  }
25101
- }, Py = ({ inverted: e, inCurrentMonth: t, variant: n }) => {
25102
- let [r] = $(), i = V(My, H`
25655
+ }, Gy = ({ inverted: e, inCurrentMonth: t, variant: n }) => {
25656
+ let [r] = $(), i = V(Uy, H`
25103
25657
  width: 6px;
25104
25658
  height: 6px;
25105
25659
  border-radius: 50%;
25106
- background-color: ${Ny(r, e, t, n)};
25660
+ background-color: ${Wy(r, e, t, n)};
25107
25661
  `);
25108
25662
  return /* @__PURE__ */ y("div", {
25109
- "data-testid": My,
25663
+ "data-testid": Uy,
25110
25664
  className: i
25111
25665
  });
25112
- }, Fy = "ucl-uikit-calendar", Iy = 1920, Ly = 2100, Ry = ({ pickedDate: e = null, pickedMonth: t = null, onDatePick: n, minDate: r = null, maxDate: i = null, minYear: a = Iy, maxYear: o = Ly, events: s = [], statuses: c = {}, showAcademicWeeks: u = !1, academicWeeks: f = [], testId: p = Fy, className: m }) => {
25113
- let [h] = $(), v = r ? dy(r) : null, x = i ? dy(i) : null, S = v?.getFullYear() ?? a, C = x?.getFullYear() ?? o, w = Math.min(S, C), T = Math.max(S, C);
25666
+ }, Ky = "ucl-uikit-calendar", qy = 1920, Jy = 2100, Yy = ({ pickedDate: e = null, pickedMonth: t = null, onDatePick: n, minDate: r = null, maxDate: i = null, minYear: a = qy, maxYear: o = Jy, events: s = [], statuses: c = {}, showAcademicWeeks: u = !1, academicWeeks: f = [], testId: p = Ky, className: m }) => {
25667
+ let [h] = $(), v = r ? Sy(r) : null, x = i ? Sy(i) : null, S = v?.getFullYear() ?? a, C = x?.getFullYear() ?? o, w = Math.min(S, C), T = Math.max(S, C);
25114
25668
  e && isNaN(e.getTime()) && (console.warn("Calendar: pickedDate is invalid, defaulting to null"), e = null), t && isNaN(t.getTime()) && (console.warn("Calendar: pickedMonth is invalid, defaulting to null"), t = null);
25115
25669
  let E = l((e) => {
25116
25670
  let t = e.getFullYear();
25117
- return t < w ? new Date(w, 0, 1) : t > T ? new Date(T, 11, 1) : uy(e);
25671
+ return t < w ? new Date(w, 0, 1) : t > T ? new Date(T, 11, 1) : xy(e);
25118
25672
  }, [T, w]), D = e ?? t, O = g(D), [k, A] = _(E(D ?? /* @__PURE__ */ new Date()));
25119
25673
  d(() => {
25120
25674
  D && O.current?.getTime() !== D.getTime() && (D.getMonth() !== k.getMonth() || D.getFullYear() !== k.getFullYear()) && A(E(D)), O.current = D;
@@ -25155,7 +25709,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25155
25709
  return /* @__PURE__ */ b("div", {
25156
25710
  className: I,
25157
25711
  "data-testid": p,
25158
- children: [/* @__PURE__ */ y(vy, {
25712
+ children: [/* @__PURE__ */ y(ky, {
25159
25713
  month: k,
25160
25714
  changeMonth: j,
25161
25715
  onMonthSelect: M,
@@ -25164,10 +25718,10 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25164
25718
  maxYear: T
25165
25719
  }), /* @__PURE__ */ b("div", {
25166
25720
  className: F,
25167
- children: [u && /* @__PURE__ */ y(by, {
25721
+ children: [u && /* @__PURE__ */ y(jy, {
25168
25722
  date: k,
25169
25723
  weeks: f
25170
- }), /* @__PURE__ */ y(Dy, {
25724
+ }), /* @__PURE__ */ y(Ry, {
25171
25725
  month: k,
25172
25726
  pickedDate: e,
25173
25727
  onDatePick: n,
@@ -25178,7 +25732,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25178
25732
  })]
25179
25733
  })]
25180
25734
  });
25181
- }, zy = "ucl-uikit-weekpicker", By = ({ value: e = null, onValueChange: t = () => {}, minDate: n, maxDate: r, minYear: i, maxYear: a, disabled: o = !1, events: s, showAcademicWeeks: c, academicWeeks: u = [], testId: f = zy, className: p, ref: m, inputRef: h, ...v }) => {
25735
+ }, Xy = "ucl-uikit-weekpicker", Zy = ({ value: e = null, onValueChange: t = () => {}, minDate: n, maxDate: r, minYear: i, maxYear: a, disabled: o = !1, events: s, showAcademicWeeks: c, academicWeeks: u = [], testId: f = Xy, className: p, ref: m, inputRef: h, ...v }) => {
25182
25736
  e && isNaN(e.getTime()) && (console.warn("CustomDatepicker: value is invalid, defaulting to null"), e = null);
25183
25737
  function x(e) {
25184
25738
  if (!e) return null;
@@ -25207,7 +25761,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25207
25761
  let R = (e) => {
25208
25762
  I(e.target.value);
25209
25763
  }, ee = (e) => {
25210
- let i = Xv(F, n, r);
25764
+ let i = sy(F, n, r);
25211
25765
  i ? t(i, e) : L();
25212
25766
  }, te = (e) => {
25213
25767
  e.key === "Enter" ? ee(e) : e.key === "Escape" ? (L(), E.current?.blur(), k(!1)) : e.key === "Tab" && (L(), k(!1));
@@ -25243,7 +25797,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25243
25797
  o || k(!0);
25244
25798
  }, ie = () => {
25245
25799
  o || k((e) => !e);
25246
- }, ae = V(zy, p, H`
25800
+ }, ae = V(Xy, p, H`
25247
25801
  box-sizing: border-box;
25248
25802
  position: relative;
25249
25803
  display: flex;
@@ -25279,7 +25833,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25279
25833
  "aria-label": "Go to previous week",
25280
25834
  children: /* @__PURE__ */ y(U.ChevronLeft, {})
25281
25835
  }),
25282
- /* @__PURE__ */ y(Hy, {
25836
+ /* @__PURE__ */ y($y, {
25283
25837
  inputValue: F,
25284
25838
  onInputChange: R,
25285
25839
  onInputKeyDown: te,
@@ -25307,7 +25861,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25307
25861
  crossAxis: !0
25308
25862
  },
25309
25863
  offset: 8,
25310
- children: /* @__PURE__ */ y(iy, { children: /* @__PURE__ */ y(Ry, {
25864
+ children: /* @__PURE__ */ y(hy, { children: /* @__PURE__ */ y(Yy, {
25311
25865
  pickedDate: e,
25312
25866
  onDatePick: ne,
25313
25867
  minDate: n,
@@ -25321,7 +25875,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25321
25875
  })
25322
25876
  ]
25323
25877
  });
25324
- }, Vy = "ucl-uikit-weekpicker__visible-field", Hy = ({ inputValue: e, onInputChange: t, onInputKeyDown: n, onInputFocus: r, onButtonClick: i, disabled: a, inputRef: o, beginningOfWeek: s, endOfWeek: c, academicWeekNumber: l }) => {
25878
+ }, Qy = "ucl-uikit-weekpicker__visible-field", $y = ({ inputValue: e, onInputChange: t, onInputKeyDown: n, onInputFocus: r, onButtonClick: i, disabled: a, inputRef: o, beginningOfWeek: s, endOfWeek: c, academicWeekNumber: l }) => {
25325
25879
  let [u] = $(), d = H`
25326
25880
  display: flex;
25327
25881
  align-items: center;
@@ -25356,10 +25910,10 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25356
25910
  `, m = H`
25357
25911
  min-width: 16px;
25358
25912
  color: ${a ? u.colour.icon.disabled : u.colour.icon.tertiary};
25359
- `, h = V(Vy, d, a && f);
25913
+ `, h = V(Qy, d, a && f);
25360
25914
  return /* @__PURE__ */ b("div", {
25361
25915
  className: h,
25362
- "data-testid": Vy,
25916
+ "data-testid": Qy,
25363
25917
  children: [
25364
25918
  /* @__PURE__ */ y("div", {
25365
25919
  onClick: i,
@@ -25369,7 +25923,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25369
25923
  size: 16
25370
25924
  })
25371
25925
  }),
25372
- /* @__PURE__ */ y(Wy, {
25926
+ /* @__PURE__ */ y(tb, {
25373
25927
  value: e,
25374
25928
  onChange: t,
25375
25929
  onKeyDown: n,
@@ -25388,7 +25942,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25388
25942
  })
25389
25943
  ]
25390
25944
  });
25391
- }, Uy = "ucl-uikit-weekpicker__input", Wy = ({ value: e, onChange: t, onKeyDown: n, onFocus: r, disabled: i, beginningOfWeek: a, endOfWeek: o, academicWeekNumber: s, ref: c }) => {
25945
+ }, eb = "ucl-uikit-weekpicker__input", tb = ({ value: e, onChange: t, onKeyDown: n, onFocus: r, disabled: i, beginningOfWeek: a, endOfWeek: o, academicWeekNumber: s, ref: c }) => {
25392
25946
  let [l] = $(), { md: u } = l.typography.body, [d, f] = _(!1), p = H`
25393
25947
  width: 100%;
25394
25948
  height: 100%;
@@ -25416,7 +25970,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25416
25970
  &::placeholder {
25417
25971
  color: ${l.colour.text.disabled};
25418
25972
  }
25419
- `, h = V(Uy, p, i && m), g = a && o ? `${((e) => new Date(e).toLocaleDateString("en-GB", {
25973
+ `, h = V(eb, p, i && m), g = a && o ? `${((e) => new Date(e).toLocaleDateString("en-GB", {
25420
25974
  day: "2-digit",
25421
25975
  month: "short"
25422
25976
  }))(a)} - ${((e) => new Date(e).toLocaleDateString("en-GB", {
@@ -25437,11 +25991,11 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25437
25991
  inputMode: "numeric",
25438
25992
  placeholder: "DD/MM/YYYY",
25439
25993
  className: h,
25440
- "data-testid": Uy,
25994
+ "data-testid": eb,
25441
25995
  ref: c,
25442
25996
  "aria-label": `Currently selected date: ${e} - Week from ${g}. ${s ? `(Academic Week ${s})` : ""}`
25443
25997
  });
25444
- }, Gy = ({ value: e, onValueChange: t, minDate: n, maxDate: r, minYear: i, maxYear: a, disabled: o, className: s, ...c }) => /* @__PURE__ */ y(By, {
25998
+ }, nb = ({ value: e, onValueChange: t, minDate: n, maxDate: r, minYear: i, maxYear: a, disabled: o, className: s, ...c }) => /* @__PURE__ */ y(Zy, {
25445
25999
  value: e,
25446
26000
  onValueChange: t,
25447
26001
  minDate: n,
@@ -25451,12 +26005,12 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25451
26005
  className: s,
25452
26006
  disabled: o,
25453
26007
  ...c
25454
- }), Ky = "ucl-uikit-drop-zone", qy = (e) => {
26008
+ }), rb = "ucl-uikit-drop-zone", ib = (e) => {
25455
26009
  if (!e) return "Drop an item here";
25456
26010
  let t = (typeof e == "string" ? e.split(",") : Array.from(e)).map((e) => e.trim()).filter(Boolean);
25457
26011
  return t.length > 0 ? `Drop ${t.join(", ")} here` : "Drop an item here";
25458
- }, Jy = s(({ "aria-label": e, "aria-labelledby": t, acceptedTypes: n, canDrop: r, children: i, className: a, disabled: o = !1, dropEffect: s = "move", keyboardDrop: c, onDrop: l, onReject: u, parseData: d, ref: f, role: p, testId: m = Ky, ...h }) => {
25459
- let [g] = $(), { activeTypes: _, getRootProps: x, isDragAccept: S, isDragActive: C, isDragReject: w, lastDrop: T, lastRejection: E } = gv({
26012
+ }, ab = s(({ "aria-label": e, "aria-labelledby": t, acceptedTypes: n, canDrop: r, children: i, className: a, disabled: o = !1, dropEffect: s = "move", keyboardDrop: c, onDrop: l, onReject: u, parseData: d, ref: f, role: p, testId: m = rb, ...h }) => {
26013
+ let [g] = $(), { activeTypes: _, getRootProps: x, isDragAccept: S, isDragActive: C, isDragReject: w, lastDrop: T, lastRejection: E } = Dv({
25460
26014
  acceptedTypes: n,
25461
26015
  canDrop: r,
25462
26016
  disabled: o,
@@ -25500,7 +26054,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25500
26054
  cursor: not-allowed;
25501
26055
  `, M = H`
25502
26056
  color: ${o ? g.colour.icon.disabled : w ? g.colour.icon.critical : S ? g.colour.icon.success : g.colour.icon.brand};
25503
- `, N = V(Ky, D, Ac(h, g), C && O, S && k, w && A, o && j, a), P = {
26057
+ `, N = V(rb, D, Ac(h, g), C && O, S && k, w && A, o && j, a), P = {
25504
26058
  activeTypes: _,
25505
26059
  isDragAccept: S,
25506
26060
  isDragActive: C,
@@ -25525,13 +26079,13 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25525
26079
  as: "div",
25526
26080
  level: "md-semibold",
25527
26081
  noMargins: !0,
25528
- children: w ? "This item cannot be dropped here" : C ? "Release to drop" : qy(n)
26082
+ children: w ? "This item cannot be dropped here" : C ? "Release to drop" : ib(n)
25529
26083
  }), /* @__PURE__ */ y(Mc, {
25530
26084
  level: "sm",
25531
26085
  children: w ? "This drop target does not accept that item" : "Drag a compatible item into this area"
25532
26086
  })] })] })
25533
26087
  });
25534
- }), Yy = "ucl-uikit-fileinput", Xy = ({ testId: e = Yy, children: t, labelId: n = "1", ...r }) => {
26088
+ }), ob = "ucl-uikit-fileinput", sb = ({ testId: e = ob, children: t, labelId: n = "1", ...r }) => {
25535
26089
  let [i] = $(), a = g(null), { md: o, mdSemibold: s } = i.typography.body, c = H`
25536
26090
  font-family: ${o.fontFamily};
25537
26091
  font-feature-settings: ${o.fontSettings};
@@ -25555,7 +26109,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25555
26109
  line-height: ${s.lineHeight}%;
25556
26110
  margin-top: 3px;
25557
26111
  cursor: pointer;
25558
- `, d = V(Yy, c, r.className);
26112
+ `, d = V(ob, c, r.className);
25559
26113
  return /* @__PURE__ */ b("div", {
25560
26114
  className: d,
25561
26115
  children: [/* @__PURE__ */ b("label", {
@@ -25571,8 +26125,8 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25571
26125
  ...r
25572
26126
  })]
25573
26127
  });
25574
- }, Zy = (e) => e ? `${e.getHours().toString().padStart(2, "0")}:${e.getMinutes().toString().padStart(2, "0")}` : "", Qy = "ucl-uikit-timepicker", $y = ({ testId: e = Qy, value: t, className: n, onValueChange: r, ...i }) => {
25575
- let [a] = $(), { md: o } = a.typography.body, s = V(Qy, H`
26128
+ }, cb = (e) => e ? `${e.getHours().toString().padStart(2, "0")}:${e.getMinutes().toString().padStart(2, "0")}` : "", lb = "ucl-uikit-timepicker", ub = ({ testId: e = lb, value: t, className: n, onValueChange: r, ...i }) => {
26129
+ let [a] = $(), { md: o } = a.typography.body, s = V(lb, H`
25576
26130
  color: ${a.colour.text.default};
25577
26131
  border-radius: ${a.radius.r4};
25578
26132
  font-family: ${o.fontFamily};
@@ -25588,7 +26142,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25588
26142
  }
25589
26143
  `, n);
25590
26144
  return /* @__PURE__ */ y("input", {
25591
- value: Zy(t ?? null),
26145
+ value: cb(t ?? null),
25592
26146
  onChange: (e) => {
25593
26147
  let n = e.target.value;
25594
26148
  if (!n || !n.includes(":")) {
@@ -25616,14 +26170,14 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25616
26170
  type: "time",
25617
26171
  ...i
25618
26172
  });
25619
- }, eb = "ucl-uikit-cookie-notice", tb = "https://www.ucl.ac.uk/legal-services/privacy/cookie-policy", nb = "We use necessary cookies to manage your session and essential site functions. We also use Google Analytics cookies to understand how our site is used. You can accept or reject non-essential cookies.", rb = ({ policyHref: e = tb, text: t = nb, onAccept: n, onReject: r, trapFocus: i = !1, testId: a = eb, className: o, ...s }) => {
26173
+ }, db = "ucl-uikit-cookie-notice", fb = "https://www.ucl.ac.uk/legal-services/privacy/cookie-policy", pb = "We use necessary cookies to manage your session and essential site functions. We also use Google Analytics cookies to understand how our site is used. You can accept or reject non-essential cookies.", mb = ({ policyHref: e = fb, text: t = pb, onAccept: n, onReject: r, trapFocus: i = !1, testId: a = db, className: o, ...s }) => {
25620
26174
  let [c] = $(), l = g(null);
25621
- nv({
26175
+ pv({
25622
26176
  isActive: i,
25623
26177
  containerRef: l,
25624
26178
  restoreFocus: !0
25625
26179
  });
25626
- let u = V(eb, H`
26180
+ let u = V(db, H`
25627
26181
  position: fixed;
25628
26182
  left: 0;
25629
26183
  right: 0;
@@ -25678,30 +26232,30 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25678
26232
  ]
25679
26233
  })]
25680
26234
  });
25681
- }, ib = "https://www.ucl.ac.uk/legal-services/privacy/cookie-policy", ab = "Help us improve your experience", ob = [
26235
+ }, hb = "https://www.ucl.ac.uk/legal-services/privacy/cookie-policy", gb = "Help us improve your experience", _b = [
25682
26236
  {
25683
26237
  id: "necessary",
25684
26238
  title: "Necessary Cookies",
25685
26239
  description: "These cookies are necessary for the website to function and can't be switched off in our systems.",
25686
26240
  required: !0,
25687
26241
  defaultEnabled: !0,
25688
- learnMoreHref: ib
26242
+ learnMoreHref: hb
25689
26243
  },
25690
26244
  {
25691
26245
  id: "analytics",
25692
26246
  title: "Analytics",
25693
26247
  description: "These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site.",
25694
26248
  defaultEnabled: !0,
25695
- learnMoreHref: ib
26249
+ learnMoreHref: hb
25696
26250
  },
25697
26251
  {
25698
26252
  id: "marketing",
25699
26253
  title: "Marketing",
25700
26254
  description: "These cookies are set through our site by our advertising partners. They may be used to build a profile of your interests and show you relevant ads.",
25701
26255
  defaultEnabled: !0,
25702
- learnMoreHref: ib
26256
+ learnMoreHref: hb
25703
26257
  }
25704
- ], sb = "ucl-uikit-cookie-settings", cb = ({ open: e = !1, cookies: t = ob, preferences: n, description: r, policyHref: i = ib, policyLabel: a = "UCL privacy policy.", onClose: o, onPreferenceToggle: s, onSavePreferences: c, saveButtonLabel: u = "Save preferences", testId: d = sb, className: p, ...m }) => {
26258
+ ], vb = "ucl-uikit-cookie-settings", yb = ({ open: e = !1, cookies: t = _b, preferences: n, description: r, policyHref: i = hb, policyLabel: a = "UCL privacy policy.", onClose: o, onPreferenceToggle: s, onSavePreferences: c, saveButtonLabel: u = "Save preferences", testId: d = vb, className: p, ...m }) => {
25705
26259
  let [h] = $(), g = f(), _ = f(), v = l(() => {
25706
26260
  c?.();
25707
26261
  }, [c]), x = l((e) => {
@@ -25773,8 +26327,8 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25773
26327
  @media (min-width: ${h.breakpoints.tablet}px) {
25774
26328
  width: auto;
25775
26329
  }
25776
- `, L = V(sb, S, p);
25777
- return /* @__PURE__ */ b(zv, {
26330
+ `, L = V(vb, S, p);
26331
+ return /* @__PURE__ */ b(Xv, {
25778
26332
  open: e,
25779
26333
  modal: !0,
25780
26334
  size: "large",
@@ -25786,16 +26340,16 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25786
26340
  ...m,
25787
26341
  children: [
25788
26342
  /* @__PURE__ */ b("header", {
25789
- className: V(`${sb}__header`, C),
26343
+ className: V(`${vb}__header`, C),
25790
26344
  children: [/* @__PURE__ */ y(Yd, {
25791
26345
  id: g,
25792
26346
  level: "lg",
25793
26347
  noMargins: !0,
25794
- className: V(`${sb}__heading`, w),
26348
+ className: V(`${vb}__heading`, w),
25795
26349
  children: "Privacy preferences"
25796
26350
  }), /* @__PURE__ */ y(Qc, {
25797
26351
  "aria-label": "Close cookie settings",
25798
- className: V(`${sb}__close-button`, T),
26352
+ className: V(`${vb}__close-button`, T),
25799
26353
  onClick: x,
25800
26354
  children: /* @__PURE__ */ y(U.X, {
25801
26355
  role: "presentation",
@@ -25804,9 +26358,9 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25804
26358
  })]
25805
26359
  }),
25806
26360
  /* @__PURE__ */ y("div", {
25807
- className: V(`${sb}__body`, E),
26361
+ className: V(`${vb}__body`, E),
25808
26362
  children: /* @__PURE__ */ b("div", {
25809
- className: V(`${sb}__content`, D),
26363
+ className: V(`${vb}__content`, D),
25810
26364
  children: [
25811
26365
  r !== void 0 && /* @__PURE__ */ y(Ic, {
25812
26366
  id: _,
@@ -25830,13 +26384,13 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25830
26384
  ]
25831
26385
  }),
25832
26386
  /* @__PURE__ */ y("div", {
25833
- className: V(`${sb}__cookies`, k),
26387
+ className: V(`${vb}__cookies`, k),
25834
26388
  children: t.map((e) => /* @__PURE__ */ b("section", {
25835
- className: V(`${sb}__cookie`, A),
26389
+ className: V(`${vb}__cookie`, A),
25836
26390
  children: [/* @__PURE__ */ b("div", {
25837
- className: V(`${sb}__cookie-header`, j),
26391
+ className: V(`${vb}__cookie-header`, j),
25838
26392
  children: [/* @__PURE__ */ b("div", {
25839
- className: V(`${sb}__cookie-text`, M),
26393
+ className: V(`${vb}__cookie-text`, M),
25840
26394
  children: [/* @__PURE__ */ y(Yd, {
25841
26395
  level: "md",
25842
26396
  as: "h3",
@@ -25851,7 +26405,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25851
26405
  checked: n[e.id],
25852
26406
  disabled: e.required,
25853
26407
  "aria-label": e.toggleLabel ?? (typeof e.title == "string" ? `Allow ${e.title}` : `Allow ${e.id} cookies`),
25854
- className: V(`${sb}__cookie-toggle`, N),
26408
+ className: V(`${vb}__cookie-toggle`, N),
25855
26409
  onClick: () => s(e)
25856
26410
  })]
25857
26411
  }), e.learnMoreHref && /* @__PURE__ */ y(_l, {
@@ -25860,7 +26414,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25860
26414
  icon: /* @__PURE__ */ y(U.ChevronRight, {}),
25861
26415
  iconPosition: "right",
25862
26416
  noVisited: !0,
25863
- className: V(`${sb}__learn-more`, P),
26417
+ className: V(`${vb}__learn-more`, P),
25864
26418
  children: e.learnMoreLabel ?? "Learn more"
25865
26419
  })]
25866
26420
  }, e.id))
@@ -25869,22 +26423,22 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25869
26423
  })
25870
26424
  }),
25871
26425
  /* @__PURE__ */ y("footer", {
25872
- className: V(`${sb}__footer`, F),
26426
+ className: V(`${vb}__footer`, F),
25873
26427
  children: /* @__PURE__ */ y(qd, {
25874
26428
  variant: "accent",
25875
26429
  size: "medium",
25876
- className: V(`${sb}__save-button`, I),
26430
+ className: V(`${vb}__save-button`, I),
25877
26431
  onClick: v,
25878
26432
  children: u
25879
26433
  })
25880
26434
  })
25881
26435
  ]
25882
26436
  });
25883
- }, lb = "ucl-uikit-cookies-notice", ub = 944, db = (e) => e.reduce((e, t) => (e[t.id] = !0, e), {}), fb = (e) => e.reduce((e, t) => (e[t.id] = !!t.required, e), {}), pb = (e) => e.reduce((e, t) => (t.required && (e[t.id] = !0), e), {}), mb = (e) => e.reduce((e, t) => (e[t.id] = t.required ? !0 : t.defaultEnabled ?? !1, e), {}), hb = ({ heading: e = ab, description: t, policyHref: n = ib, policyLabel: r = "UCL privacy policy", cookies: i = ob, preferences: a, modal: o = !1, manageCookiesLabel: s = "Manage cookies", acceptAllLabel: c = "Accept all cookies", acceptNecessaryLabel: u = "Accept necessary only", onAcceptAll: p, onAcceptNecessary: m, onManageCookies: g, onPreferencesChange: x, onSavePreferences: S, onSettingsClose: C, testId: w = lb, className: T, ...E }) => {
26437
+ }, bb = "ucl-uikit-cookies-notice", xb = 944, Sb = (e) => e.reduce((e, t) => (e[t.id] = !0, e), {}), Cb = (e) => e.reduce((e, t) => (e[t.id] = !!t.required, e), {}), wb = (e) => e.reduce((e, t) => (t.required && (e[t.id] = !0), e), {}), Tb = (e) => e.reduce((e, t) => (e[t.id] = t.required ? !0 : t.defaultEnabled ?? !1, e), {}), Eb = ({ heading: e = gb, description: t, policyHref: n = hb, policyLabel: r = "UCL privacy policy", cookies: i = _b, preferences: a, modal: o = !1, manageCookiesLabel: s = "Manage cookies", acceptAllLabel: c = "Accept all cookies", acceptNecessaryLabel: u = "Accept necessary only", onAcceptAll: p, onAcceptNecessary: m, onManageCookies: g, onPreferencesChange: x, onSavePreferences: S, onSettingsClose: C, testId: w = bb, className: T, ...E }) => {
25884
26438
  let [D] = $(), O = f(), [k, A] = _(!1), j = h(() => ({
25885
- ...mb(i),
26439
+ ...Tb(i),
25886
26440
  ...a,
25887
- ...pb(i)
26441
+ ...wb(i)
25888
26442
  }), [i, a]), [M, N] = _(j), [P, F] = _(j);
25889
26443
  d(() => {
25890
26444
  N(j), F(j);
@@ -25897,10 +26451,10 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25897
26451
  };
25898
26452
  F(t), x?.(t);
25899
26453
  }, [P, x]), L = l(() => {
25900
- let e = db(i);
26454
+ let e = Sb(i);
25901
26455
  N(e), F(e), p?.(e);
25902
26456
  }, [i, p]), R = l(() => {
25903
- let e = fb(i);
26457
+ let e = Cb(i);
25904
26458
  N(e), F(e), m?.(e);
25905
26459
  }, [i, m]), ee = l(() => {
25906
26460
  g?.(), F(M), A(!0);
@@ -25989,29 +26543,29 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
25989
26543
  @media (min-width: ${D.breakpoints.tablet}px) {
25990
26544
  width: calc(100vw - ${D.margin.m64});
25991
26545
  max-width: calc(
25992
- ${ub}px + ${D.padding.p64}
26546
+ ${xb}px + ${D.padding.p64}
25993
26547
  );
25994
26548
  margin: auto;
25995
26549
 
25996
26550
  &:modal {
25997
26551
  max-width: min(
25998
- calc(${ub}px + ${D.padding.p64}),
26552
+ calc(${xb}px + ${D.padding.p64}),
25999
26553
  calc(100vw - ${D.margin.m64})
26000
26554
  );
26001
26555
  }
26002
26556
  }
26003
- `, B = V(lb, re, Ac(E, D), T), de = /* @__PURE__ */ b("div", {
26557
+ `, B = V(bb, re, Ac(E, D), T), de = /* @__PURE__ */ b("div", {
26004
26558
  className: B,
26005
26559
  "data-testid": w,
26006
26560
  ...E,
26007
26561
  children: [/* @__PURE__ */ b("div", {
26008
- className: V(`${lb}__content`, ie),
26562
+ className: V(`${bb}__content`, ie),
26009
26563
  children: [/* @__PURE__ */ y(Yd, {
26010
26564
  id: O,
26011
26565
  level: "md",
26012
26566
  as: "h2",
26013
26567
  noMargins: !0,
26014
- className: V(`${lb}__heading`, ae),
26568
+ className: V(`${bb}__heading`, ae),
26015
26569
  children: e
26016
26570
  }), /* @__PURE__ */ y(Ic, {
26017
26571
  level: "md",
@@ -26029,40 +26583,40 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
26029
26583
  ] })
26030
26584
  })]
26031
26585
  }), /* @__PURE__ */ b("div", {
26032
- className: V(`${lb}__actions`, se),
26586
+ className: V(`${bb}__actions`, se),
26033
26587
  children: [/* @__PURE__ */ y(qd, {
26034
26588
  variant: "secondary",
26035
26589
  fullWidth: !0,
26036
- className: V(`${lb}__manage-button`, le),
26590
+ className: V(`${bb}__manage-button`, le),
26037
26591
  onClick: ee,
26038
26592
  children: s
26039
26593
  }), /* @__PURE__ */ b("div", {
26040
- className: V(`${lb}__accept-actions`, ce),
26594
+ className: V(`${bb}__accept-actions`, ce),
26041
26595
  children: [/* @__PURE__ */ y(qd, {
26042
26596
  variant: "accent",
26043
26597
  fullWidth: !0,
26044
- className: V(`${lb}__accept-necessary-button`, z),
26598
+ className: V(`${bb}__accept-necessary-button`, z),
26045
26599
  onClick: R,
26046
26600
  children: u
26047
26601
  }), /* @__PURE__ */ y(qd, {
26048
26602
  variant: "accent",
26049
26603
  fullWidth: !0,
26050
- className: V(`${lb}__accept-all-button`, z),
26604
+ className: V(`${bb}__accept-all-button`, z),
26051
26605
  onClick: L,
26052
26606
  children: c
26053
26607
  })]
26054
26608
  })]
26055
26609
  })]
26056
26610
  });
26057
- return /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(zv, {
26611
+ return /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(Xv, {
26058
26612
  open: !0,
26059
26613
  modal: o,
26060
26614
  size: "large",
26061
26615
  closeOnClickOutside: !1,
26062
- className: V(`${lb}__dialog`, ue),
26616
+ className: V(`${bb}__dialog`, ue),
26063
26617
  "aria-labelledby": O,
26064
26618
  children: de
26065
- }), /* @__PURE__ */ y(cb, {
26619
+ }), /* @__PURE__ */ y(yb, {
26066
26620
  open: k,
26067
26621
  cookies: i,
26068
26622
  preferences: P,
@@ -26072,7 +26626,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
26072
26626
  onPreferenceToggle: I,
26073
26627
  onSavePreferences: ne
26074
26628
  })] });
26075
- }, gb = "ucl-uikit-search", _b = ({ placeholder: e = "", testId: t = gb, onSearch: n, onClear: r, disabled: i = !1, m: a, mv: o, mh: s, mt: c, mb: l, ml: u, mr: d, noMargins: f, inputProps: p, clearButtonProps: m, submitButtonProps: h, className: v, ...x }) => {
26629
+ }, Db = "ucl-uikit-search", Ob = ({ placeholder: e = "", testId: t = Db, onSearch: n, onClear: r, disabled: i = !1, m: a, mv: o, mh: s, mt: c, mb: l, ml: u, mr: d, noMargins: f, inputProps: p, clearButtonProps: m, submitButtonProps: h, className: v, ...x }) => {
26076
26630
  let [S, C] = _(""), w = g(null), [T] = $(), E = (e) => {
26077
26631
  C(e.target.value);
26078
26632
  }, D = () => {
@@ -26083,7 +26637,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
26083
26637
  e.key === "Enter" && O();
26084
26638
  }, A = () => {
26085
26639
  O();
26086
- }, j = V(gb, H`
26640
+ }, j = V(Db, H`
26087
26641
  position: relative;
26088
26642
  height: 48px;
26089
26643
  `, Ac({
@@ -26159,7 +26713,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
26159
26713
  ]
26160
26714
  })]
26161
26715
  });
26162
- }, vb = "ucl-uikit-skip-to-content", yb = s(({ href: e = "#main-content", testId: t = vb, className: n, children: r = "Skip to content", ref: i, ...a }) => {
26716
+ }, kb = "ucl-uikit-skip-to-content", Ab = s(({ href: e = "#main-content", testId: t = kb, className: n, children: r = "Skip to content", ref: i, ...a }) => {
26163
26717
  let [o] = $(), s = H`
26164
26718
  box-sizing: border-box;
26165
26719
  display: flex;
@@ -26183,7 +26737,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
26183
26737
  padding-right: 60px;
26184
26738
  padding-left: 60px;
26185
26739
  }
26186
- `, c = V(vb, n);
26740
+ `, c = V(kb, n);
26187
26741
  return /* @__PURE__ */ y("div", {
26188
26742
  className: s,
26189
26743
  children: /* @__PURE__ */ y(qd, {
@@ -26198,13 +26752,13 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
26198
26752
  children: r
26199
26753
  })
26200
26754
  });
26201
- }), bb = "ucl-uikit-dropdown__trigger", xb = s(({ children: e }) => {
26755
+ }), jb = "ucl-uikit-dropdown__trigger", Mb = s(({ children: e }) => {
26202
26756
  let { isOpen: t, toggle: n, triggerRef: i, contentId: a } = Lm();
26203
26757
  if (!o(e)) return null;
26204
26758
  let s = e.props, c = s.onClick, l = s.onKeyDown;
26205
26759
  return r(e, {
26206
26760
  ref: i,
26207
- className: [bb, s.className].filter(Boolean).join(" "),
26761
+ className: [jb, s.className].filter(Boolean).join(" "),
26208
26762
  onClick: (e) => {
26209
26763
  c?.(e), e.defaultPrevented || n();
26210
26764
  },
@@ -26215,7 +26769,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
26215
26769
  "aria-expanded": t,
26216
26770
  "aria-controls": s["aria-controls"] ?? a
26217
26771
  });
26218
- }), Sb = "ucl-uikit-dropdown__content", Cb = 32, wb = 300, Tb = "header,[role=\"banner\"],[data-drawer-menu-boundary]", Eb = "a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", Db = (e) => typeof e == "number" ? `${e}px` : e, Ob = s(({ testId: e = Sb, topPx: t, bottomPx: n = 0, contentHeight: r, align: i = "right", variant: a = "dropdown", drawerBoundaryRef: o, drawerBoundarySelector: s = Tb, className: c, children: l, id: u, ...f }) => {
26772
+ }), Nb = "ucl-uikit-dropdown__content", Pb = 32, Fb = 300, Ib = "header,[role=\"banner\"],[data-drawer-menu-boundary]", Lb = "a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", Rb = (e) => typeof e == "number" ? `${e}px` : e, zb = s(({ testId: e = Nb, topPx: t, bottomPx: n = 0, contentHeight: r, align: i = "right", variant: a = "dropdown", drawerBoundaryRef: o, drawerBoundarySelector: s = Ib, className: c, children: l, id: u, ...f }) => {
26219
26773
  let [p] = $(), { isOpen: m, contentRef: h, contentId: v, triggerRef: b } = Lm(), [x, S] = _(void 0), [C, w] = _(0), T = nf(`(min-width: ${p.breakpoints.tablet}px)`), E = a === "drawer", D = g(m);
26220
26774
  d(() => {
26221
26775
  let e = D.current;
@@ -26237,7 +26791,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
26237
26791
  e.target === t && e.propertyName === "transform" && i();
26238
26792
  };
26239
26793
  t.addEventListener("transitionend", a);
26240
- let o = window.setTimeout(i, wb);
26794
+ let o = window.setTimeout(i, Fb);
26241
26795
  return () => {
26242
26796
  t.removeEventListener("transitionend", a), window.clearTimeout(o);
26243
26797
  };
@@ -26257,7 +26811,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
26257
26811
  t.style.overflow = "hidden", r.forEach(({ element: e }) => {
26258
26812
  e.setAttribute("aria-hidden", "true"), e.inert = !0;
26259
26813
  });
26260
- let i = () => Array.from(e.querySelectorAll(Eb)).filter((e) => !e.hasAttribute("disabled")), a = i();
26814
+ let i = () => Array.from(e.querySelectorAll(Lb)).filter((e) => !e.hasAttribute("disabled")), a = i();
26261
26815
  a.length > 0 ? a[0].focus() : e.focus();
26262
26816
  let o = (t) => {
26263
26817
  if (t.key !== "Tab") return;
@@ -26282,7 +26836,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
26282
26836
  if (typeof document > "u" || !E || !T || !m) return;
26283
26837
  let e = h.current;
26284
26838
  if (!e) return;
26285
- let t = b.current, n = o?.current ?? t?.closest(s), r = n ? [n] : [t, e].filter((e) => !!e), i = () => Array.from(new Set(r.flatMap((e) => Array.from(e.querySelectorAll(Eb))))).filter((e) => !e.hasAttribute("disabled")), a = (t) => {
26839
+ let t = b.current, n = o?.current ?? t?.closest(s), r = n ? [n] : [t, e].filter((e) => !!e), i = () => Array.from(new Set(r.flatMap((e) => Array.from(e.querySelectorAll(Lb))))).filter((e) => !e.hasAttribute("disabled")), a = (t) => {
26286
26840
  if (t.key !== "Tab") return;
26287
26841
  let n = i();
26288
26842
  if (n.length === 0) {
@@ -26311,7 +26865,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
26311
26865
  }
26312
26866
  let e = () => {
26313
26867
  let e = h.current?.getBoundingClientRect().top ?? 0;
26314
- S(Math.max(window.innerHeight - e - Cb, 0));
26868
+ S(Math.max(window.innerHeight - e - Pb, 0));
26315
26869
  };
26316
26870
  return e(), window.addEventListener("resize", e), () => {
26317
26871
  window.removeEventListener("resize", e);
@@ -26340,7 +26894,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
26340
26894
  t,
26341
26895
  b
26342
26896
  ]);
26343
- let O = t === void 0 ? `${C}px` : Db(t), k = Db(n), A = r === void 0 ? `calc(100dvh - ${O} - ${k})` : Db(r), j = H`
26897
+ let O = t === void 0 ? `${C}px` : Rb(t), k = Rb(n), A = r === void 0 ? `calc(100dvh - ${O} - ${k})` : Rb(r), j = H`
26344
26898
  display: none;
26345
26899
  z-index: 9999;
26346
26900
  position: fixed;
@@ -26384,8 +26938,8 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
26384
26938
  pointer-events: none;
26385
26939
  transform: translateX(100%);
26386
26940
  transition:
26387
- transform ${wb}ms ease-in,
26388
- visibility 0ms linear ${wb}ms;
26941
+ transform ${Fb}ms ease-in,
26942
+ visibility 0ms linear ${Fb}ms;
26389
26943
  will-change: transform;
26390
26944
 
26391
26945
  @media (min-width: ${p.breakpoints.tablet}px) {
@@ -26426,8 +26980,8 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
26426
26980
  visibility: visible;
26427
26981
  pointer-events: auto;
26428
26982
  transform: translateX(0);
26429
- transition: transform ${wb}ms ease-out;
26430
- `, ee = V(Sb, j, E && M, !E && t !== void 0 && N, i === "left" && (E ? F : P), i === "right" && I, m && (E ? R : L)), te = H`
26983
+ transition: transform ${Fb}ms ease-out;
26984
+ `, ee = V(Nb, j, E && M, !E && t !== void 0 && N, i === "left" && (E ? F : P), i === "right" && I, m && (E ? R : L)), te = H`
26431
26985
  box-sizing: border-box;
26432
26986
  width: 100%;
26433
26987
  max-width: 100%;
@@ -26460,7 +27014,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
26460
27014
  })
26461
27015
  });
26462
27016
  return T ? ie : (0, ud.createPortal)(ie, document.body);
26463
- }), kb = "ucl-uikit-dropdown", Ab = ({ testId: e = kb, className: t, children: n, ...r }) => {
27017
+ }), Bb = "ucl-uikit-dropdown", Vb = ({ testId: e = Bb, className: t, children: n, ...r }) => {
26464
27018
  let [i] = $(), { isOpen: a, setIsOpen: o, triggerRef: s, contentRef: c } = Lm(), l = g(a);
26465
27019
  d(() => {
26466
27020
  let e = (e) => {
@@ -26479,7 +27033,7 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
26479
27033
  ]), d(() => {
26480
27034
  l.current && !a && s.current?.focus(), l.current = a;
26481
27035
  }, [a, s]);
26482
- let u = V(kb, H`
27036
+ let u = V(Bb, H`
26483
27037
  position: relative;
26484
27038
  display: inline-flex;
26485
27039
  font-family: ${i.font.family.primary};
@@ -26490,13 +27044,13 @@ var Dy = ({ month: e, pickedDate: t, onDatePick: n = () => {}, minDate: r, maxDa
26490
27044
  ...r,
26491
27045
  children: n
26492
27046
  });
26493
- }, jb = ({ defaultOpen: e = !1, ...t }) => /* @__PURE__ */ y(zm, {
27047
+ }, Hb = ({ defaultOpen: e = !1, ...t }) => /* @__PURE__ */ y(zm, {
26494
27048
  defaultOpen: e,
26495
- children: /* @__PURE__ */ y(Ab, { ...t })
27049
+ children: /* @__PURE__ */ y(Vb, { ...t })
26496
27050
  });
26497
- jb.Trigger = xb, jb.Content = Ob;
27051
+ Hb.Trigger = Mb, Hb.Content = zb;
26498
27052
  // lib/components/DropdownMenu/DropdownMenuTrigger.tsx
26499
- var Mb = ({ isDesktop: e, label: t, triggerAriaLabelCollapsed: n, triggerAriaLabelExpanded: r, className: i, ...a }) => {
27053
+ var Ub = ({ isDesktop: e, label: t, triggerAriaLabelCollapsed: n, triggerAriaLabelExpanded: r, className: i, ...a }) => {
26500
27054
  let o = !!a["aria-expanded"], s = o ? r : n, c = o ? /* @__PURE__ */ y(U.X, {
26501
27055
  title: "Close menu",
26502
27056
  testId: "ucl-uikit-dropdown-menu__icon-close"
@@ -26519,10 +27073,10 @@ var Mb = ({ isDesktop: e, label: t, triggerAriaLabelCollapsed: n, triggerAriaLab
26519
27073
  ...a,
26520
27074
  children: c
26521
27075
  });
26522
- }, Nb = "ucl-uikit-dropdown-menu", Pb = ({ children: e }) => {
27076
+ }, Wb = "ucl-uikit-dropdown-menu", Gb = ({ children: e }) => {
26523
27077
  let { setIsOpen: t } = Lm();
26524
27078
  return typeof e == "function" ? e({ close: () => t(!1) }) : e;
26525
- }, Fb = ({ align: e = "right", children: t, label: n = "MENU", triggerAriaLabelCollapsed: r = "Open menu", triggerAriaLabelExpanded: i = "Close menu", dropdownClassName: a, triggerClassName: o, contentClassName: s, className: c, ...l }) => {
27079
+ }, Kb = ({ align: e = "right", children: t, label: n = "MENU", triggerAriaLabelCollapsed: r = "Open menu", triggerAriaLabelExpanded: i = "Close menu", dropdownClassName: a, triggerClassName: o, contentClassName: s, className: c, ...l }) => {
26526
27080
  let [u] = $(), d = nf(`(min-width: ${u.breakpoints.desktop}px)`), f = H`
26527
27081
  color: ${u.colour.text.brandPrimary};
26528
27082
  font-family: ${u.typography.body.mdNumeric.fontFamily};
@@ -26530,7 +27084,7 @@ var Mb = ({ isDesktop: e, label: t, triggerAriaLabelCollapsed: n, triggerAriaLab
26530
27084
  font-size: ${u.typography.body.mdNumeric.fontSize}px;
26531
27085
  font-weight: ${u.typography.body.mdNumeric.fontWeight};
26532
27086
  line-height: ${u.typography.body.mdNumeric.lineHeight}%;
26533
- `, p = V(Nb, a), m = V(f, c, o), h = V(H`
27087
+ `, p = V(Wb, a), m = V(f, c, o), h = V(H`
26534
27088
  background-color: ${u.colour.surface.primary};
26535
27089
 
26536
27090
  @media (min-width: ${u.breakpoints.tablet}px) {
@@ -26540,25 +27094,25 @@ var Mb = ({ isDesktop: e, label: t, triggerAriaLabelCollapsed: n, triggerAriaLab
26540
27094
  border-radius: ${u.radius.r4};
26541
27095
  }
26542
27096
  `, s);
26543
- return /* @__PURE__ */ b(jb, {
27097
+ return /* @__PURE__ */ b(Hb, {
26544
27098
  className: p,
26545
27099
  ...l,
26546
- children: [/* @__PURE__ */ y(jb.Trigger, { children: /* @__PURE__ */ y(Mb, {
27100
+ children: [/* @__PURE__ */ y(Hb.Trigger, { children: /* @__PURE__ */ y(Ub, {
26547
27101
  isDesktop: d,
26548
27102
  label: n,
26549
27103
  triggerAriaLabelCollapsed: r,
26550
27104
  triggerAriaLabelExpanded: i,
26551
27105
  className: m
26552
- }) }), /* @__PURE__ */ y(jb.Content, {
27106
+ }) }), /* @__PURE__ */ y(Hb.Content, {
26553
27107
  className: h,
26554
27108
  align: e,
26555
- children: /* @__PURE__ */ y(Pb, { children: t })
27109
+ children: /* @__PURE__ */ y(Gb, { children: t })
26556
27110
  })]
26557
27111
  });
26558
- }, Ib = Mb, Lb = "ucl-uikit-drawer-menu", Rb = ({ children: e }) => {
27112
+ }, qb = Ub, Jb = "ucl-uikit-drawer-menu", Yb = ({ children: e }) => {
26559
27113
  let { setIsOpen: t } = Lm();
26560
27114
  return typeof e == "function" ? e({ close: () => t(!1) }) : e;
26561
- }, zb = ({ topPx: e, bottomPx: t, contentHeight: n, boundaryRef: r, boundarySelector: i, align: a = "right", children: o, label: s = "MENU", triggerAriaLabelCollapsed: c = "Open menu", triggerAriaLabelExpanded: l = "Close menu", dropdownClassName: u, triggerClassName: d, contentClassName: f, className: p, ...m }) => {
27115
+ }, Xb = ({ topPx: e, bottomPx: t, contentHeight: n, boundaryRef: r, boundarySelector: i, align: a = "right", children: o, label: s = "MENU", triggerAriaLabelCollapsed: c = "Open menu", triggerAriaLabelExpanded: l = "Close menu", dropdownClassName: u, triggerClassName: d, contentClassName: f, className: p, ...m }) => {
26562
27116
  let [h] = $(), g = nf(`(min-width: ${h.breakpoints.desktop}px)`), _ = H`
26563
27117
  color: ${h.colour.text.brandPrimary};
26564
27118
  font-family: ${h.typography.body.mdNumeric.fontFamily};
@@ -26566,7 +27120,7 @@ var Mb = ({ isDesktop: e, label: t, triggerAriaLabelCollapsed: n, triggerAriaLab
26566
27120
  font-size: ${h.typography.body.mdNumeric.fontSize}px;
26567
27121
  font-weight: ${h.typography.body.mdNumeric.fontWeight};
26568
27122
  line-height: ${h.typography.body.mdNumeric.lineHeight}%;
26569
- `, v = V(Lb, u), x = V(_, p, d), S = V(H`
27123
+ `, v = V(Jb, u), x = V(_, p, d), S = V(H`
26570
27124
  background-color: ${h.colour.surface.primary};
26571
27125
 
26572
27126
  @media (min-width: ${h.breakpoints.tablet}px) {
@@ -26574,16 +27128,16 @@ var Mb = ({ isDesktop: e, label: t, triggerAriaLabelCollapsed: n, triggerAriaLab
26574
27128
  border-left: ${h.border.b1} solid ${h.colour.border.default};
26575
27129
  }
26576
27130
  `, f);
26577
- return /* @__PURE__ */ b(jb, {
27131
+ return /* @__PURE__ */ b(Hb, {
26578
27132
  className: v,
26579
27133
  ...m,
26580
- children: [/* @__PURE__ */ y(jb.Trigger, { children: /* @__PURE__ */ y(Ib, {
27134
+ children: [/* @__PURE__ */ y(Hb.Trigger, { children: /* @__PURE__ */ y(qb, {
26581
27135
  isDesktop: g,
26582
27136
  label: s,
26583
27137
  triggerAriaLabelCollapsed: c,
26584
27138
  triggerAriaLabelExpanded: l,
26585
27139
  className: x
26586
- }) }), /* @__PURE__ */ y(jb.Content, {
27140
+ }) }), /* @__PURE__ */ y(Hb.Content, {
26587
27141
  className: S,
26588
27142
  align: a,
26589
27143
  variant: "drawer",
@@ -26592,10 +27146,10 @@ var Mb = ({ isDesktop: e, label: t, triggerAriaLabelCollapsed: n, triggerAriaLab
26592
27146
  contentHeight: n,
26593
27147
  drawerBoundaryRef: r,
26594
27148
  drawerBoundarySelector: i,
26595
- children: /* @__PURE__ */ y(Rb, { children: o })
27149
+ children: /* @__PURE__ */ y(Yb, { children: o })
26596
27150
  })]
26597
27151
  });
26598
- }, Bb = "ucl-uikit-sidebar", Vb = ({ collapsed: e, defaultCollapsed: t = !1, onCollapsedChange: r, testId: i = Bb, collapseButtonAriaLabel: a = "Collapse sidebar", expandButtonAriaLabel: o = "Expand sidebar", className: s, children: c, ...l }) => {
27152
+ }, Zb = "ucl-uikit-sidebar", Qb = ({ collapsed: e, defaultCollapsed: t = !1, onCollapsedChange: r, testId: i = Zb, collapseButtonAriaLabel: a = "Collapse sidebar", expandButtonAriaLabel: o = "Expand sidebar", className: s, children: c, ...l }) => {
26599
27153
  let [u] = $(), d = f(), [p, m] = _(t), h = e ?? p, g = () => {
26600
27154
  let t = !h;
26601
27155
  e === void 0 && m(t), r?.(t);
@@ -26669,7 +27223,7 @@ var Mb = ({ isDesktop: e, label: t, triggerAriaLabelCollapsed: n, triggerAriaLab
26669
27223
  background-color: ${u.colour.fill.brandSubtleHover};
26670
27224
  color: ${u.colour.icon.brandHover};
26671
27225
  }
26672
- `, D = V(Bb, v, h && x, s), O = V(S, h && C), k = V(w, h && T), A = Hb(n.only(c), {
27226
+ `, D = V(Zb, v, h && x, s), O = V(S, h && C), k = V(w, h && T), A = $b(n.only(c), {
26673
27227
  collapsed: h,
26674
27228
  className: O,
26675
27229
  id: d
@@ -26696,11 +27250,11 @@ var Mb = ({ isDesktop: e, label: t, triggerAriaLabelCollapsed: n, triggerAriaLab
26696
27250
  })
26697
27251
  })]
26698
27252
  });
26699
- }, Hb = (e, t) => r(e, {
27253
+ }, $b = (e, t) => r(e, {
26700
27254
  id: t.id,
26701
27255
  collapsed: t.collapsed,
26702
27256
  className: V(t.className, e.props.className)
26703
- }), Ub = s(Vb), Wb = "ucl-uikit-dropdown-user-menu", Gb = ({ children: e, userName: t, imageUrl: n, avatarVariant: r = "image", avatarSize: i = 32, triggerAriaLabel: a = "Open user menu", dropdownClassName: o, triggerClassName: s, contentClassName: c, avatarClassName: l, userNameClassName: u, className: d, ...f }) => {
27257
+ }), ex = s(Qb), tx = "ucl-uikit-dropdown-user-menu", nx = ({ children: e, userName: t, imageUrl: n, avatarVariant: r = "image", avatarSize: i = 32, triggerAriaLabel: a = "Open user menu", dropdownClassName: o, triggerClassName: s, contentClassName: c, avatarClassName: l, userNameClassName: u, className: d, ...f }) => {
26704
27258
  let [p] = $(), m = nf(`(min-width: ${p.breakpoints.desktop}px)`), h = H`
26705
27259
  display: inline-flex;
26706
27260
  align-items: center;
@@ -26733,11 +27287,11 @@ var Mb = ({ isDesktop: e, label: t, triggerAriaLabelCollapsed: n, triggerAriaLab
26733
27287
  box-shadow: ${p.boxShadow.y1};
26734
27288
  border-radius: ${p.radius.r4};
26735
27289
  }
26736
- `, x = V(Wb, o), S = V(h, d, s), C = V(g, u), w = V(_, l), T = V(v, c);
26737
- return /* @__PURE__ */ b(jb, {
27290
+ `, x = V(tx, o), S = V(h, d, s), C = V(g, u), w = V(_, l), T = V(v, c);
27291
+ return /* @__PURE__ */ b(Hb, {
26738
27292
  className: x,
26739
27293
  ...f,
26740
- children: [/* @__PURE__ */ y(jb.Trigger, { children: /* @__PURE__ */ b("div", {
27294
+ children: [/* @__PURE__ */ y(Hb.Trigger, { children: /* @__PURE__ */ b("div", {
26741
27295
  tabIndex: 0,
26742
27296
  role: "button",
26743
27297
  "aria-label": a,
@@ -26759,12 +27313,12 @@ var Mb = ({ isDesktop: e, label: t, triggerAriaLabelCollapsed: n, triggerAriaLab
26759
27313
  }),
26760
27314
  /* @__PURE__ */ y(U.ChevronDown, { size: 20 })
26761
27315
  ]
26762
- }) }), /* @__PURE__ */ y(jb.Content, {
27316
+ }) }), /* @__PURE__ */ y(Hb.Content, {
26763
27317
  className: T,
26764
27318
  children: e
26765
27319
  })]
26766
27320
  });
26767
- }, Kb = "ucl-uikit-layout", qb = ({ children: e, testId: t = Kb, className: n, ...r }) => {
27321
+ }, rx = "ucl-uikit-layout", ix = ({ children: e, testId: t = rx, className: n, ...r }) => {
26768
27322
  let [i] = $(), a = V(H`
26769
27323
  display: grid;
26770
27324
  grid-template-columns: repeat(4, 1fr);
@@ -26800,13 +27354,13 @@ var Mb = ({ isDesktop: e, label: t, triggerAriaLabelCollapsed: n, triggerAriaLab
26800
27354
  ...r,
26801
27355
  children: e
26802
27356
  });
26803
- }, Jb = "ucl-uikit-main", Yb = ({ layout: e = !1, testId: t = Jb, className: n, children: r, ...i }) => {
26804
- let a = V(Jb, n);
27357
+ }, ax = "ucl-uikit-main", ox = ({ layout: e = !1, testId: t = ax, className: n, children: r, ...i }) => {
27358
+ let a = V(ax, n);
26805
27359
  return /* @__PURE__ */ y("main", {
26806
27360
  className: a,
26807
27361
  "data-testid": t,
26808
27362
  ...i,
26809
- children: e ? /* @__PURE__ */ y(qb, { children: r }) : r
27363
+ children: e ? /* @__PURE__ */ y(ix, { children: r }) : r
26810
27364
  });
26811
27365
  };
26812
- export { up as APP_HEADER_HEIGHT, U_ as Accordion, v_ as Alert, dp as AppHeader, km as AppMenu, Cf as Avatar, Df as Badge, kf as BaseCheckbox, zv as BaseDialog, Cd as Blanket, Ap as Breadcrumbs, Ep as BreadcrumbsLegacy, bp as BreadcrumbsNew, qd as Button, Ry as Calendar, Zd as Callout, Np as Checkbox, gm as Chip, ul as ConfidentialDisplayField, il as ConfidentialInput, rb as CookieNotice, hb as CookiesNotice, ay as Datepicker, Iv as Dialog, sl as DisplayField, kh as Divider, zb as DrawerMenu, Jy as DropZone, jb as Dropdown, Fb as DropdownMenu, Gb as DropdownUserMenu, Uv as ErrorDialog, Vv as FeedbackDialog, Uc as Field, Xy as FileInput, lf as Filter, mf as Filters, ig as Footer, Qh as FooterNew, xg as Header, Ig as HeaderDraft, vg as HeaderNew, Yd as Heading, Yd as HeadingNew, U as Icon, Qc as IconButton, Yc as Input, ef as Label, Ip as LabelledCheckbox, Yv as LabelledRadio, qb as Layout, hl as Link, Yb as Main, Dh as Menu, Sh as MenuLegacy, ch as MenuNew, Yf as Modal, cy as NativeDatepicker, Eg as NavigationBar, Ed as Overlay, Dv as Pagination, Ic as Paragraph, Ic as ParagraphNew, Nf as ProgressBar, df as QuickFilter, Kv as Radio, _b as Search, nm as Select, Ub as Sidebar, Uf as Skeleton, yb as SkipToContent, gf as Snackbar, yf as Snackbars, yl as Spinner, _l as StandaloneLink, l_ as Table, P_ as Tabs, Mc as Text, Kf as Textarea, kc as ThemeConsumer, Oc as ThemeContextConsumer, Dc as ThemeContextProvider, $y as Timepicker, Vp as Toggle, pm as ToggleGroup, kd as Tooltip, rv as UIKIT_DND_DATA_TYPE, Xf as UclLogo, Zf as UclLogoNegativeSpace, np as UclLogoNew, Gy as WeekPicker, Q_ as announce, H as css, V as cx, cc as darkTheme, ac as lightTheme, X as theme, xc as themes, yc as uikitFontUrls, bc as uikitFonts, yv as useDraggable, gv as useDropZone, nv as useFocusTrap, nf as useMediaQuery, $ as useTheme };
27366
+ export { up as APP_HEADER_HEIGHT, ev as Accordion, k_ as Alert, dp as AppHeader, km as AppMenu, Cf as Avatar, Df as Badge, kf as BaseCheckbox, Xv as BaseDialog, Cd as Blanket, Ap as Breadcrumbs, Ep as BreadcrumbsLegacy, bp as BreadcrumbsNew, qd as Button, Yy as Calendar, Zd as Callout, Np as Checkbox, gm as Chip, ul as ConfidentialDisplayField, il as ConfidentialInput, mb as CookieNotice, Eb as CookiesNotice, gy as Datepicker, qv as Dialog, sl as DisplayField, Bh as Divider, Xb as DrawerMenu, ab as DropZone, Hb as Dropdown, Kb as DropdownMenu, nx as DropdownUserMenu, ey as ErrorDialog, Qv as FeedbackDialog, Uc as Field, sb as FileInput, lf as Filter, mf as Filters, hg as Footer, lg as FooterNew, Mg as Header, qg as HeaderDraft, kg as HeaderNew, Yd as Heading, Yd as HeadingNew, U as Icon, Qc as IconButton, Yc as Input, ef as Label, Ip as LabelledCheckbox, oy as LabelledRadio, ix as Layout, hl as Link, ox as Main, Dh as Menu, Sh as MenuLegacy, ch as MenuNew, Yf as Modal, Rh as MultiSelect, yy as NativeDatepicker, Lg as NavigationBar, Ed as Overlay, Rv as Pagination, Ic as Paragraph, Ic as ParagraphNew, Nf as ProgressBar, df as QuickFilter, ry as Radio, Ob as Search, nm as Select, ex as Sidebar, Uf as Skeleton, Ab as SkipToContent, gf as Snackbar, yf as Snackbars, yl as Spinner, _l as StandaloneLink, b_ as Table, G_ as Tabs, Mc as Text, Kf as Textarea, kc as ThemeConsumer, Oc as ThemeContextConsumer, Dc as ThemeContextProvider, ub as Timepicker, Vp as Toggle, pm as ToggleGroup, kd as Tooltip, mv as UIKIT_DND_DATA_TYPE, Xf as UclLogo, Zf as UclLogoNegativeSpace, np as UclLogoNew, nb as WeekPicker, lv as announce, H as css, V as cx, cc as darkTheme, ac as lightTheme, X as theme, xc as themes, yc as uikitFontUrls, bc as uikitFonts, Av as useDraggable, Dv as useDropZone, pv as useFocusTrap, nf as useMediaQuery, $ as useTheme };