@kystverket/styrbord 1.3.13 → 1.3.14

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.
package/dist/main.js CHANGED
@@ -3,8 +3,8 @@ var j9 = Object.defineProperty;
3
3
  var y9 = (r, n, e) => n in r ? j9(r, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[n] = e;
4
4
  var B = (r, n, e) => y9(r, typeof n != "symbol" ? n + "" : n, e);
5
5
  import * as C from "react";
6
- import p, { useRef as Z2, useCallback as o3, useState as y2, useEffect as z1, createContext as q7, useImperativeHandle as O9, useContext as k7, useLayoutEffect as Q4, cloneElement as Z4, createRef as R1, Component as v2, createElement as j7 } from "react";
7
- import { ValidationMessage as b1, Label as z3, Spinner as k3, Details as W9, DetailsSummary as T9, DetailsContent as X9, Card as m7, Heading as S1, Paragraph as j2, Tooltip as G9, Alert as P9, Fieldset as I3, Checkbox as R4, Radio as J9, Select as k1, Divider as E5, Field as B1, Input as s0, Dialog as H9, Button as v7, Textfield as y7, Tabs as K0, Tag as F9, Link as w9, Table as _1, Avatar as L9 } from "@digdir/designsystemet-react";
6
+ import p, { useRef as Z2, useCallback as o3, useState as q2, useEffect as o1, createContext as q7, useImperativeHandle as O9, useContext as k7, useLayoutEffect as Q4, cloneElement as Z4, createRef as R1, Component as v2, createElement as j7 } from "react";
7
+ import { ValidationMessage as b1, Label as z3, Spinner as k3, Details as W9, DetailsSummary as T9, DetailsContent as X9, Card as m7, Heading as S1, Paragraph as y2, Tooltip as G9, Alert as P9, Fieldset as I3, Checkbox as R4, Radio as J9, Select as k1, Divider as E5, Field as B1, Input as s0, Dialog as H9, Button as v7, Textfield as y7, Tabs as K0, Tag as F9, Link as w9, Table as _1, Avatar as L9 } from "@digdir/designsystemet-react";
8
8
  import { Badge as dI, BadgePosition as MI, Breadcrumbs as mI, BreadcrumbsItem as vI, BreadcrumbsLink as pI, BreadcrumbsList as hI, Card as zI, CardBlock as gI, Checkbox as QI, Chip as ZI, ChipButton as RI, ChipCheckbox as bI, ChipRadio as SI, ChipRemovable as BI, Combobox as UI, ComboboxEmpty as YI, ComboboxOption as xI, Details as VI, DetailsContent as KI, DetailsSummary as qI, Dialog as kI, DialogBlock as jI, DialogTrigger as yI, DialogTriggerContext as OI, Divider as WI, Dropdown as TI, DropdownButton as XI, DropdownHeading as GI, DropdownItem as PI, DropdownList as JI, DropdownTrigger as HI, DropdownTriggerContext as FI, EXPERIMENTAL_Suggestion as wI, EXPERIMENTAL_SuggestionClear as LI, EXPERIMENTAL_SuggestionEmpty as DI, EXPERIMENTAL_SuggestionInput as NI, EXPERIMENTAL_SuggestionList as _I, EXPERIMENTAL_SuggestionOption as $I, ErrorSummary as eE, ErrorSummaryHeading as tE, ErrorSummaryItem as nE, ErrorSummaryLink as rE, ErrorSummaryList as AE, Field as iE, FieldAffix as aE, FieldAffixes as lE, FieldCounter as cE, FieldDescription as oE, Fieldset as IE, FieldsetDescription as EE, FieldsetLegend as fE, Heading as CE, Input as sE, Label as uE, List as dE, ListItem as ME, ListOrdered as mE, ListUnordered as vE, Pagination as pE, PaginationButton as hE, PaginationItem as zE, PaginationList as gE, Paragraph as QE, Popover as ZE, PopoverTrigger as RE, PopoverTriggerContext as bE, Radio as SE, RovingFocusItem as BE, RovingFocusRoot as UE, Search as YE, SearchButton as xE, SearchClear as VE, SearchInput as KE, SelectOptgroup as qE, Skeleton as kE, SkipLink as jE, Spinner as yE, EXPERIMENTAL_Suggestion as OE, Switch as WE, TableBody as TE, TableCell as XE, TableFoot as GE, TableHead as PE, TableHeaderCell as JE, TableRow as HE, TabsList as FE, TabsPanel as wE, TabsTab as LE, Textarea as DE, Textfield as NE, ToggleGroup as _E, ToggleGroupItem as $E, Tooltip as ef, ValidationMessage as tf, omit as nf, useCheckboxGroup as rf, useDebounceCallback as Af, useIsomorphicLayoutEffect as af, useMediaQuery as lf, usePagination as cf, useRadioGroup as of, useSynchronizedAnimation as If } from "@digdir/designsystemet-react";
9
9
  import * as D9 from "react-dom";
10
10
  import N9 from "react-dom";
@@ -349,7 +349,7 @@ const le = "_frame_ilave_1", ce = "_content_ilave_17", oe = "_file_ilave_22", Ie
349
349
  pdf: { showDownload: !0, showOpenInNew: !0 },
350
350
  image: { showDownload: !0, showOpenInNew: !0 },
351
351
  json: { showDownload: !0, showOpenInNew: !0 }
352
- }, ve = "_image_1wxh0_1", pe = "_thumbnail_1wxh0_7", he = "_flexCenter_1wxh0_13", ze = "_previewFile_1wxh0_22", ge = "_JsonPreview_1wxh0_30", f1 = {
352
+ }, ve = "_image_1wxh0_1", pe = "_thumbnail_1wxh0_7", he = "_flexCenter_1wxh0_13", ze = "_previewFile_1wxh0_22", ge = "_JsonPreview_1wxh0_30", C1 = {
353
353
  image: ve,
354
354
  thumbnail: pe,
355
355
  flexCenter: he,
@@ -369,7 +369,7 @@ const le = "_frame_ilave_1", ce = "_content_ilave_17", oe = "_file_ilave_22", Ie
369
369
  if (r.contentType === "image") return /* @__PURE__ */ I.jsx(Ze, { file: r, className: n });
370
370
  if (r.contentType === "pdf") return /* @__PURE__ */ I.jsx(Be, { tabIndex: t, file: r, className: n });
371
371
  if (r.contentType === "json") return /* @__PURE__ */ I.jsx(be, { tabIndex: t, file: r, className: n });
372
- }, Qe = ({ file: r, className: n }) => /* @__PURE__ */ I.jsx("img", { src: r.src, className: `${f1.image} ${n || ""}` }), Ze = ({ file: r, className: n }) => /* @__PURE__ */ I.jsx("img", { className: `${f1.previewFile} ${n || ""}`, src: r.src }), Re = ({ file: r, className: n }) => /* @__PURE__ */ I.jsx(y, { align: "center", justify: "center", className: `${f1.thumbnail} ${f1.flexCenter} ${n || ""}`, children: /* @__PURE__ */ I.jsx("p", { children: r.fileName }) });
372
+ }, Qe = ({ file: r, className: n }) => /* @__PURE__ */ I.jsx("img", { src: r.src, className: `${C1.image} ${n || ""}` }), Ze = ({ file: r, className: n }) => /* @__PURE__ */ I.jsx("img", { className: `${C1.previewFile} ${n || ""}`, src: r.src }), Re = ({ file: r, className: n }) => /* @__PURE__ */ I.jsx(y, { align: "center", justify: "center", className: `${C1.thumbnail} ${C1.flexCenter} ${n || ""}`, children: /* @__PURE__ */ I.jsx("p", { children: r.fileName }) });
373
373
  function be({
374
374
  file: r,
375
375
  className: n,
@@ -388,17 +388,17 @@ function be({
388
388
  {
389
389
  onDoubleClick: A,
390
390
  onKeyDown: i,
391
- className: `${f1.previewFile} ${f1.JsonPreview} ${n || ""}`,
391
+ className: `${C1.previewFile} ${C1.JsonPreview} ${n || ""}`,
392
392
  tabIndex: e ?? 0,
393
393
  children: JSON.stringify(r.data, null, 2)
394
394
  }
395
395
  );
396
396
  }
397
- const Se = ({ file: r, className: n }) => /* @__PURE__ */ I.jsx(y, { className: `${f1.thumbnail} ${f1.flexCenter} ${n || ""}`, children: /* @__PURE__ */ I.jsx("p", { children: r.fileName }) }), Be = ({
397
+ const Se = ({ file: r, className: n }) => /* @__PURE__ */ I.jsx(y, { className: `${C1.thumbnail} ${C1.flexCenter} ${n || ""}`, children: /* @__PURE__ */ I.jsx("p", { children: r.fileName }) }), Be = ({
398
398
  file: r,
399
399
  className: n,
400
400
  tabIndex: e
401
- }) => /* @__PURE__ */ I.jsx("embed", { tabIndex: e, className: `${f1.previewFile} ${n || ""}`, src: r.src }), Ue = () => {
401
+ }) => /* @__PURE__ */ I.jsx("embed", { tabIndex: e, className: `${C1.previewFile} ${n || ""}`, src: r.src }), Ue = () => {
402
402
  const r = Z2(null), n = Z2(!1), e = Z2(!1), t = Z2(0), A = Z2(0), i = o3((c) => {
403
403
  r.current && (n.current = !0, e.current = !1, t.current = c.pageX - r.current.offsetLeft, A.current = r.current.scrollLeft);
404
404
  }, []), a = o3((c) => {
@@ -434,15 +434,15 @@ const Se = ({ file: r, className: n }) => /* @__PURE__ */ I.jsx(y, { className:
434
434
  n.href = r.src, n.download = r.fileName, document.body.appendChild(n), n.click(), document.body.removeChild(n);
435
435
  });
436
436
  }, xe = (r) => ({ ...me[r.contentType], ...r.buttons }), Ve = ({ animation: r = "slide", onClose: n, files: e, startIndex: t }) => {
437
- const A = Z2(null), [i, a] = y2(e[t ?? 0]), [l, c] = y2(t ?? 0), o = Z2(l), E = Z2([]), { scrollRef: f, hasMovedRef: s, handlers: u } = Ue(), d = xe(i);
438
- z1(() => {
437
+ const A = Z2(null), [i, a] = q2(e[t ?? 0]), [l, c] = q2(t ?? 0), o = Z2(l), E = Z2([]), { scrollRef: f, hasMovedRef: s, handlers: u } = Ue(), d = xe(i);
438
+ o1(() => {
439
439
  var b;
440
440
  a(e[l]), o.current = l, E.current[l] && ((b = E.current[l]) == null || b.scrollIntoView({
441
441
  behavior: "smooth",
442
442
  block: "nearest",
443
443
  inline: "center"
444
444
  }));
445
- }, [l]), z1(() => {
445
+ }, [l]), o1(() => {
446
446
  const b = (Y) => {
447
447
  Y.key === "ArrowRight" ? Q() : Y.key === "ArrowLeft" ? U() : Y.key === "Escape" && m();
448
448
  };
@@ -462,14 +462,14 @@ const Se = ({ file: r, className: n }) => /* @__PURE__ */ I.jsx(y, { className:
462
462
  }, U = () => {
463
463
  o.current > 0 && c((b) => b - 1);
464
464
  }, V = (b) => b === l ? B2.selected : b < l ? B2.previous : B2.next;
465
- return z1(() => {
465
+ return o1(() => {
466
466
  var b;
467
467
  return (b = A.current) == null ? void 0 : b.showModal();
468
468
  }, []), /* @__PURE__ */ I.jsxs("dialog", { ref: A, className: B2.frame, onClose: m, children: [
469
469
  /* @__PURE__ */ I.jsxs(y, { horizontal: !0, justify: "between", className: B2.nav, children: [
470
470
  /* @__PURE__ */ I.jsxs(y, { children: [
471
- /* @__PURE__ */ I.jsx(j2, { style: { color: "#EBECED" }, children: i.fileName }),
472
- i.fileSize && /* @__PURE__ */ I.jsx(j2, { "data-size": "sm", style: { color: "var(--ds-color-neutral-text-subtle)" }, children: i.fileSize })
471
+ /* @__PURE__ */ I.jsx(y2, { style: { color: "#EBECED" }, children: i.fileName }),
472
+ i.fileSize && /* @__PURE__ */ I.jsx(y2, { "data-size": "sm", style: { color: "var(--ds-color-neutral-text-subtle)" }, children: i.fileSize })
473
473
  ] }),
474
474
  /* @__PURE__ */ I.jsxs(y, { horizontal: !0, gap: 32, children: [
475
475
  /* @__PURE__ */ I.jsxs(y, { horizontal: !0, gap: 8, children: [
@@ -545,7 +545,7 @@ const Se = ({ file: r, className: n }) => /* @__PURE__ */ I.jsx(y, { className:
545
545
  },
546
546
  ref: null
547
547
  }), Ke = ({ animation: r, children: n, ref: e, files: t }) => {
548
- const A = Z2(null), i = e || A, [a, l] = y2(t ?? []), [c, o] = y2(0), [E, f] = y2(!1);
548
+ const A = Z2(null), i = e || A, [a, l] = q2(t ?? []), [c, o] = q2(0), [E, f] = q2(!1);
549
549
  if (O9(i, () => ({
550
550
  close() {
551
551
  f(!1);
@@ -580,7 +580,7 @@ const Se = ({ file: r, className: n }) => /* @__PURE__ */ I.jsx(y, { className:
580
580
  const { setFiles: e, ref: t } = k7(z7);
581
581
  if (!r) return;
582
582
  if (!z7) throw new Error("Missing context!");
583
- z1(
583
+ o1(
584
584
  () => e((a) => {
585
585
  const l = [...a];
586
586
  return l[n] = r, l;
@@ -597,13 +597,13 @@ const Se = ({ file: r, className: n }) => /* @__PURE__ */ I.jsx(y, { className:
597
597
  ] }),
598
598
  /* @__PURE__ */ I.jsxs(y, { className: r3.fileInfoContainer, children: [
599
599
  /* @__PURE__ */ I.jsxs(y, { horizontal: !0, children: [
600
- /* @__PURE__ */ I.jsx(G9, { content: i.filename, children: /* @__PURE__ */ I.jsx(j2, { "data-size": "sm", className: r3.fileName, children: i.filename }) }),
601
- /* @__PURE__ */ I.jsxs(j2, { className: r3.fileExtension, "data-size": "sm", children: [
600
+ /* @__PURE__ */ I.jsx(G9, { content: i.filename, children: /* @__PURE__ */ I.jsx(y2, { "data-size": "sm", className: r3.fileName, children: i.filename }) }),
601
+ /* @__PURE__ */ I.jsxs(y2, { className: r3.fileExtension, "data-size": "sm", children: [
602
602
  ".",
603
603
  i.extension
604
604
  ] })
605
605
  ] }),
606
- r.fileSize && /* @__PURE__ */ I.jsx(j2, { "data-size": "xs", children: r.fileSize })
606
+ r.fileSize && /* @__PURE__ */ I.jsx(y2, { "data-size": "xs", children: r.fileSize })
607
607
  ] })
608
608
  ] });
609
609
  }, Xe = (r) => {
@@ -933,7 +933,7 @@ const y = ({
933
933
  requiredStar: v6,
934
934
  loading: p6,
935
935
  tag: h6
936
- }, s1 = ({ text: r, loading: n = !1, optional: e = !1, required: t = !1 }) => {
936
+ }, u1 = ({ text: r, loading: n = !1, optional: e = !1, required: t = !1 }) => {
937
937
  if (!r) return null;
938
938
  const A = typeof t == "string" ? t : void 0, i = typeof e == "string" ? e : void 0;
939
939
  return /* @__PURE__ */ I.jsxs("span", { children: [
@@ -1024,7 +1024,7 @@ const y = ({
1024
1024
  disabled: r.disabled,
1025
1025
  className: V2.fieldset + (r.disabled ? " " + V2["is-disabled"] : r.readonly ? " " + V2["is-readonly"] : ""),
1026
1026
  children: [
1027
- /* @__PURE__ */ I.jsx(I3.Legend, { children: /* @__PURE__ */ I.jsx(s1, { text: r.label, required: r.required, optional: r.optional }) }),
1027
+ /* @__PURE__ */ I.jsx(I3.Legend, { children: /* @__PURE__ */ I.jsx(u1, { text: r.label, required: r.required, optional: r.optional }) }),
1028
1028
  r.description && /* @__PURE__ */ I.jsx(I3.Description, { children: r.description }),
1029
1029
  /* @__PURE__ */ I.jsx("div", { className: V2.toggleGroup, "data-color": e ? "danger" : "neutral", children: r.values.map((A) => /* @__PURE__ */ I.jsx(
1030
1030
  "div",
@@ -1067,7 +1067,7 @@ const y = ({
1067
1067
  disabled: r.disabled,
1068
1068
  className: V2.fieldset + (r.disabled ? " " + V2["is-disabled"] : r.readonly ? " " + V2["is-readonly"] : ""),
1069
1069
  children: [
1070
- /* @__PURE__ */ I.jsx(I3.Legend, { children: /* @__PURE__ */ I.jsx(s1, { text: r.label, required: r.required, optional: r.optional }) }),
1070
+ /* @__PURE__ */ I.jsx(I3.Legend, { children: /* @__PURE__ */ I.jsx(u1, { text: r.label, required: r.required, optional: r.optional }) }),
1071
1071
  r.description && /* @__PURE__ */ I.jsx(I3.Description, { children: r.description }),
1072
1072
  /* @__PURE__ */ I.jsx("div", { className: V2.toggleGroup, "data-color": e ? "danger" : "neutral", children: r.options.map((t) => /* @__PURE__ */ I.jsx(
1073
1073
  "div",
@@ -1377,7 +1377,7 @@ const y8 = "_headerContainer_1qheq_5", O8 = "_headerFlex_1qheq_16", W8 = "_logoL
1377
1377
  disappearAbovePhone: cn
1378
1378
  };
1379
1379
  function on(r, n) {
1380
- z1(() => {
1380
+ o1(() => {
1381
1381
  function e(A) {
1382
1382
  !r.current || r.current.contains(A.target) || n();
1383
1383
  }
@@ -1397,7 +1397,7 @@ function iI({
1397
1397
  linkComponent: a = q9
1398
1398
  }) {
1399
1399
  var M;
1400
- const { t: l } = O7(), [c, o] = y2(!1), [E, f] = y2(!1), s = Z2(null), u = o3(() => {
1400
+ const { t: l } = O7(), [c, o] = q2(!1), [E, f] = q2(!1), s = Z2(null), u = o3(() => {
1401
1401
  o((v) => (v || f(!1), !v));
1402
1402
  }, [o, f]), d = o3(() => {
1403
1403
  f((v) => (v || o(!1), !v));
@@ -1417,7 +1417,7 @@ function iI({
1417
1417
  className: `${N.headerButton} ${N.disappearBelowPhone}`,
1418
1418
  children: [
1419
1419
  /* @__PURE__ */ I.jsx(r2, { material: v.icon }),
1420
- /* @__PURE__ */ I.jsx(j2, { children: v.label })
1420
+ /* @__PURE__ */ I.jsx(y2, { children: v.label })
1421
1421
  ]
1422
1422
  },
1423
1423
  z
@@ -1457,7 +1457,7 @@ function iI({
1457
1457
  initials: i.initials
1458
1458
  }
1459
1459
  ),
1460
- /* @__PURE__ */ I.jsxs(j2, { className: N.profileName, children: [
1460
+ /* @__PURE__ */ I.jsxs(y2, { className: N.profileName, children: [
1461
1461
  /* @__PURE__ */ I.jsx("span", { className: N.disappearBelowTablet, children: i.name }),
1462
1462
  /* @__PURE__ */ I.jsx("span", { className: N.profileNameShort, children: (M = i.name) == null ? void 0 : M.split(" ")[0] })
1463
1463
  ] }),
@@ -1481,8 +1481,8 @@ function iI({
1481
1481
  }
1482
1482
  ),
1483
1483
  /* @__PURE__ */ I.jsxs(y, { className: N.profileTextContainer, children: [
1484
- /* @__PURE__ */ I.jsx(j2, { className: `${N.profileMenuName} ${N.EllipsisOnOverflow}`, children: i.name }),
1485
- /* @__PURE__ */ I.jsx(j2, { className: `${N.profileMenuDepartment} ${N.EllipsisOnOverflow}`, children: i.department })
1484
+ /* @__PURE__ */ I.jsx(y2, { className: `${N.profileMenuName} ${N.EllipsisOnOverflow}`, children: i.name }),
1485
+ /* @__PURE__ */ I.jsx(y2, { className: `${N.profileMenuDepartment} ${N.EllipsisOnOverflow}`, children: i.department })
1486
1486
  ] })
1487
1487
  ] }),
1488
1488
  /* @__PURE__ */ I.jsx(E5, {}),
@@ -1494,7 +1494,7 @@ function iI({
1494
1494
  onClick: m,
1495
1495
  children: [
1496
1496
  /* @__PURE__ */ I.jsx(r2, { material: v.icon }),
1497
- /* @__PURE__ */ I.jsx(j2, { children: v.label })
1497
+ /* @__PURE__ */ I.jsx(y2, { children: v.label })
1498
1498
  ]
1499
1499
  },
1500
1500
  z
@@ -1565,13 +1565,13 @@ let Cn = {};
1565
1565
  function $1() {
1566
1566
  return Cn;
1567
1567
  }
1568
- function C1(r, n) {
1568
+ function s1(r, n) {
1569
1569
  var l, c, o, E;
1570
1570
  const e = $1(), t = (n == null ? void 0 : n.weekStartsOn) ?? ((c = (l = n == null ? void 0 : n.locale) == null ? void 0 : l.options) == null ? void 0 : c.weekStartsOn) ?? e.weekStartsOn ?? ((E = (o = e.locale) == null ? void 0 : o.options) == null ? void 0 : E.weekStartsOn) ?? 0, A = x(r, n == null ? void 0 : n.in), i = A.getDay(), a = (i < t ? 7 : 0) + i - t;
1571
1571
  return A.setDate(A.getDate() - a), A.setHours(0, 0, 0, 0), A;
1572
1572
  }
1573
1573
  function u3(r, n) {
1574
- return C1(r, { ...n, weekStartsOn: 1 });
1574
+ return s1(r, { ...n, weekStartsOn: 1 });
1575
1575
  }
1576
1576
  function j4(r, n) {
1577
1577
  const e = x(r, n == null ? void 0 : n.in), t = e.getFullYear(), A = e2(e, 0);
@@ -1595,7 +1595,7 @@ function d0(r) {
1595
1595
  );
1596
1596
  return e.setUTCFullYear(n.getFullYear()), +r - +e;
1597
1597
  }
1598
- function u1(r, ...n) {
1598
+ function d1(r, ...n) {
1599
1599
  const e = e2.bind(
1600
1600
  null,
1601
1601
  n.find((t) => typeof t == "object")
@@ -1607,7 +1607,7 @@ function H1(r, n) {
1607
1607
  return e.setHours(0, 0, 0, 0), e;
1608
1608
  }
1609
1609
  function d3(r, n, e) {
1610
- const [t, A] = u1(
1610
+ const [t, A] = d1(
1611
1611
  e == null ? void 0 : e.in,
1612
1612
  r,
1613
1613
  n
@@ -1631,7 +1631,7 @@ function un(r, n, e) {
1631
1631
  function M0(r, n, e) {
1632
1632
  return G2(r, n * 7, e);
1633
1633
  }
1634
- function o1(r, n, e) {
1634
+ function I1(r, n, e) {
1635
1635
  return P2(r, n * 12, e);
1636
1636
  }
1637
1637
  function h5(r, n) {
@@ -1651,41 +1651,41 @@ function z5(r, n) {
1651
1651
  }), e2(t, e || NaN);
1652
1652
  }
1653
1653
  function dn(r, n, e) {
1654
- const [t, A] = u1(
1654
+ const [t, A] = d1(
1655
1655
  e == null ? void 0 : e.in,
1656
1656
  r,
1657
1657
  n
1658
1658
  );
1659
1659
  return +H1(t) == +H1(A);
1660
1660
  }
1661
- function I1(r) {
1661
+ function E1(r) {
1662
1662
  return r instanceof Date || typeof r == "object" && Object.prototype.toString.call(r) === "[object Date]";
1663
1663
  }
1664
1664
  function m0(r) {
1665
- return !(!I1(r) && typeof r != "number" || isNaN(+x(r)));
1665
+ return !(!E1(r) && typeof r != "number" || isNaN(+x(r)));
1666
1666
  }
1667
1667
  function v0(r, n, e) {
1668
- const [t, A] = u1(
1668
+ const [t, A] = d1(
1669
1669
  e == null ? void 0 : e.in,
1670
1670
  r,
1671
1671
  n
1672
1672
  ), i = t.getFullYear() - A.getFullYear(), a = t.getMonth() - A.getMonth();
1673
1673
  return i * 12 + a;
1674
1674
  }
1675
- function M1(r, n) {
1675
+ function m1(r, n) {
1676
1676
  const e = x(r, n == null ? void 0 : n.in);
1677
1677
  return Math.trunc(e.getMonth() / 3) + 1;
1678
1678
  }
1679
1679
  function p0(r, n, e) {
1680
- const [t, A] = u1(
1680
+ const [t, A] = d1(
1681
1681
  e == null ? void 0 : e.in,
1682
1682
  r,
1683
1683
  n
1684
- ), i = t.getFullYear() - A.getFullYear(), a = M1(t) - M1(A);
1684
+ ), i = t.getFullYear() - A.getFullYear(), a = m1(t) - m1(A);
1685
1685
  return i * 4 + a;
1686
1686
  }
1687
1687
  function h0(r, n, e) {
1688
- const [t, A] = u1(
1688
+ const [t, A] = d1(
1689
1689
  e == null ? void 0 : e.in,
1690
1690
  r,
1691
1691
  n
@@ -1693,7 +1693,7 @@ function h0(r, n, e) {
1693
1693
  return t.getFullYear() - A.getFullYear();
1694
1694
  }
1695
1695
  function Mn(r, n, e) {
1696
- const [t, A] = u1(
1696
+ const [t, A] = d1(
1697
1697
  e == null ? void 0 : e.in,
1698
1698
  r,
1699
1699
  n
@@ -2180,25 +2180,25 @@ function X7(r, n) {
2180
2180
  var E, f, s, u;
2181
2181
  const e = x(r, n == null ? void 0 : n.in), t = e.getFullYear(), A = $1(), i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((f = (E = n == null ? void 0 : n.locale) == null ? void 0 : E.options) == null ? void 0 : f.firstWeekContainsDate) ?? A.firstWeekContainsDate ?? ((u = (s = A.locale) == null ? void 0 : s.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, a = e2((n == null ? void 0 : n.in) || r, 0);
2182
2182
  a.setFullYear(t + 1, 0, i), a.setHours(0, 0, 0, 0);
2183
- const l = C1(a, n), c = e2((n == null ? void 0 : n.in) || r, 0);
2183
+ const l = s1(a, n), c = e2((n == null ? void 0 : n.in) || r, 0);
2184
2184
  c.setFullYear(t, 0, i), c.setHours(0, 0, 0, 0);
2185
- const o = C1(c, n);
2185
+ const o = s1(c, n);
2186
2186
  return +e >= +l ? t + 1 : +e >= +o ? t : t - 1;
2187
2187
  }
2188
2188
  function Nn(r, n) {
2189
2189
  var l, c, o, E;
2190
2190
  const e = $1(), t = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((c = (l = n == null ? void 0 : n.locale) == null ? void 0 : l.options) == null ? void 0 : c.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((E = (o = e.locale) == null ? void 0 : o.options) == null ? void 0 : E.firstWeekContainsDate) ?? 1, A = X7(r, n), i = e2((n == null ? void 0 : n.in) || r, 0);
2191
- return i.setFullYear(A, 0, t), i.setHours(0, 0, 0, 0), C1(i, n);
2191
+ return i.setFullYear(A, 0, t), i.setHours(0, 0, 0, 0), s1(i, n);
2192
2192
  }
2193
2193
  function P4(r, n) {
2194
- const e = x(r, n == null ? void 0 : n.in), t = +C1(e, n) - +Nn(e, n);
2194
+ const e = x(r, n == null ? void 0 : n.in), t = +s1(e, n) - +Nn(e, n);
2195
2195
  return Math.round(t / q4) + 1;
2196
2196
  }
2197
2197
  function $(r, n) {
2198
2198
  const e = r < 0 ? "-" : "", t = Math.abs(r).toString().padStart(n, "0");
2199
2199
  return e + t;
2200
2200
  }
2201
- const d1 = {
2201
+ const M1 = {
2202
2202
  // Year
2203
2203
  y(r, n) {
2204
2204
  const e = r.getFullYear(), t = e > 0 ? e : 1 - e;
@@ -2281,7 +2281,7 @@ const d1 = {
2281
2281
  const t = r.getFullYear(), A = t > 0 ? t : 1 - t;
2282
2282
  return e.ordinalNumber(A, { unit: "year" });
2283
2283
  }
2284
- return d1.y(r, n);
2284
+ return M1.y(r, n);
2285
2285
  },
2286
2286
  // Local week-numbering year
2287
2287
  Y: function(r, n, e, t) {
@@ -2372,7 +2372,7 @@ const d1 = {
2372
2372
  switch (n) {
2373
2373
  case "M":
2374
2374
  case "MM":
2375
- return d1.M(r, n);
2375
+ return M1.M(r, n);
2376
2376
  case "Mo":
2377
2377
  return e.ordinalNumber(t + 1, { unit: "month" });
2378
2378
  case "MMM":
@@ -2427,7 +2427,7 @@ const d1 = {
2427
2427
  },
2428
2428
  // Day of the month
2429
2429
  d: function(r, n, e) {
2430
- return n === "do" ? e.ordinalNumber(r.getDate(), { unit: "date" }) : d1.d(r, n);
2430
+ return n === "do" ? e.ordinalNumber(r.getDate(), { unit: "date" }) : M1.d(r, n);
2431
2431
  },
2432
2432
  // Day of year
2433
2433
  D: function(r, n, e) {
@@ -2650,11 +2650,11 @@ const d1 = {
2650
2650
  let t = r.getHours() % 12;
2651
2651
  return t === 0 && (t = 12), e.ordinalNumber(t, { unit: "hour" });
2652
2652
  }
2653
- return d1.h(r, n);
2653
+ return M1.h(r, n);
2654
2654
  },
2655
2655
  // Hour [0-23]
2656
2656
  H: function(r, n, e) {
2657
- return n === "Ho" ? e.ordinalNumber(r.getHours(), { unit: "hour" }) : d1.H(r, n);
2657
+ return n === "Ho" ? e.ordinalNumber(r.getHours(), { unit: "hour" }) : M1.H(r, n);
2658
2658
  },
2659
2659
  // Hour [0-11]
2660
2660
  K: function(r, n, e) {
@@ -2668,15 +2668,15 @@ const d1 = {
2668
2668
  },
2669
2669
  // Minute
2670
2670
  m: function(r, n, e) {
2671
- return n === "mo" ? e.ordinalNumber(r.getMinutes(), { unit: "minute" }) : d1.m(r, n);
2671
+ return n === "mo" ? e.ordinalNumber(r.getMinutes(), { unit: "minute" }) : M1.m(r, n);
2672
2672
  },
2673
2673
  // Second
2674
2674
  s: function(r, n, e) {
2675
- return n === "so" ? e.ordinalNumber(r.getSeconds(), { unit: "second" }) : d1.s(r, n);
2675
+ return n === "so" ? e.ordinalNumber(r.getSeconds(), { unit: "second" }) : M1.s(r, n);
2676
2676
  },
2677
2677
  // Fraction of second
2678
2678
  S: function(r, n) {
2679
- return d1.S(r, n);
2679
+ return M1.S(r, n);
2680
2680
  },
2681
2681
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
2682
2682
  X: function(r, n, e) {
@@ -3223,10 +3223,10 @@ class Qr extends _ {
3223
3223
  c,
3224
3224
  0,
3225
3225
  i.firstWeekContainsDate
3226
- ), e.setHours(0, 0, 0, 0), C1(e, i);
3226
+ ), e.setHours(0, 0, 0, 0), s1(e, i);
3227
3227
  }
3228
3228
  const l = !("era" in t) || t.era === 1 ? A.year : 1 - A.year;
3229
- return e.setFullYear(l, 0, i.firstWeekContainsDate), e.setHours(0, 0, 0, 0), C1(e, i);
3229
+ return e.setFullYear(l, 0, i.firstWeekContainsDate), e.setHours(0, 0, 0, 0), s1(e, i);
3230
3230
  }
3231
3231
  }
3232
3232
  class Zr extends _ {
@@ -3558,7 +3558,7 @@ class xr extends _ {
3558
3558
  return t >= 1 && t <= 53;
3559
3559
  }
3560
3560
  set(e, t, A, i) {
3561
- return C1(Yr(e, A, i), i);
3561
+ return s1(Yr(e, A, i), i);
3562
3562
  }
3563
3563
  }
3564
3564
  function Vr(r, n, e) {
@@ -4447,7 +4447,7 @@ function fA(r) {
4447
4447
  return r.match(lA)[1].replace(cA, "'");
4448
4448
  }
4449
4449
  function CA(r, n, e) {
4450
- const [t, A] = u1(
4450
+ const [t, A] = d1(
4451
4451
  e == null ? void 0 : e.in,
4452
4452
  r,
4453
4453
  n
@@ -4455,7 +4455,7 @@ function CA(r, n, e) {
4455
4455
  return t.getFullYear() === A.getFullYear() && t.getMonth() === A.getMonth();
4456
4456
  }
4457
4457
  function sA(r, n, e) {
4458
- const [t, A] = u1(
4458
+ const [t, A] = d1(
4459
4459
  e == null ? void 0 : e.in,
4460
4460
  r,
4461
4461
  n
@@ -4463,7 +4463,7 @@ function sA(r, n, e) {
4463
4463
  return +g7(t) == +g7(A);
4464
4464
  }
4465
4465
  function uA(r, n, e) {
4466
- const [t, A] = u1(
4466
+ const [t, A] = d1(
4467
4467
  e == null ? void 0 : e.in,
4468
4468
  r,
4469
4469
  n
@@ -4631,7 +4631,7 @@ function U5(r, n, e) {
4631
4631
  return M0(r, -1, e);
4632
4632
  }
4633
4633
  function M3(r, n, e) {
4634
- return o1(r, -n, e);
4634
+ return I1(r, -n, e);
4635
4635
  }
4636
4636
  function O0() {
4637
4637
  return typeof window < "u";
@@ -4639,7 +4639,7 @@ function O0() {
4639
4639
  function g3(r) {
4640
4640
  return _4(r) ? (r.nodeName || "").toLowerCase() : "#document";
4641
4641
  }
4642
- function q2(r) {
4642
+ function k2(r) {
4643
4643
  var n;
4644
4644
  return (r == null || (n = r.ownerDocument) == null ? void 0 : n.defaultView) || window;
4645
4645
  }
@@ -4648,16 +4648,16 @@ function A1(r) {
4648
4648
  return (n = (_4(r) ? r.ownerDocument : r.document) || window.document) == null ? void 0 : n.documentElement;
4649
4649
  }
4650
4650
  function _4(r) {
4651
- return O0() ? r instanceof Node || r instanceof q2(r).Node : !1;
4651
+ return O0() ? r instanceof Node || r instanceof k2(r).Node : !1;
4652
4652
  }
4653
4653
  function h2(r) {
4654
- return O0() ? r instanceof Element || r instanceof q2(r).Element : !1;
4654
+ return O0() ? r instanceof Element || r instanceof k2(r).Element : !1;
4655
4655
  }
4656
4656
  function n1(r) {
4657
- return O0() ? r instanceof HTMLElement || r instanceof q2(r).HTMLElement : !1;
4657
+ return O0() ? r instanceof HTMLElement || r instanceof k2(r).HTMLElement : !1;
4658
4658
  }
4659
4659
  function Y5(r) {
4660
- return !O0() || typeof ShadowRoot > "u" ? !1 : r instanceof ShadowRoot || r instanceof q2(r).ShadowRoot;
4660
+ return !O0() || typeof ShadowRoot > "u" ? !1 : r instanceof ShadowRoot || r instanceof k2(r).ShadowRoot;
4661
4661
  }
4662
4662
  const VA = /* @__PURE__ */ new Set(["inline", "contents"]);
4663
4663
  function P3(r) {
@@ -4707,7 +4707,7 @@ function m3(r) {
4707
4707
  return TA.has(g3(r));
4708
4708
  }
4709
4709
  function O2(r) {
4710
- return q2(r).getComputedStyle(r);
4710
+ return k2(r).getComputedStyle(r);
4711
4711
  }
4712
4712
  function T0(r) {
4713
4713
  return h2(r) ? {
@@ -4737,7 +4737,7 @@ function $4(r) {
4737
4737
  function W3(r, n, e) {
4738
4738
  var t;
4739
4739
  n === void 0 && (n = []), e === void 0 && (e = !0);
4740
- const A = $4(r), i = A === ((t = r.ownerDocument) == null ? void 0 : t.body), a = q2(A);
4740
+ const A = $4(r), i = A === ((t = r.ownerDocument) == null ? void 0 : t.body), a = k2(A);
4741
4741
  if (i) {
4742
4742
  const l = R7(a);
4743
4743
  return n.concat(a, a.visualViewport || [], P3(A) ? A : [], l && e ? W3(l) : []);
@@ -5224,14 +5224,14 @@ function f3(r) {
5224
5224
  }
5225
5225
  const Ci = /* @__PURE__ */ t1(0);
5226
5226
  function n9(r) {
5227
- const n = q2(r);
5227
+ const n = k2(r);
5228
5228
  return !H7() || !n.visualViewport ? Ci : {
5229
5229
  x: n.visualViewport.offsetLeft,
5230
5230
  y: n.visualViewport.offsetTop
5231
5231
  };
5232
5232
  }
5233
5233
  function si(r, n, e) {
5234
- return n === void 0 && (n = !1), !e || n && e !== q2(r) ? !1 : n;
5234
+ return n === void 0 && (n = !1), !e || n && e !== k2(r) ? !1 : n;
5235
5235
  }
5236
5236
  function F1(r, n, e, t) {
5237
5237
  n === void 0 && (n = !1), e === void 0 && (e = !1);
@@ -5241,11 +5241,11 @@ function F1(r, n, e, t) {
5241
5241
  const l = si(i, e, t) ? n9(i) : t1(0);
5242
5242
  let c = (A.left + l.x) / a.x, o = (A.top + l.y) / a.y, E = A.width / a.x, f = A.height / a.y;
5243
5243
  if (i) {
5244
- const s = q2(i), u = t && h2(t) ? q2(t) : t;
5244
+ const s = k2(i), u = t && h2(t) ? k2(t) : t;
5245
5245
  let d = s, m = R7(d);
5246
5246
  for (; m && t && u !== d; ) {
5247
5247
  const M = f3(m), v = m.getBoundingClientRect(), z = O2(m), Q = v.left + (m.clientLeft + parseFloat(z.paddingLeft)) * M.x, U = v.top + (m.clientTop + parseFloat(z.paddingTop)) * M.y;
5248
- c *= M.x, o *= M.y, E *= M.x, f *= M.y, c += Q, o += U, d = q2(m), m = R7(d);
5248
+ c *= M.x, o *= M.y, E *= M.x, f *= M.y, c += Q, o += U, d = k2(m), m = R7(d);
5249
5249
  }
5250
5250
  }
5251
5251
  return Z0({
@@ -5309,7 +5309,7 @@ function Mi(r) {
5309
5309
  }
5310
5310
  const q5 = 25;
5311
5311
  function mi(r, n) {
5312
- const e = q2(r), t = A1(r), A = e.visualViewport;
5312
+ const e = k2(r), t = A1(r), A = e.visualViewport;
5313
5313
  let i = t.clientWidth, a = t.clientHeight, l = 0, c = 0;
5314
5314
  if (A) {
5315
5315
  i = A.width, a = A.height;
@@ -5438,7 +5438,7 @@ function j5(r, n) {
5438
5438
  return A1(r) === e && (e = e.ownerDocument.body), e;
5439
5439
  }
5440
5440
  function i9(r, n) {
5441
- const e = q2(r);
5441
+ const e = k2(r);
5442
5442
  if (W0(r))
5443
5443
  return e;
5444
5444
  if (!n1(r)) {
@@ -6031,7 +6031,7 @@ var ea = function(r) {
6031
6031
  return p.createElement("div", { className: i, "aria-label": c, role: l ? void 0 : "dialog", "aria-modal": l ? void 0 : "true" }, a);
6032
6032
  }, ta = function(r, n) {
6033
6033
  var e = Z2(null), t = Z2(r);
6034
- z1(function() {
6034
+ o1(function() {
6035
6035
  t.current = r;
6036
6036
  }, [r]);
6037
6037
  var A = o3(function(i) {
@@ -6040,7 +6040,7 @@ var ea = function(r) {
6040
6040
  }) || i.target;
6041
6041
  e.current && !e.current.contains(l) && (n && l instanceof HTMLElement && l.classList.contains(n) || (a = t.current) === null || a === void 0 || a.call(t, i));
6042
6042
  }, [n]);
6043
- return z1(function() {
6043
+ return o1(function() {
6044
6044
  return document.addEventListener("mousedown", A), function() {
6045
6045
  document.removeEventListener("mousedown", A);
6046
6046
  };
@@ -6131,12 +6131,12 @@ function K3(r) {
6131
6131
  }
6132
6132
  function Q1(r, n, e) {
6133
6133
  var t = h3(n || N7());
6134
- return C1(r, {
6134
+ return s1(r, {
6135
6135
  locale: t,
6136
6136
  weekStartsOn: e
6137
6137
  });
6138
6138
  }
6139
- function E1(r) {
6139
+ function f1(r) {
6140
6140
  return W4(r);
6141
6141
  }
6142
6142
  function q3(r) {
@@ -6214,7 +6214,7 @@ function E9(r, n) {
6214
6214
  function Ea(r, n) {
6215
6215
  return n2(c3(D(), r), "QQQ", n);
6216
6216
  }
6217
- function k2(r, n) {
6217
+ function j2(r, n) {
6218
6218
  var e = n === void 0 ? {} : n, t = e.minDate, A = e.maxDate, i = e.excludeDates, a = e.excludeDateIntervals, l = e.includeDates, c = e.includeDateIntervals, o = e.filterDate, E = e.disabled;
6219
6219
  return E ? !0 : F3(r, { minDate: t, maxDate: A }) || i && i.some(function(f) {
6220
6220
  return f instanceof Date ? F(r, f) : F(r, f.date);
@@ -6290,7 +6290,7 @@ function f0(r, n) {
6290
6290
  }) || l && !l(D(o)) || !1;
6291
6291
  }
6292
6292
  function t0(r, n, e, t) {
6293
- var A = J(r), i = M1(r), a = J(n), l = M1(n), c = J(t);
6293
+ var A = J(r), i = m1(r), a = J(n), l = m1(n), c = J(t);
6294
6294
  return A === a && A === c ? i <= e && e <= l : A < a ? c === A && i <= e || c === a && l >= e || c < a && c > A : !1;
6295
6295
  }
6296
6296
  function F3(r, n) {
@@ -6359,13 +6359,13 @@ function ua(r, n) {
6359
6359
  return c && c > l || !1;
6360
6360
  }
6361
6361
  function N5(r, n) {
6362
- var e = n === void 0 ? {} : n, t = e.maxDate, A = e.includeDates, i = o1(r, 1);
6362
+ var e = n === void 0 ? {} : n, t = e.maxDate, A = e.includeDates, i = I1(r, 1);
6363
6363
  return t && h0(i, t) > 0 || A && A.every(function(a) {
6364
6364
  return h0(i, a) > 0;
6365
6365
  }) || !1;
6366
6366
  }
6367
6367
  function da(r, n) {
6368
- var e = n === void 0 ? {} : n, t = e.maxDate, A = e.yearItemNumber, i = A === void 0 ? H3 : A, a = o1(r, i), l = c1(a, i).startPeriod, c = t && J(t);
6368
+ var e = n === void 0 ? {} : n, t = e.maxDate, A = e.yearItemNumber, i = A === void 0 ? H3 : A, a = I1(r, i), l = c1(a, i).startPeriod, c = t && J(t);
6369
6369
  return c && c < l || !1;
6370
6370
  }
6371
6371
  function C9(r) {
@@ -6391,7 +6391,7 @@ function _5(r, n) {
6391
6391
  r === void 0 && (r = []), n === void 0 && (n = "react-datepicker__day--highlighted");
6392
6392
  for (var t = /* @__PURE__ */ new Map(), A = 0, i = r.length; A < i; A++) {
6393
6393
  var a = r[A];
6394
- if (I1(a)) {
6394
+ if (E1(a)) {
6395
6395
  var l = n2(a, "MM.dd.yyyy"), c = t.get(l) || [];
6396
6396
  c.includes(n) || (c.push(n), t.set(l, c));
6397
6397
  } else if (typeof a == "object") {
@@ -6418,7 +6418,7 @@ function ma(r, n) {
6418
6418
  var e = /* @__PURE__ */ new Map();
6419
6419
  return r.forEach(function(t) {
6420
6420
  var A = t.date, i = t.holidayName;
6421
- if (I1(A)) {
6421
+ if (E1(A)) {
6422
6422
  var a = n2(A, "MM.dd.yyyy"), l = e.get(a) || {
6423
6423
  className: "",
6424
6424
  holidayNames: []
@@ -6460,13 +6460,13 @@ function u9(r, n) {
6460
6460
  return e4(r).getTime() === e4(n).getTime();
6461
6461
  }
6462
6462
  function t4(r) {
6463
- if (!I1(r))
6463
+ if (!E1(r))
6464
6464
  throw new Error("Invalid date");
6465
6465
  var n = new Date(r);
6466
6466
  return n.setHours(0, 0, 0, 0), n;
6467
6467
  }
6468
6468
  function i7(r, n) {
6469
- if (!I1(r) || !I1(n))
6469
+ if (!E1(r) || !E1(n))
6470
6470
  throw new Error("Invalid date received");
6471
6471
  var e = t4(r), t = t4(n);
6472
6472
  return _2(e, t);
@@ -6546,7 +6546,7 @@ var ha = (
6546
6546
  }) : e.isSameDayOrWeek(e.props.selected), i = e.props.preSelection && e.isDisabled(e.props.preSelection);
6547
6547
  return !A && e.isSameDayOrWeek(e.props.preSelection) && !i;
6548
6548
  }, e.isDisabled = function(t) {
6549
- return t === void 0 && (t = e.props.day), k2(t, {
6549
+ return t === void 0 && (t = e.props.day), j2(t, {
6550
6550
  minDate: e.props.minDate,
6551
6551
  maxDate: e.props.maxDate,
6552
6552
  excludeDates: e.props.excludeDates,
@@ -6742,7 +6742,7 @@ var ha = (
6742
6742
  function n() {
6743
6743
  var e = r !== null && r.apply(this, arguments) || this;
6744
6744
  return e.isDisabled = function(t) {
6745
- return k2(t, {
6745
+ return j2(t, {
6746
6746
  minDate: e.props.minDate,
6747
6747
  maxDate: e.props.maxDate,
6748
6748
  excludeDates: e.props.excludeDates,
@@ -6852,7 +6852,7 @@ var Ra = (
6852
6852
  }), e.QUARTER_REFS = $2([], Array(4), !0).map(function() {
6853
6853
  return R1();
6854
6854
  }), e.isDisabled = function(t) {
6855
- return k2(t, {
6855
+ return j2(t, {
6856
6856
  minDate: e.props.minDate,
6857
6857
  maxDate: e.props.maxDate,
6858
6858
  excludeDates: e.props.excludeDates,
@@ -6912,7 +6912,7 @@ var Ra = (
6912
6912
  }, e.isCurrentMonth = function(t, A) {
6913
6913
  return J(t) === J(D()) && A === b2(D());
6914
6914
  }, e.isCurrentQuarter = function(t, A) {
6915
- return J(t) === J(D()) && A === M1(D());
6915
+ return J(t) === J(D()) && A === m1(D());
6916
6916
  }, e.isSelectedMonth = function(t, A, i) {
6917
6917
  return b2(i) === A && J(t) === J(i);
6918
6918
  }, e.isSelectMonthInList = function(t, A, i) {
@@ -6920,7 +6920,7 @@ var Ra = (
6920
6920
  return e.isSelectedMonth(t, A, a);
6921
6921
  });
6922
6922
  }, e.isSelectedQuarter = function(t, A, i) {
6923
- return M1(i) === A && J(t) === J(i);
6923
+ return m1(i) === A && J(t) === J(i);
6924
6924
  }, e.isSelectQuarterInList = function(t, A, i) {
6925
6925
  return i.some(function(a) {
6926
6926
  return e.isSelectedQuarter(t, A, a);
@@ -6931,14 +6931,14 @@ var Ra = (
6931
6931
  return e.isSelectedMonth(A, c, o);
6932
6932
  }) : !!i && e.isSelectedMonth(A, c, i);
6933
6933
  }, e.isQuarterSelected = function() {
6934
- var t = e.props, A = t.day, i = t.selected, a = t.selectedDates, l = t.selectsMultiple, c = M1(A);
6934
+ var t = e.props, A = t.day, i = t.selected, a = t.selectedDates, l = t.selectsMultiple, c = m1(A);
6935
6935
  return l ? a == null ? void 0 : a.some(function(o) {
6936
6936
  return e.isSelectedQuarter(A, c, o);
6937
6937
  }) : !!i && e.isSelectedQuarter(A, c, i);
6938
6938
  }, e.renderWeeks = function() {
6939
6939
  if (!K2(e.props.day))
6940
6940
  return [];
6941
- for (var t = [], A = e.props.fixedHeight, i = 0, a = !1, l = Q1(E1(e.props.day), e.props.locale, e.props.calendarStartDay), c = function(d) {
6941
+ for (var t = [], A = e.props.fixedHeight, i = 0, a = !1, l = Q1(f1(e.props.day), e.props.locale, e.props.calendarStartDay), c = function(d) {
6942
6942
  return e.props.showWeekPicker ? Q1(d, e.props.locale, e.props.calendarStartDay) : e.props.preSelection;
6943
6943
  }, o = function(d) {
6944
6944
  return e.props.showWeekPicker ? Q1(d, e.props.locale, e.props.calendarStartDay) : e.props.selected;
@@ -6954,10 +6954,10 @@ var Ra = (
6954
6954
  return t;
6955
6955
  }, e.onMonthClick = function(t, A) {
6956
6956
  var i = e.isMonthDisabledForLabelDate(A), a = i.isDisabled, l = i.labelDate;
6957
- a || e.handleDayClick(E1(l), t);
6957
+ a || e.handleDayClick(f1(l), t);
6958
6958
  }, e.onMonthMouseEnter = function(t) {
6959
6959
  var A = e.isMonthDisabledForLabelDate(t), i = A.isDisabled, a = A.labelDate;
6960
- i || e.handleDayMouseEnter(E1(a));
6960
+ i || e.handleDayMouseEnter(f1(a));
6961
6961
  }, e.handleMonthNavigation = function(t, A) {
6962
6962
  var i, a, l, c;
6963
6963
  (a = (i = e.props).setPreSelection) === null || a === void 0 || a.call(i, A), (c = (l = e.MONTH_REFS[t]) === null || l === void 0 ? void 0 : l.current) === null || c === void 0 || c.focus();
@@ -7087,7 +7087,7 @@ var Ra = (
7087
7087
  }, e.getQuarterTabIndex = function(t) {
7088
7088
  if (e.props.preSelection == null)
7089
7089
  return "-1";
7090
- var A = M1(e.props.preSelection), i = $3(e.props.day, e.props), a = t === A && !(i || e.props.disabledKeyboardNavigation) ? "0" : "-1";
7090
+ var A = m1(e.props.preSelection), i = $3(e.props.day, e.props), a = t === A && !(i || e.props.disabledKeyboardNavigation) ? "0" : "-1";
7091
7091
  return a;
7092
7092
  }, e.getAriaLabel = function(t) {
7093
7093
  var A = e.props, i = A.chooseDayAriaLabelPrefix, a = i === void 0 ? "Choose" : i, l = A.disabledDayAriaLabelPrefix, c = l === void 0 ? "Not available" : l, o = A.day, E = A.locale, f = x2(o, t), s = e.isDisabled(f) || e.isExcluded(f) ? c : a;
@@ -7262,7 +7262,7 @@ var Ra = (
7262
7262
  }(v2)
7263
7263
  );
7264
7264
  function Ba(r, n) {
7265
- for (var e = [], t = E1(r), A = E1(n); !U1(t, A); )
7265
+ for (var e = [], t = f1(r), A = f1(n); !U1(t, A); )
7266
7266
  e.push(D(t)), t = P2(t, 1);
7267
7267
  return e;
7268
7268
  }
@@ -7307,7 +7307,7 @@ var Ua = (
7307
7307
  return e.state = {
7308
7308
  dropdownVisible: !1
7309
7309
  }, e.renderSelectOptions = function() {
7310
- for (var t = E1(e.props.minDate), A = E1(e.props.maxDate), i = []; !U1(t, A); ) {
7310
+ for (var t = f1(e.props.minDate), A = f1(e.props.maxDate), i = []; !U1(t, A); ) {
7311
7311
  var a = Z7(t);
7312
7312
  i.push(p.createElement("option", { key: a, value: a }, n2(t, e.props.dateFormat, e.props.locale))), t = P2(t, 1);
7313
7313
  }
@@ -7315,7 +7315,7 @@ var Ua = (
7315
7315
  }, e.onSelectChange = function(t) {
7316
7316
  e.onChange(parseInt(t.target.value));
7317
7317
  }, e.renderSelectMode = function() {
7318
- return p.createElement("select", { value: Z7(E1(e.props.date)), className: "react-datepicker__month-year-select", onChange: e.onSelectChange }, e.renderSelectOptions());
7318
+ return p.createElement("select", { value: Z7(f1(e.props.date)), className: "react-datepicker__month-year-select", onChange: e.onSelectChange }, e.renderSelectOptions());
7319
7319
  }, e.renderReadView = function(t) {
7320
7320
  var A = n2(e.props.date, e.props.dateFormat, e.props.locale);
7321
7321
  return p.createElement(
@@ -7467,7 +7467,7 @@ var Ua = (
7467
7467
  return t.YEAR_REFS = $2([], Array(t.props.yearItemNumber), !0).map(function() {
7468
7468
  return R1();
7469
7469
  }), t.isDisabled = function(A) {
7470
- return k2(A, {
7470
+ return j2(A, {
7471
7471
  minDate: t.props.minDate,
7472
7472
  maxDate: t.props.maxDate,
7473
7473
  excludeDates: t.props.excludeDates,
@@ -7545,7 +7545,7 @@ var Ua = (
7545
7545
  case R.ArrowRight:
7546
7546
  if (t.props.preSelection == null)
7547
7547
  break;
7548
- t.handleYearNavigation(i + 1, o1(t.props.preSelection, 1));
7548
+ t.handleYearNavigation(i + 1, I1(t.props.preSelection, 1));
7549
7549
  break;
7550
7550
  case R.ArrowLeft:
7551
7551
  if (t.props.preSelection == null)
@@ -7571,7 +7571,7 @@ var Ua = (
7571
7571
  var M = f % d;
7572
7572
  i <= v && i > v - M ? d = M : d += M, m = i + d;
7573
7573
  }
7574
- t.handleYearNavigation(m, o1(t.props.preSelection, d));
7574
+ t.handleYearNavigation(m, I1(t.props.preSelection, d));
7575
7575
  break;
7576
7576
  }
7577
7577
  }
@@ -7836,11 +7836,11 @@ var qa = (
7836
7836
  var i, a, l, c;
7837
7837
  (a = (i = t.props).onYearChange) === null || a === void 0 || a.call(i, A), t.setState({ isRenderAriaLiveMessage: !0 }), t.props.adjustDateOnChange && (t.props.onSelect(A), (c = (l = t.props).setOpen) === null || c === void 0 || c.call(l, !0)), t.props.setPreSelection && t.props.setPreSelection(A);
7838
7838
  }, t.getEnabledPreSelectionDateForMonth = function(A) {
7839
- if (!k2(A, t.props))
7839
+ if (!j2(A, t.props))
7840
7840
  return A;
7841
- for (var i = E1(A), a = la(A), l = Mn(a, i), c = null, o = 0; o <= l; o++) {
7841
+ for (var i = f1(A), a = la(A), l = Mn(a, i), c = null, o = 0; o <= l; o++) {
7842
7842
  var E = G2(i, o);
7843
- if (!k2(E, t.props)) {
7843
+ if (!j2(E, t.props)) {
7844
7844
  c = E;
7845
7845
  break;
7846
7846
  }
@@ -7954,7 +7954,7 @@ var qa = (
7954
7954
  t.setState(function(A) {
7955
7955
  var i, a = A.date;
7956
7956
  return {
7957
- date: o1(a, t.props.showYearPicker ? (i = t.props.yearItemNumber) !== null && i !== void 0 ? i : n.defaultProps.yearItemNumber : 1)
7957
+ date: I1(a, t.props.showYearPicker ? (i = t.props.yearItemNumber) !== null && i !== void 0 ? i : n.defaultProps.yearItemNumber : 1)
7958
7958
  };
7959
7959
  }, function() {
7960
7960
  return t.handleYearChange(t.state.date);
@@ -8063,8 +8063,8 @@ var qa = (
8063
8063
  }, t.renderMonths = function() {
8064
8064
  var A, i;
8065
8065
  if (!(t.props.showTimeSelectOnly || t.props.showYearPicker)) {
8066
- for (var a = [], l = (A = t.props.monthsShown) !== null && A !== void 0 ? A : n.defaultProps.monthsShown, c = t.props.showPreviousMonths ? l - 1 : 0, o = t.props.showMonthYearPicker || t.props.showQuarterYearPicker ? o1(t.state.date, c) : P1(t.state.date, c), E = (i = t.props.monthSelectedIn) !== null && i !== void 0 ? i : c, f = 0; f < l; ++f) {
8067
- var s = f - E + c, u = t.props.showMonthYearPicker || t.props.showQuarterYearPicker ? o1(o, s) : P2(o, s), d = "month-".concat(f), m = f < l - 1, M = f > 0;
8066
+ for (var a = [], l = (A = t.props.monthsShown) !== null && A !== void 0 ? A : n.defaultProps.monthsShown, c = t.props.showPreviousMonths ? l - 1 : 0, o = t.props.showMonthYearPicker || t.props.showQuarterYearPicker ? I1(t.state.date, c) : P1(t.state.date, c), E = (i = t.props.monthSelectedIn) !== null && i !== void 0 ? i : c, f = 0; f < l; ++f) {
8067
+ var s = f - E + c, u = t.props.showMonthYearPicker || t.props.showQuarterYearPicker ? I1(o, s) : P2(o, s), d = "month-".concat(f), m = f < l - 1, M = f > 0;
8068
8068
  a.push(p.createElement(
8069
8069
  "div",
8070
8070
  { key: d, ref: function(v) {
@@ -8350,7 +8350,7 @@ var l7 = "Date input not valid.", p9 = (
8350
8350
  });
8351
8351
  });
8352
8352
  }, t.inputOk = function() {
8353
- return I1(t.state.preSelection);
8353
+ return E1(t.state.preSelection);
8354
8354
  }, t.isCalendarOpen = function() {
8355
8355
  return t.props.open === void 0 ? t.state.open && !t.props.disabled && !t.props.readOnly : t.props.open;
8356
8356
  }, t.handleFocus = function(A) {
@@ -8392,7 +8392,7 @@ var l7 = "Date input not valid.", p9 = (
8392
8392
  var Q = t.props.rangeSeparator, U = Q.trim(), V = z.split(M.includes(U) ? Q : U, 2).map(function(T) {
8393
8393
  return T.trim();
8394
8394
  }), b = V[0], Y = V[1], Z = a3(b ?? "", M, t.props.locale, v), S = Z ? a3(Y ?? "", M, t.props.locale, v) : null, j = (d == null ? void 0 : d.getTime()) !== (Z == null ? void 0 : Z.getTime()), X = (m == null ? void 0 : m.getTime()) !== (S == null ? void 0 : S.getTime());
8395
- if (!j && !X || Z && k2(Z, t.props) || S && k2(S, t.props))
8395
+ if (!j && !X || Z && j2(Z, t.props) || S && j2(S, t.props))
8396
8396
  return;
8397
8397
  (l = (a = t.props).onChange) === null || l === void 0 || l.call(a, [Z, S], f);
8398
8398
  } else {
@@ -8421,7 +8421,7 @@ var l7 = "Date input not valid.", p9 = (
8421
8421
  } else if (t.props.showMonthYearPicker) {
8422
8422
  if (E !== null && f9(E, t.props))
8423
8423
  return;
8424
- } else if (E !== null && k2(E, t.props))
8424
+ } else if (E !== null && j2(E, t.props))
8425
8425
  return;
8426
8426
  var f = t.props, s = f.onChange, u = f.selectsRange, d = f.startDate, m = f.endDate, M = f.selectsMultiple, v = f.selectedDates, z = f.minTime, Q = f.swapRange;
8427
8427
  if (!O1(t.props.selected, E) || t.props.allowSameDay || u || M)
@@ -8459,7 +8459,7 @@ var l7 = "Date input not valid.", p9 = (
8459
8459
  a || ((o = (c = t.props).onSelect) === null || o === void 0 || o.call(c, E, i), t.setState({ inputValue: null }));
8460
8460
  }, t.setPreSelection = function(A) {
8461
8461
  if (!t.props.readOnly) {
8462
- var i = I1(t.props.minDate), a = I1(t.props.maxDate), l = !0;
8462
+ var i = E1(t.props.minDate), a = E1(t.props.maxDate), l = !0;
8463
8463
  if (A) {
8464
8464
  var c = K3(A);
8465
8465
  if (i && a)
@@ -8612,7 +8612,7 @@ var l7 = "Date input not valid.", p9 = (
8612
8612
  T = b ? M3(K, 1) : P1(K, 1);
8613
8613
  break;
8614
8614
  case R.PageDown:
8615
- T = b ? o1(K, 1) : P2(K, 1);
8615
+ T = b ? I1(K, 1) : P2(K, 1);
8616
8616
  break;
8617
8617
  case R.Home:
8618
8618
  T = Q1(K, v, z);
@@ -8628,7 +8628,7 @@ var l7 = "Date input not valid.", p9 = (
8628
8628
  g = K;
8629
8629
  break;
8630
8630
  }
8631
- s && g < s && (W = R.ArrowRight, g = k2(s, t.props) ? Z(W, g) : s), u && g > u && (W = R.ArrowLeft, g = k2(u, t.props) ? Z(W, g) : u), k2(g, t.props) ? ((W === R.PageUp || W === R.Home) && (W = R.ArrowRight), (W === R.PageDown || W === R.End) && (W = R.ArrowLeft), g = Z(W, g)) : w = !0, H++;
8631
+ s && g < s && (W = R.ArrowRight, g = j2(s, t.props) ? Z(W, g) : s), u && g > u && (W = R.ArrowLeft, g = j2(u, t.props) ? Z(W, g) : u), j2(g, t.props) ? ((W === R.PageUp || W === R.Home) && (W = R.ArrowRight), (W === R.PageDown || W === R.End) && (W = R.ArrowLeft), g = Z(W, g)) : w = !0, H++;
8632
8632
  }
8633
8633
  return g;
8634
8634
  };
@@ -8794,7 +8794,7 @@ var l7 = "Date input not valid.", p9 = (
8794
8794
  }, n;
8795
8795
  }(v2)
8796
8796
  ), Fa = "input", c7 = "navigate";
8797
- const wa = "_inputWrapper_1pw38_1", La = "_inputIcon_1pw38_7", A4 = {
8797
+ const wa = "_inputWrapper_16pcj_1", La = "_inputIcon_16pcj_7", A4 = {
8798
8798
  inputWrapper: wa,
8799
8799
  inputIcon: La
8800
8800
  }, Da = {
@@ -9132,26 +9132,40 @@ const Ql = (r) => {
9132
9132
  showCalendarIcon: t = !0,
9133
9133
  minDate: A,
9134
9134
  maxDate: i,
9135
- ...a
9136
- }) => /* @__PURE__ */ I.jsxs(B1, { children: [
9137
- /* @__PURE__ */ I.jsx(z3, { style: { display: "block", width: "fit-content" }, children: /* @__PURE__ */ I.jsx(s1, { text: a.label, required: a.required, optional: a.optional }) }),
9138
- a.description && /* @__PURE__ */ I.jsx(B1.Description, { children: a.description }),
9139
- /* @__PURE__ */ I.jsx(
9140
- p9,
9141
- {
9142
- locale: "nb",
9143
- selected: r,
9144
- dateFormat: e,
9145
- placeholderText: "dd.mm.åååå",
9146
- onChange: (l) => n == null ? void 0 : n(l ?? void 0),
9147
- customInput: j7(Ql, { showCalendarIcon: t }),
9148
- minDate: A,
9149
- maxDate: i,
9150
- onBlur: a.onBlur
9151
- }
9152
- ),
9153
- a.error && /* @__PURE__ */ I.jsx(b1, { children: a.error })
9154
- ] }), Zl = "_input_7ewse_2", Rl = "_inputWrapper_7ewse_12", bl = "_inputIcon_7ewse_18", B7 = {
9135
+ popperPlacement: a = "top",
9136
+ withPortal: l,
9137
+ ...c
9138
+ }) => {
9139
+ const [o, E] = q2(!1);
9140
+ o1(() => {
9141
+ const s = () => {
9142
+ E(window.innerWidth < 768 || /Mobi|Android/i.test(navigator.userAgent));
9143
+ };
9144
+ return s(), window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
9145
+ }, []);
9146
+ const f = o && (l ?? !1);
9147
+ return /* @__PURE__ */ I.jsxs(B1, { children: [
9148
+ /* @__PURE__ */ I.jsx(z3, { style: { display: "block", width: "fit-content" }, children: /* @__PURE__ */ I.jsx(u1, { text: c.label, required: c.required, optional: c.optional }) }),
9149
+ c.description && /* @__PURE__ */ I.jsx(B1.Description, { children: c.description }),
9150
+ /* @__PURE__ */ I.jsx(
9151
+ p9,
9152
+ {
9153
+ locale: "nb",
9154
+ selected: r,
9155
+ dateFormat: e,
9156
+ placeholderText: "dd.mm.åååå",
9157
+ onChange: (s) => n == null ? void 0 : n(s ?? void 0),
9158
+ customInput: j7(Ql, { showCalendarIcon: t }),
9159
+ minDate: A,
9160
+ maxDate: i,
9161
+ onBlur: c.onBlur,
9162
+ popperPlacement: a,
9163
+ ...f && { withPortal: !0, fixedHeight: !0 }
9164
+ }
9165
+ ),
9166
+ c.error && /* @__PURE__ */ I.jsx(b1, { children: c.error })
9167
+ ] });
9168
+ }, Zl = "_input_7ewse_2", Rl = "_inputWrapper_7ewse_12", bl = "_inputIcon_7ewse_18", B7 = {
9155
9169
  input: Zl,
9156
9170
  inputWrapper: Rl,
9157
9171
  inputIcon: bl
@@ -9173,7 +9187,7 @@ const Sl = (r) => {
9173
9187
  maxDate: a,
9174
9188
  ...l
9175
9189
  }) => /* @__PURE__ */ I.jsxs(B1, { className: B7.input, children: [
9176
- /* @__PURE__ */ I.jsx(z3, { style: { display: "block", width: "fit-content" }, children: /* @__PURE__ */ I.jsx(s1, { text: l.label, required: l.required, optional: l.optional }) }),
9190
+ /* @__PURE__ */ I.jsx(z3, { style: { display: "block", width: "fit-content" }, children: /* @__PURE__ */ I.jsx(u1, { text: l.label, required: l.required, optional: l.optional }) }),
9177
9191
  l.description && /* @__PURE__ */ I.jsx(B1.Description, { children: l.description }),
9178
9192
  /* @__PURE__ */ I.jsx(
9179
9193
  p9,
@@ -9437,7 +9451,7 @@ function D1(r, n, e) {
9437
9451
  let t, A = r.get(n);
9438
9452
  for (t of e) A.set(t[0], t[1]);
9439
9453
  }
9440
- const u2 = /* @__PURE__ */ new Map(), J2 = /* @__PURE__ */ new Map(), Z1 = /* @__PURE__ */ new Map(), m1 = ["chunked", "firstChunkSize", "firstChunkSizeNode", "firstChunkSizeBrowser", "chunkSize", "chunkLimit"], Q3 = ["jfif", "xmp", "icc", "iptc", "ihdr"], N1 = ["tiff", ...Q3], a2 = ["ifd0", "ifd1", "exif", "gps", "interop"], v1 = [...N1, ...a2], p1 = ["makerNote", "userComment"], Z3 = ["translateKeys", "translateValues", "reviveValues", "multiSegment"], h1 = [...Z3, "sanitize", "mergeOutput", "silentErrors"];
9454
+ const u2 = /* @__PURE__ */ new Map(), J2 = /* @__PURE__ */ new Map(), Z1 = /* @__PURE__ */ new Map(), v1 = ["chunked", "firstChunkSize", "firstChunkSizeNode", "firstChunkSizeBrowser", "chunkSize", "chunkLimit"], Q3 = ["jfif", "xmp", "icc", "iptc", "ihdr"], N1 = ["tiff", ...Q3], a2 = ["ifd0", "ifd1", "exif", "gps", "interop"], p1 = [...N1, ...a2], h1 = ["makerNote", "userComment"], Z3 = ["translateKeys", "translateValues", "reviveValues", "multiSegment"], z1 = [...Z3, "sanitize", "mergeOutput", "silentErrors"];
9441
9455
  class Q9 {
9442
9456
  get translate() {
9443
9457
  return this.translateKeys || this.translateValues || this.reviveValues;
@@ -9482,34 +9496,34 @@ class e3 extends Q9 {
9482
9496
  }
9483
9497
  setupFromUndefined() {
9484
9498
  let n;
9485
- for (n of m1) this[n] = g2[n];
9499
+ for (n of v1) this[n] = g2[n];
9500
+ for (n of z1) this[n] = g2[n];
9486
9501
  for (n of h1) this[n] = g2[n];
9487
- for (n of p1) this[n] = g2[n];
9488
- for (n of v1) this[n] = new Y3(n, g2[n], void 0, this);
9502
+ for (n of p1) this[n] = new Y3(n, g2[n], void 0, this);
9489
9503
  }
9490
9504
  setupFromTrue() {
9491
9505
  let n;
9492
- for (n of m1) this[n] = g2[n];
9493
- for (n of h1) this[n] = g2[n];
9494
- for (n of p1) this[n] = !0;
9495
- for (n of v1) this[n] = new Y3(n, !0, void 0, this);
9506
+ for (n of v1) this[n] = g2[n];
9507
+ for (n of z1) this[n] = g2[n];
9508
+ for (n of h1) this[n] = !0;
9509
+ for (n of p1) this[n] = new Y3(n, !0, void 0, this);
9496
9510
  }
9497
9511
  setupFromArray(n) {
9498
9512
  let e;
9499
- for (e of m1) this[e] = g2[e];
9513
+ for (e of v1) this[e] = g2[e];
9514
+ for (e of z1) this[e] = g2[e];
9500
9515
  for (e of h1) this[e] = g2[e];
9501
- for (e of p1) this[e] = g2[e];
9502
- for (e of v1) this[e] = new Y3(e, !1, void 0, this);
9516
+ for (e of p1) this[e] = new Y3(e, !1, void 0, this);
9503
9517
  this.setupGlobalFilters(n, void 0, a2);
9504
9518
  }
9505
9519
  setupFromObject(n) {
9506
9520
  let e;
9507
- for (e of (a2.ifd0 = a2.ifd0 || a2.image, a2.ifd1 = a2.ifd1 || a2.thumbnail, Object.assign(this, n), m1)) this[e] = o7(n[e], g2[e]);
9521
+ for (e of (a2.ifd0 = a2.ifd0 || a2.image, a2.ifd1 = a2.ifd1 || a2.thumbnail, Object.assign(this, n), v1)) this[e] = o7(n[e], g2[e]);
9522
+ for (e of z1) this[e] = o7(n[e], g2[e]);
9508
9523
  for (e of h1) this[e] = o7(n[e], g2[e]);
9509
- for (e of p1) this[e] = o7(n[e], g2[e]);
9510
9524
  for (e of N1) this[e] = new Y3(e, g2[e], n[e], this);
9511
9525
  for (e of a2) this[e] = new Y3(e, g2[e], n[e], this.tiff);
9512
- this.setupGlobalFilters(n.pick, n.skip, a2, v1), n.tiff === !0 ? this.batchEnableWithBool(a2, !0) : n.tiff === !1 ? this.batchEnableWithUserValue(a2, n) : Array.isArray(n.tiff) ? this.setupGlobalFilters(n.tiff, void 0, a2) : typeof n.tiff == "object" && this.setupGlobalFilters(n.tiff.pick, n.tiff.skip, a2);
9526
+ this.setupGlobalFilters(n.pick, n.skip, a2, p1), n.tiff === !0 ? this.batchEnableWithBool(a2, !0) : n.tiff === !1 ? this.batchEnableWithUserValue(a2, n) : Array.isArray(n.tiff) ? this.setupGlobalFilters(n.tiff, void 0, a2) : typeof n.tiff == "object" && this.setupGlobalFilters(n.tiff.pick, n.tiff.skip, a2);
9513
9527
  }
9514
9528
  batchEnableWithBool(n, e) {
9515
9529
  for (let t of n) this[t].enabled = e;
@@ -9600,7 +9614,7 @@ async function w0(r, n) {
9600
9614
  let e = new x1(n);
9601
9615
  return await e.read(r), e.parse();
9602
9616
  }
9603
- var Jl = Object.freeze({ __proto__: null, parse: w0, Exifr: x1, fileParsers: r1, segmentParsers: E2, fileReaders: i1, tagKeys: u2, tagValues: J2, tagRevivers: Z1, createDictionary: I2, extendDictionary: D1, fetchUrlAsArrayBuffer: w1, readBlobAsArrayBuffer: L1, chunkedProps: m1, otherSegments: Q3, segments: N1, tiffBlocks: a2, segmentsAndBlocks: v1, tiffExtractables: p1, inheritables: Z3, allFormatters: h1, Options: e3 });
9617
+ var Jl = Object.freeze({ __proto__: null, parse: w0, Exifr: x1, fileParsers: r1, segmentParsers: E2, fileReaders: i1, tagKeys: u2, tagValues: J2, tagRevivers: Z1, createDictionary: I2, extendDictionary: D1, fetchUrlAsArrayBuffer: w1, readBlobAsArrayBuffer: L1, chunkedProps: v1, otherSegments: Q3, segments: N1, tiffBlocks: a2, segmentsAndBlocks: p1, tiffExtractables: h1, inheritables: Z3, allFormatters: z1, Options: e3 });
9604
9618
  class L0 {
9605
9619
  constructor(n, e, t) {
9606
9620
  O(this, "errors", []), O(this, "ensureSegmentChunk", async (A) => {
@@ -9919,7 +9933,7 @@ function I4(r, n, e, t) {
9919
9933
  return t !== "S" && t !== "W" || (A *= -1), A;
9920
9934
  }
9921
9935
  O(I7, "type", "tiff"), O(I7, "headerLength", 10), E2.set("tiff", I7);
9922
- var Nl = Object.freeze({ __proto__: null, default: Jl, Exifr: x1, fileParsers: r1, segmentParsers: E2, fileReaders: i1, tagKeys: u2, tagValues: J2, tagRevivers: Z1, createDictionary: I2, extendDictionary: D1, fetchUrlAsArrayBuffer: w1, readBlobAsArrayBuffer: L1, chunkedProps: m1, otherSegments: Q3, segments: N1, tiffBlocks: a2, segmentsAndBlocks: v1, tiffExtractables: p1, inheritables: Z3, allFormatters: h1, Options: e3, parse: w0 });
9936
+ var Nl = Object.freeze({ __proto__: null, default: Jl, Exifr: x1, fileParsers: r1, segmentParsers: E2, fileReaders: i1, tagKeys: u2, tagValues: J2, tagRevivers: Z1, createDictionary: I2, extendDictionary: D1, fetchUrlAsArrayBuffer: w1, readBlobAsArrayBuffer: L1, chunkedProps: v1, otherSegments: Q3, segments: N1, tiffBlocks: a2, segmentsAndBlocks: p1, tiffExtractables: h1, inheritables: Z3, allFormatters: z1, Options: e3, parse: w0 });
9923
9937
  const n5 = { ifd0: !1, ifd1: !1, exif: !1, gps: !1, interop: !1, sanitize: !1, reviveValues: !0, translateKeys: !1, translateValues: !1, mergeOutput: !1 }, r5 = Object.assign({}, n5, { firstChunkSize: 4e4, gps: [1, 2, 3, 4] });
9924
9938
  async function Z9(r) {
9925
9939
  let n = new x1(r5);
@@ -10087,7 +10101,7 @@ i1.set("blob", class extends D0 {
10087
10101
  return this.set(A, r, !0);
10088
10102
  }
10089
10103
  });
10090
- var ec = Object.freeze({ __proto__: null, default: Nl, Exifr: x1, fileParsers: r1, segmentParsers: E2, fileReaders: i1, tagKeys: u2, tagValues: J2, tagRevivers: Z1, createDictionary: I2, extendDictionary: D1, fetchUrlAsArrayBuffer: w1, readBlobAsArrayBuffer: L1, chunkedProps: m1, otherSegments: Q3, segments: N1, tiffBlocks: a2, segmentsAndBlocks: v1, tiffExtractables: p1, inheritables: Z3, allFormatters: h1, Options: e3, parse: w0, gpsOnlyOptions: r5, gps: Z9, thumbnailOnlyOptions: A5, thumbnail: R9, thumbnailUrl: b9, orientationOnlyOptions: i5, orientation: a5, rotations: l5, get rotateCanvas() {
10104
+ var ec = Object.freeze({ __proto__: null, default: Nl, Exifr: x1, fileParsers: r1, segmentParsers: E2, fileReaders: i1, tagKeys: u2, tagValues: J2, tagRevivers: Z1, createDictionary: I2, extendDictionary: D1, fetchUrlAsArrayBuffer: w1, readBlobAsArrayBuffer: L1, chunkedProps: v1, otherSegments: Q3, segments: N1, tiffBlocks: a2, segmentsAndBlocks: p1, tiffExtractables: h1, inheritables: Z3, allFormatters: z1, Options: e3, parse: w0, gpsOnlyOptions: r5, gps: Z9, thumbnailOnlyOptions: A5, thumbnail: R9, thumbnailUrl: b9, orientationOnlyOptions: i5, orientation: a5, rotations: l5, get rotateCanvas() {
10091
10105
  return T1;
10092
10106
  }, get rotateCss() {
10093
10107
  return X1;
@@ -10367,7 +10381,7 @@ function V9(r) {
10367
10381
  return e === "true" || e !== "false" && r.trim();
10368
10382
  }
10369
10383
  const K9 = ["rdf:li", "rdf:Seq", "rdf:Bag", "rdf:Alt", "rdf:Description"], ic = new RegExp(`(<|\\/)(${K9.join("|")})`, "g");
10370
- var ac = Object.freeze({ __proto__: null, default: ec, Exifr: x1, fileParsers: r1, segmentParsers: E2, fileReaders: i1, tagKeys: u2, tagValues: J2, tagRevivers: Z1, createDictionary: I2, extendDictionary: D1, fetchUrlAsArrayBuffer: w1, readBlobAsArrayBuffer: L1, chunkedProps: m1, otherSegments: Q3, segments: N1, tiffBlocks: a2, segmentsAndBlocks: v1, tiffExtractables: p1, inheritables: Z3, allFormatters: h1, Options: e3, parse: w0, gpsOnlyOptions: r5, gps: Z9, thumbnailOnlyOptions: A5, thumbnail: R9, thumbnailUrl: b9, orientationOnlyOptions: i5, orientation: a5, rotations: l5, get rotateCanvas() {
10384
+ var ac = Object.freeze({ __proto__: null, default: ec, Exifr: x1, fileParsers: r1, segmentParsers: E2, fileReaders: i1, tagKeys: u2, tagValues: J2, tagRevivers: Z1, createDictionary: I2, extendDictionary: D1, fetchUrlAsArrayBuffer: w1, readBlobAsArrayBuffer: L1, chunkedProps: v1, otherSegments: Q3, segments: N1, tiffBlocks: a2, segmentsAndBlocks: p1, tiffExtractables: h1, inheritables: Z3, allFormatters: z1, Options: e3, parse: w0, gpsOnlyOptions: r5, gps: Z9, thumbnailOnlyOptions: A5, thumbnail: R9, thumbnailUrl: b9, orientationOnlyOptions: i5, orientation: a5, rotations: l5, get rotateCanvas() {
10371
10385
  return T1;
10372
10386
  }, get rotateCss() {
10373
10387
  return X1;
@@ -10698,7 +10712,7 @@ const sc = async () => new Promise((r) => {
10698
10712
  translations: f,
10699
10713
  existingFilesProvider: s
10700
10714
  }) => {
10701
- const { at: u } = O7(), d = u.bind(null, "fileUploader", f), m = k7(dc), M = Z2(null), v = Z2(null), [z, Q] = y2([]), [U, V] = y2(!1), [b, Y] = y2({}), Z = (g) => {
10715
+ const { at: u } = O7(), d = u.bind(null, "fileUploader", f), m = k7(dc), M = Z2(null), v = Z2(null), [z, Q] = q2([]), [U, V] = q2(!1), [b, Y] = q2({}), Z = (g) => {
10702
10716
  Promise.all(
10703
10717
  g.map(async (q) => {
10704
10718
  try {
@@ -10752,7 +10766,7 @@ const sc = async () => new Promise((r) => {
10752
10766
  }, W = l.some((g) => g.status === "uploading"), w = !W && c && l.length >= c, H = !w && !W;
10753
10767
  return /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
10754
10768
  /* @__PURE__ */ I.jsxs(B1, { children: [
10755
- /* @__PURE__ */ I.jsx(z3, { style: { pointerEvents: "none" }, children: /* @__PURE__ */ I.jsx(s1, { text: r, required: n, optional: e }) }),
10769
+ /* @__PURE__ */ I.jsx(z3, { style: { pointerEvents: "none" }, children: /* @__PURE__ */ I.jsx(u1, { text: r, required: n, optional: e }) }),
10756
10770
  A && /* @__PURE__ */ I.jsx(B1.Description, { children: A }),
10757
10771
  /* @__PURE__ */ I.jsx(
10758
10772
  "input",
@@ -10811,7 +10825,7 @@ const sc = async () => new Promise((r) => {
10811
10825
  /* @__PURE__ */ I.jsx(H9, { ref: v, children: /* @__PURE__ */ I.jsxs(y, { gap: 16, children: [
10812
10826
  /* @__PURE__ */ I.jsx(S1, { level: 2, "data-size": "sm", children: d("existingFiles.dialogTitle") }),
10813
10827
  U && /* @__PURE__ */ I.jsx(y, { horizontal: !0, align: "center", justify: "center", children: /* @__PURE__ */ I.jsx(k3, { "aria-label": d("loading") }) }),
10814
- !U && z.length === 0 && /* @__PURE__ */ I.jsx(j2, { children: d("existingFiles.noFilesAvailable") }),
10828
+ !U && z.length === 0 && /* @__PURE__ */ I.jsx(y2, { children: d("existingFiles.noFilesAvailable") }),
10815
10829
  !U && z.length > 0 && /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
10816
10830
  /* @__PURE__ */ I.jsx(y, { gap: 12, my: 16, children: z.map((g) => {
10817
10831
  var q, L, t2;
@@ -10844,7 +10858,7 @@ const sc = async () => new Promise((r) => {
10844
10858
  }
10845
10859
  ),
10846
10860
  /* @__PURE__ */ I.jsxs(y, { gap: 8, horizontal: !0, align: "center", justify: "between", grow: !0, children: [
10847
- /* @__PURE__ */ I.jsx(j2, { className: R2.fileName, children: g.fileName || d("unknownFilename") }),
10861
+ /* @__PURE__ */ I.jsx(y2, { className: R2.fileName, children: g.fileName || d("unknownFilename") }),
10848
10862
  g.contentType && /* @__PURE__ */ I.jsx(G3, { className: R2.mimeType, children: (t2 = g.contentType) == null ? void 0 : t2.split("/").findLast(() => !0) })
10849
10863
  ] })
10850
10864
  ]
@@ -10954,7 +10968,7 @@ const sc = async () => new Promise((r) => {
10954
10968
  y7,
10955
10969
  {
10956
10970
  className: `${t} ${o5(n)}`,
10957
- label: /* @__PURE__ */ I.jsx(s1, { text: A.label, loading: A.loading, required: A.required, optional: A.optional }),
10971
+ label: /* @__PURE__ */ I.jsx(u1, { text: A.label, loading: A.loading, required: A.required, optional: A.optional }),
10958
10972
  description: A.description,
10959
10973
  readOnly: A.readOnly,
10960
10974
  autoComplete: r,
@@ -10982,15 +10996,15 @@ const sc = async () => new Promise((r) => {
10982
10996
  ...A
10983
10997
  }) => {
10984
10998
  var l;
10985
- const [i, a] = y2((l = A.value) == null ? void 0 : l.toString());
10986
- return z1(() => {
10999
+ const [i, a] = q2((l = A.value) == null ? void 0 : l.toString());
11000
+ return o1(() => {
10987
11001
  var c, o;
10988
11002
  ((c = A.value) == null ? void 0 : c.toString()) !== i && a((o = A.value) == null ? void 0 : o.toString());
10989
11003
  }, [A.value]), /* @__PURE__ */ I.jsx(
10990
11004
  y7,
10991
11005
  {
10992
11006
  className: [e, o5(r), xc["align-" + t]].join(" "),
10993
- label: /* @__PURE__ */ I.jsx(s1, { text: A.label, required: A.required, optional: A.optional }),
11007
+ label: /* @__PURE__ */ I.jsx(u1, { text: A.label, required: A.required, optional: A.optional }),
10994
11008
  description: A.description,
10995
11009
  readOnly: A.readOnly,
10996
11010
  placeholder: A.placeholder,
@@ -11017,7 +11031,7 @@ const sc = async () => new Promise((r) => {
11017
11031
  y7,
11018
11032
  {
11019
11033
  className: `${n} ${o5(r)}`,
11020
- label: /* @__PURE__ */ I.jsx(s1, { text: e.label, required: e.required, optional: e.optional }),
11034
+ label: /* @__PURE__ */ I.jsx(u1, { text: e.label, required: e.required, optional: e.optional }),
11021
11035
  description: e.description,
11022
11036
  readOnly: e.readOnly,
11023
11037
  placeholder: e.placeholder,
@@ -11035,9 +11049,9 @@ const sc = async () => new Promise((r) => {
11035
11049
  }
11036
11050
  ), CI = ({ ...r }) => {
11037
11051
  var i, a;
11038
- const n = r.value ? { value: r.value } : { defaultValue: "" }, [e, t] = y2(!1), A = [r.className, "override", e ? "select-open" : ""].filter(Boolean).join(" ");
11052
+ const n = r.value ? { value: r.value } : { defaultValue: "" }, [e, t] = q2(!1), A = [r.className, "override", e ? "select-open" : ""].filter(Boolean).join(" ");
11039
11053
  return /* @__PURE__ */ I.jsxs(B1, { children: [
11040
- /* @__PURE__ */ I.jsx(z3, { children: /* @__PURE__ */ I.jsx(s1, { text: r.label, required: r.required, optional: r.optional }) }),
11054
+ /* @__PURE__ */ I.jsx(z3, { children: /* @__PURE__ */ I.jsx(u1, { text: r.label, required: r.required, optional: r.optional }) }),
11041
11055
  r.description && /* @__PURE__ */ I.jsx(B1.Description, { children: r.description }),
11042
11056
  /* @__PURE__ */ I.jsxs(
11043
11057
  k1,
@@ -11265,7 +11279,7 @@ export {
11265
11279
  sE as Input,
11266
11280
  Dc as KyvDivider,
11267
11281
  uE as Label,
11268
- s1 as LabelContent,
11282
+ u1 as LabelContent,
11269
11283
  q9 as Link,
11270
11284
  dE as List,
11271
11285
  ME as ListItem,