@kystverket/styrbord 1.3.12 → 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 +235 -191
- package/dist/main.umd.cjs +6 -6
- package/dist/src/components/kystverket/Datepicker/Datepicker.d.ts +3 -1
- package/dist/src/components/kystverket/Datepicker/Datepicker.stories.d.ts +4 -0
- package/dist/src/components/kystverket/FileUploader/FileUploader.context.d.ts +2 -2
- package/dist/src/components/kystverket/FileUploader/FileUploader.stories.d.ts +4 -0
- package/dist/src/components/kystverket/FileUploader/FileUploader.types.d.ts +6 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
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",
|
|
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: `${
|
|
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: `${
|
|
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: `${
|
|
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: `${
|
|
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] =
|
|
438
|
-
|
|
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]),
|
|
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
|
|
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(
|
|
472
|
-
i.fileSize && /* @__PURE__ */ I.jsx(
|
|
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] =
|
|
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
|
-
|
|
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(
|
|
601
|
-
/* @__PURE__ */ I.jsxs(
|
|
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(
|
|
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
|
-
},
|
|
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(
|
|
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(
|
|
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",
|
|
@@ -1159,6 +1159,14 @@ const Nt = "_footer_aepms_2", _t = "_footerContainer_aepms_10", $t = "_linksCont
|
|
|
1159
1159
|
select: I8,
|
|
1160
1160
|
selectOption: E8
|
|
1161
1161
|
}, f8 = {
|
|
1162
|
+
errors: {
|
|
1163
|
+
"network-error": "Nettverksfeil. Vennligst sjekk tilkoblingen og prøv igjen.",
|
|
1164
|
+
"invalid-file-type": "Filtypen er ikke tillatt.",
|
|
1165
|
+
"file-too-large": "Filen er for stor. Vennligst velg en mindre fil.",
|
|
1166
|
+
"file-scan-failed": "Filen kunne ikke lastes opp fordi sikkerhetsskanningen feilet.",
|
|
1167
|
+
error: "Noe gikk galt under opplastingen.",
|
|
1168
|
+
"unknown-error": "En ukjent feil oppstod. Vennligst prøv igjen senere."
|
|
1169
|
+
},
|
|
1162
1170
|
existingFiles: {
|
|
1163
1171
|
buttonOpen: "Bla igjennom filer",
|
|
1164
1172
|
dialogCancel: "Avbryt",
|
|
@@ -1166,6 +1174,7 @@ const Nt = "_footer_aepms_2", _t = "_footerContainer_aepms_10", $t = "_linksCont
|
|
|
1166
1174
|
dialogTitle: "Filer",
|
|
1167
1175
|
noFilesAvailable: "Ingen filer tilgjengelig."
|
|
1168
1176
|
},
|
|
1177
|
+
loading: "Laster",
|
|
1169
1178
|
maxFilesReached: "Maksimalt antall filer er lastet opp.",
|
|
1170
1179
|
unknownFilename: "Ukjent filnavn",
|
|
1171
1180
|
uploading: "Laster opp",
|
|
@@ -1179,6 +1188,14 @@ const Nt = "_footer_aepms_2", _t = "_footerContainer_aepms_10", $t = "_linksCont
|
|
|
1179
1188
|
organisasjonsnummer: d8,
|
|
1180
1189
|
sentralbord: M8
|
|
1181
1190
|
}, v8 = {
|
|
1191
|
+
errors: {
|
|
1192
|
+
"network-error": "Nettverksfeil. Vennlegst sjekk tilkoplinga og prøv igjen.",
|
|
1193
|
+
"invalid-file-type": "Filtypen er ikkje tillaten.",
|
|
1194
|
+
"file-too-large": "Fila er for stor. Vennlegst vel ei mindre fil.",
|
|
1195
|
+
"file-scan-failed": "Fila kunne ikkje lastast opp fordi tryggleiksskaninga feila.",
|
|
1196
|
+
error: "Noko gjekk gale under opplastinga.",
|
|
1197
|
+
"unknown-error": "Ein ukjend feil oppstod. Vennlegst prøv igjen seinare."
|
|
1198
|
+
},
|
|
1182
1199
|
existingFiles: {
|
|
1183
1200
|
buttonOpen: "Bla gjennom filer",
|
|
1184
1201
|
dialogCancel: "Avbryt",
|
|
@@ -1186,6 +1203,7 @@ const Nt = "_footer_aepms_2", _t = "_footerContainer_aepms_10", $t = "_linksCont
|
|
|
1186
1203
|
dialogTitle: "Filer",
|
|
1187
1204
|
noFilesAvailable: "Ingen filer tilgjengelege."
|
|
1188
1205
|
},
|
|
1206
|
+
loading: "Laster",
|
|
1189
1207
|
maxFilesReached: "Maksimalt tal filer er lasta opp.",
|
|
1190
1208
|
unknownFilename: "Ukjent filnamn",
|
|
1191
1209
|
uploading: "Lastar opp",
|
|
@@ -1199,6 +1217,14 @@ const Nt = "_footer_aepms_2", _t = "_footerContainer_aepms_10", $t = "_linksCont
|
|
|
1199
1217
|
organisasjonsnummer: g8,
|
|
1200
1218
|
sentralbord: Q8
|
|
1201
1219
|
}, R8 = {
|
|
1220
|
+
errors: {
|
|
1221
|
+
"network-error": "Network error. Please check your connection and try again.",
|
|
1222
|
+
"invalid-file-type": "File type is not allowed.",
|
|
1223
|
+
"file-too-large": "File is too large. Please select a smaller file.",
|
|
1224
|
+
"file-scan-failed": "File could not be uploaded because security scan failed.",
|
|
1225
|
+
error: "Something went wrong during upload.",
|
|
1226
|
+
"unknown-error": "An unknown error occurred. Please try again later."
|
|
1227
|
+
},
|
|
1202
1228
|
existingFiles: {
|
|
1203
1229
|
buttonOpen: "Browse files",
|
|
1204
1230
|
dialogCancel: "Cancel",
|
|
@@ -1206,6 +1232,7 @@ const Nt = "_footer_aepms_2", _t = "_footerContainer_aepms_10", $t = "_linksCont
|
|
|
1206
1232
|
dialogTitle: "Files",
|
|
1207
1233
|
noFilesAvailable: "No files available."
|
|
1208
1234
|
},
|
|
1235
|
+
loading: "Loading",
|
|
1209
1236
|
maxFilesReached: "Maximum number of files uploaded.",
|
|
1210
1237
|
unknownFilename: "Unknown filename",
|
|
1211
1238
|
uploading: "Uploading",
|
|
@@ -1350,7 +1377,7 @@ const y8 = "_headerContainer_1qheq_5", O8 = "_headerFlex_1qheq_16", W8 = "_logoL
|
|
|
1350
1377
|
disappearAbovePhone: cn
|
|
1351
1378
|
};
|
|
1352
1379
|
function on(r, n) {
|
|
1353
|
-
|
|
1380
|
+
o1(() => {
|
|
1354
1381
|
function e(A) {
|
|
1355
1382
|
!r.current || r.current.contains(A.target) || n();
|
|
1356
1383
|
}
|
|
@@ -1370,7 +1397,7 @@ function iI({
|
|
|
1370
1397
|
linkComponent: a = q9
|
|
1371
1398
|
}) {
|
|
1372
1399
|
var M;
|
|
1373
|
-
const { t: l } = O7(), [c, o] =
|
|
1400
|
+
const { t: l } = O7(), [c, o] = q2(!1), [E, f] = q2(!1), s = Z2(null), u = o3(() => {
|
|
1374
1401
|
o((v) => (v || f(!1), !v));
|
|
1375
1402
|
}, [o, f]), d = o3(() => {
|
|
1376
1403
|
f((v) => (v || o(!1), !v));
|
|
@@ -1390,7 +1417,7 @@ function iI({
|
|
|
1390
1417
|
className: `${N.headerButton} ${N.disappearBelowPhone}`,
|
|
1391
1418
|
children: [
|
|
1392
1419
|
/* @__PURE__ */ I.jsx(r2, { material: v.icon }),
|
|
1393
|
-
/* @__PURE__ */ I.jsx(
|
|
1420
|
+
/* @__PURE__ */ I.jsx(y2, { children: v.label })
|
|
1394
1421
|
]
|
|
1395
1422
|
},
|
|
1396
1423
|
z
|
|
@@ -1430,7 +1457,7 @@ function iI({
|
|
|
1430
1457
|
initials: i.initials
|
|
1431
1458
|
}
|
|
1432
1459
|
),
|
|
1433
|
-
/* @__PURE__ */ I.jsxs(
|
|
1460
|
+
/* @__PURE__ */ I.jsxs(y2, { className: N.profileName, children: [
|
|
1434
1461
|
/* @__PURE__ */ I.jsx("span", { className: N.disappearBelowTablet, children: i.name }),
|
|
1435
1462
|
/* @__PURE__ */ I.jsx("span", { className: N.profileNameShort, children: (M = i.name) == null ? void 0 : M.split(" ")[0] })
|
|
1436
1463
|
] }),
|
|
@@ -1454,8 +1481,8 @@ function iI({
|
|
|
1454
1481
|
}
|
|
1455
1482
|
),
|
|
1456
1483
|
/* @__PURE__ */ I.jsxs(y, { className: N.profileTextContainer, children: [
|
|
1457
|
-
/* @__PURE__ */ I.jsx(
|
|
1458
|
-
/* @__PURE__ */ I.jsx(
|
|
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 })
|
|
1459
1486
|
] })
|
|
1460
1487
|
] }),
|
|
1461
1488
|
/* @__PURE__ */ I.jsx(E5, {}),
|
|
@@ -1467,7 +1494,7 @@ function iI({
|
|
|
1467
1494
|
onClick: m,
|
|
1468
1495
|
children: [
|
|
1469
1496
|
/* @__PURE__ */ I.jsx(r2, { material: v.icon }),
|
|
1470
|
-
/* @__PURE__ */ I.jsx(
|
|
1497
|
+
/* @__PURE__ */ I.jsx(y2, { children: v.label })
|
|
1471
1498
|
]
|
|
1472
1499
|
},
|
|
1473
1500
|
z
|
|
@@ -1538,13 +1565,13 @@ let Cn = {};
|
|
|
1538
1565
|
function $1() {
|
|
1539
1566
|
return Cn;
|
|
1540
1567
|
}
|
|
1541
|
-
function
|
|
1568
|
+
function s1(r, n) {
|
|
1542
1569
|
var l, c, o, E;
|
|
1543
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;
|
|
1544
1571
|
return A.setDate(A.getDate() - a), A.setHours(0, 0, 0, 0), A;
|
|
1545
1572
|
}
|
|
1546
1573
|
function u3(r, n) {
|
|
1547
|
-
return
|
|
1574
|
+
return s1(r, { ...n, weekStartsOn: 1 });
|
|
1548
1575
|
}
|
|
1549
1576
|
function j4(r, n) {
|
|
1550
1577
|
const e = x(r, n == null ? void 0 : n.in), t = e.getFullYear(), A = e2(e, 0);
|
|
@@ -1568,7 +1595,7 @@ function d0(r) {
|
|
|
1568
1595
|
);
|
|
1569
1596
|
return e.setUTCFullYear(n.getFullYear()), +r - +e;
|
|
1570
1597
|
}
|
|
1571
|
-
function
|
|
1598
|
+
function d1(r, ...n) {
|
|
1572
1599
|
const e = e2.bind(
|
|
1573
1600
|
null,
|
|
1574
1601
|
n.find((t) => typeof t == "object")
|
|
@@ -1580,7 +1607,7 @@ function H1(r, n) {
|
|
|
1580
1607
|
return e.setHours(0, 0, 0, 0), e;
|
|
1581
1608
|
}
|
|
1582
1609
|
function d3(r, n, e) {
|
|
1583
|
-
const [t, A] =
|
|
1610
|
+
const [t, A] = d1(
|
|
1584
1611
|
e == null ? void 0 : e.in,
|
|
1585
1612
|
r,
|
|
1586
1613
|
n
|
|
@@ -1604,7 +1631,7 @@ function un(r, n, e) {
|
|
|
1604
1631
|
function M0(r, n, e) {
|
|
1605
1632
|
return G2(r, n * 7, e);
|
|
1606
1633
|
}
|
|
1607
|
-
function
|
|
1634
|
+
function I1(r, n, e) {
|
|
1608
1635
|
return P2(r, n * 12, e);
|
|
1609
1636
|
}
|
|
1610
1637
|
function h5(r, n) {
|
|
@@ -1624,41 +1651,41 @@ function z5(r, n) {
|
|
|
1624
1651
|
}), e2(t, e || NaN);
|
|
1625
1652
|
}
|
|
1626
1653
|
function dn(r, n, e) {
|
|
1627
|
-
const [t, A] =
|
|
1654
|
+
const [t, A] = d1(
|
|
1628
1655
|
e == null ? void 0 : e.in,
|
|
1629
1656
|
r,
|
|
1630
1657
|
n
|
|
1631
1658
|
);
|
|
1632
1659
|
return +H1(t) == +H1(A);
|
|
1633
1660
|
}
|
|
1634
|
-
function
|
|
1661
|
+
function E1(r) {
|
|
1635
1662
|
return r instanceof Date || typeof r == "object" && Object.prototype.toString.call(r) === "[object Date]";
|
|
1636
1663
|
}
|
|
1637
1664
|
function m0(r) {
|
|
1638
|
-
return !(!
|
|
1665
|
+
return !(!E1(r) && typeof r != "number" || isNaN(+x(r)));
|
|
1639
1666
|
}
|
|
1640
1667
|
function v0(r, n, e) {
|
|
1641
|
-
const [t, A] =
|
|
1668
|
+
const [t, A] = d1(
|
|
1642
1669
|
e == null ? void 0 : e.in,
|
|
1643
1670
|
r,
|
|
1644
1671
|
n
|
|
1645
1672
|
), i = t.getFullYear() - A.getFullYear(), a = t.getMonth() - A.getMonth();
|
|
1646
1673
|
return i * 12 + a;
|
|
1647
1674
|
}
|
|
1648
|
-
function
|
|
1675
|
+
function m1(r, n) {
|
|
1649
1676
|
const e = x(r, n == null ? void 0 : n.in);
|
|
1650
1677
|
return Math.trunc(e.getMonth() / 3) + 1;
|
|
1651
1678
|
}
|
|
1652
1679
|
function p0(r, n, e) {
|
|
1653
|
-
const [t, A] =
|
|
1680
|
+
const [t, A] = d1(
|
|
1654
1681
|
e == null ? void 0 : e.in,
|
|
1655
1682
|
r,
|
|
1656
1683
|
n
|
|
1657
|
-
), i = t.getFullYear() - A.getFullYear(), a =
|
|
1684
|
+
), i = t.getFullYear() - A.getFullYear(), a = m1(t) - m1(A);
|
|
1658
1685
|
return i * 4 + a;
|
|
1659
1686
|
}
|
|
1660
1687
|
function h0(r, n, e) {
|
|
1661
|
-
const [t, A] =
|
|
1688
|
+
const [t, A] = d1(
|
|
1662
1689
|
e == null ? void 0 : e.in,
|
|
1663
1690
|
r,
|
|
1664
1691
|
n
|
|
@@ -1666,7 +1693,7 @@ function h0(r, n, e) {
|
|
|
1666
1693
|
return t.getFullYear() - A.getFullYear();
|
|
1667
1694
|
}
|
|
1668
1695
|
function Mn(r, n, e) {
|
|
1669
|
-
const [t, A] =
|
|
1696
|
+
const [t, A] = d1(
|
|
1670
1697
|
e == null ? void 0 : e.in,
|
|
1671
1698
|
r,
|
|
1672
1699
|
n
|
|
@@ -2153,25 +2180,25 @@ function X7(r, n) {
|
|
|
2153
2180
|
var E, f, s, u;
|
|
2154
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);
|
|
2155
2182
|
a.setFullYear(t + 1, 0, i), a.setHours(0, 0, 0, 0);
|
|
2156
|
-
const l =
|
|
2183
|
+
const l = s1(a, n), c = e2((n == null ? void 0 : n.in) || r, 0);
|
|
2157
2184
|
c.setFullYear(t, 0, i), c.setHours(0, 0, 0, 0);
|
|
2158
|
-
const o =
|
|
2185
|
+
const o = s1(c, n);
|
|
2159
2186
|
return +e >= +l ? t + 1 : +e >= +o ? t : t - 1;
|
|
2160
2187
|
}
|
|
2161
2188
|
function Nn(r, n) {
|
|
2162
2189
|
var l, c, o, E;
|
|
2163
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);
|
|
2164
|
-
return i.setFullYear(A, 0, t), i.setHours(0, 0, 0, 0),
|
|
2191
|
+
return i.setFullYear(A, 0, t), i.setHours(0, 0, 0, 0), s1(i, n);
|
|
2165
2192
|
}
|
|
2166
2193
|
function P4(r, n) {
|
|
2167
|
-
const e = x(r, n == null ? void 0 : n.in), t = +
|
|
2194
|
+
const e = x(r, n == null ? void 0 : n.in), t = +s1(e, n) - +Nn(e, n);
|
|
2168
2195
|
return Math.round(t / q4) + 1;
|
|
2169
2196
|
}
|
|
2170
2197
|
function $(r, n) {
|
|
2171
2198
|
const e = r < 0 ? "-" : "", t = Math.abs(r).toString().padStart(n, "0");
|
|
2172
2199
|
return e + t;
|
|
2173
2200
|
}
|
|
2174
|
-
const
|
|
2201
|
+
const M1 = {
|
|
2175
2202
|
// Year
|
|
2176
2203
|
y(r, n) {
|
|
2177
2204
|
const e = r.getFullYear(), t = e > 0 ? e : 1 - e;
|
|
@@ -2254,7 +2281,7 @@ const d1 = {
|
|
|
2254
2281
|
const t = r.getFullYear(), A = t > 0 ? t : 1 - t;
|
|
2255
2282
|
return e.ordinalNumber(A, { unit: "year" });
|
|
2256
2283
|
}
|
|
2257
|
-
return
|
|
2284
|
+
return M1.y(r, n);
|
|
2258
2285
|
},
|
|
2259
2286
|
// Local week-numbering year
|
|
2260
2287
|
Y: function(r, n, e, t) {
|
|
@@ -2345,7 +2372,7 @@ const d1 = {
|
|
|
2345
2372
|
switch (n) {
|
|
2346
2373
|
case "M":
|
|
2347
2374
|
case "MM":
|
|
2348
|
-
return
|
|
2375
|
+
return M1.M(r, n);
|
|
2349
2376
|
case "Mo":
|
|
2350
2377
|
return e.ordinalNumber(t + 1, { unit: "month" });
|
|
2351
2378
|
case "MMM":
|
|
@@ -2400,7 +2427,7 @@ const d1 = {
|
|
|
2400
2427
|
},
|
|
2401
2428
|
// Day of the month
|
|
2402
2429
|
d: function(r, n, e) {
|
|
2403
|
-
return n === "do" ? e.ordinalNumber(r.getDate(), { unit: "date" }) :
|
|
2430
|
+
return n === "do" ? e.ordinalNumber(r.getDate(), { unit: "date" }) : M1.d(r, n);
|
|
2404
2431
|
},
|
|
2405
2432
|
// Day of year
|
|
2406
2433
|
D: function(r, n, e) {
|
|
@@ -2623,11 +2650,11 @@ const d1 = {
|
|
|
2623
2650
|
let t = r.getHours() % 12;
|
|
2624
2651
|
return t === 0 && (t = 12), e.ordinalNumber(t, { unit: "hour" });
|
|
2625
2652
|
}
|
|
2626
|
-
return
|
|
2653
|
+
return M1.h(r, n);
|
|
2627
2654
|
},
|
|
2628
2655
|
// Hour [0-23]
|
|
2629
2656
|
H: function(r, n, e) {
|
|
2630
|
-
return n === "Ho" ? e.ordinalNumber(r.getHours(), { unit: "hour" }) :
|
|
2657
|
+
return n === "Ho" ? e.ordinalNumber(r.getHours(), { unit: "hour" }) : M1.H(r, n);
|
|
2631
2658
|
},
|
|
2632
2659
|
// Hour [0-11]
|
|
2633
2660
|
K: function(r, n, e) {
|
|
@@ -2641,15 +2668,15 @@ const d1 = {
|
|
|
2641
2668
|
},
|
|
2642
2669
|
// Minute
|
|
2643
2670
|
m: function(r, n, e) {
|
|
2644
|
-
return n === "mo" ? e.ordinalNumber(r.getMinutes(), { unit: "minute" }) :
|
|
2671
|
+
return n === "mo" ? e.ordinalNumber(r.getMinutes(), { unit: "minute" }) : M1.m(r, n);
|
|
2645
2672
|
},
|
|
2646
2673
|
// Second
|
|
2647
2674
|
s: function(r, n, e) {
|
|
2648
|
-
return n === "so" ? e.ordinalNumber(r.getSeconds(), { unit: "second" }) :
|
|
2675
|
+
return n === "so" ? e.ordinalNumber(r.getSeconds(), { unit: "second" }) : M1.s(r, n);
|
|
2649
2676
|
},
|
|
2650
2677
|
// Fraction of second
|
|
2651
2678
|
S: function(r, n) {
|
|
2652
|
-
return
|
|
2679
|
+
return M1.S(r, n);
|
|
2653
2680
|
},
|
|
2654
2681
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
2655
2682
|
X: function(r, n, e) {
|
|
@@ -3196,10 +3223,10 @@ class Qr extends _ {
|
|
|
3196
3223
|
c,
|
|
3197
3224
|
0,
|
|
3198
3225
|
i.firstWeekContainsDate
|
|
3199
|
-
), e.setHours(0, 0, 0, 0),
|
|
3226
|
+
), e.setHours(0, 0, 0, 0), s1(e, i);
|
|
3200
3227
|
}
|
|
3201
3228
|
const l = !("era" in t) || t.era === 1 ? A.year : 1 - A.year;
|
|
3202
|
-
return e.setFullYear(l, 0, i.firstWeekContainsDate), e.setHours(0, 0, 0, 0),
|
|
3229
|
+
return e.setFullYear(l, 0, i.firstWeekContainsDate), e.setHours(0, 0, 0, 0), s1(e, i);
|
|
3203
3230
|
}
|
|
3204
3231
|
}
|
|
3205
3232
|
class Zr extends _ {
|
|
@@ -3531,7 +3558,7 @@ class xr extends _ {
|
|
|
3531
3558
|
return t >= 1 && t <= 53;
|
|
3532
3559
|
}
|
|
3533
3560
|
set(e, t, A, i) {
|
|
3534
|
-
return
|
|
3561
|
+
return s1(Yr(e, A, i), i);
|
|
3535
3562
|
}
|
|
3536
3563
|
}
|
|
3537
3564
|
function Vr(r, n, e) {
|
|
@@ -4420,7 +4447,7 @@ function fA(r) {
|
|
|
4420
4447
|
return r.match(lA)[1].replace(cA, "'");
|
|
4421
4448
|
}
|
|
4422
4449
|
function CA(r, n, e) {
|
|
4423
|
-
const [t, A] =
|
|
4450
|
+
const [t, A] = d1(
|
|
4424
4451
|
e == null ? void 0 : e.in,
|
|
4425
4452
|
r,
|
|
4426
4453
|
n
|
|
@@ -4428,7 +4455,7 @@ function CA(r, n, e) {
|
|
|
4428
4455
|
return t.getFullYear() === A.getFullYear() && t.getMonth() === A.getMonth();
|
|
4429
4456
|
}
|
|
4430
4457
|
function sA(r, n, e) {
|
|
4431
|
-
const [t, A] =
|
|
4458
|
+
const [t, A] = d1(
|
|
4432
4459
|
e == null ? void 0 : e.in,
|
|
4433
4460
|
r,
|
|
4434
4461
|
n
|
|
@@ -4436,7 +4463,7 @@ function sA(r, n, e) {
|
|
|
4436
4463
|
return +g7(t) == +g7(A);
|
|
4437
4464
|
}
|
|
4438
4465
|
function uA(r, n, e) {
|
|
4439
|
-
const [t, A] =
|
|
4466
|
+
const [t, A] = d1(
|
|
4440
4467
|
e == null ? void 0 : e.in,
|
|
4441
4468
|
r,
|
|
4442
4469
|
n
|
|
@@ -4604,7 +4631,7 @@ function U5(r, n, e) {
|
|
|
4604
4631
|
return M0(r, -1, e);
|
|
4605
4632
|
}
|
|
4606
4633
|
function M3(r, n, e) {
|
|
4607
|
-
return
|
|
4634
|
+
return I1(r, -n, e);
|
|
4608
4635
|
}
|
|
4609
4636
|
function O0() {
|
|
4610
4637
|
return typeof window < "u";
|
|
@@ -4612,7 +4639,7 @@ function O0() {
|
|
|
4612
4639
|
function g3(r) {
|
|
4613
4640
|
return _4(r) ? (r.nodeName || "").toLowerCase() : "#document";
|
|
4614
4641
|
}
|
|
4615
|
-
function
|
|
4642
|
+
function k2(r) {
|
|
4616
4643
|
var n;
|
|
4617
4644
|
return (r == null || (n = r.ownerDocument) == null ? void 0 : n.defaultView) || window;
|
|
4618
4645
|
}
|
|
@@ -4621,16 +4648,16 @@ function A1(r) {
|
|
|
4621
4648
|
return (n = (_4(r) ? r.ownerDocument : r.document) || window.document) == null ? void 0 : n.documentElement;
|
|
4622
4649
|
}
|
|
4623
4650
|
function _4(r) {
|
|
4624
|
-
return O0() ? r instanceof Node || r instanceof
|
|
4651
|
+
return O0() ? r instanceof Node || r instanceof k2(r).Node : !1;
|
|
4625
4652
|
}
|
|
4626
4653
|
function h2(r) {
|
|
4627
|
-
return O0() ? r instanceof Element || r instanceof
|
|
4654
|
+
return O0() ? r instanceof Element || r instanceof k2(r).Element : !1;
|
|
4628
4655
|
}
|
|
4629
4656
|
function n1(r) {
|
|
4630
|
-
return O0() ? r instanceof HTMLElement || r instanceof
|
|
4657
|
+
return O0() ? r instanceof HTMLElement || r instanceof k2(r).HTMLElement : !1;
|
|
4631
4658
|
}
|
|
4632
4659
|
function Y5(r) {
|
|
4633
|
-
return !O0() || typeof ShadowRoot > "u" ? !1 : r instanceof ShadowRoot || r instanceof
|
|
4660
|
+
return !O0() || typeof ShadowRoot > "u" ? !1 : r instanceof ShadowRoot || r instanceof k2(r).ShadowRoot;
|
|
4634
4661
|
}
|
|
4635
4662
|
const VA = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
4636
4663
|
function P3(r) {
|
|
@@ -4680,7 +4707,7 @@ function m3(r) {
|
|
|
4680
4707
|
return TA.has(g3(r));
|
|
4681
4708
|
}
|
|
4682
4709
|
function O2(r) {
|
|
4683
|
-
return
|
|
4710
|
+
return k2(r).getComputedStyle(r);
|
|
4684
4711
|
}
|
|
4685
4712
|
function T0(r) {
|
|
4686
4713
|
return h2(r) ? {
|
|
@@ -4710,7 +4737,7 @@ function $4(r) {
|
|
|
4710
4737
|
function W3(r, n, e) {
|
|
4711
4738
|
var t;
|
|
4712
4739
|
n === void 0 && (n = []), e === void 0 && (e = !0);
|
|
4713
|
-
const A = $4(r), i = A === ((t = r.ownerDocument) == null ? void 0 : t.body), a =
|
|
4740
|
+
const A = $4(r), i = A === ((t = r.ownerDocument) == null ? void 0 : t.body), a = k2(A);
|
|
4714
4741
|
if (i) {
|
|
4715
4742
|
const l = R7(a);
|
|
4716
4743
|
return n.concat(a, a.visualViewport || [], P3(A) ? A : [], l && e ? W3(l) : []);
|
|
@@ -5197,14 +5224,14 @@ function f3(r) {
|
|
|
5197
5224
|
}
|
|
5198
5225
|
const Ci = /* @__PURE__ */ t1(0);
|
|
5199
5226
|
function n9(r) {
|
|
5200
|
-
const n =
|
|
5227
|
+
const n = k2(r);
|
|
5201
5228
|
return !H7() || !n.visualViewport ? Ci : {
|
|
5202
5229
|
x: n.visualViewport.offsetLeft,
|
|
5203
5230
|
y: n.visualViewport.offsetTop
|
|
5204
5231
|
};
|
|
5205
5232
|
}
|
|
5206
5233
|
function si(r, n, e) {
|
|
5207
|
-
return n === void 0 && (n = !1), !e || n && e !==
|
|
5234
|
+
return n === void 0 && (n = !1), !e || n && e !== k2(r) ? !1 : n;
|
|
5208
5235
|
}
|
|
5209
5236
|
function F1(r, n, e, t) {
|
|
5210
5237
|
n === void 0 && (n = !1), e === void 0 && (e = !1);
|
|
@@ -5214,11 +5241,11 @@ function F1(r, n, e, t) {
|
|
|
5214
5241
|
const l = si(i, e, t) ? n9(i) : t1(0);
|
|
5215
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;
|
|
5216
5243
|
if (i) {
|
|
5217
|
-
const s =
|
|
5244
|
+
const s = k2(i), u = t && h2(t) ? k2(t) : t;
|
|
5218
5245
|
let d = s, m = R7(d);
|
|
5219
5246
|
for (; m && t && u !== d; ) {
|
|
5220
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;
|
|
5221
|
-
c *= M.x, o *= M.y, E *= M.x, f *= M.y, c += Q, o += U, d =
|
|
5248
|
+
c *= M.x, o *= M.y, E *= M.x, f *= M.y, c += Q, o += U, d = k2(m), m = R7(d);
|
|
5222
5249
|
}
|
|
5223
5250
|
}
|
|
5224
5251
|
return Z0({
|
|
@@ -5282,7 +5309,7 @@ function Mi(r) {
|
|
|
5282
5309
|
}
|
|
5283
5310
|
const q5 = 25;
|
|
5284
5311
|
function mi(r, n) {
|
|
5285
|
-
const e =
|
|
5312
|
+
const e = k2(r), t = A1(r), A = e.visualViewport;
|
|
5286
5313
|
let i = t.clientWidth, a = t.clientHeight, l = 0, c = 0;
|
|
5287
5314
|
if (A) {
|
|
5288
5315
|
i = A.width, a = A.height;
|
|
@@ -5411,7 +5438,7 @@ function j5(r, n) {
|
|
|
5411
5438
|
return A1(r) === e && (e = e.ownerDocument.body), e;
|
|
5412
5439
|
}
|
|
5413
5440
|
function i9(r, n) {
|
|
5414
|
-
const e =
|
|
5441
|
+
const e = k2(r);
|
|
5415
5442
|
if (W0(r))
|
|
5416
5443
|
return e;
|
|
5417
5444
|
if (!n1(r)) {
|
|
@@ -6004,7 +6031,7 @@ var ea = function(r) {
|
|
|
6004
6031
|
return p.createElement("div", { className: i, "aria-label": c, role: l ? void 0 : "dialog", "aria-modal": l ? void 0 : "true" }, a);
|
|
6005
6032
|
}, ta = function(r, n) {
|
|
6006
6033
|
var e = Z2(null), t = Z2(r);
|
|
6007
|
-
|
|
6034
|
+
o1(function() {
|
|
6008
6035
|
t.current = r;
|
|
6009
6036
|
}, [r]);
|
|
6010
6037
|
var A = o3(function(i) {
|
|
@@ -6013,7 +6040,7 @@ var ea = function(r) {
|
|
|
6013
6040
|
}) || i.target;
|
|
6014
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));
|
|
6015
6042
|
}, [n]);
|
|
6016
|
-
return
|
|
6043
|
+
return o1(function() {
|
|
6017
6044
|
return document.addEventListener("mousedown", A), function() {
|
|
6018
6045
|
document.removeEventListener("mousedown", A);
|
|
6019
6046
|
};
|
|
@@ -6104,12 +6131,12 @@ function K3(r) {
|
|
|
6104
6131
|
}
|
|
6105
6132
|
function Q1(r, n, e) {
|
|
6106
6133
|
var t = h3(n || N7());
|
|
6107
|
-
return
|
|
6134
|
+
return s1(r, {
|
|
6108
6135
|
locale: t,
|
|
6109
6136
|
weekStartsOn: e
|
|
6110
6137
|
});
|
|
6111
6138
|
}
|
|
6112
|
-
function
|
|
6139
|
+
function f1(r) {
|
|
6113
6140
|
return W4(r);
|
|
6114
6141
|
}
|
|
6115
6142
|
function q3(r) {
|
|
@@ -6187,7 +6214,7 @@ function E9(r, n) {
|
|
|
6187
6214
|
function Ea(r, n) {
|
|
6188
6215
|
return n2(c3(D(), r), "QQQ", n);
|
|
6189
6216
|
}
|
|
6190
|
-
function
|
|
6217
|
+
function j2(r, n) {
|
|
6191
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;
|
|
6192
6219
|
return E ? !0 : F3(r, { minDate: t, maxDate: A }) || i && i.some(function(f) {
|
|
6193
6220
|
return f instanceof Date ? F(r, f) : F(r, f.date);
|
|
@@ -6263,7 +6290,7 @@ function f0(r, n) {
|
|
|
6263
6290
|
}) || l && !l(D(o)) || !1;
|
|
6264
6291
|
}
|
|
6265
6292
|
function t0(r, n, e, t) {
|
|
6266
|
-
var A = J(r), i =
|
|
6293
|
+
var A = J(r), i = m1(r), a = J(n), l = m1(n), c = J(t);
|
|
6267
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;
|
|
6268
6295
|
}
|
|
6269
6296
|
function F3(r, n) {
|
|
@@ -6332,13 +6359,13 @@ function ua(r, n) {
|
|
|
6332
6359
|
return c && c > l || !1;
|
|
6333
6360
|
}
|
|
6334
6361
|
function N5(r, n) {
|
|
6335
|
-
var e = n === void 0 ? {} : n, t = e.maxDate, A = e.includeDates, i =
|
|
6362
|
+
var e = n === void 0 ? {} : n, t = e.maxDate, A = e.includeDates, i = I1(r, 1);
|
|
6336
6363
|
return t && h0(i, t) > 0 || A && A.every(function(a) {
|
|
6337
6364
|
return h0(i, a) > 0;
|
|
6338
6365
|
}) || !1;
|
|
6339
6366
|
}
|
|
6340
6367
|
function da(r, n) {
|
|
6341
|
-
var e = n === void 0 ? {} : n, t = e.maxDate, A = e.yearItemNumber, i = A === void 0 ? H3 : A, a =
|
|
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);
|
|
6342
6369
|
return c && c < l || !1;
|
|
6343
6370
|
}
|
|
6344
6371
|
function C9(r) {
|
|
@@ -6364,7 +6391,7 @@ function _5(r, n) {
|
|
|
6364
6391
|
r === void 0 && (r = []), n === void 0 && (n = "react-datepicker__day--highlighted");
|
|
6365
6392
|
for (var t = /* @__PURE__ */ new Map(), A = 0, i = r.length; A < i; A++) {
|
|
6366
6393
|
var a = r[A];
|
|
6367
|
-
if (
|
|
6394
|
+
if (E1(a)) {
|
|
6368
6395
|
var l = n2(a, "MM.dd.yyyy"), c = t.get(l) || [];
|
|
6369
6396
|
c.includes(n) || (c.push(n), t.set(l, c));
|
|
6370
6397
|
} else if (typeof a == "object") {
|
|
@@ -6391,7 +6418,7 @@ function ma(r, n) {
|
|
|
6391
6418
|
var e = /* @__PURE__ */ new Map();
|
|
6392
6419
|
return r.forEach(function(t) {
|
|
6393
6420
|
var A = t.date, i = t.holidayName;
|
|
6394
|
-
if (
|
|
6421
|
+
if (E1(A)) {
|
|
6395
6422
|
var a = n2(A, "MM.dd.yyyy"), l = e.get(a) || {
|
|
6396
6423
|
className: "",
|
|
6397
6424
|
holidayNames: []
|
|
@@ -6433,13 +6460,13 @@ function u9(r, n) {
|
|
|
6433
6460
|
return e4(r).getTime() === e4(n).getTime();
|
|
6434
6461
|
}
|
|
6435
6462
|
function t4(r) {
|
|
6436
|
-
if (!
|
|
6463
|
+
if (!E1(r))
|
|
6437
6464
|
throw new Error("Invalid date");
|
|
6438
6465
|
var n = new Date(r);
|
|
6439
6466
|
return n.setHours(0, 0, 0, 0), n;
|
|
6440
6467
|
}
|
|
6441
6468
|
function i7(r, n) {
|
|
6442
|
-
if (!
|
|
6469
|
+
if (!E1(r) || !E1(n))
|
|
6443
6470
|
throw new Error("Invalid date received");
|
|
6444
6471
|
var e = t4(r), t = t4(n);
|
|
6445
6472
|
return _2(e, t);
|
|
@@ -6519,7 +6546,7 @@ var ha = (
|
|
|
6519
6546
|
}) : e.isSameDayOrWeek(e.props.selected), i = e.props.preSelection && e.isDisabled(e.props.preSelection);
|
|
6520
6547
|
return !A && e.isSameDayOrWeek(e.props.preSelection) && !i;
|
|
6521
6548
|
}, e.isDisabled = function(t) {
|
|
6522
|
-
return t === void 0 && (t = e.props.day),
|
|
6549
|
+
return t === void 0 && (t = e.props.day), j2(t, {
|
|
6523
6550
|
minDate: e.props.minDate,
|
|
6524
6551
|
maxDate: e.props.maxDate,
|
|
6525
6552
|
excludeDates: e.props.excludeDates,
|
|
@@ -6715,7 +6742,7 @@ var ha = (
|
|
|
6715
6742
|
function n() {
|
|
6716
6743
|
var e = r !== null && r.apply(this, arguments) || this;
|
|
6717
6744
|
return e.isDisabled = function(t) {
|
|
6718
|
-
return
|
|
6745
|
+
return j2(t, {
|
|
6719
6746
|
minDate: e.props.minDate,
|
|
6720
6747
|
maxDate: e.props.maxDate,
|
|
6721
6748
|
excludeDates: e.props.excludeDates,
|
|
@@ -6825,7 +6852,7 @@ var Ra = (
|
|
|
6825
6852
|
}), e.QUARTER_REFS = $2([], Array(4), !0).map(function() {
|
|
6826
6853
|
return R1();
|
|
6827
6854
|
}), e.isDisabled = function(t) {
|
|
6828
|
-
return
|
|
6855
|
+
return j2(t, {
|
|
6829
6856
|
minDate: e.props.minDate,
|
|
6830
6857
|
maxDate: e.props.maxDate,
|
|
6831
6858
|
excludeDates: e.props.excludeDates,
|
|
@@ -6885,7 +6912,7 @@ var Ra = (
|
|
|
6885
6912
|
}, e.isCurrentMonth = function(t, A) {
|
|
6886
6913
|
return J(t) === J(D()) && A === b2(D());
|
|
6887
6914
|
}, e.isCurrentQuarter = function(t, A) {
|
|
6888
|
-
return J(t) === J(D()) && A ===
|
|
6915
|
+
return J(t) === J(D()) && A === m1(D());
|
|
6889
6916
|
}, e.isSelectedMonth = function(t, A, i) {
|
|
6890
6917
|
return b2(i) === A && J(t) === J(i);
|
|
6891
6918
|
}, e.isSelectMonthInList = function(t, A, i) {
|
|
@@ -6893,7 +6920,7 @@ var Ra = (
|
|
|
6893
6920
|
return e.isSelectedMonth(t, A, a);
|
|
6894
6921
|
});
|
|
6895
6922
|
}, e.isSelectedQuarter = function(t, A, i) {
|
|
6896
|
-
return
|
|
6923
|
+
return m1(i) === A && J(t) === J(i);
|
|
6897
6924
|
}, e.isSelectQuarterInList = function(t, A, i) {
|
|
6898
6925
|
return i.some(function(a) {
|
|
6899
6926
|
return e.isSelectedQuarter(t, A, a);
|
|
@@ -6904,14 +6931,14 @@ var Ra = (
|
|
|
6904
6931
|
return e.isSelectedMonth(A, c, o);
|
|
6905
6932
|
}) : !!i && e.isSelectedMonth(A, c, i);
|
|
6906
6933
|
}, e.isQuarterSelected = function() {
|
|
6907
|
-
var t = e.props, A = t.day, i = t.selected, a = t.selectedDates, l = t.selectsMultiple, c =
|
|
6934
|
+
var t = e.props, A = t.day, i = t.selected, a = t.selectedDates, l = t.selectsMultiple, c = m1(A);
|
|
6908
6935
|
return l ? a == null ? void 0 : a.some(function(o) {
|
|
6909
6936
|
return e.isSelectedQuarter(A, c, o);
|
|
6910
6937
|
}) : !!i && e.isSelectedQuarter(A, c, i);
|
|
6911
6938
|
}, e.renderWeeks = function() {
|
|
6912
6939
|
if (!K2(e.props.day))
|
|
6913
6940
|
return [];
|
|
6914
|
-
for (var t = [], A = e.props.fixedHeight, i = 0, a = !1, l = Q1(
|
|
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) {
|
|
6915
6942
|
return e.props.showWeekPicker ? Q1(d, e.props.locale, e.props.calendarStartDay) : e.props.preSelection;
|
|
6916
6943
|
}, o = function(d) {
|
|
6917
6944
|
return e.props.showWeekPicker ? Q1(d, e.props.locale, e.props.calendarStartDay) : e.props.selected;
|
|
@@ -6927,10 +6954,10 @@ var Ra = (
|
|
|
6927
6954
|
return t;
|
|
6928
6955
|
}, e.onMonthClick = function(t, A) {
|
|
6929
6956
|
var i = e.isMonthDisabledForLabelDate(A), a = i.isDisabled, l = i.labelDate;
|
|
6930
|
-
a || e.handleDayClick(
|
|
6957
|
+
a || e.handleDayClick(f1(l), t);
|
|
6931
6958
|
}, e.onMonthMouseEnter = function(t) {
|
|
6932
6959
|
var A = e.isMonthDisabledForLabelDate(t), i = A.isDisabled, a = A.labelDate;
|
|
6933
|
-
i || e.handleDayMouseEnter(
|
|
6960
|
+
i || e.handleDayMouseEnter(f1(a));
|
|
6934
6961
|
}, e.handleMonthNavigation = function(t, A) {
|
|
6935
6962
|
var i, a, l, c;
|
|
6936
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();
|
|
@@ -7060,7 +7087,7 @@ var Ra = (
|
|
|
7060
7087
|
}, e.getQuarterTabIndex = function(t) {
|
|
7061
7088
|
if (e.props.preSelection == null)
|
|
7062
7089
|
return "-1";
|
|
7063
|
-
var A =
|
|
7090
|
+
var A = m1(e.props.preSelection), i = $3(e.props.day, e.props), a = t === A && !(i || e.props.disabledKeyboardNavigation) ? "0" : "-1";
|
|
7064
7091
|
return a;
|
|
7065
7092
|
}, e.getAriaLabel = function(t) {
|
|
7066
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;
|
|
@@ -7235,7 +7262,7 @@ var Ra = (
|
|
|
7235
7262
|
}(v2)
|
|
7236
7263
|
);
|
|
7237
7264
|
function Ba(r, n) {
|
|
7238
|
-
for (var e = [], t =
|
|
7265
|
+
for (var e = [], t = f1(r), A = f1(n); !U1(t, A); )
|
|
7239
7266
|
e.push(D(t)), t = P2(t, 1);
|
|
7240
7267
|
return e;
|
|
7241
7268
|
}
|
|
@@ -7280,7 +7307,7 @@ var Ua = (
|
|
|
7280
7307
|
return e.state = {
|
|
7281
7308
|
dropdownVisible: !1
|
|
7282
7309
|
}, e.renderSelectOptions = function() {
|
|
7283
|
-
for (var t =
|
|
7310
|
+
for (var t = f1(e.props.minDate), A = f1(e.props.maxDate), i = []; !U1(t, A); ) {
|
|
7284
7311
|
var a = Z7(t);
|
|
7285
7312
|
i.push(p.createElement("option", { key: a, value: a }, n2(t, e.props.dateFormat, e.props.locale))), t = P2(t, 1);
|
|
7286
7313
|
}
|
|
@@ -7288,7 +7315,7 @@ var Ua = (
|
|
|
7288
7315
|
}, e.onSelectChange = function(t) {
|
|
7289
7316
|
e.onChange(parseInt(t.target.value));
|
|
7290
7317
|
}, e.renderSelectMode = function() {
|
|
7291
|
-
return p.createElement("select", { value: Z7(
|
|
7318
|
+
return p.createElement("select", { value: Z7(f1(e.props.date)), className: "react-datepicker__month-year-select", onChange: e.onSelectChange }, e.renderSelectOptions());
|
|
7292
7319
|
}, e.renderReadView = function(t) {
|
|
7293
7320
|
var A = n2(e.props.date, e.props.dateFormat, e.props.locale);
|
|
7294
7321
|
return p.createElement(
|
|
@@ -7440,7 +7467,7 @@ var Ua = (
|
|
|
7440
7467
|
return t.YEAR_REFS = $2([], Array(t.props.yearItemNumber), !0).map(function() {
|
|
7441
7468
|
return R1();
|
|
7442
7469
|
}), t.isDisabled = function(A) {
|
|
7443
|
-
return
|
|
7470
|
+
return j2(A, {
|
|
7444
7471
|
minDate: t.props.minDate,
|
|
7445
7472
|
maxDate: t.props.maxDate,
|
|
7446
7473
|
excludeDates: t.props.excludeDates,
|
|
@@ -7518,7 +7545,7 @@ var Ua = (
|
|
|
7518
7545
|
case R.ArrowRight:
|
|
7519
7546
|
if (t.props.preSelection == null)
|
|
7520
7547
|
break;
|
|
7521
|
-
t.handleYearNavigation(i + 1,
|
|
7548
|
+
t.handleYearNavigation(i + 1, I1(t.props.preSelection, 1));
|
|
7522
7549
|
break;
|
|
7523
7550
|
case R.ArrowLeft:
|
|
7524
7551
|
if (t.props.preSelection == null)
|
|
@@ -7544,7 +7571,7 @@ var Ua = (
|
|
|
7544
7571
|
var M = f % d;
|
|
7545
7572
|
i <= v && i > v - M ? d = M : d += M, m = i + d;
|
|
7546
7573
|
}
|
|
7547
|
-
t.handleYearNavigation(m,
|
|
7574
|
+
t.handleYearNavigation(m, I1(t.props.preSelection, d));
|
|
7548
7575
|
break;
|
|
7549
7576
|
}
|
|
7550
7577
|
}
|
|
@@ -7809,11 +7836,11 @@ var qa = (
|
|
|
7809
7836
|
var i, a, l, c;
|
|
7810
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);
|
|
7811
7838
|
}, t.getEnabledPreSelectionDateForMonth = function(A) {
|
|
7812
|
-
if (!
|
|
7839
|
+
if (!j2(A, t.props))
|
|
7813
7840
|
return A;
|
|
7814
|
-
for (var i =
|
|
7841
|
+
for (var i = f1(A), a = la(A), l = Mn(a, i), c = null, o = 0; o <= l; o++) {
|
|
7815
7842
|
var E = G2(i, o);
|
|
7816
|
-
if (!
|
|
7843
|
+
if (!j2(E, t.props)) {
|
|
7817
7844
|
c = E;
|
|
7818
7845
|
break;
|
|
7819
7846
|
}
|
|
@@ -7927,7 +7954,7 @@ var qa = (
|
|
|
7927
7954
|
t.setState(function(A) {
|
|
7928
7955
|
var i, a = A.date;
|
|
7929
7956
|
return {
|
|
7930
|
-
date:
|
|
7957
|
+
date: I1(a, t.props.showYearPicker ? (i = t.props.yearItemNumber) !== null && i !== void 0 ? i : n.defaultProps.yearItemNumber : 1)
|
|
7931
7958
|
};
|
|
7932
7959
|
}, function() {
|
|
7933
7960
|
return t.handleYearChange(t.state.date);
|
|
@@ -8036,8 +8063,8 @@ var qa = (
|
|
|
8036
8063
|
}, t.renderMonths = function() {
|
|
8037
8064
|
var A, i;
|
|
8038
8065
|
if (!(t.props.showTimeSelectOnly || t.props.showYearPicker)) {
|
|
8039
|
-
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 ?
|
|
8040
|
-
var s = f - E + c, u = t.props.showMonthYearPicker || t.props.showQuarterYearPicker ?
|
|
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;
|
|
8041
8068
|
a.push(p.createElement(
|
|
8042
8069
|
"div",
|
|
8043
8070
|
{ key: d, ref: function(v) {
|
|
@@ -8323,7 +8350,7 @@ var l7 = "Date input not valid.", p9 = (
|
|
|
8323
8350
|
});
|
|
8324
8351
|
});
|
|
8325
8352
|
}, t.inputOk = function() {
|
|
8326
|
-
return
|
|
8353
|
+
return E1(t.state.preSelection);
|
|
8327
8354
|
}, t.isCalendarOpen = function() {
|
|
8328
8355
|
return t.props.open === void 0 ? t.state.open && !t.props.disabled && !t.props.readOnly : t.props.open;
|
|
8329
8356
|
}, t.handleFocus = function(A) {
|
|
@@ -8365,7 +8392,7 @@ var l7 = "Date input not valid.", p9 = (
|
|
|
8365
8392
|
var Q = t.props.rangeSeparator, U = Q.trim(), V = z.split(M.includes(U) ? Q : U, 2).map(function(T) {
|
|
8366
8393
|
return T.trim();
|
|
8367
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());
|
|
8368
|
-
if (!j && !X || Z &&
|
|
8395
|
+
if (!j && !X || Z && j2(Z, t.props) || S && j2(S, t.props))
|
|
8369
8396
|
return;
|
|
8370
8397
|
(l = (a = t.props).onChange) === null || l === void 0 || l.call(a, [Z, S], f);
|
|
8371
8398
|
} else {
|
|
@@ -8394,7 +8421,7 @@ var l7 = "Date input not valid.", p9 = (
|
|
|
8394
8421
|
} else if (t.props.showMonthYearPicker) {
|
|
8395
8422
|
if (E !== null && f9(E, t.props))
|
|
8396
8423
|
return;
|
|
8397
|
-
} else if (E !== null &&
|
|
8424
|
+
} else if (E !== null && j2(E, t.props))
|
|
8398
8425
|
return;
|
|
8399
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;
|
|
8400
8427
|
if (!O1(t.props.selected, E) || t.props.allowSameDay || u || M)
|
|
@@ -8432,7 +8459,7 @@ var l7 = "Date input not valid.", p9 = (
|
|
|
8432
8459
|
a || ((o = (c = t.props).onSelect) === null || o === void 0 || o.call(c, E, i), t.setState({ inputValue: null }));
|
|
8433
8460
|
}, t.setPreSelection = function(A) {
|
|
8434
8461
|
if (!t.props.readOnly) {
|
|
8435
|
-
var i =
|
|
8462
|
+
var i = E1(t.props.minDate), a = E1(t.props.maxDate), l = !0;
|
|
8436
8463
|
if (A) {
|
|
8437
8464
|
var c = K3(A);
|
|
8438
8465
|
if (i && a)
|
|
@@ -8585,7 +8612,7 @@ var l7 = "Date input not valid.", p9 = (
|
|
|
8585
8612
|
T = b ? M3(K, 1) : P1(K, 1);
|
|
8586
8613
|
break;
|
|
8587
8614
|
case R.PageDown:
|
|
8588
|
-
T = b ?
|
|
8615
|
+
T = b ? I1(K, 1) : P2(K, 1);
|
|
8589
8616
|
break;
|
|
8590
8617
|
case R.Home:
|
|
8591
8618
|
T = Q1(K, v, z);
|
|
@@ -8601,7 +8628,7 @@ var l7 = "Date input not valid.", p9 = (
|
|
|
8601
8628
|
g = K;
|
|
8602
8629
|
break;
|
|
8603
8630
|
}
|
|
8604
|
-
s && g < s && (W = R.ArrowRight, g =
|
|
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++;
|
|
8605
8632
|
}
|
|
8606
8633
|
return g;
|
|
8607
8634
|
};
|
|
@@ -8767,7 +8794,7 @@ var l7 = "Date input not valid.", p9 = (
|
|
|
8767
8794
|
}, n;
|
|
8768
8795
|
}(v2)
|
|
8769
8796
|
), Fa = "input", c7 = "navigate";
|
|
8770
|
-
const wa = "
|
|
8797
|
+
const wa = "_inputWrapper_16pcj_1", La = "_inputIcon_16pcj_7", A4 = {
|
|
8771
8798
|
inputWrapper: wa,
|
|
8772
8799
|
inputIcon: La
|
|
8773
8800
|
}, Da = {
|
|
@@ -9105,26 +9132,40 @@ const Ql = (r) => {
|
|
|
9105
9132
|
showCalendarIcon: t = !0,
|
|
9106
9133
|
minDate: A,
|
|
9107
9134
|
maxDate: i,
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
{
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
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 = {
|
|
9128
9169
|
input: Zl,
|
|
9129
9170
|
inputWrapper: Rl,
|
|
9130
9171
|
inputIcon: bl
|
|
@@ -9146,7 +9187,7 @@ const Sl = (r) => {
|
|
|
9146
9187
|
maxDate: a,
|
|
9147
9188
|
...l
|
|
9148
9189
|
}) => /* @__PURE__ */ I.jsxs(B1, { className: B7.input, children: [
|
|
9149
|
-
/* @__PURE__ */ I.jsx(z3, { style: { display: "block", width: "fit-content" }, children: /* @__PURE__ */ I.jsx(
|
|
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 }) }),
|
|
9150
9191
|
l.description && /* @__PURE__ */ I.jsx(B1.Description, { children: l.description }),
|
|
9151
9192
|
/* @__PURE__ */ I.jsx(
|
|
9152
9193
|
p9,
|
|
@@ -9410,7 +9451,7 @@ function D1(r, n, e) {
|
|
|
9410
9451
|
let t, A = r.get(n);
|
|
9411
9452
|
for (t of e) A.set(t[0], t[1]);
|
|
9412
9453
|
}
|
|
9413
|
-
const u2 = /* @__PURE__ */ new Map(), J2 = /* @__PURE__ */ new Map(), Z1 = /* @__PURE__ */ new Map(),
|
|
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"];
|
|
9414
9455
|
class Q9 {
|
|
9415
9456
|
get translate() {
|
|
9416
9457
|
return this.translateKeys || this.translateValues || this.reviveValues;
|
|
@@ -9455,34 +9496,34 @@ class e3 extends Q9 {
|
|
|
9455
9496
|
}
|
|
9456
9497
|
setupFromUndefined() {
|
|
9457
9498
|
let n;
|
|
9458
|
-
for (n of
|
|
9499
|
+
for (n of v1) this[n] = g2[n];
|
|
9500
|
+
for (n of z1) this[n] = g2[n];
|
|
9459
9501
|
for (n of h1) this[n] = g2[n];
|
|
9460
|
-
for (n of p1) this[n] = g2[n];
|
|
9461
|
-
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);
|
|
9462
9503
|
}
|
|
9463
9504
|
setupFromTrue() {
|
|
9464
9505
|
let n;
|
|
9465
|
-
for (n of
|
|
9466
|
-
for (n of
|
|
9467
|
-
for (n of
|
|
9468
|
-
for (n of
|
|
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);
|
|
9469
9510
|
}
|
|
9470
9511
|
setupFromArray(n) {
|
|
9471
9512
|
let e;
|
|
9472
|
-
for (e of
|
|
9513
|
+
for (e of v1) this[e] = g2[e];
|
|
9514
|
+
for (e of z1) this[e] = g2[e];
|
|
9473
9515
|
for (e of h1) this[e] = g2[e];
|
|
9474
|
-
for (e of p1) this[e] =
|
|
9475
|
-
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);
|
|
9476
9517
|
this.setupGlobalFilters(n, void 0, a2);
|
|
9477
9518
|
}
|
|
9478
9519
|
setupFromObject(n) {
|
|
9479
9520
|
let e;
|
|
9480
|
-
for (e of (a2.ifd0 = a2.ifd0 || a2.image, a2.ifd1 = a2.ifd1 || a2.thumbnail, Object.assign(this, n),
|
|
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]);
|
|
9481
9523
|
for (e of h1) this[e] = o7(n[e], g2[e]);
|
|
9482
|
-
for (e of p1) this[e] = o7(n[e], g2[e]);
|
|
9483
9524
|
for (e of N1) this[e] = new Y3(e, g2[e], n[e], this);
|
|
9484
9525
|
for (e of a2) this[e] = new Y3(e, g2[e], n[e], this.tiff);
|
|
9485
|
-
this.setupGlobalFilters(n.pick, n.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);
|
|
9486
9527
|
}
|
|
9487
9528
|
batchEnableWithBool(n, e) {
|
|
9488
9529
|
for (let t of n) this[t].enabled = e;
|
|
@@ -9573,7 +9614,7 @@ async function w0(r, n) {
|
|
|
9573
9614
|
let e = new x1(n);
|
|
9574
9615
|
return await e.read(r), e.parse();
|
|
9575
9616
|
}
|
|
9576
|
-
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:
|
|
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 });
|
|
9577
9618
|
class L0 {
|
|
9578
9619
|
constructor(n, e, t) {
|
|
9579
9620
|
O(this, "errors", []), O(this, "ensureSegmentChunk", async (A) => {
|
|
@@ -9892,7 +9933,7 @@ function I4(r, n, e, t) {
|
|
|
9892
9933
|
return t !== "S" && t !== "W" || (A *= -1), A;
|
|
9893
9934
|
}
|
|
9894
9935
|
O(I7, "type", "tiff"), O(I7, "headerLength", 10), E2.set("tiff", I7);
|
|
9895
|
-
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:
|
|
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 });
|
|
9896
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] });
|
|
9897
9938
|
async function Z9(r) {
|
|
9898
9939
|
let n = new x1(r5);
|
|
@@ -10060,7 +10101,7 @@ i1.set("blob", class extends D0 {
|
|
|
10060
10101
|
return this.set(A, r, !0);
|
|
10061
10102
|
}
|
|
10062
10103
|
});
|
|
10063
|
-
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:
|
|
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() {
|
|
10064
10105
|
return T1;
|
|
10065
10106
|
}, get rotateCss() {
|
|
10066
10107
|
return X1;
|
|
@@ -10340,7 +10381,7 @@ function V9(r) {
|
|
|
10340
10381
|
return e === "true" || e !== "false" && r.trim();
|
|
10341
10382
|
}
|
|
10342
10383
|
const K9 = ["rdf:li", "rdf:Seq", "rdf:Bag", "rdf:Alt", "rdf:Description"], ic = new RegExp(`(<|\\/)(${K9.join("|")})`, "g");
|
|
10343
|
-
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:
|
|
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() {
|
|
10344
10385
|
return T1;
|
|
10345
10386
|
}, get rotateCss() {
|
|
10346
10387
|
return X1;
|
|
@@ -10638,7 +10679,10 @@ function c5(r, n, e) {
|
|
|
10638
10679
|
}
|
|
10639
10680
|
const sc = async () => new Promise((r) => {
|
|
10640
10681
|
setTimeout(() => {
|
|
10641
|
-
r(
|
|
10682
|
+
r({
|
|
10683
|
+
storageId: c5(),
|
|
10684
|
+
success: !0
|
|
10685
|
+
});
|
|
10642
10686
|
}, 2500);
|
|
10643
10687
|
}), uc = async () => new Promise((r) => {
|
|
10644
10688
|
setTimeout(() => {
|
|
@@ -10668,7 +10712,7 @@ const sc = async () => new Promise((r) => {
|
|
|
10668
10712
|
translations: f,
|
|
10669
10713
|
existingFilesProvider: s
|
|
10670
10714
|
}) => {
|
|
10671
|
-
const { at: u } = O7(), d = u.bind(null, "fileUploader", f), m = k7(dc), M = Z2(null), v = Z2(null), [z, Q] =
|
|
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) => {
|
|
10672
10716
|
Promise.all(
|
|
10673
10717
|
g.map(async (q) => {
|
|
10674
10718
|
try {
|
|
@@ -10678,7 +10722,7 @@ const sc = async () => new Promise((r) => {
|
|
|
10678
10722
|
}
|
|
10679
10723
|
})
|
|
10680
10724
|
).then((q) => {
|
|
10681
|
-
vc(q, l, m.uploadFile, o);
|
|
10725
|
+
vc(q, l, m.uploadFile, o, d);
|
|
10682
10726
|
});
|
|
10683
10727
|
}, S = (g) => {
|
|
10684
10728
|
o(l.filter((q) => q.contextId !== g.contextId));
|
|
@@ -10722,7 +10766,7 @@ const sc = async () => new Promise((r) => {
|
|
|
10722
10766
|
}, W = l.some((g) => g.status === "uploading"), w = !W && c && l.length >= c, H = !w && !W;
|
|
10723
10767
|
return /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
|
10724
10768
|
/* @__PURE__ */ I.jsxs(B1, { children: [
|
|
10725
|
-
/* @__PURE__ */ I.jsx(z3, { style: { pointerEvents: "none" }, children: /* @__PURE__ */ I.jsx(
|
|
10769
|
+
/* @__PURE__ */ I.jsx(z3, { style: { pointerEvents: "none" }, children: /* @__PURE__ */ I.jsx(u1, { text: r, required: n, optional: e }) }),
|
|
10726
10770
|
A && /* @__PURE__ */ I.jsx(B1.Description, { children: A }),
|
|
10727
10771
|
/* @__PURE__ */ I.jsx(
|
|
10728
10772
|
"input",
|
|
@@ -10781,7 +10825,7 @@ const sc = async () => new Promise((r) => {
|
|
|
10781
10825
|
/* @__PURE__ */ I.jsx(H9, { ref: v, children: /* @__PURE__ */ I.jsxs(y, { gap: 16, children: [
|
|
10782
10826
|
/* @__PURE__ */ I.jsx(S1, { level: 2, "data-size": "sm", children: d("existingFiles.dialogTitle") }),
|
|
10783
10827
|
U && /* @__PURE__ */ I.jsx(y, { horizontal: !0, align: "center", justify: "center", children: /* @__PURE__ */ I.jsx(k3, { "aria-label": d("loading") }) }),
|
|
10784
|
-
!U && z.length === 0 && /* @__PURE__ */ I.jsx(
|
|
10828
|
+
!U && z.length === 0 && /* @__PURE__ */ I.jsx(y2, { children: d("existingFiles.noFilesAvailable") }),
|
|
10785
10829
|
!U && z.length > 0 && /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
|
10786
10830
|
/* @__PURE__ */ I.jsx(y, { gap: 12, my: 16, children: z.map((g) => {
|
|
10787
10831
|
var q, L, t2;
|
|
@@ -10814,7 +10858,7 @@ const sc = async () => new Promise((r) => {
|
|
|
10814
10858
|
}
|
|
10815
10859
|
),
|
|
10816
10860
|
/* @__PURE__ */ I.jsxs(y, { gap: 8, horizontal: !0, align: "center", justify: "between", grow: !0, children: [
|
|
10817
|
-
/* @__PURE__ */ I.jsx(
|
|
10861
|
+
/* @__PURE__ */ I.jsx(y2, { className: R2.fileName, children: g.fileName || d("unknownFilename") }),
|
|
10818
10862
|
g.contentType && /* @__PURE__ */ I.jsx(G3, { className: R2.mimeType, children: (t2 = g.contentType) == null ? void 0 : t2.split("/").findLast(() => !0) })
|
|
10819
10863
|
] })
|
|
10820
10864
|
]
|
|
@@ -10829,33 +10873,33 @@ const sc = async () => new Promise((r) => {
|
|
|
10829
10873
|
] })
|
|
10830
10874
|
] }) })
|
|
10831
10875
|
] });
|
|
10832
|
-
}, vc = (r, n, e, t) => {
|
|
10876
|
+
}, vc = (r, n, e, t, A) => {
|
|
10833
10877
|
console.log("onFilesChanged", r, n);
|
|
10834
|
-
const
|
|
10835
|
-
r.forEach((
|
|
10836
|
-
const
|
|
10837
|
-
|
|
10838
|
-
contextId:
|
|
10839
|
-
fileName:
|
|
10878
|
+
const i = [...n], a = {};
|
|
10879
|
+
r.forEach((l) => {
|
|
10880
|
+
const c = c5();
|
|
10881
|
+
i.push({
|
|
10882
|
+
contextId: c,
|
|
10883
|
+
fileName: l.file.name,
|
|
10840
10884
|
status: "uploading",
|
|
10841
|
-
contentType:
|
|
10842
|
-
exif:
|
|
10843
|
-
}),
|
|
10844
|
-
}), t(
|
|
10885
|
+
contentType: l.file.type,
|
|
10886
|
+
exif: l.exif
|
|
10887
|
+
}), a[c] = l.file;
|
|
10888
|
+
}), t(i), Object.keys(a).forEach(async (l) => {
|
|
10845
10889
|
try {
|
|
10846
|
-
const
|
|
10847
|
-
if (!l)
|
|
10848
|
-
return;
|
|
10849
|
-
const c = new FormData();
|
|
10850
|
-
c.append("file", i[a], l.fileName);
|
|
10851
|
-
const o = await e(c);
|
|
10852
|
-
l.storageId = o, l.status = "uploaded", delete l.error, t([...A]);
|
|
10853
|
-
} catch (l) {
|
|
10854
|
-
console.error("Error when uploading", l);
|
|
10855
|
-
const c = A.find((o) => o.contextId === a);
|
|
10890
|
+
const c = i.find((f) => f.contextId === l);
|
|
10856
10891
|
if (!c)
|
|
10857
10892
|
return;
|
|
10858
|
-
|
|
10893
|
+
const o = new FormData();
|
|
10894
|
+
o.append("file", a[l], c.fileName);
|
|
10895
|
+
const E = await e(o);
|
|
10896
|
+
E.success ? (c.storageId = E.storageId, c.status = "uploaded", delete c.error) : (c.status = "error", c.error = A(`errors.${E.error || "unknown-error"}`)), t([...i]);
|
|
10897
|
+
} catch (c) {
|
|
10898
|
+
console.error("Error when uploading", c);
|
|
10899
|
+
const o = i.find((E) => E.contextId === l);
|
|
10900
|
+
if (!o)
|
|
10901
|
+
return;
|
|
10902
|
+
o.status = "error", o.error = A("errors.unknown-error"), t([...i]);
|
|
10859
10903
|
}
|
|
10860
10904
|
});
|
|
10861
10905
|
}, pc = "_icon_1tg5o_1", hc = {
|
|
@@ -10924,7 +10968,7 @@ const sc = async () => new Promise((r) => {
|
|
|
10924
10968
|
y7,
|
|
10925
10969
|
{
|
|
10926
10970
|
className: `${t} ${o5(n)}`,
|
|
10927
|
-
label: /* @__PURE__ */ I.jsx(
|
|
10971
|
+
label: /* @__PURE__ */ I.jsx(u1, { text: A.label, loading: A.loading, required: A.required, optional: A.optional }),
|
|
10928
10972
|
description: A.description,
|
|
10929
10973
|
readOnly: A.readOnly,
|
|
10930
10974
|
autoComplete: r,
|
|
@@ -10952,15 +10996,15 @@ const sc = async () => new Promise((r) => {
|
|
|
10952
10996
|
...A
|
|
10953
10997
|
}) => {
|
|
10954
10998
|
var l;
|
|
10955
|
-
const [i, a] =
|
|
10956
|
-
return
|
|
10999
|
+
const [i, a] = q2((l = A.value) == null ? void 0 : l.toString());
|
|
11000
|
+
return o1(() => {
|
|
10957
11001
|
var c, o;
|
|
10958
11002
|
((c = A.value) == null ? void 0 : c.toString()) !== i && a((o = A.value) == null ? void 0 : o.toString());
|
|
10959
11003
|
}, [A.value]), /* @__PURE__ */ I.jsx(
|
|
10960
11004
|
y7,
|
|
10961
11005
|
{
|
|
10962
11006
|
className: [e, o5(r), xc["align-" + t]].join(" "),
|
|
10963
|
-
label: /* @__PURE__ */ I.jsx(
|
|
11007
|
+
label: /* @__PURE__ */ I.jsx(u1, { text: A.label, required: A.required, optional: A.optional }),
|
|
10964
11008
|
description: A.description,
|
|
10965
11009
|
readOnly: A.readOnly,
|
|
10966
11010
|
placeholder: A.placeholder,
|
|
@@ -10987,7 +11031,7 @@ const sc = async () => new Promise((r) => {
|
|
|
10987
11031
|
y7,
|
|
10988
11032
|
{
|
|
10989
11033
|
className: `${n} ${o5(r)}`,
|
|
10990
|
-
label: /* @__PURE__ */ I.jsx(
|
|
11034
|
+
label: /* @__PURE__ */ I.jsx(u1, { text: e.label, required: e.required, optional: e.optional }),
|
|
10991
11035
|
description: e.description,
|
|
10992
11036
|
readOnly: e.readOnly,
|
|
10993
11037
|
placeholder: e.placeholder,
|
|
@@ -11005,9 +11049,9 @@ const sc = async () => new Promise((r) => {
|
|
|
11005
11049
|
}
|
|
11006
11050
|
), CI = ({ ...r }) => {
|
|
11007
11051
|
var i, a;
|
|
11008
|
-
const n = r.value ? { value: r.value } : { defaultValue: "" }, [e, t] =
|
|
11052
|
+
const n = r.value ? { value: r.value } : { defaultValue: "" }, [e, t] = q2(!1), A = [r.className, "override", e ? "select-open" : ""].filter(Boolean).join(" ");
|
|
11009
11053
|
return /* @__PURE__ */ I.jsxs(B1, { children: [
|
|
11010
|
-
/* @__PURE__ */ I.jsx(z3, { children: /* @__PURE__ */ I.jsx(
|
|
11054
|
+
/* @__PURE__ */ I.jsx(z3, { children: /* @__PURE__ */ I.jsx(u1, { text: r.label, required: r.required, optional: r.optional }) }),
|
|
11011
11055
|
r.description && /* @__PURE__ */ I.jsx(B1.Description, { children: r.description }),
|
|
11012
11056
|
/* @__PURE__ */ I.jsxs(
|
|
11013
11057
|
k1,
|
|
@@ -11235,7 +11279,7 @@ export {
|
|
|
11235
11279
|
sE as Input,
|
|
11236
11280
|
Dc as KyvDivider,
|
|
11237
11281
|
uE as Label,
|
|
11238
|
-
|
|
11282
|
+
u1 as LabelContent,
|
|
11239
11283
|
q9 as Link,
|
|
11240
11284
|
dE as List,
|
|
11241
11285
|
ME as ListItem,
|