@nxgt/material-vue 0.35.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +96 -0
- package/README.md +11 -5
- package/dist/{Button-C6GBoxwB.js → Button-CurFF4Zt.js} +1 -1
- package/dist/{HoverCardTrigger-BRajrP9V.js → HoverCardTrigger-jCXl6TrX.js} +3 -3
- package/dist/{camera-BIK3JMQq.js → camera-DDnR8aYK.js} +4 -4
- package/dist/components/components.css +1 -0
- package/dist/components/print-only.css +44 -0
- package/dist/{components-B3e9Djen.js → components-CCzdGGAe.js} +42239 -41714
- package/dist/components.js +8 -8
- package/dist/composables.js +35 -25
- package/dist/dnd.js +1 -1
- package/dist/{form-scope-DH96Nu9y.js → form-scope-Csf9H-Pg.js} +1 -1
- package/dist/{i18n-provider-D0wc5ysD.js → i18n-provider-B2q6vp6H.js} +1 -1
- package/dist/i18n.js +4 -4
- package/dist/{icon-button-Cep-hCMB.js → icon-button-CIUc1bEp.js} +1 -1
- package/dist/lib/components/index.d.ts +1 -0
- package/dist/lib/components/ui/actions/button/Button.vue.d.ts +1 -1
- package/dist/lib/components/ui/actions/button/button.variants.d.ts +1 -1
- package/dist/lib/components/ui/actions/copy-button/copy-button.vue.d.ts +1 -1
- package/dist/lib/components/ui/actions/copy-button/use-copy-status.d.ts +14 -0
- package/dist/lib/components/ui/actions/icon-button/icon-button.variants.d.ts +1 -1
- package/dist/lib/components/ui/actions/icon-button/icon-button.vue.d.ts +1 -1
- package/dist/lib/components/ui/actions/scroll-to-top/scroll-to-top.vue.d.ts +1 -1
- package/dist/lib/components/ui/display/badge/index.d.ts +1 -1
- package/dist/lib/components/ui/display/cards/cards.gallery.d.ts +3 -3
- package/dist/lib/components/ui/display/count-badge/count-badge.vue.d.ts +1 -1
- package/dist/lib/components/ui/display/enrolment-secret/enrolment-secret.vue.d.ts +30 -0
- package/dist/lib/components/ui/display/enrolment-secret/index.d.ts +3 -0
- package/dist/lib/components/ui/display/index.d.ts +2 -0
- package/dist/lib/components/ui/display/recovery-codes/index.d.ts +5 -0
- package/dist/lib/components/ui/display/recovery-codes/partials/recovery-codes-actions.vue.d.ts +11 -0
- package/dist/lib/components/ui/display/recovery-codes/partials/recovery-codes-confirm.vue.d.ts +15 -0
- package/dist/lib/components/ui/display/recovery-codes/partials/recovery-codes-list.vue.d.ts +7 -0
- package/dist/lib/components/ui/display/recovery-codes/recovery-codes.vue.d.ts +56 -0
- package/dist/lib/components/ui/display/recovery-codes/types.d.ts +23 -0
- package/dist/lib/components/ui/display/recovery-codes/use-recovery-codes-labels.d.ts +18 -0
- package/dist/lib/components/ui/feedback/alert/alert.vue.d.ts +1 -1
- package/dist/lib/components/ui/feedback/circular-progress/circular-progress.vue.d.ts +2 -2
- package/dist/lib/components/ui/feedback/spinner/spinner.variants.d.ts +1 -1
- package/dist/lib/components/ui/feedback/spinner/spinner.vue.d.ts +1 -1
- package/dist/lib/components/ui/fields/contacts/consts.d.ts +1 -1
- package/dist/lib/components/ui/fields/form-section/form-section-classes.d.ts +30 -0
- package/dist/lib/components/ui/fields/form-section/form-section.vue.d.ts +37 -0
- package/dist/lib/components/ui/fields/form-section/index.d.ts +3 -0
- package/dist/lib/components/ui/fields/index.d.ts +1 -0
- package/dist/lib/components/ui/fields/rating-field/rating-field.variants.d.ts +1 -1
- package/dist/lib/components/ui/fields/rating-field/rating-field.vue.d.ts +1 -1
- package/dist/lib/components/ui/forms/form-scope-schema.d.ts +8 -2
- package/dist/lib/components/ui/forms/index.d.ts +1 -0
- package/dist/lib/components/ui/forms/use-code-resolver.d.ts +45 -0
- package/dist/lib/components/ui/layout/app-shell/activity-content.vue.d.ts +1 -1
- package/dist/lib/components/ui/layout/auth-card/auth-card-notice.vue.d.ts +18 -0
- package/dist/lib/components/ui/layout/auth-card/auth-card.vue.d.ts +45 -0
- package/dist/lib/components/ui/layout/auth-card/index.d.ts +3 -0
- package/dist/lib/components/ui/layout/auth-card/types.d.ts +2 -0
- package/dist/lib/components/ui/layout/index.d.ts +1 -0
- package/dist/lib/components/ui/selection/autocomplete/autocomplete-items.d.ts +2 -0
- package/dist/lib/components/ui/selection/autocomplete/autocomplete-keyboard.d.ts +1 -0
- package/dist/lib/components/ui/selection/autocomplete/autocomplete.vue.d.ts +2 -0
- package/dist/lib/components/ui/selection/autocomplete/search-types.d.ts +4 -1
- package/dist/lib/composables/index.d.ts +2 -0
- package/dist/lib/composables/use-focus-on-mount.d.ts +23 -0
- package/dist/lib/composables/use-submit-once.d.ts +33 -0
- package/dist/lib/i18n/resources/en/en.d.ts +21 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +21 -0
- package/dist/lib/i18n/resources/fr/fr.d.ts +21 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +21 -0
- package/dist/lib/i18n/resources/resources.d.ts +42 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/lib/index.d.ts +1 -0
- package/dist/lib/nuxt/auto-imports.d.ts +1 -1
- package/dist/lib/nuxt/component-names.d.ts +1 -1
- package/dist/lib.js +59 -104
- package/dist/main.js +17 -17
- package/dist/map.js +4 -4
- package/dist/material-vue.css +1 -1
- package/dist/{pdf-outline-sidebar-Bjz8jMaZ.js → pdf-outline-sidebar-DTb_hLjX.js} +2 -2
- package/dist/{pdf-page-BRtEfDpx.js → pdf-page-CCZtaTRB.js} +1 -1
- package/dist/{pdf-page-list-DUSFOt6b.js → pdf-page-list-D7ImAK7v.js} +2 -2
- package/dist/{pdf-reader-Dhuuu3ud.js → pdf-reader-CsLVHCV6.js} +8 -8
- package/dist/{pdf-sidebar-BOsuIcvK.js → pdf-sidebar-DlU0RgZL.js} +3 -3
- package/dist/{pdf-thumbnail-sidebar-CEinOvk3.js → pdf-thumbnail-sidebar-CNB7q0Mq.js} +3 -3
- package/dist/{pdf-toolbar-ZYITLhtl.js → pdf-toolbar-BtXcyEpd.js} +4 -4
- package/dist/pdf.js +2 -2
- package/dist/print-format.utils-keJqahvw.js +187 -0
- package/dist/{sortable-provider-BCawiL69.js → sortable-provider-DMu8DL2z.js} +2 -2
- package/dist/{stored-language-CGMzf-kR.js → stored-language-dtksFoGO.js} +42 -0
- package/dist/{stx-player-DAhHmRHW.js → stx-player-CqsfQlLp.js} +5 -5
- package/dist/{translator-DhrnT0YX.js → translator-DqiGrSH_.js} +1 -1
- package/dist/{use-heading-spy-BF4hsZLZ.js → use-heading-spy-BZ7ctGZ5.js} +58 -48
- package/dist/{use-material-translation-D30V5LyT.js → use-material-translation-DRB6oPdF.js} +3 -3
- package/docs/components/README.md +3 -3
- package/docs/components/data-display.md +112 -0
- package/docs/components/feedback-and-status.md +2 -0
- package/docs/components/form-fields.md +81 -0
- package/docs/components/navigation-and-layout.md +64 -0
- package/docs/components/overlays-and-menus.md +18 -0
- package/docs/components/selection-and-choice.md +12 -4
- package/docs/guides/forms.md +120 -0
- package/docs/guides/helpers.md +85 -0
- package/docs/guides/i18n.md +17 -0
- package/docs/guides/printing.md +27 -0
- package/docs/previews/data-display-enrolmentsecret.webp +0 -0
- package/docs/previews/data-display-recoverycodes.webp +0 -0
- package/docs/previews/form-fields-formsection.webp +0 -0
- package/docs/previews/navigation-layout-authcard.webp +0 -0
- package/docs/roadmap.md +15 -0
- package/docs/troubleshooting.md +131 -0
- package/lib/components/components.css +1 -0
- package/lib/components/print-only.css +44 -0
- package/lib/nuxt/auto-imports.ts +2 -0
- package/lib/nuxt/component-names.ts +4 -0
- package/package.json +2 -2
- package/dist/print-format.utils-DpBtUJvL.js +0 -138
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CWhphoD1.js";
|
|
2
2
|
import { t } from "./utils-CykWQ0iJ.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as r } from "./use-material-translation-
|
|
3
|
+
import { Bf as n } from "./components-CCzdGGAe.js";
|
|
4
|
+
import { t as r } from "./use-material-translation-DRB6oPdF.js";
|
|
5
5
|
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, defineComponent as u, normalizeClass as d, normalizeStyle as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
|
|
6
6
|
//#region lib/components/ui/media/pdf-viewer/partials/pdf-outline-row.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var y = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./utils-CykWQ0iJ.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Up as t } from "./components-CCzdGGAe.js";
|
|
3
3
|
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, nextTick as c, normalizeClass as l, normalizeStyle as u, onBeforeUnmount as d, openBlock as f, ref as p, shallowRef as m, unref as h, watch as g } from "vue";
|
|
4
4
|
import { DEFAULT_PAGE_SIZE as _, escapeHtml as v, findTextMatches as y, highlightItemHtml as b, placeholderSize as x, rotatedSize as S } from "@nxgt/material-core/pdf-viewer";
|
|
5
5
|
//#region lib/components/ui/media/pdf-viewer/pdf-note-icons.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CWhphoD1.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as n } from "./pdf-page-
|
|
2
|
+
import { Bf as t } from "./components-CCzdGGAe.js";
|
|
3
|
+
import { t as n } from "./pdf-page-CCZtaTRB.js";
|
|
4
4
|
import { Fragment as r, createBlock as i, createElementBlock as a, createElementVNode as o, defineComponent as s, openBlock as c, renderList as l, withCtx as u } from "vue";
|
|
5
5
|
//#region lib/components/ui/media/pdf-viewer/partials/pdf-page-list.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var d = { class: "flex flex-col items-center gap-4 px-4 py-4" }, f = /*@__PURE__*/ s({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./utils-CykWQ0iJ.js";
|
|
2
|
-
import { kn as t } from "./components-
|
|
3
|
-
import { t as n } from "./use-material-translation-
|
|
4
|
-
import { t as r } from "./Button-
|
|
5
|
-
import { o as i } from "./HoverCardTrigger-
|
|
6
|
-
import { n as a } from "./pdf-page-
|
|
7
|
-
import { t as o } from "./pdf-page-list-
|
|
8
|
-
import { t as s } from "./pdf-sidebar-
|
|
9
|
-
import { t as c } from "./pdf-toolbar-
|
|
2
|
+
import { kn as t } from "./components-CCzdGGAe.js";
|
|
3
|
+
import { t as n } from "./use-material-translation-DRB6oPdF.js";
|
|
4
|
+
import { t as r } from "./Button-CurFF4Zt.js";
|
|
5
|
+
import { o as i } from "./HoverCardTrigger-jCXl6TrX.js";
|
|
6
|
+
import { n as a } from "./pdf-page-CCZtaTRB.js";
|
|
7
|
+
import { t as o } from "./pdf-page-list-D7ImAK7v.js";
|
|
8
|
+
import { t as s } from "./pdf-sidebar-DlU0RgZL.js";
|
|
9
|
+
import { t as c } from "./pdf-toolbar-BtXcyEpd.js";
|
|
10
10
|
import { computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, nextTick as _, normalizeClass as v, onBeforeUnmount as y, onMounted as b, openBlock as x, reactive as S, ref as C, shallowRef as w, toDisplayString as T, toRef as E, unref as D, useId as O, watch as k, withCtx as A } from "vue";
|
|
11
11
|
import { AlertCircle as j, FileX2 as M, KeyRound as N, Loader2 as P } from "@lucide/vue";
|
|
12
12
|
import { pdfSourceKey as F, toPdfjsParams as I } from "@nxgt/material-core/pdf-source";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CWhphoD1.js";
|
|
2
2
|
import { t } from "./utils-CykWQ0iJ.js";
|
|
3
|
-
import { t as n } from "./use-material-translation-
|
|
4
|
-
import { t as r } from "./pdf-outline-sidebar-
|
|
5
|
-
import { t as i } from "./pdf-thumbnail-sidebar-
|
|
3
|
+
import { t as n } from "./use-material-translation-DRB6oPdF.js";
|
|
4
|
+
import { t as r } from "./pdf-outline-sidebar-DTb_hLjX.js";
|
|
5
|
+
import { t as i } from "./pdf-thumbnail-sidebar-CNB7q0Mq.js";
|
|
6
6
|
import { createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, toDisplayString as d, unref as f, useId as p, useTemplateRef as m } from "vue";
|
|
7
7
|
//#region lib/components/ui/media/pdf-viewer/partials/pdf-sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var h = ["aria-label"], g = ["aria-label"], _ = [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CWhphoD1.js";
|
|
2
2
|
import { t } from "./utils-CykWQ0iJ.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as r } from "./use-material-translation-
|
|
5
|
-
import { t as i } from "./pdf-page-
|
|
3
|
+
import { Bf as n } from "./components-CCzdGGAe.js";
|
|
4
|
+
import { t as r } from "./use-material-translation-DRB6oPdF.js";
|
|
5
|
+
import { t as i } from "./pdf-page-CCZtaTRB.js";
|
|
6
6
|
import { Fragment as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderList as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
7
7
|
//#region lib/components/ui/media/pdf-viewer/partials/pdf-thumbnail-sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var _ = ["aria-label"], v = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CWhphoD1.js";
|
|
2
2
|
import { t } from "./utils-CykWQ0iJ.js";
|
|
3
|
-
import { t as n } from "./use-material-translation-
|
|
4
|
-
import { d as r } from "./Button-
|
|
5
|
-
import { t as i } from "./icon-button-
|
|
3
|
+
import { t as n } from "./use-material-translation-DRB6oPdF.js";
|
|
4
|
+
import { d as r } from "./Button-CurFF4Zt.js";
|
|
5
|
+
import { t as i } from "./icon-button-CIUc1bEp.js";
|
|
6
6
|
import { a, i as o, n as s, o as c, r as l, t as u } from "./DropdownMenuTrigger-BsuyNVzV.js";
|
|
7
|
-
import { o as d } from "./HoverCardTrigger-
|
|
7
|
+
import { o as d } from "./HoverCardTrigger-jCXl6TrX.js";
|
|
8
8
|
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, nextTick as x, normalizeClass as S, openBlock as C, ref as w, renderList as T, toDisplayString as E, unref as D, useTemplateRef as O, watch as k, withCtx as A } from "vue";
|
|
9
9
|
import { ChevronDown as j, ChevronLeft as M, ChevronRight as N, ChevronUp as P, Download as F, Maximize2 as I, Minimize2 as L, Moon as R, Printer as z, RotateCw as B, Search as V, Sidebar as H, ZoomIn as U, ZoomOut as W } from "@lucide/vue";
|
|
10
10
|
//#region lib/components/ui/media/pdf-viewer/partials/pdf-toolbar-search.vue?vue&type=script&setup=true&lang.ts
|
package/dist/pdf.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, t } from "./use-material-translation-
|
|
2
|
-
import { t as n } from "./Button-
|
|
1
|
+
import { n as e, t } from "./use-material-translation-DRB6oPdF.js";
|
|
2
|
+
import { t as n } from "./Button-CurFF4Zt.js";
|
|
3
3
|
import { computed as r, createBlock as i, createTextVNode as a, defineComponent as o, getCurrentInstance as s, nextTick as c, onMounted as l, onScopeDispose as u, openBlock as d, ref as f, renderSlot as p, shallowRef as m, toDisplayString as ee, toValue as h, unref as g, watch as te, withCtx as ne } from "vue";
|
|
4
4
|
import { contentDisposition as re, pdfBytesResponse as ie, toWebStream as ae } from "@nxgt/material-core/pdf/http";
|
|
5
5
|
import { badge as oe, dataTable as se, defaultPdfTheme as ce, definePdfDocument as _, divider as v, header as y, heading as b, image as x, keyValue as S, keyValueOf as C, link as w, metric as T, page as E, pageBreak as D, pageNumber as O, pdfDocument as k, resolvePdfColor as A, resolvePdfTheme as j, row as M, section as N, spacer as P, stack as F, table as I, text as L, totals as R } from "@nxgt/material-core/pdf/model";
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { i as e, r as t, t as n } from "./stored-language-dtksFoGO.js";
|
|
2
|
+
import { r } from "./translator-DqiGrSH_.js";
|
|
3
|
+
import { t as i } from "./_baseIsEqual-BUD8VQJE.js";
|
|
4
|
+
import { n as a } from "./number.utils-Bpo9tUaJ.js";
|
|
5
|
+
import { defineComponent as o, getCurrentInstance as s, h as c, inject as l, provide as u, useId as d } from "vue";
|
|
6
|
+
import { defineStore as f } from "pinia";
|
|
7
|
+
import { invalidFormatMessage as p, sizeMessage as m } from "@nxgt/material-core/zod-issue-messages";
|
|
8
|
+
import { createFormatters as h, formatAmount as g, formatDate as _ } from "@nxgt/material-core/print-format";
|
|
9
|
+
//#region ../../node_modules/lodash-es/isEqual.js
|
|
10
|
+
function v(e, t) {
|
|
11
|
+
return i(e, t);
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region ../../node_modules/lodash-es/isNil.js
|
|
15
|
+
function y(e) {
|
|
16
|
+
return e == null;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region lib/lib/string.utils.ts
|
|
20
|
+
function b(e) {
|
|
21
|
+
return e.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
22
|
+
}
|
|
23
|
+
function x(e) {
|
|
24
|
+
return e ? e.toLowerCase().replace(/_/g, "-") : "";
|
|
25
|
+
}
|
|
26
|
+
function S(e, t = ", ") {
|
|
27
|
+
return e.filter((e) => !!e).join(t);
|
|
28
|
+
}
|
|
29
|
+
function C(e, t) {
|
|
30
|
+
let n = t.trim();
|
|
31
|
+
if (!n) return [{
|
|
32
|
+
text: e,
|
|
33
|
+
match: !1
|
|
34
|
+
}];
|
|
35
|
+
let r = n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), i = new RegExp(r, "ig"), a = [], o = 0;
|
|
36
|
+
for (let t of e.matchAll(i)) {
|
|
37
|
+
let n = t.index ?? 0;
|
|
38
|
+
n > o && a.push({
|
|
39
|
+
text: e.slice(o, n),
|
|
40
|
+
match: !1
|
|
41
|
+
}), a.push({
|
|
42
|
+
text: t[0],
|
|
43
|
+
match: !0
|
|
44
|
+
}), o = n + t[0].length;
|
|
45
|
+
}
|
|
46
|
+
return o < e.length && a.push({
|
|
47
|
+
text: e.slice(o),
|
|
48
|
+
match: !1
|
|
49
|
+
}), a.length > 0 ? a : [{
|
|
50
|
+
text: e,
|
|
51
|
+
match: !1
|
|
52
|
+
}];
|
|
53
|
+
}
|
|
54
|
+
var w = {
|
|
55
|
+
enumToKebabCase: x,
|
|
56
|
+
joinTruthyParts: S,
|
|
57
|
+
slugify: b,
|
|
58
|
+
splitMatch: C
|
|
59
|
+
}, T = 0;
|
|
60
|
+
function E(e) {
|
|
61
|
+
return s() ? `${e}:${d()}` : (T += 1, `${e}:${T}`);
|
|
62
|
+
}
|
|
63
|
+
function D(e, t) {
|
|
64
|
+
return (n) => f(E(e), {
|
|
65
|
+
state: () => ({
|
|
66
|
+
...t.state(),
|
|
67
|
+
...n
|
|
68
|
+
}),
|
|
69
|
+
actions: { ...t.actions ?? {} },
|
|
70
|
+
getters: { ...t.getters ?? {} }
|
|
71
|
+
})();
|
|
72
|
+
}
|
|
73
|
+
function O(e, t) {
|
|
74
|
+
return t ? {
|
|
75
|
+
...e,
|
|
76
|
+
...t
|
|
77
|
+
} : e;
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region lib/lib/storage.utils.ts
|
|
81
|
+
function k(e, t) {
|
|
82
|
+
try {
|
|
83
|
+
let n = localStorage.getItem(e);
|
|
84
|
+
if (n) return typeof t == "string" ? n : JSON.parse(n);
|
|
85
|
+
} catch (t) {
|
|
86
|
+
console.warn(`Failed to restore state for key "${e}":`, t);
|
|
87
|
+
}
|
|
88
|
+
return t;
|
|
89
|
+
}
|
|
90
|
+
function A(e, t) {
|
|
91
|
+
try {
|
|
92
|
+
localStorage.setItem(e, typeof t == "string" ? t : JSON.stringify(t));
|
|
93
|
+
} catch (t) {
|
|
94
|
+
console.warn(`Failed to store state for key "${e}":`, t);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function j(e) {
|
|
98
|
+
try {
|
|
99
|
+
localStorage.removeItem(e);
|
|
100
|
+
} catch (t) {
|
|
101
|
+
console.warn(`Failed to remove state for key "${e}":`, t);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
var M = {
|
|
105
|
+
safeGetItem: k,
|
|
106
|
+
safeSetItem: A,
|
|
107
|
+
safeRemoveItem: j
|
|
108
|
+
}, N = {
|
|
109
|
+
colorFromVariable(e, t = 1) {
|
|
110
|
+
return `rgb(from var(--${e}) r g b / ${t})`;
|
|
111
|
+
},
|
|
112
|
+
cssSize(e) {
|
|
113
|
+
if (!(e == null || e === "")) return typeof e == "number" ? `${e}px` : e;
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region lib/lib/url.utils.ts
|
|
118
|
+
function P(e) {
|
|
119
|
+
return new URL(e.url).searchParams;
|
|
120
|
+
}
|
|
121
|
+
function F(e, t) {
|
|
122
|
+
return P(e).get(t);
|
|
123
|
+
}
|
|
124
|
+
function I(e) {
|
|
125
|
+
return /^(https?:)?\/\//.test(e) || e.startsWith("mailto:");
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region lib/lib/client-only.utils.ts
|
|
129
|
+
var L = Symbol("inside-client-only");
|
|
130
|
+
function R(e) {
|
|
131
|
+
return o({
|
|
132
|
+
name: "ClientOnly",
|
|
133
|
+
inheritAttrs: !1,
|
|
134
|
+
setup(t, { attrs: n, slots: r }) {
|
|
135
|
+
let i = l(L, !1), o = a();
|
|
136
|
+
return u(L, !0), () => !i && !o.value ? null : c(e, { ...n }, r);
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
//#endregion
|
|
141
|
+
//#region lib/lib/zod-error-map.ts
|
|
142
|
+
var z = (e) => {
|
|
143
|
+
let t = typeof e;
|
|
144
|
+
switch (t) {
|
|
145
|
+
case "number": return Number.isNaN(e) ? "NaN" : "number";
|
|
146
|
+
case "object":
|
|
147
|
+
if (Array.isArray(e)) return "array";
|
|
148
|
+
if (e === null) return "null";
|
|
149
|
+
if (Object.getPrototypeOf(e) !== Object.prototype && e.constructor) return e.constructor.name;
|
|
150
|
+
}
|
|
151
|
+
return t;
|
|
152
|
+
}, B = ({ storageKey: i = t, language: a, translate: o = r } = {}) => {
|
|
153
|
+
let s = () => typeof a == "function" ? a() : a ?? n(i, "en", e);
|
|
154
|
+
return (e) => {
|
|
155
|
+
let t = s(), n = (e, n) => o(e, n, t), r = (e, t) => {
|
|
156
|
+
let r = n(e, t);
|
|
157
|
+
return r === e ? void 0 : r;
|
|
158
|
+
};
|
|
159
|
+
switch (e.code) {
|
|
160
|
+
case "invalid_type": {
|
|
161
|
+
let t = {
|
|
162
|
+
expected: e.expected,
|
|
163
|
+
received: z(e.input)
|
|
164
|
+
};
|
|
165
|
+
return e.input ? r(`material.zod.invalid_type.${e.expected}`, t) ?? n("material.zod.invalid_type.default", t) : n("material.zod.required", t);
|
|
166
|
+
}
|
|
167
|
+
case "invalid_value": return e.values.length === 1 ? n("material.zod.invalid_value_single", { value: e.values[0] }) : n("material.zod.invalid_value_multiple", { values: e.values.join(" | ") });
|
|
168
|
+
case "too_big":
|
|
169
|
+
case "too_small": return m(e, {
|
|
170
|
+
translate: n,
|
|
171
|
+
lookup: r
|
|
172
|
+
});
|
|
173
|
+
case "invalid_format": return p(e, {
|
|
174
|
+
translate: n,
|
|
175
|
+
lookup: r
|
|
176
|
+
});
|
|
177
|
+
case "not_multiple_of": return n("material.zod.not_multiple_of", { divisor: e.divisor });
|
|
178
|
+
case "unrecognized_keys": return n(`material.zod.unrecognized_keys_${e.keys.length > 1 ? "multiple" : "single"}`, { keys: e.keys.join(", ") });
|
|
179
|
+
case "invalid_key": return n("material.zod.invalid_key", { origin: e.origin });
|
|
180
|
+
case "invalid_union": return n("material.zod.invalid_union");
|
|
181
|
+
case "invalid_element": return n("material.zod.invalid_element", { origin: e.origin });
|
|
182
|
+
default: return n("material.zod.default");
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
//#endregion
|
|
187
|
+
export { y as C, C as S, O as _, B as a, S as b, F as c, M as d, k as f, E as g, D as h, z as i, P as l, A as m, g as n, R as o, j as p, _ as r, I as s, h as t, N as u, w as v, v as w, b as x, x as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./utils-CykWQ0iJ.js";
|
|
2
|
-
import { t } from "./use-material-translation-
|
|
3
|
-
import { t as n } from "./icon-button-
|
|
2
|
+
import { t } from "./use-material-translation-DRB6oPdF.js";
|
|
3
|
+
import { t as n } from "./icon-button-CIUc1bEp.js";
|
|
4
4
|
import { Teleport as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createVNode as c, defineComponent as l, inject as u, mergeProps as d, normalizeStyle as f, onUnmounted as p, openBlock as m, provide as h, reactive as g, ref as _, renderSlot as v, toValue as y, unref as b, useAttrs as x, watch as S, watchEffect as C, withCtx as w, withModifiers as T } from "vue";
|
|
5
5
|
import { GripVertical as E } from "@lucide/vue";
|
|
6
6
|
import { Primitive as D } from "reka-ui";
|
|
@@ -1202,6 +1202,27 @@ var e = {
|
|
|
1202
1202
|
download: "Download",
|
|
1203
1203
|
truncated: "Showing the first {size} of this file.",
|
|
1204
1204
|
content: "Contents of {name}"
|
|
1205
|
+
},
|
|
1206
|
+
"enrolment-secret": {
|
|
1207
|
+
"qr-label": "QR code to scan with your authenticator app",
|
|
1208
|
+
"open-app": "Open in your authenticator app",
|
|
1209
|
+
manual: "Or type this key in the app:",
|
|
1210
|
+
"secret-label": "Setup key",
|
|
1211
|
+
copy: "Copy the key",
|
|
1212
|
+
copied: "Key copied"
|
|
1213
|
+
},
|
|
1214
|
+
"recovery-codes": {
|
|
1215
|
+
title: "Recovery codes",
|
|
1216
|
+
warning: "Each code works once. Keep them somewhere safe: they are shown only now.",
|
|
1217
|
+
list: "Recovery codes",
|
|
1218
|
+
copy: "Copy codes",
|
|
1219
|
+
copied: "Codes copied",
|
|
1220
|
+
"copy-failed": "Copy failed",
|
|
1221
|
+
download: "Download",
|
|
1222
|
+
print: "Print",
|
|
1223
|
+
saved: "I have saved these codes",
|
|
1224
|
+
"saved-required": "Tick the box once your codes are safe",
|
|
1225
|
+
done: "Done"
|
|
1205
1226
|
}
|
|
1206
1227
|
} },
|
|
1207
1228
|
fr: { material: {
|
|
@@ -2405,6 +2426,27 @@ var e = {
|
|
|
2405
2426
|
download: "Télécharger",
|
|
2406
2427
|
truncated: "Seuls les premiers {size} de ce fichier sont affichés.",
|
|
2407
2428
|
content: "Contenu de {name}"
|
|
2429
|
+
},
|
|
2430
|
+
"enrolment-secret": {
|
|
2431
|
+
"qr-label": "Code QR à scanner avec votre application d'authentification",
|
|
2432
|
+
"open-app": "Ouvrir dans votre application d'authentification",
|
|
2433
|
+
manual: "Ou saisissez cette clé dans l'application :",
|
|
2434
|
+
"secret-label": "Clé de configuration",
|
|
2435
|
+
copy: "Copier la clé",
|
|
2436
|
+
copied: "Clé copiée"
|
|
2437
|
+
},
|
|
2438
|
+
"recovery-codes": {
|
|
2439
|
+
title: "Codes de récupération",
|
|
2440
|
+
warning: "Chaque code ne sert qu'une fois. Gardez-les en lieu sûr : ils ne sont affichés que maintenant.",
|
|
2441
|
+
list: "Codes de récupération",
|
|
2442
|
+
copy: "Copier les codes",
|
|
2443
|
+
copied: "Codes copiés",
|
|
2444
|
+
"copy-failed": "Échec de la copie",
|
|
2445
|
+
download: "Télécharger",
|
|
2446
|
+
print: "Imprimer",
|
|
2447
|
+
saved: "J'ai enregistré ces codes",
|
|
2448
|
+
"saved-required": "Cochez la case une fois vos codes en lieu sûr",
|
|
2449
|
+
done: "Terminé"
|
|
2408
2450
|
}
|
|
2409
2451
|
} }
|
|
2410
2452
|
}, t = "language", n = "en", r = Object.keys(e);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./utils-CykWQ0iJ.js";
|
|
2
|
-
import { $t as t,
|
|
3
|
-
import { t as l } from "./use-material-translation-
|
|
2
|
+
import { $t as t, Jt as n, Kp as r, Qt as i, Xt as a, Yt as o, en as s, tn as c } from "./components-CCzdGGAe.js";
|
|
3
|
+
import { t as l } from "./use-material-translation-DRB6oPdF.js";
|
|
4
4
|
import { createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, normalizeClass as _, openBlock as v, toDisplayString as y, unref as b, withCtx as x } from "vue";
|
|
5
5
|
//#region lib/components/ui/media/stx-player/partials/stx-player-frame.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var S = ["data-layout", "aria-label"], C = {
|
|
@@ -35,17 +35,17 @@ var S = ["data-layout", "aria-label"], C = {
|
|
|
35
35
|
key: 1,
|
|
36
36
|
class: _(b(e)("grid gap-3", a.showQueue && "@min-[768px]:grid-cols-[minmax(0,1fr)_18rem] @min-[768px]:items-stretch"))
|
|
37
37
|
}, [p("div", { class: _(b(e)("bg-card overflow-hidden rounded border", b(w).current?.kind === "audio" && "flex flex-col gap-4 p-6")) }, [
|
|
38
|
-
b(w).current?.kind === "audio" ? (v(), f("div", C, [h(
|
|
38
|
+
b(w).current?.kind === "audio" ? (v(), f("div", C, [h(r, { variant: "title-medium" }, {
|
|
39
39
|
default: x(() => [m(y(b(w).current.title), 1)]),
|
|
40
40
|
_: 1
|
|
41
|
-
}), b(w).current.artist ? (v(), u(
|
|
41
|
+
}), b(w).current.artist ? (v(), u(r, {
|
|
42
42
|
key: 0,
|
|
43
43
|
class: "text-muted-foreground"
|
|
44
44
|
}, {
|
|
45
45
|
default: x(() => [m(y(b(w).current.artist) + " " + y(b(w).current.album ? ` · ${b(w).current.album}` : ""), 1)]),
|
|
46
46
|
_: 1
|
|
47
47
|
})) : d("", !0)])) : d("", !0),
|
|
48
|
-
h(
|
|
48
|
+
h(n, null, {
|
|
49
49
|
default: x(() => [b(w).current?.kind === "audio" ? d("", !0) : (v(), u(s, {
|
|
50
50
|
key: 0,
|
|
51
51
|
tone: "overlay"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, i as t, r as n, t as r } from "./stored-language-
|
|
1
|
+
import { a as e, i as t, r as n, t as r } from "./stored-language-dtksFoGO.js";
|
|
2
2
|
import { t as i } from "./get-CTzJAwfc.js";
|
|
3
3
|
//#region ../../node_modules/@formatjs/fast-memoize/index.js
|
|
4
4
|
function a(e, t) {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { a as e } from "./i18n-provider-
|
|
1
|
+
import { a as e } from "./i18n-provider-B2q6vp6H.js";
|
|
2
2
|
import { c as t, d as n, f as r, l as i, r as a, u as o } from "./number.utils-Bpo9tUaJ.js";
|
|
3
|
-
import { computed as s, getCurrentInstance as c, inject as l, onMounted as u, ref as d,
|
|
4
|
-
import { injectConfigProviderContext as
|
|
5
|
-
import { useIntersectionObserver as
|
|
3
|
+
import { computed as s, getCurrentInstance as c, inject as l, onMounted as u, ref as d, shallowRef as f, toValue as p, watch as m } from "vue";
|
|
4
|
+
import { injectConfigProviderContext as h } from "reka-ui";
|
|
5
|
+
import { useIntersectionObserver as g, useMediaQuery as _, useSSRWidth as v, useStorage as y } from "@vueuse/core";
|
|
6
6
|
//#region lib/composables/resolve-theme.ts
|
|
7
|
-
function
|
|
7
|
+
function b(e, t) {
|
|
8
8
|
let n = e === "light" || e === "dark" ? e : "system";
|
|
9
9
|
return {
|
|
10
10
|
theme: n === "system" ? t ? "dark" : "light" : n,
|
|
11
11
|
preference: n
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function x(e) {
|
|
15
15
|
typeof document > "u" || (document.documentElement.classList.toggle("dark", e === "dark"), document.documentElement.style.colorScheme = e);
|
|
16
16
|
}
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region lib/composables/use-ssr-media-query.ts
|
|
19
|
-
var
|
|
20
|
-
function
|
|
21
|
-
return c() ?
|
|
19
|
+
var S = 1024;
|
|
20
|
+
function C(e) {
|
|
21
|
+
return c() ? _(e, { ssrWidth: v() ?? S }) : _(e);
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region lib/composables/use-theme.ts
|
|
25
|
-
function
|
|
26
|
-
let e =
|
|
25
|
+
function w() {
|
|
26
|
+
let e = C("(prefers-color-scheme: dark)"), t = y("theme", null, void 0, { initOnMounted: !0 }), n = s(() => b(t.value, !!e.value));
|
|
27
27
|
return {
|
|
28
28
|
get theme() {
|
|
29
29
|
return n.value.theme;
|
|
@@ -32,19 +32,19 @@ function S() {
|
|
|
32
32
|
return n.value.preference;
|
|
33
33
|
},
|
|
34
34
|
updateTheme: (n) => {
|
|
35
|
-
n === "system" ? t.value = null : t.value = n,
|
|
35
|
+
n === "system" ? t.value = null : t.value = n, x(b(n === "system" ? void 0 : n, !!e.value).theme);
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region lib/composables/use-mobile.ts
|
|
41
|
-
var
|
|
42
|
-
function
|
|
43
|
-
return
|
|
41
|
+
var T = 768;
|
|
42
|
+
function E() {
|
|
43
|
+
return C(`(max-width: ${T - 1}px)`);
|
|
44
44
|
}
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region ../../node_modules/date-fns/locale/fr/_lib/formatDistance.js
|
|
47
|
-
var
|
|
47
|
+
var D = {
|
|
48
48
|
lessThanXSeconds: {
|
|
49
49
|
one: "moins d’une seconde",
|
|
50
50
|
other: "moins de {{count}} secondes"
|
|
@@ -106,10 +106,10 @@ var T = {
|
|
|
106
106
|
one: "presqu’un an",
|
|
107
107
|
other: "presque {{count}} ans"
|
|
108
108
|
}
|
|
109
|
-
},
|
|
110
|
-
let r, i =
|
|
109
|
+
}, O = (e, t, n) => {
|
|
110
|
+
let r, i = D[e];
|
|
111
111
|
return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", String(t)), n?.addSuffix ? n.comparison && n.comparison > 0 ? "dans " + r : "il y a " + r : r;
|
|
112
|
-
},
|
|
112
|
+
}, k = {
|
|
113
113
|
date: r({
|
|
114
114
|
formats: {
|
|
115
115
|
full: "EEEE d MMMM y",
|
|
@@ -137,18 +137,18 @@ var T = {
|
|
|
137
137
|
},
|
|
138
138
|
defaultWidth: "full"
|
|
139
139
|
})
|
|
140
|
-
},
|
|
140
|
+
}, A = {
|
|
141
141
|
lastWeek: "eeee 'dernier à' p",
|
|
142
142
|
yesterday: "'hier à' p",
|
|
143
143
|
today: "'aujourd’hui à' p",
|
|
144
144
|
tomorrow: "'demain à' p'",
|
|
145
145
|
nextWeek: "eeee 'prochain à' p",
|
|
146
146
|
other: "P"
|
|
147
|
-
},
|
|
147
|
+
}, j = (e, t, n, r) => A[e], M = {
|
|
148
148
|
narrow: ["av. J.-C", "ap. J.-C"],
|
|
149
149
|
abbreviated: ["av. J.-C", "ap. J.-C"],
|
|
150
150
|
wide: ["avant Jésus-Christ", "après Jésus-Christ"]
|
|
151
|
-
},
|
|
151
|
+
}, N = {
|
|
152
152
|
narrow: [
|
|
153
153
|
"T1",
|
|
154
154
|
"T2",
|
|
@@ -167,7 +167,7 @@ var T = {
|
|
|
167
167
|
"3ème trimestre",
|
|
168
168
|
"4ème trimestre"
|
|
169
169
|
]
|
|
170
|
-
},
|
|
170
|
+
}, P = {
|
|
171
171
|
narrow: [
|
|
172
172
|
"J",
|
|
173
173
|
"F",
|
|
@@ -210,7 +210,7 @@ var T = {
|
|
|
210
210
|
"novembre",
|
|
211
211
|
"décembre"
|
|
212
212
|
]
|
|
213
|
-
},
|
|
213
|
+
}, F = {
|
|
214
214
|
narrow: [
|
|
215
215
|
"D",
|
|
216
216
|
"L",
|
|
@@ -247,7 +247,7 @@ var T = {
|
|
|
247
247
|
"vendredi",
|
|
248
248
|
"samedi"
|
|
249
249
|
]
|
|
250
|
-
},
|
|
250
|
+
}, I = {
|
|
251
251
|
narrow: {
|
|
252
252
|
am: "AM",
|
|
253
253
|
pm: "PM",
|
|
@@ -278,7 +278,7 @@ var T = {
|
|
|
278
278
|
evening: "du soir",
|
|
279
279
|
night: "du matin"
|
|
280
280
|
}
|
|
281
|
-
},
|
|
281
|
+
}, L = (e, t) => {
|
|
282
282
|
let n = Number(e), r = t?.unit;
|
|
283
283
|
if (n === 0) return "0";
|
|
284
284
|
let i = [
|
|
@@ -289,38 +289,38 @@ var T = {
|
|
|
289
289
|
"second"
|
|
290
290
|
], a;
|
|
291
291
|
return a = n === 1 ? r && i.includes(r) ? "ère" : "er" : "ème", n + a;
|
|
292
|
-
},
|
|
292
|
+
}, R = ["MMM", "MMMM"], z = {
|
|
293
293
|
en: t,
|
|
294
294
|
fr: {
|
|
295
295
|
code: "fr",
|
|
296
|
-
formatDistance:
|
|
297
|
-
formatLong:
|
|
298
|
-
formatRelative:
|
|
296
|
+
formatDistance: O,
|
|
297
|
+
formatLong: k,
|
|
298
|
+
formatRelative: j,
|
|
299
299
|
localize: {
|
|
300
|
-
preprocessor: (e, t) => e.getDate() === 1 || !t.some((e) => e.isToken &&
|
|
300
|
+
preprocessor: (e, t) => e.getDate() === 1 || !t.some((e) => e.isToken && R.includes(e.value)) ? t : t.map((e) => e.isToken && e.value === "do" ? {
|
|
301
301
|
isToken: !0,
|
|
302
302
|
value: "d"
|
|
303
303
|
} : e),
|
|
304
|
-
ordinalNumber:
|
|
304
|
+
ordinalNumber: L,
|
|
305
305
|
era: n({
|
|
306
|
-
values:
|
|
306
|
+
values: M,
|
|
307
307
|
defaultWidth: "wide"
|
|
308
308
|
}),
|
|
309
309
|
quarter: n({
|
|
310
|
-
values:
|
|
310
|
+
values: N,
|
|
311
311
|
defaultWidth: "wide",
|
|
312
312
|
argumentCallback: (e) => e - 1
|
|
313
313
|
}),
|
|
314
314
|
month: n({
|
|
315
|
-
values:
|
|
315
|
+
values: P,
|
|
316
316
|
defaultWidth: "wide"
|
|
317
317
|
}),
|
|
318
318
|
day: n({
|
|
319
|
-
values:
|
|
319
|
+
values: F,
|
|
320
320
|
defaultWidth: "wide"
|
|
321
321
|
}),
|
|
322
322
|
dayPeriod: n({
|
|
323
|
-
values:
|
|
323
|
+
values: I,
|
|
324
324
|
defaultWidth: "wide"
|
|
325
325
|
})
|
|
326
326
|
},
|
|
@@ -450,8 +450,8 @@ var T = {
|
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
};
|
|
453
|
-
function
|
|
454
|
-
let n = e(), r = s(() => n?.language ?? "en"), i = s(() =>
|
|
453
|
+
function B() {
|
|
454
|
+
let n = e(), r = s(() => n?.language ?? "en"), i = s(() => z[r.value] ?? t);
|
|
455
455
|
return {
|
|
456
456
|
get language() {
|
|
457
457
|
return r.value;
|
|
@@ -463,26 +463,36 @@ function R() {
|
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
465
|
//#endregion
|
|
466
|
+
//#region lib/composables/use-focus-on-mount.ts
|
|
467
|
+
function V(e = !0) {
|
|
468
|
+
let t = f(null), n = () => {
|
|
469
|
+
p(e) && t.value?.focus();
|
|
470
|
+
};
|
|
471
|
+
return u(n), m(() => p(e), (e) => {
|
|
472
|
+
e && n();
|
|
473
|
+
}, { flush: "post" }), t;
|
|
474
|
+
}
|
|
475
|
+
//#endregion
|
|
466
476
|
//#region lib/composables/use-csp-nonce.ts
|
|
467
|
-
var
|
|
468
|
-
function
|
|
469
|
-
let e = l(
|
|
477
|
+
var H = Symbol("nxgt-csp-nonce"), U = Symbol("nxgt-csp-nonce-depth");
|
|
478
|
+
function W() {
|
|
479
|
+
let e = l(H, null), t = h(null);
|
|
470
480
|
return s(() => e?.value || t?.nonce?.value || void 0);
|
|
471
481
|
}
|
|
472
482
|
//#endregion
|
|
473
483
|
//#region lib/composables/use-heading-spy.ts
|
|
474
|
-
var
|
|
475
|
-
function
|
|
484
|
+
var G = "0px 0px -65% 0px", K = [0, 1];
|
|
485
|
+
function q(e, t, n) {
|
|
476
486
|
let r = d(!1);
|
|
477
487
|
u(() => {
|
|
478
488
|
r.value = !0;
|
|
479
|
-
}),
|
|
489
|
+
}), g(s(() => r.value ? p(e).map((e) => document.getElementById(e)).filter((e) => e != null) : []), (e) => {
|
|
480
490
|
let n = e.filter((e) => e.isIntersecting).sort((e, t) => e.boundingClientRect.top - t.boundingClientRect.top)[0]?.target.id;
|
|
481
491
|
n && t(n);
|
|
482
492
|
}, {
|
|
483
|
-
rootMargin: n?.rootMargin ??
|
|
484
|
-
threshold: n?.threshold ??
|
|
493
|
+
rootMargin: n?.rootMargin ?? G,
|
|
494
|
+
threshold: n?.threshold ?? K
|
|
485
495
|
});
|
|
486
496
|
}
|
|
487
497
|
//#endregion
|
|
488
|
-
export {
|
|
498
|
+
export { V as a, w as c, b as d, W as i, C as l, U as n, B as o, H as r, E as s, q as t, x as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./stored-language-
|
|
2
|
-
import { a as e } from "./i18n-provider-
|
|
3
|
-
import { i as t, r as n } from "./translator-
|
|
1
|
+
import "./stored-language-dtksFoGO.js";
|
|
2
|
+
import { a as e } from "./i18n-provider-B2q6vp6H.js";
|
|
3
|
+
import { i as t, r as n } from "./translator-DqiGrSH_.js";
|
|
4
4
|
//#region lib/i18n/translate-material.ts
|
|
5
5
|
function r(e, r, i, a) {
|
|
6
6
|
if (e) for (let t of /* @__PURE__ */ new Set([e, e.split("-")[0]])) {
|