@leabankab/component-library 8.12.0 → 8.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/dist/component-library.es.js +1045 -920
- package/dist/component-library.es.js.map +1 -1
- package/dist/component-library.umd.js +2 -2
- package/dist/component-library.umd.js.map +1 -1
- package/dist/components/buttons/action-button/action-button.d.ts +25 -2
- package/dist/components/data-display/featured-image/featured-image.d.ts +13 -2
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/form/search-input/search-input.d.ts +51 -0
- package/dist/components/form/slider/slider.d.ts +28 -3
- package/dist/components/form/slider-parts.d.ts +16 -8
- package/dist/cookie-consent-react.cjs +1 -1
- package/dist/cookie-consent-react.cjs.map +1 -1
- package/dist/cookie-consent-react.mjs +8 -8
- package/dist/cookie-consent-react.mjs.map +1 -1
- package/dist/cookie-consent.css +1 -1
- package/dist/index.css +1 -1
- package/dist/tailwind.css +127 -0
- package/dist/website/arrow-reveal-link.d.ts +11 -4
- package/dist/website/calculator/calculator.d.ts +2 -1
- package/dist/website/expanding-cards/expanding-cards-item.d.ts +34 -3
- package/dist/website/payment-feature/payment-feature.d.ts +5 -4
- package/dist/website/side-nav/side-nav.d.ts +5 -2
- package/dist/website.cjs +1 -1
- package/dist/website.cjs.map +1 -1
- package/dist/website.css +1 -1
- package/dist/website.mjs +287 -263
- package/dist/website.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { AnimatePresence as e, animate as t, motion as n, useMotionValue as r, useReducedMotion as i } from "motion/react";
|
|
3
3
|
import { Children as a, Fragment as o, createContext as s, isValidElement as c, useCallback as l, useContext as u, useEffect as d, useId as f, useLayoutEffect as p, useMemo as m, useRef as h, useState as g } from "react";
|
|
4
|
-
import { ArrowLeft as _, ArrowRight as v, Check as y, ChevronDown as b, ChevronRight as x, CircleAlert as S, CircleCheck as C, CircleX as w, Info as T, InfoIcon as E, Minus as ee, Pause as D, Play as O, Plus as
|
|
4
|
+
import { ArrowLeft as _, ArrowRight as v, Check as y, ChevronDown as b, ChevronRight as x, CircleAlert as S, CircleCheck as C, CircleX as w, Info as T, InfoIcon as E, Minus as ee, Pause as D, Play as O, Plus as te, Search as k, TriangleAlert as ne, X as re } from "lucide-react";
|
|
5
5
|
import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
6
6
|
import { Button as ie } from "@base-ui/react/button";
|
|
7
7
|
import { useRender as N } from "@base-ui/react/use-render";
|
|
@@ -11,9 +11,9 @@ import { Avatar as ae } from "@base-ui/react/avatar";
|
|
|
11
11
|
import { Dialog as I } from "@base-ui/react/dialog";
|
|
12
12
|
import { Drawer as L } from "@base-ui/react/drawer";
|
|
13
13
|
import { Toast as R } from "@base-ui/react/toast";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
14
|
+
import { NumberField as oe } from "@base-ui/react/number-field";
|
|
15
|
+
import { Slider as z } from "@base-ui/react/slider";
|
|
16
|
+
import { Field as B } from "@base-ui/react/field";
|
|
17
17
|
import { Combobox as V } from "@base-ui/react/combobox";
|
|
18
18
|
import { Checkbox as se } from "@base-ui/react/checkbox";
|
|
19
19
|
import { Autocomplete as ce } from "@base-ui/react/autocomplete";
|
|
@@ -714,11 +714,12 @@ function ct({ variant: e = "solid", color: t = "primary", size: n = "md", classN
|
|
|
714
714
|
}
|
|
715
715
|
//#endregion
|
|
716
716
|
//#region src/components/buttons/action-button/action-button.tsx
|
|
717
|
-
function lt({ children: e, className: t, size: n = "lg", iconOnly: r
|
|
717
|
+
function lt({ children: e, className: t, size: n = "lg", iconOnly: r, ...i }) {
|
|
718
|
+
let a = u(ut), o = r ?? (a.iconOnly === !0 && e != null);
|
|
718
719
|
return /* @__PURE__ */ M(st, {
|
|
719
720
|
...i,
|
|
720
721
|
"data-size": n,
|
|
721
|
-
"data-icon-only":
|
|
722
|
+
"data-icon-only": o || void 0,
|
|
722
723
|
className: G(rt.ActionButton, t),
|
|
723
724
|
children: [e != null && /* @__PURE__ */ j("span", {
|
|
724
725
|
className: rt.Label,
|
|
@@ -730,9 +731,16 @@ function lt({ children: e, className: t, size: n = "lg", iconOnly: r = !1, ...i
|
|
|
730
731
|
})]
|
|
731
732
|
});
|
|
732
733
|
}
|
|
734
|
+
var ut = s({});
|
|
735
|
+
function dt({ iconOnly: e, children: t }) {
|
|
736
|
+
return /* @__PURE__ */ j(ut.Provider, {
|
|
737
|
+
value: { iconOnly: e },
|
|
738
|
+
children: t
|
|
739
|
+
});
|
|
740
|
+
}
|
|
733
741
|
//#endregion
|
|
734
742
|
//#region src/components/buttons/button/button.tsx
|
|
735
|
-
function
|
|
743
|
+
function ft({ startIcon: e, endIcon: t, loading: n = !1, loadingLabel: r, children: i, ...a }) {
|
|
736
744
|
return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ M(ct, {
|
|
737
745
|
...a,
|
|
738
746
|
loading: n,
|
|
@@ -754,7 +762,7 @@ function ut({ startIcon: e, endIcon: t, loading: n = !1, loadingLabel: r, childr
|
|
|
754
762
|
}
|
|
755
763
|
//#endregion
|
|
756
764
|
//#region src/components/feedback/use-close-label.ts
|
|
757
|
-
var
|
|
765
|
+
var pt = W({ close: {
|
|
758
766
|
no: "Lukk",
|
|
759
767
|
se: "Stäng",
|
|
760
768
|
fi: "Sulje",
|
|
@@ -762,7 +770,7 @@ var dt = W({ close: {
|
|
|
762
770
|
} });
|
|
763
771
|
//#endregion
|
|
764
772
|
//#region src/components/buttons/icon-button/icon-button.tsx
|
|
765
|
-
function
|
|
773
|
+
function mt({ loading: e = !1, className: t, children: n, ...r }) {
|
|
766
774
|
return /* @__PURE__ */ j(ct, {
|
|
767
775
|
...r,
|
|
768
776
|
loading: e,
|
|
@@ -775,9 +783,9 @@ function ft({ loading: e = !1, className: t, children: n, ...r }) {
|
|
|
775
783
|
}
|
|
776
784
|
//#endregion
|
|
777
785
|
//#region src/components/buttons/close-button/close-button.tsx
|
|
778
|
-
function
|
|
779
|
-
let i =
|
|
780
|
-
return /* @__PURE__ */ j(
|
|
786
|
+
function ht({ label: e, variant: t = "ghost", color: n = "secondary", ...r }) {
|
|
787
|
+
let i = pt();
|
|
788
|
+
return /* @__PURE__ */ j(mt, {
|
|
781
789
|
...r,
|
|
782
790
|
variant: t,
|
|
783
791
|
color: n,
|
|
@@ -787,52 +795,52 @@ function pt({ label: e, variant: t = "ghost", color: n = "secondary", ...r }) {
|
|
|
787
795
|
}
|
|
788
796
|
//#endregion
|
|
789
797
|
//#region src/utils/download-file.ts
|
|
790
|
-
async function
|
|
798
|
+
async function gt(e) {
|
|
791
799
|
return typeof e == "function" ? e() : e;
|
|
792
800
|
}
|
|
793
|
-
function
|
|
801
|
+
function _t(e, t, n) {
|
|
794
802
|
let r = e instanceof Blob ? e : new Blob([e], n ? { type: n } : void 0), i = URL.createObjectURL(r), a = document.createElement("a");
|
|
795
803
|
a.href = i, a.download = t, a.rel = "noopener", a.click(), URL.revokeObjectURL(i);
|
|
796
804
|
}
|
|
797
805
|
//#endregion
|
|
798
806
|
//#region src/components/buttons/download-trigger/use-download-labels.ts
|
|
799
|
-
var
|
|
807
|
+
var vt = W({ download: {
|
|
800
808
|
no: "Last ned",
|
|
801
809
|
se: "Ladda ner",
|
|
802
810
|
fi: "Lataa",
|
|
803
811
|
es: "Descargar"
|
|
804
|
-
} }),
|
|
805
|
-
let c =
|
|
812
|
+
} }), yt = ({ data: e, fileName: t, mimeType: n, onDownload: r, onDownloadError: i, loading: a, children: o, ...s }) => {
|
|
813
|
+
let c = vt(), [l, u] = g(!1), d = a ?? l, f = async () => {
|
|
806
814
|
u(!0);
|
|
807
815
|
try {
|
|
808
|
-
|
|
816
|
+
_t(await gt(e), t, n), r?.();
|
|
809
817
|
} catch (e) {
|
|
810
818
|
i?.(e);
|
|
811
819
|
} finally {
|
|
812
820
|
u(!1);
|
|
813
821
|
}
|
|
814
822
|
};
|
|
815
|
-
return /* @__PURE__ */ j(
|
|
823
|
+
return /* @__PURE__ */ j(ft, {
|
|
816
824
|
...s,
|
|
817
825
|
loading: d,
|
|
818
826
|
onClick: f,
|
|
819
827
|
children: o ?? c.download
|
|
820
828
|
});
|
|
821
|
-
},
|
|
829
|
+
}, bt = { SkipLink: "_SkipLink_1f71c_1" };
|
|
822
830
|
//#endregion
|
|
823
831
|
//#region src/components/buttons/skip-link/skip-link.tsx
|
|
824
|
-
function
|
|
832
|
+
function xt({ href: e, children: t, className: n, style: r }) {
|
|
825
833
|
return /* @__PURE__ */ j(ct, {
|
|
826
834
|
render: /* @__PURE__ */ j("a", { href: e }),
|
|
827
835
|
color: "secondary",
|
|
828
|
-
className: G(
|
|
836
|
+
className: G(bt.SkipLink, n),
|
|
829
837
|
style: r,
|
|
830
838
|
children: t
|
|
831
839
|
});
|
|
832
840
|
}
|
|
833
841
|
//#endregion
|
|
834
842
|
//#region src/theme/tokens/font-sizes.ts
|
|
835
|
-
var
|
|
843
|
+
var St = {
|
|
836
844
|
xs: "0.75rem",
|
|
837
845
|
sm: "0.875rem",
|
|
838
846
|
md: "1rem",
|
|
@@ -843,8 +851,8 @@ var bt = {
|
|
|
843
851
|
"4xl": "3rem",
|
|
844
852
|
"5xl": "3.5rem",
|
|
845
853
|
"6xl": "4rem"
|
|
846
|
-
},
|
|
847
|
-
function
|
|
854
|
+
}, Ct = { Text: "_Text_ihxeu_9" }, wt = (e) => `var(--lea-palette-${e.replaceAll(".", "-")})`;
|
|
855
|
+
function Tt({ textStyle: e, fontWeight: t, color: n, align: r, fontSize: i, render: a, ref: o, className: s, style: c, ...l }) {
|
|
848
856
|
return N({
|
|
849
857
|
render: a,
|
|
850
858
|
ref: o,
|
|
@@ -855,45 +863,45 @@ function Ct({ textStyle: e, fontWeight: t, color: n, align: r, fontSize: i, rend
|
|
|
855
863
|
"data-font-weight": t,
|
|
856
864
|
"data-align": r,
|
|
857
865
|
"data-color": n === "inherit" ? n : void 0,
|
|
858
|
-
className: G(
|
|
866
|
+
className: G(Ct.Text, s)({}),
|
|
859
867
|
style: {
|
|
860
|
-
...n != null && n !== "inherit" ? { color:
|
|
861
|
-
...i == null ? void 0 : { fontSize:
|
|
868
|
+
...n != null && n !== "inherit" ? { color: wt(n) } : void 0,
|
|
869
|
+
...i == null ? void 0 : { fontSize: St[i] },
|
|
862
870
|
...c
|
|
863
871
|
}
|
|
864
872
|
}
|
|
865
873
|
});
|
|
866
874
|
}
|
|
867
|
-
var
|
|
875
|
+
var Et = {
|
|
868
876
|
DataField: "_DataField_14g0w_1",
|
|
869
877
|
Label: "_Label_14g0w_16",
|
|
870
878
|
Value: "_Value_14g0w_21"
|
|
871
|
-
},
|
|
879
|
+
}, Dt = (e) => typeof e == "string" || typeof e == "number", Ot = ({ label: e, value: t, divider: n = !0, className: r, ...i }) => /* @__PURE__ */ M("div", {
|
|
872
880
|
...i,
|
|
873
|
-
className: [
|
|
881
|
+
className: [Et.DataField, r].filter(Boolean).join(" "),
|
|
874
882
|
"data-divider": n || void 0,
|
|
875
883
|
children: [/* @__PURE__ */ j("div", {
|
|
876
|
-
className:
|
|
877
|
-
children:
|
|
884
|
+
className: Et.Label,
|
|
885
|
+
children: Dt(e) ? /* @__PURE__ */ j(Tt, {
|
|
878
886
|
render: /* @__PURE__ */ j("span", {}),
|
|
879
887
|
color: "text.subtle",
|
|
880
888
|
children: e
|
|
881
889
|
}) : e
|
|
882
890
|
}), /* @__PURE__ */ j("div", {
|
|
883
|
-
className:
|
|
884
|
-
children:
|
|
891
|
+
className: Et.Value,
|
|
892
|
+
children: Dt(t) ? /* @__PURE__ */ j(Tt, {
|
|
885
893
|
render: /* @__PURE__ */ j("span", {}),
|
|
886
894
|
fontWeight: "medium",
|
|
887
895
|
children: t
|
|
888
896
|
}) : t
|
|
889
897
|
})]
|
|
890
|
-
}),
|
|
898
|
+
}), kt = {
|
|
891
899
|
Card: "_Card_6b69s_5",
|
|
892
900
|
Content: "_Content_6b69s_57"
|
|
893
901
|
};
|
|
894
902
|
//#endregion
|
|
895
903
|
//#region src/components/data-display/card/card.tsx
|
|
896
|
-
function
|
|
904
|
+
function At({ render: e, ref: t, className: n, color: r, variant: i = "outlined", ...a }) {
|
|
897
905
|
return N({
|
|
898
906
|
render: e,
|
|
899
907
|
ref: t,
|
|
@@ -901,26 +909,26 @@ function Ot({ render: e, ref: t, className: n, color: r, variant: i = "outlined"
|
|
|
901
909
|
...a,
|
|
902
910
|
"data-color": r,
|
|
903
911
|
"data-variant": i,
|
|
904
|
-
className: G(
|
|
912
|
+
className: G(kt.Card, n)({})
|
|
905
913
|
}
|
|
906
914
|
});
|
|
907
915
|
}
|
|
908
|
-
function
|
|
916
|
+
function jt({ render: e, ref: t, className: n, ...r }) {
|
|
909
917
|
return N({
|
|
910
918
|
render: e,
|
|
911
919
|
ref: t,
|
|
912
920
|
props: {
|
|
913
921
|
...r,
|
|
914
|
-
className: G(
|
|
922
|
+
className: G(kt.Content, n)({})
|
|
915
923
|
}
|
|
916
924
|
});
|
|
917
925
|
}
|
|
918
|
-
var
|
|
926
|
+
var Mt = {
|
|
919
927
|
Chip: "_Chip_1jirg_1",
|
|
920
928
|
Label: "_Label_1jirg_125",
|
|
921
929
|
Icon: "_Icon_1jirg_132",
|
|
922
930
|
Delete: "_Delete_1jirg_136"
|
|
923
|
-
},
|
|
931
|
+
}, Nt = W({ remove: {
|
|
924
932
|
no: "Fjern",
|
|
925
933
|
se: "Ta bort",
|
|
926
934
|
fi: "Poista",
|
|
@@ -928,29 +936,29 @@ var At = {
|
|
|
928
936
|
} });
|
|
929
937
|
//#endregion
|
|
930
938
|
//#region src/components/data-display/chip/chip.tsx
|
|
931
|
-
function
|
|
932
|
-
let d =
|
|
939
|
+
function Pt({ label: e, color: t = "primary", variant: n = "filled", size: r = "md", icon: i, onDelete: a, deleteLabel: o, disabled: s = !1, className: c, tabIndex: l, ...u }) {
|
|
940
|
+
let d = Nt(), f = o ?? (typeof e == "string" ? `${d.remove} ${e}` : d.remove);
|
|
933
941
|
return /* @__PURE__ */ M("span", {
|
|
934
942
|
...u,
|
|
935
943
|
tabIndex: l,
|
|
936
|
-
className: [
|
|
944
|
+
className: [Mt.Chip, c].filter(Boolean).join(" "),
|
|
937
945
|
"data-color": t,
|
|
938
946
|
"data-variant": n,
|
|
939
947
|
"data-size": r,
|
|
940
948
|
"data-disabled": s ? "" : void 0,
|
|
941
949
|
children: [
|
|
942
950
|
i != null && /* @__PURE__ */ j("span", {
|
|
943
|
-
className:
|
|
951
|
+
className: Mt.Icon,
|
|
944
952
|
children: i
|
|
945
953
|
}),
|
|
946
954
|
/* @__PURE__ */ j("span", {
|
|
947
|
-
className:
|
|
955
|
+
className: Mt.Label,
|
|
948
956
|
children: e
|
|
949
957
|
}),
|
|
950
958
|
a && /* @__PURE__ */ j("button", {
|
|
951
959
|
type: "button",
|
|
952
960
|
"aria-label": f,
|
|
953
|
-
className:
|
|
961
|
+
className: Mt.Delete,
|
|
954
962
|
disabled: s,
|
|
955
963
|
tabIndex: l === -1 ? -1 : void 0,
|
|
956
964
|
onClick: a,
|
|
@@ -959,41 +967,41 @@ function Mt({ label: e, color: t = "primary", variant: n = "filled", size: r = "
|
|
|
959
967
|
]
|
|
960
968
|
});
|
|
961
969
|
}
|
|
962
|
-
var
|
|
970
|
+
var Ft = {
|
|
963
971
|
Positioner: "_Positioner_a46fy_1",
|
|
964
972
|
Popup: "_Popup_a46fy_5",
|
|
965
973
|
Arrow: "_Arrow_a46fy_39",
|
|
966
974
|
TriggerBox: "_TriggerBox_a46fy_64",
|
|
967
975
|
Trigger: "_Trigger_a46fy_64",
|
|
968
976
|
Mark: "_Mark_a46fy_118"
|
|
969
|
-
},
|
|
977
|
+
}, It = (e) => e == null || e === !1 || e === "", Lt = (e) => {
|
|
970
978
|
let [t, n = "center"] = e.split("-");
|
|
971
979
|
return {
|
|
972
980
|
side: t,
|
|
973
981
|
align: n,
|
|
974
|
-
sideOffset:
|
|
982
|
+
sideOffset: zt
|
|
975
983
|
};
|
|
976
|
-
},
|
|
977
|
-
function
|
|
984
|
+
}, Rt = "a[href], button:not([disabled]), input, select, textarea, [tabindex]:not([tabindex=\"-1\"])", zt = 14, Bt = 100;
|
|
985
|
+
function Vt({ title: e, openOn: t, placement: n = "top", surfaceVariant: r = "light", children: i, ariaLabel: a, triggerIcon: o, triggerVariant: s = "icon", className: c, style: l }) {
|
|
978
986
|
let [u, d] = g(!1), p = f(), m = f(), h = /* @__PURE__ */ j("button", {
|
|
979
987
|
type: "button",
|
|
980
988
|
"aria-label": a,
|
|
981
|
-
className: [
|
|
989
|
+
className: [Ft.Trigger, c].filter(Boolean).join(" "),
|
|
982
990
|
style: l,
|
|
983
991
|
"data-variant": s,
|
|
984
992
|
children: o ?? /* @__PURE__ */ j("span", {
|
|
985
993
|
"aria-hidden": !0,
|
|
986
|
-
className:
|
|
994
|
+
className: Ft.Mark
|
|
987
995
|
})
|
|
988
996
|
}), _ = i ?? h, v = (e) => i ? e : /* @__PURE__ */ j("span", {
|
|
989
|
-
className:
|
|
997
|
+
className: Ft.TriggerBox,
|
|
990
998
|
children: e
|
|
991
999
|
});
|
|
992
|
-
if (
|
|
1000
|
+
if (It(e)) return v(_);
|
|
993
1001
|
if ((t ?? (i ? "hover" : "click")) === "click") {
|
|
994
1002
|
let t = i?.props.id ?? p, a = (e) => {
|
|
995
1003
|
if (e.key !== "Tab" || e.shiftKey) return;
|
|
996
|
-
let t = e.currentTarget.querySelectorAll(
|
|
1004
|
+
let t = e.currentTarget.querySelectorAll(Rt), n = t[t.length - 1];
|
|
997
1005
|
(n == null || e.target === n) && (e.preventDefault(), d(!1));
|
|
998
1006
|
};
|
|
999
1007
|
return /* @__PURE__ */ M(P.Root, {
|
|
@@ -1003,16 +1011,16 @@ function zt({ title: e, openOn: t, placement: n = "top", surfaceVariant: r = "li
|
|
|
1003
1011
|
render: _,
|
|
1004
1012
|
id: t,
|
|
1005
1013
|
openOnHover: !0,
|
|
1006
|
-
delay:
|
|
1014
|
+
delay: Bt
|
|
1007
1015
|
})), /* @__PURE__ */ j(P.Portal, { children: /* @__PURE__ */ j(P.Positioner, {
|
|
1008
|
-
...
|
|
1009
|
-
className:
|
|
1016
|
+
...Lt(n),
|
|
1017
|
+
className: Ft.Positioner,
|
|
1010
1018
|
children: /* @__PURE__ */ M(P.Popup, {
|
|
1011
1019
|
"aria-labelledby": t,
|
|
1012
1020
|
onKeyDown: a,
|
|
1013
|
-
className:
|
|
1021
|
+
className: Ft.Popup,
|
|
1014
1022
|
"data-surface": r,
|
|
1015
|
-
children: [/* @__PURE__ */ j(P.Arrow, { className:
|
|
1023
|
+
children: [/* @__PURE__ */ j(P.Arrow, { className: Ft.Arrow }), /* @__PURE__ */ j(P.Description, {
|
|
1016
1024
|
render: /* @__PURE__ */ j("div", {}),
|
|
1017
1025
|
children: e
|
|
1018
1026
|
})]
|
|
@@ -1026,78 +1034,78 @@ function zt({ title: e, openOn: t, placement: n = "top", surfaceVariant: r = "li
|
|
|
1026
1034
|
onOpenChange: d,
|
|
1027
1035
|
children: [v(/* @__PURE__ */ j(F.Trigger, {
|
|
1028
1036
|
render: _,
|
|
1029
|
-
delay:
|
|
1037
|
+
delay: Bt,
|
|
1030
1038
|
"aria-describedby": y
|
|
1031
1039
|
})), /* @__PURE__ */ j(F.Portal, { children: /* @__PURE__ */ j(F.Positioner, {
|
|
1032
|
-
...
|
|
1033
|
-
className:
|
|
1040
|
+
...Lt(n),
|
|
1041
|
+
className: Ft.Positioner,
|
|
1034
1042
|
children: /* @__PURE__ */ M(F.Popup, {
|
|
1035
1043
|
id: m,
|
|
1036
1044
|
role: "tooltip",
|
|
1037
|
-
className:
|
|
1045
|
+
className: Ft.Popup,
|
|
1038
1046
|
"data-surface": r,
|
|
1039
|
-
children: [/* @__PURE__ */ j(F.Arrow, { className:
|
|
1047
|
+
children: [/* @__PURE__ */ j(F.Arrow, { className: Ft.Arrow }), e]
|
|
1040
1048
|
})
|
|
1041
1049
|
}) })]
|
|
1042
1050
|
});
|
|
1043
1051
|
}
|
|
1044
|
-
var
|
|
1052
|
+
var Ht = {
|
|
1045
1053
|
Avatar: "_Avatar_11qzb_2",
|
|
1046
1054
|
Image: "_Image_11qzb_13",
|
|
1047
1055
|
Fallback: "_Fallback_11qzb_20"
|
|
1048
1056
|
};
|
|
1049
1057
|
//#endregion
|
|
1050
1058
|
//#region src/components/data-display/avatar/avatar.tsx
|
|
1051
|
-
function
|
|
1059
|
+
function Ut({ src: e, alt: t, imageRender: n, className: r, ...i }) {
|
|
1052
1060
|
return /* @__PURE__ */ M(ae.Root, {
|
|
1053
1061
|
...i,
|
|
1054
|
-
className: G(
|
|
1062
|
+
className: G(Ht.Avatar, r),
|
|
1055
1063
|
children: [e != null && /* @__PURE__ */ j(ae.Image, {
|
|
1056
1064
|
src: e,
|
|
1057
1065
|
alt: t,
|
|
1058
1066
|
render: n,
|
|
1059
|
-
className:
|
|
1067
|
+
className: Ht.Image
|
|
1060
1068
|
}), /* @__PURE__ */ j(ae.Fallback, {
|
|
1061
|
-
className:
|
|
1069
|
+
className: Ht.Fallback,
|
|
1062
1070
|
role: t ? "img" : void 0,
|
|
1063
1071
|
"aria-label": t || void 0,
|
|
1064
1072
|
"aria-hidden": !t || void 0
|
|
1065
1073
|
})]
|
|
1066
1074
|
});
|
|
1067
1075
|
}
|
|
1068
|
-
var
|
|
1076
|
+
var Wt = {
|
|
1069
1077
|
StarRating: "_StarRating_1yb18_5",
|
|
1070
1078
|
Star: "_Star_1yb18_5"
|
|
1071
|
-
},
|
|
1079
|
+
}, Gt = W({ label: {
|
|
1072
1080
|
no: "{rating} av {max} stjerner",
|
|
1073
1081
|
se: "{rating} av {max} stjärnor",
|
|
1074
1082
|
fi: "{rating}/{max} tähteä",
|
|
1075
1083
|
es: "{rating} de {max} estrellas"
|
|
1076
|
-
} }),
|
|
1077
|
-
function
|
|
1078
|
-
let i =
|
|
1084
|
+
} }), Kt = "M9.07088 0.612344C9.41462 -0.204115 10.5854 -0.204114 10.9291 0.612346L12.9579 5.43123C13.1029 5.77543 13.4306 6.01061 13.8067 6.0404L19.0727 6.45748C19.9649 6.52814 20.3267 7.62813 19.6469 8.2034L15.6348 11.5987C15.3482 11.8412 15.223 12.2218 15.3106 12.5843L16.5363 17.661C16.744 18.5211 15.7969 19.201 15.033 18.7401L10.5245 16.0196C10.2025 15.8252 9.7975 15.8252 9.47548 16.0196L4.96699 18.7401C4.20311 19.201 3.25596 18.5211 3.46363 17.661L4.68942 12.5843C4.77698 12.2218 4.65182 11.8412 4.36526 11.5987L0.353062 8.2034C-0.326718 7.62813 0.0350679 6.52814 0.927291 6.45748L6.19336 6.0404C6.5695 6.01061 6.89716 5.77543 7.04207 5.43123L9.07088 0.612344Z";
|
|
1085
|
+
function qt({ rating: e, max: t = 5, className: n, ...r }) {
|
|
1086
|
+
let i = Gt(), a = Math.max(0, Math.round(t)), o = Math.min(Math.max(0, Math.round(e)), a);
|
|
1079
1087
|
return /* @__PURE__ */ j("span", {
|
|
1080
1088
|
role: "img",
|
|
1081
1089
|
"aria-label": i.label.replace("{rating}", String(o)).replace("{max}", String(a)),
|
|
1082
1090
|
...r,
|
|
1083
|
-
className: [
|
|
1091
|
+
className: [Wt.StarRating, n].filter(Boolean).join(" "),
|
|
1084
1092
|
children: Array.from({ length: o }, (e, t) => /* @__PURE__ */ j("svg", {
|
|
1085
|
-
className:
|
|
1093
|
+
className: Wt.Star,
|
|
1086
1094
|
viewBox: "0 0 20 19",
|
|
1087
1095
|
"aria-hidden": !0,
|
|
1088
1096
|
focusable: "false",
|
|
1089
|
-
children: /* @__PURE__ */ j("path", { d:
|
|
1097
|
+
children: /* @__PURE__ */ j("path", { d: Kt })
|
|
1090
1098
|
}, t))
|
|
1091
1099
|
});
|
|
1092
1100
|
}
|
|
1093
|
-
var
|
|
1101
|
+
var Jt = {
|
|
1094
1102
|
Scroll: "_Scroll_aruap_12",
|
|
1095
1103
|
Table: "_Table_aruap_22",
|
|
1096
1104
|
Row: "_Row_aruap_44",
|
|
1097
1105
|
HeaderCell: "_HeaderCell_aruap_53",
|
|
1098
1106
|
Cell: "_Cell_aruap_54"
|
|
1099
|
-
},
|
|
1100
|
-
function
|
|
1107
|
+
}, Yt = s(void 0);
|
|
1108
|
+
function Xt({ render: e, ref: t, className: n, size: r, ...i }) {
|
|
1101
1109
|
let a = h(null), [o, s] = g(!1);
|
|
1102
1110
|
d(() => {
|
|
1103
1111
|
let e = a.current;
|
|
@@ -1112,12 +1120,12 @@ function Jt({ render: e, ref: t, className: n, size: r, ...i }) {
|
|
|
1112
1120
|
props: {
|
|
1113
1121
|
...i,
|
|
1114
1122
|
"data-size": r,
|
|
1115
|
-
className: G(
|
|
1123
|
+
className: G(Jt.Table, n)({})
|
|
1116
1124
|
}
|
|
1117
1125
|
});
|
|
1118
1126
|
return /* @__PURE__ */ j("div", {
|
|
1119
1127
|
ref: a,
|
|
1120
|
-
className:
|
|
1128
|
+
className: Jt.Scroll,
|
|
1121
1129
|
...o && {
|
|
1122
1130
|
role: "region",
|
|
1123
1131
|
tabIndex: 0,
|
|
@@ -1127,43 +1135,43 @@ function Jt({ render: e, ref: t, className: n, size: r, ...i }) {
|
|
|
1127
1135
|
children: c
|
|
1128
1136
|
});
|
|
1129
1137
|
}
|
|
1130
|
-
function
|
|
1138
|
+
function Zt({ render: e, ref: t, ...n }) {
|
|
1131
1139
|
let r = N({
|
|
1132
1140
|
render: e,
|
|
1133
1141
|
ref: t,
|
|
1134
1142
|
defaultTagName: "thead",
|
|
1135
1143
|
props: n
|
|
1136
1144
|
});
|
|
1137
|
-
return /* @__PURE__ */ j(
|
|
1145
|
+
return /* @__PURE__ */ j(Yt.Provider, {
|
|
1138
1146
|
value: "head",
|
|
1139
1147
|
children: r
|
|
1140
1148
|
});
|
|
1141
1149
|
}
|
|
1142
|
-
function
|
|
1150
|
+
function Qt({ render: e, ref: t, ...n }) {
|
|
1143
1151
|
let r = N({
|
|
1144
1152
|
render: e,
|
|
1145
1153
|
ref: t,
|
|
1146
1154
|
defaultTagName: "tbody",
|
|
1147
1155
|
props: n
|
|
1148
1156
|
});
|
|
1149
|
-
return /* @__PURE__ */ j(
|
|
1157
|
+
return /* @__PURE__ */ j(Yt.Provider, {
|
|
1150
1158
|
value: "body",
|
|
1151
1159
|
children: r
|
|
1152
1160
|
});
|
|
1153
1161
|
}
|
|
1154
|
-
function
|
|
1162
|
+
function $t({ render: e, ref: t, className: n, ...r }) {
|
|
1155
1163
|
return N({
|
|
1156
1164
|
render: e,
|
|
1157
1165
|
ref: t,
|
|
1158
1166
|
defaultTagName: "tr",
|
|
1159
1167
|
props: {
|
|
1160
1168
|
...r,
|
|
1161
|
-
className: G(
|
|
1169
|
+
className: G(Jt.Row, n)({})
|
|
1162
1170
|
}
|
|
1163
1171
|
});
|
|
1164
1172
|
}
|
|
1165
|
-
function
|
|
1166
|
-
let o = u(
|
|
1173
|
+
function en({ render: e, ref: t, className: n, align: r, scope: i, ...a }) {
|
|
1174
|
+
let o = u(Yt);
|
|
1167
1175
|
return N({
|
|
1168
1176
|
render: e,
|
|
1169
1177
|
ref: t,
|
|
@@ -1172,11 +1180,11 @@ function Qt({ render: e, ref: t, className: n, align: r, scope: i, ...a }) {
|
|
|
1172
1180
|
scope: i ?? (o === "body" ? "row" : "col"),
|
|
1173
1181
|
...a,
|
|
1174
1182
|
"data-align": r,
|
|
1175
|
-
className: G(
|
|
1183
|
+
className: G(Jt.HeaderCell, n)({})
|
|
1176
1184
|
}
|
|
1177
1185
|
});
|
|
1178
1186
|
}
|
|
1179
|
-
function
|
|
1187
|
+
function tn({ render: e, ref: t, className: n, align: r, ...i }) {
|
|
1180
1188
|
return N({
|
|
1181
1189
|
render: e,
|
|
1182
1190
|
ref: t,
|
|
@@ -1184,54 +1192,59 @@ function $t({ render: e, ref: t, className: n, align: r, ...i }) {
|
|
|
1184
1192
|
props: {
|
|
1185
1193
|
...i,
|
|
1186
1194
|
"data-align": r,
|
|
1187
|
-
className: G(
|
|
1195
|
+
className: G(Jt.Cell, n)({})
|
|
1188
1196
|
}
|
|
1189
1197
|
});
|
|
1190
1198
|
}
|
|
1191
|
-
var
|
|
1199
|
+
var nn = { RichText: "_RichText_yo3dd_11" };
|
|
1192
1200
|
//#endregion
|
|
1193
1201
|
//#region src/components/data-display/rich-text/rich-text.tsx
|
|
1194
|
-
function
|
|
1202
|
+
function rn({ render: e, ref: t, className: n, ...r }) {
|
|
1195
1203
|
return N({
|
|
1196
1204
|
render: e,
|
|
1197
1205
|
ref: t,
|
|
1198
1206
|
defaultTagName: "div",
|
|
1199
1207
|
props: {
|
|
1200
1208
|
...r,
|
|
1201
|
-
className: G(
|
|
1209
|
+
className: G(nn.RichText, n)({})
|
|
1202
1210
|
}
|
|
1203
1211
|
});
|
|
1204
1212
|
}
|
|
1205
|
-
var
|
|
1206
|
-
FeaturedImage: "
|
|
1207
|
-
Image: "
|
|
1208
|
-
Action: "
|
|
1213
|
+
var an = {
|
|
1214
|
+
FeaturedImage: "_FeaturedImage_1r4c8_8",
|
|
1215
|
+
Image: "_Image_1r4c8_35",
|
|
1216
|
+
Action: "_Action_1r4c8_42"
|
|
1209
1217
|
};
|
|
1210
1218
|
//#endregion
|
|
1211
1219
|
//#region src/components/data-display/featured-image/featured-image.tsx
|
|
1212
|
-
function
|
|
1213
|
-
let
|
|
1220
|
+
function on({ src: e, alt: t, imageRender: n, action: r, ratio: i, className: a, style: o, ...s }) {
|
|
1221
|
+
let c = N({
|
|
1214
1222
|
render: n,
|
|
1215
1223
|
defaultTagName: "img",
|
|
1216
1224
|
props: {
|
|
1217
1225
|
src: e,
|
|
1218
1226
|
alt: t,
|
|
1219
|
-
className:
|
|
1227
|
+
className: an.Image
|
|
1220
1228
|
}
|
|
1221
1229
|
});
|
|
1222
1230
|
return /* @__PURE__ */ M("div", {
|
|
1223
|
-
...
|
|
1224
|
-
className: [
|
|
1225
|
-
|
|
1226
|
-
|
|
1231
|
+
...s,
|
|
1232
|
+
className: [an.FeaturedImage, a].filter(Boolean).join(" "),
|
|
1233
|
+
"data-ratio": i != null || void 0,
|
|
1234
|
+
style: i == null ? o : {
|
|
1235
|
+
...o,
|
|
1236
|
+
"--featured-image-ratio": i
|
|
1237
|
+
},
|
|
1238
|
+
children: [c, r != null && /* @__PURE__ */ j("div", {
|
|
1239
|
+
className: an.Action,
|
|
1227
1240
|
children: r
|
|
1228
1241
|
})]
|
|
1229
1242
|
});
|
|
1230
1243
|
}
|
|
1231
|
-
var
|
|
1244
|
+
var sn = {
|
|
1232
1245
|
VideoPlayer: "_VideoPlayer_x84i2_8",
|
|
1233
1246
|
Video: "_Video_x84i2_8"
|
|
1234
|
-
},
|
|
1247
|
+
}, cn = W({
|
|
1235
1248
|
play: {
|
|
1236
1249
|
no: "Spill av video",
|
|
1237
1250
|
se: "Spela upp video",
|
|
@@ -1244,13 +1257,13 @@ var an = {
|
|
|
1244
1257
|
fi: "Keskeytä video",
|
|
1245
1258
|
es: "Pausar vídeo"
|
|
1246
1259
|
}
|
|
1247
|
-
}),
|
|
1248
|
-
function
|
|
1249
|
-
let i =
|
|
1260
|
+
}), ln = "(prefers-reduced-motion: reduce)";
|
|
1261
|
+
function un({ src: e, poster: t, className: n, ...r }) {
|
|
1262
|
+
let i = cn(), a = h(null), [o, s] = g(!1);
|
|
1250
1263
|
d(() => {
|
|
1251
1264
|
let e = a.current;
|
|
1252
1265
|
if (!e) return;
|
|
1253
|
-
let t = window.matchMedia(
|
|
1266
|
+
let t = window.matchMedia(ln);
|
|
1254
1267
|
t.matches || (e.muted = !0, e.play().catch(() => {}));
|
|
1255
1268
|
let n = (t) => {
|
|
1256
1269
|
t.matches && e.pause();
|
|
@@ -1263,10 +1276,10 @@ function cn({ src: e, poster: t, className: n, ...r }) {
|
|
|
1263
1276
|
};
|
|
1264
1277
|
return /* @__PURE__ */ M("div", {
|
|
1265
1278
|
...r,
|
|
1266
|
-
className: [
|
|
1279
|
+
className: [sn.VideoPlayer, n].filter(Boolean).join(" "),
|
|
1267
1280
|
children: [/* @__PURE__ */ j("video", {
|
|
1268
1281
|
ref: a,
|
|
1269
|
-
className:
|
|
1282
|
+
className: sn.Video,
|
|
1270
1283
|
src: e,
|
|
1271
1284
|
poster: t,
|
|
1272
1285
|
muted: !0,
|
|
@@ -1275,7 +1288,7 @@ function cn({ src: e, poster: t, className: n, ...r }) {
|
|
|
1275
1288
|
"aria-hidden": !0,
|
|
1276
1289
|
onPlay: () => s(!0),
|
|
1277
1290
|
onPause: () => s(!1)
|
|
1278
|
-
}), /* @__PURE__ */ j(
|
|
1291
|
+
}), /* @__PURE__ */ j(mt, {
|
|
1279
1292
|
variant: "elevated",
|
|
1280
1293
|
color: "secondary",
|
|
1281
1294
|
"aria-label": o ? i.pause : i.play,
|
|
@@ -1284,34 +1297,34 @@ function cn({ src: e, poster: t, className: n, ...r }) {
|
|
|
1284
1297
|
})]
|
|
1285
1298
|
});
|
|
1286
1299
|
}
|
|
1287
|
-
var
|
|
1300
|
+
var dn = {
|
|
1288
1301
|
ArrowCircle: "_ArrowCircle_154zo_2",
|
|
1289
1302
|
Arrow: "_Arrow_154zo_2"
|
|
1290
1303
|
};
|
|
1291
1304
|
//#endregion
|
|
1292
1305
|
//#region src/components/data-display/link-card/arrow-circle.tsx
|
|
1293
|
-
function
|
|
1306
|
+
function fn({ variant: e = "outline", size: t = "lg", className: n }) {
|
|
1294
1307
|
return /* @__PURE__ */ j("span", {
|
|
1295
1308
|
"aria-hidden": !0,
|
|
1296
1309
|
"data-variant": e,
|
|
1297
1310
|
"data-size": t,
|
|
1298
|
-
className: [
|
|
1299
|
-
children: /* @__PURE__ */ j(v, { className:
|
|
1311
|
+
className: [dn.ArrowCircle, n].filter(Boolean).join(" "),
|
|
1312
|
+
children: /* @__PURE__ */ j(v, { className: dn.Arrow })
|
|
1300
1313
|
});
|
|
1301
1314
|
}
|
|
1302
|
-
var
|
|
1315
|
+
var pn = {
|
|
1303
1316
|
LinkCard: "_LinkCard_1jl1o_7",
|
|
1304
1317
|
Title: "_Title_1jl1o_59",
|
|
1305
1318
|
Arrow: "_Arrow_1jl1o_69"
|
|
1306
1319
|
};
|
|
1307
1320
|
//#endregion
|
|
1308
1321
|
//#region src/components/data-display/link-card/link-card.tsx
|
|
1309
|
-
function
|
|
1322
|
+
function mn({ title: e, titleRender: t, surface: n = "base", render: r, ref: i, className: a, ...o }) {
|
|
1310
1323
|
let s = N({
|
|
1311
1324
|
render: t,
|
|
1312
1325
|
defaultTagName: "p",
|
|
1313
1326
|
props: {
|
|
1314
|
-
className:
|
|
1327
|
+
className: pn.Title,
|
|
1315
1328
|
children: e
|
|
1316
1329
|
}
|
|
1317
1330
|
});
|
|
@@ -1322,12 +1335,12 @@ function fn({ title: e, titleRender: t, surface: n = "base", render: r, ref: i,
|
|
|
1322
1335
|
props: {
|
|
1323
1336
|
...o,
|
|
1324
1337
|
"data-surface": n,
|
|
1325
|
-
className: G(
|
|
1326
|
-
children: /* @__PURE__ */ M(A, { children: [s, /* @__PURE__ */ j(
|
|
1338
|
+
className: G(pn.LinkCard, a)({}),
|
|
1339
|
+
children: /* @__PURE__ */ M(A, { children: [s, /* @__PURE__ */ j(fn, { className: pn.Arrow })] })
|
|
1327
1340
|
}
|
|
1328
1341
|
});
|
|
1329
1342
|
}
|
|
1330
|
-
var
|
|
1343
|
+
var hn = {
|
|
1331
1344
|
MediaCard: "_MediaCard_7szz1_9",
|
|
1332
1345
|
Content: "_Content_7szz1_50",
|
|
1333
1346
|
Text: "_Text_7szz1_60",
|
|
@@ -1337,15 +1350,15 @@ var pn = {
|
|
|
1337
1350
|
Price: "_Price_7szz1_88",
|
|
1338
1351
|
Media: "_Media_7szz1_9",
|
|
1339
1352
|
Image: "_Image_7szz1_109"
|
|
1340
|
-
},
|
|
1353
|
+
}, gn = (e) => c(e) && (e.props.href != null || e.props.to != null);
|
|
1341
1354
|
//#endregion
|
|
1342
1355
|
//#region src/components/data-display/media-card/media-card.tsx
|
|
1343
|
-
function
|
|
1344
|
-
let _ = f(), v =
|
|
1356
|
+
function _n({ title: e, titleRender: t, text: n, src: r, alt: i, imageRender: a, orientation: o = "horizontal", imagePosition: s, imageAsBackground: c = !1, surface: l = "base", action: u, priceExample: d, render: p, ref: m, className: h, ...g }) {
|
|
1357
|
+
let _ = f(), v = gn(p), y = `${_}-title`, b = `${_}-text`, x = o === "horizontal", S = N({
|
|
1345
1358
|
render: t,
|
|
1346
1359
|
defaultTagName: "h2",
|
|
1347
1360
|
props: {
|
|
1348
|
-
className:
|
|
1361
|
+
className: hn.Title,
|
|
1349
1362
|
id: v ? y : void 0,
|
|
1350
1363
|
children: e
|
|
1351
1364
|
}
|
|
@@ -1356,7 +1369,7 @@ function hn({ title: e, titleRender: t, text: n, src: r, alt: i, imageRender: a,
|
|
|
1356
1369
|
props: {
|
|
1357
1370
|
src: r,
|
|
1358
1371
|
alt: i,
|
|
1359
|
-
className:
|
|
1372
|
+
className: hn.Image
|
|
1360
1373
|
}
|
|
1361
1374
|
});
|
|
1362
1375
|
return N({
|
|
@@ -1375,35 +1388,35 @@ function hn({ title: e, titleRender: t, text: n, src: r, alt: i, imageRender: a,
|
|
|
1375
1388
|
"data-surface": x ? l : void 0,
|
|
1376
1389
|
"data-has-image": C != null || void 0,
|
|
1377
1390
|
"data-link": v || void 0,
|
|
1378
|
-
className: G(
|
|
1391
|
+
className: G(hn.MediaCard, h)({}),
|
|
1379
1392
|
children: /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ M("div", {
|
|
1380
|
-
className:
|
|
1393
|
+
className: hn.Content,
|
|
1381
1394
|
children: [
|
|
1382
1395
|
/* @__PURE__ */ M("div", {
|
|
1383
|
-
className:
|
|
1396
|
+
className: hn.Text,
|
|
1384
1397
|
children: [S, n != null && /* @__PURE__ */ j("p", {
|
|
1385
|
-
className:
|
|
1398
|
+
className: hn.Description,
|
|
1386
1399
|
id: v ? b : void 0,
|
|
1387
1400
|
children: n
|
|
1388
1401
|
})]
|
|
1389
1402
|
}),
|
|
1390
1403
|
!v && u != null && /* @__PURE__ */ j("div", {
|
|
1391
|
-
className:
|
|
1404
|
+
className: hn.Action,
|
|
1392
1405
|
children: u
|
|
1393
1406
|
}),
|
|
1394
1407
|
d != null && /* @__PURE__ */ j("p", {
|
|
1395
|
-
className:
|
|
1408
|
+
className: hn.Price,
|
|
1396
1409
|
children: d
|
|
1397
1410
|
})
|
|
1398
1411
|
]
|
|
1399
1412
|
}), C != null && /* @__PURE__ */ j("div", {
|
|
1400
|
-
className:
|
|
1413
|
+
className: hn.Media,
|
|
1401
1414
|
children: C
|
|
1402
1415
|
})] })
|
|
1403
1416
|
}
|
|
1404
1417
|
});
|
|
1405
1418
|
}
|
|
1406
|
-
var
|
|
1419
|
+
var vn = {
|
|
1407
1420
|
ServiceCard: "_ServiceCard_6lhty_7",
|
|
1408
1421
|
Image: "_Image_6lhty_51",
|
|
1409
1422
|
Content: "_Content_6lhty_60",
|
|
@@ -1413,12 +1426,12 @@ var gn = {
|
|
|
1413
1426
|
};
|
|
1414
1427
|
//#endregion
|
|
1415
1428
|
//#region src/components/data-display/service-card/service-card.tsx
|
|
1416
|
-
function
|
|
1417
|
-
let m = f(), h =
|
|
1429
|
+
function yn({ title: e, titleRender: t, text: n, icon: r, src: i, alt: a, imageRender: o, layout: s = "stacked", surface: c = "base", render: l, ref: u, className: d, ...p }) {
|
|
1430
|
+
let m = f(), h = gn(l), g = `${m}-title`, _ = `${m}-text`, v = N({
|
|
1418
1431
|
render: t,
|
|
1419
1432
|
defaultTagName: "h2",
|
|
1420
1433
|
props: {
|
|
1421
|
-
className:
|
|
1434
|
+
className: vn.Title,
|
|
1422
1435
|
id: h ? g : void 0,
|
|
1423
1436
|
children: e
|
|
1424
1437
|
}
|
|
@@ -1429,7 +1442,7 @@ function _n({ title: e, titleRender: t, text: n, icon: r, src: i, alt: a, imageR
|
|
|
1429
1442
|
props: {
|
|
1430
1443
|
src: i,
|
|
1431
1444
|
alt: a,
|
|
1432
|
-
className:
|
|
1445
|
+
className: vn.Image
|
|
1433
1446
|
}
|
|
1434
1447
|
});
|
|
1435
1448
|
return N({
|
|
@@ -1445,17 +1458,17 @@ function _n({ title: e, titleRender: t, text: n, icon: r, src: i, alt: a, imageR
|
|
|
1445
1458
|
"data-layout": s,
|
|
1446
1459
|
"data-surface": c,
|
|
1447
1460
|
"data-link": h || void 0,
|
|
1448
|
-
className: G(
|
|
1461
|
+
className: G(vn.ServiceCard, d)({}),
|
|
1449
1462
|
children: /* @__PURE__ */ M(A, { children: [y, /* @__PURE__ */ M("div", {
|
|
1450
|
-
className:
|
|
1463
|
+
className: vn.Content,
|
|
1451
1464
|
children: [
|
|
1452
1465
|
r != null && /* @__PURE__ */ j("span", {
|
|
1453
|
-
className:
|
|
1466
|
+
className: vn.Icon,
|
|
1454
1467
|
children: r
|
|
1455
1468
|
}),
|
|
1456
1469
|
v,
|
|
1457
1470
|
n != null && /* @__PURE__ */ j("p", {
|
|
1458
|
-
className:
|
|
1471
|
+
className: vn.Text,
|
|
1459
1472
|
id: h ? _ : void 0,
|
|
1460
1473
|
children: n
|
|
1461
1474
|
})
|
|
@@ -1464,7 +1477,7 @@ function _n({ title: e, titleRender: t, text: n, icon: r, src: i, alt: a, imageR
|
|
|
1464
1477
|
}
|
|
1465
1478
|
});
|
|
1466
1479
|
}
|
|
1467
|
-
var
|
|
1480
|
+
var bn = {
|
|
1468
1481
|
TestimonialCard: "_TestimonialCard_fjkq4_7",
|
|
1469
1482
|
Top: "_Top_fjkq4_25",
|
|
1470
1483
|
Quote: "_Quote_fjkq4_32",
|
|
@@ -1476,37 +1489,37 @@ var vn = {
|
|
|
1476
1489
|
};
|
|
1477
1490
|
//#endregion
|
|
1478
1491
|
//#region src/components/data-display/testimonial-card/testimonial-card.tsx
|
|
1479
|
-
function
|
|
1492
|
+
function xn({ quote: e, name: t, meta: n, rating: r, avatarSrc: i, avatarImageRender: a, className: o, ...s }) {
|
|
1480
1493
|
return /* @__PURE__ */ M("figure", {
|
|
1481
1494
|
...s,
|
|
1482
|
-
className: [
|
|
1495
|
+
className: [bn.TestimonialCard, o].filter(Boolean).join(" "),
|
|
1483
1496
|
children: [/* @__PURE__ */ M("div", {
|
|
1484
|
-
className:
|
|
1485
|
-
children: [r != null && /* @__PURE__ */ j(
|
|
1486
|
-
className:
|
|
1497
|
+
className: bn.Top,
|
|
1498
|
+
children: [r != null && /* @__PURE__ */ j(qt, { rating: r }), /* @__PURE__ */ j("blockquote", {
|
|
1499
|
+
className: bn.Quote,
|
|
1487
1500
|
children: typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ j("p", { children: e }) : e
|
|
1488
1501
|
})]
|
|
1489
1502
|
}), /* @__PURE__ */ M("figcaption", {
|
|
1490
|
-
className:
|
|
1491
|
-
children: [/* @__PURE__ */ j(
|
|
1503
|
+
className: bn.Author,
|
|
1504
|
+
children: [/* @__PURE__ */ j(Ut, {
|
|
1492
1505
|
src: i,
|
|
1493
1506
|
alt: "",
|
|
1494
1507
|
imageRender: a,
|
|
1495
|
-
className:
|
|
1508
|
+
className: bn.Avatar
|
|
1496
1509
|
}), /* @__PURE__ */ M("span", {
|
|
1497
|
-
className:
|
|
1510
|
+
className: bn.Person,
|
|
1498
1511
|
children: [/* @__PURE__ */ j("span", {
|
|
1499
|
-
className:
|
|
1512
|
+
className: bn.Name,
|
|
1500
1513
|
children: t
|
|
1501
1514
|
}), n != null && /* @__PURE__ */ j("span", {
|
|
1502
|
-
className:
|
|
1515
|
+
className: bn.Meta,
|
|
1503
1516
|
children: n
|
|
1504
1517
|
})]
|
|
1505
1518
|
})]
|
|
1506
1519
|
})]
|
|
1507
1520
|
});
|
|
1508
1521
|
}
|
|
1509
|
-
var
|
|
1522
|
+
var Sn = {
|
|
1510
1523
|
ArticleCard: "_ArticleCard_1mnm0_9",
|
|
1511
1524
|
Image: "_Image_1mnm0_38",
|
|
1512
1525
|
Content: "_Content_1mnm0_48",
|
|
@@ -1516,12 +1529,12 @@ var bn = {
|
|
|
1516
1529
|
};
|
|
1517
1530
|
//#endregion
|
|
1518
1531
|
//#region src/components/data-display/article-card/article-card.tsx
|
|
1519
|
-
function
|
|
1532
|
+
function Cn({ title: e, titleRender: t, excerpt: n, meta: r, src: i, alt: a, imageRender: o, variant: s = "post", render: c, ref: l, className: u, ...d }) {
|
|
1520
1533
|
let p = f(), m = `${p}-title`, h = `${p}-excerpt`, g = `${p}-meta`, _ = r != null && r.length > 0, v = [n != null && h, _ && g].filter(Boolean).join(" ") || void 0, y = N({
|
|
1521
1534
|
render: t,
|
|
1522
1535
|
defaultTagName: "h3",
|
|
1523
1536
|
props: {
|
|
1524
|
-
className:
|
|
1537
|
+
className: Sn.Title,
|
|
1525
1538
|
id: m,
|
|
1526
1539
|
children: e
|
|
1527
1540
|
}
|
|
@@ -1532,7 +1545,7 @@ function xn({ title: e, titleRender: t, excerpt: n, meta: r, src: i, alt: a, ima
|
|
|
1532
1545
|
props: {
|
|
1533
1546
|
src: i,
|
|
1534
1547
|
alt: a,
|
|
1535
|
-
className:
|
|
1548
|
+
className: Sn.Image
|
|
1536
1549
|
}
|
|
1537
1550
|
});
|
|
1538
1551
|
return N({
|
|
@@ -1544,20 +1557,20 @@ function xn({ title: e, titleRender: t, excerpt: n, meta: r, src: i, alt: a, ima
|
|
|
1544
1557
|
"aria-describedby": v,
|
|
1545
1558
|
...d,
|
|
1546
1559
|
"data-variant": s,
|
|
1547
|
-
className: G(
|
|
1560
|
+
className: G(Sn.ArticleCard, u)({}),
|
|
1548
1561
|
children: /* @__PURE__ */ M(A, { children: [b, /* @__PURE__ */ M("div", {
|
|
1549
|
-
className:
|
|
1562
|
+
className: Sn.Content,
|
|
1550
1563
|
children: [
|
|
1551
1564
|
y,
|
|
1552
1565
|
n != null && /* @__PURE__ */ j("p", {
|
|
1553
|
-
className:
|
|
1566
|
+
className: Sn.Excerpt,
|
|
1554
1567
|
id: h,
|
|
1555
1568
|
children: n
|
|
1556
1569
|
}),
|
|
1557
1570
|
_ && /* @__PURE__ */ j("span", {
|
|
1558
|
-
className:
|
|
1571
|
+
className: Sn.Meta,
|
|
1559
1572
|
id: g,
|
|
1560
|
-
children: r.map((e, t) => /* @__PURE__ */ j(
|
|
1573
|
+
children: r.map((e, t) => /* @__PURE__ */ j(Pt, {
|
|
1561
1574
|
label: e,
|
|
1562
1575
|
color: "muted",
|
|
1563
1576
|
size: "lg"
|
|
@@ -1568,7 +1581,7 @@ function xn({ title: e, titleRender: t, excerpt: n, meta: r, src: i, alt: a, ima
|
|
|
1568
1581
|
}
|
|
1569
1582
|
});
|
|
1570
1583
|
}
|
|
1571
|
-
var
|
|
1584
|
+
var wn = {
|
|
1572
1585
|
PartnerRow: "_PartnerRow_1nldh_7",
|
|
1573
1586
|
Content: "_Content_1nldh_31",
|
|
1574
1587
|
Tile: "_Tile_1nldh_35",
|
|
@@ -1576,7 +1589,7 @@ var Sn = {
|
|
|
1576
1589
|
};
|
|
1577
1590
|
//#endregion
|
|
1578
1591
|
//#region src/components/data-display/partner-row/partner-row.tsx
|
|
1579
|
-
function
|
|
1592
|
+
function Tn({ src: e, alt: t, imageRender: n, render: r, ref: i, className: a, children: o, ...s }) {
|
|
1580
1593
|
let c = N({
|
|
1581
1594
|
enabled: e != null,
|
|
1582
1595
|
render: n,
|
|
@@ -1584,7 +1597,7 @@ function Cn({ src: e, alt: t, imageRender: n, render: r, ref: i, className: a, c
|
|
|
1584
1597
|
props: {
|
|
1585
1598
|
src: e,
|
|
1586
1599
|
alt: t,
|
|
1587
|
-
className:
|
|
1600
|
+
className: wn.Logo
|
|
1588
1601
|
}
|
|
1589
1602
|
});
|
|
1590
1603
|
return N({
|
|
@@ -1594,20 +1607,20 @@ function Cn({ src: e, alt: t, imageRender: n, render: r, ref: i, className: a, c
|
|
|
1594
1607
|
props: {
|
|
1595
1608
|
...s,
|
|
1596
1609
|
"data-has-logo": c != null || void 0,
|
|
1597
|
-
className: G(
|
|
1610
|
+
className: G(wn.PartnerRow, a)({}),
|
|
1598
1611
|
children: /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("div", {
|
|
1599
|
-
className:
|
|
1612
|
+
className: wn.Content,
|
|
1600
1613
|
children: o
|
|
1601
1614
|
}), c != null && /* @__PURE__ */ j("div", {
|
|
1602
|
-
className:
|
|
1615
|
+
className: wn.Tile,
|
|
1603
1616
|
children: c
|
|
1604
1617
|
})] })
|
|
1605
1618
|
}
|
|
1606
1619
|
});
|
|
1607
1620
|
}
|
|
1608
|
-
var
|
|
1621
|
+
var En = { BrandDivider: "_BrandDivider_10exs_6" }, Dn = ({ size: e = "sm" }) => /* @__PURE__ */ j("div", {
|
|
1609
1622
|
"aria-hidden": "true",
|
|
1610
|
-
className:
|
|
1623
|
+
className: En.BrandDivider,
|
|
1611
1624
|
"data-size": e
|
|
1612
1625
|
}), K = {
|
|
1613
1626
|
Alert: "_Alert_q79pt_9",
|
|
@@ -1617,7 +1630,7 @@ var wn = { BrandDivider: "_BrandDivider_10exs_6" }, Tn = ({ size: e = "sm" }) =>
|
|
|
1617
1630
|
Title: "_Title_q79pt_58",
|
|
1618
1631
|
Action: "_Action_q79pt_62",
|
|
1619
1632
|
Close: "_Close_q79pt_110"
|
|
1620
|
-
},
|
|
1633
|
+
}, On = ["primary", "neutral"], kn = {
|
|
1621
1634
|
success: /* @__PURE__ */ j(C, {
|
|
1622
1635
|
size: "1em",
|
|
1623
1636
|
"aria-hidden": !0
|
|
@@ -1634,15 +1647,15 @@ var wn = { BrandDivider: "_BrandDivider_10exs_6" }, Tn = ({ size: e = "sm" }) =>
|
|
|
1634
1647
|
size: "1em",
|
|
1635
1648
|
"aria-hidden": !0
|
|
1636
1649
|
})
|
|
1637
|
-
},
|
|
1638
|
-
function
|
|
1639
|
-
let d =
|
|
1650
|
+
}, An = (e, t) => e ?? (t && On.includes(t) ? "info" : "success");
|
|
1651
|
+
function jn({ severity: e, color: t, variant: n = "standard", size: r = "lg", icon: i, action: a, onClose: o, closeLabel: s, role: c, children: l, ...u }) {
|
|
1652
|
+
let d = An(e, t), f = {
|
|
1640
1653
|
...u,
|
|
1641
1654
|
role: c ?? (d === "error" || d === "warning" ? "alert" : "status"),
|
|
1642
1655
|
"data-color": t ?? d,
|
|
1643
1656
|
"data-variant": n,
|
|
1644
1657
|
"data-size": r
|
|
1645
|
-
}, p = i === void 0 ?
|
|
1658
|
+
}, p = i === void 0 ? kn[d] : i, m = a ?? (o && /* @__PURE__ */ j(ht, {
|
|
1646
1659
|
size: "sm",
|
|
1647
1660
|
label: s,
|
|
1648
1661
|
onClick: o,
|
|
@@ -1668,8 +1681,8 @@ function kn({ severity: e, color: t, variant: n = "standard", size: r = "lg", ic
|
|
|
1668
1681
|
}
|
|
1669
1682
|
//#endregion
|
|
1670
1683
|
//#region src/components/feedback/alert/alert.tsx
|
|
1671
|
-
function
|
|
1672
|
-
let { rootProps: n, content: r } =
|
|
1684
|
+
function Mn({ className: e, ...t }) {
|
|
1685
|
+
let { rootProps: n, content: r } = jn(t);
|
|
1673
1686
|
return /* @__PURE__ */ j("div", {
|
|
1674
1687
|
...n,
|
|
1675
1688
|
className: [
|
|
@@ -1680,13 +1693,13 @@ function An({ className: e, ...t }) {
|
|
|
1680
1693
|
children: r
|
|
1681
1694
|
});
|
|
1682
1695
|
}
|
|
1683
|
-
function
|
|
1696
|
+
function Nn({ className: e, ...t }) {
|
|
1684
1697
|
return /* @__PURE__ */ j("div", {
|
|
1685
1698
|
...t,
|
|
1686
1699
|
className: [K.Title, e].filter(Boolean).join(" ")
|
|
1687
1700
|
});
|
|
1688
1701
|
}
|
|
1689
|
-
var
|
|
1702
|
+
var Pn = {
|
|
1690
1703
|
Backdrop: "_Backdrop_1do7v_8",
|
|
1691
1704
|
Viewport: "_Viewport_1do7v_22",
|
|
1692
1705
|
Popup: "_Popup_1do7v_38",
|
|
@@ -1696,85 +1709,85 @@ var Mn = {
|
|
|
1696
1709
|
Content: "_Content_1do7v_111",
|
|
1697
1710
|
Footer: "_Footer_1do7v_119",
|
|
1698
1711
|
CloseButton: "_CloseButton_1do7v_135"
|
|
1699
|
-
},
|
|
1700
|
-
Backdrop: () =>
|
|
1701
|
-
Close: () =>
|
|
1702
|
-
CloseButton: () =>
|
|
1703
|
-
Content: () =>
|
|
1704
|
-
Description: () =>
|
|
1705
|
-
Footer: () =>
|
|
1706
|
-
Header: () =>
|
|
1707
|
-
Popup: () =>
|
|
1708
|
-
Portal: () =>
|
|
1709
|
-
Root: () =>
|
|
1710
|
-
Title: () =>
|
|
1711
|
-
Trigger: () =>
|
|
1712
|
-
Viewport: () =>
|
|
1713
|
-
}),
|
|
1714
|
-
function
|
|
1712
|
+
}, Fn = /* @__PURE__ */ Se({
|
|
1713
|
+
Backdrop: () => zn,
|
|
1714
|
+
Close: () => qn,
|
|
1715
|
+
CloseButton: () => Jn,
|
|
1716
|
+
Content: () => Gn,
|
|
1717
|
+
Description: () => Wn,
|
|
1718
|
+
Footer: () => Kn,
|
|
1719
|
+
Header: () => Hn,
|
|
1720
|
+
Popup: () => Vn,
|
|
1721
|
+
Portal: () => Rn,
|
|
1722
|
+
Root: () => In,
|
|
1723
|
+
Title: () => Un,
|
|
1724
|
+
Trigger: () => Ln,
|
|
1725
|
+
Viewport: () => Bn
|
|
1726
|
+
}), In = I.Root, Ln = I.Trigger, Rn = I.Portal;
|
|
1727
|
+
function zn({ className: e, ...t }) {
|
|
1715
1728
|
return /* @__PURE__ */ j(I.Backdrop, {
|
|
1716
1729
|
...t,
|
|
1717
|
-
className: G(
|
|
1730
|
+
className: G(Pn.Backdrop, e)
|
|
1718
1731
|
});
|
|
1719
1732
|
}
|
|
1720
|
-
function
|
|
1733
|
+
function Bn({ className: e, ...t }) {
|
|
1721
1734
|
return /* @__PURE__ */ j(I.Viewport, {
|
|
1722
1735
|
...t,
|
|
1723
|
-
className: G(
|
|
1736
|
+
className: G(Pn.Viewport, e)
|
|
1724
1737
|
});
|
|
1725
1738
|
}
|
|
1726
|
-
function
|
|
1739
|
+
function Vn({ size: e = "sm", fullScreenOnMobile: t, className: n, ...r }) {
|
|
1727
1740
|
return /* @__PURE__ */ j(I.Popup, {
|
|
1728
1741
|
...r,
|
|
1729
1742
|
"data-size": e,
|
|
1730
1743
|
"data-full-screen-on-mobile": t || void 0,
|
|
1731
|
-
className: G(
|
|
1744
|
+
className: G(Pn.Popup, n)
|
|
1732
1745
|
});
|
|
1733
1746
|
}
|
|
1734
|
-
function
|
|
1747
|
+
function Hn({ className: e, ...t }) {
|
|
1735
1748
|
return /* @__PURE__ */ j("div", {
|
|
1736
1749
|
...t,
|
|
1737
|
-
className: [
|
|
1750
|
+
className: [Pn.Header, e].filter(Boolean).join(" ")
|
|
1738
1751
|
});
|
|
1739
1752
|
}
|
|
1740
|
-
function
|
|
1753
|
+
function Un({ className: e, ...t }) {
|
|
1741
1754
|
return /* @__PURE__ */ j(I.Title, {
|
|
1742
1755
|
...t,
|
|
1743
|
-
className: G(
|
|
1756
|
+
className: G(Pn.Title, e)
|
|
1744
1757
|
});
|
|
1745
1758
|
}
|
|
1746
|
-
function
|
|
1759
|
+
function Wn({ className: e, ...t }) {
|
|
1747
1760
|
return /* @__PURE__ */ j(I.Description, {
|
|
1748
1761
|
...t,
|
|
1749
|
-
className: G(
|
|
1762
|
+
className: G(Pn.Description, e)
|
|
1750
1763
|
});
|
|
1751
1764
|
}
|
|
1752
|
-
function
|
|
1765
|
+
function Gn({ className: e, ...t }) {
|
|
1753
1766
|
return /* @__PURE__ */ j("div", {
|
|
1754
1767
|
...t,
|
|
1755
|
-
className: [
|
|
1768
|
+
className: [Pn.Content, e].filter(Boolean).join(" ")
|
|
1756
1769
|
});
|
|
1757
1770
|
}
|
|
1758
|
-
function
|
|
1771
|
+
function Kn({ className: e, ...t }) {
|
|
1759
1772
|
return /* @__PURE__ */ j("div", {
|
|
1760
1773
|
...t,
|
|
1761
|
-
className: [
|
|
1774
|
+
className: [Pn.Footer, e].filter(Boolean).join(" ")
|
|
1762
1775
|
});
|
|
1763
1776
|
}
|
|
1764
|
-
var
|
|
1765
|
-
function
|
|
1766
|
-
let r =
|
|
1777
|
+
var qn = I.Close;
|
|
1778
|
+
function Jn({ label: e, className: t, ...n }) {
|
|
1779
|
+
let r = pt();
|
|
1767
1780
|
return /* @__PURE__ */ j(I.Close, {
|
|
1768
1781
|
...n,
|
|
1769
1782
|
"aria-label": e ?? r.close,
|
|
1770
|
-
className: G(
|
|
1783
|
+
className: G(Pn.CloseButton, t),
|
|
1771
1784
|
children: /* @__PURE__ */ j(re, {
|
|
1772
1785
|
size: 20,
|
|
1773
1786
|
"aria-hidden": !0
|
|
1774
1787
|
})
|
|
1775
1788
|
});
|
|
1776
1789
|
}
|
|
1777
|
-
var
|
|
1790
|
+
var Yn = {
|
|
1778
1791
|
Backdrop: "_Backdrop_12k26_12",
|
|
1779
1792
|
Viewport: "_Viewport_12k26_27",
|
|
1780
1793
|
Popup: "_Popup_12k26_35",
|
|
@@ -1784,117 +1797,117 @@ var qn = {
|
|
|
1784
1797
|
Description: "_Description_12k26_155",
|
|
1785
1798
|
Content: "_Content_12k26_169",
|
|
1786
1799
|
CloseButton: "_CloseButton_12k26_176"
|
|
1787
|
-
},
|
|
1788
|
-
Backdrop: () =>
|
|
1789
|
-
Close: () =>
|
|
1790
|
-
CloseButton: () =>
|
|
1791
|
-
Content: () =>
|
|
1792
|
-
Description: () =>
|
|
1793
|
-
Handle: () =>
|
|
1794
|
-
Header: () =>
|
|
1795
|
-
Popup: () =>
|
|
1796
|
-
Portal: () =>
|
|
1797
|
-
Root: () =>
|
|
1798
|
-
Title: () =>
|
|
1799
|
-
Trigger: () =>
|
|
1800
|
-
Viewport: () =>
|
|
1801
|
-
}),
|
|
1800
|
+
}, Xn = /* @__PURE__ */ Se({
|
|
1801
|
+
Backdrop: () => tr,
|
|
1802
|
+
Close: () => lr,
|
|
1803
|
+
CloseButton: () => ur,
|
|
1804
|
+
Content: () => cr,
|
|
1805
|
+
Description: () => sr,
|
|
1806
|
+
Handle: () => ir,
|
|
1807
|
+
Header: () => ar,
|
|
1808
|
+
Popup: () => rr,
|
|
1809
|
+
Portal: () => er,
|
|
1810
|
+
Root: () => Qn,
|
|
1811
|
+
Title: () => or,
|
|
1812
|
+
Trigger: () => $n,
|
|
1813
|
+
Viewport: () => nr
|
|
1814
|
+
}), Zn = {
|
|
1802
1815
|
left: "left",
|
|
1803
1816
|
right: "right",
|
|
1804
1817
|
top: "up",
|
|
1805
1818
|
bottom: "down"
|
|
1806
1819
|
};
|
|
1807
|
-
function
|
|
1820
|
+
function Qn({ side: e = "right", ...t }) {
|
|
1808
1821
|
return /* @__PURE__ */ j(L.Root, {
|
|
1809
1822
|
...t,
|
|
1810
|
-
swipeDirection:
|
|
1823
|
+
swipeDirection: Zn[e]
|
|
1811
1824
|
});
|
|
1812
1825
|
}
|
|
1813
|
-
var
|
|
1814
|
-
function
|
|
1826
|
+
var $n = L.Trigger, er = L.Portal;
|
|
1827
|
+
function tr({ className: e, ...t }) {
|
|
1815
1828
|
return /* @__PURE__ */ j(L.Backdrop, {
|
|
1816
1829
|
...t,
|
|
1817
|
-
className: G(
|
|
1830
|
+
className: G(Yn.Backdrop, e)
|
|
1818
1831
|
});
|
|
1819
1832
|
}
|
|
1820
|
-
function
|
|
1833
|
+
function nr({ className: e, ...t }) {
|
|
1821
1834
|
return /* @__PURE__ */ j(L.Viewport, {
|
|
1822
1835
|
...t,
|
|
1823
|
-
className: G(
|
|
1836
|
+
className: G(Yn.Viewport, e)
|
|
1824
1837
|
});
|
|
1825
1838
|
}
|
|
1826
|
-
function
|
|
1839
|
+
function rr({ className: e, ...t }) {
|
|
1827
1840
|
return /* @__PURE__ */ j(L.Popup, {
|
|
1828
1841
|
...t,
|
|
1829
|
-
className: G(
|
|
1842
|
+
className: G(Yn.Popup, e)
|
|
1830
1843
|
});
|
|
1831
1844
|
}
|
|
1832
|
-
function
|
|
1845
|
+
function ir({ className: e, ...t }) {
|
|
1833
1846
|
return /* @__PURE__ */ j("div", {
|
|
1834
1847
|
...t,
|
|
1835
1848
|
"aria-hidden": !0,
|
|
1836
|
-
className: [
|
|
1849
|
+
className: [Yn.Handle, e].filter(Boolean).join(" ")
|
|
1837
1850
|
});
|
|
1838
1851
|
}
|
|
1839
|
-
function
|
|
1852
|
+
function ar({ className: e, ...t }) {
|
|
1840
1853
|
return /* @__PURE__ */ j("div", {
|
|
1841
1854
|
...t,
|
|
1842
|
-
className: [
|
|
1855
|
+
className: [Yn.Header, e].filter(Boolean).join(" ")
|
|
1843
1856
|
});
|
|
1844
1857
|
}
|
|
1845
|
-
function
|
|
1858
|
+
function or({ className: e, ...t }) {
|
|
1846
1859
|
return /* @__PURE__ */ j(L.Title, {
|
|
1847
1860
|
...t,
|
|
1848
|
-
className: G(
|
|
1861
|
+
className: G(Yn.Title, e)
|
|
1849
1862
|
});
|
|
1850
1863
|
}
|
|
1851
|
-
function
|
|
1864
|
+
function sr({ className: e, ...t }) {
|
|
1852
1865
|
return /* @__PURE__ */ j(L.Description, {
|
|
1853
1866
|
...t,
|
|
1854
|
-
className: G(
|
|
1867
|
+
className: G(Yn.Description, e)
|
|
1855
1868
|
});
|
|
1856
1869
|
}
|
|
1857
|
-
function
|
|
1870
|
+
function cr({ className: e, ...t }) {
|
|
1858
1871
|
return /* @__PURE__ */ j(L.Content, {
|
|
1859
1872
|
...t,
|
|
1860
|
-
className: G(
|
|
1873
|
+
className: G(Yn.Content, e)
|
|
1861
1874
|
});
|
|
1862
1875
|
}
|
|
1863
|
-
var
|
|
1864
|
-
function
|
|
1865
|
-
let r =
|
|
1876
|
+
var lr = L.Close;
|
|
1877
|
+
function ur({ label: e, className: t, ...n }) {
|
|
1878
|
+
let r = pt();
|
|
1866
1879
|
return /* @__PURE__ */ j(L.Close, {
|
|
1867
1880
|
...n,
|
|
1868
1881
|
"aria-label": e ?? r.close,
|
|
1869
|
-
className: G(
|
|
1882
|
+
className: G(Yn.CloseButton, t),
|
|
1870
1883
|
children: /* @__PURE__ */ j(re, {
|
|
1871
1884
|
size: 20,
|
|
1872
1885
|
"aria-hidden": !0
|
|
1873
1886
|
})
|
|
1874
1887
|
});
|
|
1875
1888
|
}
|
|
1876
|
-
var
|
|
1889
|
+
var dr = { Container: "_Container_15dwv_1" };
|
|
1877
1890
|
//#endregion
|
|
1878
1891
|
//#region src/components/layout/container/container.tsx
|
|
1879
|
-
function
|
|
1892
|
+
function fr({ size: e = "lg", render: t, className: n, ...r }) {
|
|
1880
1893
|
return N({
|
|
1881
1894
|
render: t,
|
|
1882
1895
|
props: {
|
|
1883
1896
|
...r,
|
|
1884
1897
|
"data-size": e,
|
|
1885
|
-
className: G(
|
|
1898
|
+
className: G(dr.Container, n)({})
|
|
1886
1899
|
}
|
|
1887
1900
|
});
|
|
1888
1901
|
}
|
|
1889
1902
|
//#endregion
|
|
1890
1903
|
//#region src/components/feedback/global-alert/global-alert.tsx
|
|
1891
|
-
function
|
|
1892
|
-
let { rootProps: i, content: a } =
|
|
1904
|
+
function pr({ fluid: e = !1, className: t, innerClassName: n, ...r }) {
|
|
1905
|
+
let { rootProps: i, content: a } = jn(r);
|
|
1893
1906
|
return /* @__PURE__ */ j("div", {
|
|
1894
1907
|
...i,
|
|
1895
1908
|
"data-global": "",
|
|
1896
1909
|
className: [K.Alert, t].filter(Boolean).join(" "),
|
|
1897
|
-
children: /* @__PURE__ */ j(
|
|
1910
|
+
children: /* @__PURE__ */ j(fr, {
|
|
1898
1911
|
className: [K.Layout, n].filter(Boolean).join(" "),
|
|
1899
1912
|
"data-fluid": e || void 0,
|
|
1900
1913
|
children: a
|
|
@@ -1903,13 +1916,13 @@ function dr({ fluid: e = !1, className: t, innerClassName: n, ...r }) {
|
|
|
1903
1916
|
}
|
|
1904
1917
|
//#endregion
|
|
1905
1918
|
//#region src/components/feedback/dialog/simple-dialog.tsx
|
|
1906
|
-
function
|
|
1907
|
-
return /* @__PURE__ */ j(
|
|
1919
|
+
function mr({ title: e, description: t, children: n, closeLabel: r, size: i, fullScreenOnMobile: a, hideCloseButton: o, ...s }) {
|
|
1920
|
+
return /* @__PURE__ */ j(In, {
|
|
1908
1921
|
...s,
|
|
1909
|
-
children: /* @__PURE__ */ M(
|
|
1922
|
+
children: /* @__PURE__ */ M(Rn, { children: [/* @__PURE__ */ j(zn, {}), /* @__PURE__ */ j(Bn, { children: /* @__PURE__ */ M(Vn, {
|
|
1910
1923
|
size: i,
|
|
1911
1924
|
fullScreenOnMobile: a,
|
|
1912
|
-
children: [/* @__PURE__ */ M(
|
|
1925
|
+
children: [/* @__PURE__ */ M(Hn, { children: [/* @__PURE__ */ j(Un, { children: e }), !o && /* @__PURE__ */ j(Jn, { label: r })] }), /* @__PURE__ */ M(Gn, { children: [t != null && /* @__PURE__ */ j(Wn, {
|
|
1913
1926
|
"data-last": n == null || void 0,
|
|
1914
1927
|
children: t
|
|
1915
1928
|
}), n] })]
|
|
@@ -1918,29 +1931,29 @@ function fr({ title: e, description: t, children: n, closeLabel: r, size: i, ful
|
|
|
1918
1931
|
}
|
|
1919
1932
|
//#endregion
|
|
1920
1933
|
//#region src/components/feedback/drawer/simple-drawer.tsx
|
|
1921
|
-
function
|
|
1922
|
-
return /* @__PURE__ */ j(
|
|
1934
|
+
function hr({ title: e, description: t, children: n, closeLabel: r, side: i = "right", ...a }) {
|
|
1935
|
+
return /* @__PURE__ */ j(Qn, {
|
|
1923
1936
|
...a,
|
|
1924
1937
|
side: i,
|
|
1925
|
-
children: /* @__PURE__ */ M(
|
|
1926
|
-
i === "bottom" && /* @__PURE__ */ j(
|
|
1927
|
-
/* @__PURE__ */ M(
|
|
1928
|
-
/* @__PURE__ */ M(
|
|
1938
|
+
children: /* @__PURE__ */ M(er, { children: [/* @__PURE__ */ j(tr, {}), /* @__PURE__ */ j(nr, { children: /* @__PURE__ */ M(rr, { children: [
|
|
1939
|
+
i === "bottom" && /* @__PURE__ */ j(ir, {}),
|
|
1940
|
+
/* @__PURE__ */ M(ar, { children: [/* @__PURE__ */ j(or, { children: e }), /* @__PURE__ */ j(ur, { label: r })] }),
|
|
1941
|
+
/* @__PURE__ */ M(cr, { children: [t != null && /* @__PURE__ */ j(sr, {
|
|
1929
1942
|
"data-last": n == null || void 0,
|
|
1930
1943
|
children: t
|
|
1931
1944
|
}), n] }),
|
|
1932
|
-
i === "top" && /* @__PURE__ */ j(
|
|
1945
|
+
i === "top" && /* @__PURE__ */ j(ir, {})
|
|
1933
1946
|
] }) })] })
|
|
1934
1947
|
});
|
|
1935
1948
|
}
|
|
1936
|
-
var
|
|
1949
|
+
var gr = {
|
|
1937
1950
|
Viewport: "_Viewport_42vay_10",
|
|
1938
1951
|
Toast: "_Toast_42vay_34",
|
|
1939
1952
|
Content: "_Content_42vay_123",
|
|
1940
1953
|
Description: "_Description_42vay_143",
|
|
1941
1954
|
ToastAction: "_ToastAction_42vay_148"
|
|
1942
|
-
},
|
|
1943
|
-
let a =
|
|
1955
|
+
}, _r = ({ severity: e, color: t, priority: n, action: r, ...i }) => {
|
|
1956
|
+
let a = An(e, t);
|
|
1944
1957
|
return {
|
|
1945
1958
|
...i,
|
|
1946
1959
|
type: a,
|
|
@@ -1954,60 +1967,60 @@ var mr = {
|
|
|
1954
1967
|
color: t ?? a
|
|
1955
1968
|
}
|
|
1956
1969
|
};
|
|
1957
|
-
},
|
|
1958
|
-
function
|
|
1970
|
+
}, vr = /* @__PURE__ */ new WeakMap();
|
|
1971
|
+
function yr() {
|
|
1959
1972
|
let e = R.createToastManager(), t = {
|
|
1960
|
-
add: (t) => e.add(
|
|
1973
|
+
add: (t) => e.add(_r(t)),
|
|
1961
1974
|
close: (t) => e.close(t)
|
|
1962
1975
|
};
|
|
1963
|
-
return
|
|
1976
|
+
return vr.set(t, e), t;
|
|
1964
1977
|
}
|
|
1965
|
-
var
|
|
1966
|
-
function
|
|
1967
|
-
let e = u(
|
|
1978
|
+
var br = s(null);
|
|
1979
|
+
function xr() {
|
|
1980
|
+
let e = u(br);
|
|
1968
1981
|
if (!e) throw Error("useToastManager must be used inside a ToastProvider.");
|
|
1969
1982
|
return e;
|
|
1970
1983
|
}
|
|
1971
|
-
var
|
|
1984
|
+
var Sr = W({ notifications: {
|
|
1972
1985
|
no: "Varsler",
|
|
1973
1986
|
se: "Aviseringar",
|
|
1974
1987
|
fi: "Ilmoitukset",
|
|
1975
1988
|
es: "Notificaciones"
|
|
1976
1989
|
} });
|
|
1977
|
-
function
|
|
1978
|
-
let [i] = g(
|
|
1979
|
-
return /* @__PURE__ */ j(
|
|
1990
|
+
function Cr({ children: e, timeout: t, limit: n, toastManager: r }) {
|
|
1991
|
+
let [i] = g(yr), a = r ?? i, o = Sr();
|
|
1992
|
+
return /* @__PURE__ */ j(br.Provider, {
|
|
1980
1993
|
value: a,
|
|
1981
1994
|
children: /* @__PURE__ */ M(R.Provider, {
|
|
1982
1995
|
timeout: t,
|
|
1983
1996
|
limit: n,
|
|
1984
|
-
toastManager:
|
|
1997
|
+
toastManager: vr.get(a),
|
|
1985
1998
|
children: [e, /* @__PURE__ */ j(R.Portal, { children: /* @__PURE__ */ j(R.Viewport, {
|
|
1986
1999
|
"aria-label": o.notifications,
|
|
1987
|
-
className:
|
|
1988
|
-
children: /* @__PURE__ */ j(
|
|
2000
|
+
className: gr.Viewport,
|
|
2001
|
+
children: /* @__PURE__ */ j(wr, {})
|
|
1989
2002
|
}) })]
|
|
1990
2003
|
})
|
|
1991
2004
|
});
|
|
1992
2005
|
}
|
|
1993
|
-
function
|
|
2006
|
+
function wr() {
|
|
1994
2007
|
let { toasts: e } = R.useToastManager();
|
|
1995
|
-
return e.map((e) => /* @__PURE__ */ j(
|
|
2008
|
+
return e.map((e) => /* @__PURE__ */ j(Tr, { toast: e }, e.id));
|
|
1996
2009
|
}
|
|
1997
|
-
function
|
|
2010
|
+
function Tr({ toast: e }) {
|
|
1998
2011
|
let t = e.data?.severity ?? "success";
|
|
1999
2012
|
return /* @__PURE__ */ j(R.Root, {
|
|
2000
2013
|
toast: e,
|
|
2001
2014
|
"data-color": e.data?.color ?? t,
|
|
2002
2015
|
"data-variant": "standard",
|
|
2003
2016
|
"data-size": "lg",
|
|
2004
|
-
className: `${K.Alert} ${
|
|
2017
|
+
className: `${K.Alert} ${gr.Toast}`,
|
|
2005
2018
|
children: /* @__PURE__ */ M(R.Content, {
|
|
2006
|
-
className: `${K.Layout} ${
|
|
2019
|
+
className: `${K.Layout} ${gr.Content}`,
|
|
2007
2020
|
children: [
|
|
2008
2021
|
/* @__PURE__ */ j("div", {
|
|
2009
2022
|
className: K.Icon,
|
|
2010
|
-
children:
|
|
2023
|
+
children: kn[t]
|
|
2011
2024
|
}),
|
|
2012
2025
|
/* @__PURE__ */ M("div", {
|
|
2013
2026
|
className: K.Message,
|
|
@@ -2016,32 +2029,32 @@ function Cr({ toast: e }) {
|
|
|
2016
2029
|
render: /* @__PURE__ */ j("div", {}),
|
|
2017
2030
|
className: K.Title
|
|
2018
2031
|
}),
|
|
2019
|
-
/* @__PURE__ */ j(R.Description, { className:
|
|
2032
|
+
/* @__PURE__ */ j(R.Description, { className: gr.Description }),
|
|
2020
2033
|
/* @__PURE__ */ j(R.Action, {
|
|
2021
|
-
render: /* @__PURE__ */ j(
|
|
2034
|
+
render: /* @__PURE__ */ j(ft, {
|
|
2022
2035
|
size: "sm",
|
|
2023
2036
|
variant: "outline",
|
|
2024
2037
|
color: "secondary"
|
|
2025
2038
|
}),
|
|
2026
|
-
className:
|
|
2039
|
+
className: gr.ToastAction
|
|
2027
2040
|
})
|
|
2028
2041
|
]
|
|
2029
2042
|
}),
|
|
2030
2043
|
/* @__PURE__ */ j("div", {
|
|
2031
2044
|
className: K.Action,
|
|
2032
|
-
children: /* @__PURE__ */ j(R.Close, { render: /* @__PURE__ */ j(
|
|
2045
|
+
children: /* @__PURE__ */ j(R.Close, { render: /* @__PURE__ */ j(ht, { size: "sm" }) })
|
|
2033
2046
|
})
|
|
2034
2047
|
]
|
|
2035
2048
|
})
|
|
2036
2049
|
});
|
|
2037
2050
|
}
|
|
2038
|
-
var
|
|
2051
|
+
var Er = {
|
|
2039
2052
|
Skeleton: "_Skeleton_1ek0w_6",
|
|
2040
2053
|
"skeleton-pulse": "_skeleton-pulse_1ek0w_1"
|
|
2041
2054
|
};
|
|
2042
2055
|
//#endregion
|
|
2043
2056
|
//#region src/components/feedback/skeleton/skeleton.tsx
|
|
2044
|
-
function
|
|
2057
|
+
function Dr({ render: e, ref: t, className: n, ...r }) {
|
|
2045
2058
|
return N({
|
|
2046
2059
|
render: e,
|
|
2047
2060
|
ref: t,
|
|
@@ -2049,48 +2062,59 @@ function Tr({ render: e, ref: t, className: n, ...r }) {
|
|
|
2049
2062
|
props: {
|
|
2050
2063
|
"aria-hidden": !0,
|
|
2051
2064
|
...r,
|
|
2052
|
-
className: G(
|
|
2065
|
+
className: G(Er.Skeleton, n)({})
|
|
2053
2066
|
}
|
|
2054
2067
|
});
|
|
2055
2068
|
}
|
|
2056
|
-
var
|
|
2069
|
+
var Or = {
|
|
2057
2070
|
AmountSlider: "_AmountSlider_1ccju_10",
|
|
2058
2071
|
Label: "_Label_1ccju_21",
|
|
2059
2072
|
Input: "_Input_1ccju_31",
|
|
2060
2073
|
Slider: "_Slider_1ccju_83"
|
|
2061
|
-
},
|
|
2074
|
+
}, kr = {
|
|
2062
2075
|
Control: "_Control_1zreo_12",
|
|
2063
2076
|
Track: "_Track_1zreo_56",
|
|
2064
2077
|
Indicator: "_Indicator_1zreo_76",
|
|
2065
2078
|
Thumb: "_Thumb_1zreo_92",
|
|
2066
2079
|
Range: "_Range_1zreo_124",
|
|
2067
2080
|
HelperText: "_HelperText_1zreo_136"
|
|
2068
|
-
}
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2081
|
+
};
|
|
2082
|
+
//#endregion
|
|
2083
|
+
//#region src/components/form/slider-parts.tsx
|
|
2084
|
+
function Ar({ invalid: e, children: t }) {
|
|
2085
|
+
return /* @__PURE__ */ j(B.Root, {
|
|
2086
|
+
invalid: e,
|
|
2087
|
+
render: (e) => /* @__PURE__ */ j(A, { children: e.children }),
|
|
2088
|
+
children: t
|
|
2089
|
+
});
|
|
2090
|
+
}
|
|
2091
|
+
function jr({ "aria-label": e, "aria-describedby": t, inputRef: n, formatValue: r }) {
|
|
2092
|
+
return /* @__PURE__ */ j(z.Control, {
|
|
2093
|
+
className: kr.Control,
|
|
2094
|
+
children: /* @__PURE__ */ M(z.Track, {
|
|
2095
|
+
className: kr.Track,
|
|
2096
|
+
children: [/* @__PURE__ */ j(z.Indicator, { className: kr.Indicator }), /* @__PURE__ */ j(z.Thumb, {
|
|
2097
|
+
className: kr.Thumb,
|
|
2076
2098
|
"aria-label": e,
|
|
2077
|
-
"aria-describedby": t
|
|
2099
|
+
"aria-describedby": t,
|
|
2100
|
+
inputRef: n,
|
|
2101
|
+
getAriaValueText: r == null ? void 0 : (e, t) => r(t)
|
|
2078
2102
|
})]
|
|
2079
2103
|
})
|
|
2080
2104
|
});
|
|
2081
2105
|
}
|
|
2082
|
-
function
|
|
2083
|
-
let
|
|
2106
|
+
function Mr({ min: e, max: t, format: n, locale: r, formatValue: i }) {
|
|
2107
|
+
let a = m(() => new Intl.NumberFormat(r, n), [r, n]), o = i ?? ((e) => a.format(e));
|
|
2084
2108
|
return /* @__PURE__ */ M("div", {
|
|
2085
|
-
className:
|
|
2109
|
+
className: kr.Range,
|
|
2086
2110
|
"aria-hidden": !0,
|
|
2087
|
-
children: [/* @__PURE__ */ j("span", { children:
|
|
2111
|
+
children: [/* @__PURE__ */ j("span", { children: o(e) }), /* @__PURE__ */ j("span", { children: o(t) })]
|
|
2088
2112
|
});
|
|
2089
2113
|
}
|
|
2090
|
-
function
|
|
2114
|
+
function Nr({ id: e, error: t, children: n }) {
|
|
2091
2115
|
return /* @__PURE__ */ j("p", {
|
|
2092
2116
|
id: e,
|
|
2093
|
-
className:
|
|
2117
|
+
className: kr.HelperText,
|
|
2094
2118
|
"data-invalid": t ? "" : void 0,
|
|
2095
2119
|
role: t ? "alert" : void 0,
|
|
2096
2120
|
children: n
|
|
@@ -2098,21 +2122,21 @@ function jr({ id: e, error: t, children: n }) {
|
|
|
2098
2122
|
}
|
|
2099
2123
|
//#endregion
|
|
2100
2124
|
//#region src/components/form/amount-slider/amount-slider.tsx
|
|
2101
|
-
function
|
|
2125
|
+
function Pr({ label: e, min: t, max: n, step: r = 1, value: i, defaultValue: a, onValueChange: o, format: s, locale: c, name: l, disabled: u = !1, helperText: d, error: p = !1, className: m, ...h }) {
|
|
2102
2126
|
let _ = f(), v = f(), y = f(), b = d == null ? void 0 : y, [x, S] = g(a ?? t), C = i ?? x, [w, T] = g(), E = (e) => {
|
|
2103
2127
|
T(void 0), i === void 0 && S(e), e !== C && o?.(e);
|
|
2104
2128
|
};
|
|
2105
2129
|
return /* @__PURE__ */ M("div", {
|
|
2106
2130
|
...h,
|
|
2107
|
-
className: [
|
|
2131
|
+
className: [Or.AmountSlider, m].filter(Boolean).join(" "),
|
|
2108
2132
|
children: [
|
|
2109
2133
|
/* @__PURE__ */ j("label", {
|
|
2110
2134
|
id: _,
|
|
2111
2135
|
htmlFor: v,
|
|
2112
|
-
className:
|
|
2136
|
+
className: Or.Label,
|
|
2113
2137
|
children: e
|
|
2114
2138
|
}),
|
|
2115
|
-
/* @__PURE__ */ j(
|
|
2139
|
+
/* @__PURE__ */ j(oe.Root, {
|
|
2116
2140
|
id: v,
|
|
2117
2141
|
name: l,
|
|
2118
2142
|
value: w === void 0 ? C : w,
|
|
@@ -2129,17 +2153,16 @@ function Mr({ label: e, min: t, max: n, step: r = 1, value: i, defaultValue: a,
|
|
|
2129
2153
|
format: s,
|
|
2130
2154
|
locale: c,
|
|
2131
2155
|
disabled: u,
|
|
2132
|
-
children: /* @__PURE__ */ j(
|
|
2133
|
-
className:
|
|
2156
|
+
children: /* @__PURE__ */ j(oe.Input, {
|
|
2157
|
+
className: Or.Input,
|
|
2134
2158
|
"aria-describedby": b,
|
|
2135
2159
|
"aria-invalid": p || void 0,
|
|
2136
2160
|
"data-invalid": p ? "" : void 0
|
|
2137
2161
|
})
|
|
2138
2162
|
}),
|
|
2139
|
-
/* @__PURE__ */ j(
|
|
2163
|
+
/* @__PURE__ */ j(Ar, {
|
|
2140
2164
|
invalid: p,
|
|
2141
|
-
|
|
2142
|
-
children: /* @__PURE__ */ M(B.Root, {
|
|
2165
|
+
children: /* @__PURE__ */ M(z.Root, {
|
|
2143
2166
|
value: C,
|
|
2144
2167
|
onValueChange: E,
|
|
2145
2168
|
min: t,
|
|
@@ -2149,8 +2172,8 @@ function Mr({ label: e, min: t, max: n, step: r = 1, value: i, defaultValue: a,
|
|
|
2149
2172
|
locale: c,
|
|
2150
2173
|
disabled: u,
|
|
2151
2174
|
"aria-labelledby": _,
|
|
2152
|
-
className:
|
|
2153
|
-
children: [/* @__PURE__ */ j(
|
|
2175
|
+
className: Or.Slider,
|
|
2176
|
+
children: [/* @__PURE__ */ j(jr, { "aria-describedby": b }), /* @__PURE__ */ j(Mr, {
|
|
2154
2177
|
min: t,
|
|
2155
2178
|
max: n,
|
|
2156
2179
|
format: s,
|
|
@@ -2158,7 +2181,7 @@ function Mr({ label: e, min: t, max: n, step: r = 1, value: i, defaultValue: a,
|
|
|
2158
2181
|
})]
|
|
2159
2182
|
})
|
|
2160
2183
|
}),
|
|
2161
|
-
d != null && /* @__PURE__ */ j(
|
|
2184
|
+
d != null && /* @__PURE__ */ j(Nr, {
|
|
2162
2185
|
id: y,
|
|
2163
2186
|
error: p,
|
|
2164
2187
|
children: d
|
|
@@ -2179,40 +2202,40 @@ var q = {
|
|
|
2179
2202
|
Chips: "_Chips_ghj8z_113",
|
|
2180
2203
|
ChipInput: "_ChipInput_ghj8z_124",
|
|
2181
2204
|
Popup: "_Popup_ghj8z_161"
|
|
2182
|
-
},
|
|
2205
|
+
}, Fr = {
|
|
2183
2206
|
GroupLabel: "_GroupLabel_kcgec_11",
|
|
2184
2207
|
HelperText: "_HelperText_kcgec_33"
|
|
2185
|
-
},
|
|
2208
|
+
}, Ir = W({ moreInformation: {
|
|
2186
2209
|
no: "Mer informasjon",
|
|
2187
2210
|
se: "Mer information",
|
|
2188
2211
|
fi: "Lisätietoja",
|
|
2189
2212
|
es: "Más información"
|
|
2190
|
-
} }),
|
|
2213
|
+
} }), Lr = ({ className: e }) => /* @__PURE__ */ j("span", {
|
|
2191
2214
|
"aria-hidden": !0,
|
|
2192
2215
|
className: e,
|
|
2193
2216
|
children: " *"
|
|
2194
2217
|
});
|
|
2195
|
-
function
|
|
2218
|
+
function Rr({ id: e, error: t, warning: n = !1, children: r }) {
|
|
2196
2219
|
return /* @__PURE__ */ j("p", {
|
|
2197
2220
|
id: e,
|
|
2198
|
-
className:
|
|
2221
|
+
className: Fr.HelperText,
|
|
2199
2222
|
"data-invalid": t ? "" : void 0,
|
|
2200
2223
|
"data-warning": n && !t ? "" : void 0,
|
|
2201
2224
|
role: t ? "alert" : n ? "status" : void 0,
|
|
2202
2225
|
children: r
|
|
2203
2226
|
});
|
|
2204
2227
|
}
|
|
2205
|
-
function
|
|
2228
|
+
function zr(e, t, n) {
|
|
2206
2229
|
let r = !n && t != null && t !== !1 && t !== "";
|
|
2207
2230
|
return {
|
|
2208
2231
|
content: r ? t : e,
|
|
2209
2232
|
warning: r
|
|
2210
2233
|
};
|
|
2211
2234
|
}
|
|
2212
|
-
function
|
|
2213
|
-
let s =
|
|
2235
|
+
function Br({ id: e, htmlFor: t, tooltip: n, required: r, error: i, disabled: a, children: o }) {
|
|
2236
|
+
let s = Ir(), c = n != null && n !== !1;
|
|
2214
2237
|
return /* @__PURE__ */ M("div", {
|
|
2215
|
-
className:
|
|
2238
|
+
className: Fr.GroupLabel,
|
|
2216
2239
|
"data-invalid": i ? "" : void 0,
|
|
2217
2240
|
"data-disabled": a ? "" : void 0,
|
|
2218
2241
|
children: [/* @__PURE__ */ M("span", { children: [t == null ? /* @__PURE__ */ j("span", {
|
|
@@ -2222,7 +2245,7 @@ function Rr({ id: e, htmlFor: t, tooltip: n, required: r, error: i, disabled: a,
|
|
|
2222
2245
|
id: e,
|
|
2223
2246
|
htmlFor: t,
|
|
2224
2247
|
children: o
|
|
2225
|
-
}), r && /* @__PURE__ */ j(
|
|
2248
|
+
}), r && /* @__PURE__ */ j(Lr, {})] }), c && /* @__PURE__ */ j(Vt, {
|
|
2226
2249
|
title: n,
|
|
2227
2250
|
ariaLabel: s.moreInformation,
|
|
2228
2251
|
triggerIcon: /* @__PURE__ */ j(E, {
|
|
@@ -2247,7 +2270,7 @@ var J = {
|
|
|
2247
2270
|
Item: "_Item_8mvp9_62",
|
|
2248
2271
|
ItemText: "_ItemText_8mvp9_81",
|
|
2249
2272
|
Empty: "_Empty_8mvp9_57"
|
|
2250
|
-
},
|
|
2273
|
+
}, Vr = W({
|
|
2251
2274
|
noOptions: {
|
|
2252
2275
|
no: "Ingen alternativer",
|
|
2253
2276
|
se: "Inga alternativ",
|
|
@@ -2281,7 +2304,7 @@ var J = {
|
|
|
2281
2304
|
});
|
|
2282
2305
|
//#endregion
|
|
2283
2306
|
//#region src/components/form/use-blur-outside.ts
|
|
2284
|
-
function
|
|
2307
|
+
function Hr(e, t) {
|
|
2285
2308
|
return (n) => {
|
|
2286
2309
|
e && window.setTimeout(() => {
|
|
2287
2310
|
let r = document.activeElement;
|
|
@@ -2291,20 +2314,20 @@ function Br(e, t) {
|
|
|
2291
2314
|
}
|
|
2292
2315
|
//#endregion
|
|
2293
2316
|
//#region src/components/form/combo-field.tsx
|
|
2294
|
-
var
|
|
2295
|
-
function
|
|
2296
|
-
let D =
|
|
2317
|
+
var Ur = (...e) => e.filter(Boolean).join(" ") || void 0;
|
|
2318
|
+
function Wr({ label: e, helperText: t, error: n = !1, warning: r, required: i = !1, disabled: a = !1, placeholder: o, onBlur: s, id: c, "aria-label": l, "aria-labelledby": u, "aria-describedby": d, className: p, style: m, ref: _, renderRoot: v, inputProps: y, chips: x, filled: S = !1, clearable: C = !1, trigger: w = !1, selectTextOnClick: T = !1, children: E, afterHelperText: ee }) {
|
|
2319
|
+
let D = Vr(), O = f(), te = c ?? O, k = f(), ne = f(), ie = e != null, N = zr(t, r, n), P = N.content != null, F = x !== void 0, ae = h(null), I = h(null), L = Hr(s, [ae, I]), [R, oe] = g(!1), z = h(!1), B = /* @__PURE__ */ j(V.Input, {
|
|
2297
2320
|
...y,
|
|
2298
2321
|
ref: _,
|
|
2299
|
-
id:
|
|
2322
|
+
id: te,
|
|
2300
2323
|
disabled: a,
|
|
2301
2324
|
required: i,
|
|
2302
2325
|
placeholder: o || " ",
|
|
2303
2326
|
"aria-label": l,
|
|
2304
|
-
"aria-labelledby": u ?? (ie ?
|
|
2327
|
+
"aria-labelledby": u ?? (ie ? k : void 0),
|
|
2305
2328
|
"aria-invalid": n || void 0,
|
|
2306
|
-
"aria-describedby":
|
|
2307
|
-
className: F ? q.ChipInput :
|
|
2329
|
+
"aria-describedby": Ur(P && ne, d),
|
|
2330
|
+
className: F ? q.ChipInput : Ur(J.Control, q.Control),
|
|
2308
2331
|
onFocus: () => {
|
|
2309
2332
|
z.current = !0;
|
|
2310
2333
|
},
|
|
@@ -2317,12 +2340,12 @@ function Hr({ label: e, helperText: t, error: n = !1, warning: r, required: i =
|
|
|
2317
2340
|
}
|
|
2318
2341
|
});
|
|
2319
2342
|
return /* @__PURE__ */ M("div", {
|
|
2320
|
-
className:
|
|
2343
|
+
className: Ur(J.Field, q.Field, p),
|
|
2321
2344
|
style: m,
|
|
2322
2345
|
children: [
|
|
2323
2346
|
v(/* @__PURE__ */ M(A, { children: [/* @__PURE__ */ M(V.InputGroup, {
|
|
2324
2347
|
ref: ae,
|
|
2325
|
-
className:
|
|
2348
|
+
className: Ur(J.Box, q.Box),
|
|
2326
2349
|
"data-invalid": n ? "" : void 0,
|
|
2327
2350
|
"data-has-label": ie ? "" : void 0,
|
|
2328
2351
|
"data-filled": S ? "" : void 0,
|
|
@@ -2330,12 +2353,12 @@ function Hr({ label: e, helperText: t, error: n = !1, warning: r, required: i =
|
|
|
2330
2353
|
onKeyDownCapture: () => oe(!0),
|
|
2331
2354
|
onPointerDownCapture: () => oe(!1),
|
|
2332
2355
|
children: [/* @__PURE__ */ M("div", {
|
|
2333
|
-
className:
|
|
2356
|
+
className: Ur(J.Inner, q.Inner),
|
|
2334
2357
|
children: [ie && /* @__PURE__ */ M("label", {
|
|
2335
|
-
id:
|
|
2336
|
-
htmlFor:
|
|
2337
|
-
className:
|
|
2338
|
-
children: [e, i && /* @__PURE__ */ j(
|
|
2358
|
+
id: k,
|
|
2359
|
+
htmlFor: te,
|
|
2360
|
+
className: Ur(J.Label, q.Label),
|
|
2361
|
+
children: [e, i && /* @__PURE__ */ j(Lr, {})]
|
|
2339
2362
|
}), F ? /* @__PURE__ */ M(V.Chips, {
|
|
2340
2363
|
className: q.Chips,
|
|
2341
2364
|
children: [x, B]
|
|
@@ -2343,12 +2366,12 @@ function Hr({ label: e, helperText: t, error: n = !1, warning: r, required: i =
|
|
|
2343
2366
|
}), (C || w) && /* @__PURE__ */ M("div", {
|
|
2344
2367
|
className: q.Buttons,
|
|
2345
2368
|
children: [C && /* @__PURE__ */ j(V.Clear, {
|
|
2346
|
-
className:
|
|
2369
|
+
className: Ur(q.Button, q.Clear),
|
|
2347
2370
|
"aria-label": D.clear,
|
|
2348
2371
|
tabIndex: -1,
|
|
2349
2372
|
children: /* @__PURE__ */ j(re, { "aria-hidden": !0 })
|
|
2350
2373
|
}), w && /* @__PURE__ */ j(V.Trigger, {
|
|
2351
|
-
className:
|
|
2374
|
+
className: Ur(q.Button, q.Trigger),
|
|
2352
2375
|
tabIndex: -1,
|
|
2353
2376
|
render: (e, t) => /* @__PURE__ */ j("button", {
|
|
2354
2377
|
...e,
|
|
@@ -2368,14 +2391,14 @@ function Hr({ label: e, helperText: t, error: n = !1, warning: r, required: i =
|
|
|
2368
2391
|
className: Y.Positioner,
|
|
2369
2392
|
children: /* @__PURE__ */ j(V.Popup, {
|
|
2370
2393
|
ref: I,
|
|
2371
|
-
className:
|
|
2394
|
+
className: Ur(Y.Popup, q.Popup),
|
|
2372
2395
|
"data-keyboard": R ? "" : void 0,
|
|
2373
2396
|
onBlur: L,
|
|
2374
2397
|
onPointerDownCapture: () => oe(!1),
|
|
2375
2398
|
children: E
|
|
2376
2399
|
})
|
|
2377
2400
|
}) })] })),
|
|
2378
|
-
P && /* @__PURE__ */ j(
|
|
2401
|
+
P && /* @__PURE__ */ j(Rr, {
|
|
2379
2402
|
id: ne,
|
|
2380
2403
|
error: n,
|
|
2381
2404
|
warning: N.warning,
|
|
@@ -2387,9 +2410,9 @@ function Hr({ label: e, helperText: t, error: n = !1, warning: r, required: i =
|
|
|
2387
2410
|
}
|
|
2388
2411
|
//#endregion
|
|
2389
2412
|
//#region src/components/form/autocomplete/autocomplete.tsx
|
|
2390
|
-
var
|
|
2391
|
-
function
|
|
2392
|
-
let r =
|
|
2413
|
+
var Gr = (e, t) => e.value === t.value;
|
|
2414
|
+
function Kr({ noOptionsText: e, loading: t, isDisabled: n }) {
|
|
2415
|
+
let r = Vr();
|
|
2393
2416
|
return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(V.Empty, {
|
|
2394
2417
|
className: Y.Empty,
|
|
2395
2418
|
children: t ? r.loading : e ?? r.noOptions
|
|
@@ -2406,9 +2429,9 @@ function Wr({ noOptionsText: e, loading: t, isDisabled: n }) {
|
|
|
2406
2429
|
}, e.value)
|
|
2407
2430
|
})] });
|
|
2408
2431
|
}
|
|
2409
|
-
function
|
|
2432
|
+
function qr({ options: e, value: t, defaultValue: n = "", onValueChange: r, noOptionsText: i, loading: a, name: o, ...s }) {
|
|
2410
2433
|
let c = t !== void 0, [l, u] = g(n), d = c ? t : l, f = e.find((e) => e.value === d) ?? null;
|
|
2411
|
-
return /* @__PURE__ */ j(
|
|
2434
|
+
return /* @__PURE__ */ j(Wr, {
|
|
2412
2435
|
...s,
|
|
2413
2436
|
clearable: !0,
|
|
2414
2437
|
trigger: !0,
|
|
@@ -2420,36 +2443,36 @@ function Gr({ options: e, value: t, defaultValue: n = "", onValueChange: r, noOp
|
|
|
2420
2443
|
let t = e?.value ?? "";
|
|
2421
2444
|
t !== d && (c || u(t), r?.(t));
|
|
2422
2445
|
},
|
|
2423
|
-
isItemEqualToValue:
|
|
2446
|
+
isItemEqualToValue: Gr,
|
|
2424
2447
|
name: o,
|
|
2425
2448
|
disabled: s.disabled,
|
|
2426
2449
|
required: s.required,
|
|
2427
2450
|
highlightItemOnHover: !1,
|
|
2428
2451
|
children: t
|
|
2429
2452
|
}),
|
|
2430
|
-
children: /* @__PURE__ */ j(
|
|
2453
|
+
children: /* @__PURE__ */ j(Kr, {
|
|
2431
2454
|
noOptionsText: i,
|
|
2432
2455
|
loading: a
|
|
2433
2456
|
})
|
|
2434
2457
|
});
|
|
2435
2458
|
}
|
|
2436
|
-
function
|
|
2437
|
-
let d =
|
|
2438
|
-
return /* @__PURE__ */ j(
|
|
2459
|
+
function Jr({ options: e, value: t, defaultValue: n = [], onValueChange: r, min: i = 1, max: a, noOptionsText: o, loading: s, name: c, multiple: l, ...u }) {
|
|
2460
|
+
let d = Nt(), f = t !== void 0, [p, m] = g(n), h = f ? t : p, [_, v] = g(""), y = h.map((t) => e.find((e) => e.value === t)).filter((e) => e !== void 0), b = a !== void 0 && h.length >= a, x = h.length <= i, S = !u.disabled && !x;
|
|
2461
|
+
return /* @__PURE__ */ j(Wr, {
|
|
2439
2462
|
...u,
|
|
2440
2463
|
clearable: i <= 0,
|
|
2441
2464
|
trigger: !0,
|
|
2442
2465
|
filled: y.length > 0,
|
|
2443
2466
|
chips: y.map((e) => /* @__PURE__ */ M(V.Chip, {
|
|
2444
|
-
className:
|
|
2467
|
+
className: Mt.Chip,
|
|
2445
2468
|
"data-color": "primary",
|
|
2446
2469
|
"data-variant": "filled",
|
|
2447
2470
|
"data-size": "sm",
|
|
2448
2471
|
children: [/* @__PURE__ */ j("span", {
|
|
2449
|
-
className:
|
|
2472
|
+
className: Mt.Label,
|
|
2450
2473
|
children: e.label
|
|
2451
2474
|
}), S && /* @__PURE__ */ j(V.ChipRemove, {
|
|
2452
|
-
className:
|
|
2475
|
+
className: Mt.Delete,
|
|
2453
2476
|
"aria-label": `${d.remove} ${e.label}`,
|
|
2454
2477
|
children: /* @__PURE__ */ j(w, { "aria-hidden": !0 })
|
|
2455
2478
|
})]
|
|
@@ -2468,14 +2491,14 @@ function Kr({ options: e, value: t, defaultValue: n = [], onValueChange: r, min:
|
|
|
2468
2491
|
let n = e.map((e) => e.value);
|
|
2469
2492
|
n.length < i && n.length < h.length || a !== void 0 && n.length > a && n.length > h.length || (f || m(n), r?.(n));
|
|
2470
2493
|
},
|
|
2471
|
-
isItemEqualToValue:
|
|
2494
|
+
isItemEqualToValue: Gr,
|
|
2472
2495
|
name: c,
|
|
2473
2496
|
disabled: u.disabled,
|
|
2474
2497
|
required: u.required,
|
|
2475
2498
|
highlightItemOnHover: !1,
|
|
2476
2499
|
children: t
|
|
2477
2500
|
}),
|
|
2478
|
-
children: /* @__PURE__ */ j(
|
|
2501
|
+
children: /* @__PURE__ */ j(Kr, {
|
|
2479
2502
|
noOptionsText: o,
|
|
2480
2503
|
loading: s,
|
|
2481
2504
|
isDisabled: (e) => {
|
|
@@ -2485,15 +2508,15 @@ function Kr({ options: e, value: t, defaultValue: n = [], onValueChange: r, min:
|
|
|
2485
2508
|
})
|
|
2486
2509
|
});
|
|
2487
2510
|
}
|
|
2488
|
-
function
|
|
2489
|
-
return e.multiple ? /* @__PURE__ */ j(
|
|
2511
|
+
function Yr(e) {
|
|
2512
|
+
return e.multiple ? /* @__PURE__ */ j(Jr, { ...e }) : /* @__PURE__ */ j(qr, { ...e });
|
|
2490
2513
|
}
|
|
2491
|
-
var
|
|
2514
|
+
var Xr = {
|
|
2492
2515
|
Checkbox: "_Checkbox_1vdzh_7",
|
|
2493
2516
|
Box: "_Box_1vdzh_13",
|
|
2494
2517
|
Tick: "_Tick_1vdzh_55"
|
|
2495
|
-
},
|
|
2496
|
-
className:
|
|
2518
|
+
}, Zr = /* @__PURE__ */ j("svg", {
|
|
2519
|
+
className: Xr.Tick,
|
|
2497
2520
|
viewBox: "0 0 24 24",
|
|
2498
2521
|
"aria-hidden": !0,
|
|
2499
2522
|
children: /* @__PURE__ */ j("path", {
|
|
@@ -2505,17 +2528,17 @@ var Jr = {
|
|
|
2505
2528
|
strokeLinejoin: "round",
|
|
2506
2529
|
pathLength: 1
|
|
2507
2530
|
})
|
|
2508
|
-
}),
|
|
2509
|
-
className:
|
|
2531
|
+
}), Qr = ({ checked: e }) => /* @__PURE__ */ j("span", {
|
|
2532
|
+
className: Xr.Box,
|
|
2510
2533
|
"data-checked": e ? "" : void 0,
|
|
2511
2534
|
"aria-hidden": !0,
|
|
2512
|
-
children:
|
|
2513
|
-
}),
|
|
2535
|
+
children: Zr
|
|
2536
|
+
}), $r = {
|
|
2514
2537
|
Row: "_Row_1uv3x_10",
|
|
2515
2538
|
Asterisk: "_Asterisk_1uv3x_31",
|
|
2516
2539
|
Text: "_Text_1uv3x_35"
|
|
2517
|
-
},
|
|
2518
|
-
function
|
|
2540
|
+
}, ei = (...e) => e.filter(Boolean).join(" ") || void 0;
|
|
2541
|
+
function ti({ label: e, helperText: t, error: n = !1, checked: r, defaultChecked: i, onCheckedChange: a, name: o, value: s, disabled: c = !1, required: l = !1, id: u, onBlur: d, onFocus: p, "aria-label": m, "aria-labelledby": h, "aria-describedby": g, className: _, style: v, ref: y }) {
|
|
2519
2542
|
let b = f(), x = e != null, S = t != null, C = !x && !S, w = /* @__PURE__ */ j(se.Root, {
|
|
2520
2543
|
nativeButton: !0,
|
|
2521
2544
|
render: /* @__PURE__ */ j("button", { type: "button" }),
|
|
@@ -2532,23 +2555,23 @@ function $r({ label: e, helperText: t, error: n = !1, checked: r, defaultChecked
|
|
|
2532
2555
|
onFocus: p,
|
|
2533
2556
|
"aria-label": m,
|
|
2534
2557
|
"aria-labelledby": h,
|
|
2535
|
-
"aria-describedby":
|
|
2558
|
+
"aria-describedby": ei(S && b, g),
|
|
2536
2559
|
"aria-invalid": n ? !0 : void 0,
|
|
2537
|
-
className: C ?
|
|
2560
|
+
className: C ? ei(Xr.Box, _) : Xr.Box,
|
|
2538
2561
|
style: C ? v : void 0,
|
|
2539
|
-
children:
|
|
2562
|
+
children: Zr
|
|
2540
2563
|
});
|
|
2541
2564
|
return C ? w : /* @__PURE__ */ M("div", {
|
|
2542
|
-
className:
|
|
2565
|
+
className: ei(Xr.Checkbox, _),
|
|
2543
2566
|
style: v,
|
|
2544
2567
|
children: [x ? /* @__PURE__ */ M("label", {
|
|
2545
|
-
className:
|
|
2568
|
+
className: $r.Row,
|
|
2546
2569
|
"data-invalid": n ? "" : void 0,
|
|
2547
2570
|
children: [w, /* @__PURE__ */ M("span", {
|
|
2548
|
-
className:
|
|
2549
|
-
children: [e, l && /* @__PURE__ */ j(
|
|
2571
|
+
className: $r.Text,
|
|
2572
|
+
children: [e, l && /* @__PURE__ */ j(Lr, { className: $r.Asterisk })]
|
|
2550
2573
|
})]
|
|
2551
|
-
}) : w, S && /* @__PURE__ */ j(
|
|
2574
|
+
}) : w, S && /* @__PURE__ */ j(Rr, {
|
|
2552
2575
|
id: b,
|
|
2553
2576
|
error: n,
|
|
2554
2577
|
children: t
|
|
@@ -2563,7 +2586,7 @@ var X = () => ({ valid: !1 }), Z = (e) => ({
|
|
|
2563
2586
|
});
|
|
2564
2587
|
//#endregion
|
|
2565
2588
|
//#region src/validation/national-id.ts
|
|
2566
|
-
function
|
|
2589
|
+
function ni(e) {
|
|
2567
2590
|
let t = 0, n = e.length % 2 == 0;
|
|
2568
2591
|
for (let r of e) {
|
|
2569
2592
|
let e = Number(r);
|
|
@@ -2571,14 +2594,14 @@ function ei(e) {
|
|
|
2571
2594
|
}
|
|
2572
2595
|
return t % 10 == 0;
|
|
2573
2596
|
}
|
|
2574
|
-
function
|
|
2597
|
+
function ri(e) {
|
|
2575
2598
|
let t = e.replace(/\D/g, "");
|
|
2576
2599
|
if (t.length === 12 && (t = t.slice(2)), t.length !== 10) return !1;
|
|
2577
2600
|
let n = Number(t.slice(2, 4)), r = Number(t.slice(4, 6));
|
|
2578
|
-
return n < 1 || n > 12 || r < 1 || r > 31 ? !1 :
|
|
2601
|
+
return n < 1 || n > 12 || r < 1 || r > 31 ? !1 : ni(t);
|
|
2579
2602
|
}
|
|
2580
|
-
var
|
|
2581
|
-
function
|
|
2603
|
+
var ii = "0123456789ABCDEFHJKLMNPRSTUVWXY";
|
|
2604
|
+
function ai(e) {
|
|
2582
2605
|
let t = e.replace(/\s/g, "").toUpperCase();
|
|
2583
2606
|
if (!/^\d{6}[+\-A]\d{3}[0-9A-Y]$/.test(t)) return !1;
|
|
2584
2607
|
let n = Number(t.slice(0, 2)), r = Number(t.slice(2, 4)), i = Number(t.slice(4, 6)), a = t[6], o = a === "+" ? 1800 : a === "-" ? 1900 : a === "A" ? 2e3 : null;
|
|
@@ -2586,9 +2609,9 @@ function ri(e) {
|
|
|
2586
2609
|
let s = o + i, c = new Date(s, r - 1, n);
|
|
2587
2610
|
if (c.getFullYear() !== s || c.getMonth() !== r - 1 || c.getDate() !== n) return !1;
|
|
2588
2611
|
let l = Number(`${t.slice(0, 6)}${t.slice(7, 10)}`);
|
|
2589
|
-
return t[10] ===
|
|
2612
|
+
return t[10] === ii[l % 31];
|
|
2590
2613
|
}
|
|
2591
|
-
var
|
|
2614
|
+
var oi = [
|
|
2592
2615
|
3,
|
|
2593
2616
|
7,
|
|
2594
2617
|
6,
|
|
@@ -2598,7 +2621,7 @@ var ii = [
|
|
|
2598
2621
|
4,
|
|
2599
2622
|
5,
|
|
2600
2623
|
2
|
|
2601
|
-
],
|
|
2624
|
+
], si = [
|
|
2602
2625
|
5,
|
|
2603
2626
|
4,
|
|
2604
2627
|
3,
|
|
@@ -2610,64 +2633,64 @@ var ii = [
|
|
|
2610
2633
|
3,
|
|
2611
2634
|
2
|
|
2612
2635
|
];
|
|
2613
|
-
function
|
|
2636
|
+
function ci(e, t) {
|
|
2614
2637
|
let n = t.reduce((t, n, r) => t + n * e[r], 0) % 11;
|
|
2615
2638
|
return n === 0 ? 0 : 11 - n;
|
|
2616
2639
|
}
|
|
2617
|
-
function
|
|
2640
|
+
function li(e) {
|
|
2618
2641
|
let t = e.replace(/\D/g, "");
|
|
2619
2642
|
if (t.length !== 11) return !1;
|
|
2620
2643
|
let n = t.split("").map(Number), r = Number(t.slice(0, 2)), i = Number(t.slice(2, 4)), a = r > 40 ? r - 40 : r, o = i > 40 ? i - 40 : i;
|
|
2621
2644
|
if (o < 1 || o > 12 || a < 1 || a > 31) return !1;
|
|
2622
|
-
let s =
|
|
2645
|
+
let s = ci(n.slice(0, 9), oi);
|
|
2623
2646
|
if (s === 11 || s !== n[9]) return !1;
|
|
2624
|
-
let c =
|
|
2647
|
+
let c = ci(n.slice(0, 10), si);
|
|
2625
2648
|
return c !== 11 && c === n[10];
|
|
2626
2649
|
}
|
|
2627
|
-
var
|
|
2650
|
+
var ui = "TRWAGMYFPDXBNJZSQVHLCKE", di = {
|
|
2628
2651
|
X: "0",
|
|
2629
2652
|
Y: "1",
|
|
2630
2653
|
Z: "2"
|
|
2631
2654
|
};
|
|
2632
|
-
function
|
|
2655
|
+
function fi(e) {
|
|
2633
2656
|
let t = e.replace(/[\s-]/g, "").toUpperCase();
|
|
2634
2657
|
if (!/^[XYZ]?\d{7,8}[A-Z]$/.test(t)) return !1;
|
|
2635
2658
|
let n = t.slice(-1), r = t.slice(0, -1), i = r[0];
|
|
2636
|
-
return i in
|
|
2659
|
+
return i in di && (r = di[i] + r.slice(1)), r.length === 8 && ui[Number(r) % 23] === n;
|
|
2637
2660
|
}
|
|
2638
|
-
var
|
|
2639
|
-
SE:
|
|
2640
|
-
FI:
|
|
2641
|
-
NO:
|
|
2642
|
-
ES:
|
|
2661
|
+
var pi = {
|
|
2662
|
+
SE: ri,
|
|
2663
|
+
FI: ai,
|
|
2664
|
+
NO: li,
|
|
2665
|
+
ES: fi
|
|
2643
2666
|
};
|
|
2644
|
-
function
|
|
2645
|
-
return
|
|
2667
|
+
function mi(e, t) {
|
|
2668
|
+
return pi[e](t);
|
|
2646
2669
|
}
|
|
2647
|
-
function
|
|
2648
|
-
return
|
|
2670
|
+
function hi(e, t) {
|
|
2671
|
+
return mi(e, t) ? Z(t.replace(/[\s-]/g, "").toUpperCase()) : X();
|
|
2649
2672
|
}
|
|
2650
|
-
var
|
|
2673
|
+
var gi = {
|
|
2651
2674
|
SE: 12,
|
|
2652
2675
|
FI: 11,
|
|
2653
2676
|
NO: 11,
|
|
2654
2677
|
ES: 9
|
|
2655
|
-
},
|
|
2678
|
+
}, _i = /[‐-―−]/g, vi = {
|
|
2656
2679
|
SE: (e) => e.replace(/\D/g, ""),
|
|
2657
|
-
FI: (e) => e.replace(
|
|
2680
|
+
FI: (e) => e.replace(_i, "-").toUpperCase().replace(/[^0-9A-Z+-]/g, ""),
|
|
2658
2681
|
NO: (e) => e.replace(/\D/g, ""),
|
|
2659
2682
|
ES: (e) => e.toUpperCase().replace(/[^0-9A-Z]/g, "")
|
|
2660
2683
|
};
|
|
2661
|
-
function
|
|
2662
|
-
return
|
|
2684
|
+
function yi(e, t) {
|
|
2685
|
+
return vi[e](t);
|
|
2663
2686
|
}
|
|
2664
|
-
function
|
|
2665
|
-
let r =
|
|
2666
|
-
return r !== "" && r === i &&
|
|
2687
|
+
function bi(e, t, n) {
|
|
2688
|
+
let r = yi(e, t ?? ""), i = yi(e, n ?? "");
|
|
2689
|
+
return r !== "" && r === i && mi(e, r);
|
|
2667
2690
|
}
|
|
2668
2691
|
//#endregion
|
|
2669
2692
|
//#region src/validation/mobile-patterns.ts
|
|
2670
|
-
var
|
|
2693
|
+
var xi = {
|
|
2671
2694
|
SE: "7[023689]\\d{7}",
|
|
2672
2695
|
FI: "4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",
|
|
2673
2696
|
NO: "(?:4[015-9]|9\\d)\\d{6}",
|
|
@@ -2675,53 +2698,53 @@ var yi = {
|
|
|
2675
2698
|
};
|
|
2676
2699
|
//#endregion
|
|
2677
2700
|
//#region src/validation/phone.ts
|
|
2678
|
-
function
|
|
2701
|
+
function Si(e, t) {
|
|
2679
2702
|
let n = t.replace(/\s/g, "");
|
|
2680
2703
|
if (n === "") return X();
|
|
2681
2704
|
let r = fe(n, e);
|
|
2682
2705
|
return !r || !r.isValid() ? X() : Z(r.number);
|
|
2683
2706
|
}
|
|
2684
|
-
function
|
|
2685
|
-
return
|
|
2707
|
+
function Ci(e, t) {
|
|
2708
|
+
return Si(e, t).valid;
|
|
2686
2709
|
}
|
|
2687
|
-
var
|
|
2688
|
-
function
|
|
2689
|
-
return Object.prototype.hasOwnProperty.call(
|
|
2710
|
+
var wi = Object.fromEntries(Object.entries(xi).map(([e, t]) => [e, RegExp(`^(?:${t})$`)]));
|
|
2711
|
+
function Ti(e) {
|
|
2712
|
+
return Object.prototype.hasOwnProperty.call(xi, e);
|
|
2690
2713
|
}
|
|
2691
|
-
function
|
|
2714
|
+
function Ei(e, t) {
|
|
2692
2715
|
let n = t.replace(/\s/g, "");
|
|
2693
2716
|
if (n === "") return X();
|
|
2694
2717
|
let r = fe(n, e);
|
|
2695
|
-
return !r || !r.isValid() || r.country !== e || !
|
|
2718
|
+
return !r || !r.isValid() || r.country !== e || !wi[e].test(r.nationalNumber) ? X() : Z(r.number);
|
|
2696
2719
|
}
|
|
2697
|
-
function
|
|
2698
|
-
let r =
|
|
2720
|
+
function Di(e, t, n) {
|
|
2721
|
+
let r = Si(e, t ?? ""), i = Si(e, n ?? "");
|
|
2699
2722
|
return r.valid && i.valid && r.normalized === i.normalized;
|
|
2700
2723
|
}
|
|
2701
2724
|
//#endregion
|
|
2702
2725
|
//#region src/validation/modulo-97.ts
|
|
2703
|
-
var
|
|
2726
|
+
var Oi = (e) => {
|
|
2704
2727
|
let t = 0;
|
|
2705
2728
|
for (let n of e) t = (t * 10 + Number(n)) % 97;
|
|
2706
2729
|
return t;
|
|
2707
|
-
},
|
|
2730
|
+
}, ki = (e) => e.replace(/[A-Z]/g, (e) => String(e.charCodeAt(0) - 55)), Ai = {
|
|
2708
2731
|
SE: 24,
|
|
2709
2732
|
FI: 18,
|
|
2710
2733
|
NO: 15,
|
|
2711
2734
|
ES: 24
|
|
2712
2735
|
};
|
|
2713
|
-
function
|
|
2736
|
+
function ji(e) {
|
|
2714
2737
|
return e.replace(/[\s-]/g, "").toUpperCase();
|
|
2715
2738
|
}
|
|
2716
|
-
function
|
|
2717
|
-
let n =
|
|
2739
|
+
function Mi(e, t) {
|
|
2740
|
+
let n = ji(e);
|
|
2718
2741
|
if (!/^[A-Z]{2}\d{2}[A-Z0-9]+$/.test(n)) return !1;
|
|
2719
2742
|
let r = n.slice(0, 2);
|
|
2720
2743
|
if (t && r !== t) return !1;
|
|
2721
|
-
let i =
|
|
2722
|
-
return i && n.length !== i ? !1 :
|
|
2744
|
+
let i = Ai[r];
|
|
2745
|
+
return i && n.length !== i ? !1 : Oi(ki(n.slice(4) + n.slice(0, 4))) === 1;
|
|
2723
2746
|
}
|
|
2724
|
-
var
|
|
2747
|
+
var Ni = [
|
|
2725
2748
|
5,
|
|
2726
2749
|
4,
|
|
2727
2750
|
3,
|
|
@@ -2733,33 +2756,33 @@ var ji = [
|
|
|
2733
2756
|
3,
|
|
2734
2757
|
2
|
|
2735
2758
|
];
|
|
2736
|
-
function
|
|
2759
|
+
function Pi(e) {
|
|
2737
2760
|
let t = e.replace(/\D/g, "");
|
|
2738
2761
|
if (t.length !== 11) return !1;
|
|
2739
|
-
let n = t.split("").map(Number), r =
|
|
2762
|
+
let n = t.split("").map(Number), r = Ni.reduce((e, t, r) => e + t * n[r], 0) % 11, i = r === 0 ? 0 : 11 - r;
|
|
2740
2763
|
return i < 10 && i === n[10];
|
|
2741
2764
|
}
|
|
2742
|
-
function
|
|
2765
|
+
function Fi(e) {
|
|
2743
2766
|
let t = e.replace(/\D/g, "");
|
|
2744
2767
|
return t.length >= 10 && t.length <= 15;
|
|
2745
2768
|
}
|
|
2746
|
-
function
|
|
2747
|
-
let n =
|
|
2769
|
+
function Ii(e, t) {
|
|
2770
|
+
let n = ji(t), r = /^[A-Z]{2}\d{2}/.test(n);
|
|
2748
2771
|
switch (e) {
|
|
2749
2772
|
case "FI":
|
|
2750
|
-
case "ES": return
|
|
2751
|
-
case "NO": return r ?
|
|
2752
|
-
case "SE": return r ?
|
|
2773
|
+
case "ES": return Mi(n, e) ? Z(n) : X();
|
|
2774
|
+
case "NO": return r ? Mi(n, "NO") ? Z(n) : X() : Pi(n) ? Z(n.replace(/\D/g, "")) : X();
|
|
2775
|
+
case "SE": return r ? Mi(n, "SE") ? Z(n) : X() : Fi(n) ? Z(n.replace(/\D/g, "")) : X();
|
|
2753
2776
|
}
|
|
2754
2777
|
}
|
|
2755
|
-
function
|
|
2756
|
-
return
|
|
2778
|
+
function Li(e, t) {
|
|
2779
|
+
return Ii(e, t).valid;
|
|
2757
2780
|
}
|
|
2758
2781
|
//#endregion
|
|
2759
2782
|
//#region src/validation/reference-number.ts
|
|
2760
|
-
var
|
|
2761
|
-
function
|
|
2762
|
-
let t =
|
|
2783
|
+
var Ri = (e) => e.replace(/\s/g, "").toUpperCase();
|
|
2784
|
+
function zi(e) {
|
|
2785
|
+
let t = Ri(e);
|
|
2763
2786
|
if (!/^[1-9]\d{3,19}$/.test(t)) return !1;
|
|
2764
2787
|
let n = t.slice(0, -1), r = Number(t.at(-1)), i = [
|
|
2765
2788
|
7,
|
|
@@ -2769,20 +2792,20 @@ function Li(e) {
|
|
|
2769
2792
|
for (let e = n.length - 1, t = 0; e >= 0; e--) a += Number(n[e]) * i[t % i.length], t++;
|
|
2770
2793
|
return (10 - a % 10) % 10 === r;
|
|
2771
2794
|
}
|
|
2772
|
-
function
|
|
2773
|
-
let t =
|
|
2774
|
-
return /^RF\d{2}[1-9]\d{3,19}$/.test(t) ?
|
|
2795
|
+
function Bi(e) {
|
|
2796
|
+
let t = Ri(e);
|
|
2797
|
+
return /^RF\d{2}[1-9]\d{3,19}$/.test(t) ? Oi(`${t.slice(4)}2715${t.slice(2, 4)}`) === 1 : !1;
|
|
2775
2798
|
}
|
|
2776
|
-
function
|
|
2777
|
-
let t =
|
|
2778
|
-
return
|
|
2799
|
+
function Vi(e) {
|
|
2800
|
+
let t = Ri(e);
|
|
2801
|
+
return zi(t) || Bi(t) ? Z(t) : X();
|
|
2779
2802
|
}
|
|
2780
|
-
function
|
|
2781
|
-
return
|
|
2803
|
+
function Hi(e) {
|
|
2804
|
+
return Vi(e).valid;
|
|
2782
2805
|
}
|
|
2783
2806
|
//#endregion
|
|
2784
2807
|
//#region src/validation/email.ts
|
|
2785
|
-
var
|
|
2808
|
+
var Ui = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/, Wi = [
|
|
2786
2809
|
"gmail.com",
|
|
2787
2810
|
"outlook.com",
|
|
2788
2811
|
"hotmail.com",
|
|
@@ -2809,26 +2832,26 @@ var Vi = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-z
|
|
|
2809
2832
|
"yahoo.se",
|
|
2810
2833
|
"yahoo.no"
|
|
2811
2834
|
];
|
|
2812
|
-
function
|
|
2835
|
+
function Gi(e) {
|
|
2813
2836
|
let t = e.trim();
|
|
2814
|
-
if (!
|
|
2837
|
+
if (!Ui.test(t)) return X();
|
|
2815
2838
|
let n = t.lastIndexOf("@");
|
|
2816
2839
|
return n >= 0 && t.slice(n + 1).toLowerCase().endsWith(".con") ? X() : Z(t.toLowerCase());
|
|
2817
2840
|
}
|
|
2818
|
-
function
|
|
2819
|
-
return
|
|
2841
|
+
function Ki(e) {
|
|
2842
|
+
return Gi(e).valid;
|
|
2820
2843
|
}
|
|
2821
|
-
function
|
|
2844
|
+
function qi(e, t = Wi) {
|
|
2822
2845
|
let n = e.indexOf("@");
|
|
2823
2846
|
if (n < 1) return [];
|
|
2824
2847
|
let r = e.slice(0, n), i = e.slice(n + 1).toLowerCase();
|
|
2825
2848
|
return i.includes(".") && t.includes(i) ? [] : t.filter((e) => e.startsWith(i)).map((e) => `${r}@${e}`);
|
|
2826
2849
|
}
|
|
2827
|
-
function
|
|
2850
|
+
function Ji(e, t) {
|
|
2828
2851
|
let n = (e ?? "").trim().toLowerCase(), r = (t ?? "").trim().toLowerCase();
|
|
2829
2852
|
return n !== "" && n === r;
|
|
2830
2853
|
}
|
|
2831
|
-
var
|
|
2854
|
+
var Yi = [
|
|
2832
2855
|
"mail.com",
|
|
2833
2856
|
"email.com",
|
|
2834
2857
|
"ymail.com",
|
|
@@ -2851,8 +2874,8 @@ var qi = [
|
|
|
2851
2874
|
"telenor.com",
|
|
2852
2875
|
"spray.se",
|
|
2853
2876
|
"bredband.net"
|
|
2854
|
-
],
|
|
2855
|
-
function
|
|
2877
|
+
], Xi = /* @__PURE__ */ "com,net,org,se,no,fi,es,nu,dk,is,ax,fo,gl,de,eu,uk,co.uk,fr,it,nl,be,at,ch,pl,ee,lv,lt,pt,ie,us,ca,info,biz,edu,gov,io,me,app,dev".split(",");
|
|
2878
|
+
function Zi(e, t) {
|
|
2856
2879
|
let n = Array.from({ length: e.length + 1 }, (e, n) => Array.from({ length: t.length + 1 }, (e, t) => n === 0 ? t : t === 0 ? n : 0));
|
|
2857
2880
|
for (let r = 1; r <= e.length; r++) for (let i = 1; i <= t.length; i++) {
|
|
2858
2881
|
let a = e[r - 1] === t[i - 1] ? 0 : 1;
|
|
@@ -2860,10 +2883,10 @@ function Yi(e, t) {
|
|
|
2860
2883
|
}
|
|
2861
2884
|
return n[e.length][t.length];
|
|
2862
2885
|
}
|
|
2863
|
-
function
|
|
2886
|
+
function Qi(e, t, n) {
|
|
2864
2887
|
let r, i = n + 1, a = !1;
|
|
2865
2888
|
for (let n of t) {
|
|
2866
|
-
let t =
|
|
2889
|
+
let t = Zi(e, n);
|
|
2867
2890
|
t < i ? [r, i, a] = [
|
|
2868
2891
|
n,
|
|
2869
2892
|
t,
|
|
@@ -2872,33 +2895,33 @@ function Xi(e, t, n) {
|
|
|
2872
2895
|
}
|
|
2873
2896
|
return a ? void 0 : r;
|
|
2874
2897
|
}
|
|
2875
|
-
function
|
|
2898
|
+
function $i(e, t = Wi) {
|
|
2876
2899
|
let n = e.trim(), r = n.lastIndexOf("@");
|
|
2877
2900
|
if (r < 1) return;
|
|
2878
2901
|
let i = n.slice(0, r), a = n.slice(r + 1).toLowerCase().replace(/\.+$/, "");
|
|
2879
2902
|
if (!/^[a-z0-9-]+(\.[a-z0-9-]+)*$/.test(a)) return;
|
|
2880
|
-
let o = [...t, ...
|
|
2903
|
+
let o = [...t, ...Yi];
|
|
2881
2904
|
if (o.includes(a)) return;
|
|
2882
|
-
let s = (e) => e && e !== a && !
|
|
2905
|
+
let s = (e) => e && e !== a && !Yi.includes(e) ? `${i}@${e}` : void 0, c = (e) => e.slice(0, e.indexOf(".")), l = (e) => e.slice(e.indexOf(".") + 1), u = a.indexOf(".");
|
|
2883
2906
|
if (u < 0) {
|
|
2884
|
-
let e =
|
|
2907
|
+
let e = Qi(a, [...new Set(t.map(c))], a.length >= 6 ? 2 : 1);
|
|
2885
2908
|
return s(t.find((t) => c(t) === e));
|
|
2886
2909
|
}
|
|
2887
2910
|
let d = a.slice(0, u), f = a.slice(u + 1);
|
|
2888
|
-
if (
|
|
2889
|
-
let p =
|
|
2911
|
+
if (Xi.includes(f)) return s(Qi(a, o.filter((e) => l(e) === f), 1));
|
|
2912
|
+
let p = Qi(a, o, a.length >= 9 ? 2 : 1);
|
|
2890
2913
|
if (p) return s(p);
|
|
2891
|
-
let m =
|
|
2914
|
+
let m = Qi(f, Xi, 1);
|
|
2892
2915
|
return m ? s(`${d}.${m}`) : void 0;
|
|
2893
2916
|
}
|
|
2894
|
-
var
|
|
2917
|
+
var ea = {
|
|
2895
2918
|
Link: "_Link_1osbi_7",
|
|
2896
2919
|
Text: "_Text_1osbi_87",
|
|
2897
2920
|
Arrow: "_Arrow_1osbi_91"
|
|
2898
2921
|
};
|
|
2899
2922
|
//#endregion
|
|
2900
2923
|
//#region src/components/typography/link/link.tsx
|
|
2901
|
-
function
|
|
2924
|
+
function ta({ color: e = "secondary", arrow: t = !1, render: n, ref: r, className: i, ...a }) {
|
|
2902
2925
|
return N({
|
|
2903
2926
|
render: n,
|
|
2904
2927
|
ref: r,
|
|
@@ -2907,36 +2930,36 @@ function $i({ color: e = "secondary", arrow: t = !1, render: n, ref: r, classNam
|
|
|
2907
2930
|
...a,
|
|
2908
2931
|
"data-color": e,
|
|
2909
2932
|
"data-arrow": t || void 0,
|
|
2910
|
-
className: G(
|
|
2933
|
+
className: G(ea.Link, i)({}),
|
|
2911
2934
|
...t && { children: /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("span", {
|
|
2912
|
-
className:
|
|
2935
|
+
className: ea.Text,
|
|
2913
2936
|
children: a.children
|
|
2914
2937
|
}), /* @__PURE__ */ j(x, {
|
|
2915
2938
|
"aria-hidden": !0,
|
|
2916
|
-
className:
|
|
2939
|
+
className: ea.Arrow
|
|
2917
2940
|
})] }) }
|
|
2918
2941
|
}
|
|
2919
2942
|
});
|
|
2920
2943
|
}
|
|
2921
|
-
var
|
|
2944
|
+
var na = {
|
|
2922
2945
|
Root: "_Root_1vl2r_9",
|
|
2923
2946
|
Item: "_Item_1vl2r_19",
|
|
2924
2947
|
Marker: "_Marker_1vl2r_28",
|
|
2925
2948
|
Content: "_Content_1vl2r_60"
|
|
2926
|
-
},
|
|
2927
|
-
Item: () =>
|
|
2928
|
-
Root: () =>
|
|
2929
|
-
}),
|
|
2930
|
-
let e = u(
|
|
2949
|
+
}, ra = /* @__PURE__ */ Se({
|
|
2950
|
+
Item: () => ca,
|
|
2951
|
+
Root: () => sa
|
|
2952
|
+
}), ia = s(null), aa = () => {
|
|
2953
|
+
let e = u(ia);
|
|
2931
2954
|
if (!e) throw Error("List parts must be used within <List.Root>");
|
|
2932
2955
|
return e;
|
|
2933
|
-
},
|
|
2956
|
+
}, oa = (...e) => e.filter(Boolean).join(" "), sa = ({ variant: e = "ul", gap: t = 1.5, className: n, style: r, children: i, ...a }) => {
|
|
2934
2957
|
let o = e;
|
|
2935
|
-
return /* @__PURE__ */ j(
|
|
2958
|
+
return /* @__PURE__ */ j(ia.Provider, {
|
|
2936
2959
|
value: { variant: e },
|
|
2937
2960
|
children: /* @__PURE__ */ j(o, {
|
|
2938
2961
|
...a,
|
|
2939
|
-
className:
|
|
2962
|
+
className: oa(na.Root, n),
|
|
2940
2963
|
style: {
|
|
2941
2964
|
"--_gap": t,
|
|
2942
2965
|
...r
|
|
@@ -2944,53 +2967,53 @@ var ea = {
|
|
|
2944
2967
|
children: i
|
|
2945
2968
|
})
|
|
2946
2969
|
});
|
|
2947
|
-
},
|
|
2948
|
-
let { variant: o } =
|
|
2970
|
+
}, ca = ({ icon: e, gap: t = 1.5, className: n, style: r, children: i, ...a }) => {
|
|
2971
|
+
let { variant: o } = aa(), s = e ? "icon" : o === "ol" ? "number" : "dot";
|
|
2949
2972
|
return /* @__PURE__ */ M("li", {
|
|
2950
2973
|
...a,
|
|
2951
|
-
className:
|
|
2974
|
+
className: oa(na.Item, n),
|
|
2952
2975
|
style: {
|
|
2953
2976
|
"--_gap": e ? t : 0,
|
|
2954
2977
|
...r
|
|
2955
2978
|
},
|
|
2956
2979
|
children: [/* @__PURE__ */ j("span", {
|
|
2957
|
-
className:
|
|
2980
|
+
className: na.Marker,
|
|
2958
2981
|
"data-marker": s,
|
|
2959
2982
|
children: e
|
|
2960
2983
|
}), /* @__PURE__ */ j("div", {
|
|
2961
|
-
className:
|
|
2962
|
-
children: typeof i == "string" ? /* @__PURE__ */ j(
|
|
2984
|
+
className: na.Content,
|
|
2985
|
+
children: typeof i == "string" ? /* @__PURE__ */ j(Tt, { children: i }) : i
|
|
2963
2986
|
})]
|
|
2964
2987
|
});
|
|
2965
|
-
},
|
|
2988
|
+
}, la = { Suggestion: "_Suggestion_1nncz_7" };
|
|
2966
2989
|
//#endregion
|
|
2967
2990
|
//#region src/components/form/email-input/email-input.tsx
|
|
2968
|
-
function
|
|
2969
|
-
let d =
|
|
2991
|
+
function ua({ value: e, defaultValue: t = "", onValueChange: n, domains: r = Wi, maxSuggestions: i = 6, autoComplete: a = "email", suggestCorrection: o = !0, name: s, onBlur: c, ref: l, ...u }) {
|
|
2992
|
+
let d = da(), f = e !== void 0, [p, _] = g(t), v = f ? e : p, y = h(null), b = (e) => {
|
|
2970
2993
|
if (y.current = e, typeof l == "function") return l(e);
|
|
2971
2994
|
l && (l.current = e);
|
|
2972
2995
|
}, [x, S] = g(), C = o && !u.disabled ? x : void 0, w = (e) => {
|
|
2973
2996
|
f || _(e), S(void 0), n?.(e);
|
|
2974
2997
|
}, T = () => {
|
|
2975
2998
|
x != null && (w(x), y.current?.focus());
|
|
2976
|
-
}, [E, ee] = g(!1), D = m(() =>
|
|
2999
|
+
}, [E, ee] = g(!1), D = m(() => qi(v, r).slice(0, i), [
|
|
2977
3000
|
v,
|
|
2978
3001
|
r,
|
|
2979
3002
|
i
|
|
2980
3003
|
]);
|
|
2981
|
-
return /* @__PURE__ */ j(
|
|
3004
|
+
return /* @__PURE__ */ j(Wr, {
|
|
2982
3005
|
...u,
|
|
2983
3006
|
ref: b,
|
|
2984
3007
|
onBlur: (e) => {
|
|
2985
|
-
o && S(
|
|
3008
|
+
o && S($i(v, r)), c?.(e);
|
|
2986
3009
|
},
|
|
2987
3010
|
afterHelperText: o && /* @__PURE__ */ j("div", {
|
|
2988
3011
|
role: "status",
|
|
2989
|
-
className:
|
|
3012
|
+
className: la.Suggestion,
|
|
2990
3013
|
children: C != null && /* @__PURE__ */ M("p", { children: [
|
|
2991
3014
|
d.didYouMean,
|
|
2992
3015
|
" ",
|
|
2993
|
-
/* @__PURE__ */ j(
|
|
3016
|
+
/* @__PURE__ */ j(ta, {
|
|
2994
3017
|
render: /* @__PURE__ */ j("button", { type: "button" }),
|
|
2995
3018
|
color: "primary",
|
|
2996
3019
|
"aria-label": `${d.use} ${C}`,
|
|
@@ -3033,7 +3056,7 @@ function ca({ value: e, defaultValue: t = "", onValueChange: n, domains: r = Hi,
|
|
|
3033
3056
|
})
|
|
3034
3057
|
});
|
|
3035
3058
|
}
|
|
3036
|
-
var
|
|
3059
|
+
var da = W({
|
|
3037
3060
|
didYouMean: {
|
|
3038
3061
|
no: "Mente du",
|
|
3039
3062
|
se: "Menade du",
|
|
@@ -3046,8 +3069,8 @@ var la = W({
|
|
|
3046
3069
|
fi: "Käytä",
|
|
3047
3070
|
es: "Usar"
|
|
3048
3071
|
}
|
|
3049
|
-
}),
|
|
3050
|
-
function
|
|
3072
|
+
}), fa = (...e) => e.filter(Boolean).join(" ") || void 0, pa = typeof document > "u" ? d : p;
|
|
3073
|
+
function ma(e, t) {
|
|
3051
3074
|
let n = h(null), r = () => {
|
|
3052
3075
|
let e = n.current;
|
|
3053
3076
|
if (!e) return;
|
|
@@ -3055,7 +3078,7 @@ function fa(e, t) {
|
|
|
3055
3078
|
let r = getComputedStyle(e), i = t == null ? Infinity : parseFloat(r.lineHeight) * t + parseFloat(r.paddingTop) + parseFloat(r.paddingBottom), a = e.scrollHeight;
|
|
3056
3079
|
e.style.height = `${Math.min(a, i)}px`, e.style.overflowY = a > i ? "auto" : "hidden";
|
|
3057
3080
|
};
|
|
3058
|
-
return
|
|
3081
|
+
return pa(() => {
|
|
3059
3082
|
e && r();
|
|
3060
3083
|
}), d(() => {
|
|
3061
3084
|
let t = n.current;
|
|
@@ -3067,16 +3090,16 @@ function fa(e, t) {
|
|
|
3067
3090
|
};
|
|
3068
3091
|
}, [e, t]), n;
|
|
3069
3092
|
}
|
|
3070
|
-
function
|
|
3071
|
-
let T = f(), E = y ?? T, ee = f(), D = f(), O = e != null,
|
|
3093
|
+
function ha({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r, error: i = !1, warning: a, value: o, defaultValue: s, onValueChange: c, startAdornment: l, endAdornment: u, multiline: d = !1, rows: p, minRows: m, maxRows: h, className: g, style: _, ref: v, id: y, disabled: b = !1, required: x = !1, placeholder: S, "aria-describedby": C, ...w }) {
|
|
3094
|
+
let T = f(), E = y ?? T, ee = f(), D = f(), O = e != null, te = O && t === "outside", k = zr(r, a, i), ne = k.content != null, re = ma(d && p == null, h), A = (e) => {
|
|
3072
3095
|
if (re.current = e, typeof v == "function") return v(e);
|
|
3073
3096
|
v && (v.current = e);
|
|
3074
3097
|
};
|
|
3075
3098
|
return /* @__PURE__ */ M("div", {
|
|
3076
|
-
className:
|
|
3099
|
+
className: fa(J.Field, g),
|
|
3077
3100
|
style: _,
|
|
3078
3101
|
children: [
|
|
3079
|
-
|
|
3102
|
+
te && /* @__PURE__ */ j(Br, {
|
|
3080
3103
|
id: ee,
|
|
3081
3104
|
htmlFor: E,
|
|
3082
3105
|
tooltip: n,
|
|
@@ -3089,8 +3112,8 @@ function pa({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r,
|
|
|
3089
3112
|
className: J.Box,
|
|
3090
3113
|
"data-invalid": i ? "" : void 0,
|
|
3091
3114
|
"data-disabled": b ? "" : void 0,
|
|
3092
|
-
"data-has-label": O && !
|
|
3093
|
-
"data-label-outside":
|
|
3115
|
+
"data-has-label": O && !te ? "" : void 0,
|
|
3116
|
+
"data-label-outside": te ? "" : void 0,
|
|
3094
3117
|
onClick: (e) => {
|
|
3095
3118
|
e.target.closest("button, a, input, textarea, select, [tabindex]") || e.currentTarget.querySelector("input, textarea")?.focus();
|
|
3096
3119
|
},
|
|
@@ -3102,10 +3125,10 @@ function pa({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r,
|
|
|
3102
3125
|
}),
|
|
3103
3126
|
/* @__PURE__ */ M("div", {
|
|
3104
3127
|
className: J.Inner,
|
|
3105
|
-
children: [O && !
|
|
3128
|
+
children: [O && !te && /* @__PURE__ */ M("label", {
|
|
3106
3129
|
htmlFor: E,
|
|
3107
3130
|
className: J.Label,
|
|
3108
|
-
children: [e, x && /* @__PURE__ */ j(
|
|
3131
|
+
children: [e, x && /* @__PURE__ */ j(Lr, {})]
|
|
3109
3132
|
}), /* @__PURE__ */ j(pe, {
|
|
3110
3133
|
...w,
|
|
3111
3134
|
ref: A,
|
|
@@ -3117,7 +3140,7 @@ function pa({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r,
|
|
|
3117
3140
|
required: x,
|
|
3118
3141
|
placeholder: S || " ",
|
|
3119
3142
|
"aria-invalid": i,
|
|
3120
|
-
"aria-describedby":
|
|
3143
|
+
"aria-describedby": fa(ne && D, C),
|
|
3121
3144
|
className: J.Control,
|
|
3122
3145
|
render: d ? /* @__PURE__ */ j("textarea", { rows: p ?? m ?? 1 }) : void 0
|
|
3123
3146
|
})]
|
|
@@ -3129,11 +3152,11 @@ function pa({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r,
|
|
|
3129
3152
|
})
|
|
3130
3153
|
]
|
|
3131
3154
|
}),
|
|
3132
|
-
ne && /* @__PURE__ */ j(
|
|
3155
|
+
ne && /* @__PURE__ */ j(Rr, {
|
|
3133
3156
|
id: D,
|
|
3134
3157
|
error: i,
|
|
3135
|
-
warning:
|
|
3136
|
-
children:
|
|
3158
|
+
warning: k.warning,
|
|
3159
|
+
children: k.content
|
|
3137
3160
|
})
|
|
3138
3161
|
]
|
|
3139
3162
|
});
|
|
@@ -3153,19 +3176,19 @@ var Q = {
|
|
|
3153
3176
|
Chips: "_Chips_5ah93_216",
|
|
3154
3177
|
ChipRow: "_ChipRow_5ah93_222",
|
|
3155
3178
|
ChipMeasure: "_ChipMeasure_5ah93_233"
|
|
3156
|
-
},
|
|
3157
|
-
function
|
|
3179
|
+
}, ga = (...e) => e.filter(Boolean).join(" ") || void 0;
|
|
3180
|
+
function _a({ side: e, onSideChange: t, ...n }) {
|
|
3158
3181
|
return d(() => {
|
|
3159
3182
|
t(e === "top" ? "top" : "bottom");
|
|
3160
3183
|
}, [e, t]), /* @__PURE__ */ j("div", { ...n });
|
|
3161
3184
|
}
|
|
3162
|
-
function
|
|
3163
|
-
let ne = f(), re = p ?? ne, A = f(), ie = f(), N = e != null, P = N && C === "sm", F = t != null, [ae, I] = g(!1), L = c ?? ae, [R, oe] = g("bottom"), z = h(null), B = h(null), V =
|
|
3185
|
+
function va({ label: e, helperText: t, error: n = !1, required: r = !1, disabled: i = !1, placeholder: a, startAdornment: o, endAdornment: s, open: c, onOpenChange: l, onBlur: u, name: d, id: p, "aria-label": m, "aria-labelledby": _, "aria-describedby": v, className: y, style: x, ref: S, size: C = "md", multiple: w, value: T, onValueChange: E, filled: ee, display: D, displayHidden: O = !1, valueText: te, children: k }) {
|
|
3186
|
+
let ne = f(), re = p ?? ne, A = f(), ie = f(), N = e != null, P = N && C === "sm", F = t != null, [ae, I] = g(!1), L = c ?? ae, [R, oe] = g("bottom"), z = h(null), B = h(null), V = Hr(u, [z, B]);
|
|
3164
3187
|
return /* @__PURE__ */ M("div", {
|
|
3165
|
-
className:
|
|
3188
|
+
className: ga(J.Field, Q.Field, y),
|
|
3166
3189
|
style: x,
|
|
3167
3190
|
children: [
|
|
3168
|
-
P && /* @__PURE__ */ j(
|
|
3191
|
+
P && /* @__PURE__ */ j(Br, {
|
|
3169
3192
|
id: A,
|
|
3170
3193
|
required: r,
|
|
3171
3194
|
error: n,
|
|
@@ -3187,7 +3210,7 @@ function ga({ label: e, helperText: t, error: n = !1, required: r = !1, disabled
|
|
|
3187
3210
|
highlightItemOnHover: !1,
|
|
3188
3211
|
children: [/* @__PURE__ */ M("div", {
|
|
3189
3212
|
ref: z,
|
|
3190
|
-
className:
|
|
3213
|
+
className: ga(J.Box, Q.Box),
|
|
3191
3214
|
"data-invalid": n ? "" : void 0,
|
|
3192
3215
|
"data-disabled": i ? "" : void 0,
|
|
3193
3216
|
"data-size": C === "md" ? void 0 : C,
|
|
@@ -3204,13 +3227,13 @@ function ga({ label: e, helperText: t, error: n = !1, required: r = !1, disabled
|
|
|
3204
3227
|
render: /* @__PURE__ */ j("div", {}),
|
|
3205
3228
|
"aria-label": m,
|
|
3206
3229
|
"aria-labelledby": _ ?? (N ? A : void 0),
|
|
3207
|
-
"aria-describedby":
|
|
3230
|
+
"aria-describedby": ga(F && ie, v),
|
|
3208
3231
|
"aria-invalid": n || void 0,
|
|
3209
3232
|
"aria-required": r || void 0,
|
|
3210
3233
|
className: Q.Trigger,
|
|
3211
3234
|
children: /* @__PURE__ */ j("span", {
|
|
3212
3235
|
className: Q.SrOnly,
|
|
3213
|
-
children:
|
|
3236
|
+
children: te
|
|
3214
3237
|
})
|
|
3215
3238
|
}),
|
|
3216
3239
|
o != null && /* @__PURE__ */ j("span", {
|
|
@@ -3219,11 +3242,11 @@ function ga({ label: e, helperText: t, error: n = !1, required: r = !1, disabled
|
|
|
3219
3242
|
children: o
|
|
3220
3243
|
}),
|
|
3221
3244
|
/* @__PURE__ */ M("div", {
|
|
3222
|
-
className:
|
|
3245
|
+
className: ga(J.Inner, Q.Inner),
|
|
3223
3246
|
children: [N && !P && /* @__PURE__ */ M("span", {
|
|
3224
3247
|
id: A,
|
|
3225
3248
|
className: Q.Label,
|
|
3226
|
-
children: [e, r && /* @__PURE__ */ j(
|
|
3249
|
+
children: [e, r && /* @__PURE__ */ j(Lr, {})]
|
|
3227
3250
|
}), /* @__PURE__ */ j("div", {
|
|
3228
3251
|
className: Q.Display,
|
|
3229
3252
|
"aria-hidden": O || void 0,
|
|
@@ -3249,7 +3272,7 @@ function ga({ label: e, helperText: t, error: n = !1, required: r = !1, disabled
|
|
|
3249
3272
|
sideOffset: 0,
|
|
3250
3273
|
alignItemWithTrigger: !1,
|
|
3251
3274
|
className: Y.Positioner,
|
|
3252
|
-
render: (e, t) => /* @__PURE__ */ j(
|
|
3275
|
+
render: (e, t) => /* @__PURE__ */ j(_a, {
|
|
3253
3276
|
...e,
|
|
3254
3277
|
side: t.side,
|
|
3255
3278
|
onSideChange: oe
|
|
@@ -3260,12 +3283,12 @@ function ga({ label: e, helperText: t, error: n = !1, required: r = !1, disabled
|
|
|
3260
3283
|
onBlur: V,
|
|
3261
3284
|
children: /* @__PURE__ */ j(me.List, {
|
|
3262
3285
|
className: Y.List,
|
|
3263
|
-
children:
|
|
3286
|
+
children: k
|
|
3264
3287
|
})
|
|
3265
3288
|
})
|
|
3266
3289
|
}) })]
|
|
3267
3290
|
}),
|
|
3268
|
-
F && /* @__PURE__ */ j(
|
|
3291
|
+
F && /* @__PURE__ */ j(Rr, {
|
|
3269
3292
|
id: ie,
|
|
3270
3293
|
error: n,
|
|
3271
3294
|
children: t
|
|
@@ -3273,7 +3296,7 @@ function ga({ label: e, helperText: t, error: n = !1, required: r = !1, disabled
|
|
|
3273
3296
|
]
|
|
3274
3297
|
});
|
|
3275
3298
|
}
|
|
3276
|
-
function
|
|
3299
|
+
function ya({ option: e, disabled: t, children: n }) {
|
|
3277
3300
|
return /* @__PURE__ */ M(me.Item, {
|
|
3278
3301
|
value: e.value,
|
|
3279
3302
|
label: e.label,
|
|
@@ -3281,7 +3304,7 @@ function _a({ option: e, disabled: t, children: n }) {
|
|
|
3281
3304
|
className: Y.Item,
|
|
3282
3305
|
children: [
|
|
3283
3306
|
n,
|
|
3284
|
-
e.icon != null && /* @__PURE__ */ j(
|
|
3307
|
+
e.icon != null && /* @__PURE__ */ j(ba, { children: e.icon }),
|
|
3285
3308
|
/* @__PURE__ */ j(me.ItemText, {
|
|
3286
3309
|
className: Y.ItemText,
|
|
3287
3310
|
children: e.label
|
|
@@ -3289,7 +3312,7 @@ function _a({ option: e, disabled: t, children: n }) {
|
|
|
3289
3312
|
]
|
|
3290
3313
|
});
|
|
3291
3314
|
}
|
|
3292
|
-
function
|
|
3315
|
+
function ba({ children: e }) {
|
|
3293
3316
|
return /* @__PURE__ */ j("span", {
|
|
3294
3317
|
"aria-hidden": !0,
|
|
3295
3318
|
className: Q.OptionIcon,
|
|
@@ -3298,25 +3321,25 @@ function va({ children: e }) {
|
|
|
3298
3321
|
}
|
|
3299
3322
|
//#endregion
|
|
3300
3323
|
//#region src/components/form/multi-select/multi-select.tsx
|
|
3301
|
-
var
|
|
3302
|
-
function
|
|
3324
|
+
var xa = 4, Sa = typeof document > "u" ? d : p;
|
|
3325
|
+
function Ca({ items: e, canDelete: t, onDelete: n }) {
|
|
3303
3326
|
let r = h(null), i = h(null), [a, o] = g(e.length), s = l(() => {
|
|
3304
3327
|
let t = r.current, n = i.current;
|
|
3305
3328
|
if (!t || !n) return;
|
|
3306
|
-
let a = t.clientWidth, s = Array.from(n.children), c = s[s.length - 1], l = s.slice(0, -1), u = c ? c.offsetWidth +
|
|
3307
|
-
if (l.reduce((e, t, n) => e + t.offsetWidth + (n > 0 ?
|
|
3329
|
+
let a = t.clientWidth, s = Array.from(n.children), c = s[s.length - 1], l = s.slice(0, -1), u = c ? c.offsetWidth + xa : 0;
|
|
3330
|
+
if (l.reduce((e, t, n) => e + t.offsetWidth + (n > 0 ? xa : 0), 0) <= a) {
|
|
3308
3331
|
o(e.length);
|
|
3309
3332
|
return;
|
|
3310
3333
|
}
|
|
3311
3334
|
let d = 0, f = 0;
|
|
3312
3335
|
for (let e = 0; e < l.length; e++) {
|
|
3313
|
-
let t = l[e].offsetWidth + (e > 0 ?
|
|
3336
|
+
let t = l[e].offsetWidth + (e > 0 ? xa : 0);
|
|
3314
3337
|
if (d + t + u <= a) d += t, f += 1;
|
|
3315
3338
|
else break;
|
|
3316
3339
|
}
|
|
3317
3340
|
o(f);
|
|
3318
3341
|
}, [e.length]);
|
|
3319
|
-
|
|
3342
|
+
Sa(() => {
|
|
3320
3343
|
s();
|
|
3321
3344
|
}, [
|
|
3322
3345
|
s,
|
|
@@ -3328,7 +3351,7 @@ function xa({ items: e, canDelete: t, onDelete: n }) {
|
|
|
3328
3351
|
let t = new ResizeObserver(() => s());
|
|
3329
3352
|
return t.observe(e), () => t.disconnect();
|
|
3330
3353
|
}, [s]);
|
|
3331
|
-
let c = Math.max(e.length - a, 0), u = (e) => /* @__PURE__ */ j(
|
|
3354
|
+
let c = Math.max(e.length - a, 0), u = (e) => /* @__PURE__ */ j(Pt, {
|
|
3332
3355
|
size: "sm",
|
|
3333
3356
|
label: e.label,
|
|
3334
3357
|
style: {
|
|
@@ -3336,7 +3359,7 @@ function xa({ items: e, canDelete: t, onDelete: n }) {
|
|
|
3336
3359
|
maxWidth: "100%"
|
|
3337
3360
|
},
|
|
3338
3361
|
onDelete: t ? () => n(e.value) : void 0
|
|
3339
|
-
}, e.value), f = (e) => /* @__PURE__ */ j(
|
|
3362
|
+
}, e.value), f = (e) => /* @__PURE__ */ j(Pt, {
|
|
3340
3363
|
color: "neutral",
|
|
3341
3364
|
size: "sm",
|
|
3342
3365
|
label: `+${e}`,
|
|
@@ -3356,7 +3379,7 @@ function xa({ items: e, canDelete: t, onDelete: n }) {
|
|
|
3356
3379
|
})]
|
|
3357
3380
|
});
|
|
3358
3381
|
}
|
|
3359
|
-
function
|
|
3382
|
+
function wa({ options: e, value: t, defaultValue: n = [], onValueChange: r, renderValue: i, min: a = 1, max: o, disabled: s = !1, ref: c, ...l }) {
|
|
3360
3383
|
let u = t !== void 0, [d, f] = g(n), p = u ? t : d, m = h(null), _ = (e) => {
|
|
3361
3384
|
if (m.current = e, typeof c == "function") return c(e);
|
|
3362
3385
|
c && (c.current = e);
|
|
@@ -3370,7 +3393,7 @@ function Sa({ options: e, value: t, defaultValue: n = [], onValueChange: r, rend
|
|
|
3370
3393
|
value: t,
|
|
3371
3394
|
label: t
|
|
3372
3395
|
});
|
|
3373
|
-
return /* @__PURE__ */ j(
|
|
3396
|
+
return /* @__PURE__ */ j(va, {
|
|
3374
3397
|
...l,
|
|
3375
3398
|
ref: _,
|
|
3376
3399
|
disabled: s,
|
|
@@ -3378,7 +3401,7 @@ function Sa({ options: e, value: t, defaultValue: n = [], onValueChange: r, rend
|
|
|
3378
3401
|
value: p,
|
|
3379
3402
|
onValueChange: (e) => x(e ?? []),
|
|
3380
3403
|
filled: p.length > 0,
|
|
3381
|
-
display: i ? i(p) : /* @__PURE__ */ j(
|
|
3404
|
+
display: i ? i(p) : /* @__PURE__ */ j(Ca, {
|
|
3382
3405
|
items: w,
|
|
3383
3406
|
canDelete: C,
|
|
3384
3407
|
onDelete: S
|
|
@@ -3386,17 +3409,17 @@ function Sa({ options: e, value: t, defaultValue: n = [], onValueChange: r, rend
|
|
|
3386
3409
|
valueText: w.map((e) => e.label).join(", "),
|
|
3387
3410
|
children: e.map((e) => {
|
|
3388
3411
|
let t = p.includes(e.value);
|
|
3389
|
-
return /* @__PURE__ */ j(
|
|
3412
|
+
return /* @__PURE__ */ j(ya, {
|
|
3390
3413
|
option: e,
|
|
3391
3414
|
disabled: v && !t || y && t || e.disabled,
|
|
3392
|
-
children: /* @__PURE__ */ j(
|
|
3415
|
+
children: /* @__PURE__ */ j(Qr, { checked: t })
|
|
3393
3416
|
}, e.value);
|
|
3394
3417
|
})
|
|
3395
3418
|
});
|
|
3396
3419
|
}
|
|
3397
3420
|
//#endregion
|
|
3398
3421
|
//#region src/hooks/country/countries.ts
|
|
3399
|
-
var
|
|
3422
|
+
var Ta = {
|
|
3400
3423
|
NO: {
|
|
3401
3424
|
country: "NO",
|
|
3402
3425
|
locale: "nb-NO",
|
|
@@ -3417,17 +3440,17 @@ var Ca = {
|
|
|
3417
3440
|
locale: "es-ES",
|
|
3418
3441
|
currency: "EUR"
|
|
3419
3442
|
}
|
|
3420
|
-
},
|
|
3443
|
+
}, Ea = {
|
|
3421
3444
|
no: "NO",
|
|
3422
3445
|
se: "SE",
|
|
3423
3446
|
fi: "FI",
|
|
3424
3447
|
es: "ES"
|
|
3425
3448
|
};
|
|
3426
|
-
function
|
|
3449
|
+
function Da(e) {
|
|
3427
3450
|
return typeof e == "object" && !!e && !c(e) && "type" in e && (e.type === "years" || e.type === "currency");
|
|
3428
3451
|
}
|
|
3429
|
-
function
|
|
3430
|
-
let { locale: r, currency: i } =
|
|
3452
|
+
function Oa(e, t, n) {
|
|
3453
|
+
let { locale: r, currency: i } = Ta[Ea[t]], a = e.type === "years" ? {
|
|
3431
3454
|
style: "unit",
|
|
3432
3455
|
unit: "year",
|
|
3433
3456
|
unitDisplay: "long"
|
|
@@ -3438,17 +3461,17 @@ function Ea(e, t, n) {
|
|
|
3438
3461
|
};
|
|
3439
3462
|
return new Intl.NumberFormat(r, a).formatToParts(e.type === "years" ? n ?? 0 : 0).find((t) => t.type === (e.type === "years" ? "unit" : "currency"))?.value ?? "";
|
|
3440
3463
|
}
|
|
3441
|
-
var
|
|
3464
|
+
var ka = {
|
|
3442
3465
|
Unit: "_Unit_1g5fk_11",
|
|
3443
3466
|
Box: "_Box_1g5fk_25",
|
|
3444
3467
|
Steppers: "_Steppers_1g5fk_29",
|
|
3445
3468
|
Stepper: "_Stepper_1g5fk_29"
|
|
3446
|
-
},
|
|
3447
|
-
function
|
|
3448
|
-
let S = He(), [C, w] = g(y ?? null), T = v === void 0 ? C : v, E =
|
|
3469
|
+
}, Aa = (...e) => e.filter(Boolean).join(" ") || void 0;
|
|
3470
|
+
function ja({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r, error: i = !1, warning: a, required: o = !1, disabled: s = !1, id: c, placeholder: l, startIcon: u, unit: d, showSteppers: p = !0, className: m, style: h, ref: _, value: v, defaultValue: y, onValueChange: b, ...x }) {
|
|
3471
|
+
let S = He(), [C, w] = g(y ?? null), T = v === void 0 ? C : v, E = Da(d) ? Oa(d, S, T) : d, D = f(), O = c ?? D, k = f(), ne = f(), re = f(), A = Ma(), ie = e != null, N = ie && t === "outside", P = zr(r, a, i), F = P.content != null, ae = Aa(F && ne, E != null && E !== "" && re), I = (e) => {
|
|
3449
3472
|
e.target.closest("button, a, input, [tabindex]") || e.currentTarget.querySelector("input")?.focus();
|
|
3450
3473
|
};
|
|
3451
|
-
return /* @__PURE__ */ M(
|
|
3474
|
+
return /* @__PURE__ */ M(oe.Root, {
|
|
3452
3475
|
...x,
|
|
3453
3476
|
value: v,
|
|
3454
3477
|
defaultValue: y,
|
|
@@ -3458,11 +3481,11 @@ function ka({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r,
|
|
|
3458
3481
|
id: O,
|
|
3459
3482
|
disabled: s,
|
|
3460
3483
|
required: o,
|
|
3461
|
-
className:
|
|
3484
|
+
className: Aa(J.Field, m),
|
|
3462
3485
|
style: h,
|
|
3463
3486
|
children: [
|
|
3464
|
-
N && /* @__PURE__ */ j(
|
|
3465
|
-
id:
|
|
3487
|
+
N && /* @__PURE__ */ j(Br, {
|
|
3488
|
+
id: k,
|
|
3466
3489
|
htmlFor: O,
|
|
3467
3490
|
tooltip: n,
|
|
3468
3491
|
required: o,
|
|
@@ -3471,7 +3494,7 @@ function ka({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r,
|
|
|
3471
3494
|
children: e
|
|
3472
3495
|
}),
|
|
3473
3496
|
/* @__PURE__ */ M("div", {
|
|
3474
|
-
className:
|
|
3497
|
+
className: Aa(J.Box, ka.Box),
|
|
3475
3498
|
"data-invalid": i ? "" : void 0,
|
|
3476
3499
|
"data-disabled": s ? "" : void 0,
|
|
3477
3500
|
"data-has-label": ie && !N ? "" : void 0,
|
|
@@ -3489,8 +3512,8 @@ function ka({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r,
|
|
|
3489
3512
|
children: [ie && !N && /* @__PURE__ */ M("label", {
|
|
3490
3513
|
htmlFor: O,
|
|
3491
3514
|
className: J.Label,
|
|
3492
|
-
children: [e, o && /* @__PURE__ */ j(
|
|
3493
|
-
}), /* @__PURE__ */ j(
|
|
3515
|
+
children: [e, o && /* @__PURE__ */ j(Lr, {})]
|
|
3516
|
+
}), /* @__PURE__ */ j(oe.Input, {
|
|
3494
3517
|
ref: _,
|
|
3495
3518
|
placeholder: l || " ",
|
|
3496
3519
|
"aria-invalid": i || void 0,
|
|
@@ -3500,22 +3523,22 @@ function ka({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r,
|
|
|
3500
3523
|
}),
|
|
3501
3524
|
E != null && E !== "" && /* @__PURE__ */ j("span", {
|
|
3502
3525
|
id: re,
|
|
3503
|
-
className:
|
|
3526
|
+
className: ka.Unit,
|
|
3504
3527
|
children: E
|
|
3505
3528
|
}),
|
|
3506
3529
|
p && /* @__PURE__ */ M("span", {
|
|
3507
|
-
className:
|
|
3508
|
-
children: [/* @__PURE__ */ j(
|
|
3530
|
+
className: ka.Steppers,
|
|
3531
|
+
children: [/* @__PURE__ */ j(oe.Decrement, {
|
|
3509
3532
|
"aria-label": A.decrease,
|
|
3510
|
-
className:
|
|
3533
|
+
className: ka.Stepper,
|
|
3511
3534
|
children: /* @__PURE__ */ j(ee, {
|
|
3512
3535
|
size: 16,
|
|
3513
3536
|
"aria-hidden": !0
|
|
3514
3537
|
})
|
|
3515
|
-
}), /* @__PURE__ */ j(
|
|
3538
|
+
}), /* @__PURE__ */ j(oe.Increment, {
|
|
3516
3539
|
"aria-label": A.increase,
|
|
3517
|
-
className:
|
|
3518
|
-
children: /* @__PURE__ */ j(
|
|
3540
|
+
className: ka.Stepper,
|
|
3541
|
+
children: /* @__PURE__ */ j(te, {
|
|
3519
3542
|
size: 16,
|
|
3520
3543
|
"aria-hidden": !0
|
|
3521
3544
|
})
|
|
@@ -3523,7 +3546,7 @@ function ka({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r,
|
|
|
3523
3546
|
})
|
|
3524
3547
|
]
|
|
3525
3548
|
}),
|
|
3526
|
-
F && /* @__PURE__ */ j(
|
|
3549
|
+
F && /* @__PURE__ */ j(Rr, {
|
|
3527
3550
|
id: ne,
|
|
3528
3551
|
error: i,
|
|
3529
3552
|
warning: P.warning,
|
|
@@ -3532,7 +3555,7 @@ function ka({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r,
|
|
|
3532
3555
|
]
|
|
3533
3556
|
});
|
|
3534
3557
|
}
|
|
3535
|
-
var
|
|
3558
|
+
var Ma = W({
|
|
3536
3559
|
increase: {
|
|
3537
3560
|
no: "Øk",
|
|
3538
3561
|
se: "Öka",
|
|
@@ -3545,23 +3568,23 @@ var Aa = W({
|
|
|
3545
3568
|
fi: "Vähennä",
|
|
3546
3569
|
es: "Disminuir"
|
|
3547
3570
|
}
|
|
3548
|
-
}),
|
|
3571
|
+
}), Na = [
|
|
3549
3572
|
"FI",
|
|
3550
3573
|
"SE",
|
|
3551
3574
|
"NO",
|
|
3552
3575
|
"ES"
|
|
3553
3576
|
];
|
|
3554
|
-
function
|
|
3577
|
+
function Pa(e) {
|
|
3555
3578
|
return e.toUpperCase().replace(/[A-Z]/g, (e) => String.fromCodePoint(127397 + e.charCodeAt(0)));
|
|
3556
3579
|
}
|
|
3557
|
-
function
|
|
3580
|
+
function Fa(e) {
|
|
3558
3581
|
let t = new Intl.DisplayNames([e], { type: "region" }), n = ue(), r = (e, n) => ({
|
|
3559
3582
|
code: e,
|
|
3560
3583
|
dialCode: de(e),
|
|
3561
3584
|
name: t.of(e) ?? e,
|
|
3562
|
-
flag:
|
|
3585
|
+
flag: Pa(e),
|
|
3563
3586
|
pinned: n
|
|
3564
|
-
}), i =
|
|
3587
|
+
}), i = Na.filter((e) => n.includes(e)).map((e) => r(e, !0)), a = n.filter((e) => !Na.includes(e)).map((e) => r(e, !1)).sort((t, n) => t.name.localeCompare(n.name, e));
|
|
3565
3588
|
return [...i, ...a];
|
|
3566
3589
|
}
|
|
3567
3590
|
var $ = {
|
|
@@ -3582,18 +3605,18 @@ var $ = {
|
|
|
3582
3605
|
CountryName: "_CountryName_gcp2o_199",
|
|
3583
3606
|
CountryDial: "_CountryDial_gcp2o_212",
|
|
3584
3607
|
Separator: "_Separator_gcp2o_221"
|
|
3585
|
-
},
|
|
3608
|
+
}, Ia = {
|
|
3586
3609
|
no: "NO",
|
|
3587
3610
|
se: "SE",
|
|
3588
3611
|
fi: "FI",
|
|
3589
3612
|
es: "ES"
|
|
3590
|
-
},
|
|
3613
|
+
}, La = {
|
|
3591
3614
|
no: "nb-NO",
|
|
3592
3615
|
se: "sv-SE",
|
|
3593
3616
|
fi: "fi-FI",
|
|
3594
3617
|
es: "es-ES"
|
|
3595
3618
|
};
|
|
3596
|
-
function
|
|
3619
|
+
function Ra(e, t) {
|
|
3597
3620
|
if (e === "NO") {
|
|
3598
3621
|
let e = t.replace(/\D/g, "").slice(0, 8);
|
|
3599
3622
|
return [
|
|
@@ -3604,25 +3627,25 @@ function Ia(e, t) {
|
|
|
3604
3627
|
}
|
|
3605
3628
|
return new le(e).input(t);
|
|
3606
3629
|
}
|
|
3607
|
-
function
|
|
3608
|
-
if (e === "NO") return
|
|
3630
|
+
function za(e, t) {
|
|
3631
|
+
if (e === "NO") return Ra(e, t);
|
|
3609
3632
|
let n = de(e);
|
|
3610
3633
|
return new le(e).input(`+${n}${t}`).replace(`+${n}`, "").trim();
|
|
3611
3634
|
}
|
|
3612
|
-
function
|
|
3613
|
-
return /^\s*[+0]/.test(t) ? new le(e).input(t) :
|
|
3635
|
+
function Ba(e, t) {
|
|
3636
|
+
return /^\s*[+0]/.test(t) ? new le(e).input(t) : za(e, t.replace(/\D/g, ""));
|
|
3614
3637
|
}
|
|
3615
|
-
function
|
|
3638
|
+
function Va(e, t) {
|
|
3616
3639
|
let n = fe(t.replace(/[\s-]/g, ""), e);
|
|
3617
|
-
return n && n.countryCallingCode === de(e) ?
|
|
3640
|
+
return n && n.countryCallingCode === de(e) ? za(e, n.nationalNumber) : Ba(e, t);
|
|
3618
3641
|
}
|
|
3619
|
-
function
|
|
3642
|
+
function Ha(e, t, { sameCountry: n, mobileOnly: r }) {
|
|
3620
3643
|
let i = () => {
|
|
3621
3644
|
let n = fe(t.replace(/\s/g, ""), e);
|
|
3622
3645
|
return n?.isValid() && n.country === e ? Z(n.number) : X();
|
|
3623
3646
|
};
|
|
3624
|
-
if (r &&
|
|
3625
|
-
let n =
|
|
3647
|
+
if (r && Ti(e)) {
|
|
3648
|
+
let n = Ei(e, t);
|
|
3626
3649
|
return n.valid ? {
|
|
3627
3650
|
...n,
|
|
3628
3651
|
landline: !1
|
|
@@ -3632,11 +3655,11 @@ function Ba(e, t, { sameCountry: n, mobileOnly: r }) {
|
|
|
3632
3655
|
};
|
|
3633
3656
|
}
|
|
3634
3657
|
return {
|
|
3635
|
-
...n ? i() :
|
|
3658
|
+
...n ? i() : Si(e, t),
|
|
3636
3659
|
landline: !1
|
|
3637
3660
|
};
|
|
3638
3661
|
}
|
|
3639
|
-
var
|
|
3662
|
+
var Ua = W({
|
|
3640
3663
|
countryLabel: {
|
|
3641
3664
|
no: "Landskode",
|
|
3642
3665
|
se: "Landskod",
|
|
@@ -3667,8 +3690,8 @@ var Va = W({
|
|
|
3667
3690
|
fi: "Anna matkapuhelinnumero",
|
|
3668
3691
|
es: "Introduce un número de móvil"
|
|
3669
3692
|
}
|
|
3670
|
-
}),
|
|
3671
|
-
function
|
|
3693
|
+
}), Wa = (...e) => e.filter(Boolean).join(" ") || void 0, Ga = (e) => `${e.name} ${e.code} ${e.dialCode} +${e.dialCode}`, Ka = (e, t) => e.code === t.code;
|
|
3694
|
+
function qa({ options: e, value: t, onChange: n, ariaLabel: r, searchLabel: i, noOptionsText: a, disabled: s, open: c, onOpenChange: l, anchorRef: u }) {
|
|
3672
3695
|
let { contains: d } = V.useFilter({ sensitivity: "base" }), [f, p] = g(""), [m, h] = g(!1), _ = e.find((e) => e.code === t) ?? null, v = e.filter((e) => e.pinned).length;
|
|
3673
3696
|
return /* @__PURE__ */ M(V.Root, {
|
|
3674
3697
|
items: e,
|
|
@@ -3680,10 +3703,10 @@ function Ga({ options: e, value: t, onChange: n, ariaLabel: r, searchLabel: i, n
|
|
|
3680
3703
|
onInputValueChange: p,
|
|
3681
3704
|
open: c,
|
|
3682
3705
|
onOpenChange: l,
|
|
3683
|
-
filter: (e, t) => d(
|
|
3706
|
+
filter: (e, t) => d(Ga(e), t),
|
|
3684
3707
|
itemToStringLabel: (e) => e.name,
|
|
3685
3708
|
itemToStringValue: (e) => e.code,
|
|
3686
|
-
isItemEqualToValue:
|
|
3709
|
+
isItemEqualToValue: Ka,
|
|
3687
3710
|
disabled: s,
|
|
3688
3711
|
highlightItemOnHover: !1,
|
|
3689
3712
|
children: [/* @__PURE__ */ M(V.Trigger, {
|
|
@@ -3715,7 +3738,7 @@ function Ga({ options: e, value: t, onChange: n, ariaLabel: r, searchLabel: i, n
|
|
|
3715
3738
|
children: [
|
|
3716
3739
|
/* @__PURE__ */ M("div", {
|
|
3717
3740
|
className: $.Search,
|
|
3718
|
-
children: [/* @__PURE__ */ j(
|
|
3741
|
+
children: [/* @__PURE__ */ j(k, { "aria-hidden": !0 }), /* @__PURE__ */ j(V.Input, {
|
|
3719
3742
|
className: $.SearchInput,
|
|
3720
3743
|
placeholder: i,
|
|
3721
3744
|
"aria-label": i
|
|
@@ -3726,13 +3749,13 @@ function Ga({ options: e, value: t, onChange: n, ariaLabel: r, searchLabel: i, n
|
|
|
3726
3749
|
children: a
|
|
3727
3750
|
}),
|
|
3728
3751
|
/* @__PURE__ */ j(V.List, {
|
|
3729
|
-
className:
|
|
3752
|
+
className: Wa(Y.List, $.List),
|
|
3730
3753
|
children: (e, t) => /* @__PURE__ */ M(o, { children: [f === "" && v > 0 && t === v && /* @__PURE__ */ j("div", {
|
|
3731
3754
|
role: "presentation",
|
|
3732
3755
|
className: $.Separator
|
|
3733
3756
|
}), /* @__PURE__ */ M(V.Item, {
|
|
3734
3757
|
value: e,
|
|
3735
|
-
className:
|
|
3758
|
+
className: Wa(Y.Item, $.Country),
|
|
3736
3759
|
children: [
|
|
3737
3760
|
/* @__PURE__ */ j("span", {
|
|
3738
3761
|
"aria-hidden": !0,
|
|
@@ -3755,19 +3778,19 @@ function Ga({ options: e, value: t, onChange: n, ariaLabel: r, searchLabel: i, n
|
|
|
3755
3778
|
}) })]
|
|
3756
3779
|
});
|
|
3757
3780
|
}
|
|
3758
|
-
function
|
|
3759
|
-
let T = He(), E =
|
|
3760
|
-
let e =
|
|
3781
|
+
function Ja({ label: e, helperText: t, error: n, required: r = !1, disabled: i = !1, id: a, country: o, defaultCountry: s, onCountryChange: c, value: l, defaultValue: u, onValueChange: d, onBlur: p, countries: _, mobileOnly: v = !1, validateOnBlur: y = !0, className: b, style: x, ref: S, "aria-describedby": C, ...w }) {
|
|
3782
|
+
let T = He(), E = Ua(), ee = f(), D = a ?? ee, O = f(), te = f(), k = h(null), [ne, re] = g(!1), A = _ != null && _.length > 0 ? _ : null, ie = A?.length === 1, N = A?.join(","), P = m(() => {
|
|
3783
|
+
let e = Fa(La[T]), t = N?.split(",");
|
|
3761
3784
|
return t ? e.filter((e) => t.includes(e.code)) : e;
|
|
3762
|
-
}, [T, N]), F = s ??
|
|
3785
|
+
}, [T, N]), F = s ?? Ia[T], [ae, I] = g(A && !A.includes(F) ? A[0] : F), L = o ?? ae, R = {
|
|
3763
3786
|
sameCountry: A != null,
|
|
3764
3787
|
mobileOnly: v
|
|
3765
|
-
}, [oe, z] = g(u ?? ""), B = l ?? oe, [V, se] = g(!1), ce =
|
|
3788
|
+
}, [oe, z] = g(u ?? ""), B = l ?? oe, [V, se] = g(!1), ce = Ha(L, B, R), le = {
|
|
3766
3789
|
country: L,
|
|
3767
3790
|
e164: ce.normalized,
|
|
3768
3791
|
isValid: ce.valid
|
|
3769
3792
|
}, ue = y && V && B.trim() !== "" && !le.isValid, de = n ?? ue, pe = t ?? (ue ? ce.landline ? E.notMobile : E.invalid : void 0), me = pe != null, he = (e, t) => {
|
|
3770
|
-
let n =
|
|
3793
|
+
let n = Ha(t, e, R);
|
|
3771
3794
|
d?.(e, {
|
|
3772
3795
|
country: t,
|
|
3773
3796
|
e164: n.normalized,
|
|
@@ -3780,28 +3803,28 @@ function Ka({ label: e, helperText: t, error: n, required: r = !1, disabled: i =
|
|
|
3780
3803
|
}, ve = (e) => {
|
|
3781
3804
|
let t = e.target.value;
|
|
3782
3805
|
if (!A) {
|
|
3783
|
-
ge(
|
|
3806
|
+
ge(Ra(L, t), L);
|
|
3784
3807
|
return;
|
|
3785
3808
|
}
|
|
3786
3809
|
if (t.length - B.length > 1) {
|
|
3787
3810
|
let e = fe(t.replace(/[\s-]/g, ""), L), n = e?.country && A.includes(e.country) ? e.country : L;
|
|
3788
|
-
ge(
|
|
3811
|
+
ge(Va(n, t), n);
|
|
3789
3812
|
return;
|
|
3790
3813
|
}
|
|
3791
|
-
ge(
|
|
3814
|
+
ge(Ba(L, t), L);
|
|
3792
3815
|
}, ye = (e) => {
|
|
3793
3816
|
if (se(!0), A) {
|
|
3794
|
-
let e =
|
|
3817
|
+
let e = Va(L, B);
|
|
3795
3818
|
e !== B && ge(e, L);
|
|
3796
3819
|
}
|
|
3797
3820
|
p?.(e);
|
|
3798
3821
|
}, be = ie ? P.find((e) => e.code === L) : void 0;
|
|
3799
3822
|
return /* @__PURE__ */ M("div", {
|
|
3800
|
-
className:
|
|
3823
|
+
className: Wa(J.Field, $.Field, b),
|
|
3801
3824
|
style: x,
|
|
3802
3825
|
children: [/* @__PURE__ */ M("div", {
|
|
3803
|
-
ref:
|
|
3804
|
-
className:
|
|
3826
|
+
ref: k,
|
|
3827
|
+
className: Wa(J.Box, $.Box),
|
|
3805
3828
|
"data-invalid": de ? "" : void 0,
|
|
3806
3829
|
"data-disabled": i ? "" : void 0,
|
|
3807
3830
|
"data-country-open": ne ? "" : void 0,
|
|
@@ -3816,11 +3839,11 @@ function Ka({ label: e, helperText: t, error: n, required: r = !1, disabled: i =
|
|
|
3816
3839
|
className: $.Flag,
|
|
3817
3840
|
children: be.flag
|
|
3818
3841
|
}), /* @__PURE__ */ M("span", {
|
|
3819
|
-
id:
|
|
3842
|
+
id: te,
|
|
3820
3843
|
className: $.Dial,
|
|
3821
3844
|
children: ["+", be.dialCode]
|
|
3822
3845
|
})]
|
|
3823
|
-
}) : /* @__PURE__ */ j(
|
|
3846
|
+
}) : /* @__PURE__ */ j(qa, {
|
|
3824
3847
|
options: P,
|
|
3825
3848
|
value: L,
|
|
3826
3849
|
onChange: _e,
|
|
@@ -3830,13 +3853,13 @@ function Ka({ label: e, helperText: t, error: n, required: r = !1, disabled: i =
|
|
|
3830
3853
|
disabled: i,
|
|
3831
3854
|
open: ne,
|
|
3832
3855
|
onOpenChange: re,
|
|
3833
|
-
anchorRef:
|
|
3856
|
+
anchorRef: k
|
|
3834
3857
|
}), /* @__PURE__ */ M("div", {
|
|
3835
|
-
className:
|
|
3858
|
+
className: Wa(J.Inner, $.Inner),
|
|
3836
3859
|
children: [e != null && /* @__PURE__ */ M("label", {
|
|
3837
3860
|
htmlFor: D,
|
|
3838
|
-
className:
|
|
3839
|
-
children: [e, r && /* @__PURE__ */ j(
|
|
3861
|
+
className: Wa(J.Label, $.Label),
|
|
3862
|
+
children: [e, r && /* @__PURE__ */ j(Lr, {})]
|
|
3840
3863
|
}), /* @__PURE__ */ j("input", {
|
|
3841
3864
|
inputMode: "tel",
|
|
3842
3865
|
autoComplete: "tel-national",
|
|
@@ -3850,42 +3873,42 @@ function Ka({ label: e, helperText: t, error: n, required: r = !1, disabled: i =
|
|
|
3850
3873
|
disabled: i,
|
|
3851
3874
|
required: r,
|
|
3852
3875
|
"aria-invalid": de,
|
|
3853
|
-
"aria-describedby":
|
|
3876
|
+
"aria-describedby": Wa(be && te, me && O, C),
|
|
3854
3877
|
className: J.Control
|
|
3855
3878
|
})]
|
|
3856
3879
|
})]
|
|
3857
|
-
}), me && /* @__PURE__ */ j(
|
|
3880
|
+
}), me && /* @__PURE__ */ j(Rr, {
|
|
3858
3881
|
id: O,
|
|
3859
3882
|
error: de,
|
|
3860
3883
|
children: pe
|
|
3861
3884
|
})]
|
|
3862
3885
|
});
|
|
3863
3886
|
}
|
|
3864
|
-
var
|
|
3887
|
+
var Ya = {
|
|
3865
3888
|
Options: "_Options_hhfuh_8",
|
|
3866
3889
|
Circle: "_Circle_hhfuh_19",
|
|
3867
3890
|
Dot: "_Dot_hhfuh_67"
|
|
3868
|
-
},
|
|
3891
|
+
}, Xa = Ya.Circle, Za = Ya.Dot, Qa = ({ checked: e = !1, size: t = "md", className: n }) => /* @__PURE__ */ j("span", {
|
|
3869
3892
|
"aria-hidden": !0,
|
|
3870
|
-
className: [
|
|
3893
|
+
className: [Ya.Circle, n].filter(Boolean).join(" "),
|
|
3871
3894
|
"data-size": t,
|
|
3872
3895
|
"data-checked": e ? "" : void 0,
|
|
3873
|
-
children: /* @__PURE__ */ j("span", { className:
|
|
3874
|
-
}),
|
|
3875
|
-
let t = u(
|
|
3896
|
+
children: /* @__PURE__ */ j("span", { className: Ya.Dot })
|
|
3897
|
+
}), $a = { Group: "_Group_2xgbn_8" }, eo = s(null), to = (e) => {
|
|
3898
|
+
let t = u(eo);
|
|
3876
3899
|
if (!t) throw Error(`<${e}> must be rendered inside a <RadioGroup.Root> or <RadioCard.Group>.`);
|
|
3877
3900
|
return t;
|
|
3878
|
-
},
|
|
3879
|
-
function
|
|
3880
|
-
let E = f(), ee = f(), D = e != null, O = n != null,
|
|
3901
|
+
}, no = (...e) => e.filter(Boolean).join(" ") || void 0;
|
|
3902
|
+
function ro({ label: e, tooltip: t, helperText: n, error: r = !1, value: i, defaultValue: a, onValueChange: o, name: s, disabled: c = !1, required: l = !1, onBlur: u, id: d, "aria-label": p, "aria-labelledby": h, "aria-describedby": g, className: _, style: v, ref: y, size: b, cardSize: x, optionsClassName: S, optionsStyle: C, optionsDataColumns: w, children: T }) {
|
|
3903
|
+
let E = f(), ee = f(), D = e != null, O = n != null, te = m(() => ({
|
|
3881
3904
|
size: b,
|
|
3882
3905
|
cardSize: x
|
|
3883
3906
|
}), [b, x]);
|
|
3884
3907
|
return /* @__PURE__ */ M("div", {
|
|
3885
|
-
className:
|
|
3908
|
+
className: no($a.Group, _),
|
|
3886
3909
|
style: v,
|
|
3887
3910
|
children: [
|
|
3888
|
-
D && /* @__PURE__ */ j(
|
|
3911
|
+
D && /* @__PURE__ */ j(Br, {
|
|
3889
3912
|
id: E,
|
|
3890
3913
|
tooltip: t,
|
|
3891
3914
|
required: l,
|
|
@@ -3893,8 +3916,8 @@ function to({ label: e, tooltip: t, helperText: n, error: r = !1, value: i, defa
|
|
|
3893
3916
|
disabled: c,
|
|
3894
3917
|
children: e
|
|
3895
3918
|
}),
|
|
3896
|
-
/* @__PURE__ */ j(
|
|
3897
|
-
value:
|
|
3919
|
+
/* @__PURE__ */ j(eo.Provider, {
|
|
3920
|
+
value: te,
|
|
3898
3921
|
children: /* @__PURE__ */ j(ge, {
|
|
3899
3922
|
id: d,
|
|
3900
3923
|
inputRef: y,
|
|
@@ -3906,7 +3929,7 @@ function to({ label: e, tooltip: t, helperText: n, error: r = !1, value: i, defa
|
|
|
3906
3929
|
required: l,
|
|
3907
3930
|
"aria-label": p,
|
|
3908
3931
|
"aria-labelledby": D ? E : h,
|
|
3909
|
-
"aria-describedby":
|
|
3932
|
+
"aria-describedby": no(O && ee, g),
|
|
3910
3933
|
"aria-invalid": r ? !0 : void 0,
|
|
3911
3934
|
onBlur: (e) => {
|
|
3912
3935
|
e.currentTarget.contains(e.relatedTarget) || u?.(e);
|
|
@@ -3917,7 +3940,7 @@ function to({ label: e, tooltip: t, helperText: n, error: r = !1, value: i, defa
|
|
|
3917
3940
|
children: T
|
|
3918
3941
|
})
|
|
3919
3942
|
}),
|
|
3920
|
-
O && /* @__PURE__ */ j(
|
|
3943
|
+
O && /* @__PURE__ */ j(Rr, {
|
|
3921
3944
|
id: ee,
|
|
3922
3945
|
error: r,
|
|
3923
3946
|
children: n
|
|
@@ -3927,12 +3950,12 @@ function to({ label: e, tooltip: t, helperText: n, error: r = !1, value: i, defa
|
|
|
3927
3950
|
}
|
|
3928
3951
|
//#endregion
|
|
3929
3952
|
//#region src/components/form/radio/radio.tsx
|
|
3930
|
-
var
|
|
3931
|
-
Item: () =>
|
|
3932
|
-
Root: () =>
|
|
3933
|
-
}),
|
|
3934
|
-
function
|
|
3935
|
-
let l =
|
|
3953
|
+
var io = /* @__PURE__ */ Se({
|
|
3954
|
+
Item: () => oo,
|
|
3955
|
+
Root: () => so
|
|
3956
|
+
}), ao = (...e) => e.filter(Boolean).join(" ") || void 0;
|
|
3957
|
+
function oo({ value: e, label: t, disabled: n = !1, size: r, id: i, "aria-label": a, className: o, style: s, ref: c }) {
|
|
3958
|
+
let l = to("RadioGroup.Item"), u = t == null, d = /* @__PURE__ */ j(he.Root, {
|
|
3936
3959
|
nativeButton: !0,
|
|
3937
3960
|
render: /* @__PURE__ */ j("button", { type: "button" }),
|
|
3938
3961
|
id: i,
|
|
@@ -3941,34 +3964,34 @@ function io({ value: e, label: t, disabled: n = !1, size: r, id: i, "aria-label"
|
|
|
3941
3964
|
disabled: n,
|
|
3942
3965
|
"aria-label": a,
|
|
3943
3966
|
"data-size": r ?? l.size ?? "md",
|
|
3944
|
-
className: u ?
|
|
3967
|
+
className: u ? ao(Xa, o) : Xa,
|
|
3945
3968
|
style: u ? s : void 0,
|
|
3946
3969
|
children: /* @__PURE__ */ j(he.Indicator, {
|
|
3947
3970
|
keepMounted: !0,
|
|
3948
|
-
className:
|
|
3971
|
+
className: Za
|
|
3949
3972
|
})
|
|
3950
3973
|
});
|
|
3951
3974
|
return u ? d : /* @__PURE__ */ M("label", {
|
|
3952
|
-
className:
|
|
3975
|
+
className: ao($r.Row, o),
|
|
3953
3976
|
style: s,
|
|
3954
3977
|
children: [d, /* @__PURE__ */ j("span", {
|
|
3955
|
-
className:
|
|
3978
|
+
className: $r.Text,
|
|
3956
3979
|
children: t
|
|
3957
3980
|
})]
|
|
3958
3981
|
});
|
|
3959
3982
|
}
|
|
3960
|
-
function
|
|
3961
|
-
return /* @__PURE__ */ M(
|
|
3983
|
+
function so({ options: e, children: t, ...n }) {
|
|
3984
|
+
return /* @__PURE__ */ M(ro, {
|
|
3962
3985
|
...n,
|
|
3963
|
-
optionsClassName:
|
|
3964
|
-
children: [e?.map((e) => /* @__PURE__ */ j(
|
|
3986
|
+
optionsClassName: Ya.Options,
|
|
3987
|
+
children: [e?.map((e) => /* @__PURE__ */ j(oo, {
|
|
3965
3988
|
value: e.value,
|
|
3966
3989
|
label: e.label,
|
|
3967
3990
|
disabled: e.disabled
|
|
3968
3991
|
}, String(e.value))), t]
|
|
3969
3992
|
});
|
|
3970
3993
|
}
|
|
3971
|
-
var
|
|
3994
|
+
var co = {
|
|
3972
3995
|
Options: "_Options_1myxj_8",
|
|
3973
3996
|
Card: "_Card_1myxj_19",
|
|
3974
3997
|
Radio: "_Radio_1myxj_61",
|
|
@@ -3977,20 +4000,20 @@ var oo = {
|
|
|
3977
4000
|
Content: "_Content_1myxj_116",
|
|
3978
4001
|
Label: "_Label_1myxj_133",
|
|
3979
4002
|
Description: "_Description_1myxj_142"
|
|
3980
|
-
},
|
|
3981
|
-
Content: () =>
|
|
3982
|
-
Description: () =>
|
|
3983
|
-
Group: () =>
|
|
3984
|
-
Icon: () =>
|
|
3985
|
-
Indicator: () =>
|
|
3986
|
-
Label: () =>
|
|
3987
|
-
Root: () =>
|
|
3988
|
-
}),
|
|
3989
|
-
function
|
|
3990
|
-
let c =
|
|
4003
|
+
}, lo = /* @__PURE__ */ Se({
|
|
4004
|
+
Content: () => ho,
|
|
4005
|
+
Description: () => _o,
|
|
4006
|
+
Group: () => vo,
|
|
4007
|
+
Icon: () => mo,
|
|
4008
|
+
Indicator: () => po,
|
|
4009
|
+
Label: () => go,
|
|
4010
|
+
Root: () => fo
|
|
4011
|
+
}), uo = (...e) => e.filter(Boolean).join(" ") || void 0;
|
|
4012
|
+
function fo({ value: e, orientation: t = "horizontal", disabled: n = !1, size: r, className: i, style: a, ref: o, children: s }) {
|
|
4013
|
+
let c = to("RadioCard.Root");
|
|
3991
4014
|
return /* @__PURE__ */ M("label", {
|
|
3992
4015
|
ref: o,
|
|
3993
|
-
className: co
|
|
4016
|
+
className: uo(co.Card, i),
|
|
3994
4017
|
style: a,
|
|
3995
4018
|
"data-orientation": t,
|
|
3996
4019
|
"data-size": r ?? c.cardSize ?? "lg",
|
|
@@ -3999,49 +4022,95 @@ function lo({ value: e, orientation: t = "horizontal", disabled: n = !1, size: r
|
|
|
3999
4022
|
render: /* @__PURE__ */ j("button", { type: "button" }),
|
|
4000
4023
|
value: e,
|
|
4001
4024
|
disabled: n,
|
|
4002
|
-
className:
|
|
4025
|
+
className: co.Radio
|
|
4003
4026
|
}), s]
|
|
4004
4027
|
});
|
|
4005
4028
|
}
|
|
4006
|
-
var
|
|
4029
|
+
var po = ({ size: e }) => /* @__PURE__ */ j(Qa, {
|
|
4007
4030
|
size: e,
|
|
4008
|
-
className:
|
|
4009
|
-
}),
|
|
4031
|
+
className: co.Indicator
|
|
4032
|
+
}), mo = ({ size: e = 24, icon: t }) => /* @__PURE__ */ j(t, {
|
|
4010
4033
|
size: e,
|
|
4011
4034
|
"aria-hidden": !0,
|
|
4012
|
-
className:
|
|
4013
|
-
}),
|
|
4014
|
-
className: co
|
|
4035
|
+
className: co.Icon
|
|
4036
|
+
}), ho = ({ children: e, className: t, style: n }) => /* @__PURE__ */ j("span", {
|
|
4037
|
+
className: uo(co.Content, t),
|
|
4015
4038
|
style: n,
|
|
4016
4039
|
children: e
|
|
4017
|
-
}),
|
|
4018
|
-
className:
|
|
4040
|
+
}), go = ({ children: e }) => /* @__PURE__ */ j("span", {
|
|
4041
|
+
className: co.Label,
|
|
4019
4042
|
children: e
|
|
4020
|
-
}),
|
|
4021
|
-
className:
|
|
4043
|
+
}), _o = ({ children: e }) => /* @__PURE__ */ j("span", {
|
|
4044
|
+
className: co.Description,
|
|
4022
4045
|
children: e
|
|
4023
4046
|
});
|
|
4024
|
-
function
|
|
4025
|
-
return /* @__PURE__ */ M(
|
|
4047
|
+
function vo({ options: e, columns: t = 1, size: n, children: r, ...i }) {
|
|
4048
|
+
return /* @__PURE__ */ M(ro, {
|
|
4026
4049
|
...i,
|
|
4027
4050
|
cardSize: n,
|
|
4028
|
-
optionsClassName:
|
|
4051
|
+
optionsClassName: co.Options,
|
|
4029
4052
|
optionsStyle: { "--radio-card-columns": t },
|
|
4030
4053
|
optionsDataColumns: t > 1 ? "many" : void 0,
|
|
4031
|
-
children: [e?.map((e) => /* @__PURE__ */ M(
|
|
4054
|
+
children: [e?.map((e) => /* @__PURE__ */ M(fo, {
|
|
4032
4055
|
value: e.value,
|
|
4033
4056
|
disabled: e.disabled,
|
|
4034
|
-
children: [/* @__PURE__ */ j(
|
|
4057
|
+
children: [/* @__PURE__ */ j(po, {}), e.label]
|
|
4035
4058
|
}, String(e.value))), r]
|
|
4036
4059
|
});
|
|
4037
4060
|
}
|
|
4061
|
+
var yo = {
|
|
4062
|
+
SearchInput: "_SearchInput_111uc_12",
|
|
4063
|
+
Icon: "_Icon_111uc_38",
|
|
4064
|
+
Clear: "_Clear_111uc_44"
|
|
4065
|
+
};
|
|
4066
|
+
//#endregion
|
|
4067
|
+
//#region src/components/form/search-input/search-input.tsx
|
|
4068
|
+
function bo({ value: e, defaultValue: t = "", onValueChange: n, clearLabel: r, enterKeyHint: i = "search", disabled: a = !1, className: o, ref: s, ...c }) {
|
|
4069
|
+
let l = xo(), u = e !== void 0, [d, f] = g(t), p = u ? e : d, m = h(null), _ = (e) => {
|
|
4070
|
+
let t = e;
|
|
4071
|
+
if (m.current = t, typeof s == "function") return s(t);
|
|
4072
|
+
s && (s.current = t);
|
|
4073
|
+
}, v = (e) => {
|
|
4074
|
+
u || f(e), n?.(e);
|
|
4075
|
+
}, y = () => {
|
|
4076
|
+
v(""), m.current?.focus();
|
|
4077
|
+
};
|
|
4078
|
+
return /* @__PURE__ */ j(ha, {
|
|
4079
|
+
...c,
|
|
4080
|
+
ref: _,
|
|
4081
|
+
type: "search",
|
|
4082
|
+
enterKeyHint: i,
|
|
4083
|
+
disabled: a,
|
|
4084
|
+
value: p,
|
|
4085
|
+
onValueChange: v,
|
|
4086
|
+
className: [yo.SearchInput, o].filter(Boolean).join(" "),
|
|
4087
|
+
startAdornment: /* @__PURE__ */ j(k, {
|
|
4088
|
+
"aria-hidden": !0,
|
|
4089
|
+
className: yo.Icon
|
|
4090
|
+
}),
|
|
4091
|
+
endAdornment: p !== "" && !a ? /* @__PURE__ */ j("button", {
|
|
4092
|
+
type: "button",
|
|
4093
|
+
className: yo.Clear,
|
|
4094
|
+
"aria-label": r ?? l.clear,
|
|
4095
|
+
tabIndex: -1,
|
|
4096
|
+
onClick: y,
|
|
4097
|
+
children: /* @__PURE__ */ j(re, { "aria-hidden": !0 })
|
|
4098
|
+
}) : void 0
|
|
4099
|
+
});
|
|
4100
|
+
}
|
|
4101
|
+
var xo = W({ clear: {
|
|
4102
|
+
no: "Tøm søket",
|
|
4103
|
+
se: "Rensa sökningen",
|
|
4104
|
+
fi: "Tyhjennä haku",
|
|
4105
|
+
es: "Borrar la búsqueda"
|
|
4106
|
+
} });
|
|
4038
4107
|
//#endregion
|
|
4039
4108
|
//#region src/components/form/select/select.tsx
|
|
4040
|
-
function
|
|
4109
|
+
function So({ options: e, value: t, defaultValue: n = "", onValueChange: r, startAdornment: i, ...a }) {
|
|
4041
4110
|
let o = t !== void 0, [s, c] = g(n), l = o ? t : s, u = e.find((e) => e.value === l);
|
|
4042
|
-
return /* @__PURE__ */ j(
|
|
4111
|
+
return /* @__PURE__ */ j(va, {
|
|
4043
4112
|
...a,
|
|
4044
|
-
startAdornment: i ?? (u?.icon == null ? null : /* @__PURE__ */ j(
|
|
4113
|
+
startAdornment: i ?? (u?.icon == null ? null : /* @__PURE__ */ j(ba, { children: u.icon })),
|
|
4045
4114
|
multiple: !1,
|
|
4046
4115
|
value: u ? u.value : null,
|
|
4047
4116
|
onValueChange: (e) => {
|
|
@@ -4052,10 +4121,10 @@ function _o({ options: e, value: t, defaultValue: n = "", onValueChange: r, star
|
|
|
4052
4121
|
display: u?.label,
|
|
4053
4122
|
displayHidden: !0,
|
|
4054
4123
|
valueText: u?.label ?? "",
|
|
4055
|
-
children: e.map((e) => /* @__PURE__ */ j(
|
|
4124
|
+
children: e.map((e) => /* @__PURE__ */ j(ya, { option: e }, e.value))
|
|
4056
4125
|
});
|
|
4057
4126
|
}
|
|
4058
|
-
var
|
|
4127
|
+
var Co = {
|
|
4059
4128
|
Slider: "_Slider_1qpll_10",
|
|
4060
4129
|
Header: "_Header_1qpll_21",
|
|
4061
4130
|
Label: "_Label_1qpll_28",
|
|
@@ -4063,41 +4132,55 @@ var vo = {
|
|
|
4063
4132
|
};
|
|
4064
4133
|
//#endregion
|
|
4065
4134
|
//#region src/components/form/slider/slider.tsx
|
|
4066
|
-
function
|
|
4067
|
-
let
|
|
4068
|
-
return /* @__PURE__ */ j(
|
|
4135
|
+
function wo({ label: e, "aria-label": t, helperText: n, error: r = !1, color: i = "primary", min: a = 0, max: o = 100, step: s = 1, largeStep: c, value: l, defaultValue: u, onValueChange: d, onValueCommitted: p, format: m, locale: _, formatValue: v, className: y, ...b }) {
|
|
4136
|
+
let x = f(), S = f(), [C, w] = g(u ?? a), T = l ?? C, E = h(null), ee = Oo(E);
|
|
4137
|
+
return /* @__PURE__ */ j(Ar, {
|
|
4069
4138
|
invalid: r,
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4139
|
+
children: /* @__PURE__ */ M(z.Root, {
|
|
4140
|
+
...b,
|
|
4141
|
+
value: T,
|
|
4142
|
+
onValueChange: (e, t) => {
|
|
4143
|
+
d?.(e, t), !t.isCanceled && (w(e), ee.changed(t.reason));
|
|
4144
|
+
},
|
|
4145
|
+
onValueCommitted: (e, t) => {
|
|
4146
|
+
p?.(e, t), ee.committed(t.reason);
|
|
4147
|
+
},
|
|
4073
4148
|
min: a,
|
|
4074
4149
|
max: o,
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4150
|
+
step: s,
|
|
4151
|
+
largeStep: c ?? Eo(a, o, s),
|
|
4152
|
+
format: m,
|
|
4153
|
+
locale: _,
|
|
4154
|
+
"aria-labelledby": e == null ? void 0 : x,
|
|
4078
4155
|
"data-color": i,
|
|
4079
|
-
className: G(
|
|
4156
|
+
className: G(Co.Slider, y),
|
|
4080
4157
|
children: [
|
|
4081
4158
|
/* @__PURE__ */ M("div", {
|
|
4082
|
-
className:
|
|
4159
|
+
className: Co.Header,
|
|
4083
4160
|
children: [e != null && /* @__PURE__ */ j("div", {
|
|
4084
|
-
id:
|
|
4085
|
-
className:
|
|
4161
|
+
id: x,
|
|
4162
|
+
className: Co.Label,
|
|
4086
4163
|
children: e
|
|
4087
|
-
}), /* @__PURE__ */ j(
|
|
4164
|
+
}), /* @__PURE__ */ j(z.Value, {
|
|
4165
|
+
className: Co.Value,
|
|
4166
|
+
children: v == null ? void 0 : (e, t) => v(t[0])
|
|
4167
|
+
})]
|
|
4088
4168
|
}),
|
|
4089
|
-
/* @__PURE__ */ j(
|
|
4169
|
+
/* @__PURE__ */ j(jr, {
|
|
4090
4170
|
"aria-label": t,
|
|
4091
|
-
"aria-describedby": n == null ? void 0 :
|
|
4171
|
+
"aria-describedby": n == null ? void 0 : S,
|
|
4172
|
+
inputRef: E,
|
|
4173
|
+
formatValue: v
|
|
4092
4174
|
}),
|
|
4093
|
-
/* @__PURE__ */ j(
|
|
4175
|
+
/* @__PURE__ */ j(Mr, {
|
|
4094
4176
|
min: a,
|
|
4095
4177
|
max: o,
|
|
4096
|
-
format:
|
|
4097
|
-
locale:
|
|
4178
|
+
format: m,
|
|
4179
|
+
locale: _,
|
|
4180
|
+
formatValue: v
|
|
4098
4181
|
}),
|
|
4099
|
-
n != null && /* @__PURE__ */ j(
|
|
4100
|
-
id:
|
|
4182
|
+
n != null && /* @__PURE__ */ j(Nr, {
|
|
4183
|
+
id: S,
|
|
4101
4184
|
error: r,
|
|
4102
4185
|
children: n
|
|
4103
4186
|
})
|
|
@@ -4105,63 +4188,105 @@ function yo({ label: e, "aria-label": t, helperText: n, error: r = !1, color: i
|
|
|
4105
4188
|
})
|
|
4106
4189
|
});
|
|
4107
4190
|
}
|
|
4108
|
-
|
|
4191
|
+
function To(e) {
|
|
4192
|
+
let [t, n] = String(e).split("e-"), r = t.split(".")[1]?.length ?? 0;
|
|
4193
|
+
return Math.min(r + Number(n ?? 0), 20);
|
|
4194
|
+
}
|
|
4195
|
+
function Eo(e, t, n) {
|
|
4196
|
+
let r = Math.max(1, Math.round((t - e) / 10 / n));
|
|
4197
|
+
return Number((r * n).toFixed(To(n)));
|
|
4198
|
+
}
|
|
4199
|
+
var Do = /* @__PURE__ */ new Set([
|
|
4200
|
+
"drag",
|
|
4201
|
+
"track-press",
|
|
4202
|
+
"keyboard"
|
|
4203
|
+
]);
|
|
4204
|
+
function Oo(e) {
|
|
4205
|
+
let t = h({
|
|
4206
|
+
input: !1,
|
|
4207
|
+
change: !1
|
|
4208
|
+
}), n = h(!1), r = h(null), i = (t) => {
|
|
4209
|
+
e.current?.dispatchEvent(new Event(t, {
|
|
4210
|
+
bubbles: !0,
|
|
4211
|
+
composed: t === "input"
|
|
4212
|
+
}));
|
|
4213
|
+
}, a = () => {
|
|
4214
|
+
n.current && (n.current = !1, i("change"));
|
|
4215
|
+
};
|
|
4216
|
+
return d(() => {
|
|
4217
|
+
let o = e.current?.value ?? null, s = o !== r.current;
|
|
4218
|
+
r.current = o;
|
|
4219
|
+
let { input: c, change: l } = t.current;
|
|
4220
|
+
t.current = {
|
|
4221
|
+
input: !1,
|
|
4222
|
+
change: !1
|
|
4223
|
+
}, !(!c || !s) && (i("input"), n.current = !0, l && a());
|
|
4224
|
+
}), {
|
|
4225
|
+
changed(e) {
|
|
4226
|
+
Do.has(e) && (t.current.input = !0);
|
|
4227
|
+
},
|
|
4228
|
+
committed(e) {
|
|
4229
|
+
Do.has(e) && (t.current.input ? t.current.change = !0 : a());
|
|
4230
|
+
}
|
|
4231
|
+
};
|
|
4232
|
+
}
|
|
4233
|
+
var ko = {
|
|
4109
4234
|
Switch: "_Switch_9c9ji_7",
|
|
4110
4235
|
Thumb: "_Thumb_9c9ji_36"
|
|
4111
4236
|
};
|
|
4112
4237
|
//#endregion
|
|
4113
4238
|
//#region src/components/form/switch/switch.tsx
|
|
4114
|
-
function
|
|
4239
|
+
function Ao({ className: e, ...t }) {
|
|
4115
4240
|
return /* @__PURE__ */ j(_e.Root, {
|
|
4116
4241
|
...t,
|
|
4117
|
-
className: G(
|
|
4118
|
-
children: /* @__PURE__ */ j(_e.Thumb, { className:
|
|
4242
|
+
className: G(ko.Switch, e),
|
|
4243
|
+
children: /* @__PURE__ */ j(_e.Thumb, { className: ko.Thumb })
|
|
4119
4244
|
});
|
|
4120
4245
|
}
|
|
4121
|
-
var
|
|
4246
|
+
var jo = {
|
|
4122
4247
|
Grid: "_Grid_19t94_10",
|
|
4123
4248
|
GridItem: "_GridItem_19t94_31"
|
|
4124
|
-
},
|
|
4125
|
-
function
|
|
4249
|
+
}, Mo = (e) => typeof e == "object" && !!e;
|
|
4250
|
+
function No(e, t, n = String) {
|
|
4126
4251
|
if (t === void 0) return {};
|
|
4127
|
-
let r =
|
|
4252
|
+
let r = Mo(t) ? Object.entries(t) : [["base", t]], i = {};
|
|
4128
4253
|
for (let [t, a] of r) a !== void 0 && (i[`--_${e}-${t}`] = n(a));
|
|
4129
4254
|
return i;
|
|
4130
4255
|
}
|
|
4131
4256
|
//#endregion
|
|
4132
4257
|
//#region src/components/layout/grid/grid.tsx
|
|
4133
|
-
function
|
|
4258
|
+
function Po({ columns: e, gap: t, render: n, className: r, style: i, ...a }) {
|
|
4134
4259
|
return N({
|
|
4135
4260
|
render: n,
|
|
4136
4261
|
props: {
|
|
4137
4262
|
...a,
|
|
4138
|
-
className: G(
|
|
4263
|
+
className: G(jo.Grid, r)({}),
|
|
4139
4264
|
style: {
|
|
4140
|
-
...
|
|
4141
|
-
...
|
|
4265
|
+
...No("columns", e),
|
|
4266
|
+
...No("gap", t),
|
|
4142
4267
|
...i
|
|
4143
4268
|
}
|
|
4144
4269
|
}
|
|
4145
4270
|
});
|
|
4146
4271
|
}
|
|
4147
|
-
var
|
|
4148
|
-
function
|
|
4272
|
+
var Fo = (e) => e === "full" ? "1 / -1" : `span ${e} / span ${e}`;
|
|
4273
|
+
function Io({ span: e, render: t, className: n, style: r, ...i }) {
|
|
4149
4274
|
return N({
|
|
4150
4275
|
render: t,
|
|
4151
4276
|
props: {
|
|
4152
4277
|
...i,
|
|
4153
|
-
className: G(
|
|
4278
|
+
className: G(jo.GridItem, n)({}),
|
|
4154
4279
|
style: {
|
|
4155
|
-
...
|
|
4280
|
+
...No("span", e, Fo),
|
|
4156
4281
|
...r
|
|
4157
4282
|
}
|
|
4158
4283
|
}
|
|
4159
4284
|
});
|
|
4160
4285
|
}
|
|
4161
|
-
var
|
|
4286
|
+
var Lo = { Stack: "_Stack_11xqj_10" };
|
|
4162
4287
|
//#endregion
|
|
4163
4288
|
//#region src/components/layout/stack/stack.tsx
|
|
4164
|
-
function
|
|
4289
|
+
function Ro({ direction: e, gap: t, align: n, justify: r, wrap: i = !1, render: a, className: o, style: s, ...c }) {
|
|
4165
4290
|
return N({
|
|
4166
4291
|
render: a,
|
|
4167
4292
|
props: {
|
|
@@ -4169,22 +4294,22 @@ function ko({ direction: e, gap: t, align: n, justify: r, wrap: i = !1, render:
|
|
|
4169
4294
|
"data-align": n,
|
|
4170
4295
|
"data-justify": r,
|
|
4171
4296
|
"data-wrap": i || void 0,
|
|
4172
|
-
className: G(
|
|
4297
|
+
className: G(Lo.Stack, o)({}),
|
|
4173
4298
|
style: {
|
|
4174
|
-
...
|
|
4175
|
-
...
|
|
4299
|
+
...No("direction", e),
|
|
4300
|
+
...No("gap", t),
|
|
4176
4301
|
...s
|
|
4177
4302
|
}
|
|
4178
4303
|
}
|
|
4179
4304
|
});
|
|
4180
4305
|
}
|
|
4181
|
-
function
|
|
4182
|
-
return /* @__PURE__ */ j(
|
|
4306
|
+
function zo(e) {
|
|
4307
|
+
return /* @__PURE__ */ j(Ro, {
|
|
4183
4308
|
...e,
|
|
4184
4309
|
direction: "row"
|
|
4185
4310
|
});
|
|
4186
4311
|
}
|
|
4187
|
-
var
|
|
4312
|
+
var Bo = {
|
|
4188
4313
|
Header: "_Header_1p9o4_7",
|
|
4189
4314
|
Lead: "_Lead_1p9o4_15",
|
|
4190
4315
|
Titles: "_Titles_1p9o4_21",
|
|
@@ -4192,12 +4317,12 @@ var jo = {
|
|
|
4192
4317
|
Next: "_Next_1p9o4_42",
|
|
4193
4318
|
Divider: "_Divider_1p9o4_51",
|
|
4194
4319
|
SrOnly: "_SrOnly_1p9o4_58"
|
|
4195
|
-
},
|
|
4320
|
+
}, Vo = {
|
|
4196
4321
|
ProgressCircle: "_ProgressCircle_a7wgh_11",
|
|
4197
4322
|
Svg: "_Svg_a7wgh_23",
|
|
4198
4323
|
Track: "_Track_a7wgh_31",
|
|
4199
4324
|
Value: "_Value_a7wgh_35"
|
|
4200
|
-
},
|
|
4325
|
+
}, Ho = [
|
|
4201
4326
|
.69,
|
|
4202
4327
|
.33,
|
|
4203
4328
|
.61,
|
|
@@ -4208,10 +4333,10 @@ var jo = {
|
|
|
4208
4333
|
.54,
|
|
4209
4334
|
.62,
|
|
4210
4335
|
.64
|
|
4211
|
-
],
|
|
4212
|
-
let n = Array.from(e).reduce((e, t) => e + (t === "/" ?
|
|
4213
|
-
return Math.max(t - 4, 0) / Math.hypot(n,
|
|
4214
|
-
},
|
|
4336
|
+
], Uo = .43, Wo = .69, Go = (e, t) => {
|
|
4337
|
+
let n = Array.from(e).reduce((e, t) => e + (t === "/" ? Uo : Ho[Number(t)] ?? .69), 0);
|
|
4338
|
+
return Math.max(t - 4, 0) / Math.hypot(n, Wo);
|
|
4339
|
+
}, Ko = ({ value: e, max: a, color: o = "primary", size: s = 48, strokeWidth: c = 4, showValue: l = !0, label: u }) => {
|
|
4215
4340
|
let f = i(), p = (s - c) / 2, m = 2 * Math.PI * p, h = a > 0 ? Math.min(Math.max(e / a, 0), 1) : 0, g = (e) => m * (1 - e), _ = r(g(0));
|
|
4216
4341
|
d(() => {
|
|
4217
4342
|
let e = g(h);
|
|
@@ -4230,7 +4355,7 @@ var jo = {
|
|
|
4230
4355
|
f,
|
|
4231
4356
|
_
|
|
4232
4357
|
]);
|
|
4233
|
-
let v = `${e}/${a}`, y =
|
|
4358
|
+
let v = `${e}/${a}`, y = Go(v, s - 2 * c);
|
|
4234
4359
|
return /* @__PURE__ */ M("div", {
|
|
4235
4360
|
...u ? {
|
|
4236
4361
|
role: "progressbar",
|
|
@@ -4239,7 +4364,7 @@ var jo = {
|
|
|
4239
4364
|
"aria-valuemax": a,
|
|
4240
4365
|
"aria-valuenow": e
|
|
4241
4366
|
} : { "aria-hidden": !0 },
|
|
4242
|
-
className:
|
|
4367
|
+
className: Vo.ProgressCircle,
|
|
4243
4368
|
"data-color": o,
|
|
4244
4369
|
style: {
|
|
4245
4370
|
width: s,
|
|
@@ -4247,12 +4372,12 @@ var jo = {
|
|
|
4247
4372
|
"--_label-fit": `${y.toFixed(2)}px`
|
|
4248
4373
|
},
|
|
4249
4374
|
children: [/* @__PURE__ */ M("svg", {
|
|
4250
|
-
className:
|
|
4375
|
+
className: Vo.Svg,
|
|
4251
4376
|
width: s,
|
|
4252
4377
|
height: s,
|
|
4253
4378
|
viewBox: `0 0 ${s} ${s}`,
|
|
4254
4379
|
children: [/* @__PURE__ */ j("circle", {
|
|
4255
|
-
className:
|
|
4380
|
+
className: Vo.Track,
|
|
4256
4381
|
cx: s / 2,
|
|
4257
4382
|
cy: s / 2,
|
|
4258
4383
|
r: p,
|
|
@@ -4271,11 +4396,11 @@ var jo = {
|
|
|
4271
4396
|
style: { strokeDashoffset: _ }
|
|
4272
4397
|
})]
|
|
4273
4398
|
}), l && /* @__PURE__ */ j("span", {
|
|
4274
|
-
className:
|
|
4399
|
+
className: Vo.Value,
|
|
4275
4400
|
children: v
|
|
4276
4401
|
})]
|
|
4277
4402
|
});
|
|
4278
|
-
},
|
|
4403
|
+
}, qo = W({
|
|
4279
4404
|
back: {
|
|
4280
4405
|
no: "Tilbake",
|
|
4281
4406
|
se: "Tillbaka",
|
|
@@ -4300,34 +4425,34 @@ var jo = {
|
|
|
4300
4425
|
fi: "/",
|
|
4301
4426
|
es: "de"
|
|
4302
4427
|
}
|
|
4303
|
-
}),
|
|
4428
|
+
}), Jo = ({ currentStep: e, totalSteps: t, title: n, nextStep: r, onBack: i, color: a = "primary", titleAs: o = "heading", headingLevel: s = "h1", titleId: c, labels: l, showDivider: u = !0 }) => {
|
|
4304
4429
|
let d = {
|
|
4305
|
-
...
|
|
4430
|
+
...qo(),
|
|
4306
4431
|
...l
|
|
4307
4432
|
}, p = f(), m = c ?? p, h = o === "heading" ? s : "p", g = `, ${d.step} ${e} ${d.of} ${t}`;
|
|
4308
4433
|
return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ M("div", {
|
|
4309
|
-
className:
|
|
4434
|
+
className: Bo.Header,
|
|
4310
4435
|
children: [/* @__PURE__ */ M("div", {
|
|
4311
|
-
className:
|
|
4312
|
-
children: [i && /* @__PURE__ */ j(
|
|
4436
|
+
className: Bo.Lead,
|
|
4437
|
+
children: [i && /* @__PURE__ */ j(mt, {
|
|
4313
4438
|
"aria-label": d.back,
|
|
4314
4439
|
onClick: i,
|
|
4315
4440
|
variant: "outline",
|
|
4316
4441
|
color: "secondary",
|
|
4317
4442
|
children: /* @__PURE__ */ j(_, { "aria-hidden": !0 })
|
|
4318
4443
|
}), /* @__PURE__ */ M("div", {
|
|
4319
|
-
className:
|
|
4444
|
+
className: Bo.Titles,
|
|
4320
4445
|
children: [/* @__PURE__ */ M(h, {
|
|
4321
4446
|
id: m,
|
|
4322
4447
|
tabIndex: -1,
|
|
4323
|
-
className:
|
|
4448
|
+
className: Bo.Title,
|
|
4324
4449
|
"data-title-as": o,
|
|
4325
4450
|
children: [n, /* @__PURE__ */ j("span", {
|
|
4326
|
-
className:
|
|
4451
|
+
className: Bo.SrOnly,
|
|
4327
4452
|
children: g
|
|
4328
4453
|
})]
|
|
4329
4454
|
}), r != null && /* @__PURE__ */ M("p", {
|
|
4330
|
-
className:
|
|
4455
|
+
className: Bo.Next,
|
|
4331
4456
|
children: [
|
|
4332
4457
|
d.next,
|
|
4333
4458
|
": ",
|
|
@@ -4335,13 +4460,13 @@ var jo = {
|
|
|
4335
4460
|
]
|
|
4336
4461
|
})]
|
|
4337
4462
|
})]
|
|
4338
|
-
}), /* @__PURE__ */ j(
|
|
4463
|
+
}), /* @__PURE__ */ j(Ko, {
|
|
4339
4464
|
value: e,
|
|
4340
4465
|
max: t,
|
|
4341
4466
|
color: a
|
|
4342
4467
|
})]
|
|
4343
|
-
}), u && /* @__PURE__ */ j("hr", { className:
|
|
4344
|
-
},
|
|
4468
|
+
}), u && /* @__PURE__ */ j("hr", { className: Bo.Divider })] });
|
|
4469
|
+
}, Yo = {
|
|
4345
4470
|
LinearFormStepper: "_LinearFormStepper_160tf_7",
|
|
4346
4471
|
Progress: "_Progress_160tf_22",
|
|
4347
4472
|
Track: "_Track_160tf_26",
|
|
@@ -4350,27 +4475,27 @@ var jo = {
|
|
|
4350
4475
|
Title: "_Title_160tf_47",
|
|
4351
4476
|
TitleText: "_TitleText_160tf_57",
|
|
4352
4477
|
"stepper-title-in": "_stepper-title-in_160tf_1"
|
|
4353
|
-
},
|
|
4478
|
+
}, Xo = ({ currentStep: e, totalSteps: t, title: n, onBack: r, color: i = "primary", headingLevel: a = "h1", titleId: o, labels: s }) => {
|
|
4354
4479
|
let c = {
|
|
4355
|
-
...
|
|
4480
|
+
...qo(),
|
|
4356
4481
|
...s
|
|
4357
4482
|
}, l = f(), u = o ?? l;
|
|
4358
4483
|
return /* @__PURE__ */ M("div", {
|
|
4359
|
-
className:
|
|
4484
|
+
className: Yo.LinearFormStepper,
|
|
4360
4485
|
"data-color": i,
|
|
4361
4486
|
children: [/* @__PURE__ */ j(ve.Root, {
|
|
4362
|
-
className:
|
|
4487
|
+
className: Yo.Progress,
|
|
4363
4488
|
value: e,
|
|
4364
4489
|
max: t,
|
|
4365
4490
|
"aria-labelledby": u,
|
|
4366
4491
|
getAriaValueText: () => `${c.step} ${e} ${c.of} ${t}`,
|
|
4367
4492
|
children: /* @__PURE__ */ j(ve.Track, {
|
|
4368
|
-
className:
|
|
4369
|
-
children: /* @__PURE__ */ j(ve.Indicator, { className:
|
|
4493
|
+
className: Yo.Track,
|
|
4494
|
+
children: /* @__PURE__ */ j(ve.Indicator, { className: Yo.Indicator })
|
|
4370
4495
|
})
|
|
4371
4496
|
}), /* @__PURE__ */ M("div", {
|
|
4372
|
-
className:
|
|
4373
|
-
children: [r && /* @__PURE__ */ j(
|
|
4497
|
+
className: Yo.Header,
|
|
4498
|
+
children: [r && /* @__PURE__ */ j(mt, {
|
|
4374
4499
|
"aria-label": c.back,
|
|
4375
4500
|
onClick: r,
|
|
4376
4501
|
variant: "outline",
|
|
@@ -4379,25 +4504,25 @@ var jo = {
|
|
|
4379
4504
|
}), /* @__PURE__ */ j(a, {
|
|
4380
4505
|
id: u,
|
|
4381
4506
|
tabIndex: -1,
|
|
4382
|
-
className:
|
|
4507
|
+
className: Yo.Title,
|
|
4383
4508
|
children: /* @__PURE__ */ j("span", {
|
|
4384
|
-
className:
|
|
4509
|
+
className: Yo.TitleText,
|
|
4385
4510
|
children: n
|
|
4386
4511
|
}, e)
|
|
4387
4512
|
})]
|
|
4388
4513
|
})]
|
|
4389
4514
|
});
|
|
4390
|
-
},
|
|
4515
|
+
}, Zo = s(null), Qo = s(null), $o = ({ children: e, initialProgress: t }) => {
|
|
4391
4516
|
let [n, r] = g(t ?? null);
|
|
4392
|
-
return /* @__PURE__ */ j(
|
|
4517
|
+
return /* @__PURE__ */ j(Qo.Provider, {
|
|
4393
4518
|
value: r,
|
|
4394
|
-
children: /* @__PURE__ */ j(
|
|
4519
|
+
children: /* @__PURE__ */ j(Zo.Provider, {
|
|
4395
4520
|
value: n,
|
|
4396
4521
|
children: e
|
|
4397
4522
|
})
|
|
4398
4523
|
});
|
|
4399
|
-
},
|
|
4400
|
-
let t = u(
|
|
4524
|
+
}, es = () => u(Zo), ts = (e) => {
|
|
4525
|
+
let t = u(Qo), n = e?.currentStep, r = e?.totalSteps, i = e?.title;
|
|
4401
4526
|
d(() => {
|
|
4402
4527
|
!t || n === void 0 || r === void 0 || i === void 0 || t({
|
|
4403
4528
|
currentStep: n,
|
|
@@ -4410,58 +4535,58 @@ var jo = {
|
|
|
4410
4535
|
r,
|
|
4411
4536
|
i
|
|
4412
4537
|
]);
|
|
4413
|
-
},
|
|
4414
|
-
let t =
|
|
4415
|
-
return t ? /* @__PURE__ */ j(
|
|
4538
|
+
}, ns = (e) => {
|
|
4539
|
+
let t = es();
|
|
4540
|
+
return t ? /* @__PURE__ */ j(Xo, {
|
|
4416
4541
|
...e,
|
|
4417
4542
|
...t
|
|
4418
4543
|
}) : null;
|
|
4419
|
-
},
|
|
4544
|
+
}, rs = {
|
|
4420
4545
|
Tabs: "_Tabs_y4jai_7",
|
|
4421
4546
|
List: "_List_y4jai_28",
|
|
4422
4547
|
Tab: "_Tab_y4jai_7",
|
|
4423
4548
|
Panel: "_Panel_y4jai_95",
|
|
4424
4549
|
Indicator: "_Indicator_y4jai_104"
|
|
4425
|
-
},
|
|
4426
|
-
Indicator: () =>
|
|
4427
|
-
List: () =>
|
|
4428
|
-
Panel: () =>
|
|
4429
|
-
Root: () =>
|
|
4430
|
-
Tab: () =>
|
|
4550
|
+
}, is = /* @__PURE__ */ Se({
|
|
4551
|
+
Indicator: () => cs,
|
|
4552
|
+
List: () => os,
|
|
4553
|
+
Panel: () => ls,
|
|
4554
|
+
Root: () => as,
|
|
4555
|
+
Tab: () => ss
|
|
4431
4556
|
});
|
|
4432
|
-
function
|
|
4557
|
+
function as({ color: e = "primary", className: t, ...n }) {
|
|
4433
4558
|
return /* @__PURE__ */ j(ye.Root, {
|
|
4434
4559
|
...n,
|
|
4435
4560
|
"data-color": e,
|
|
4436
|
-
className: G(
|
|
4561
|
+
className: G(rs.Tabs, t)
|
|
4437
4562
|
});
|
|
4438
4563
|
}
|
|
4439
|
-
function
|
|
4564
|
+
function os({ children: e, className: t, ...n }) {
|
|
4440
4565
|
return /* @__PURE__ */ M(ye.List, {
|
|
4441
4566
|
...n,
|
|
4442
|
-
className: G(
|
|
4443
|
-
children: [e, /* @__PURE__ */ j(
|
|
4567
|
+
className: G(rs.List, t),
|
|
4568
|
+
children: [e, /* @__PURE__ */ j(cs, {})]
|
|
4444
4569
|
});
|
|
4445
4570
|
}
|
|
4446
|
-
function
|
|
4571
|
+
function ss({ className: e, ...t }) {
|
|
4447
4572
|
return /* @__PURE__ */ j(ye.Tab, {
|
|
4448
4573
|
...t,
|
|
4449
|
-
className: G(
|
|
4574
|
+
className: G(rs.Tab, e)
|
|
4450
4575
|
});
|
|
4451
4576
|
}
|
|
4452
|
-
function
|
|
4577
|
+
function cs({ className: e, ...t }) {
|
|
4453
4578
|
return /* @__PURE__ */ j(ye.Indicator, {
|
|
4454
4579
|
...t,
|
|
4455
|
-
className: G(
|
|
4580
|
+
className: G(rs.Indicator, e)
|
|
4456
4581
|
});
|
|
4457
4582
|
}
|
|
4458
|
-
function
|
|
4583
|
+
function ls({ className: e, ...t }) {
|
|
4459
4584
|
return /* @__PURE__ */ j(ye.Panel, {
|
|
4460
4585
|
...t,
|
|
4461
|
-
className: G(
|
|
4586
|
+
className: G(rs.Panel, e)
|
|
4462
4587
|
});
|
|
4463
4588
|
}
|
|
4464
|
-
var
|
|
4589
|
+
var us = {
|
|
4465
4590
|
Breadcrumbs: "_Breadcrumbs_1p42m_8",
|
|
4466
4591
|
List: "_List_1p42m_12",
|
|
4467
4592
|
Item: "_Item_1p42m_26",
|
|
@@ -4469,7 +4594,7 @@ var ts = {
|
|
|
4469
4594
|
Link: "_Link_1p42m_39",
|
|
4470
4595
|
Text: "_Text_1p42m_40",
|
|
4471
4596
|
Current: "_Current_1p42m_55"
|
|
4472
|
-
},
|
|
4597
|
+
}, ds = W({ label: {
|
|
4473
4598
|
no: "Brødsmulesti",
|
|
4474
4599
|
se: "Brödsmulor",
|
|
4475
4600
|
fi: "Murupolku",
|
|
@@ -4477,7 +4602,7 @@ var ts = {
|
|
|
4477
4602
|
} });
|
|
4478
4603
|
//#endregion
|
|
4479
4604
|
//#region src/components/navigation/breadcrumbs/breadcrumbs.tsx
|
|
4480
|
-
function
|
|
4605
|
+
function fs({ item: e }) {
|
|
4481
4606
|
let t = e.href != null || e.render != null;
|
|
4482
4607
|
return N({
|
|
4483
4608
|
enabled: t,
|
|
@@ -4485,45 +4610,45 @@ function rs({ item: e }) {
|
|
|
4485
4610
|
defaultTagName: "a",
|
|
4486
4611
|
props: {
|
|
4487
4612
|
href: e.href,
|
|
4488
|
-
className:
|
|
4613
|
+
className: us.Link,
|
|
4489
4614
|
children: e.label
|
|
4490
4615
|
}
|
|
4491
4616
|
}) ?? /* @__PURE__ */ j("span", {
|
|
4492
|
-
className:
|
|
4617
|
+
className: us.Text,
|
|
4493
4618
|
children: e.label
|
|
4494
4619
|
});
|
|
4495
4620
|
}
|
|
4496
|
-
function
|
|
4497
|
-
let r =
|
|
4621
|
+
function ps({ items: e, className: t, ...n }) {
|
|
4622
|
+
let r = ds();
|
|
4498
4623
|
if (e.length === 0) return null;
|
|
4499
4624
|
let i = e.length - 1;
|
|
4500
4625
|
return /* @__PURE__ */ j("nav", {
|
|
4501
4626
|
"aria-label": r.label,
|
|
4502
4627
|
...n,
|
|
4503
|
-
className: [
|
|
4628
|
+
className: [us.Breadcrumbs, t].filter(Boolean).join(" "),
|
|
4504
4629
|
children: /* @__PURE__ */ j("ol", {
|
|
4505
|
-
className:
|
|
4630
|
+
className: us.List,
|
|
4506
4631
|
children: e.map((e, t) => /* @__PURE__ */ M("li", {
|
|
4507
|
-
className:
|
|
4632
|
+
className: us.Item,
|
|
4508
4633
|
children: [t > 0 && /* @__PURE__ */ j("span", {
|
|
4509
4634
|
"aria-hidden": !0,
|
|
4510
|
-
className:
|
|
4635
|
+
className: us.Separator,
|
|
4511
4636
|
children: "/"
|
|
4512
4637
|
}), t === i ? /* @__PURE__ */ j("span", {
|
|
4513
4638
|
"aria-current": "page",
|
|
4514
|
-
className:
|
|
4639
|
+
className: us.Current,
|
|
4515
4640
|
children: e.label
|
|
4516
|
-
}) : /* @__PURE__ */ j(
|
|
4641
|
+
}) : /* @__PURE__ */ j(fs, { item: e })]
|
|
4517
4642
|
}, t))
|
|
4518
4643
|
})
|
|
4519
4644
|
});
|
|
4520
4645
|
}
|
|
4521
|
-
var
|
|
4646
|
+
var ms = {
|
|
4522
4647
|
Pagination: "_Pagination_18k1j_7",
|
|
4523
4648
|
List: "_List_18k1j_11",
|
|
4524
4649
|
Item: "_Item_18k1j_21",
|
|
4525
4650
|
Ellipsis: "_Ellipsis_18k1j_75"
|
|
4526
|
-
},
|
|
4651
|
+
}, hs = W({
|
|
4527
4652
|
label: {
|
|
4528
4653
|
no: "Sider",
|
|
4529
4654
|
se: "Sidor",
|
|
@@ -4554,20 +4679,20 @@ var as = {
|
|
|
4554
4679
|
fi: "Siirry sivulle {page}",
|
|
4555
4680
|
es: "Ir a la página {page}"
|
|
4556
4681
|
}
|
|
4557
|
-
}),
|
|
4682
|
+
}), gs = (e, t) => e.replace("{page}", String(t));
|
|
4558
4683
|
//#endregion
|
|
4559
4684
|
//#region src/components/navigation/pagination/pagination.tsx
|
|
4560
|
-
function
|
|
4685
|
+
function _s(e, t) {
|
|
4561
4686
|
if (t <= 7) return Array.from({ length: t }, (e, t) => t + 1);
|
|
4562
4687
|
let n = Math.max(2, e - 1), r = Math.min(t - 1, e + 1), i = [1];
|
|
4563
4688
|
n > 2 && i.push("start-ellipsis");
|
|
4564
4689
|
for (let e = n; e <= r; e += 1) i.push(e);
|
|
4565
4690
|
return r < t - 1 && i.push("end-ellipsis"), i.push(t), i;
|
|
4566
4691
|
}
|
|
4567
|
-
var
|
|
4568
|
-
function
|
|
4692
|
+
var vs = (e, t) => Math.min(Math.max(Math.round(e), 1), Math.max(t, 1));
|
|
4693
|
+
function ys({ page: e, label: t, current: n = !1, disabled: r = !1, renderLink: i, onSelect: a, children: o }) {
|
|
4569
4694
|
let s = {
|
|
4570
|
-
className:
|
|
4695
|
+
className: ms.Item,
|
|
4571
4696
|
"aria-label": t,
|
|
4572
4697
|
"aria-current": n ? "page" : void 0,
|
|
4573
4698
|
"data-current": n ? "" : void 0,
|
|
@@ -4594,8 +4719,8 @@ function us({ page: e, label: t, current: n = !1, disabled: r = !1, renderLink:
|
|
|
4594
4719
|
"aria-disabled": "true"
|
|
4595
4720
|
}));
|
|
4596
4721
|
}
|
|
4597
|
-
function
|
|
4598
|
-
let s =
|
|
4722
|
+
function bs({ count: e, value: t, defaultValue: n = 1, onValueChange: r, renderLink: i, className: a, ...o }) {
|
|
4723
|
+
let s = hs(), [c, l] = g(n), u = vs(t ?? c, e);
|
|
4599
4724
|
if (e <= 1) return null;
|
|
4600
4725
|
let d = (e) => {
|
|
4601
4726
|
t === void 0 && l(e), e !== u && r?.(e);
|
|
@@ -4603,30 +4728,30 @@ function ds({ count: e, value: t, defaultValue: n = 1, onValueChange: r, renderL
|
|
|
4603
4728
|
return /* @__PURE__ */ j("nav", {
|
|
4604
4729
|
"aria-label": s.label,
|
|
4605
4730
|
...o,
|
|
4606
|
-
className: [
|
|
4731
|
+
className: [ms.Pagination, a].filter(Boolean).join(" "),
|
|
4607
4732
|
children: /* @__PURE__ */ M("ul", {
|
|
4608
|
-
className:
|
|
4733
|
+
className: ms.List,
|
|
4609
4734
|
children: [
|
|
4610
|
-
/* @__PURE__ */ j("li", { children: /* @__PURE__ */ j(
|
|
4735
|
+
/* @__PURE__ */ j("li", { children: /* @__PURE__ */ j(ys, {
|
|
4611
4736
|
page: u - 1,
|
|
4612
4737
|
disabled: u <= 1,
|
|
4613
4738
|
renderLink: i,
|
|
4614
4739
|
onSelect: d,
|
|
4615
4740
|
children: s.previous
|
|
4616
4741
|
}) }),
|
|
4617
|
-
|
|
4742
|
+
_s(u, e).map((e) => typeof e == "number" ? /* @__PURE__ */ j("li", { children: /* @__PURE__ */ j(ys, {
|
|
4618
4743
|
page: e,
|
|
4619
|
-
label:
|
|
4744
|
+
label: gs(s.page, e),
|
|
4620
4745
|
current: e === u,
|
|
4621
4746
|
renderLink: i,
|
|
4622
4747
|
onSelect: d,
|
|
4623
4748
|
children: e
|
|
4624
4749
|
}) }, e) : /* @__PURE__ */ j("li", {
|
|
4625
4750
|
"aria-hidden": !0,
|
|
4626
|
-
className:
|
|
4751
|
+
className: ms.Ellipsis,
|
|
4627
4752
|
children: "…"
|
|
4628
4753
|
}, e)),
|
|
4629
|
-
/* @__PURE__ */ j("li", { children: /* @__PURE__ */ j(
|
|
4754
|
+
/* @__PURE__ */ j("li", { children: /* @__PURE__ */ j(ys, {
|
|
4630
4755
|
page: u + 1,
|
|
4631
4756
|
disabled: u >= e,
|
|
4632
4757
|
renderLink: i,
|
|
@@ -4637,14 +4762,14 @@ function ds({ count: e, value: t, defaultValue: n = 1, onValueChange: r, renderL
|
|
|
4637
4762
|
})
|
|
4638
4763
|
});
|
|
4639
4764
|
}
|
|
4640
|
-
var
|
|
4765
|
+
var xs = {
|
|
4641
4766
|
PaginationDots: "_PaginationDots_17xgb_12",
|
|
4642
4767
|
Dot: "_Dot_17xgb_19"
|
|
4643
4768
|
};
|
|
4644
4769
|
//#endregion
|
|
4645
4770
|
//#region src/components/navigation/pagination-dots/pagination-dots.tsx
|
|
4646
|
-
function
|
|
4647
|
-
let s =
|
|
4771
|
+
function Ss({ count: e, value: t, defaultValue: n = 1, onValueChange: r, getItemLabel: i, className: a, ...o }) {
|
|
4772
|
+
let s = hs(), [c, l] = g(n), u = t ?? c;
|
|
4648
4773
|
if (e <= 1) return null;
|
|
4649
4774
|
let d = (e) => {
|
|
4650
4775
|
t === void 0 && l(e), e !== u && r?.(e);
|
|
@@ -4653,13 +4778,13 @@ function ps({ count: e, value: t, defaultValue: n = 1, onValueChange: r, getItem
|
|
|
4653
4778
|
role: "group",
|
|
4654
4779
|
"aria-label": s.label,
|
|
4655
4780
|
...o,
|
|
4656
|
-
className: [
|
|
4781
|
+
className: [xs.PaginationDots, a].filter(Boolean).join(" "),
|
|
4657
4782
|
children: Array.from({ length: e }, (e, t) => {
|
|
4658
4783
|
let n = t + 1, r = n === u;
|
|
4659
4784
|
return /* @__PURE__ */ j("button", {
|
|
4660
4785
|
type: "button",
|
|
4661
|
-
className:
|
|
4662
|
-
"aria-label": i?.(n) ??
|
|
4786
|
+
className: xs.Dot,
|
|
4787
|
+
"aria-label": i?.(n) ?? gs(s.goToPage, n),
|
|
4663
4788
|
"aria-current": r || void 0,
|
|
4664
4789
|
"data-current": r ? "" : void 0,
|
|
4665
4790
|
onClick: () => d(n)
|
|
@@ -4667,117 +4792,117 @@ function ps({ count: e, value: t, defaultValue: n = 1, onValueChange: r, getItem
|
|
|
4667
4792
|
})
|
|
4668
4793
|
});
|
|
4669
4794
|
}
|
|
4670
|
-
var
|
|
4795
|
+
var Cs = {
|
|
4671
4796
|
AppHeader: "_AppHeader_1s0uj_1",
|
|
4672
4797
|
AppHeaderContent: "_AppHeaderContent_1s0uj_11",
|
|
4673
4798
|
AppHeaderLogo: "_AppHeaderLogo_1s0uj_28",
|
|
4674
4799
|
AppHeaderActions: "_AppHeaderActions_1s0uj_33"
|
|
4675
|
-
},
|
|
4800
|
+
}, ws = ({ brandDivider: e = !0, fluid: t = !1, children: n, logo: r, className: i }) => {
|
|
4676
4801
|
let o = a.toArray(n).length > 0;
|
|
4677
4802
|
return /* @__PURE__ */ M("header", {
|
|
4678
|
-
className: [
|
|
4803
|
+
className: [Cs.AppHeader, i].filter(Boolean).join(" "),
|
|
4679
4804
|
"data-brand-divider": e || void 0,
|
|
4680
4805
|
"data-has-children": o || void 0,
|
|
4681
|
-
children: [/* @__PURE__ */ M(
|
|
4682
|
-
className:
|
|
4806
|
+
children: [/* @__PURE__ */ M(fr, {
|
|
4807
|
+
className: Cs.AppHeaderContent,
|
|
4683
4808
|
"data-fluid": t || void 0,
|
|
4684
4809
|
children: [/* @__PURE__ */ j("div", {
|
|
4685
|
-
className:
|
|
4810
|
+
className: Cs.AppHeaderLogo,
|
|
4686
4811
|
children: r || /* @__PURE__ */ j("img", {
|
|
4687
4812
|
src: "/leabank-logo.png",
|
|
4688
4813
|
alt: "Logo",
|
|
4689
4814
|
width: 100
|
|
4690
4815
|
})
|
|
4691
4816
|
}), o && /* @__PURE__ */ j("div", {
|
|
4692
|
-
className:
|
|
4817
|
+
className: Cs.AppHeaderActions,
|
|
4693
4818
|
children: n
|
|
4694
4819
|
})]
|
|
4695
|
-
}), e && /* @__PURE__ */ j(
|
|
4696
|
-
});
|
|
4697
|
-
},
|
|
4698
|
-
Root: "
|
|
4699
|
-
Item: "
|
|
4700
|
-
Header: "
|
|
4701
|
-
Trigger: "
|
|
4702
|
-
Label: "
|
|
4703
|
-
Icon: "
|
|
4704
|
-
Panel: "
|
|
4705
|
-
Content: "
|
|
4706
|
-
},
|
|
4707
|
-
Header: () =>
|
|
4708
|
-
Item: () =>
|
|
4709
|
-
Panel: () =>
|
|
4710
|
-
Root: () =>
|
|
4711
|
-
Trigger: () =>
|
|
4820
|
+
}), e && /* @__PURE__ */ j(Dn, { size: "sm" })]
|
|
4821
|
+
});
|
|
4822
|
+
}, Ts = {
|
|
4823
|
+
Root: "_Root_b4izd_13",
|
|
4824
|
+
Item: "_Item_b4izd_10",
|
|
4825
|
+
Header: "_Header_b4izd_10",
|
|
4826
|
+
Trigger: "_Trigger_b4izd_110",
|
|
4827
|
+
Label: "_Label_b4izd_151",
|
|
4828
|
+
Icon: "_Icon_b4izd_155",
|
|
4829
|
+
Panel: "_Panel_b4izd_173",
|
|
4830
|
+
Content: "_Content_b4izd_184"
|
|
4831
|
+
}, Es = /* @__PURE__ */ Se({
|
|
4832
|
+
Header: () => ks,
|
|
4833
|
+
Item: () => Os,
|
|
4834
|
+
Panel: () => js,
|
|
4835
|
+
Root: () => Ds,
|
|
4836
|
+
Trigger: () => As
|
|
4712
4837
|
});
|
|
4713
|
-
function
|
|
4838
|
+
function Ds({ variant: e = "outline", iconPosition: t = "end", className: n, ...r }) {
|
|
4714
4839
|
return /* @__PURE__ */ j(be.Root, {
|
|
4715
4840
|
...r,
|
|
4716
4841
|
"data-variant": e,
|
|
4717
4842
|
"data-icon-position": t,
|
|
4718
|
-
className: G(
|
|
4843
|
+
className: G(Ts.Root, n)
|
|
4719
4844
|
});
|
|
4720
4845
|
}
|
|
4721
|
-
function
|
|
4846
|
+
function Os({ className: e, ...t }) {
|
|
4722
4847
|
return /* @__PURE__ */ j(be.Item, {
|
|
4723
4848
|
...t,
|
|
4724
|
-
className: G(
|
|
4849
|
+
className: G(Ts.Item, e)
|
|
4725
4850
|
});
|
|
4726
4851
|
}
|
|
4727
|
-
function
|
|
4852
|
+
function ks({ className: e, ...t }) {
|
|
4728
4853
|
return /* @__PURE__ */ j(be.Header, {
|
|
4729
4854
|
...t,
|
|
4730
|
-
className: G(
|
|
4855
|
+
className: G(Ts.Header, e)
|
|
4731
4856
|
});
|
|
4732
4857
|
}
|
|
4733
|
-
function
|
|
4858
|
+
function As({ children: e, className: t, ...n }) {
|
|
4734
4859
|
return /* @__PURE__ */ M(be.Trigger, {
|
|
4735
4860
|
...n,
|
|
4736
|
-
className: G(
|
|
4861
|
+
className: G(Ts.Trigger, t),
|
|
4737
4862
|
children: [/* @__PURE__ */ j("span", {
|
|
4738
|
-
className:
|
|
4863
|
+
className: Ts.Label,
|
|
4739
4864
|
children: e
|
|
4740
4865
|
}), /* @__PURE__ */ j(b, {
|
|
4741
|
-
className:
|
|
4866
|
+
className: Ts.Icon,
|
|
4742
4867
|
size: 20,
|
|
4743
4868
|
"aria-hidden": !0
|
|
4744
4869
|
})]
|
|
4745
4870
|
});
|
|
4746
4871
|
}
|
|
4747
|
-
function
|
|
4872
|
+
function js({ children: e, className: t, ...n }) {
|
|
4748
4873
|
return /* @__PURE__ */ j(be.Panel, {
|
|
4749
4874
|
...n,
|
|
4750
|
-
className: G(
|
|
4875
|
+
className: G(Ts.Panel, t),
|
|
4751
4876
|
children: /* @__PURE__ */ j("div", {
|
|
4752
|
-
className:
|
|
4877
|
+
className: Ts.Content,
|
|
4753
4878
|
children: e
|
|
4754
4879
|
})
|
|
4755
4880
|
});
|
|
4756
4881
|
}
|
|
4757
4882
|
//#endregion
|
|
4758
4883
|
//#region src/components/surfaces/accordion/simple-accordion.tsx
|
|
4759
|
-
function
|
|
4884
|
+
function Ms({ items: e, title: t, content: n, action: r, ...i }) {
|
|
4760
4885
|
let a = e ?? [{
|
|
4761
4886
|
title: t,
|
|
4762
4887
|
content: n,
|
|
4763
4888
|
action: r
|
|
4764
4889
|
}];
|
|
4765
|
-
return /* @__PURE__ */ j(
|
|
4890
|
+
return /* @__PURE__ */ j(Ds, {
|
|
4766
4891
|
...i,
|
|
4767
4892
|
children: a.map((e, t) => {
|
|
4768
4893
|
let n = e.value ?? String(t);
|
|
4769
|
-
return /* @__PURE__ */ M(
|
|
4894
|
+
return /* @__PURE__ */ M(Os, {
|
|
4770
4895
|
value: n,
|
|
4771
4896
|
disabled: e.disabled,
|
|
4772
|
-
children: [/* @__PURE__ */ M(
|
|
4897
|
+
children: [/* @__PURE__ */ M(ks, { children: [/* @__PURE__ */ j(As, { children: e.title }), e.action] }), /* @__PURE__ */ j(js, { children: e.content })]
|
|
4773
4898
|
}, n);
|
|
4774
4899
|
})
|
|
4775
4900
|
});
|
|
4776
4901
|
}
|
|
4777
|
-
var
|
|
4902
|
+
var Ns = { Panel: "_Panel_1n14v_7" };
|
|
4778
4903
|
//#endregion
|
|
4779
4904
|
//#region src/components/surfaces/panel/panel.tsx
|
|
4780
|
-
function
|
|
4905
|
+
function Ps({ render: e, ref: t, className: n, size: r, ...i }) {
|
|
4781
4906
|
return N({
|
|
4782
4907
|
render: e,
|
|
4783
4908
|
ref: t,
|
|
@@ -4785,36 +4910,36 @@ function Ts({ render: e, ref: t, className: n, size: r, ...i }) {
|
|
|
4785
4910
|
props: {
|
|
4786
4911
|
...i,
|
|
4787
4912
|
"data-size": r,
|
|
4788
|
-
className: G(
|
|
4913
|
+
className: G(Ns.Panel, n)({})
|
|
4789
4914
|
}
|
|
4790
4915
|
});
|
|
4791
4916
|
}
|
|
4792
4917
|
//#endregion
|
|
4793
4918
|
//#region src/hooks/country/country-context.tsx
|
|
4794
|
-
var
|
|
4795
|
-
function
|
|
4919
|
+
var Fs = s(null);
|
|
4920
|
+
function Is({ country: e, children: t }) {
|
|
4796
4921
|
let n = m(() => {
|
|
4797
|
-
let t =
|
|
4922
|
+
let t = Ta[e];
|
|
4798
4923
|
return {
|
|
4799
4924
|
country: t.country,
|
|
4800
4925
|
locale: t.locale,
|
|
4801
4926
|
currency: t.currency
|
|
4802
4927
|
};
|
|
4803
4928
|
}, [e]);
|
|
4804
|
-
return /* @__PURE__ */ j(
|
|
4929
|
+
return /* @__PURE__ */ j(Fs.Provider, {
|
|
4805
4930
|
value: n,
|
|
4806
4931
|
children: t
|
|
4807
4932
|
});
|
|
4808
4933
|
}
|
|
4809
|
-
function
|
|
4810
|
-
let e = u(
|
|
4934
|
+
function Ls() {
|
|
4935
|
+
let e = u(Fs);
|
|
4811
4936
|
if (!e) throw Error("Country hooks must be used within a <CountryProvider>.");
|
|
4812
4937
|
return e;
|
|
4813
4938
|
}
|
|
4814
4939
|
//#endregion
|
|
4815
4940
|
//#region src/hooks/use-format-currency.ts
|
|
4816
|
-
function
|
|
4817
|
-
let { locale: e, currency: t } =
|
|
4941
|
+
function Rs() {
|
|
4942
|
+
let { locale: e, currency: t } = Ls(), n = m(() => new Intl.NumberFormat(e, {
|
|
4818
4943
|
style: "currency",
|
|
4819
4944
|
currency: t
|
|
4820
4945
|
}), [e, t]);
|
|
@@ -4833,29 +4958,29 @@ function ks() {
|
|
|
4833
4958
|
}
|
|
4834
4959
|
//#endregion
|
|
4835
4960
|
//#region src/hooks/use-format-date.ts
|
|
4836
|
-
var
|
|
4961
|
+
var zs = {
|
|
4837
4962
|
year: "numeric",
|
|
4838
4963
|
month: "short",
|
|
4839
4964
|
day: "numeric"
|
|
4840
4965
|
};
|
|
4841
|
-
function
|
|
4966
|
+
function Bs(e) {
|
|
4842
4967
|
return e instanceof Date ? e : new Date(e);
|
|
4843
4968
|
}
|
|
4844
|
-
function
|
|
4845
|
-
let { locale: e } =
|
|
4969
|
+
function Vs() {
|
|
4970
|
+
let { locale: e } = Ls(), t = m(() => new Intl.DateTimeFormat(e, zs), [e]);
|
|
4846
4971
|
return l((n, r) => {
|
|
4847
|
-
let i =
|
|
4972
|
+
let i = Bs(n);
|
|
4848
4973
|
return r ? new Intl.DateTimeFormat(e, r).format(i) : t.format(i);
|
|
4849
4974
|
}, [t, e]);
|
|
4850
4975
|
}
|
|
4851
4976
|
//#endregion
|
|
4852
4977
|
//#region src/hooks/use-format-number.ts
|
|
4853
|
-
function
|
|
4854
|
-
let { locale: e } =
|
|
4978
|
+
function Hs() {
|
|
4979
|
+
let { locale: e } = Ls(), t = m(() => new Intl.NumberFormat(e), [e]);
|
|
4855
4980
|
return l((n, r) => r ? new Intl.NumberFormat(e, r).format(n) : t.format(n), [t, e]);
|
|
4856
4981
|
}
|
|
4857
|
-
function
|
|
4858
|
-
let { locale: e } =
|
|
4982
|
+
function Us() {
|
|
4983
|
+
let { locale: e } = Ls(), t = m(() => new Intl.NumberFormat(e, {
|
|
4859
4984
|
style: "percent",
|
|
4860
4985
|
minimumFractionDigits: 2,
|
|
4861
4986
|
maximumFractionDigits: 2
|
|
@@ -4867,21 +4992,21 @@ function Ps() {
|
|
|
4867
4992
|
}
|
|
4868
4993
|
//#endregion
|
|
4869
4994
|
//#region src/hooks/validation/use-validation.ts
|
|
4870
|
-
function
|
|
4871
|
-
let { country: e } =
|
|
4995
|
+
function Ws() {
|
|
4996
|
+
let { country: e } = Ls(), t = l((t) => mi(e, t), [e]), n = l((t) => hi(e, t), [e]);
|
|
4872
4997
|
return Object.assign(t, { validate: n });
|
|
4873
4998
|
}
|
|
4874
|
-
function
|
|
4875
|
-
let { country: e } =
|
|
4999
|
+
function Gs() {
|
|
5000
|
+
let { country: e } = Ls(), t = l((t) => Ci(e, t), [e]), n = l((t) => Si(e, t), [e]);
|
|
4876
5001
|
return Object.assign(t, { validate: n });
|
|
4877
5002
|
}
|
|
4878
|
-
function
|
|
4879
|
-
let { country: e } =
|
|
5003
|
+
function Ks() {
|
|
5004
|
+
let { country: e } = Ls(), t = l((t) => Li(e, t), [e]), n = l((t) => Ii(e, t), [e]);
|
|
4880
5005
|
return Object.assign(t, { validate: n });
|
|
4881
5006
|
}
|
|
4882
5007
|
//#endregion
|
|
4883
5008
|
//#region src/provider/lea-provider.tsx
|
|
4884
|
-
function
|
|
5009
|
+
function qs({ language: e = "no", children: t }) {
|
|
4885
5010
|
return /* @__PURE__ */ j(Ve.Provider, {
|
|
4886
5011
|
value: e,
|
|
4887
5012
|
children: t
|
|
@@ -4889,37 +5014,37 @@ function Rs({ language: e = "no", children: t }) {
|
|
|
4889
5014
|
}
|
|
4890
5015
|
//#endregion
|
|
4891
5016
|
//#region src/theme/tokens/breakpoints.ts
|
|
4892
|
-
var
|
|
5017
|
+
var Js = {
|
|
4893
5018
|
xs: 0,
|
|
4894
5019
|
sm: 600,
|
|
4895
5020
|
md: 900,
|
|
4896
5021
|
lg: 1200,
|
|
4897
5022
|
xl: 1536
|
|
4898
|
-
},
|
|
5023
|
+
}, Ys = {
|
|
4899
5024
|
mobile: 640,
|
|
4900
5025
|
tablet: 768,
|
|
4901
5026
|
desktop: 1024,
|
|
4902
5027
|
header: 1312,
|
|
4903
5028
|
wide: 1440
|
|
4904
|
-
},
|
|
5029
|
+
}, Xs = ({ value: e, decimalPlaces: t = 2 }) => Number(Math.round(parseFloat(e + "e" + t)) + "e-" + t), Zs = ({ value: e, decimalPlaces: t = 2 }) => Xs({
|
|
4905
5030
|
value: e,
|
|
4906
5031
|
decimalPlaces: t
|
|
4907
|
-
}).toFixed(t),
|
|
5032
|
+
}).toFixed(t), Qs = ({ value: e, decimalPlaces: t = 2 }) => Xs({
|
|
4908
5033
|
value: e,
|
|
4909
5034
|
decimalPlaces: t
|
|
4910
|
-
}) % 1 == 0 ?
|
|
5035
|
+
}) % 1 == 0 ? Zs({
|
|
4911
5036
|
value: e,
|
|
4912
5037
|
decimalPlaces: 0
|
|
4913
|
-
}).replace(".", ",") :
|
|
5038
|
+
}).replace(".", ",") : Zs({
|
|
4914
5039
|
value: e,
|
|
4915
5040
|
decimalPlaces: t
|
|
4916
|
-
}).replace(".", ","),
|
|
5041
|
+
}).replace(".", ","), $s = (e, t = 2) => Qs({
|
|
4917
5042
|
value: e,
|
|
4918
5043
|
decimalPlaces: t
|
|
4919
5044
|
}) + "%";
|
|
4920
5045
|
//#endregion
|
|
4921
5046
|
//#region src/utils/parse-expiration-date.ts
|
|
4922
|
-
function
|
|
5047
|
+
function ec(e) {
|
|
4923
5048
|
let t = e.match(/^([0-9]{2})([0-9]{2})$/);
|
|
4924
5049
|
return t ? {
|
|
4925
5050
|
month: t[1],
|
|
@@ -4930,6 +5055,6 @@ function Gs(e) {
|
|
|
4930
5055
|
};
|
|
4931
5056
|
}
|
|
4932
5057
|
//#endregion
|
|
4933
|
-
export {
|
|
5058
|
+
export { Es as Accordion, lt as ActionButton, dt as ActionButtonProvider, Mn as Alert, Nn as AlertTitle, Pr as AmountSlider, ws as AppHeader, Cn as ArticleCard, Yr as Autocomplete, Ut as Avatar, Dn as BrandDivider, ps as Breadcrumbs, ft as Button, Wi as COMMON_EMAIL_DOMAINS, Ta as COUNTRIES, At as Card, jt as CardContent, qe as CheckAnimation, ti as Checkbox, Pt as Chip, ht as CloseButton, fr as Container, Is as CountryProvider, Re as DEFAULT_LANGUAGE, Ot as DataField, Fn as Dialog, yt as DownloadTrigger, Xn as Drawer, ua as EmailInput, on as FeaturedImage, Jo as FormStepper, pr as GlobalAlert, Po as Grid, Io as GridItem, zo as HStack, mt as IconButton, ha as Input, Le as LANGUAGES, Ve as LanguageContext, qs as LeaProvider, Xo as LinearFormStepper, ta as Link, mn as LinkCard, ra as List, $e as Loader, _n as MediaCard, wa as MultiSelect, gi as NATIONAL_ID_LENGTH, ja as NumberInput, Na as PINNED_COUNTRIES, bs as Pagination, Ss as PaginationDots, Ps as Panel, Tn as PartnerRow, Ja as PhoneNumberInput, Ko as ProgressCircle, Ze as PulseAnimation, lo as RadioCard, io as RadioGroup, rn as RichText, bo as SearchInput, So as Select, yn as ServiceCard, Ms as SimpleAccordion, mr as SimpleDialog, hr as SimpleDrawer, Dr as Skeleton, xt as SkipLink, wo as Slider, Ro as Stack, qt as StarRating, et as StatusAnimation, nt as StatusIcon, ns as StepProgressHeader, $o as StepProgressProvider, Ao as Switch, Xt as Table, Qt as TableBody, tn as TableCell, Zt as TableHead, en as TableHeaderCell, $t as TableRow, is as Tabs, xn as TestimonialCard, Tt as Text, Cr as ToastProvider, Vt as Tooltip, un as VideoPlayer, Js as breakpoints, yr as createToastManager, W as createTranslation, _t as downloadFile, Xs as fixDecimals, Zs as fixDecimalsToString, Pa as flagEmoji, Qs as formatDecimalString, $s as formatPercentage, Fa as getCountryOptions, qi as getEmailDomainSuggestions, X as invalid, Ti as isMobileCountry, Ji as isSameEmail, bi as isSameNationalId, Di as isSamePhone, Li as isValidBankAccount, Ki as isValidEmail, zi as isValidFinnishDomesticReference, ai as isValidFinnishNationalId, Hi as isValidFinnishReference, Bi as isValidFinnishRfReference, Mi as isValidIban, mi as isValidNationalId, Pi as isValidNorwegianAccount, li as isValidNorwegianNationalId, Ci as isValidPhoneNumber, fi as isValidSpanishNationalId, Fi as isValidSwedishAccount, ri as isValidSwedishNationalId, yi as normalizeNationalId, ec as parseExpirationDate, gt as resolveDownloadData, $i as suggestEmailCorrection, Be as toLanguage, Ls as useCountry, Rs as useFormatCurrency, Vs as useFormatDate, Hs as useFormatNumber, Us as useFormatPercentage, He as useLanguage, ts as useReportStepProgress, es as useStepProgress, qo as useStepperLabels, xr as useToastManager, Ks as useValidateBankAccount, Ws as useValidateNationalId, Gs as useValidatePhoneNumber, Z as valid, Ii as validateBankAccount, Gi as validateEmail, Vi as validateFinnishReference, Ei as validateMobileNumber, hi as validateNationalId, Si as validatePhoneNumber, Ys as websiteBreakpoints };
|
|
4934
5059
|
|
|
4935
5060
|
//# sourceMappingURL=component-library.es.js.map
|