@leabankab/component-library 8.9.0 → 8.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/component-library.es.js +715 -713
- 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.d.ts → action-button/action-button.d.ts} +1 -1
- package/dist/components/buttons/{button.d.ts → button/button.d.ts} +2 -2
- package/dist/components/buttons/{close-button.d.ts → close-button/close-button.d.ts} +1 -1
- package/dist/components/buttons/{download-trigger.d.ts → download-trigger/download-trigger.d.ts} +2 -2
- package/dist/components/buttons/{icon-button.d.ts → icon-button/icon-button.d.ts} +1 -1
- package/dist/components/buttons/index.d.ts +6 -6
- package/dist/components/buttons/{skip-link.d.ts → skip-link/skip-link.d.ts} +1 -1
- package/dist/components/data-display/{card.d.ts → card/card.d.ts} +1 -1
- package/dist/components/data-display/{chip.d.ts → chip/chip.d.ts} +1 -1
- package/dist/components/data-display/index.d.ts +17 -16
- package/dist/components/data-display/{link-card.d.ts → link-card/link-card.d.ts} +1 -1
- package/dist/components/data-display/{media-card.d.ts → media-card/media-card.d.ts} +1 -1
- package/dist/components/data-display/{service-card.d.ts → service-card/service-card.d.ts} +1 -1
- package/dist/components/feedback/{alert.d.ts → alert/alert.d.ts} +2 -2
- package/dist/components/feedback/{global-alert.d.ts → global-alert/global-alert.d.ts} +1 -1
- package/dist/components/feedback/index.d.ts +8 -8
- package/dist/components/feedback/{toast.d.ts → toast/toast.d.ts} +1 -1
- package/dist/components/form/{autocomplete.d.ts → autocomplete/autocomplete.d.ts} +2 -2
- package/dist/components/form/{email-input.d.ts → email-input/email-input.d.ts} +1 -1
- package/dist/components/form/index.d.ts +12 -12
- package/dist/components/form/{multi-select.d.ts → multi-select/multi-select.d.ts} +1 -1
- package/dist/components/form/{number-input-unit.d.ts → number-input/number-input-unit.d.ts} +2 -2
- package/dist/components/form/{radio.d.ts → radio/radio.d.ts} +2 -2
- package/dist/components/form/{radio-card.d.ts → radio-card/radio-card.d.ts} +3 -3
- package/dist/components/form/{select.d.ts → select/select.d.ts} +1 -1
- package/dist/components/form/{slider.d.ts → slider/slider.d.ts} +1 -1
- package/dist/components/index.d.ts +1 -2
- package/dist/components/layout/{container.d.ts → container/container.d.ts} +1 -1
- package/dist/components/layout/{grid.d.ts → grid/grid.d.ts} +2 -2
- package/dist/components/layout/index.d.ts +3 -3
- package/dist/components/layout/{stack.d.ts → stack/stack.d.ts} +2 -2
- package/dist/components/navigation/{form-stepper.d.ts → form-stepper/form-stepper.d.ts} +2 -2
- package/dist/components/navigation/index.d.ts +9 -8
- package/dist/components/navigation/{linear-form-stepper.d.ts → linear-form-stepper/linear-form-stepper.d.ts} +2 -2
- package/dist/components/navigation/{progress-circle.d.ts → progress-circle/progress-circle.d.ts} +1 -1
- package/dist/components/navigation/{tabs.d.ts → tabs/tabs.d.ts} +1 -1
- package/dist/components/surfaces/index.d.ts +3 -3
- package/dist/components/typography/index.d.ts +3 -3
- package/dist/components/typography/{link.d.ts → link/link.d.ts} +1 -1
- package/dist/components/typography/{text.d.ts → text/text.d.ts} +4 -4
- package/dist/cookie-consent-react.cjs.map +1 -1
- package/dist/cookie-consent-react.mjs +3 -3
- package/dist/cookie-consent-react.mjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/utils/{formatDecimalString.d.ts → format-decimal-string.d.ts} +1 -1
- package/dist/utils/index.d.ts +5 -5
- package/dist/website/{use-carousel.d.ts → carousel/use-carousel.d.ts} +3 -1
- package/dist/website/{expanding-cards-item.d.ts → expanding-cards/expanding-cards-item.d.ts} +1 -1
- package/dist/website/index.d.ts +25 -25
- package/dist/website/{payment-feature.d.ts → payment-feature/payment-feature.d.ts} +1 -1
- package/dist/website/{section.d.ts → section/section.d.ts} +1 -1
- package/dist/website/{side-nav.d.ts → side-nav/side-nav.d.ts} +1 -1
- package/dist/website/{site-footer.d.ts → site-footer/site-footer.d.ts} +1 -1
- package/dist/website/site-header-link.d.ts +1 -1
- package/dist/website.cjs +1 -1
- package/dist/website.cjs.map +1 -1
- package/dist/website.mjs +317 -272
- package/dist/website.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/components/ui/index.d.ts +0 -2
- /package/dist/components/buttons/{use-download-labels.d.ts → download-trigger/use-download-labels.d.ts} +0 -0
- /package/dist/components/data-display/{article-card.d.ts → article-card/article-card.d.ts} +0 -0
- /package/dist/components/data-display/{avatar.d.ts → avatar/avatar.d.ts} +0 -0
- /package/dist/components/{ui → data-display/brand-divider}/brand-divider.d.ts +0 -0
- /package/dist/components/data-display/{use-chip-labels.d.ts → chip/use-chip-labels.d.ts} +0 -0
- /package/dist/components/data-display/{data-field.d.ts → data-field/data-field.d.ts} +0 -0
- /package/dist/components/data-display/{featured-image.d.ts → featured-image/featured-image.d.ts} +0 -0
- /package/dist/components/data-display/{arrow-circle.d.ts → link-card/arrow-circle.d.ts} +0 -0
- /package/dist/components/data-display/{partner-row.d.ts → partner-row/partner-row.d.ts} +0 -0
- /package/dist/components/data-display/{rich-text.d.ts → rich-text/rich-text.d.ts} +0 -0
- /package/dist/components/data-display/{star-rating.d.ts → star-rating/star-rating.d.ts} +0 -0
- /package/dist/components/data-display/{use-star-rating-labels.d.ts → star-rating/use-star-rating-labels.d.ts} +0 -0
- /package/dist/components/data-display/{table.d.ts → table/table.d.ts} +0 -0
- /package/dist/components/data-display/{testimonial-card.d.ts → testimonial-card/testimonial-card.d.ts} +0 -0
- /package/dist/components/data-display/{tooltip.d.ts → tooltip/tooltip.d.ts} +0 -0
- /package/dist/components/data-display/{use-video-player-labels.d.ts → video-player/use-video-player-labels.d.ts} +0 -0
- /package/dist/components/data-display/{video-player.d.ts → video-player/video-player.d.ts} +0 -0
- /package/dist/components/feedback/{dialog.d.ts → dialog/dialog.d.ts} +0 -0
- /package/dist/components/feedback/{simple-dialog.d.ts → dialog/simple-dialog.d.ts} +0 -0
- /package/dist/components/feedback/{drawer.d.ts → drawer/drawer.d.ts} +0 -0
- /package/dist/components/feedback/{simple-drawer.d.ts → drawer/simple-drawer.d.ts} +0 -0
- /package/dist/components/feedback/{skeleton.d.ts → skeleton/skeleton.d.ts} +0 -0
- /package/dist/components/form/{amount-slider.d.ts → amount-slider/amount-slider.d.ts} +0 -0
- /package/dist/components/form/{checkbox.d.ts → checkbox/checkbox.d.ts} +0 -0
- /package/dist/components/form/{input.d.ts → input/input.d.ts} +0 -0
- /package/dist/components/form/{number-input.d.ts → number-input/number-input.d.ts} +0 -0
- /package/dist/components/form/{switch.d.ts → switch/switch.d.ts} +0 -0
- /package/dist/components/{ui → navigation/app-header}/app-header.d.ts +0 -0
- /package/dist/components/navigation/{breadcrumbs.d.ts → breadcrumbs/breadcrumbs.d.ts} +0 -0
- /package/dist/components/navigation/{use-breadcrumbs-labels.d.ts → breadcrumbs/use-breadcrumbs-labels.d.ts} +0 -0
- /package/dist/components/navigation/{step-progress.d.ts → linear-form-stepper/step-progress.d.ts} +0 -0
- /package/dist/components/navigation/{pagination.d.ts → pagination/pagination.d.ts} +0 -0
- /package/dist/components/navigation/{pagination-dots.d.ts → pagination-dots/pagination-dots.d.ts} +0 -0
- /package/dist/components/surfaces/{accordion.d.ts → accordion/accordion.d.ts} +0 -0
- /package/dist/components/surfaces/{simple-accordion.d.ts → accordion/simple-accordion.d.ts} +0 -0
- /package/dist/components/surfaces/{panel.d.ts → panel/panel.d.ts} +0 -0
- /package/dist/components/typography/{lists.d.ts → lists/lists.d.ts} +0 -0
- /package/dist/utils/{downloadFile.d.ts → download-file.d.ts} +0 -0
- /package/dist/utils/{formatDecimal.d.ts → format-decimal.d.ts} +0 -0
- /package/dist/utils/{formatPercentage.d.ts → format-percentage.d.ts} +0 -0
- /package/dist/utils/{parseExpirationDate.d.ts → parse-expiration-date.d.ts} +0 -0
- /package/dist/website/{alert-banner.d.ts → alert-banner/alert-banner.d.ts} +0 -0
- /package/dist/website/{brand-letters.d.ts → brand-letters/brand-letters.d.ts} +0 -0
- /package/dist/website/{use-brand-letters-labels.d.ts → brand-letters/use-brand-letters-labels.d.ts} +0 -0
- /package/dist/website/{calculator.d.ts → calculator/calculator.d.ts} +0 -0
- /package/dist/website/{carousel.d.ts → carousel/carousel.d.ts} +0 -0
- /package/dist/website/{use-carousel-labels.d.ts → carousel/use-carousel-labels.d.ts} +0 -0
- /package/dist/website/{cta-banner.d.ts → cta-banner/cta-banner.d.ts} +0 -0
- /package/dist/website/{expanding-cards-context.d.ts → expanding-cards/expanding-cards-context.d.ts} +0 -0
- /package/dist/website/{expanding-cards.d.ts → expanding-cards/expanding-cards.d.ts} +0 -0
- /package/dist/website/{hero.d.ts → hero/hero.d.ts} +0 -0
- /package/dist/website/{hero-service-grid.d.ts → hero-service-grid/hero-service-grid.d.ts} +0 -0
- /package/dist/website/{navigation-grid.d.ts → navigation-grid/navigation-grid.d.ts} +0 -0
- /package/dist/website/{partner-list.d.ts → partner-list/partner-list.d.ts} +0 -0
- /package/dist/website/{use-partner-list-labels.d.ts → partner-list/use-partner-list-labels.d.ts} +0 -0
- /package/dist/website/{promo-grid.d.ts → promo-grid/promo-grid.d.ts} +0 -0
- /package/dist/website/{section-header.d.ts → section-header/section-header.d.ts} +0 -0
- /package/dist/website/{service-card-grid.d.ts → service-card-grid/service-card-grid.d.ts} +0 -0
- /package/dist/website/{use-side-nav-labels.d.ts → side-nav/use-side-nav-labels.d.ts} +0 -0
- /package/dist/website/{flags.d.ts → site-footer/flags.d.ts} +0 -0
- /package/dist/website/{use-site-footer-labels.d.ts → site-footer/use-site-footer-labels.d.ts} +0 -0
- /package/dist/website/{site-header-menu.d.ts → site-header/site-header-menu.d.ts} +0 -0
- /package/dist/website/{site-header.d.ts → site-header/site-header.d.ts} +0 -0
- /package/dist/website/{split-content.d.ts → split-content/split-content.d.ts} +0 -0
- /package/dist/website/{stats.d.ts → stats/stats.d.ts} +0 -0
- /package/dist/website/{testimonials.d.ts → testimonials/testimonials.d.ts} +0 -0
- /package/dist/website/{use-testimonials-labels.d.ts → testimonials/use-testimonials-labels.d.ts} +0 -0
|
@@ -691,7 +691,7 @@ function at({ variant: e = "solid", color: t = "primary", size: n = "md", classN
|
|
|
691
691
|
});
|
|
692
692
|
}
|
|
693
693
|
//#endregion
|
|
694
|
-
//#region src/components/buttons/action-button.tsx
|
|
694
|
+
//#region src/components/buttons/action-button/action-button.tsx
|
|
695
695
|
function ot({ children: e, className: t, size: n = "lg", iconOnly: r = !1, ...i }) {
|
|
696
696
|
return /* @__PURE__ */ M(it, {
|
|
697
697
|
...i,
|
|
@@ -709,7 +709,7 @@ function ot({ children: e, className: t, size: n = "lg", iconOnly: r = !1, ...i
|
|
|
709
709
|
});
|
|
710
710
|
}
|
|
711
711
|
//#endregion
|
|
712
|
-
//#region src/components/buttons/button.tsx
|
|
712
|
+
//#region src/components/buttons/button/button.tsx
|
|
713
713
|
function st({ startIcon: e, endIcon: t, loading: n = !1, loadingLabel: r, children: i, ...a }) {
|
|
714
714
|
return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ M(at, {
|
|
715
715
|
...a,
|
|
@@ -739,7 +739,7 @@ var ct = U({ close: {
|
|
|
739
739
|
es: "Cerrar"
|
|
740
740
|
} });
|
|
741
741
|
//#endregion
|
|
742
|
-
//#region src/components/buttons/icon-button.tsx
|
|
742
|
+
//#region src/components/buttons/icon-button/icon-button.tsx
|
|
743
743
|
function lt({ loading: e = !1, className: t, children: n, ...r }) {
|
|
744
744
|
return /* @__PURE__ */ j(at, {
|
|
745
745
|
...r,
|
|
@@ -752,7 +752,7 @@ function lt({ loading: e = !1, className: t, children: n, ...r }) {
|
|
|
752
752
|
});
|
|
753
753
|
}
|
|
754
754
|
//#endregion
|
|
755
|
-
//#region src/components/buttons/close-button.tsx
|
|
755
|
+
//#region src/components/buttons/close-button/close-button.tsx
|
|
756
756
|
function ut({ label: e, variant: t = "ghost", color: n = "secondary", ...r }) {
|
|
757
757
|
let i = ct();
|
|
758
758
|
return /* @__PURE__ */ j(lt, {
|
|
@@ -764,7 +764,7 @@ function ut({ label: e, variant: t = "ghost", color: n = "secondary", ...r }) {
|
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
766
|
//#endregion
|
|
767
|
-
//#region src/utils/
|
|
767
|
+
//#region src/utils/download-file.ts
|
|
768
768
|
async function dt(e) {
|
|
769
769
|
return typeof e == "function" ? e() : e;
|
|
770
770
|
}
|
|
@@ -773,7 +773,7 @@ function ft(e, t, n) {
|
|
|
773
773
|
a.href = i, a.download = t, a.rel = "noopener", a.click(), URL.revokeObjectURL(i);
|
|
774
774
|
}
|
|
775
775
|
//#endregion
|
|
776
|
-
//#region src/components/buttons/use-download-labels.ts
|
|
776
|
+
//#region src/components/buttons/download-trigger/use-download-labels.ts
|
|
777
777
|
var pt = U({ download: {
|
|
778
778
|
no: "Last ned",
|
|
779
779
|
se: "Ladda ner",
|
|
@@ -798,7 +798,7 @@ var pt = U({ download: {
|
|
|
798
798
|
});
|
|
799
799
|
}, ht = { SkipLink: "_SkipLink_1f71c_1" };
|
|
800
800
|
//#endregion
|
|
801
|
-
//#region src/components/buttons/skip-link.tsx
|
|
801
|
+
//#region src/components/buttons/skip-link/skip-link.tsx
|
|
802
802
|
function gt({ href: e, children: t, className: n, style: r }) {
|
|
803
803
|
return /* @__PURE__ */ j(at, {
|
|
804
804
|
render: /* @__PURE__ */ j("a", { href: e }),
|
|
@@ -870,7 +870,7 @@ var xt = {
|
|
|
870
870
|
Content: "_Content_6b69s_57"
|
|
871
871
|
};
|
|
872
872
|
//#endregion
|
|
873
|
-
//#region src/components/data-display/card.tsx
|
|
873
|
+
//#region src/components/data-display/card/card.tsx
|
|
874
874
|
function Tt({ render: e, ref: t, className: n, color: r, variant: i = "outlined", ...a }) {
|
|
875
875
|
return N({
|
|
876
876
|
render: e,
|
|
@@ -905,7 +905,7 @@ var Dt = {
|
|
|
905
905
|
es: "Eliminar"
|
|
906
906
|
} });
|
|
907
907
|
//#endregion
|
|
908
|
-
//#region src/components/data-display/chip.tsx
|
|
908
|
+
//#region src/components/data-display/chip/chip.tsx
|
|
909
909
|
function kt({ 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 }) {
|
|
910
910
|
let d = Ot(), f = o ?? (typeof e == "string" ? `${d.remove} ${e}` : d.remove);
|
|
911
911
|
return /* @__PURE__ */ M("span", {
|
|
@@ -1025,7 +1025,7 @@ var Lt = {
|
|
|
1025
1025
|
Fallback: "_Fallback_11qzb_20"
|
|
1026
1026
|
};
|
|
1027
1027
|
//#endregion
|
|
1028
|
-
//#region src/components/data-display/avatar.tsx
|
|
1028
|
+
//#region src/components/data-display/avatar/avatar.tsx
|
|
1029
1029
|
function Rt({ src: e, alt: t, imageRender: n, className: r, ...i }) {
|
|
1030
1030
|
return /* @__PURE__ */ M(ae.Root, {
|
|
1031
1031
|
...i,
|
|
@@ -1168,7 +1168,7 @@ function Xt({ render: e, ref: t, className: n, align: r, ...i }) {
|
|
|
1168
1168
|
}
|
|
1169
1169
|
var Zt = { RichText: "_RichText_yo3dd_11" };
|
|
1170
1170
|
//#endregion
|
|
1171
|
-
//#region src/components/data-display/rich-text.tsx
|
|
1171
|
+
//#region src/components/data-display/rich-text/rich-text.tsx
|
|
1172
1172
|
function Qt({ render: e, ref: t, className: n, ...r }) {
|
|
1173
1173
|
return N({
|
|
1174
1174
|
render: e,
|
|
@@ -1186,7 +1186,7 @@ var $t = {
|
|
|
1186
1186
|
Action: "_Action_13cbe_35"
|
|
1187
1187
|
};
|
|
1188
1188
|
//#endregion
|
|
1189
|
-
//#region src/components/data-display/featured-image.tsx
|
|
1189
|
+
//#region src/components/data-display/featured-image/featured-image.tsx
|
|
1190
1190
|
function en({ src: e, alt: t, imageRender: n, action: r, className: i, ...a }) {
|
|
1191
1191
|
let o = N({
|
|
1192
1192
|
render: n,
|
|
@@ -1267,7 +1267,7 @@ var on = {
|
|
|
1267
1267
|
Arrow: "_Arrow_154zo_2"
|
|
1268
1268
|
};
|
|
1269
1269
|
//#endregion
|
|
1270
|
-
//#region src/components/data-display/arrow-circle.tsx
|
|
1270
|
+
//#region src/components/data-display/link-card/arrow-circle.tsx
|
|
1271
1271
|
function sn({ variant: e = "outline", size: t = "lg", className: n }) {
|
|
1272
1272
|
return /* @__PURE__ */ j("span", {
|
|
1273
1273
|
"aria-hidden": !0,
|
|
@@ -1283,7 +1283,7 @@ var cn = {
|
|
|
1283
1283
|
Arrow: "_Arrow_1jl1o_69"
|
|
1284
1284
|
};
|
|
1285
1285
|
//#endregion
|
|
1286
|
-
//#region src/components/data-display/link-card.tsx
|
|
1286
|
+
//#region src/components/data-display/link-card/link-card.tsx
|
|
1287
1287
|
function ln({ title: e, titleRender: t, surface: n = "base", render: r, ref: i, className: a, ...o }) {
|
|
1288
1288
|
let s = N({
|
|
1289
1289
|
render: t,
|
|
@@ -1317,7 +1317,7 @@ var un = {
|
|
|
1317
1317
|
Image: "_Image_7szz1_109"
|
|
1318
1318
|
}, dn = (e) => c(e) && (e.props.href != null || e.props.to != null);
|
|
1319
1319
|
//#endregion
|
|
1320
|
-
//#region src/components/data-display/media-card.tsx
|
|
1320
|
+
//#region src/components/data-display/media-card/media-card.tsx
|
|
1321
1321
|
function fn({ 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 }) {
|
|
1322
1322
|
let _ = f(), v = dn(p), y = `${_}-title`, b = `${_}-text`, x = o === "horizontal", S = N({
|
|
1323
1323
|
render: t,
|
|
@@ -1390,7 +1390,7 @@ var pn = {
|
|
|
1390
1390
|
Text: "_Text_6lhty_90"
|
|
1391
1391
|
};
|
|
1392
1392
|
//#endregion
|
|
1393
|
-
//#region src/components/data-display/service-card.tsx
|
|
1393
|
+
//#region src/components/data-display/service-card/service-card.tsx
|
|
1394
1394
|
function mn({ 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 }) {
|
|
1395
1395
|
let m = f(), h = dn(l), g = `${m}-title`, _ = `${m}-text`, v = N({
|
|
1396
1396
|
render: t,
|
|
@@ -1453,7 +1453,7 @@ var hn = {
|
|
|
1453
1453
|
Meta: "_Meta_fjkq4_79"
|
|
1454
1454
|
};
|
|
1455
1455
|
//#endregion
|
|
1456
|
-
//#region src/components/data-display/testimonial-card.tsx
|
|
1456
|
+
//#region src/components/data-display/testimonial-card/testimonial-card.tsx
|
|
1457
1457
|
function gn({ quote: e, name: t, meta: n, rating: r, avatarSrc: i, avatarImageRender: a, className: o, ...s }) {
|
|
1458
1458
|
return /* @__PURE__ */ M("figure", {
|
|
1459
1459
|
...s,
|
|
@@ -1493,7 +1493,7 @@ var _n = {
|
|
|
1493
1493
|
Meta: "_Meta_1mnm0_79"
|
|
1494
1494
|
};
|
|
1495
1495
|
//#endregion
|
|
1496
|
-
//#region src/components/data-display/article-card.tsx
|
|
1496
|
+
//#region src/components/data-display/article-card/article-card.tsx
|
|
1497
1497
|
function vn({ title: e, titleRender: t, excerpt: n, meta: r, src: i, alt: a, imageRender: o, variant: s = "post", render: c, ref: l, className: u, ...d }) {
|
|
1498
1498
|
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({
|
|
1499
1499
|
render: t,
|
|
@@ -1553,7 +1553,7 @@ var yn = {
|
|
|
1553
1553
|
Logo: "_Logo_1nldh_50"
|
|
1554
1554
|
};
|
|
1555
1555
|
//#endregion
|
|
1556
|
-
//#region src/components/data-display/partner-row.tsx
|
|
1556
|
+
//#region src/components/data-display/partner-row/partner-row.tsx
|
|
1557
1557
|
function bn({ src: e, alt: t, imageRender: n, render: r, ref: i, className: a, children: o, ...s }) {
|
|
1558
1558
|
let c = N({
|
|
1559
1559
|
enabled: e != null,
|
|
@@ -1583,7 +1583,11 @@ function bn({ src: e, alt: t, imageRender: n, render: r, ref: i, className: a, c
|
|
|
1583
1583
|
}
|
|
1584
1584
|
});
|
|
1585
1585
|
}
|
|
1586
|
-
var
|
|
1586
|
+
var xn = { BrandDivider: "_BrandDivider_10exs_6" }, Sn = ({ size: e = "sm" }) => /* @__PURE__ */ j("div", {
|
|
1587
|
+
"aria-hidden": "true",
|
|
1588
|
+
className: xn.BrandDivider,
|
|
1589
|
+
"data-size": e
|
|
1590
|
+
}), K = {
|
|
1587
1591
|
Alert: "_Alert_q79pt_9",
|
|
1588
1592
|
Layout: "_Layout_q79pt_31",
|
|
1589
1593
|
Icon: "_Icon_q79pt_37",
|
|
@@ -1591,7 +1595,7 @@ var K = {
|
|
|
1591
1595
|
Title: "_Title_q79pt_58",
|
|
1592
1596
|
Action: "_Action_q79pt_62",
|
|
1593
1597
|
Close: "_Close_q79pt_110"
|
|
1594
|
-
},
|
|
1598
|
+
}, Cn = ["primary", "neutral"], wn = {
|
|
1595
1599
|
success: /* @__PURE__ */ j(C, {
|
|
1596
1600
|
size: "1em",
|
|
1597
1601
|
"aria-hidden": !0
|
|
@@ -1608,15 +1612,15 @@ var K = {
|
|
|
1608
1612
|
size: "1em",
|
|
1609
1613
|
"aria-hidden": !0
|
|
1610
1614
|
})
|
|
1611
|
-
},
|
|
1612
|
-
function
|
|
1613
|
-
let d =
|
|
1615
|
+
}, Tn = (e, t) => e ?? (t && Cn.includes(t) ? "info" : "success");
|
|
1616
|
+
function En({ severity: e, color: t, variant: n = "standard", size: r = "lg", icon: i, action: a, onClose: o, closeLabel: s, role: c, children: l, ...u }) {
|
|
1617
|
+
let d = Tn(e, t), f = {
|
|
1614
1618
|
...u,
|
|
1615
1619
|
role: c ?? (d === "error" || d === "warning" ? "alert" : "status"),
|
|
1616
1620
|
"data-color": t ?? d,
|
|
1617
1621
|
"data-variant": n,
|
|
1618
1622
|
"data-size": r
|
|
1619
|
-
}, p = i === void 0 ?
|
|
1623
|
+
}, p = i === void 0 ? wn[d] : i, m = a ?? (o && /* @__PURE__ */ j(ut, {
|
|
1620
1624
|
size: "sm",
|
|
1621
1625
|
label: s,
|
|
1622
1626
|
onClick: o,
|
|
@@ -1641,9 +1645,9 @@ function wn({ severity: e, color: t, variant: n = "standard", size: r = "lg", ic
|
|
|
1641
1645
|
};
|
|
1642
1646
|
}
|
|
1643
1647
|
//#endregion
|
|
1644
|
-
//#region src/components/feedback/alert.tsx
|
|
1645
|
-
function
|
|
1646
|
-
let { rootProps: n, content: r } =
|
|
1648
|
+
//#region src/components/feedback/alert/alert.tsx
|
|
1649
|
+
function Dn({ className: e, ...t }) {
|
|
1650
|
+
let { rootProps: n, content: r } = En(t);
|
|
1647
1651
|
return /* @__PURE__ */ j("div", {
|
|
1648
1652
|
...n,
|
|
1649
1653
|
className: [
|
|
@@ -1654,13 +1658,13 @@ function Tn({ className: e, ...t }) {
|
|
|
1654
1658
|
children: r
|
|
1655
1659
|
});
|
|
1656
1660
|
}
|
|
1657
|
-
function
|
|
1661
|
+
function On({ className: e, ...t }) {
|
|
1658
1662
|
return /* @__PURE__ */ j("div", {
|
|
1659
1663
|
...t,
|
|
1660
1664
|
className: [K.Title, e].filter(Boolean).join(" ")
|
|
1661
1665
|
});
|
|
1662
1666
|
}
|
|
1663
|
-
var
|
|
1667
|
+
var kn = {
|
|
1664
1668
|
Backdrop: "_Backdrop_1do7v_8",
|
|
1665
1669
|
Viewport: "_Viewport_1do7v_22",
|
|
1666
1670
|
Popup: "_Popup_1do7v_38",
|
|
@@ -1670,85 +1674,85 @@ var Dn = {
|
|
|
1670
1674
|
Content: "_Content_1do7v_111",
|
|
1671
1675
|
Footer: "_Footer_1do7v_119",
|
|
1672
1676
|
CloseButton: "_CloseButton_1do7v_135"
|
|
1673
|
-
},
|
|
1674
|
-
Backdrop: () =>
|
|
1675
|
-
Close: () =>
|
|
1676
|
-
CloseButton: () =>
|
|
1677
|
-
Content: () =>
|
|
1678
|
-
Description: () =>
|
|
1679
|
-
Footer: () =>
|
|
1680
|
-
Header: () =>
|
|
1681
|
-
Popup: () =>
|
|
1682
|
-
Portal: () =>
|
|
1683
|
-
Root: () =>
|
|
1684
|
-
Title: () =>
|
|
1685
|
-
Trigger: () =>
|
|
1686
|
-
Viewport: () =>
|
|
1687
|
-
}),
|
|
1688
|
-
function
|
|
1677
|
+
}, An = /* @__PURE__ */ Se({
|
|
1678
|
+
Backdrop: () => Pn,
|
|
1679
|
+
Close: () => Hn,
|
|
1680
|
+
CloseButton: () => Un,
|
|
1681
|
+
Content: () => Bn,
|
|
1682
|
+
Description: () => zn,
|
|
1683
|
+
Footer: () => Vn,
|
|
1684
|
+
Header: () => Ln,
|
|
1685
|
+
Popup: () => In,
|
|
1686
|
+
Portal: () => Nn,
|
|
1687
|
+
Root: () => jn,
|
|
1688
|
+
Title: () => Rn,
|
|
1689
|
+
Trigger: () => Mn,
|
|
1690
|
+
Viewport: () => Fn
|
|
1691
|
+
}), jn = I.Root, Mn = I.Trigger, Nn = I.Portal;
|
|
1692
|
+
function Pn({ className: e, ...t }) {
|
|
1689
1693
|
return /* @__PURE__ */ j(I.Backdrop, {
|
|
1690
1694
|
...t,
|
|
1691
|
-
className: G(
|
|
1695
|
+
className: G(kn.Backdrop, e)
|
|
1692
1696
|
});
|
|
1693
1697
|
}
|
|
1694
|
-
function
|
|
1698
|
+
function Fn({ className: e, ...t }) {
|
|
1695
1699
|
return /* @__PURE__ */ j(I.Viewport, {
|
|
1696
1700
|
...t,
|
|
1697
|
-
className: G(
|
|
1701
|
+
className: G(kn.Viewport, e)
|
|
1698
1702
|
});
|
|
1699
1703
|
}
|
|
1700
|
-
function
|
|
1704
|
+
function In({ size: e = "sm", fullScreenOnMobile: t, className: n, ...r }) {
|
|
1701
1705
|
return /* @__PURE__ */ j(I.Popup, {
|
|
1702
1706
|
...r,
|
|
1703
1707
|
"data-size": e,
|
|
1704
1708
|
"data-full-screen-on-mobile": t || void 0,
|
|
1705
|
-
className: G(
|
|
1709
|
+
className: G(kn.Popup, n)
|
|
1706
1710
|
});
|
|
1707
1711
|
}
|
|
1708
|
-
function
|
|
1712
|
+
function Ln({ className: e, ...t }) {
|
|
1709
1713
|
return /* @__PURE__ */ j("div", {
|
|
1710
1714
|
...t,
|
|
1711
|
-
className: [
|
|
1715
|
+
className: [kn.Header, e].filter(Boolean).join(" ")
|
|
1712
1716
|
});
|
|
1713
1717
|
}
|
|
1714
|
-
function
|
|
1718
|
+
function Rn({ className: e, ...t }) {
|
|
1715
1719
|
return /* @__PURE__ */ j(I.Title, {
|
|
1716
1720
|
...t,
|
|
1717
|
-
className: G(
|
|
1721
|
+
className: G(kn.Title, e)
|
|
1718
1722
|
});
|
|
1719
1723
|
}
|
|
1720
|
-
function
|
|
1724
|
+
function zn({ className: e, ...t }) {
|
|
1721
1725
|
return /* @__PURE__ */ j(I.Description, {
|
|
1722
1726
|
...t,
|
|
1723
|
-
className: G(
|
|
1727
|
+
className: G(kn.Description, e)
|
|
1724
1728
|
});
|
|
1725
1729
|
}
|
|
1726
|
-
function
|
|
1730
|
+
function Bn({ className: e, ...t }) {
|
|
1727
1731
|
return /* @__PURE__ */ j("div", {
|
|
1728
1732
|
...t,
|
|
1729
|
-
className: [
|
|
1733
|
+
className: [kn.Content, e].filter(Boolean).join(" ")
|
|
1730
1734
|
});
|
|
1731
1735
|
}
|
|
1732
|
-
function
|
|
1736
|
+
function Vn({ className: e, ...t }) {
|
|
1733
1737
|
return /* @__PURE__ */ j("div", {
|
|
1734
1738
|
...t,
|
|
1735
|
-
className: [
|
|
1739
|
+
className: [kn.Footer, e].filter(Boolean).join(" ")
|
|
1736
1740
|
});
|
|
1737
1741
|
}
|
|
1738
|
-
var
|
|
1739
|
-
function
|
|
1742
|
+
var Hn = I.Close;
|
|
1743
|
+
function Un({ label: e, className: t, ...n }) {
|
|
1740
1744
|
let r = ct();
|
|
1741
1745
|
return /* @__PURE__ */ j(I.Close, {
|
|
1742
1746
|
...n,
|
|
1743
1747
|
"aria-label": e ?? r.close,
|
|
1744
|
-
className: G(
|
|
1748
|
+
className: G(kn.CloseButton, t),
|
|
1745
1749
|
children: /* @__PURE__ */ j(re, {
|
|
1746
1750
|
size: 20,
|
|
1747
1751
|
"aria-hidden": !0
|
|
1748
1752
|
})
|
|
1749
1753
|
});
|
|
1750
1754
|
}
|
|
1751
|
-
var
|
|
1755
|
+
var Wn = {
|
|
1752
1756
|
Backdrop: "_Backdrop_12k26_12",
|
|
1753
1757
|
Viewport: "_Viewport_12k26_27",
|
|
1754
1758
|
Popup: "_Popup_12k26_35",
|
|
@@ -1758,117 +1762,117 @@ var Hn = {
|
|
|
1758
1762
|
Description: "_Description_12k26_155",
|
|
1759
1763
|
Content: "_Content_12k26_169",
|
|
1760
1764
|
CloseButton: "_CloseButton_12k26_176"
|
|
1761
|
-
},
|
|
1762
|
-
Backdrop: () =>
|
|
1763
|
-
Close: () =>
|
|
1764
|
-
CloseButton: () =>
|
|
1765
|
-
Content: () =>
|
|
1766
|
-
Description: () =>
|
|
1767
|
-
Handle: () =>
|
|
1768
|
-
Header: () =>
|
|
1769
|
-
Popup: () =>
|
|
1770
|
-
Portal: () =>
|
|
1771
|
-
Root: () =>
|
|
1772
|
-
Title: () =>
|
|
1773
|
-
Trigger: () =>
|
|
1774
|
-
Viewport: () =>
|
|
1775
|
-
}),
|
|
1765
|
+
}, Gn = /* @__PURE__ */ Se({
|
|
1766
|
+
Backdrop: () => Xn,
|
|
1767
|
+
Close: () => ir,
|
|
1768
|
+
CloseButton: () => ar,
|
|
1769
|
+
Content: () => rr,
|
|
1770
|
+
Description: () => nr,
|
|
1771
|
+
Handle: () => $n,
|
|
1772
|
+
Header: () => er,
|
|
1773
|
+
Popup: () => Qn,
|
|
1774
|
+
Portal: () => Yn,
|
|
1775
|
+
Root: () => qn,
|
|
1776
|
+
Title: () => tr,
|
|
1777
|
+
Trigger: () => Jn,
|
|
1778
|
+
Viewport: () => Zn
|
|
1779
|
+
}), Kn = {
|
|
1776
1780
|
left: "left",
|
|
1777
1781
|
right: "right",
|
|
1778
1782
|
top: "up",
|
|
1779
1783
|
bottom: "down"
|
|
1780
1784
|
};
|
|
1781
|
-
function
|
|
1785
|
+
function qn({ side: e = "right", ...t }) {
|
|
1782
1786
|
return /* @__PURE__ */ j(L.Root, {
|
|
1783
1787
|
...t,
|
|
1784
|
-
swipeDirection:
|
|
1788
|
+
swipeDirection: Kn[e]
|
|
1785
1789
|
});
|
|
1786
1790
|
}
|
|
1787
|
-
var
|
|
1788
|
-
function
|
|
1791
|
+
var Jn = L.Trigger, Yn = L.Portal;
|
|
1792
|
+
function Xn({ className: e, ...t }) {
|
|
1789
1793
|
return /* @__PURE__ */ j(L.Backdrop, {
|
|
1790
1794
|
...t,
|
|
1791
|
-
className: G(
|
|
1795
|
+
className: G(Wn.Backdrop, e)
|
|
1792
1796
|
});
|
|
1793
1797
|
}
|
|
1794
|
-
function
|
|
1798
|
+
function Zn({ className: e, ...t }) {
|
|
1795
1799
|
return /* @__PURE__ */ j(L.Viewport, {
|
|
1796
1800
|
...t,
|
|
1797
|
-
className: G(
|
|
1801
|
+
className: G(Wn.Viewport, e)
|
|
1798
1802
|
});
|
|
1799
1803
|
}
|
|
1800
|
-
function
|
|
1804
|
+
function Qn({ className: e, ...t }) {
|
|
1801
1805
|
return /* @__PURE__ */ j(L.Popup, {
|
|
1802
1806
|
...t,
|
|
1803
|
-
className: G(
|
|
1807
|
+
className: G(Wn.Popup, e)
|
|
1804
1808
|
});
|
|
1805
1809
|
}
|
|
1806
|
-
function
|
|
1810
|
+
function $n({ className: e, ...t }) {
|
|
1807
1811
|
return /* @__PURE__ */ j("div", {
|
|
1808
1812
|
...t,
|
|
1809
1813
|
"aria-hidden": !0,
|
|
1810
|
-
className: [
|
|
1814
|
+
className: [Wn.Handle, e].filter(Boolean).join(" ")
|
|
1811
1815
|
});
|
|
1812
1816
|
}
|
|
1813
|
-
function
|
|
1817
|
+
function er({ className: e, ...t }) {
|
|
1814
1818
|
return /* @__PURE__ */ j("div", {
|
|
1815
1819
|
...t,
|
|
1816
|
-
className: [
|
|
1820
|
+
className: [Wn.Header, e].filter(Boolean).join(" ")
|
|
1817
1821
|
});
|
|
1818
1822
|
}
|
|
1819
|
-
function
|
|
1823
|
+
function tr({ className: e, ...t }) {
|
|
1820
1824
|
return /* @__PURE__ */ j(L.Title, {
|
|
1821
1825
|
...t,
|
|
1822
|
-
className: G(
|
|
1826
|
+
className: G(Wn.Title, e)
|
|
1823
1827
|
});
|
|
1824
1828
|
}
|
|
1825
|
-
function
|
|
1829
|
+
function nr({ className: e, ...t }) {
|
|
1826
1830
|
return /* @__PURE__ */ j(L.Description, {
|
|
1827
1831
|
...t,
|
|
1828
|
-
className: G(
|
|
1832
|
+
className: G(Wn.Description, e)
|
|
1829
1833
|
});
|
|
1830
1834
|
}
|
|
1831
|
-
function
|
|
1835
|
+
function rr({ className: e, ...t }) {
|
|
1832
1836
|
return /* @__PURE__ */ j(L.Content, {
|
|
1833
1837
|
...t,
|
|
1834
|
-
className: G(
|
|
1838
|
+
className: G(Wn.Content, e)
|
|
1835
1839
|
});
|
|
1836
1840
|
}
|
|
1837
|
-
var
|
|
1838
|
-
function
|
|
1841
|
+
var ir = L.Close;
|
|
1842
|
+
function ar({ label: e, className: t, ...n }) {
|
|
1839
1843
|
let r = ct();
|
|
1840
1844
|
return /* @__PURE__ */ j(L.Close, {
|
|
1841
1845
|
...n,
|
|
1842
1846
|
"aria-label": e ?? r.close,
|
|
1843
|
-
className: G(
|
|
1847
|
+
className: G(Wn.CloseButton, t),
|
|
1844
1848
|
children: /* @__PURE__ */ j(re, {
|
|
1845
1849
|
size: 20,
|
|
1846
1850
|
"aria-hidden": !0
|
|
1847
1851
|
})
|
|
1848
1852
|
});
|
|
1849
1853
|
}
|
|
1850
|
-
var
|
|
1854
|
+
var or = { Container: "_Container_15dwv_1" };
|
|
1851
1855
|
//#endregion
|
|
1852
|
-
//#region src/components/layout/container.tsx
|
|
1853
|
-
function
|
|
1856
|
+
//#region src/components/layout/container/container.tsx
|
|
1857
|
+
function sr({ size: e = "lg", render: t, className: n, ...r }) {
|
|
1854
1858
|
return N({
|
|
1855
1859
|
render: t,
|
|
1856
1860
|
props: {
|
|
1857
1861
|
...r,
|
|
1858
1862
|
"data-size": e,
|
|
1859
|
-
className: G(
|
|
1863
|
+
className: G(or.Container, n)({})
|
|
1860
1864
|
}
|
|
1861
1865
|
});
|
|
1862
1866
|
}
|
|
1863
1867
|
//#endregion
|
|
1864
|
-
//#region src/components/feedback/global-alert.tsx
|
|
1865
|
-
function
|
|
1866
|
-
let { rootProps: i, content: a } =
|
|
1868
|
+
//#region src/components/feedback/global-alert/global-alert.tsx
|
|
1869
|
+
function cr({ fluid: e = !1, className: t, innerClassName: n, ...r }) {
|
|
1870
|
+
let { rootProps: i, content: a } = En(r);
|
|
1867
1871
|
return /* @__PURE__ */ j("div", {
|
|
1868
1872
|
...i,
|
|
1869
1873
|
"data-global": "",
|
|
1870
1874
|
className: [K.Alert, t].filter(Boolean).join(" "),
|
|
1871
|
-
children: /* @__PURE__ */ j(
|
|
1875
|
+
children: /* @__PURE__ */ j(sr, {
|
|
1872
1876
|
className: [K.Layout, n].filter(Boolean).join(" "),
|
|
1873
1877
|
"data-fluid": e || void 0,
|
|
1874
1878
|
children: a
|
|
@@ -1876,14 +1880,14 @@ function or({ fluid: e = !1, className: t, innerClassName: n, ...r }) {
|
|
|
1876
1880
|
});
|
|
1877
1881
|
}
|
|
1878
1882
|
//#endregion
|
|
1879
|
-
//#region src/components/feedback/simple-dialog.tsx
|
|
1880
|
-
function
|
|
1881
|
-
return /* @__PURE__ */ j(
|
|
1883
|
+
//#region src/components/feedback/dialog/simple-dialog.tsx
|
|
1884
|
+
function lr({ title: e, description: t, children: n, closeLabel: r, size: i, fullScreenOnMobile: a, hideCloseButton: o, ...s }) {
|
|
1885
|
+
return /* @__PURE__ */ j(jn, {
|
|
1882
1886
|
...s,
|
|
1883
|
-
children: /* @__PURE__ */ M(
|
|
1887
|
+
children: /* @__PURE__ */ M(Nn, { children: [/* @__PURE__ */ j(Pn, {}), /* @__PURE__ */ j(Fn, { children: /* @__PURE__ */ M(In, {
|
|
1884
1888
|
size: i,
|
|
1885
1889
|
fullScreenOnMobile: a,
|
|
1886
|
-
children: [/* @__PURE__ */ M(
|
|
1890
|
+
children: [/* @__PURE__ */ M(Ln, { children: [/* @__PURE__ */ j(Rn, { children: e }), !o && /* @__PURE__ */ j(Un, { label: r })] }), /* @__PURE__ */ M(Bn, { children: [t != null && /* @__PURE__ */ j(zn, {
|
|
1887
1891
|
"data-last": n == null || void 0,
|
|
1888
1892
|
children: t
|
|
1889
1893
|
}), n] })]
|
|
@@ -1891,30 +1895,30 @@ function sr({ title: e, description: t, children: n, closeLabel: r, size: i, ful
|
|
|
1891
1895
|
});
|
|
1892
1896
|
}
|
|
1893
1897
|
//#endregion
|
|
1894
|
-
//#region src/components/feedback/simple-drawer.tsx
|
|
1895
|
-
function
|
|
1896
|
-
return /* @__PURE__ */ j(
|
|
1898
|
+
//#region src/components/feedback/drawer/simple-drawer.tsx
|
|
1899
|
+
function ur({ title: e, description: t, children: n, closeLabel: r, side: i = "right", ...a }) {
|
|
1900
|
+
return /* @__PURE__ */ j(qn, {
|
|
1897
1901
|
...a,
|
|
1898
1902
|
side: i,
|
|
1899
|
-
children: /* @__PURE__ */ M(
|
|
1900
|
-
i === "bottom" && /* @__PURE__ */ j(
|
|
1901
|
-
/* @__PURE__ */ M(
|
|
1902
|
-
/* @__PURE__ */ M(
|
|
1903
|
+
children: /* @__PURE__ */ M(Yn, { children: [/* @__PURE__ */ j(Xn, {}), /* @__PURE__ */ j(Zn, { children: /* @__PURE__ */ M(Qn, { children: [
|
|
1904
|
+
i === "bottom" && /* @__PURE__ */ j($n, {}),
|
|
1905
|
+
/* @__PURE__ */ M(er, { children: [/* @__PURE__ */ j(tr, { children: e }), /* @__PURE__ */ j(ar, { label: r })] }),
|
|
1906
|
+
/* @__PURE__ */ M(rr, { children: [t != null && /* @__PURE__ */ j(nr, {
|
|
1903
1907
|
"data-last": n == null || void 0,
|
|
1904
1908
|
children: t
|
|
1905
1909
|
}), n] }),
|
|
1906
|
-
i === "top" && /* @__PURE__ */ j(
|
|
1910
|
+
i === "top" && /* @__PURE__ */ j($n, {})
|
|
1907
1911
|
] }) })] })
|
|
1908
1912
|
});
|
|
1909
1913
|
}
|
|
1910
|
-
var
|
|
1914
|
+
var dr = {
|
|
1911
1915
|
Viewport: "_Viewport_42vay_10",
|
|
1912
1916
|
Toast: "_Toast_42vay_34",
|
|
1913
1917
|
Content: "_Content_42vay_123",
|
|
1914
1918
|
Description: "_Description_42vay_143",
|
|
1915
1919
|
ToastAction: "_ToastAction_42vay_148"
|
|
1916
|
-
},
|
|
1917
|
-
let a =
|
|
1920
|
+
}, fr = ({ severity: e, color: t, priority: n, action: r, ...i }) => {
|
|
1921
|
+
let a = Tn(e, t);
|
|
1918
1922
|
return {
|
|
1919
1923
|
...i,
|
|
1920
1924
|
type: a,
|
|
@@ -1928,60 +1932,60 @@ var lr = {
|
|
|
1928
1932
|
color: t ?? a
|
|
1929
1933
|
}
|
|
1930
1934
|
};
|
|
1931
|
-
},
|
|
1932
|
-
function
|
|
1935
|
+
}, pr = /* @__PURE__ */ new WeakMap();
|
|
1936
|
+
function mr() {
|
|
1933
1937
|
let e = R.createToastManager(), t = {
|
|
1934
|
-
add: (t) => e.add(
|
|
1938
|
+
add: (t) => e.add(fr(t)),
|
|
1935
1939
|
close: (t) => e.close(t)
|
|
1936
1940
|
};
|
|
1937
|
-
return
|
|
1941
|
+
return pr.set(t, e), t;
|
|
1938
1942
|
}
|
|
1939
|
-
var
|
|
1940
|
-
function
|
|
1941
|
-
let e = u(
|
|
1943
|
+
var hr = s(null);
|
|
1944
|
+
function gr() {
|
|
1945
|
+
let e = u(hr);
|
|
1942
1946
|
if (!e) throw Error("useToastManager must be used inside a ToastProvider.");
|
|
1943
1947
|
return e;
|
|
1944
1948
|
}
|
|
1945
|
-
var
|
|
1949
|
+
var _r = U({ notifications: {
|
|
1946
1950
|
no: "Varsler",
|
|
1947
1951
|
se: "Aviseringar",
|
|
1948
1952
|
fi: "Ilmoitukset",
|
|
1949
1953
|
es: "Notificaciones"
|
|
1950
1954
|
} });
|
|
1951
|
-
function
|
|
1952
|
-
let [i] = g(
|
|
1953
|
-
return /* @__PURE__ */ j(
|
|
1955
|
+
function vr({ children: e, timeout: t, limit: n, toastManager: r }) {
|
|
1956
|
+
let [i] = g(mr), a = r ?? i, o = _r();
|
|
1957
|
+
return /* @__PURE__ */ j(hr.Provider, {
|
|
1954
1958
|
value: a,
|
|
1955
1959
|
children: /* @__PURE__ */ M(R.Provider, {
|
|
1956
1960
|
timeout: t,
|
|
1957
1961
|
limit: n,
|
|
1958
|
-
toastManager:
|
|
1962
|
+
toastManager: pr.get(a),
|
|
1959
1963
|
children: [e, /* @__PURE__ */ j(R.Portal, { children: /* @__PURE__ */ j(R.Viewport, {
|
|
1960
1964
|
"aria-label": o.notifications,
|
|
1961
|
-
className:
|
|
1962
|
-
children: /* @__PURE__ */ j(
|
|
1965
|
+
className: dr.Viewport,
|
|
1966
|
+
children: /* @__PURE__ */ j(yr, {})
|
|
1963
1967
|
}) })]
|
|
1964
1968
|
})
|
|
1965
1969
|
});
|
|
1966
1970
|
}
|
|
1967
|
-
function
|
|
1971
|
+
function yr() {
|
|
1968
1972
|
let { toasts: e } = R.useToastManager();
|
|
1969
|
-
return e.map((e) => /* @__PURE__ */ j(
|
|
1973
|
+
return e.map((e) => /* @__PURE__ */ j(br, { toast: e }, e.id));
|
|
1970
1974
|
}
|
|
1971
|
-
function
|
|
1975
|
+
function br({ toast: e }) {
|
|
1972
1976
|
let t = e.data?.severity ?? "success";
|
|
1973
1977
|
return /* @__PURE__ */ j(R.Root, {
|
|
1974
1978
|
toast: e,
|
|
1975
1979
|
"data-color": e.data?.color ?? t,
|
|
1976
1980
|
"data-variant": "standard",
|
|
1977
1981
|
"data-size": "lg",
|
|
1978
|
-
className: `${K.Alert} ${
|
|
1982
|
+
className: `${K.Alert} ${dr.Toast}`,
|
|
1979
1983
|
children: /* @__PURE__ */ M(R.Content, {
|
|
1980
|
-
className: `${K.Layout} ${
|
|
1984
|
+
className: `${K.Layout} ${dr.Content}`,
|
|
1981
1985
|
children: [
|
|
1982
1986
|
/* @__PURE__ */ j("div", {
|
|
1983
1987
|
className: K.Icon,
|
|
1984
|
-
children:
|
|
1988
|
+
children: wn[t]
|
|
1985
1989
|
}),
|
|
1986
1990
|
/* @__PURE__ */ M("div", {
|
|
1987
1991
|
className: K.Message,
|
|
@@ -1990,14 +1994,14 @@ function vr({ toast: e }) {
|
|
|
1990
1994
|
render: /* @__PURE__ */ j("div", {}),
|
|
1991
1995
|
className: K.Title
|
|
1992
1996
|
}),
|
|
1993
|
-
/* @__PURE__ */ j(R.Description, { className:
|
|
1997
|
+
/* @__PURE__ */ j(R.Description, { className: dr.Description }),
|
|
1994
1998
|
/* @__PURE__ */ j(R.Action, {
|
|
1995
1999
|
render: /* @__PURE__ */ j(st, {
|
|
1996
2000
|
size: "sm",
|
|
1997
2001
|
variant: "outline",
|
|
1998
2002
|
color: "secondary"
|
|
1999
2003
|
}),
|
|
2000
|
-
className:
|
|
2004
|
+
className: dr.ToastAction
|
|
2001
2005
|
})
|
|
2002
2006
|
]
|
|
2003
2007
|
}),
|
|
@@ -2009,13 +2013,13 @@ function vr({ toast: e }) {
|
|
|
2009
2013
|
})
|
|
2010
2014
|
});
|
|
2011
2015
|
}
|
|
2012
|
-
var
|
|
2016
|
+
var xr = {
|
|
2013
2017
|
Skeleton: "_Skeleton_1ek0w_6",
|
|
2014
2018
|
"skeleton-pulse": "_skeleton-pulse_1ek0w_1"
|
|
2015
2019
|
};
|
|
2016
2020
|
//#endregion
|
|
2017
|
-
//#region src/components/feedback/skeleton.tsx
|
|
2018
|
-
function
|
|
2021
|
+
//#region src/components/feedback/skeleton/skeleton.tsx
|
|
2022
|
+
function Sr({ render: e, ref: t, className: n, ...r }) {
|
|
2019
2023
|
return N({
|
|
2020
2024
|
render: e,
|
|
2021
2025
|
ref: t,
|
|
@@ -2023,67 +2027,67 @@ function br({ render: e, ref: t, className: n, ...r }) {
|
|
|
2023
2027
|
props: {
|
|
2024
2028
|
"aria-hidden": !0,
|
|
2025
2029
|
...r,
|
|
2026
|
-
className: G(
|
|
2030
|
+
className: G(xr.Skeleton, n)({})
|
|
2027
2031
|
}
|
|
2028
2032
|
});
|
|
2029
2033
|
}
|
|
2030
|
-
var
|
|
2034
|
+
var Cr = {
|
|
2031
2035
|
AmountSlider: "_AmountSlider_1ccju_10",
|
|
2032
2036
|
Label: "_Label_1ccju_21",
|
|
2033
2037
|
Input: "_Input_1ccju_31",
|
|
2034
2038
|
Slider: "_Slider_1ccju_83"
|
|
2035
|
-
},
|
|
2039
|
+
}, wr = {
|
|
2036
2040
|
Control: "_Control_1zreo_12",
|
|
2037
2041
|
Track: "_Track_1zreo_56",
|
|
2038
2042
|
Indicator: "_Indicator_1zreo_76",
|
|
2039
2043
|
Thumb: "_Thumb_1zreo_92",
|
|
2040
2044
|
Range: "_Range_1zreo_124",
|
|
2041
2045
|
HelperText: "_HelperText_1zreo_136"
|
|
2042
|
-
},
|
|
2043
|
-
function
|
|
2046
|
+
}, Tr = (e) => /* @__PURE__ */ j(A, { children: e.children });
|
|
2047
|
+
function Er({ "aria-label": e, "aria-describedby": t }) {
|
|
2044
2048
|
return /* @__PURE__ */ j(B.Control, {
|
|
2045
|
-
className:
|
|
2049
|
+
className: wr.Control,
|
|
2046
2050
|
children: /* @__PURE__ */ M(B.Track, {
|
|
2047
|
-
className:
|
|
2048
|
-
children: [/* @__PURE__ */ j(B.Indicator, { className:
|
|
2049
|
-
className:
|
|
2051
|
+
className: wr.Track,
|
|
2052
|
+
children: [/* @__PURE__ */ j(B.Indicator, { className: wr.Indicator }), /* @__PURE__ */ j(B.Thumb, {
|
|
2053
|
+
className: wr.Thumb,
|
|
2050
2054
|
"aria-label": e,
|
|
2051
2055
|
"aria-describedby": t
|
|
2052
2056
|
})]
|
|
2053
2057
|
})
|
|
2054
2058
|
});
|
|
2055
2059
|
}
|
|
2056
|
-
function
|
|
2060
|
+
function Dr({ min: e, max: t, format: n, locale: r }) {
|
|
2057
2061
|
let i = m(() => new Intl.NumberFormat(r, n), [r, n]);
|
|
2058
2062
|
return /* @__PURE__ */ M("div", {
|
|
2059
|
-
className:
|
|
2063
|
+
className: wr.Range,
|
|
2060
2064
|
"aria-hidden": !0,
|
|
2061
2065
|
children: [/* @__PURE__ */ j("span", { children: i.format(e) }), /* @__PURE__ */ j("span", { children: i.format(t) })]
|
|
2062
2066
|
});
|
|
2063
2067
|
}
|
|
2064
|
-
function
|
|
2068
|
+
function Or({ id: e, error: t, children: n }) {
|
|
2065
2069
|
return /* @__PURE__ */ j("p", {
|
|
2066
2070
|
id: e,
|
|
2067
|
-
className:
|
|
2071
|
+
className: wr.HelperText,
|
|
2068
2072
|
"data-invalid": t ? "" : void 0,
|
|
2069
2073
|
role: t ? "alert" : void 0,
|
|
2070
2074
|
children: n
|
|
2071
2075
|
});
|
|
2072
2076
|
}
|
|
2073
2077
|
//#endregion
|
|
2074
|
-
//#region src/components/form/amount-slider.tsx
|
|
2075
|
-
function
|
|
2078
|
+
//#region src/components/form/amount-slider/amount-slider.tsx
|
|
2079
|
+
function kr({ 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 }) {
|
|
2076
2080
|
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) => {
|
|
2077
2081
|
T(void 0), i === void 0 && S(e), e !== C && o?.(e);
|
|
2078
2082
|
};
|
|
2079
2083
|
return /* @__PURE__ */ M("div", {
|
|
2080
2084
|
...h,
|
|
2081
|
-
className: [
|
|
2085
|
+
className: [Cr.AmountSlider, m].filter(Boolean).join(" "),
|
|
2082
2086
|
children: [
|
|
2083
2087
|
/* @__PURE__ */ j("label", {
|
|
2084
2088
|
id: _,
|
|
2085
2089
|
htmlFor: v,
|
|
2086
|
-
className:
|
|
2090
|
+
className: Cr.Label,
|
|
2087
2091
|
children: e
|
|
2088
2092
|
}),
|
|
2089
2093
|
/* @__PURE__ */ j(z.Root, {
|
|
@@ -2104,7 +2108,7 @@ function Dr({ label: e, min: t, max: n, step: r = 1, value: i, defaultValue: a,
|
|
|
2104
2108
|
locale: c,
|
|
2105
2109
|
disabled: u,
|
|
2106
2110
|
children: /* @__PURE__ */ j(z.Input, {
|
|
2107
|
-
className:
|
|
2111
|
+
className: Cr.Input,
|
|
2108
2112
|
"aria-describedby": b,
|
|
2109
2113
|
"aria-invalid": p || void 0,
|
|
2110
2114
|
"data-invalid": p ? "" : void 0
|
|
@@ -2112,7 +2116,7 @@ function Dr({ label: e, min: t, max: n, step: r = 1, value: i, defaultValue: a,
|
|
|
2112
2116
|
}),
|
|
2113
2117
|
/* @__PURE__ */ j(oe.Root, {
|
|
2114
2118
|
invalid: p,
|
|
2115
|
-
render:
|
|
2119
|
+
render: Tr,
|
|
2116
2120
|
children: /* @__PURE__ */ M(B.Root, {
|
|
2117
2121
|
value: C,
|
|
2118
2122
|
onValueChange: E,
|
|
@@ -2123,8 +2127,8 @@ function Dr({ label: e, min: t, max: n, step: r = 1, value: i, defaultValue: a,
|
|
|
2123
2127
|
locale: c,
|
|
2124
2128
|
disabled: u,
|
|
2125
2129
|
"aria-labelledby": _,
|
|
2126
|
-
className:
|
|
2127
|
-
children: [/* @__PURE__ */ j(
|
|
2130
|
+
className: Cr.Slider,
|
|
2131
|
+
children: [/* @__PURE__ */ j(Er, { "aria-describedby": b }), /* @__PURE__ */ j(Dr, {
|
|
2128
2132
|
min: t,
|
|
2129
2133
|
max: n,
|
|
2130
2134
|
format: s,
|
|
@@ -2132,7 +2136,7 @@ function Dr({ label: e, min: t, max: n, step: r = 1, value: i, defaultValue: a,
|
|
|
2132
2136
|
})]
|
|
2133
2137
|
})
|
|
2134
2138
|
}),
|
|
2135
|
-
d != null && /* @__PURE__ */ j(
|
|
2139
|
+
d != null && /* @__PURE__ */ j(Or, {
|
|
2136
2140
|
id: y,
|
|
2137
2141
|
error: p,
|
|
2138
2142
|
children: d
|
|
@@ -2153,40 +2157,40 @@ var q = {
|
|
|
2153
2157
|
Chips: "_Chips_ghj8z_113",
|
|
2154
2158
|
ChipInput: "_ChipInput_ghj8z_124",
|
|
2155
2159
|
Popup: "_Popup_ghj8z_161"
|
|
2156
|
-
},
|
|
2160
|
+
}, Ar = {
|
|
2157
2161
|
GroupLabel: "_GroupLabel_kcgec_11",
|
|
2158
2162
|
HelperText: "_HelperText_kcgec_33"
|
|
2159
|
-
},
|
|
2163
|
+
}, jr = U({ moreInformation: {
|
|
2160
2164
|
no: "Mer informasjon",
|
|
2161
2165
|
se: "Mer information",
|
|
2162
2166
|
fi: "Lisätietoja",
|
|
2163
2167
|
es: "Más información"
|
|
2164
|
-
} }),
|
|
2168
|
+
} }), Mr = ({ className: e }) => /* @__PURE__ */ j("span", {
|
|
2165
2169
|
"aria-hidden": !0,
|
|
2166
2170
|
className: e,
|
|
2167
2171
|
children: " *"
|
|
2168
2172
|
});
|
|
2169
|
-
function
|
|
2173
|
+
function Nr({ id: e, error: t, warning: n = !1, children: r }) {
|
|
2170
2174
|
return /* @__PURE__ */ j("p", {
|
|
2171
2175
|
id: e,
|
|
2172
|
-
className:
|
|
2176
|
+
className: Ar.HelperText,
|
|
2173
2177
|
"data-invalid": t ? "" : void 0,
|
|
2174
2178
|
"data-warning": n && !t ? "" : void 0,
|
|
2175
2179
|
role: t ? "alert" : n ? "status" : void 0,
|
|
2176
2180
|
children: r
|
|
2177
2181
|
});
|
|
2178
2182
|
}
|
|
2179
|
-
function
|
|
2183
|
+
function Pr(e, t, n) {
|
|
2180
2184
|
let r = !n && t != null && t !== !1 && t !== "";
|
|
2181
2185
|
return {
|
|
2182
2186
|
content: r ? t : e,
|
|
2183
2187
|
warning: r
|
|
2184
2188
|
};
|
|
2185
2189
|
}
|
|
2186
|
-
function
|
|
2187
|
-
let s =
|
|
2190
|
+
function Fr({ id: e, htmlFor: t, tooltip: n, required: r, error: i, disabled: a, children: o }) {
|
|
2191
|
+
let s = jr(), c = n != null && n !== !1;
|
|
2188
2192
|
return /* @__PURE__ */ M("div", {
|
|
2189
|
-
className:
|
|
2193
|
+
className: Ar.GroupLabel,
|
|
2190
2194
|
"data-invalid": i ? "" : void 0,
|
|
2191
2195
|
"data-disabled": a ? "" : void 0,
|
|
2192
2196
|
children: [/* @__PURE__ */ M("span", { children: [t == null ? /* @__PURE__ */ j("span", {
|
|
@@ -2196,7 +2200,7 @@ function Nr({ id: e, htmlFor: t, tooltip: n, required: r, error: i, disabled: a,
|
|
|
2196
2200
|
id: e,
|
|
2197
2201
|
htmlFor: t,
|
|
2198
2202
|
children: o
|
|
2199
|
-
}), r && /* @__PURE__ */ j(
|
|
2203
|
+
}), r && /* @__PURE__ */ j(Mr, {})] }), c && /* @__PURE__ */ j(It, {
|
|
2200
2204
|
title: n,
|
|
2201
2205
|
ariaLabel: s.moreInformation,
|
|
2202
2206
|
triggerIcon: /* @__PURE__ */ j(E, {
|
|
@@ -2221,7 +2225,7 @@ var J = {
|
|
|
2221
2225
|
Item: "_Item_8mvp9_62",
|
|
2222
2226
|
ItemText: "_ItemText_8mvp9_81",
|
|
2223
2227
|
Empty: "_Empty_8mvp9_57"
|
|
2224
|
-
},
|
|
2228
|
+
}, Ir = U({
|
|
2225
2229
|
noOptions: {
|
|
2226
2230
|
no: "Ingen alternativer",
|
|
2227
2231
|
se: "Inga alternativ",
|
|
@@ -2255,7 +2259,7 @@ var J = {
|
|
|
2255
2259
|
});
|
|
2256
2260
|
//#endregion
|
|
2257
2261
|
//#region src/components/form/use-blur-outside.ts
|
|
2258
|
-
function
|
|
2262
|
+
function Lr(e, t) {
|
|
2259
2263
|
return (n) => {
|
|
2260
2264
|
e && window.setTimeout(() => {
|
|
2261
2265
|
let r = document.activeElement;
|
|
@@ -2265,9 +2269,9 @@ function Fr(e, t) {
|
|
|
2265
2269
|
}
|
|
2266
2270
|
//#endregion
|
|
2267
2271
|
//#region src/components/form/combo-field.tsx
|
|
2268
|
-
var
|
|
2269
|
-
function
|
|
2270
|
-
let D =
|
|
2272
|
+
var Rr = (...e) => e.filter(Boolean).join(" ") || void 0;
|
|
2273
|
+
function zr({ 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 }) {
|
|
2274
|
+
let D = Ir(), O = f(), k = c ?? O, te = f(), ne = f(), ie = e != null, N = Pr(t, r, n), P = N.content != null, F = x !== void 0, ae = h(null), I = h(null), L = Lr(s, [ae, I]), [R, oe] = g(!1), z = h(!1), B = /* @__PURE__ */ j(V.Input, {
|
|
2271
2275
|
...y,
|
|
2272
2276
|
ref: _,
|
|
2273
2277
|
id: k,
|
|
@@ -2277,8 +2281,8 @@ function Lr({ label: e, helperText: t, error: n = !1, warning: r, required: i =
|
|
|
2277
2281
|
"aria-label": l,
|
|
2278
2282
|
"aria-labelledby": u ?? (ie ? te : void 0),
|
|
2279
2283
|
"aria-invalid": n || void 0,
|
|
2280
|
-
"aria-describedby":
|
|
2281
|
-
className: F ? q.ChipInput :
|
|
2284
|
+
"aria-describedby": Rr(P && ne, d),
|
|
2285
|
+
className: F ? q.ChipInput : Rr(J.Control, q.Control),
|
|
2282
2286
|
onFocus: () => {
|
|
2283
2287
|
z.current = !0;
|
|
2284
2288
|
},
|
|
@@ -2291,12 +2295,12 @@ function Lr({ label: e, helperText: t, error: n = !1, warning: r, required: i =
|
|
|
2291
2295
|
}
|
|
2292
2296
|
});
|
|
2293
2297
|
return /* @__PURE__ */ M("div", {
|
|
2294
|
-
className:
|
|
2298
|
+
className: Rr(J.Field, q.Field, p),
|
|
2295
2299
|
style: m,
|
|
2296
2300
|
children: [
|
|
2297
2301
|
v(/* @__PURE__ */ M(A, { children: [/* @__PURE__ */ M(V.InputGroup, {
|
|
2298
2302
|
ref: ae,
|
|
2299
|
-
className:
|
|
2303
|
+
className: Rr(J.Box, q.Box),
|
|
2300
2304
|
"data-invalid": n ? "" : void 0,
|
|
2301
2305
|
"data-has-label": ie ? "" : void 0,
|
|
2302
2306
|
"data-filled": S ? "" : void 0,
|
|
@@ -2304,12 +2308,12 @@ function Lr({ label: e, helperText: t, error: n = !1, warning: r, required: i =
|
|
|
2304
2308
|
onKeyDownCapture: () => oe(!0),
|
|
2305
2309
|
onPointerDownCapture: () => oe(!1),
|
|
2306
2310
|
children: [/* @__PURE__ */ M("div", {
|
|
2307
|
-
className:
|
|
2311
|
+
className: Rr(J.Inner, q.Inner),
|
|
2308
2312
|
children: [ie && /* @__PURE__ */ M("label", {
|
|
2309
2313
|
id: te,
|
|
2310
2314
|
htmlFor: k,
|
|
2311
|
-
className:
|
|
2312
|
-
children: [e, i && /* @__PURE__ */ j(
|
|
2315
|
+
className: Rr(J.Label, q.Label),
|
|
2316
|
+
children: [e, i && /* @__PURE__ */ j(Mr, {})]
|
|
2313
2317
|
}), F ? /* @__PURE__ */ M(V.Chips, {
|
|
2314
2318
|
className: q.Chips,
|
|
2315
2319
|
children: [x, B]
|
|
@@ -2317,12 +2321,12 @@ function Lr({ label: e, helperText: t, error: n = !1, warning: r, required: i =
|
|
|
2317
2321
|
}), (C || w) && /* @__PURE__ */ M("div", {
|
|
2318
2322
|
className: q.Buttons,
|
|
2319
2323
|
children: [C && /* @__PURE__ */ j(V.Clear, {
|
|
2320
|
-
className:
|
|
2324
|
+
className: Rr(q.Button, q.Clear),
|
|
2321
2325
|
"aria-label": D.clear,
|
|
2322
2326
|
tabIndex: -1,
|
|
2323
2327
|
children: /* @__PURE__ */ j(re, { "aria-hidden": !0 })
|
|
2324
2328
|
}), w && /* @__PURE__ */ j(V.Trigger, {
|
|
2325
|
-
className:
|
|
2329
|
+
className: Rr(q.Button, q.Trigger),
|
|
2326
2330
|
tabIndex: -1,
|
|
2327
2331
|
render: (e, t) => /* @__PURE__ */ j("button", {
|
|
2328
2332
|
...e,
|
|
@@ -2342,14 +2346,14 @@ function Lr({ label: e, helperText: t, error: n = !1, warning: r, required: i =
|
|
|
2342
2346
|
className: Y.Positioner,
|
|
2343
2347
|
children: /* @__PURE__ */ j(V.Popup, {
|
|
2344
2348
|
ref: I,
|
|
2345
|
-
className:
|
|
2349
|
+
className: Rr(Y.Popup, q.Popup),
|
|
2346
2350
|
"data-keyboard": R ? "" : void 0,
|
|
2347
2351
|
onBlur: L,
|
|
2348
2352
|
onPointerDownCapture: () => oe(!1),
|
|
2349
2353
|
children: E
|
|
2350
2354
|
})
|
|
2351
2355
|
}) })] })),
|
|
2352
|
-
P && /* @__PURE__ */ j(
|
|
2356
|
+
P && /* @__PURE__ */ j(Nr, {
|
|
2353
2357
|
id: ne,
|
|
2354
2358
|
error: n,
|
|
2355
2359
|
warning: N.warning,
|
|
@@ -2360,10 +2364,10 @@ function Lr({ label: e, helperText: t, error: n = !1, warning: r, required: i =
|
|
|
2360
2364
|
});
|
|
2361
2365
|
}
|
|
2362
2366
|
//#endregion
|
|
2363
|
-
//#region src/components/form/autocomplete.tsx
|
|
2364
|
-
var
|
|
2365
|
-
function
|
|
2366
|
-
let r =
|
|
2367
|
+
//#region src/components/form/autocomplete/autocomplete.tsx
|
|
2368
|
+
var Br = (e, t) => e.value === t.value;
|
|
2369
|
+
function Vr({ noOptionsText: e, loading: t, isDisabled: n }) {
|
|
2370
|
+
let r = Ir();
|
|
2367
2371
|
return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(V.Empty, {
|
|
2368
2372
|
className: Y.Empty,
|
|
2369
2373
|
children: t ? r.loading : e ?? r.noOptions
|
|
@@ -2380,9 +2384,9 @@ function zr({ noOptionsText: e, loading: t, isDisabled: n }) {
|
|
|
2380
2384
|
}, e.value)
|
|
2381
2385
|
})] });
|
|
2382
2386
|
}
|
|
2383
|
-
function
|
|
2387
|
+
function Hr({ options: e, value: t, defaultValue: n = "", onValueChange: r, noOptionsText: i, loading: a, name: o, ...s }) {
|
|
2384
2388
|
let c = t !== void 0, [l, u] = g(n), d = c ? t : l, f = e.find((e) => e.value === d) ?? null;
|
|
2385
|
-
return /* @__PURE__ */ j(
|
|
2389
|
+
return /* @__PURE__ */ j(zr, {
|
|
2386
2390
|
...s,
|
|
2387
2391
|
clearable: !0,
|
|
2388
2392
|
trigger: !0,
|
|
@@ -2394,22 +2398,22 @@ function Br({ options: e, value: t, defaultValue: n = "", onValueChange: r, noOp
|
|
|
2394
2398
|
let t = e?.value ?? "";
|
|
2395
2399
|
t !== d && (c || u(t), r?.(t));
|
|
2396
2400
|
},
|
|
2397
|
-
isItemEqualToValue:
|
|
2401
|
+
isItemEqualToValue: Br,
|
|
2398
2402
|
name: o,
|
|
2399
2403
|
disabled: s.disabled,
|
|
2400
2404
|
required: s.required,
|
|
2401
2405
|
highlightItemOnHover: !1,
|
|
2402
2406
|
children: t
|
|
2403
2407
|
}),
|
|
2404
|
-
children: /* @__PURE__ */ j(
|
|
2408
|
+
children: /* @__PURE__ */ j(Vr, {
|
|
2405
2409
|
noOptionsText: i,
|
|
2406
2410
|
loading: a
|
|
2407
2411
|
})
|
|
2408
2412
|
});
|
|
2409
2413
|
}
|
|
2410
|
-
function
|
|
2414
|
+
function Ur({ options: e, value: t, defaultValue: n = [], onValueChange: r, min: i = 1, max: a, noOptionsText: o, loading: s, name: c, multiple: l, ...u }) {
|
|
2411
2415
|
let d = Ot(), 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;
|
|
2412
|
-
return /* @__PURE__ */ j(
|
|
2416
|
+
return /* @__PURE__ */ j(zr, {
|
|
2413
2417
|
...u,
|
|
2414
2418
|
clearable: i <= 0,
|
|
2415
2419
|
trigger: !0,
|
|
@@ -2442,14 +2446,14 @@ function Vr({ options: e, value: t, defaultValue: n = [], onValueChange: r, min:
|
|
|
2442
2446
|
let n = e.map((e) => e.value);
|
|
2443
2447
|
n.length < i && n.length < h.length || a !== void 0 && n.length > a && n.length > h.length || (f || m(n), r?.(n));
|
|
2444
2448
|
},
|
|
2445
|
-
isItemEqualToValue:
|
|
2449
|
+
isItemEqualToValue: Br,
|
|
2446
2450
|
name: c,
|
|
2447
2451
|
disabled: u.disabled,
|
|
2448
2452
|
required: u.required,
|
|
2449
2453
|
highlightItemOnHover: !1,
|
|
2450
2454
|
children: t
|
|
2451
2455
|
}),
|
|
2452
|
-
children: /* @__PURE__ */ j(
|
|
2456
|
+
children: /* @__PURE__ */ j(Vr, {
|
|
2453
2457
|
noOptionsText: o,
|
|
2454
2458
|
loading: s,
|
|
2455
2459
|
isDisabled: (e) => {
|
|
@@ -2459,15 +2463,15 @@ function Vr({ options: e, value: t, defaultValue: n = [], onValueChange: r, min:
|
|
|
2459
2463
|
})
|
|
2460
2464
|
});
|
|
2461
2465
|
}
|
|
2462
|
-
function
|
|
2463
|
-
return e.multiple ? /* @__PURE__ */ j(
|
|
2466
|
+
function Wr(e) {
|
|
2467
|
+
return e.multiple ? /* @__PURE__ */ j(Ur, { ...e }) : /* @__PURE__ */ j(Hr, { ...e });
|
|
2464
2468
|
}
|
|
2465
|
-
var
|
|
2469
|
+
var Gr = {
|
|
2466
2470
|
Checkbox: "_Checkbox_1vdzh_7",
|
|
2467
2471
|
Box: "_Box_1vdzh_13",
|
|
2468
2472
|
Tick: "_Tick_1vdzh_55"
|
|
2469
|
-
},
|
|
2470
|
-
className:
|
|
2473
|
+
}, Kr = /* @__PURE__ */ j("svg", {
|
|
2474
|
+
className: Gr.Tick,
|
|
2471
2475
|
viewBox: "0 0 24 24",
|
|
2472
2476
|
"aria-hidden": !0,
|
|
2473
2477
|
children: /* @__PURE__ */ j("path", {
|
|
@@ -2479,17 +2483,17 @@ var Ur = {
|
|
|
2479
2483
|
strokeLinejoin: "round",
|
|
2480
2484
|
pathLength: 1
|
|
2481
2485
|
})
|
|
2482
|
-
}),
|
|
2483
|
-
className:
|
|
2486
|
+
}), qr = ({ checked: e }) => /* @__PURE__ */ j("span", {
|
|
2487
|
+
className: Gr.Box,
|
|
2484
2488
|
"data-checked": e ? "" : void 0,
|
|
2485
2489
|
"aria-hidden": !0,
|
|
2486
|
-
children:
|
|
2487
|
-
}),
|
|
2490
|
+
children: Kr
|
|
2491
|
+
}), Jr = {
|
|
2488
2492
|
Row: "_Row_1uv3x_10",
|
|
2489
2493
|
Asterisk: "_Asterisk_1uv3x_31",
|
|
2490
2494
|
Text: "_Text_1uv3x_35"
|
|
2491
|
-
},
|
|
2492
|
-
function
|
|
2495
|
+
}, Yr = (...e) => e.filter(Boolean).join(" ") || void 0;
|
|
2496
|
+
function Xr({ 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 }) {
|
|
2493
2497
|
let b = f(), x = e != null, S = t != null, C = !x && !S, w = /* @__PURE__ */ j(se.Root, {
|
|
2494
2498
|
nativeButton: !0,
|
|
2495
2499
|
render: /* @__PURE__ */ j("button", { type: "button" }),
|
|
@@ -2506,23 +2510,23 @@ function Jr({ label: e, helperText: t, error: n = !1, checked: r, defaultChecked
|
|
|
2506
2510
|
onFocus: p,
|
|
2507
2511
|
"aria-label": m,
|
|
2508
2512
|
"aria-labelledby": h,
|
|
2509
|
-
"aria-describedby":
|
|
2513
|
+
"aria-describedby": Yr(S && b, g),
|
|
2510
2514
|
"aria-invalid": n ? !0 : void 0,
|
|
2511
|
-
className: C ?
|
|
2515
|
+
className: C ? Yr(Gr.Box, _) : Gr.Box,
|
|
2512
2516
|
style: C ? v : void 0,
|
|
2513
|
-
children:
|
|
2517
|
+
children: Kr
|
|
2514
2518
|
});
|
|
2515
2519
|
return C ? w : /* @__PURE__ */ M("div", {
|
|
2516
|
-
className:
|
|
2520
|
+
className: Yr(Gr.Checkbox, _),
|
|
2517
2521
|
style: v,
|
|
2518
2522
|
children: [x ? /* @__PURE__ */ M("label", {
|
|
2519
|
-
className:
|
|
2523
|
+
className: Jr.Row,
|
|
2520
2524
|
"data-invalid": n ? "" : void 0,
|
|
2521
2525
|
children: [w, /* @__PURE__ */ M("span", {
|
|
2522
|
-
className:
|
|
2523
|
-
children: [e, l && /* @__PURE__ */ j(
|
|
2526
|
+
className: Jr.Text,
|
|
2527
|
+
children: [e, l && /* @__PURE__ */ j(Mr, { className: Jr.Asterisk })]
|
|
2524
2528
|
})]
|
|
2525
|
-
}) : w, S && /* @__PURE__ */ j(
|
|
2529
|
+
}) : w, S && /* @__PURE__ */ j(Nr, {
|
|
2526
2530
|
id: b,
|
|
2527
2531
|
error: n,
|
|
2528
2532
|
children: t
|
|
@@ -2537,7 +2541,7 @@ var X = () => ({ valid: !1 }), Z = (e) => ({
|
|
|
2537
2541
|
});
|
|
2538
2542
|
//#endregion
|
|
2539
2543
|
//#region src/validation/national-id.ts
|
|
2540
|
-
function
|
|
2544
|
+
function Zr(e) {
|
|
2541
2545
|
let t = 0, n = e.length % 2 == 0;
|
|
2542
2546
|
for (let r of e) {
|
|
2543
2547
|
let e = Number(r);
|
|
@@ -2545,14 +2549,14 @@ function Yr(e) {
|
|
|
2545
2549
|
}
|
|
2546
2550
|
return t % 10 == 0;
|
|
2547
2551
|
}
|
|
2548
|
-
function
|
|
2552
|
+
function Qr(e) {
|
|
2549
2553
|
let t = e.replace(/\D/g, "");
|
|
2550
2554
|
if (t.length === 12 && (t = t.slice(2)), t.length !== 10) return !1;
|
|
2551
2555
|
let n = Number(t.slice(2, 4)), r = Number(t.slice(4, 6));
|
|
2552
|
-
return n < 1 || n > 12 || r < 1 || r > 31 ? !1 :
|
|
2556
|
+
return n < 1 || n > 12 || r < 1 || r > 31 ? !1 : Zr(t);
|
|
2553
2557
|
}
|
|
2554
|
-
var
|
|
2555
|
-
function
|
|
2558
|
+
var $r = "0123456789ABCDEFHJKLMNPRSTUVWXY";
|
|
2559
|
+
function ei(e) {
|
|
2556
2560
|
let t = e.replace(/\s/g, "").toUpperCase();
|
|
2557
2561
|
if (!/^\d{6}[+\-A]\d{3}[0-9A-Y]$/.test(t)) return !1;
|
|
2558
2562
|
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;
|
|
@@ -2560,9 +2564,9 @@ function Qr(e) {
|
|
|
2560
2564
|
let s = o + i, c = new Date(s, r - 1, n);
|
|
2561
2565
|
if (c.getFullYear() !== s || c.getMonth() !== r - 1 || c.getDate() !== n) return !1;
|
|
2562
2566
|
let l = Number(`${t.slice(0, 6)}${t.slice(7, 10)}`);
|
|
2563
|
-
return t[10] ===
|
|
2567
|
+
return t[10] === $r[l % 31];
|
|
2564
2568
|
}
|
|
2565
|
-
var
|
|
2569
|
+
var ti = [
|
|
2566
2570
|
3,
|
|
2567
2571
|
7,
|
|
2568
2572
|
6,
|
|
@@ -2572,7 +2576,7 @@ var $r = [
|
|
|
2572
2576
|
4,
|
|
2573
2577
|
5,
|
|
2574
2578
|
2
|
|
2575
|
-
],
|
|
2579
|
+
], ni = [
|
|
2576
2580
|
5,
|
|
2577
2581
|
4,
|
|
2578
2582
|
3,
|
|
@@ -2584,64 +2588,64 @@ var $r = [
|
|
|
2584
2588
|
3,
|
|
2585
2589
|
2
|
|
2586
2590
|
];
|
|
2587
|
-
function
|
|
2591
|
+
function ri(e, t) {
|
|
2588
2592
|
let n = t.reduce((t, n, r) => t + n * e[r], 0) % 11;
|
|
2589
2593
|
return n === 0 ? 0 : 11 - n;
|
|
2590
2594
|
}
|
|
2591
|
-
function
|
|
2595
|
+
function ii(e) {
|
|
2592
2596
|
let t = e.replace(/\D/g, "");
|
|
2593
2597
|
if (t.length !== 11) return !1;
|
|
2594
2598
|
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;
|
|
2595
2599
|
if (o < 1 || o > 12 || a < 1 || a > 31) return !1;
|
|
2596
|
-
let s =
|
|
2600
|
+
let s = ri(n.slice(0, 9), ti);
|
|
2597
2601
|
if (s === 11 || s !== n[9]) return !1;
|
|
2598
|
-
let c =
|
|
2602
|
+
let c = ri(n.slice(0, 10), ni);
|
|
2599
2603
|
return c !== 11 && c === n[10];
|
|
2600
2604
|
}
|
|
2601
|
-
var
|
|
2605
|
+
var ai = "TRWAGMYFPDXBNJZSQVHLCKE", oi = {
|
|
2602
2606
|
X: "0",
|
|
2603
2607
|
Y: "1",
|
|
2604
2608
|
Z: "2"
|
|
2605
2609
|
};
|
|
2606
|
-
function
|
|
2610
|
+
function si(e) {
|
|
2607
2611
|
let t = e.replace(/[\s-]/g, "").toUpperCase();
|
|
2608
2612
|
if (!/^[XYZ]?\d{7,8}[A-Z]$/.test(t)) return !1;
|
|
2609
2613
|
let n = t.slice(-1), r = t.slice(0, -1), i = r[0];
|
|
2610
|
-
return i in
|
|
2614
|
+
return i in oi && (r = oi[i] + r.slice(1)), r.length === 8 && ai[Number(r) % 23] === n;
|
|
2611
2615
|
}
|
|
2612
|
-
var
|
|
2613
|
-
SE:
|
|
2614
|
-
FI:
|
|
2615
|
-
NO:
|
|
2616
|
-
ES:
|
|
2616
|
+
var ci = {
|
|
2617
|
+
SE: Qr,
|
|
2618
|
+
FI: ei,
|
|
2619
|
+
NO: ii,
|
|
2620
|
+
ES: si
|
|
2617
2621
|
};
|
|
2618
|
-
function
|
|
2619
|
-
return
|
|
2622
|
+
function li(e, t) {
|
|
2623
|
+
return ci[e](t);
|
|
2620
2624
|
}
|
|
2621
|
-
function
|
|
2622
|
-
return
|
|
2625
|
+
function ui(e, t) {
|
|
2626
|
+
return li(e, t) ? Z(t.replace(/[\s-]/g, "").toUpperCase()) : X();
|
|
2623
2627
|
}
|
|
2624
|
-
var
|
|
2628
|
+
var di = {
|
|
2625
2629
|
SE: 12,
|
|
2626
2630
|
FI: 11,
|
|
2627
2631
|
NO: 11,
|
|
2628
2632
|
ES: 9
|
|
2629
|
-
},
|
|
2633
|
+
}, fi = /[‐-―−]/g, pi = {
|
|
2630
2634
|
SE: (e) => e.replace(/\D/g, ""),
|
|
2631
|
-
FI: (e) => e.replace(
|
|
2635
|
+
FI: (e) => e.replace(fi, "-").toUpperCase().replace(/[^0-9A-Z+-]/g, ""),
|
|
2632
2636
|
NO: (e) => e.replace(/\D/g, ""),
|
|
2633
2637
|
ES: (e) => e.toUpperCase().replace(/[^0-9A-Z]/g, "")
|
|
2634
2638
|
};
|
|
2635
|
-
function
|
|
2636
|
-
return
|
|
2639
|
+
function mi(e, t) {
|
|
2640
|
+
return pi[e](t);
|
|
2637
2641
|
}
|
|
2638
|
-
function
|
|
2639
|
-
let r =
|
|
2640
|
-
return r !== "" && r === i &&
|
|
2642
|
+
function hi(e, t, n) {
|
|
2643
|
+
let r = mi(e, t ?? ""), i = mi(e, n ?? "");
|
|
2644
|
+
return r !== "" && r === i && li(e, r);
|
|
2641
2645
|
}
|
|
2642
2646
|
//#endregion
|
|
2643
2647
|
//#region src/validation/mobile-patterns.ts
|
|
2644
|
-
var
|
|
2648
|
+
var gi = {
|
|
2645
2649
|
SE: "7[023689]\\d{7}",
|
|
2646
2650
|
FI: "4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",
|
|
2647
2651
|
NO: "(?:4[015-9]|9\\d)\\d{6}",
|
|
@@ -2649,53 +2653,53 @@ var mi = {
|
|
|
2649
2653
|
};
|
|
2650
2654
|
//#endregion
|
|
2651
2655
|
//#region src/validation/phone.ts
|
|
2652
|
-
function
|
|
2656
|
+
function _i(e, t) {
|
|
2653
2657
|
let n = t.replace(/\s/g, "");
|
|
2654
2658
|
if (n === "") return X();
|
|
2655
2659
|
let r = fe(n, e);
|
|
2656
2660
|
return !r || !r.isValid() ? X() : Z(r.number);
|
|
2657
2661
|
}
|
|
2658
|
-
function
|
|
2659
|
-
return
|
|
2662
|
+
function vi(e, t) {
|
|
2663
|
+
return _i(e, t).valid;
|
|
2660
2664
|
}
|
|
2661
|
-
var
|
|
2662
|
-
function
|
|
2663
|
-
return Object.prototype.hasOwnProperty.call(
|
|
2665
|
+
var yi = Object.fromEntries(Object.entries(gi).map(([e, t]) => [e, RegExp(`^(?:${t})$`)]));
|
|
2666
|
+
function bi(e) {
|
|
2667
|
+
return Object.prototype.hasOwnProperty.call(gi, e);
|
|
2664
2668
|
}
|
|
2665
|
-
function
|
|
2669
|
+
function xi(e, t) {
|
|
2666
2670
|
let n = t.replace(/\s/g, "");
|
|
2667
2671
|
if (n === "") return X();
|
|
2668
2672
|
let r = fe(n, e);
|
|
2669
|
-
return !r || !r.isValid() || r.country !== e || !
|
|
2673
|
+
return !r || !r.isValid() || r.country !== e || !yi[e].test(r.nationalNumber) ? X() : Z(r.number);
|
|
2670
2674
|
}
|
|
2671
|
-
function
|
|
2672
|
-
let r =
|
|
2675
|
+
function Si(e, t, n) {
|
|
2676
|
+
let r = _i(e, t ?? ""), i = _i(e, n ?? "");
|
|
2673
2677
|
return r.valid && i.valid && r.normalized === i.normalized;
|
|
2674
2678
|
}
|
|
2675
2679
|
//#endregion
|
|
2676
2680
|
//#region src/validation/modulo-97.ts
|
|
2677
|
-
var
|
|
2681
|
+
var Ci = (e) => {
|
|
2678
2682
|
let t = 0;
|
|
2679
2683
|
for (let n of e) t = (t * 10 + Number(n)) % 97;
|
|
2680
2684
|
return t;
|
|
2681
|
-
},
|
|
2685
|
+
}, wi = (e) => e.replace(/[A-Z]/g, (e) => String(e.charCodeAt(0) - 55)), Ti = {
|
|
2682
2686
|
SE: 24,
|
|
2683
2687
|
FI: 18,
|
|
2684
2688
|
NO: 15,
|
|
2685
2689
|
ES: 24
|
|
2686
2690
|
};
|
|
2687
|
-
function
|
|
2691
|
+
function Ei(e) {
|
|
2688
2692
|
return e.replace(/[\s-]/g, "").toUpperCase();
|
|
2689
2693
|
}
|
|
2690
|
-
function
|
|
2691
|
-
let n =
|
|
2694
|
+
function Di(e, t) {
|
|
2695
|
+
let n = Ei(e);
|
|
2692
2696
|
if (!/^[A-Z]{2}\d{2}[A-Z0-9]+$/.test(n)) return !1;
|
|
2693
2697
|
let r = n.slice(0, 2);
|
|
2694
2698
|
if (t && r !== t) return !1;
|
|
2695
|
-
let i =
|
|
2696
|
-
return i && n.length !== i ? !1 :
|
|
2699
|
+
let i = Ti[r];
|
|
2700
|
+
return i && n.length !== i ? !1 : Ci(wi(n.slice(4) + n.slice(0, 4))) === 1;
|
|
2697
2701
|
}
|
|
2698
|
-
var
|
|
2702
|
+
var Oi = [
|
|
2699
2703
|
5,
|
|
2700
2704
|
4,
|
|
2701
2705
|
3,
|
|
@@ -2707,33 +2711,33 @@ var Ei = [
|
|
|
2707
2711
|
3,
|
|
2708
2712
|
2
|
|
2709
2713
|
];
|
|
2710
|
-
function
|
|
2714
|
+
function ki(e) {
|
|
2711
2715
|
let t = e.replace(/\D/g, "");
|
|
2712
2716
|
if (t.length !== 11) return !1;
|
|
2713
|
-
let n = t.split("").map(Number), r =
|
|
2717
|
+
let n = t.split("").map(Number), r = Oi.reduce((e, t, r) => e + t * n[r], 0) % 11, i = r === 0 ? 0 : 11 - r;
|
|
2714
2718
|
return i < 10 && i === n[10];
|
|
2715
2719
|
}
|
|
2716
|
-
function
|
|
2720
|
+
function Ai(e) {
|
|
2717
2721
|
let t = e.replace(/\D/g, "");
|
|
2718
2722
|
return t.length >= 10 && t.length <= 15;
|
|
2719
2723
|
}
|
|
2720
|
-
function
|
|
2721
|
-
let n =
|
|
2724
|
+
function ji(e, t) {
|
|
2725
|
+
let n = Ei(t), r = /^[A-Z]{2}\d{2}/.test(n);
|
|
2722
2726
|
switch (e) {
|
|
2723
2727
|
case "FI":
|
|
2724
|
-
case "ES": return
|
|
2725
|
-
case "NO": return r ?
|
|
2726
|
-
case "SE": return r ?
|
|
2728
|
+
case "ES": return Di(n, e) ? Z(n) : X();
|
|
2729
|
+
case "NO": return r ? Di(n, "NO") ? Z(n) : X() : ki(n) ? Z(n.replace(/\D/g, "")) : X();
|
|
2730
|
+
case "SE": return r ? Di(n, "SE") ? Z(n) : X() : Ai(n) ? Z(n.replace(/\D/g, "")) : X();
|
|
2727
2731
|
}
|
|
2728
2732
|
}
|
|
2729
|
-
function
|
|
2730
|
-
return
|
|
2733
|
+
function Mi(e, t) {
|
|
2734
|
+
return ji(e, t).valid;
|
|
2731
2735
|
}
|
|
2732
2736
|
//#endregion
|
|
2733
2737
|
//#region src/validation/reference-number.ts
|
|
2734
|
-
var
|
|
2735
|
-
function
|
|
2736
|
-
let t =
|
|
2738
|
+
var Ni = (e) => e.replace(/\s/g, "").toUpperCase();
|
|
2739
|
+
function Pi(e) {
|
|
2740
|
+
let t = Ni(e);
|
|
2737
2741
|
if (!/^[1-9]\d{3,19}$/.test(t)) return !1;
|
|
2738
2742
|
let n = t.slice(0, -1), r = Number(t.at(-1)), i = [
|
|
2739
2743
|
7,
|
|
@@ -2743,20 +2747,20 @@ function Mi(e) {
|
|
|
2743
2747
|
for (let e = n.length - 1, t = 0; e >= 0; e--) a += Number(n[e]) * i[t % i.length], t++;
|
|
2744
2748
|
return (10 - a % 10) % 10 === r;
|
|
2745
2749
|
}
|
|
2746
|
-
function
|
|
2747
|
-
let t =
|
|
2748
|
-
return /^RF\d{2}[1-9]\d{3,19}$/.test(t) ?
|
|
2750
|
+
function Fi(e) {
|
|
2751
|
+
let t = Ni(e);
|
|
2752
|
+
return /^RF\d{2}[1-9]\d{3,19}$/.test(t) ? Ci(`${t.slice(4)}2715${t.slice(2, 4)}`) === 1 : !1;
|
|
2749
2753
|
}
|
|
2750
|
-
function
|
|
2751
|
-
let t =
|
|
2752
|
-
return
|
|
2754
|
+
function Ii(e) {
|
|
2755
|
+
let t = Ni(e);
|
|
2756
|
+
return Pi(t) || Fi(t) ? Z(t) : X();
|
|
2753
2757
|
}
|
|
2754
|
-
function
|
|
2755
|
-
return
|
|
2758
|
+
function Li(e) {
|
|
2759
|
+
return Ii(e).valid;
|
|
2756
2760
|
}
|
|
2757
2761
|
//#endregion
|
|
2758
2762
|
//#region src/validation/email.ts
|
|
2759
|
-
var
|
|
2763
|
+
var Ri = /^[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])?)+$/, zi = [
|
|
2760
2764
|
"gmail.com",
|
|
2761
2765
|
"outlook.com",
|
|
2762
2766
|
"hotmail.com",
|
|
@@ -2783,26 +2787,26 @@ var Ii = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-z
|
|
|
2783
2787
|
"yahoo.se",
|
|
2784
2788
|
"yahoo.no"
|
|
2785
2789
|
];
|
|
2786
|
-
function
|
|
2790
|
+
function Bi(e) {
|
|
2787
2791
|
let t = e.trim();
|
|
2788
|
-
if (!
|
|
2792
|
+
if (!Ri.test(t)) return X();
|
|
2789
2793
|
let n = t.lastIndexOf("@");
|
|
2790
2794
|
return n >= 0 && t.slice(n + 1).toLowerCase().endsWith(".con") ? X() : Z(t.toLowerCase());
|
|
2791
2795
|
}
|
|
2792
|
-
function
|
|
2793
|
-
return
|
|
2796
|
+
function Vi(e) {
|
|
2797
|
+
return Bi(e).valid;
|
|
2794
2798
|
}
|
|
2795
|
-
function
|
|
2799
|
+
function Hi(e, t = zi) {
|
|
2796
2800
|
let n = e.indexOf("@");
|
|
2797
2801
|
if (n < 1) return [];
|
|
2798
2802
|
let r = e.slice(0, n), i = e.slice(n + 1).toLowerCase();
|
|
2799
2803
|
return i.includes(".") && t.includes(i) ? [] : t.filter((e) => e.startsWith(i)).map((e) => `${r}@${e}`);
|
|
2800
2804
|
}
|
|
2801
|
-
function
|
|
2805
|
+
function Ui(e, t) {
|
|
2802
2806
|
let n = (e ?? "").trim().toLowerCase(), r = (t ?? "").trim().toLowerCase();
|
|
2803
2807
|
return n !== "" && n === r;
|
|
2804
2808
|
}
|
|
2805
|
-
var
|
|
2809
|
+
var Wi = [
|
|
2806
2810
|
"mail.com",
|
|
2807
2811
|
"email.com",
|
|
2808
2812
|
"ymail.com",
|
|
@@ -2825,8 +2829,8 @@ var Hi = [
|
|
|
2825
2829
|
"telenor.com",
|
|
2826
2830
|
"spray.se",
|
|
2827
2831
|
"bredband.net"
|
|
2828
|
-
],
|
|
2829
|
-
function
|
|
2832
|
+
], Gi = /* @__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(",");
|
|
2833
|
+
function Ki(e, t) {
|
|
2830
2834
|
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));
|
|
2831
2835
|
for (let r = 1; r <= e.length; r++) for (let i = 1; i <= t.length; i++) {
|
|
2832
2836
|
let a = e[r - 1] === t[i - 1] ? 0 : 1;
|
|
@@ -2834,10 +2838,10 @@ function Wi(e, t) {
|
|
|
2834
2838
|
}
|
|
2835
2839
|
return n[e.length][t.length];
|
|
2836
2840
|
}
|
|
2837
|
-
function
|
|
2841
|
+
function qi(e, t, n) {
|
|
2838
2842
|
let r, i = n + 1, a = !1;
|
|
2839
2843
|
for (let n of t) {
|
|
2840
|
-
let t =
|
|
2844
|
+
let t = Ki(e, n);
|
|
2841
2845
|
t < i ? [r, i, a] = [
|
|
2842
2846
|
n,
|
|
2843
2847
|
t,
|
|
@@ -2846,33 +2850,33 @@ function Gi(e, t, n) {
|
|
|
2846
2850
|
}
|
|
2847
2851
|
return a ? void 0 : r;
|
|
2848
2852
|
}
|
|
2849
|
-
function
|
|
2853
|
+
function Ji(e, t = zi) {
|
|
2850
2854
|
let n = e.trim(), r = n.lastIndexOf("@");
|
|
2851
2855
|
if (r < 1) return;
|
|
2852
2856
|
let i = n.slice(0, r), a = n.slice(r + 1).toLowerCase().replace(/\.+$/, "");
|
|
2853
2857
|
if (!/^[a-z0-9-]+(\.[a-z0-9-]+)*$/.test(a)) return;
|
|
2854
|
-
let o = [...t, ...
|
|
2858
|
+
let o = [...t, ...Wi];
|
|
2855
2859
|
if (o.includes(a)) return;
|
|
2856
|
-
let s = (e) => e && e !== a && !
|
|
2860
|
+
let s = (e) => e && e !== a && !Wi.includes(e) ? `${i}@${e}` : void 0, c = (e) => e.slice(0, e.indexOf(".")), l = (e) => e.slice(e.indexOf(".") + 1), u = a.indexOf(".");
|
|
2857
2861
|
if (u < 0) {
|
|
2858
|
-
let e =
|
|
2862
|
+
let e = qi(a, [...new Set(t.map(c))], a.length >= 6 ? 2 : 1);
|
|
2859
2863
|
return s(t.find((t) => c(t) === e));
|
|
2860
2864
|
}
|
|
2861
2865
|
let d = a.slice(0, u), f = a.slice(u + 1);
|
|
2862
|
-
if (
|
|
2863
|
-
let p =
|
|
2866
|
+
if (Gi.includes(f)) return s(qi(a, o.filter((e) => l(e) === f), 1));
|
|
2867
|
+
let p = qi(a, o, a.length >= 9 ? 2 : 1);
|
|
2864
2868
|
if (p) return s(p);
|
|
2865
|
-
let m =
|
|
2869
|
+
let m = qi(f, Gi, 1);
|
|
2866
2870
|
return m ? s(`${d}.${m}`) : void 0;
|
|
2867
2871
|
}
|
|
2868
|
-
var
|
|
2872
|
+
var Yi = {
|
|
2869
2873
|
Link: "_Link_1osbi_7",
|
|
2870
2874
|
Text: "_Text_1osbi_87",
|
|
2871
2875
|
Arrow: "_Arrow_1osbi_91"
|
|
2872
2876
|
};
|
|
2873
2877
|
//#endregion
|
|
2874
|
-
//#region src/components/typography/link.tsx
|
|
2875
|
-
function
|
|
2878
|
+
//#region src/components/typography/link/link.tsx
|
|
2879
|
+
function Xi({ color: e = "secondary", arrow: t = !1, render: n, ref: r, className: i, ...a }) {
|
|
2876
2880
|
return N({
|
|
2877
2881
|
render: n,
|
|
2878
2882
|
ref: r,
|
|
@@ -2881,36 +2885,36 @@ function Ji({ color: e = "secondary", arrow: t = !1, render: n, ref: r, classNam
|
|
|
2881
2885
|
...a,
|
|
2882
2886
|
"data-color": e,
|
|
2883
2887
|
"data-arrow": t || void 0,
|
|
2884
|
-
className: G(
|
|
2888
|
+
className: G(Yi.Link, i)({}),
|
|
2885
2889
|
...t && { children: /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("span", {
|
|
2886
|
-
className:
|
|
2890
|
+
className: Yi.Text,
|
|
2887
2891
|
children: a.children
|
|
2888
2892
|
}), /* @__PURE__ */ j(x, {
|
|
2889
2893
|
"aria-hidden": !0,
|
|
2890
|
-
className:
|
|
2894
|
+
className: Yi.Arrow
|
|
2891
2895
|
})] }) }
|
|
2892
2896
|
}
|
|
2893
2897
|
});
|
|
2894
2898
|
}
|
|
2895
|
-
var
|
|
2899
|
+
var Zi = {
|
|
2896
2900
|
Root: "_Root_1vl2r_9",
|
|
2897
2901
|
Item: "_Item_1vl2r_19",
|
|
2898
2902
|
Marker: "_Marker_1vl2r_28",
|
|
2899
2903
|
Content: "_Content_1vl2r_60"
|
|
2900
|
-
},
|
|
2901
|
-
Item: () =>
|
|
2902
|
-
Root: () =>
|
|
2903
|
-
}),
|
|
2904
|
-
let e = u(
|
|
2904
|
+
}, Qi = /* @__PURE__ */ Se({
|
|
2905
|
+
Item: () => ra,
|
|
2906
|
+
Root: () => na
|
|
2907
|
+
}), $i = s(null), ea = () => {
|
|
2908
|
+
let e = u($i);
|
|
2905
2909
|
if (!e) throw Error("List parts must be used within <List.Root>");
|
|
2906
2910
|
return e;
|
|
2907
|
-
},
|
|
2911
|
+
}, ta = (...e) => e.filter(Boolean).join(" "), na = ({ variant: e = "ul", gap: t = 1.5, className: n, style: r, children: i, ...a }) => {
|
|
2908
2912
|
let o = e;
|
|
2909
|
-
return /* @__PURE__ */ j(
|
|
2913
|
+
return /* @__PURE__ */ j($i.Provider, {
|
|
2910
2914
|
value: { variant: e },
|
|
2911
2915
|
children: /* @__PURE__ */ j(o, {
|
|
2912
2916
|
...a,
|
|
2913
|
-
className:
|
|
2917
|
+
className: ta(Zi.Root, n),
|
|
2914
2918
|
style: {
|
|
2915
2919
|
"--_gap": t,
|
|
2916
2920
|
...r
|
|
@@ -2918,53 +2922,53 @@ var Yi = {
|
|
|
2918
2922
|
children: i
|
|
2919
2923
|
})
|
|
2920
2924
|
});
|
|
2921
|
-
},
|
|
2922
|
-
let { variant: o } =
|
|
2925
|
+
}, ra = ({ icon: e, gap: t = 1.5, className: n, style: r, children: i, ...a }) => {
|
|
2926
|
+
let { variant: o } = ea(), s = e ? "icon" : o === "ol" ? "number" : "dot";
|
|
2923
2927
|
return /* @__PURE__ */ M("li", {
|
|
2924
2928
|
...a,
|
|
2925
|
-
className:
|
|
2929
|
+
className: ta(Zi.Item, n),
|
|
2926
2930
|
style: {
|
|
2927
2931
|
"--_gap": e ? t : 0,
|
|
2928
2932
|
...r
|
|
2929
2933
|
},
|
|
2930
2934
|
children: [/* @__PURE__ */ j("span", {
|
|
2931
|
-
className:
|
|
2935
|
+
className: Zi.Marker,
|
|
2932
2936
|
"data-marker": s,
|
|
2933
2937
|
children: e
|
|
2934
2938
|
}), /* @__PURE__ */ j("div", {
|
|
2935
|
-
className:
|
|
2939
|
+
className: Zi.Content,
|
|
2936
2940
|
children: typeof i == "string" ? /* @__PURE__ */ j(bt, { children: i }) : i
|
|
2937
2941
|
})]
|
|
2938
2942
|
});
|
|
2939
|
-
},
|
|
2943
|
+
}, ia = { Suggestion: "_Suggestion_1nncz_7" };
|
|
2940
2944
|
//#endregion
|
|
2941
|
-
//#region src/components/form/email-input.tsx
|
|
2942
|
-
function
|
|
2943
|
-
let d =
|
|
2945
|
+
//#region src/components/form/email-input/email-input.tsx
|
|
2946
|
+
function aa({ value: e, defaultValue: t = "", onValueChange: n, domains: r = zi, maxSuggestions: i = 6, autoComplete: a = "email", suggestCorrection: o = !0, name: s, onBlur: c, ref: l, ...u }) {
|
|
2947
|
+
let d = oa(), f = e !== void 0, [p, _] = g(t), v = f ? e : p, y = h(null), b = (e) => {
|
|
2944
2948
|
if (y.current = e, typeof l == "function") return l(e);
|
|
2945
2949
|
l && (l.current = e);
|
|
2946
2950
|
}, [x, S] = g(), C = o && !u.disabled ? x : void 0, w = (e) => {
|
|
2947
2951
|
f || _(e), S(void 0), n?.(e);
|
|
2948
2952
|
}, T = () => {
|
|
2949
2953
|
x != null && (w(x), y.current?.focus());
|
|
2950
|
-
}, [E, ee] = g(!1), D = m(() =>
|
|
2954
|
+
}, [E, ee] = g(!1), D = m(() => Hi(v, r).slice(0, i), [
|
|
2951
2955
|
v,
|
|
2952
2956
|
r,
|
|
2953
2957
|
i
|
|
2954
2958
|
]);
|
|
2955
|
-
return /* @__PURE__ */ j(
|
|
2959
|
+
return /* @__PURE__ */ j(zr, {
|
|
2956
2960
|
...u,
|
|
2957
2961
|
ref: b,
|
|
2958
2962
|
onBlur: (e) => {
|
|
2959
|
-
o && S(
|
|
2963
|
+
o && S(Ji(v, r)), c?.(e);
|
|
2960
2964
|
},
|
|
2961
2965
|
afterHelperText: o && /* @__PURE__ */ j("div", {
|
|
2962
2966
|
role: "status",
|
|
2963
|
-
className:
|
|
2967
|
+
className: ia.Suggestion,
|
|
2964
2968
|
children: C != null && /* @__PURE__ */ M("p", { children: [
|
|
2965
2969
|
d.didYouMean,
|
|
2966
2970
|
" ",
|
|
2967
|
-
/* @__PURE__ */ j(
|
|
2971
|
+
/* @__PURE__ */ j(Xi, {
|
|
2968
2972
|
render: /* @__PURE__ */ j("button", { type: "button" }),
|
|
2969
2973
|
color: "primary",
|
|
2970
2974
|
"aria-label": `${d.use} ${C}`,
|
|
@@ -3007,7 +3011,7 @@ function ra({ value: e, defaultValue: t = "", onValueChange: n, domains: r = Li,
|
|
|
3007
3011
|
})
|
|
3008
3012
|
});
|
|
3009
3013
|
}
|
|
3010
|
-
var
|
|
3014
|
+
var oa = U({
|
|
3011
3015
|
didYouMean: {
|
|
3012
3016
|
no: "Mente du",
|
|
3013
3017
|
se: "Menade du",
|
|
@@ -3020,8 +3024,8 @@ var ia = U({
|
|
|
3020
3024
|
fi: "Käytä",
|
|
3021
3025
|
es: "Usar"
|
|
3022
3026
|
}
|
|
3023
|
-
}),
|
|
3024
|
-
function
|
|
3027
|
+
}), sa = (...e) => e.filter(Boolean).join(" ") || void 0, ca = typeof document > "u" ? d : p;
|
|
3028
|
+
function la(e, t) {
|
|
3025
3029
|
let n = h(null), r = () => {
|
|
3026
3030
|
let e = n.current;
|
|
3027
3031
|
if (!e) return;
|
|
@@ -3029,7 +3033,7 @@ function sa(e, t) {
|
|
|
3029
3033
|
let r = getComputedStyle(e), i = t == null ? Infinity : parseFloat(r.lineHeight) * t + parseFloat(r.paddingTop) + parseFloat(r.paddingBottom), a = e.scrollHeight;
|
|
3030
3034
|
e.style.height = `${Math.min(a, i)}px`, e.style.overflowY = a > i ? "auto" : "hidden";
|
|
3031
3035
|
};
|
|
3032
|
-
return
|
|
3036
|
+
return ca(() => {
|
|
3033
3037
|
e && r();
|
|
3034
3038
|
}), d(() => {
|
|
3035
3039
|
let t = n.current;
|
|
@@ -3041,16 +3045,16 @@ function sa(e, t) {
|
|
|
3041
3045
|
};
|
|
3042
3046
|
}, [e, t]), n;
|
|
3043
3047
|
}
|
|
3044
|
-
function
|
|
3045
|
-
let T = f(), E = y ?? T, ee = f(), D = f(), O = e != null, k = O && t === "outside", te =
|
|
3048
|
+
function ua({ 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 }) {
|
|
3049
|
+
let T = f(), E = y ?? T, ee = f(), D = f(), O = e != null, k = O && t === "outside", te = Pr(r, a, i), ne = te.content != null, re = la(d && p == null, h), A = (e) => {
|
|
3046
3050
|
if (re.current = e, typeof v == "function") return v(e);
|
|
3047
3051
|
v && (v.current = e);
|
|
3048
3052
|
};
|
|
3049
3053
|
return /* @__PURE__ */ M("div", {
|
|
3050
|
-
className:
|
|
3054
|
+
className: sa(J.Field, g),
|
|
3051
3055
|
style: _,
|
|
3052
3056
|
children: [
|
|
3053
|
-
k && /* @__PURE__ */ j(
|
|
3057
|
+
k && /* @__PURE__ */ j(Fr, {
|
|
3054
3058
|
id: ee,
|
|
3055
3059
|
htmlFor: E,
|
|
3056
3060
|
tooltip: n,
|
|
@@ -3079,7 +3083,7 @@ function ca({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r,
|
|
|
3079
3083
|
children: [O && !k && /* @__PURE__ */ M("label", {
|
|
3080
3084
|
htmlFor: E,
|
|
3081
3085
|
className: J.Label,
|
|
3082
|
-
children: [e, x && /* @__PURE__ */ j(
|
|
3086
|
+
children: [e, x && /* @__PURE__ */ j(Mr, {})]
|
|
3083
3087
|
}), /* @__PURE__ */ j(pe, {
|
|
3084
3088
|
...w,
|
|
3085
3089
|
ref: A,
|
|
@@ -3091,7 +3095,7 @@ function ca({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r,
|
|
|
3091
3095
|
required: x,
|
|
3092
3096
|
placeholder: S || " ",
|
|
3093
3097
|
"aria-invalid": i,
|
|
3094
|
-
"aria-describedby":
|
|
3098
|
+
"aria-describedby": sa(ne && D, C),
|
|
3095
3099
|
className: J.Control,
|
|
3096
3100
|
render: d ? /* @__PURE__ */ j("textarea", { rows: p ?? m ?? 1 }) : void 0
|
|
3097
3101
|
})]
|
|
@@ -3103,7 +3107,7 @@ function ca({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r,
|
|
|
3103
3107
|
})
|
|
3104
3108
|
]
|
|
3105
3109
|
}),
|
|
3106
|
-
ne && /* @__PURE__ */ j(
|
|
3110
|
+
ne && /* @__PURE__ */ j(Nr, {
|
|
3107
3111
|
id: D,
|
|
3108
3112
|
error: i,
|
|
3109
3113
|
warning: te.warning,
|
|
@@ -3127,19 +3131,19 @@ var Q = {
|
|
|
3127
3131
|
Chips: "_Chips_5ah93_216",
|
|
3128
3132
|
ChipRow: "_ChipRow_5ah93_222",
|
|
3129
3133
|
ChipMeasure: "_ChipMeasure_5ah93_233"
|
|
3130
|
-
},
|
|
3131
|
-
function
|
|
3134
|
+
}, da = (...e) => e.filter(Boolean).join(" ") || void 0;
|
|
3135
|
+
function fa({ side: e, onSideChange: t, ...n }) {
|
|
3132
3136
|
return d(() => {
|
|
3133
3137
|
t(e === "top" ? "top" : "bottom");
|
|
3134
3138
|
}, [e, t]), /* @__PURE__ */ j("div", { ...n });
|
|
3135
3139
|
}
|
|
3136
|
-
function
|
|
3137
|
-
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 =
|
|
3140
|
+
function pa({ 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: k, children: te }) {
|
|
3141
|
+
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 = Lr(u, [z, B]);
|
|
3138
3142
|
return /* @__PURE__ */ M("div", {
|
|
3139
|
-
className:
|
|
3143
|
+
className: da(J.Field, Q.Field, y),
|
|
3140
3144
|
style: x,
|
|
3141
3145
|
children: [
|
|
3142
|
-
P && /* @__PURE__ */ j(
|
|
3146
|
+
P && /* @__PURE__ */ j(Fr, {
|
|
3143
3147
|
id: A,
|
|
3144
3148
|
required: r,
|
|
3145
3149
|
error: n,
|
|
@@ -3161,7 +3165,7 @@ function da({ label: e, helperText: t, error: n = !1, required: r = !1, disabled
|
|
|
3161
3165
|
highlightItemOnHover: !1,
|
|
3162
3166
|
children: [/* @__PURE__ */ M("div", {
|
|
3163
3167
|
ref: z,
|
|
3164
|
-
className:
|
|
3168
|
+
className: da(J.Box, Q.Box),
|
|
3165
3169
|
"data-invalid": n ? "" : void 0,
|
|
3166
3170
|
"data-disabled": i ? "" : void 0,
|
|
3167
3171
|
"data-size": C === "md" ? void 0 : C,
|
|
@@ -3178,7 +3182,7 @@ function da({ label: e, helperText: t, error: n = !1, required: r = !1, disabled
|
|
|
3178
3182
|
render: /* @__PURE__ */ j("div", {}),
|
|
3179
3183
|
"aria-label": m,
|
|
3180
3184
|
"aria-labelledby": _ ?? (N ? A : void 0),
|
|
3181
|
-
"aria-describedby":
|
|
3185
|
+
"aria-describedby": da(F && ie, v),
|
|
3182
3186
|
"aria-invalid": n || void 0,
|
|
3183
3187
|
"aria-required": r || void 0,
|
|
3184
3188
|
className: Q.Trigger,
|
|
@@ -3193,11 +3197,11 @@ function da({ label: e, helperText: t, error: n = !1, required: r = !1, disabled
|
|
|
3193
3197
|
children: o
|
|
3194
3198
|
}),
|
|
3195
3199
|
/* @__PURE__ */ M("div", {
|
|
3196
|
-
className:
|
|
3200
|
+
className: da(J.Inner, Q.Inner),
|
|
3197
3201
|
children: [N && !P && /* @__PURE__ */ M("span", {
|
|
3198
3202
|
id: A,
|
|
3199
3203
|
className: Q.Label,
|
|
3200
|
-
children: [e, r && /* @__PURE__ */ j(
|
|
3204
|
+
children: [e, r && /* @__PURE__ */ j(Mr, {})]
|
|
3201
3205
|
}), /* @__PURE__ */ j("div", {
|
|
3202
3206
|
className: Q.Display,
|
|
3203
3207
|
"aria-hidden": O || void 0,
|
|
@@ -3223,7 +3227,7 @@ function da({ label: e, helperText: t, error: n = !1, required: r = !1, disabled
|
|
|
3223
3227
|
sideOffset: 0,
|
|
3224
3228
|
alignItemWithTrigger: !1,
|
|
3225
3229
|
className: Y.Positioner,
|
|
3226
|
-
render: (e, t) => /* @__PURE__ */ j(
|
|
3230
|
+
render: (e, t) => /* @__PURE__ */ j(fa, {
|
|
3227
3231
|
...e,
|
|
3228
3232
|
side: t.side,
|
|
3229
3233
|
onSideChange: oe
|
|
@@ -3239,7 +3243,7 @@ function da({ label: e, helperText: t, error: n = !1, required: r = !1, disabled
|
|
|
3239
3243
|
})
|
|
3240
3244
|
}) })]
|
|
3241
3245
|
}),
|
|
3242
|
-
F && /* @__PURE__ */ j(
|
|
3246
|
+
F && /* @__PURE__ */ j(Nr, {
|
|
3243
3247
|
id: ie,
|
|
3244
3248
|
error: n,
|
|
3245
3249
|
children: t
|
|
@@ -3247,7 +3251,7 @@ function da({ label: e, helperText: t, error: n = !1, required: r = !1, disabled
|
|
|
3247
3251
|
]
|
|
3248
3252
|
});
|
|
3249
3253
|
}
|
|
3250
|
-
function
|
|
3254
|
+
function ma({ option: e, disabled: t, children: n }) {
|
|
3251
3255
|
return /* @__PURE__ */ M(me.Item, {
|
|
3252
3256
|
value: e.value,
|
|
3253
3257
|
label: e.label,
|
|
@@ -3255,7 +3259,7 @@ function fa({ option: e, disabled: t, children: n }) {
|
|
|
3255
3259
|
className: Y.Item,
|
|
3256
3260
|
children: [
|
|
3257
3261
|
n,
|
|
3258
|
-
e.icon != null && /* @__PURE__ */ j(
|
|
3262
|
+
e.icon != null && /* @__PURE__ */ j(ha, { children: e.icon }),
|
|
3259
3263
|
/* @__PURE__ */ j(me.ItemText, {
|
|
3260
3264
|
className: Y.ItemText,
|
|
3261
3265
|
children: e.label
|
|
@@ -3263,7 +3267,7 @@ function fa({ option: e, disabled: t, children: n }) {
|
|
|
3263
3267
|
]
|
|
3264
3268
|
});
|
|
3265
3269
|
}
|
|
3266
|
-
function
|
|
3270
|
+
function ha({ children: e }) {
|
|
3267
3271
|
return /* @__PURE__ */ j("span", {
|
|
3268
3272
|
"aria-hidden": !0,
|
|
3269
3273
|
className: Q.OptionIcon,
|
|
@@ -3271,26 +3275,26 @@ function pa({ children: e }) {
|
|
|
3271
3275
|
});
|
|
3272
3276
|
}
|
|
3273
3277
|
//#endregion
|
|
3274
|
-
//#region src/components/form/multi-select.tsx
|
|
3275
|
-
var
|
|
3276
|
-
function
|
|
3278
|
+
//#region src/components/form/multi-select/multi-select.tsx
|
|
3279
|
+
var ga = 4, _a = typeof document > "u" ? d : p;
|
|
3280
|
+
function va({ items: e, canDelete: t, onDelete: n }) {
|
|
3277
3281
|
let r = h(null), i = h(null), [a, o] = g(e.length), s = l(() => {
|
|
3278
3282
|
let t = r.current, n = i.current;
|
|
3279
3283
|
if (!t || !n) return;
|
|
3280
|
-
let a = t.clientWidth, s = Array.from(n.children), c = s[s.length - 1], l = s.slice(0, -1), u = c ? c.offsetWidth +
|
|
3281
|
-
if (l.reduce((e, t, n) => e + t.offsetWidth + (n > 0 ?
|
|
3284
|
+
let a = t.clientWidth, s = Array.from(n.children), c = s[s.length - 1], l = s.slice(0, -1), u = c ? c.offsetWidth + ga : 0;
|
|
3285
|
+
if (l.reduce((e, t, n) => e + t.offsetWidth + (n > 0 ? ga : 0), 0) <= a) {
|
|
3282
3286
|
o(e.length);
|
|
3283
3287
|
return;
|
|
3284
3288
|
}
|
|
3285
3289
|
let d = 0, f = 0;
|
|
3286
3290
|
for (let e = 0; e < l.length; e++) {
|
|
3287
|
-
let t = l[e].offsetWidth + (e > 0 ?
|
|
3291
|
+
let t = l[e].offsetWidth + (e > 0 ? ga : 0);
|
|
3288
3292
|
if (d + t + u <= a) d += t, f += 1;
|
|
3289
3293
|
else break;
|
|
3290
3294
|
}
|
|
3291
3295
|
o(f);
|
|
3292
3296
|
}, [e.length]);
|
|
3293
|
-
|
|
3297
|
+
_a(() => {
|
|
3294
3298
|
s();
|
|
3295
3299
|
}, [
|
|
3296
3300
|
s,
|
|
@@ -3330,7 +3334,7 @@ function ga({ items: e, canDelete: t, onDelete: n }) {
|
|
|
3330
3334
|
})]
|
|
3331
3335
|
});
|
|
3332
3336
|
}
|
|
3333
|
-
function
|
|
3337
|
+
function ya({ options: e, value: t, defaultValue: n = [], onValueChange: r, renderValue: i, min: a = 1, max: o, disabled: s = !1, ref: c, ...l }) {
|
|
3334
3338
|
let u = t !== void 0, [d, f] = g(n), p = u ? t : d, m = h(null), _ = (e) => {
|
|
3335
3339
|
if (m.current = e, typeof c == "function") return c(e);
|
|
3336
3340
|
c && (c.current = e);
|
|
@@ -3344,7 +3348,7 @@ function _a({ options: e, value: t, defaultValue: n = [], onValueChange: r, rend
|
|
|
3344
3348
|
value: t,
|
|
3345
3349
|
label: t
|
|
3346
3350
|
});
|
|
3347
|
-
return /* @__PURE__ */ j(
|
|
3351
|
+
return /* @__PURE__ */ j(pa, {
|
|
3348
3352
|
...l,
|
|
3349
3353
|
ref: _,
|
|
3350
3354
|
disabled: s,
|
|
@@ -3352,7 +3356,7 @@ function _a({ options: e, value: t, defaultValue: n = [], onValueChange: r, rend
|
|
|
3352
3356
|
value: p,
|
|
3353
3357
|
onValueChange: (e) => x(e ?? []),
|
|
3354
3358
|
filled: p.length > 0,
|
|
3355
|
-
display: i ? i(p) : /* @__PURE__ */ j(
|
|
3359
|
+
display: i ? i(p) : /* @__PURE__ */ j(va, {
|
|
3356
3360
|
items: w,
|
|
3357
3361
|
canDelete: C,
|
|
3358
3362
|
onDelete: S
|
|
@@ -3360,17 +3364,17 @@ function _a({ options: e, value: t, defaultValue: n = [], onValueChange: r, rend
|
|
|
3360
3364
|
valueText: w.map((e) => e.label).join(", "),
|
|
3361
3365
|
children: e.map((e) => {
|
|
3362
3366
|
let t = p.includes(e.value);
|
|
3363
|
-
return /* @__PURE__ */ j(
|
|
3367
|
+
return /* @__PURE__ */ j(ma, {
|
|
3364
3368
|
option: e,
|
|
3365
3369
|
disabled: v && !t || y && t || e.disabled,
|
|
3366
|
-
children: /* @__PURE__ */ j(
|
|
3370
|
+
children: /* @__PURE__ */ j(qr, { checked: t })
|
|
3367
3371
|
}, e.value);
|
|
3368
3372
|
})
|
|
3369
3373
|
});
|
|
3370
3374
|
}
|
|
3371
3375
|
//#endregion
|
|
3372
3376
|
//#region src/hooks/country/countries.ts
|
|
3373
|
-
var
|
|
3377
|
+
var ba = {
|
|
3374
3378
|
NO: {
|
|
3375
3379
|
country: "NO",
|
|
3376
3380
|
locale: "nb-NO",
|
|
@@ -3391,17 +3395,17 @@ var va = {
|
|
|
3391
3395
|
locale: "es-ES",
|
|
3392
3396
|
currency: "EUR"
|
|
3393
3397
|
}
|
|
3394
|
-
},
|
|
3398
|
+
}, xa = {
|
|
3395
3399
|
no: "NO",
|
|
3396
3400
|
se: "SE",
|
|
3397
3401
|
fi: "FI",
|
|
3398
3402
|
es: "ES"
|
|
3399
3403
|
};
|
|
3400
|
-
function
|
|
3404
|
+
function Sa(e) {
|
|
3401
3405
|
return typeof e == "object" && !!e && !c(e) && "type" in e && (e.type === "years" || e.type === "currency");
|
|
3402
3406
|
}
|
|
3403
|
-
function
|
|
3404
|
-
let { locale: r, currency: i } =
|
|
3407
|
+
function Ca(e, t, n) {
|
|
3408
|
+
let { locale: r, currency: i } = ba[xa[t]], a = e.type === "years" ? {
|
|
3405
3409
|
style: "unit",
|
|
3406
3410
|
unit: "year",
|
|
3407
3411
|
unitDisplay: "long"
|
|
@@ -3412,14 +3416,14 @@ function xa(e, t, n) {
|
|
|
3412
3416
|
};
|
|
3413
3417
|
return new Intl.NumberFormat(r, a).formatToParts(e.type === "years" ? n ?? 0 : 0).find((t) => t.type === (e.type === "years" ? "unit" : "currency"))?.value ?? "";
|
|
3414
3418
|
}
|
|
3415
|
-
var
|
|
3419
|
+
var wa = {
|
|
3416
3420
|
Unit: "_Unit_1g5fk_11",
|
|
3417
3421
|
Box: "_Box_1g5fk_25",
|
|
3418
3422
|
Steppers: "_Steppers_1g5fk_29",
|
|
3419
3423
|
Stepper: "_Stepper_1g5fk_29"
|
|
3420
|
-
},
|
|
3421
|
-
function
|
|
3422
|
-
let S = je(), [C, w] = g(y ?? null), T = v === void 0 ? C : v, E =
|
|
3424
|
+
}, Ta = (...e) => e.filter(Boolean).join(" ") || void 0;
|
|
3425
|
+
function Ea({ 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 }) {
|
|
3426
|
+
let S = je(), [C, w] = g(y ?? null), T = v === void 0 ? C : v, E = Sa(d) ? Ca(d, S, T) : d, D = f(), O = c ?? D, te = f(), ne = f(), re = f(), A = Da(), ie = e != null, N = ie && t === "outside", P = Pr(r, a, i), F = P.content != null, ae = Ta(F && ne, E != null && E !== "" && re), I = (e) => {
|
|
3423
3427
|
e.target.closest("button, a, input, [tabindex]") || e.currentTarget.querySelector("input")?.focus();
|
|
3424
3428
|
};
|
|
3425
3429
|
return /* @__PURE__ */ M(z.Root, {
|
|
@@ -3432,10 +3436,10 @@ function wa({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r,
|
|
|
3432
3436
|
id: O,
|
|
3433
3437
|
disabled: s,
|
|
3434
3438
|
required: o,
|
|
3435
|
-
className:
|
|
3439
|
+
className: Ta(J.Field, m),
|
|
3436
3440
|
style: h,
|
|
3437
3441
|
children: [
|
|
3438
|
-
N && /* @__PURE__ */ j(
|
|
3442
|
+
N && /* @__PURE__ */ j(Fr, {
|
|
3439
3443
|
id: te,
|
|
3440
3444
|
htmlFor: O,
|
|
3441
3445
|
tooltip: n,
|
|
@@ -3445,7 +3449,7 @@ function wa({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r,
|
|
|
3445
3449
|
children: e
|
|
3446
3450
|
}),
|
|
3447
3451
|
/* @__PURE__ */ M("div", {
|
|
3448
|
-
className:
|
|
3452
|
+
className: Ta(J.Box, wa.Box),
|
|
3449
3453
|
"data-invalid": i ? "" : void 0,
|
|
3450
3454
|
"data-disabled": s ? "" : void 0,
|
|
3451
3455
|
"data-has-label": ie && !N ? "" : void 0,
|
|
@@ -3463,7 +3467,7 @@ function wa({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r,
|
|
|
3463
3467
|
children: [ie && !N && /* @__PURE__ */ M("label", {
|
|
3464
3468
|
htmlFor: O,
|
|
3465
3469
|
className: J.Label,
|
|
3466
|
-
children: [e, o && /* @__PURE__ */ j(
|
|
3470
|
+
children: [e, o && /* @__PURE__ */ j(Mr, {})]
|
|
3467
3471
|
}), /* @__PURE__ */ j(z.Input, {
|
|
3468
3472
|
ref: _,
|
|
3469
3473
|
placeholder: l || " ",
|
|
@@ -3474,21 +3478,21 @@ function wa({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r,
|
|
|
3474
3478
|
}),
|
|
3475
3479
|
E != null && E !== "" && /* @__PURE__ */ j("span", {
|
|
3476
3480
|
id: re,
|
|
3477
|
-
className:
|
|
3481
|
+
className: wa.Unit,
|
|
3478
3482
|
children: E
|
|
3479
3483
|
}),
|
|
3480
3484
|
p && /* @__PURE__ */ M("span", {
|
|
3481
|
-
className:
|
|
3485
|
+
className: wa.Steppers,
|
|
3482
3486
|
children: [/* @__PURE__ */ j(z.Decrement, {
|
|
3483
3487
|
"aria-label": A.decrease,
|
|
3484
|
-
className:
|
|
3488
|
+
className: wa.Stepper,
|
|
3485
3489
|
children: /* @__PURE__ */ j(ee, {
|
|
3486
3490
|
size: 16,
|
|
3487
3491
|
"aria-hidden": !0
|
|
3488
3492
|
})
|
|
3489
3493
|
}), /* @__PURE__ */ j(z.Increment, {
|
|
3490
3494
|
"aria-label": A.increase,
|
|
3491
|
-
className:
|
|
3495
|
+
className: wa.Stepper,
|
|
3492
3496
|
children: /* @__PURE__ */ j(k, {
|
|
3493
3497
|
size: 16,
|
|
3494
3498
|
"aria-hidden": !0
|
|
@@ -3497,7 +3501,7 @@ function wa({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r,
|
|
|
3497
3501
|
})
|
|
3498
3502
|
]
|
|
3499
3503
|
}),
|
|
3500
|
-
F && /* @__PURE__ */ j(
|
|
3504
|
+
F && /* @__PURE__ */ j(Nr, {
|
|
3501
3505
|
id: ne,
|
|
3502
3506
|
error: i,
|
|
3503
3507
|
warning: P.warning,
|
|
@@ -3506,7 +3510,7 @@ function wa({ label: e, labelPlacement: t = "inside", tooltip: n, helperText: r,
|
|
|
3506
3510
|
]
|
|
3507
3511
|
});
|
|
3508
3512
|
}
|
|
3509
|
-
var
|
|
3513
|
+
var Da = U({
|
|
3510
3514
|
increase: {
|
|
3511
3515
|
no: "Øk",
|
|
3512
3516
|
se: "Öka",
|
|
@@ -3519,23 +3523,23 @@ var Ta = U({
|
|
|
3519
3523
|
fi: "Vähennä",
|
|
3520
3524
|
es: "Disminuir"
|
|
3521
3525
|
}
|
|
3522
|
-
}),
|
|
3526
|
+
}), Oa = [
|
|
3523
3527
|
"FI",
|
|
3524
3528
|
"SE",
|
|
3525
3529
|
"NO",
|
|
3526
3530
|
"ES"
|
|
3527
3531
|
];
|
|
3528
|
-
function
|
|
3532
|
+
function ka(e) {
|
|
3529
3533
|
return e.toUpperCase().replace(/[A-Z]/g, (e) => String.fromCodePoint(127397 + e.charCodeAt(0)));
|
|
3530
3534
|
}
|
|
3531
|
-
function
|
|
3535
|
+
function Aa(e) {
|
|
3532
3536
|
let t = new Intl.DisplayNames([e], { type: "region" }), n = ue(), r = (e, n) => ({
|
|
3533
3537
|
code: e,
|
|
3534
3538
|
dialCode: de(e),
|
|
3535
3539
|
name: t.of(e) ?? e,
|
|
3536
|
-
flag:
|
|
3540
|
+
flag: ka(e),
|
|
3537
3541
|
pinned: n
|
|
3538
|
-
}), i =
|
|
3542
|
+
}), i = Oa.filter((e) => n.includes(e)).map((e) => r(e, !0)), a = n.filter((e) => !Oa.includes(e)).map((e) => r(e, !1)).sort((t, n) => t.name.localeCompare(n.name, e));
|
|
3539
3543
|
return [...i, ...a];
|
|
3540
3544
|
}
|
|
3541
3545
|
var $ = {
|
|
@@ -3556,18 +3560,18 @@ var $ = {
|
|
|
3556
3560
|
CountryName: "_CountryName_gcp2o_199",
|
|
3557
3561
|
CountryDial: "_CountryDial_gcp2o_212",
|
|
3558
3562
|
Separator: "_Separator_gcp2o_221"
|
|
3559
|
-
},
|
|
3563
|
+
}, ja = {
|
|
3560
3564
|
no: "NO",
|
|
3561
3565
|
se: "SE",
|
|
3562
3566
|
fi: "FI",
|
|
3563
3567
|
es: "ES"
|
|
3564
|
-
},
|
|
3568
|
+
}, Ma = {
|
|
3565
3569
|
no: "nb-NO",
|
|
3566
3570
|
se: "sv-SE",
|
|
3567
3571
|
fi: "fi-FI",
|
|
3568
3572
|
es: "es-ES"
|
|
3569
3573
|
};
|
|
3570
|
-
function
|
|
3574
|
+
function Na(e, t) {
|
|
3571
3575
|
if (e === "NO") {
|
|
3572
3576
|
let e = t.replace(/\D/g, "").slice(0, 8);
|
|
3573
3577
|
return [
|
|
@@ -3578,25 +3582,25 @@ function ja(e, t) {
|
|
|
3578
3582
|
}
|
|
3579
3583
|
return new le(e).input(t);
|
|
3580
3584
|
}
|
|
3581
|
-
function
|
|
3582
|
-
if (e === "NO") return
|
|
3585
|
+
function Pa(e, t) {
|
|
3586
|
+
if (e === "NO") return Na(e, t);
|
|
3583
3587
|
let n = de(e);
|
|
3584
3588
|
return new le(e).input(`+${n}${t}`).replace(`+${n}`, "").trim();
|
|
3585
3589
|
}
|
|
3586
|
-
function
|
|
3587
|
-
return /^\s*[+0]/.test(t) ? new le(e).input(t) :
|
|
3590
|
+
function Fa(e, t) {
|
|
3591
|
+
return /^\s*[+0]/.test(t) ? new le(e).input(t) : Pa(e, t.replace(/\D/g, ""));
|
|
3588
3592
|
}
|
|
3589
|
-
function
|
|
3593
|
+
function Ia(e, t) {
|
|
3590
3594
|
let n = fe(t.replace(/[\s-]/g, ""), e);
|
|
3591
|
-
return n && n.countryCallingCode === de(e) ?
|
|
3595
|
+
return n && n.countryCallingCode === de(e) ? Pa(e, n.nationalNumber) : Fa(e, t);
|
|
3592
3596
|
}
|
|
3593
|
-
function
|
|
3597
|
+
function La(e, t, { sameCountry: n, mobileOnly: r }) {
|
|
3594
3598
|
let i = () => {
|
|
3595
3599
|
let n = fe(t.replace(/\s/g, ""), e);
|
|
3596
3600
|
return n?.isValid() && n.country === e ? Z(n.number) : X();
|
|
3597
3601
|
};
|
|
3598
|
-
if (r &&
|
|
3599
|
-
let n =
|
|
3602
|
+
if (r && bi(e)) {
|
|
3603
|
+
let n = xi(e, t);
|
|
3600
3604
|
return n.valid ? {
|
|
3601
3605
|
...n,
|
|
3602
3606
|
landline: !1
|
|
@@ -3606,11 +3610,11 @@ function Fa(e, t, { sameCountry: n, mobileOnly: r }) {
|
|
|
3606
3610
|
};
|
|
3607
3611
|
}
|
|
3608
3612
|
return {
|
|
3609
|
-
...n ? i() :
|
|
3613
|
+
...n ? i() : _i(e, t),
|
|
3610
3614
|
landline: !1
|
|
3611
3615
|
};
|
|
3612
3616
|
}
|
|
3613
|
-
var
|
|
3617
|
+
var Ra = U({
|
|
3614
3618
|
countryLabel: {
|
|
3615
3619
|
no: "Landskode",
|
|
3616
3620
|
se: "Landskod",
|
|
@@ -3641,8 +3645,8 @@ var Ia = U({
|
|
|
3641
3645
|
fi: "Anna matkapuhelinnumero",
|
|
3642
3646
|
es: "Introduce un número de móvil"
|
|
3643
3647
|
}
|
|
3644
|
-
}),
|
|
3645
|
-
function
|
|
3648
|
+
}), za = (...e) => e.filter(Boolean).join(" ") || void 0, Ba = (e) => `${e.name} ${e.code} ${e.dialCode} +${e.dialCode}`, Va = (e, t) => e.code === t.code;
|
|
3649
|
+
function Ha({ options: e, value: t, onChange: n, ariaLabel: r, searchLabel: i, noOptionsText: a, disabled: s, open: c, onOpenChange: l, anchorRef: u }) {
|
|
3646
3650
|
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;
|
|
3647
3651
|
return /* @__PURE__ */ M(V.Root, {
|
|
3648
3652
|
items: e,
|
|
@@ -3654,10 +3658,10 @@ function Ba({ options: e, value: t, onChange: n, ariaLabel: r, searchLabel: i, n
|
|
|
3654
3658
|
onInputValueChange: p,
|
|
3655
3659
|
open: c,
|
|
3656
3660
|
onOpenChange: l,
|
|
3657
|
-
filter: (e, t) => d(
|
|
3661
|
+
filter: (e, t) => d(Ba(e), t),
|
|
3658
3662
|
itemToStringLabel: (e) => e.name,
|
|
3659
3663
|
itemToStringValue: (e) => e.code,
|
|
3660
|
-
isItemEqualToValue:
|
|
3664
|
+
isItemEqualToValue: Va,
|
|
3661
3665
|
disabled: s,
|
|
3662
3666
|
highlightItemOnHover: !1,
|
|
3663
3667
|
children: [/* @__PURE__ */ M(V.Trigger, {
|
|
@@ -3700,13 +3704,13 @@ function Ba({ options: e, value: t, onChange: n, ariaLabel: r, searchLabel: i, n
|
|
|
3700
3704
|
children: a
|
|
3701
3705
|
}),
|
|
3702
3706
|
/* @__PURE__ */ j(V.List, {
|
|
3703
|
-
className:
|
|
3707
|
+
className: za(Y.List, $.List),
|
|
3704
3708
|
children: (e, t) => /* @__PURE__ */ M(o, { children: [f === "" && v > 0 && t === v && /* @__PURE__ */ j("div", {
|
|
3705
3709
|
role: "presentation",
|
|
3706
3710
|
className: $.Separator
|
|
3707
3711
|
}), /* @__PURE__ */ M(V.Item, {
|
|
3708
3712
|
value: e,
|
|
3709
|
-
className:
|
|
3713
|
+
className: za(Y.Item, $.Country),
|
|
3710
3714
|
children: [
|
|
3711
3715
|
/* @__PURE__ */ j("span", {
|
|
3712
3716
|
"aria-hidden": !0,
|
|
@@ -3729,19 +3733,19 @@ function Ba({ options: e, value: t, onChange: n, ariaLabel: r, searchLabel: i, n
|
|
|
3729
3733
|
}) })]
|
|
3730
3734
|
});
|
|
3731
3735
|
}
|
|
3732
|
-
function
|
|
3733
|
-
let T = je(), E =
|
|
3734
|
-
let e =
|
|
3736
|
+
function Ua({ 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 }) {
|
|
3737
|
+
let T = je(), E = Ra(), ee = f(), D = a ?? ee, O = f(), k = f(), te = h(null), [ne, re] = g(!1), A = _ != null && _.length > 0 ? _ : null, ie = A?.length === 1, N = A?.join(","), P = m(() => {
|
|
3738
|
+
let e = Aa(Ma[T]), t = N?.split(",");
|
|
3735
3739
|
return t ? e.filter((e) => t.includes(e.code)) : e;
|
|
3736
|
-
}, [T, N]), F = s ??
|
|
3740
|
+
}, [T, N]), F = s ?? ja[T], [ae, I] = g(A && !A.includes(F) ? A[0] : F), L = o ?? ae, R = {
|
|
3737
3741
|
sameCountry: A != null,
|
|
3738
3742
|
mobileOnly: v
|
|
3739
|
-
}, [oe, z] = g(u ?? ""), B = l ?? oe, [V, se] = g(!1), ce =
|
|
3743
|
+
}, [oe, z] = g(u ?? ""), B = l ?? oe, [V, se] = g(!1), ce = La(L, B, R), le = {
|
|
3740
3744
|
country: L,
|
|
3741
3745
|
e164: ce.normalized,
|
|
3742
3746
|
isValid: ce.valid
|
|
3743
3747
|
}, 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) => {
|
|
3744
|
-
let n =
|
|
3748
|
+
let n = La(t, e, R);
|
|
3745
3749
|
d?.(e, {
|
|
3746
3750
|
country: t,
|
|
3747
3751
|
e164: n.normalized,
|
|
@@ -3754,28 +3758,28 @@ function Va({ label: e, helperText: t, error: n, required: r = !1, disabled: i =
|
|
|
3754
3758
|
}, ve = (e) => {
|
|
3755
3759
|
let t = e.target.value;
|
|
3756
3760
|
if (!A) {
|
|
3757
|
-
ge(
|
|
3761
|
+
ge(Na(L, t), L);
|
|
3758
3762
|
return;
|
|
3759
3763
|
}
|
|
3760
3764
|
if (t.length - B.length > 1) {
|
|
3761
3765
|
let e = fe(t.replace(/[\s-]/g, ""), L), n = e?.country && A.includes(e.country) ? e.country : L;
|
|
3762
|
-
ge(
|
|
3766
|
+
ge(Ia(n, t), n);
|
|
3763
3767
|
return;
|
|
3764
3768
|
}
|
|
3765
|
-
ge(
|
|
3769
|
+
ge(Fa(L, t), L);
|
|
3766
3770
|
}, ye = (e) => {
|
|
3767
3771
|
if (se(!0), A) {
|
|
3768
|
-
let e =
|
|
3772
|
+
let e = Ia(L, B);
|
|
3769
3773
|
e !== B && ge(e, L);
|
|
3770
3774
|
}
|
|
3771
3775
|
p?.(e);
|
|
3772
3776
|
}, be = ie ? P.find((e) => e.code === L) : void 0;
|
|
3773
3777
|
return /* @__PURE__ */ M("div", {
|
|
3774
|
-
className:
|
|
3778
|
+
className: za(J.Field, $.Field, b),
|
|
3775
3779
|
style: x,
|
|
3776
3780
|
children: [/* @__PURE__ */ M("div", {
|
|
3777
3781
|
ref: te,
|
|
3778
|
-
className:
|
|
3782
|
+
className: za(J.Box, $.Box),
|
|
3779
3783
|
"data-invalid": de ? "" : void 0,
|
|
3780
3784
|
"data-disabled": i ? "" : void 0,
|
|
3781
3785
|
"data-country-open": ne ? "" : void 0,
|
|
@@ -3794,7 +3798,7 @@ function Va({ label: e, helperText: t, error: n, required: r = !1, disabled: i =
|
|
|
3794
3798
|
className: $.Dial,
|
|
3795
3799
|
children: ["+", be.dialCode]
|
|
3796
3800
|
})]
|
|
3797
|
-
}) : /* @__PURE__ */ j(
|
|
3801
|
+
}) : /* @__PURE__ */ j(Ha, {
|
|
3798
3802
|
options: P,
|
|
3799
3803
|
value: L,
|
|
3800
3804
|
onChange: _e,
|
|
@@ -3806,11 +3810,11 @@ function Va({ label: e, helperText: t, error: n, required: r = !1, disabled: i =
|
|
|
3806
3810
|
onOpenChange: re,
|
|
3807
3811
|
anchorRef: te
|
|
3808
3812
|
}), /* @__PURE__ */ M("div", {
|
|
3809
|
-
className:
|
|
3813
|
+
className: za(J.Inner, $.Inner),
|
|
3810
3814
|
children: [e != null && /* @__PURE__ */ M("label", {
|
|
3811
3815
|
htmlFor: D,
|
|
3812
|
-
className:
|
|
3813
|
-
children: [e, r && /* @__PURE__ */ j(
|
|
3816
|
+
className: za(J.Label, $.Label),
|
|
3817
|
+
children: [e, r && /* @__PURE__ */ j(Mr, {})]
|
|
3814
3818
|
}), /* @__PURE__ */ j("input", {
|
|
3815
3819
|
inputMode: "tel",
|
|
3816
3820
|
autoComplete: "tel-national",
|
|
@@ -3824,42 +3828,42 @@ function Va({ label: e, helperText: t, error: n, required: r = !1, disabled: i =
|
|
|
3824
3828
|
disabled: i,
|
|
3825
3829
|
required: r,
|
|
3826
3830
|
"aria-invalid": de,
|
|
3827
|
-
"aria-describedby":
|
|
3831
|
+
"aria-describedby": za(be && k, me && O, C),
|
|
3828
3832
|
className: J.Control
|
|
3829
3833
|
})]
|
|
3830
3834
|
})]
|
|
3831
|
-
}), me && /* @__PURE__ */ j(
|
|
3835
|
+
}), me && /* @__PURE__ */ j(Nr, {
|
|
3832
3836
|
id: O,
|
|
3833
3837
|
error: de,
|
|
3834
3838
|
children: pe
|
|
3835
3839
|
})]
|
|
3836
3840
|
});
|
|
3837
3841
|
}
|
|
3838
|
-
var
|
|
3842
|
+
var Wa = {
|
|
3839
3843
|
Options: "_Options_hhfuh_8",
|
|
3840
3844
|
Circle: "_Circle_hhfuh_19",
|
|
3841
3845
|
Dot: "_Dot_hhfuh_67"
|
|
3842
|
-
},
|
|
3846
|
+
}, Ga = Wa.Circle, Ka = Wa.Dot, qa = ({ checked: e = !1, size: t = "md", className: n }) => /* @__PURE__ */ j("span", {
|
|
3843
3847
|
"aria-hidden": !0,
|
|
3844
|
-
className: [
|
|
3848
|
+
className: [Wa.Circle, n].filter(Boolean).join(" "),
|
|
3845
3849
|
"data-size": t,
|
|
3846
3850
|
"data-checked": e ? "" : void 0,
|
|
3847
|
-
children: /* @__PURE__ */ j("span", { className:
|
|
3848
|
-
}),
|
|
3849
|
-
let t = u(
|
|
3851
|
+
children: /* @__PURE__ */ j("span", { className: Wa.Dot })
|
|
3852
|
+
}), Ja = { Group: "_Group_2xgbn_8" }, Ya = s(null), Xa = (e) => {
|
|
3853
|
+
let t = u(Ya);
|
|
3850
3854
|
if (!t) throw Error(`<${e}> must be rendered inside a <RadioGroup.Root> or <RadioCard.Group>.`);
|
|
3851
3855
|
return t;
|
|
3852
|
-
},
|
|
3853
|
-
function
|
|
3856
|
+
}, Za = (...e) => e.filter(Boolean).join(" ") || void 0;
|
|
3857
|
+
function Qa({ 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 }) {
|
|
3854
3858
|
let E = f(), ee = f(), D = e != null, O = n != null, k = m(() => ({
|
|
3855
3859
|
size: b,
|
|
3856
3860
|
cardSize: x
|
|
3857
3861
|
}), [b, x]);
|
|
3858
3862
|
return /* @__PURE__ */ M("div", {
|
|
3859
|
-
className:
|
|
3863
|
+
className: Za(Ja.Group, _),
|
|
3860
3864
|
style: v,
|
|
3861
3865
|
children: [
|
|
3862
|
-
D && /* @__PURE__ */ j(
|
|
3866
|
+
D && /* @__PURE__ */ j(Fr, {
|
|
3863
3867
|
id: E,
|
|
3864
3868
|
tooltip: t,
|
|
3865
3869
|
required: l,
|
|
@@ -3867,7 +3871,7 @@ function Xa({ label: e, tooltip: t, helperText: n, error: r = !1, value: i, defa
|
|
|
3867
3871
|
disabled: c,
|
|
3868
3872
|
children: e
|
|
3869
3873
|
}),
|
|
3870
|
-
/* @__PURE__ */ j(
|
|
3874
|
+
/* @__PURE__ */ j(Ya.Provider, {
|
|
3871
3875
|
value: k,
|
|
3872
3876
|
children: /* @__PURE__ */ j(ge, {
|
|
3873
3877
|
id: d,
|
|
@@ -3880,7 +3884,7 @@ function Xa({ label: e, tooltip: t, helperText: n, error: r = !1, value: i, defa
|
|
|
3880
3884
|
required: l,
|
|
3881
3885
|
"aria-label": p,
|
|
3882
3886
|
"aria-labelledby": D ? E : h,
|
|
3883
|
-
"aria-describedby":
|
|
3887
|
+
"aria-describedby": Za(O && ee, g),
|
|
3884
3888
|
"aria-invalid": r ? !0 : void 0,
|
|
3885
3889
|
onBlur: (e) => {
|
|
3886
3890
|
e.currentTarget.contains(e.relatedTarget) || u?.(e);
|
|
@@ -3891,7 +3895,7 @@ function Xa({ label: e, tooltip: t, helperText: n, error: r = !1, value: i, defa
|
|
|
3891
3895
|
children: T
|
|
3892
3896
|
})
|
|
3893
3897
|
}),
|
|
3894
|
-
O && /* @__PURE__ */ j(
|
|
3898
|
+
O && /* @__PURE__ */ j(Nr, {
|
|
3895
3899
|
id: ee,
|
|
3896
3900
|
error: r,
|
|
3897
3901
|
children: n
|
|
@@ -3900,13 +3904,13 @@ function Xa({ label: e, tooltip: t, helperText: n, error: r = !1, value: i, defa
|
|
|
3900
3904
|
});
|
|
3901
3905
|
}
|
|
3902
3906
|
//#endregion
|
|
3903
|
-
//#region src/components/form/radio.tsx
|
|
3904
|
-
var
|
|
3905
|
-
Item: () =>
|
|
3906
|
-
Root: () =>
|
|
3907
|
-
}),
|
|
3908
|
-
function
|
|
3909
|
-
let l =
|
|
3907
|
+
//#region src/components/form/radio/radio.tsx
|
|
3908
|
+
var $a = /* @__PURE__ */ Se({
|
|
3909
|
+
Item: () => to,
|
|
3910
|
+
Root: () => no
|
|
3911
|
+
}), eo = (...e) => e.filter(Boolean).join(" ") || void 0;
|
|
3912
|
+
function to({ value: e, label: t, disabled: n = !1, size: r, id: i, "aria-label": a, className: o, style: s, ref: c }) {
|
|
3913
|
+
let l = Xa("RadioGroup.Item"), u = t == null, d = /* @__PURE__ */ j(he.Root, {
|
|
3910
3914
|
nativeButton: !0,
|
|
3911
3915
|
render: /* @__PURE__ */ j("button", { type: "button" }),
|
|
3912
3916
|
id: i,
|
|
@@ -3915,34 +3919,34 @@ function $a({ value: e, label: t, disabled: n = !1, size: r, id: i, "aria-label"
|
|
|
3915
3919
|
disabled: n,
|
|
3916
3920
|
"aria-label": a,
|
|
3917
3921
|
"data-size": r ?? l.size ?? "md",
|
|
3918
|
-
className: u ?
|
|
3922
|
+
className: u ? eo(Ga, o) : Ga,
|
|
3919
3923
|
style: u ? s : void 0,
|
|
3920
3924
|
children: /* @__PURE__ */ j(he.Indicator, {
|
|
3921
3925
|
keepMounted: !0,
|
|
3922
|
-
className:
|
|
3926
|
+
className: Ka
|
|
3923
3927
|
})
|
|
3924
3928
|
});
|
|
3925
3929
|
return u ? d : /* @__PURE__ */ M("label", {
|
|
3926
|
-
className:
|
|
3930
|
+
className: eo(Jr.Row, o),
|
|
3927
3931
|
style: s,
|
|
3928
3932
|
children: [d, /* @__PURE__ */ j("span", {
|
|
3929
|
-
className:
|
|
3933
|
+
className: Jr.Text,
|
|
3930
3934
|
children: t
|
|
3931
3935
|
})]
|
|
3932
3936
|
});
|
|
3933
3937
|
}
|
|
3934
|
-
function
|
|
3935
|
-
return /* @__PURE__ */ M(
|
|
3938
|
+
function no({ options: e, children: t, ...n }) {
|
|
3939
|
+
return /* @__PURE__ */ M(Qa, {
|
|
3936
3940
|
...n,
|
|
3937
|
-
optionsClassName:
|
|
3938
|
-
children: [e?.map((e) => /* @__PURE__ */ j(
|
|
3941
|
+
optionsClassName: Wa.Options,
|
|
3942
|
+
children: [e?.map((e) => /* @__PURE__ */ j(to, {
|
|
3939
3943
|
value: e.value,
|
|
3940
3944
|
label: e.label,
|
|
3941
3945
|
disabled: e.disabled
|
|
3942
3946
|
}, String(e.value))), t]
|
|
3943
3947
|
});
|
|
3944
3948
|
}
|
|
3945
|
-
var
|
|
3949
|
+
var ro = {
|
|
3946
3950
|
Options: "_Options_1myxj_8",
|
|
3947
3951
|
Card: "_Card_1myxj_19",
|
|
3948
3952
|
Radio: "_Radio_1myxj_61",
|
|
@@ -3951,20 +3955,20 @@ var to = {
|
|
|
3951
3955
|
Content: "_Content_1myxj_116",
|
|
3952
3956
|
Label: "_Label_1myxj_133",
|
|
3953
3957
|
Description: "_Description_1myxj_142"
|
|
3954
|
-
},
|
|
3955
|
-
Content: () =>
|
|
3956
|
-
Description: () =>
|
|
3957
|
-
Group: () =>
|
|
3958
|
-
Icon: () =>
|
|
3959
|
-
Indicator: () =>
|
|
3960
|
-
Label: () =>
|
|
3961
|
-
Root: () =>
|
|
3962
|
-
}),
|
|
3963
|
-
function
|
|
3964
|
-
let c =
|
|
3958
|
+
}, io = /* @__PURE__ */ Se({
|
|
3959
|
+
Content: () => lo,
|
|
3960
|
+
Description: () => fo,
|
|
3961
|
+
Group: () => po,
|
|
3962
|
+
Icon: () => co,
|
|
3963
|
+
Indicator: () => so,
|
|
3964
|
+
Label: () => uo,
|
|
3965
|
+
Root: () => oo
|
|
3966
|
+
}), ao = (...e) => e.filter(Boolean).join(" ") || void 0;
|
|
3967
|
+
function oo({ value: e, orientation: t = "horizontal", disabled: n = !1, size: r, className: i, style: a, ref: o, children: s }) {
|
|
3968
|
+
let c = Xa("RadioCard.Root");
|
|
3965
3969
|
return /* @__PURE__ */ M("label", {
|
|
3966
3970
|
ref: o,
|
|
3967
|
-
className: ro
|
|
3971
|
+
className: ao(ro.Card, i),
|
|
3968
3972
|
style: a,
|
|
3969
3973
|
"data-orientation": t,
|
|
3970
3974
|
"data-size": r ?? c.cardSize ?? "lg",
|
|
@@ -3973,49 +3977,49 @@ function io({ value: e, orientation: t = "horizontal", disabled: n = !1, size: r
|
|
|
3973
3977
|
render: /* @__PURE__ */ j("button", { type: "button" }),
|
|
3974
3978
|
value: e,
|
|
3975
3979
|
disabled: n,
|
|
3976
|
-
className:
|
|
3980
|
+
className: ro.Radio
|
|
3977
3981
|
}), s]
|
|
3978
3982
|
});
|
|
3979
3983
|
}
|
|
3980
|
-
var
|
|
3984
|
+
var so = ({ size: e }) => /* @__PURE__ */ j(qa, {
|
|
3981
3985
|
size: e,
|
|
3982
|
-
className:
|
|
3983
|
-
}),
|
|
3986
|
+
className: ro.Indicator
|
|
3987
|
+
}), co = ({ size: e = 24, icon: t }) => /* @__PURE__ */ j(t, {
|
|
3984
3988
|
size: e,
|
|
3985
3989
|
"aria-hidden": !0,
|
|
3986
|
-
className:
|
|
3987
|
-
}),
|
|
3988
|
-
className: ro
|
|
3990
|
+
className: ro.Icon
|
|
3991
|
+
}), lo = ({ children: e, className: t, style: n }) => /* @__PURE__ */ j("span", {
|
|
3992
|
+
className: ao(ro.Content, t),
|
|
3989
3993
|
style: n,
|
|
3990
3994
|
children: e
|
|
3991
|
-
}),
|
|
3992
|
-
className:
|
|
3995
|
+
}), uo = ({ children: e }) => /* @__PURE__ */ j("span", {
|
|
3996
|
+
className: ro.Label,
|
|
3993
3997
|
children: e
|
|
3994
|
-
}),
|
|
3995
|
-
className:
|
|
3998
|
+
}), fo = ({ children: e }) => /* @__PURE__ */ j("span", {
|
|
3999
|
+
className: ro.Description,
|
|
3996
4000
|
children: e
|
|
3997
4001
|
});
|
|
3998
|
-
function
|
|
3999
|
-
return /* @__PURE__ */ M(
|
|
4002
|
+
function po({ options: e, columns: t = 1, size: n, children: r, ...i }) {
|
|
4003
|
+
return /* @__PURE__ */ M(Qa, {
|
|
4000
4004
|
...i,
|
|
4001
4005
|
cardSize: n,
|
|
4002
|
-
optionsClassName:
|
|
4006
|
+
optionsClassName: ro.Options,
|
|
4003
4007
|
optionsStyle: { "--radio-card-columns": t },
|
|
4004
4008
|
optionsDataColumns: t > 1 ? "many" : void 0,
|
|
4005
|
-
children: [e?.map((e) => /* @__PURE__ */ M(
|
|
4009
|
+
children: [e?.map((e) => /* @__PURE__ */ M(oo, {
|
|
4006
4010
|
value: e.value,
|
|
4007
4011
|
disabled: e.disabled,
|
|
4008
|
-
children: [/* @__PURE__ */ j(
|
|
4012
|
+
children: [/* @__PURE__ */ j(so, {}), e.label]
|
|
4009
4013
|
}, String(e.value))), r]
|
|
4010
4014
|
});
|
|
4011
4015
|
}
|
|
4012
4016
|
//#endregion
|
|
4013
|
-
//#region src/components/form/select.tsx
|
|
4014
|
-
function
|
|
4017
|
+
//#region src/components/form/select/select.tsx
|
|
4018
|
+
function mo({ options: e, value: t, defaultValue: n = "", onValueChange: r, startAdornment: i, ...a }) {
|
|
4015
4019
|
let o = t !== void 0, [s, c] = g(n), l = o ? t : s, u = e.find((e) => e.value === l);
|
|
4016
|
-
return /* @__PURE__ */ j(
|
|
4020
|
+
return /* @__PURE__ */ j(pa, {
|
|
4017
4021
|
...a,
|
|
4018
|
-
startAdornment: i ?? (u?.icon == null ? null : /* @__PURE__ */ j(
|
|
4022
|
+
startAdornment: i ?? (u?.icon == null ? null : /* @__PURE__ */ j(ha, { children: u.icon })),
|
|
4019
4023
|
multiple: !1,
|
|
4020
4024
|
value: u ? u.value : null,
|
|
4021
4025
|
onValueChange: (e) => {
|
|
@@ -4026,22 +4030,22 @@ function fo({ options: e, value: t, defaultValue: n = "", onValueChange: r, star
|
|
|
4026
4030
|
display: u?.label,
|
|
4027
4031
|
displayHidden: !0,
|
|
4028
4032
|
valueText: u?.label ?? "",
|
|
4029
|
-
children: e.map((e) => /* @__PURE__ */ j(
|
|
4033
|
+
children: e.map((e) => /* @__PURE__ */ j(ma, { option: e }, e.value))
|
|
4030
4034
|
});
|
|
4031
4035
|
}
|
|
4032
|
-
var
|
|
4036
|
+
var ho = {
|
|
4033
4037
|
Slider: "_Slider_1qpll_10",
|
|
4034
4038
|
Header: "_Header_1qpll_21",
|
|
4035
4039
|
Label: "_Label_1qpll_28",
|
|
4036
4040
|
Value: "_Value_1qpll_33"
|
|
4037
4041
|
};
|
|
4038
4042
|
//#endregion
|
|
4039
|
-
//#region src/components/form/slider.tsx
|
|
4040
|
-
function
|
|
4043
|
+
//#region src/components/form/slider/slider.tsx
|
|
4044
|
+
function go({ label: e, "aria-label": t, helperText: n, error: r = !1, color: i = "primary", min: a = 0, max: o = 100, format: s, locale: c, className: l, ...u }) {
|
|
4041
4045
|
let d = f(), p = f();
|
|
4042
4046
|
return /* @__PURE__ */ j(oe.Root, {
|
|
4043
4047
|
invalid: r,
|
|
4044
|
-
render:
|
|
4048
|
+
render: Tr,
|
|
4045
4049
|
children: /* @__PURE__ */ M(B.Root, {
|
|
4046
4050
|
...u,
|
|
4047
4051
|
min: a,
|
|
@@ -4050,27 +4054,27 @@ function mo({ label: e, "aria-label": t, helperText: n, error: r = !1, color: i
|
|
|
4050
4054
|
locale: c,
|
|
4051
4055
|
"aria-labelledby": e == null ? void 0 : d,
|
|
4052
4056
|
"data-color": i,
|
|
4053
|
-
className: G(
|
|
4057
|
+
className: G(ho.Slider, l),
|
|
4054
4058
|
children: [
|
|
4055
4059
|
/* @__PURE__ */ M("div", {
|
|
4056
|
-
className:
|
|
4060
|
+
className: ho.Header,
|
|
4057
4061
|
children: [e != null && /* @__PURE__ */ j("div", {
|
|
4058
4062
|
id: d,
|
|
4059
|
-
className:
|
|
4063
|
+
className: ho.Label,
|
|
4060
4064
|
children: e
|
|
4061
|
-
}), /* @__PURE__ */ j(B.Value, { className:
|
|
4065
|
+
}), /* @__PURE__ */ j(B.Value, { className: ho.Value })]
|
|
4062
4066
|
}),
|
|
4063
|
-
/* @__PURE__ */ j(
|
|
4067
|
+
/* @__PURE__ */ j(Er, {
|
|
4064
4068
|
"aria-label": t,
|
|
4065
4069
|
"aria-describedby": n == null ? void 0 : p
|
|
4066
4070
|
}),
|
|
4067
|
-
/* @__PURE__ */ j(
|
|
4071
|
+
/* @__PURE__ */ j(Dr, {
|
|
4068
4072
|
min: a,
|
|
4069
4073
|
max: o,
|
|
4070
4074
|
format: s,
|
|
4071
4075
|
locale: c
|
|
4072
4076
|
}),
|
|
4073
|
-
n != null && /* @__PURE__ */ j(
|
|
4077
|
+
n != null && /* @__PURE__ */ j(Or, {
|
|
4074
4078
|
id: p,
|
|
4075
4079
|
error: r,
|
|
4076
4080
|
children: n
|
|
@@ -4079,63 +4083,63 @@ function mo({ label: e, "aria-label": t, helperText: n, error: r = !1, color: i
|
|
|
4079
4083
|
})
|
|
4080
4084
|
});
|
|
4081
4085
|
}
|
|
4082
|
-
var
|
|
4086
|
+
var _o = {
|
|
4083
4087
|
Switch: "_Switch_9c9ji_7",
|
|
4084
4088
|
Thumb: "_Thumb_9c9ji_36"
|
|
4085
4089
|
};
|
|
4086
4090
|
//#endregion
|
|
4087
|
-
//#region src/components/form/switch.tsx
|
|
4088
|
-
function
|
|
4091
|
+
//#region src/components/form/switch/switch.tsx
|
|
4092
|
+
function vo({ className: e, ...t }) {
|
|
4089
4093
|
return /* @__PURE__ */ j(_e.Root, {
|
|
4090
4094
|
...t,
|
|
4091
|
-
className: G(
|
|
4092
|
-
children: /* @__PURE__ */ j(_e.Thumb, { className:
|
|
4095
|
+
className: G(_o.Switch, e),
|
|
4096
|
+
children: /* @__PURE__ */ j(_e.Thumb, { className: _o.Thumb })
|
|
4093
4097
|
});
|
|
4094
4098
|
}
|
|
4095
|
-
var
|
|
4099
|
+
var yo = {
|
|
4096
4100
|
Grid: "_Grid_19t94_10",
|
|
4097
4101
|
GridItem: "_GridItem_19t94_31"
|
|
4098
|
-
},
|
|
4099
|
-
function
|
|
4102
|
+
}, bo = (e) => typeof e == "object" && !!e;
|
|
4103
|
+
function xo(e, t, n = String) {
|
|
4100
4104
|
if (t === void 0) return {};
|
|
4101
|
-
let r =
|
|
4105
|
+
let r = bo(t) ? Object.entries(t) : [["base", t]], i = {};
|
|
4102
4106
|
for (let [t, a] of r) a !== void 0 && (i[`--_${e}-${t}`] = n(a));
|
|
4103
4107
|
return i;
|
|
4104
4108
|
}
|
|
4105
4109
|
//#endregion
|
|
4106
|
-
//#region src/components/layout/grid.tsx
|
|
4107
|
-
function
|
|
4110
|
+
//#region src/components/layout/grid/grid.tsx
|
|
4111
|
+
function So({ columns: e, gap: t, render: n, className: r, style: i, ...a }) {
|
|
4108
4112
|
return N({
|
|
4109
4113
|
render: n,
|
|
4110
4114
|
props: {
|
|
4111
4115
|
...a,
|
|
4112
|
-
className: G(
|
|
4116
|
+
className: G(yo.Grid, r)({}),
|
|
4113
4117
|
style: {
|
|
4114
|
-
...
|
|
4115
|
-
...
|
|
4118
|
+
...xo("columns", e),
|
|
4119
|
+
...xo("gap", t),
|
|
4116
4120
|
...i
|
|
4117
4121
|
}
|
|
4118
4122
|
}
|
|
4119
4123
|
});
|
|
4120
4124
|
}
|
|
4121
|
-
var
|
|
4122
|
-
function
|
|
4125
|
+
var Co = (e) => e === "full" ? "1 / -1" : `span ${e} / span ${e}`;
|
|
4126
|
+
function wo({ span: e, render: t, className: n, style: r, ...i }) {
|
|
4123
4127
|
return N({
|
|
4124
4128
|
render: t,
|
|
4125
4129
|
props: {
|
|
4126
4130
|
...i,
|
|
4127
|
-
className: G(
|
|
4131
|
+
className: G(yo.GridItem, n)({}),
|
|
4128
4132
|
style: {
|
|
4129
|
-
...
|
|
4133
|
+
...xo("span", e, Co),
|
|
4130
4134
|
...r
|
|
4131
4135
|
}
|
|
4132
4136
|
}
|
|
4133
4137
|
});
|
|
4134
4138
|
}
|
|
4135
|
-
var
|
|
4139
|
+
var To = { Stack: "_Stack_11xqj_10" };
|
|
4136
4140
|
//#endregion
|
|
4137
|
-
//#region src/components/layout/stack.tsx
|
|
4138
|
-
function
|
|
4141
|
+
//#region src/components/layout/stack/stack.tsx
|
|
4142
|
+
function Eo({ direction: e, gap: t, align: n, justify: r, wrap: i = !1, render: a, className: o, style: s, ...c }) {
|
|
4139
4143
|
return N({
|
|
4140
4144
|
render: a,
|
|
4141
4145
|
props: {
|
|
@@ -4143,22 +4147,22 @@ function wo({ direction: e, gap: t, align: n, justify: r, wrap: i = !1, render:
|
|
|
4143
4147
|
"data-align": n,
|
|
4144
4148
|
"data-justify": r,
|
|
4145
4149
|
"data-wrap": i || void 0,
|
|
4146
|
-
className: G(
|
|
4150
|
+
className: G(To.Stack, o)({}),
|
|
4147
4151
|
style: {
|
|
4148
|
-
...
|
|
4149
|
-
...
|
|
4152
|
+
...xo("direction", e),
|
|
4153
|
+
...xo("gap", t),
|
|
4150
4154
|
...s
|
|
4151
4155
|
}
|
|
4152
4156
|
}
|
|
4153
4157
|
});
|
|
4154
4158
|
}
|
|
4155
|
-
function
|
|
4156
|
-
return /* @__PURE__ */ j(
|
|
4159
|
+
function Do(e) {
|
|
4160
|
+
return /* @__PURE__ */ j(Eo, {
|
|
4157
4161
|
...e,
|
|
4158
4162
|
direction: "row"
|
|
4159
4163
|
});
|
|
4160
4164
|
}
|
|
4161
|
-
var
|
|
4165
|
+
var Oo = {
|
|
4162
4166
|
Header: "_Header_1p9o4_7",
|
|
4163
4167
|
Lead: "_Lead_1p9o4_15",
|
|
4164
4168
|
Titles: "_Titles_1p9o4_21",
|
|
@@ -4166,12 +4170,12 @@ var Eo = {
|
|
|
4166
4170
|
Next: "_Next_1p9o4_42",
|
|
4167
4171
|
Divider: "_Divider_1p9o4_51",
|
|
4168
4172
|
SrOnly: "_SrOnly_1p9o4_58"
|
|
4169
|
-
},
|
|
4173
|
+
}, ko = {
|
|
4170
4174
|
ProgressCircle: "_ProgressCircle_a7wgh_11",
|
|
4171
4175
|
Svg: "_Svg_a7wgh_23",
|
|
4172
4176
|
Track: "_Track_a7wgh_31",
|
|
4173
4177
|
Value: "_Value_a7wgh_35"
|
|
4174
|
-
},
|
|
4178
|
+
}, Ao = [
|
|
4175
4179
|
.69,
|
|
4176
4180
|
.33,
|
|
4177
4181
|
.61,
|
|
@@ -4182,10 +4186,10 @@ var Eo = {
|
|
|
4182
4186
|
.54,
|
|
4183
4187
|
.62,
|
|
4184
4188
|
.64
|
|
4185
|
-
],
|
|
4186
|
-
let n = Array.from(e).reduce((e, t) => e + (t === "/" ?
|
|
4187
|
-
return Math.max(t - 4, 0) / Math.hypot(n,
|
|
4188
|
-
},
|
|
4189
|
+
], jo = .43, Mo = .69, No = (e, t) => {
|
|
4190
|
+
let n = Array.from(e).reduce((e, t) => e + (t === "/" ? jo : Ao[Number(t)] ?? .69), 0);
|
|
4191
|
+
return Math.max(t - 4, 0) / Math.hypot(n, Mo);
|
|
4192
|
+
}, Po = ({ value: e, max: a, color: o = "primary", size: s = 48, strokeWidth: c = 4, showValue: l = !0, label: u }) => {
|
|
4189
4193
|
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));
|
|
4190
4194
|
d(() => {
|
|
4191
4195
|
let e = g(h);
|
|
@@ -4204,7 +4208,7 @@ var Eo = {
|
|
|
4204
4208
|
f,
|
|
4205
4209
|
_
|
|
4206
4210
|
]);
|
|
4207
|
-
let v = `${e}/${a}`, y =
|
|
4211
|
+
let v = `${e}/${a}`, y = No(v, s - 2 * c);
|
|
4208
4212
|
return /* @__PURE__ */ M("div", {
|
|
4209
4213
|
...u ? {
|
|
4210
4214
|
role: "progressbar",
|
|
@@ -4213,7 +4217,7 @@ var Eo = {
|
|
|
4213
4217
|
"aria-valuemax": a,
|
|
4214
4218
|
"aria-valuenow": e
|
|
4215
4219
|
} : { "aria-hidden": !0 },
|
|
4216
|
-
className:
|
|
4220
|
+
className: ko.ProgressCircle,
|
|
4217
4221
|
"data-color": o,
|
|
4218
4222
|
style: {
|
|
4219
4223
|
width: s,
|
|
@@ -4221,12 +4225,12 @@ var Eo = {
|
|
|
4221
4225
|
"--_label-fit": `${y.toFixed(2)}px`
|
|
4222
4226
|
},
|
|
4223
4227
|
children: [/* @__PURE__ */ M("svg", {
|
|
4224
|
-
className:
|
|
4228
|
+
className: ko.Svg,
|
|
4225
4229
|
width: s,
|
|
4226
4230
|
height: s,
|
|
4227
4231
|
viewBox: `0 0 ${s} ${s}`,
|
|
4228
4232
|
children: [/* @__PURE__ */ j("circle", {
|
|
4229
|
-
className:
|
|
4233
|
+
className: ko.Track,
|
|
4230
4234
|
cx: s / 2,
|
|
4231
4235
|
cy: s / 2,
|
|
4232
4236
|
r: p,
|
|
@@ -4245,11 +4249,11 @@ var Eo = {
|
|
|
4245
4249
|
style: { strokeDashoffset: _ }
|
|
4246
4250
|
})]
|
|
4247
4251
|
}), l && /* @__PURE__ */ j("span", {
|
|
4248
|
-
className:
|
|
4252
|
+
className: ko.Value,
|
|
4249
4253
|
children: v
|
|
4250
4254
|
})]
|
|
4251
4255
|
});
|
|
4252
|
-
},
|
|
4256
|
+
}, Fo = U({
|
|
4253
4257
|
back: {
|
|
4254
4258
|
no: "Tilbake",
|
|
4255
4259
|
se: "Tillbaka",
|
|
@@ -4274,15 +4278,15 @@ var Eo = {
|
|
|
4274
4278
|
fi: "/",
|
|
4275
4279
|
es: "de"
|
|
4276
4280
|
}
|
|
4277
|
-
}),
|
|
4281
|
+
}), Io = ({ 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 }) => {
|
|
4278
4282
|
let d = {
|
|
4279
|
-
...
|
|
4283
|
+
...Fo(),
|
|
4280
4284
|
...l
|
|
4281
4285
|
}, p = f(), m = c ?? p, h = o === "heading" ? s : "p", g = `, ${d.step} ${e} ${d.of} ${t}`;
|
|
4282
4286
|
return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ M("div", {
|
|
4283
|
-
className:
|
|
4287
|
+
className: Oo.Header,
|
|
4284
4288
|
children: [/* @__PURE__ */ M("div", {
|
|
4285
|
-
className:
|
|
4289
|
+
className: Oo.Lead,
|
|
4286
4290
|
children: [i && /* @__PURE__ */ j(lt, {
|
|
4287
4291
|
"aria-label": d.back,
|
|
4288
4292
|
onClick: i,
|
|
@@ -4290,18 +4294,18 @@ var Eo = {
|
|
|
4290
4294
|
color: "secondary",
|
|
4291
4295
|
children: /* @__PURE__ */ j(_, { "aria-hidden": !0 })
|
|
4292
4296
|
}), /* @__PURE__ */ M("div", {
|
|
4293
|
-
className:
|
|
4297
|
+
className: Oo.Titles,
|
|
4294
4298
|
children: [/* @__PURE__ */ M(h, {
|
|
4295
4299
|
id: m,
|
|
4296
4300
|
tabIndex: -1,
|
|
4297
|
-
className:
|
|
4301
|
+
className: Oo.Title,
|
|
4298
4302
|
"data-title-as": o,
|
|
4299
4303
|
children: [n, /* @__PURE__ */ j("span", {
|
|
4300
|
-
className:
|
|
4304
|
+
className: Oo.SrOnly,
|
|
4301
4305
|
children: g
|
|
4302
4306
|
})]
|
|
4303
4307
|
}), r != null && /* @__PURE__ */ M("p", {
|
|
4304
|
-
className:
|
|
4308
|
+
className: Oo.Next,
|
|
4305
4309
|
children: [
|
|
4306
4310
|
d.next,
|
|
4307
4311
|
": ",
|
|
@@ -4309,13 +4313,13 @@ var Eo = {
|
|
|
4309
4313
|
]
|
|
4310
4314
|
})]
|
|
4311
4315
|
})]
|
|
4312
|
-
}), /* @__PURE__ */ j(
|
|
4316
|
+
}), /* @__PURE__ */ j(Po, {
|
|
4313
4317
|
value: e,
|
|
4314
4318
|
max: t,
|
|
4315
4319
|
color: a
|
|
4316
4320
|
})]
|
|
4317
|
-
}), u && /* @__PURE__ */ j("hr", { className:
|
|
4318
|
-
},
|
|
4321
|
+
}), u && /* @__PURE__ */ j("hr", { className: Oo.Divider })] });
|
|
4322
|
+
}, Lo = {
|
|
4319
4323
|
LinearFormStepper: "_LinearFormStepper_160tf_7",
|
|
4320
4324
|
Progress: "_Progress_160tf_22",
|
|
4321
4325
|
Track: "_Track_160tf_26",
|
|
@@ -4324,26 +4328,26 @@ var Eo = {
|
|
|
4324
4328
|
Title: "_Title_160tf_47",
|
|
4325
4329
|
TitleText: "_TitleText_160tf_57",
|
|
4326
4330
|
"stepper-title-in": "_stepper-title-in_160tf_1"
|
|
4327
|
-
},
|
|
4331
|
+
}, Ro = ({ currentStep: e, totalSteps: t, title: n, onBack: r, color: i = "primary", headingLevel: a = "h1", titleId: o, labels: s }) => {
|
|
4328
4332
|
let c = {
|
|
4329
|
-
...
|
|
4333
|
+
...Fo(),
|
|
4330
4334
|
...s
|
|
4331
4335
|
}, l = f(), u = o ?? l;
|
|
4332
4336
|
return /* @__PURE__ */ M("div", {
|
|
4333
|
-
className:
|
|
4337
|
+
className: Lo.LinearFormStepper,
|
|
4334
4338
|
"data-color": i,
|
|
4335
4339
|
children: [/* @__PURE__ */ j(ve.Root, {
|
|
4336
|
-
className:
|
|
4340
|
+
className: Lo.Progress,
|
|
4337
4341
|
value: e,
|
|
4338
4342
|
max: t,
|
|
4339
4343
|
"aria-labelledby": u,
|
|
4340
4344
|
getAriaValueText: () => `${c.step} ${e} ${c.of} ${t}`,
|
|
4341
4345
|
children: /* @__PURE__ */ j(ve.Track, {
|
|
4342
|
-
className:
|
|
4343
|
-
children: /* @__PURE__ */ j(ve.Indicator, { className:
|
|
4346
|
+
className: Lo.Track,
|
|
4347
|
+
children: /* @__PURE__ */ j(ve.Indicator, { className: Lo.Indicator })
|
|
4344
4348
|
})
|
|
4345
4349
|
}), /* @__PURE__ */ M("div", {
|
|
4346
|
-
className:
|
|
4350
|
+
className: Lo.Header,
|
|
4347
4351
|
children: [r && /* @__PURE__ */ j(lt, {
|
|
4348
4352
|
"aria-label": c.back,
|
|
4349
4353
|
onClick: r,
|
|
@@ -4353,25 +4357,25 @@ var Eo = {
|
|
|
4353
4357
|
}), /* @__PURE__ */ j(a, {
|
|
4354
4358
|
id: u,
|
|
4355
4359
|
tabIndex: -1,
|
|
4356
|
-
className:
|
|
4360
|
+
className: Lo.Title,
|
|
4357
4361
|
children: /* @__PURE__ */ j("span", {
|
|
4358
|
-
className:
|
|
4362
|
+
className: Lo.TitleText,
|
|
4359
4363
|
children: n
|
|
4360
4364
|
}, e)
|
|
4361
4365
|
})]
|
|
4362
4366
|
})]
|
|
4363
4367
|
});
|
|
4364
|
-
},
|
|
4368
|
+
}, zo = s(null), Bo = s(null), Vo = ({ children: e, initialProgress: t }) => {
|
|
4365
4369
|
let [n, r] = g(t ?? null);
|
|
4366
|
-
return /* @__PURE__ */ j(
|
|
4370
|
+
return /* @__PURE__ */ j(Bo.Provider, {
|
|
4367
4371
|
value: r,
|
|
4368
|
-
children: /* @__PURE__ */ j(
|
|
4372
|
+
children: /* @__PURE__ */ j(zo.Provider, {
|
|
4369
4373
|
value: n,
|
|
4370
4374
|
children: e
|
|
4371
4375
|
})
|
|
4372
4376
|
});
|
|
4373
|
-
},
|
|
4374
|
-
let t = u(
|
|
4377
|
+
}, Ho = () => u(zo), Uo = (e) => {
|
|
4378
|
+
let t = u(Bo), n = e?.currentStep, r = e?.totalSteps, i = e?.title;
|
|
4375
4379
|
d(() => {
|
|
4376
4380
|
!t || n === void 0 || r === void 0 || i === void 0 || t({
|
|
4377
4381
|
currentStep: n,
|
|
@@ -4384,58 +4388,58 @@ var Eo = {
|
|
|
4384
4388
|
r,
|
|
4385
4389
|
i
|
|
4386
4390
|
]);
|
|
4387
|
-
},
|
|
4388
|
-
let t =
|
|
4389
|
-
return t ? /* @__PURE__ */ j(
|
|
4391
|
+
}, Wo = (e) => {
|
|
4392
|
+
let t = Ho();
|
|
4393
|
+
return t ? /* @__PURE__ */ j(Ro, {
|
|
4390
4394
|
...e,
|
|
4391
4395
|
...t
|
|
4392
4396
|
}) : null;
|
|
4393
|
-
},
|
|
4397
|
+
}, Go = {
|
|
4394
4398
|
Tabs: "_Tabs_y4jai_7",
|
|
4395
4399
|
List: "_List_y4jai_28",
|
|
4396
4400
|
Tab: "_Tab_y4jai_7",
|
|
4397
4401
|
Panel: "_Panel_y4jai_95",
|
|
4398
4402
|
Indicator: "_Indicator_y4jai_104"
|
|
4399
|
-
},
|
|
4400
|
-
Indicator: () =>
|
|
4401
|
-
List: () =>
|
|
4402
|
-
Panel: () =>
|
|
4403
|
-
Root: () =>
|
|
4404
|
-
Tab: () =>
|
|
4403
|
+
}, Ko = /* @__PURE__ */ Se({
|
|
4404
|
+
Indicator: () => Xo,
|
|
4405
|
+
List: () => Jo,
|
|
4406
|
+
Panel: () => Zo,
|
|
4407
|
+
Root: () => qo,
|
|
4408
|
+
Tab: () => Yo
|
|
4405
4409
|
});
|
|
4406
|
-
function
|
|
4410
|
+
function qo({ color: e = "primary", className: t, ...n }) {
|
|
4407
4411
|
return /* @__PURE__ */ j(ye.Root, {
|
|
4408
4412
|
...n,
|
|
4409
4413
|
"data-color": e,
|
|
4410
|
-
className: G(
|
|
4414
|
+
className: G(Go.Tabs, t)
|
|
4411
4415
|
});
|
|
4412
4416
|
}
|
|
4413
|
-
function
|
|
4417
|
+
function Jo({ children: e, className: t, ...n }) {
|
|
4414
4418
|
return /* @__PURE__ */ M(ye.List, {
|
|
4415
4419
|
...n,
|
|
4416
|
-
className: G(
|
|
4417
|
-
children: [e, /* @__PURE__ */ j(
|
|
4420
|
+
className: G(Go.List, t),
|
|
4421
|
+
children: [e, /* @__PURE__ */ j(Xo, {})]
|
|
4418
4422
|
});
|
|
4419
4423
|
}
|
|
4420
|
-
function
|
|
4424
|
+
function Yo({ className: e, ...t }) {
|
|
4421
4425
|
return /* @__PURE__ */ j(ye.Tab, {
|
|
4422
4426
|
...t,
|
|
4423
|
-
className: G(
|
|
4427
|
+
className: G(Go.Tab, e)
|
|
4424
4428
|
});
|
|
4425
4429
|
}
|
|
4426
|
-
function
|
|
4430
|
+
function Xo({ className: e, ...t }) {
|
|
4427
4431
|
return /* @__PURE__ */ j(ye.Indicator, {
|
|
4428
4432
|
...t,
|
|
4429
|
-
className: G(
|
|
4433
|
+
className: G(Go.Indicator, e)
|
|
4430
4434
|
});
|
|
4431
4435
|
}
|
|
4432
|
-
function
|
|
4436
|
+
function Zo({ className: e, ...t }) {
|
|
4433
4437
|
return /* @__PURE__ */ j(ye.Panel, {
|
|
4434
4438
|
...t,
|
|
4435
|
-
className: G(
|
|
4439
|
+
className: G(Go.Panel, e)
|
|
4436
4440
|
});
|
|
4437
4441
|
}
|
|
4438
|
-
var
|
|
4442
|
+
var Qo = {
|
|
4439
4443
|
Breadcrumbs: "_Breadcrumbs_1p42m_8",
|
|
4440
4444
|
List: "_List_1p42m_12",
|
|
4441
4445
|
Item: "_Item_1p42m_26",
|
|
@@ -4443,15 +4447,15 @@ var Xo = {
|
|
|
4443
4447
|
Link: "_Link_1p42m_39",
|
|
4444
4448
|
Text: "_Text_1p42m_40",
|
|
4445
4449
|
Current: "_Current_1p42m_55"
|
|
4446
|
-
},
|
|
4450
|
+
}, $o = U({ label: {
|
|
4447
4451
|
no: "Brødsmulesti",
|
|
4448
4452
|
se: "Brödsmulor",
|
|
4449
4453
|
fi: "Murupolku",
|
|
4450
4454
|
es: "Ruta de navegación"
|
|
4451
4455
|
} });
|
|
4452
4456
|
//#endregion
|
|
4453
|
-
//#region src/components/navigation/breadcrumbs.tsx
|
|
4454
|
-
function
|
|
4457
|
+
//#region src/components/navigation/breadcrumbs/breadcrumbs.tsx
|
|
4458
|
+
function es({ item: e }) {
|
|
4455
4459
|
let t = e.href != null || e.render != null;
|
|
4456
4460
|
return N({
|
|
4457
4461
|
enabled: t,
|
|
@@ -4459,45 +4463,45 @@ function Qo({ item: e }) {
|
|
|
4459
4463
|
defaultTagName: "a",
|
|
4460
4464
|
props: {
|
|
4461
4465
|
href: e.href,
|
|
4462
|
-
className:
|
|
4466
|
+
className: Qo.Link,
|
|
4463
4467
|
children: e.label
|
|
4464
4468
|
}
|
|
4465
4469
|
}) ?? /* @__PURE__ */ j("span", {
|
|
4466
|
-
className:
|
|
4470
|
+
className: Qo.Text,
|
|
4467
4471
|
children: e.label
|
|
4468
4472
|
});
|
|
4469
4473
|
}
|
|
4470
|
-
function
|
|
4471
|
-
let r =
|
|
4474
|
+
function ts({ items: e, className: t, ...n }) {
|
|
4475
|
+
let r = $o();
|
|
4472
4476
|
if (e.length === 0) return null;
|
|
4473
4477
|
let i = e.length - 1;
|
|
4474
4478
|
return /* @__PURE__ */ j("nav", {
|
|
4475
4479
|
"aria-label": r.label,
|
|
4476
4480
|
...n,
|
|
4477
|
-
className: [
|
|
4481
|
+
className: [Qo.Breadcrumbs, t].filter(Boolean).join(" "),
|
|
4478
4482
|
children: /* @__PURE__ */ j("ol", {
|
|
4479
|
-
className:
|
|
4483
|
+
className: Qo.List,
|
|
4480
4484
|
children: e.map((e, t) => /* @__PURE__ */ M("li", {
|
|
4481
|
-
className:
|
|
4485
|
+
className: Qo.Item,
|
|
4482
4486
|
children: [t > 0 && /* @__PURE__ */ j("span", {
|
|
4483
4487
|
"aria-hidden": !0,
|
|
4484
|
-
className:
|
|
4488
|
+
className: Qo.Separator,
|
|
4485
4489
|
children: "/"
|
|
4486
4490
|
}), t === i ? /* @__PURE__ */ j("span", {
|
|
4487
4491
|
"aria-current": "page",
|
|
4488
|
-
className:
|
|
4492
|
+
className: Qo.Current,
|
|
4489
4493
|
children: e.label
|
|
4490
|
-
}) : /* @__PURE__ */ j(
|
|
4494
|
+
}) : /* @__PURE__ */ j(es, { item: e })]
|
|
4491
4495
|
}, t))
|
|
4492
4496
|
})
|
|
4493
4497
|
});
|
|
4494
4498
|
}
|
|
4495
|
-
var
|
|
4499
|
+
var ns = {
|
|
4496
4500
|
Pagination: "_Pagination_18k1j_7",
|
|
4497
4501
|
List: "_List_18k1j_11",
|
|
4498
4502
|
Item: "_Item_18k1j_21",
|
|
4499
4503
|
Ellipsis: "_Ellipsis_18k1j_75"
|
|
4500
|
-
},
|
|
4504
|
+
}, rs = U({
|
|
4501
4505
|
label: {
|
|
4502
4506
|
no: "Sider",
|
|
4503
4507
|
se: "Sidor",
|
|
@@ -4528,20 +4532,20 @@ var es = {
|
|
|
4528
4532
|
fi: "Siirry sivulle {page}",
|
|
4529
4533
|
es: "Ir a la página {page}"
|
|
4530
4534
|
}
|
|
4531
|
-
}),
|
|
4535
|
+
}), is = (e, t) => e.replace("{page}", String(t));
|
|
4532
4536
|
//#endregion
|
|
4533
|
-
//#region src/components/navigation/pagination.tsx
|
|
4534
|
-
function
|
|
4537
|
+
//#region src/components/navigation/pagination/pagination.tsx
|
|
4538
|
+
function as(e, t) {
|
|
4535
4539
|
if (t <= 7) return Array.from({ length: t }, (e, t) => t + 1);
|
|
4536
4540
|
let n = Math.max(2, e - 1), r = Math.min(t - 1, e + 1), i = [1];
|
|
4537
4541
|
n > 2 && i.push("start-ellipsis");
|
|
4538
4542
|
for (let e = n; e <= r; e += 1) i.push(e);
|
|
4539
4543
|
return r < t - 1 && i.push("end-ellipsis"), i.push(t), i;
|
|
4540
4544
|
}
|
|
4541
|
-
var
|
|
4542
|
-
function
|
|
4545
|
+
var os = (e, t) => Math.min(Math.max(Math.round(e), 1), Math.max(t, 1));
|
|
4546
|
+
function ss({ page: e, label: t, current: n = !1, disabled: r = !1, renderLink: i, onSelect: a, children: o }) {
|
|
4543
4547
|
let s = {
|
|
4544
|
-
className:
|
|
4548
|
+
className: ns.Item,
|
|
4545
4549
|
"aria-label": t,
|
|
4546
4550
|
"aria-current": n ? "page" : void 0,
|
|
4547
4551
|
"data-current": n ? "" : void 0,
|
|
@@ -4568,8 +4572,8 @@ function as({ page: e, label: t, current: n = !1, disabled: r = !1, renderLink:
|
|
|
4568
4572
|
"aria-disabled": "true"
|
|
4569
4573
|
}));
|
|
4570
4574
|
}
|
|
4571
|
-
function
|
|
4572
|
-
let s =
|
|
4575
|
+
function cs({ count: e, value: t, defaultValue: n = 1, onValueChange: r, renderLink: i, className: a, ...o }) {
|
|
4576
|
+
let s = rs(), [c, l] = g(n), u = os(t ?? c, e);
|
|
4573
4577
|
if (e <= 1) return null;
|
|
4574
4578
|
let d = (e) => {
|
|
4575
4579
|
t === void 0 && l(e), e !== u && r?.(e);
|
|
@@ -4577,30 +4581,30 @@ function os({ count: e, value: t, defaultValue: n = 1, onValueChange: r, renderL
|
|
|
4577
4581
|
return /* @__PURE__ */ j("nav", {
|
|
4578
4582
|
"aria-label": s.label,
|
|
4579
4583
|
...o,
|
|
4580
|
-
className: [
|
|
4584
|
+
className: [ns.Pagination, a].filter(Boolean).join(" "),
|
|
4581
4585
|
children: /* @__PURE__ */ M("ul", {
|
|
4582
|
-
className:
|
|
4586
|
+
className: ns.List,
|
|
4583
4587
|
children: [
|
|
4584
|
-
/* @__PURE__ */ j("li", { children: /* @__PURE__ */ j(
|
|
4588
|
+
/* @__PURE__ */ j("li", { children: /* @__PURE__ */ j(ss, {
|
|
4585
4589
|
page: u - 1,
|
|
4586
4590
|
disabled: u <= 1,
|
|
4587
4591
|
renderLink: i,
|
|
4588
4592
|
onSelect: d,
|
|
4589
4593
|
children: s.previous
|
|
4590
4594
|
}) }),
|
|
4591
|
-
|
|
4595
|
+
as(u, e).map((e) => typeof e == "number" ? /* @__PURE__ */ j("li", { children: /* @__PURE__ */ j(ss, {
|
|
4592
4596
|
page: e,
|
|
4593
|
-
label:
|
|
4597
|
+
label: is(s.page, e),
|
|
4594
4598
|
current: e === u,
|
|
4595
4599
|
renderLink: i,
|
|
4596
4600
|
onSelect: d,
|
|
4597
4601
|
children: e
|
|
4598
4602
|
}) }, e) : /* @__PURE__ */ j("li", {
|
|
4599
4603
|
"aria-hidden": !0,
|
|
4600
|
-
className:
|
|
4604
|
+
className: ns.Ellipsis,
|
|
4601
4605
|
children: "…"
|
|
4602
4606
|
}, e)),
|
|
4603
|
-
/* @__PURE__ */ j("li", { children: /* @__PURE__ */ j(
|
|
4607
|
+
/* @__PURE__ */ j("li", { children: /* @__PURE__ */ j(ss, {
|
|
4604
4608
|
page: u + 1,
|
|
4605
4609
|
disabled: u >= e,
|
|
4606
4610
|
renderLink: i,
|
|
@@ -4611,14 +4615,14 @@ function os({ count: e, value: t, defaultValue: n = 1, onValueChange: r, renderL
|
|
|
4611
4615
|
})
|
|
4612
4616
|
});
|
|
4613
4617
|
}
|
|
4614
|
-
var
|
|
4618
|
+
var ls = {
|
|
4615
4619
|
PaginationDots: "_PaginationDots_17xgb_12",
|
|
4616
4620
|
Dot: "_Dot_17xgb_19"
|
|
4617
4621
|
};
|
|
4618
4622
|
//#endregion
|
|
4619
|
-
//#region src/components/navigation/pagination-dots.tsx
|
|
4620
|
-
function
|
|
4621
|
-
let s =
|
|
4623
|
+
//#region src/components/navigation/pagination-dots/pagination-dots.tsx
|
|
4624
|
+
function us({ count: e, value: t, defaultValue: n = 1, onValueChange: r, getItemLabel: i, className: a, ...o }) {
|
|
4625
|
+
let s = rs(), [c, l] = g(n), u = t ?? c;
|
|
4622
4626
|
if (e <= 1) return null;
|
|
4623
4627
|
let d = (e) => {
|
|
4624
4628
|
t === void 0 && l(e), e !== u && r?.(e);
|
|
@@ -4627,13 +4631,13 @@ function cs({ count: e, value: t, defaultValue: n = 1, onValueChange: r, getItem
|
|
|
4627
4631
|
role: "group",
|
|
4628
4632
|
"aria-label": s.label,
|
|
4629
4633
|
...o,
|
|
4630
|
-
className: [
|
|
4634
|
+
className: [ls.PaginationDots, a].filter(Boolean).join(" "),
|
|
4631
4635
|
children: Array.from({ length: e }, (e, t) => {
|
|
4632
4636
|
let n = t + 1, r = n === u;
|
|
4633
4637
|
return /* @__PURE__ */ j("button", {
|
|
4634
4638
|
type: "button",
|
|
4635
|
-
className:
|
|
4636
|
-
"aria-label": i?.(n) ??
|
|
4639
|
+
className: ls.Dot,
|
|
4640
|
+
"aria-label": i?.(n) ?? is(s.goToPage, n),
|
|
4637
4641
|
"aria-current": r || void 0,
|
|
4638
4642
|
"data-current": r ? "" : void 0,
|
|
4639
4643
|
onClick: () => d(n)
|
|
@@ -4641,7 +4645,34 @@ function cs({ count: e, value: t, defaultValue: n = 1, onValueChange: r, getItem
|
|
|
4641
4645
|
})
|
|
4642
4646
|
});
|
|
4643
4647
|
}
|
|
4644
|
-
var
|
|
4648
|
+
var ds = {
|
|
4649
|
+
AppHeader: "_AppHeader_1s0uj_1",
|
|
4650
|
+
AppHeaderContent: "_AppHeaderContent_1s0uj_11",
|
|
4651
|
+
AppHeaderLogo: "_AppHeaderLogo_1s0uj_28",
|
|
4652
|
+
AppHeaderActions: "_AppHeaderActions_1s0uj_33"
|
|
4653
|
+
}, fs = ({ brandDivider: e = !0, fluid: t = !1, children: n, logo: r, className: i }) => {
|
|
4654
|
+
let o = a.toArray(n).length > 0;
|
|
4655
|
+
return /* @__PURE__ */ M("header", {
|
|
4656
|
+
className: [ds.AppHeader, i].filter(Boolean).join(" "),
|
|
4657
|
+
"data-brand-divider": e || void 0,
|
|
4658
|
+
"data-has-children": o || void 0,
|
|
4659
|
+
children: [/* @__PURE__ */ M(sr, {
|
|
4660
|
+
className: ds.AppHeaderContent,
|
|
4661
|
+
"data-fluid": t || void 0,
|
|
4662
|
+
children: [/* @__PURE__ */ j("div", {
|
|
4663
|
+
className: ds.AppHeaderLogo,
|
|
4664
|
+
children: r || /* @__PURE__ */ j("img", {
|
|
4665
|
+
src: "/leabank-logo.png",
|
|
4666
|
+
alt: "Logo",
|
|
4667
|
+
width: 100
|
|
4668
|
+
})
|
|
4669
|
+
}), o && /* @__PURE__ */ j("div", {
|
|
4670
|
+
className: ds.AppHeaderActions,
|
|
4671
|
+
children: n
|
|
4672
|
+
})]
|
|
4673
|
+
}), e && /* @__PURE__ */ j(Sn, { size: "sm" })]
|
|
4674
|
+
});
|
|
4675
|
+
}, ps = {
|
|
4645
4676
|
Root: "_Root_oibl2_13",
|
|
4646
4677
|
Item: "_Item_oibl2_10",
|
|
4647
4678
|
Header: "_Header_oibl2_10",
|
|
@@ -4650,81 +4681,81 @@ var ls = {
|
|
|
4650
4681
|
Icon: "_Icon_oibl2_153",
|
|
4651
4682
|
Panel: "_Panel_oibl2_171",
|
|
4652
4683
|
Content: "_Content_oibl2_182"
|
|
4653
|
-
},
|
|
4654
|
-
Header: () =>
|
|
4655
|
-
Item: () =>
|
|
4656
|
-
Panel: () =>
|
|
4657
|
-
Root: () =>
|
|
4658
|
-
Trigger: () =>
|
|
4684
|
+
}, ms = /* @__PURE__ */ Se({
|
|
4685
|
+
Header: () => _s,
|
|
4686
|
+
Item: () => gs,
|
|
4687
|
+
Panel: () => ys,
|
|
4688
|
+
Root: () => hs,
|
|
4689
|
+
Trigger: () => vs
|
|
4659
4690
|
});
|
|
4660
|
-
function
|
|
4691
|
+
function hs({ variant: e = "outline", iconPosition: t = "end", className: n, ...r }) {
|
|
4661
4692
|
return /* @__PURE__ */ j(be.Root, {
|
|
4662
4693
|
...r,
|
|
4663
4694
|
"data-variant": e,
|
|
4664
4695
|
"data-icon-position": t,
|
|
4665
|
-
className: G(
|
|
4696
|
+
className: G(ps.Root, n)
|
|
4666
4697
|
});
|
|
4667
4698
|
}
|
|
4668
|
-
function
|
|
4699
|
+
function gs({ className: e, ...t }) {
|
|
4669
4700
|
return /* @__PURE__ */ j(be.Item, {
|
|
4670
4701
|
...t,
|
|
4671
|
-
className: G(
|
|
4702
|
+
className: G(ps.Item, e)
|
|
4672
4703
|
});
|
|
4673
4704
|
}
|
|
4674
|
-
function
|
|
4705
|
+
function _s({ className: e, ...t }) {
|
|
4675
4706
|
return /* @__PURE__ */ j(be.Header, {
|
|
4676
4707
|
...t,
|
|
4677
|
-
className: G(
|
|
4708
|
+
className: G(ps.Header, e)
|
|
4678
4709
|
});
|
|
4679
4710
|
}
|
|
4680
|
-
function
|
|
4711
|
+
function vs({ children: e, className: t, ...n }) {
|
|
4681
4712
|
return /* @__PURE__ */ M(be.Trigger, {
|
|
4682
4713
|
...n,
|
|
4683
|
-
className: G(
|
|
4714
|
+
className: G(ps.Trigger, t),
|
|
4684
4715
|
children: [/* @__PURE__ */ j("span", {
|
|
4685
|
-
className:
|
|
4716
|
+
className: ps.Label,
|
|
4686
4717
|
children: e
|
|
4687
4718
|
}), /* @__PURE__ */ j(b, {
|
|
4688
|
-
className:
|
|
4719
|
+
className: ps.Icon,
|
|
4689
4720
|
size: 20,
|
|
4690
4721
|
"aria-hidden": !0
|
|
4691
4722
|
})]
|
|
4692
4723
|
});
|
|
4693
4724
|
}
|
|
4694
|
-
function
|
|
4725
|
+
function ys({ children: e, className: t, ...n }) {
|
|
4695
4726
|
return /* @__PURE__ */ j(be.Panel, {
|
|
4696
4727
|
...n,
|
|
4697
|
-
className: G(
|
|
4728
|
+
className: G(ps.Panel, t),
|
|
4698
4729
|
children: /* @__PURE__ */ j("div", {
|
|
4699
|
-
className:
|
|
4730
|
+
className: ps.Content,
|
|
4700
4731
|
children: e
|
|
4701
4732
|
})
|
|
4702
4733
|
});
|
|
4703
4734
|
}
|
|
4704
4735
|
//#endregion
|
|
4705
|
-
//#region src/components/surfaces/simple-accordion.tsx
|
|
4706
|
-
function
|
|
4736
|
+
//#region src/components/surfaces/accordion/simple-accordion.tsx
|
|
4737
|
+
function bs({ items: e, title: t, content: n, action: r, ...i }) {
|
|
4707
4738
|
let a = e ?? [{
|
|
4708
4739
|
title: t,
|
|
4709
4740
|
content: n,
|
|
4710
4741
|
action: r
|
|
4711
4742
|
}];
|
|
4712
|
-
return /* @__PURE__ */ j(
|
|
4743
|
+
return /* @__PURE__ */ j(hs, {
|
|
4713
4744
|
...i,
|
|
4714
4745
|
children: a.map((e, t) => {
|
|
4715
4746
|
let n = e.value ?? String(t);
|
|
4716
|
-
return /* @__PURE__ */ M(
|
|
4747
|
+
return /* @__PURE__ */ M(gs, {
|
|
4717
4748
|
value: n,
|
|
4718
4749
|
disabled: e.disabled,
|
|
4719
|
-
children: [/* @__PURE__ */ M(
|
|
4750
|
+
children: [/* @__PURE__ */ M(_s, { children: [/* @__PURE__ */ j(vs, { children: e.title }), e.action] }), /* @__PURE__ */ j(ys, { children: e.content })]
|
|
4720
4751
|
}, n);
|
|
4721
4752
|
})
|
|
4722
4753
|
});
|
|
4723
4754
|
}
|
|
4724
|
-
var
|
|
4755
|
+
var xs = { Panel: "_Panel_1n14v_7" };
|
|
4725
4756
|
//#endregion
|
|
4726
|
-
//#region src/components/surfaces/panel.tsx
|
|
4727
|
-
function
|
|
4757
|
+
//#region src/components/surfaces/panel/panel.tsx
|
|
4758
|
+
function Ss({ render: e, ref: t, className: n, size: r, ...i }) {
|
|
4728
4759
|
return N({
|
|
4729
4760
|
render: e,
|
|
4730
4761
|
ref: t,
|
|
@@ -4732,45 +4763,16 @@ function vs({ render: e, ref: t, className: n, size: r, ...i }) {
|
|
|
4732
4763
|
props: {
|
|
4733
4764
|
...i,
|
|
4734
4765
|
"data-size": r,
|
|
4735
|
-
className: G(
|
|
4766
|
+
className: G(xs.Panel, n)({})
|
|
4736
4767
|
}
|
|
4737
4768
|
});
|
|
4738
4769
|
}
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
"data-size": e
|
|
4743
|
-
}), xs = {
|
|
4744
|
-
AppHeader: "_AppHeader_1s0uj_1",
|
|
4745
|
-
AppHeaderContent: "_AppHeaderContent_1s0uj_11",
|
|
4746
|
-
AppHeaderLogo: "_AppHeaderLogo_1s0uj_28",
|
|
4747
|
-
AppHeaderActions: "_AppHeaderActions_1s0uj_33"
|
|
4748
|
-
}, Ss = ({ brandDivider: e = !0, fluid: t = !1, children: n, logo: r, className: i }) => {
|
|
4749
|
-
let o = a.toArray(n).length > 0;
|
|
4750
|
-
return /* @__PURE__ */ M("header", {
|
|
4751
|
-
className: [xs.AppHeader, i].filter(Boolean).join(" "),
|
|
4752
|
-
"data-brand-divider": e || void 0,
|
|
4753
|
-
"data-has-children": o || void 0,
|
|
4754
|
-
children: [/* @__PURE__ */ M(ar, {
|
|
4755
|
-
className: xs.AppHeaderContent,
|
|
4756
|
-
"data-fluid": t || void 0,
|
|
4757
|
-
children: [/* @__PURE__ */ j("div", {
|
|
4758
|
-
className: xs.AppHeaderLogo,
|
|
4759
|
-
children: r || /* @__PURE__ */ j("img", {
|
|
4760
|
-
src: "/leabank-logo.png",
|
|
4761
|
-
alt: "Logo",
|
|
4762
|
-
width: 100
|
|
4763
|
-
})
|
|
4764
|
-
}), o && /* @__PURE__ */ j("div", {
|
|
4765
|
-
className: xs.AppHeaderActions,
|
|
4766
|
-
children: n
|
|
4767
|
-
})]
|
|
4768
|
-
}), e && /* @__PURE__ */ j(bs, { size: "sm" })]
|
|
4769
|
-
});
|
|
4770
|
-
}, Cs = s(null);
|
|
4770
|
+
//#endregion
|
|
4771
|
+
//#region src/hooks/country/country-context.tsx
|
|
4772
|
+
var Cs = s(null);
|
|
4771
4773
|
function ws({ country: e, children: t }) {
|
|
4772
4774
|
let n = m(() => {
|
|
4773
|
-
let t =
|
|
4775
|
+
let t = ba[e];
|
|
4774
4776
|
return {
|
|
4775
4777
|
country: t.country,
|
|
4776
4778
|
locale: t.locale,
|
|
@@ -4844,15 +4846,15 @@ function js() {
|
|
|
4844
4846
|
//#endregion
|
|
4845
4847
|
//#region src/hooks/validation/use-validation.ts
|
|
4846
4848
|
function Ms() {
|
|
4847
|
-
let { country: e } = Ts(), t = l((t) =>
|
|
4849
|
+
let { country: e } = Ts(), t = l((t) => li(e, t), [e]), n = l((t) => ui(e, t), [e]);
|
|
4848
4850
|
return Object.assign(t, { validate: n });
|
|
4849
4851
|
}
|
|
4850
4852
|
function Ns() {
|
|
4851
|
-
let { country: e } = Ts(), t = l((t) =>
|
|
4853
|
+
let { country: e } = Ts(), t = l((t) => vi(e, t), [e]), n = l((t) => _i(e, t), [e]);
|
|
4852
4854
|
return Object.assign(t, { validate: n });
|
|
4853
4855
|
}
|
|
4854
4856
|
function Ps() {
|
|
4855
|
-
let { country: e } = Ts(), t = l((t) =>
|
|
4857
|
+
let { country: e } = Ts(), t = l((t) => Mi(e, t), [e]), n = l((t) => ji(e, t), [e]);
|
|
4856
4858
|
return Object.assign(t, { validate: n });
|
|
4857
4859
|
}
|
|
4858
4860
|
//#endregion
|
|
@@ -4894,7 +4896,7 @@ var Is = {
|
|
|
4894
4896
|
decimalPlaces: t
|
|
4895
4897
|
}) + "%";
|
|
4896
4898
|
//#endregion
|
|
4897
|
-
//#region src/utils/
|
|
4899
|
+
//#region src/utils/parse-expiration-date.ts
|
|
4898
4900
|
function Hs(e) {
|
|
4899
4901
|
let t = e.match(/^([0-9]{2})([0-9]{2})$/);
|
|
4900
4902
|
return t ? {
|
|
@@ -4906,6 +4908,6 @@ function Hs(e) {
|
|
|
4906
4908
|
};
|
|
4907
4909
|
}
|
|
4908
4910
|
//#endregion
|
|
4909
|
-
export {
|
|
4911
|
+
export { ms as Accordion, ot as ActionButton, Dn as Alert, On as AlertTitle, kr as AmountSlider, fs as AppHeader, vn as ArticleCard, Wr as Autocomplete, Rt as Avatar, Sn as BrandDivider, ts as Breadcrumbs, st as Button, zi as COMMON_EMAIL_DOMAINS, ba as COUNTRIES, Tt as Card, Et as CardContent, Ye as CheckAnimation, Xr as Checkbox, kt as Chip, ut as CloseButton, sr as Container, ws as CountryProvider, ke as DEFAULT_LANGUAGE, Ct as DataField, An as Dialog, mt as DownloadTrigger, Gn as Drawer, aa as EmailInput, en as FeaturedImage, Io as FormStepper, cr as GlobalAlert, So as Grid, wo as GridItem, Do as HStack, lt as IconButton, ua as Input, Oe as LANGUAGES, Ae as LanguageContext, Fs as LeaProvider, Ro as LinearFormStepper, Xi as Link, ln as LinkCard, Qi as List, fn as MediaCard, ya as MultiSelect, di as NATIONAL_ID_LENGTH, Ea as NumberInput, Oa as PINNED_COUNTRIES, cs as Pagination, us as PaginationDots, Ss as Panel, bn as PartnerRow, Ua as PhoneNumberInput, Po as ProgressCircle, Ze as PulseAnimation, io as RadioCard, $a as RadioGroup, Qt as RichText, mo as Select, mn as ServiceCard, bs as SimpleAccordion, lr as SimpleDialog, ur as SimpleDrawer, Sr as Skeleton, gt as SkipLink, go as Slider, Eo as Stack, Ht as StarRating, $e as StatusAnimation, Pe as StatusIcon, Wo as StepProgressHeader, Vo as StepProgressProvider, vo as Switch, Gt as Table, qt as TableBody, Xt as TableCell, Kt as TableHead, Yt as TableHeaderCell, Jt as TableRow, Ko as Tabs, gn as TestimonialCard, bt as Text, vr as ToastProvider, It as Tooltip, an as VideoPlayer, Is as breakpoints, mr as createToastManager, U as createTranslation, ft as downloadFile, Rs as fixDecimals, zs as fixDecimalsToString, ka as flagEmoji, Bs as formatDecimalString, Vs as formatPercentage, Aa as getCountryOptions, Hi as getEmailDomainSuggestions, X as invalid, bi as isMobileCountry, Ui as isSameEmail, hi as isSameNationalId, Si as isSamePhone, Mi as isValidBankAccount, Vi as isValidEmail, Pi as isValidFinnishDomesticReference, ei as isValidFinnishNationalId, Li as isValidFinnishReference, Fi as isValidFinnishRfReference, Di as isValidIban, li as isValidNationalId, ki as isValidNorwegianAccount, ii as isValidNorwegianNationalId, vi as isValidPhoneNumber, si as isValidSpanishNationalId, Ai as isValidSwedishAccount, Qr as isValidSwedishNationalId, mi as normalizeNationalId, Hs as parseExpirationDate, dt as resolveDownloadData, Ji as suggestEmailCorrection, Ts as useCountry, Es as useFormatCurrency, ks as useFormatDate, As as useFormatNumber, js as useFormatPercentage, je as useLanguage, Uo as useReportStepProgress, Ho as useStepProgress, Fo as useStepperLabels, gr as useToastManager, Ps as useValidateBankAccount, Ms as useValidateNationalId, Ns as useValidatePhoneNumber, Z as valid, ji as validateBankAccount, Bi as validateEmail, Ii as validateFinnishReference, xi as validateMobileNumber, ui as validateNationalId, _i as validatePhoneNumber, Ls as websiteBreakpoints };
|
|
4910
4912
|
|
|
4911
4913
|
//# sourceMappingURL=component-library.es.js.map
|