@abyss-project/commons-front-core 18.1.3 → 18.1.4
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 +24 -0
- package/README.md +4 -0
- package/catalog/catalog-entries.ts +4 -0
- package/catalog/pages/Callout.tsx +9 -0
- package/catalog/pages/CodeEditor.tsx +52 -0
- package/catalog/pages/DeliveryHistory.tsx +79 -79
- package/catalog/pages/DeliverySubscriptions.tsx +127 -127
- package/catalog/pages/LineChart.tsx +21 -0
- package/catalog/pages/MarkdownEditor.tsx +1 -1
- package/catalog/pages/ScheduledTasks.tsx +117 -117
- package/catalog/pages/SessionErrorScreen.tsx +20 -0
- package/catalog/pages/Toast.tsx +59 -1
- package/catalog/pages/index.ts +4 -0
- package/catalog/playwright.ci.config.ts +2 -2
- package/catalog/specs/captures.spec.ts +145 -145
- package/catalog/specs/global-review-captures.spec.ts +154 -0
- package/catalog/specs/markdown-editor.spec.ts +107 -0
- package/catalog/specs/toast-dialog-foot.spec.ts +83 -0
- package/catalog/specs/write-capture-index.ts +81 -81
- package/dist/{CookieConsentSettings-CLB1Mlv5.js → CookieConsentSettings-D97TY138.js} +53 -53
- package/dist/{Surface-B_wIEB3b.js → Surface-CN1zQYLJ.js} +144 -121
- package/dist/{Tabs-g7OaInVW.js → Tabs-CxD9y18t.js} +235 -229
- package/dist/components/CodeEditor/CodeEditor.component.spec.d.ts +1 -0
- package/dist/components/business/CookieConsent/use-banner-portal.d.ts +0 -17
- package/dist/components/data/LineChart/LineChart.d.ts +21 -2
- package/dist/components/data/LineChart/line-chart-ticks.d.ts +5 -2
- package/dist/components/editors/MarkdownEditor/crepe-styles.d.ts +7 -0
- package/dist/components/editors/MarkdownEditor/crepe-styles.spec.d.ts +1 -0
- package/dist/components/layers/Modal/active-modal.d.ts +14 -0
- package/dist/components/layers/Toast/Toast.d.ts +1 -0
- package/dist/components/layers/Toast/dialog-foot-clearance.d.ts +19 -0
- package/dist/components/layers/Toast/toast-clearance.d.ts +11 -0
- package/dist/cookie-consent.js +2 -2
- package/dist/{design-theme-Bcu3EMIB.js → design-theme-GGVSCauN.js} +1 -1
- package/dist/{editors-DdGMdSh2.js → editors-CJ_6PXoL.js} +30129 -30094
- package/dist/editors.js +1 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +18 -0
- package/dist/{index-cA9H4vaN.js → index-4MsOXuOU.js} +2 -2
- package/dist/{index-CNjQ-GTe.js → index-5BCfqxIs.js} +2 -2
- package/dist/{index-Be4u6vqC.js → index-5HFSSrP-.js} +1 -1
- package/dist/{index-CH4DiDpu.js → index-7M2xC_9h.js} +2 -2
- package/dist/{index-DBctH8lu.js → index-8o9jiKS2.js} +2 -2
- package/dist/{index-DMAlgOv6.js → index-B6QYagVk.js} +2 -2
- package/dist/{index-CYGd_IjS.js → index-BQFouU9U.js} +2 -2
- package/dist/{index-8LPOJLO8.js → index-BQLAeM_n.js} +2 -2
- package/dist/{index-CNx-Ok-t.js → index-BbbyRlLu.js} +2 -2
- package/dist/{index-BFZvgteF.js → index-Bbc0SjAt.js} +2 -2
- package/dist/{index-Cwo-CFS8.js → index-BcsTtdwQ.js} +4 -4
- package/dist/{index-DSIctaR0.js → index-Berc0QsZ.js} +4 -4
- package/dist/{index-DfGQhHnK.js → index-ByRUmH_4.js} +3 -3
- package/dist/{index-CH67WfFq.js → index-CXUHmTse.js} +2 -2
- package/dist/{index-zu64GUZu.js → index-Cl1UafyM.js} +2 -2
- package/dist/{index-BPF_Eb0U.js → index-DQgpUR1S.js} +3 -3
- package/dist/{index-CbH8XAvZ.js → index-Dh1lFi8d.js} +2 -2
- package/dist/{index-_7HwdzPE.js → index-Drwqi2Fr.js} +2 -2
- package/dist/{index-B12llGmk.js → index-Dtfo8fKg.js} +4 -4
- package/dist/{index-Vgp_uo0Y.js → index-VLxkKEWK.js} +3 -3
- package/dist/{index-CJ4-H8Ku.js → index-p3G-JM7E.js} +3 -3
- package/dist/index.js +5850 -5767
- package/dist/legacy.js +6 -6
- package/dist/translations/en.d.ts +9 -0
- package/dist/translations/fr.d.ts +9 -0
- package/package.json +1 -1
- package/dist/commons-front-core.css +0 -1
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
2
|
-
import { resolve } from 'path';
|
|
3
|
-
import { CAPTURES, CAPTURES_DIR } from '../captures-plan';
|
|
4
|
-
import type { Capture, CaptureState } from '../captures-plan';
|
|
5
|
-
import type { CatalogFamily } from '../catalog-entries';
|
|
6
|
-
|
|
7
|
-
// Global teardown of the catalog run: writes `index.md` next to the screenshots, from the capture
|
|
8
|
-
// plan, listing only the files present on disk.
|
|
9
|
-
|
|
10
|
-
const FAMILY_TITLES: Record<CatalogFamily, string> = {
|
|
11
|
-
scenes: 'Scènes composées (à regarder en premier)',
|
|
12
|
-
structure: 'Structure',
|
|
13
|
-
mobile: 'Mobile',
|
|
14
|
-
states: 'États',
|
|
15
|
-
data: 'Données',
|
|
16
|
-
meaning: 'Sens',
|
|
17
|
-
business: 'Métier',
|
|
18
|
-
layers: 'Couches',
|
|
19
|
-
navigation: 'Navigation',
|
|
20
|
-
inputs: 'Saisie',
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const STATE_LABEL: Record<CaptureState, string> = {
|
|
24
|
-
arrival: '',
|
|
25
|
-
'sheet-open': ', feuille ouverte',
|
|
26
|
-
'list-open': ', liste ouverte',
|
|
27
|
-
'calendar-open': ', calendrier ouvert',
|
|
28
|
-
'panel-open': ', panneau ouvert',
|
|
29
|
-
'menu-open': ', menu ouvert',
|
|
30
|
-
'settings-open': ', réglages ouverts',
|
|
31
|
-
'form-open': ', formulaire ouvert',
|
|
32
|
-
'secret-shown': ', secret affiché une fois',
|
|
33
|
-
'delete-confirm': ', confirmation de suppression',
|
|
34
|
-
'detail-open': ', détail ouvert',
|
|
35
|
-
'runs-open': ', exécutions ouvertes',
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
const describe = (capture: Capture): string =>
|
|
39
|
-
`${capture.theme === 'dark' ? 'sombre' : 'clair'}, ${capture.width} px${
|
|
40
|
-
STATE_LABEL[capture.state]
|
|
41
|
-
}`;
|
|
42
|
-
|
|
43
|
-
const writeCaptureIndex = (): void => {
|
|
44
|
-
mkdirSync(CAPTURES_DIR, { recursive: true });
|
|
45
|
-
const present = CAPTURES.filter((capture) =>
|
|
46
|
-
existsSync(resolve(CAPTURES_DIR, capture.file)),
|
|
47
|
-
);
|
|
48
|
-
const families = Object.keys(FAMILY_TITLES) as CatalogFamily[];
|
|
49
|
-
const sections = families
|
|
50
|
-
.map((family) => {
|
|
51
|
-
const lines = present
|
|
52
|
-
.filter((capture) => capture.entry.family === family)
|
|
53
|
-
.map(
|
|
54
|
-
(capture) =>
|
|
55
|
-
`- \`${capture.file}\` : ${capture.entry.name}, ${describe(
|
|
56
|
-
capture,
|
|
57
|
-
)}`,
|
|
58
|
-
);
|
|
59
|
-
return lines.length === 0
|
|
60
|
-
? ''
|
|
61
|
-
: `## ${FAMILY_TITLES[family]}\n\n${lines.join('\n')}\n`;
|
|
62
|
-
})
|
|
63
|
-
.filter((section) => section !== '');
|
|
64
|
-
const missing = CAPTURES.length - present.length;
|
|
65
|
-
const content = [
|
|
66
|
-
'# Captures du catalogue du core (#286)',
|
|
67
|
-
'',
|
|
68
|
-
'Produites par `pnpm --filter @abyss-project/commons-front-core catalog:test` (`catalog/specs/captures.spec.ts`).',
|
|
69
|
-
'Chaque composant en clair et en sombre à 1440 px ; à 390 px aussi ceux qui changent de forme sous 768 px ;',
|
|
70
|
-
'le shell et la scène bureau aussi à 768 px (rail d’icônes).',
|
|
71
|
-
'',
|
|
72
|
-
`${present.length} fichiers${
|
|
73
|
-
missing > 0 ? `, ${missing} manquants (lancement partiel)` : ''
|
|
74
|
-
}.`,
|
|
75
|
-
'',
|
|
76
|
-
...sections,
|
|
77
|
-
].join('\n');
|
|
78
|
-
writeFileSync(resolve(CAPTURES_DIR, 'index.md'), content);
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
export default writeCaptureIndex;
|
|
1
|
+
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
2
|
+
import { resolve } from 'path';
|
|
3
|
+
import { CAPTURES, CAPTURES_DIR } from '../captures-plan';
|
|
4
|
+
import type { Capture, CaptureState } from '../captures-plan';
|
|
5
|
+
import type { CatalogFamily } from '../catalog-entries';
|
|
6
|
+
|
|
7
|
+
// Global teardown of the catalog run: writes `index.md` next to the screenshots, from the capture
|
|
8
|
+
// plan, listing only the files present on disk.
|
|
9
|
+
|
|
10
|
+
const FAMILY_TITLES: Record<CatalogFamily, string> = {
|
|
11
|
+
scenes: 'Scènes composées (à regarder en premier)',
|
|
12
|
+
structure: 'Structure',
|
|
13
|
+
mobile: 'Mobile',
|
|
14
|
+
states: 'États',
|
|
15
|
+
data: 'Données',
|
|
16
|
+
meaning: 'Sens',
|
|
17
|
+
business: 'Métier',
|
|
18
|
+
layers: 'Couches',
|
|
19
|
+
navigation: 'Navigation',
|
|
20
|
+
inputs: 'Saisie',
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const STATE_LABEL: Record<CaptureState, string> = {
|
|
24
|
+
arrival: '',
|
|
25
|
+
'sheet-open': ', feuille ouverte',
|
|
26
|
+
'list-open': ', liste ouverte',
|
|
27
|
+
'calendar-open': ', calendrier ouvert',
|
|
28
|
+
'panel-open': ', panneau ouvert',
|
|
29
|
+
'menu-open': ', menu ouvert',
|
|
30
|
+
'settings-open': ', réglages ouverts',
|
|
31
|
+
'form-open': ', formulaire ouvert',
|
|
32
|
+
'secret-shown': ', secret affiché une fois',
|
|
33
|
+
'delete-confirm': ', confirmation de suppression',
|
|
34
|
+
'detail-open': ', détail ouvert',
|
|
35
|
+
'runs-open': ', exécutions ouvertes',
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const describe = (capture: Capture): string =>
|
|
39
|
+
`${capture.theme === 'dark' ? 'sombre' : 'clair'}, ${capture.width} px${
|
|
40
|
+
STATE_LABEL[capture.state]
|
|
41
|
+
}`;
|
|
42
|
+
|
|
43
|
+
const writeCaptureIndex = (): void => {
|
|
44
|
+
mkdirSync(CAPTURES_DIR, { recursive: true });
|
|
45
|
+
const present = CAPTURES.filter((capture) =>
|
|
46
|
+
existsSync(resolve(CAPTURES_DIR, capture.file)),
|
|
47
|
+
);
|
|
48
|
+
const families = Object.keys(FAMILY_TITLES) as CatalogFamily[];
|
|
49
|
+
const sections = families
|
|
50
|
+
.map((family) => {
|
|
51
|
+
const lines = present
|
|
52
|
+
.filter((capture) => capture.entry.family === family)
|
|
53
|
+
.map(
|
|
54
|
+
(capture) =>
|
|
55
|
+
`- \`${capture.file}\` : ${capture.entry.name}, ${describe(
|
|
56
|
+
capture,
|
|
57
|
+
)}`,
|
|
58
|
+
);
|
|
59
|
+
return lines.length === 0
|
|
60
|
+
? ''
|
|
61
|
+
: `## ${FAMILY_TITLES[family]}\n\n${lines.join('\n')}\n`;
|
|
62
|
+
})
|
|
63
|
+
.filter((section) => section !== '');
|
|
64
|
+
const missing = CAPTURES.length - present.length;
|
|
65
|
+
const content = [
|
|
66
|
+
'# Captures du catalogue du core (#286)',
|
|
67
|
+
'',
|
|
68
|
+
'Produites par `pnpm --filter @abyss-project/commons-front-core catalog:test` (`catalog/specs/captures.spec.ts`).',
|
|
69
|
+
'Chaque composant en clair et en sombre à 1440 px ; à 390 px aussi ceux qui changent de forme sous 768 px ;',
|
|
70
|
+
'le shell et la scène bureau aussi à 768 px (rail d’icônes).',
|
|
71
|
+
'',
|
|
72
|
+
`${present.length} fichiers${
|
|
73
|
+
missing > 0 ? `, ${missing} manquants (lancement partiel)` : ''
|
|
74
|
+
}.`,
|
|
75
|
+
'',
|
|
76
|
+
...sections,
|
|
77
|
+
].join('\n');
|
|
78
|
+
writeFileSync(resolve(CAPTURES_DIR, 'index.md'), content);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export default writeCaptureIndex;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as h, Fragment as J, jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { useState as v, useCallback as
|
|
2
|
+
import { useState as v, useCallback as A, useEffect as T, useLayoutEffect as ie, useId as S, useRef as se, createContext as re, useContext as Q, useMemo as H } from "react";
|
|
3
3
|
import R from "@mui/material/Button";
|
|
4
4
|
import X from "@mui/material/Switch";
|
|
5
5
|
import { styled as g } from "@mui/material/styles";
|
|
6
|
-
import { t as x, w as E, p as f, d as D, D as N, S as O, a as V, u as w, b as Z, h as ae,
|
|
6
|
+
import { t as x, w as E, p as f, d as D, D as N, S as O, a as V, u as w, T as j, M as b, b as Z, h as ae, c as ce, e as le } from "./Surface-CN1zQYLJ.js";
|
|
7
7
|
import { useQuery as de, useMutation as ue } from "@tanstack/react-query";
|
|
8
|
-
import { AbyssCore as
|
|
8
|
+
import { AbyssCore as K } from "@abyss-project/main";
|
|
9
9
|
import { createPortal as fe } from "react-dom";
|
|
10
10
|
import pe from "@mui/material/GlobalStyles";
|
|
11
11
|
import ye from "@mui/material/Link";
|
|
12
|
-
const pt = "2026-11-03", M = "abyssCookieConsent", ee = 183, ge = ee * 24 * 60 * 60 * 1e3, me = ee * 24 * 60 * 60, he = "/", ke = "Lax", ve = (e) => btoa(JSON.stringify(e)),
|
|
12
|
+
const pt = "2026-11-03", M = "abyssCookieConsent", ee = 183, ge = ee * 24 * 60 * 60 * 1e3, me = ee * 24 * 60 * 60, he = "/", ke = "Lax", ve = (e) => btoa(JSON.stringify(e)), Ae = (e) => {
|
|
13
13
|
try {
|
|
14
14
|
const t = JSON.parse(atob(decodeURIComponent(e)));
|
|
15
15
|
return typeof t.a != "boolean" || typeof t.m != "boolean" || typeof t.d != "string" || typeof t.v != "string" ? null : t;
|
|
@@ -21,19 +21,19 @@ const pt = "2026-11-03", M = "abyssCookieConsent", ee = 183, ge = ee * 24 * 60 *
|
|
|
21
21
|
return !1;
|
|
22
22
|
const n = new Date(e.d).getTime();
|
|
23
23
|
return Number.isNaN(n) ? !1 : o - n < ge;
|
|
24
|
-
},
|
|
24
|
+
}, be = () => typeof window > "u" ? !1 : window.location.protocol === "https:", ne = (e, t) => {
|
|
25
25
|
const o = [
|
|
26
26
|
`Path=${he}`,
|
|
27
27
|
`Max-Age=${t}`,
|
|
28
28
|
`SameSite=${ke}`
|
|
29
29
|
];
|
|
30
|
-
return e.domain && o.push(`Domain=${e.domain}`),
|
|
30
|
+
return e.domain && o.push(`Domain=${e.domain}`), be() && o.push("Secure"), o.join("; ");
|
|
31
31
|
}, Ce = () => {
|
|
32
32
|
if (typeof document > "u")
|
|
33
33
|
return null;
|
|
34
34
|
const e = document.cookie.split(";").map((t) => t.trim()).find((t) => t.startsWith(`${M}=`));
|
|
35
|
-
return e ?
|
|
36
|
-
},
|
|
35
|
+
return e ? Ae(e.slice(M.length + 1)) : null;
|
|
36
|
+
}, F = (e, t = {}) => {
|
|
37
37
|
typeof document > "u" || (document.cookie = `${M}=${ve(
|
|
38
38
|
e
|
|
39
39
|
)}; ${ne(t, me)}`);
|
|
@@ -41,7 +41,7 @@ const pt = "2026-11-03", M = "abyssCookieConsent", ee = 183, ge = ee * 24 * 60 *
|
|
|
41
41
|
typeof document > "u" || (document.cookie = `${M}=; ${ne(e, 0)}`);
|
|
42
42
|
};
|
|
43
43
|
var $ = /* @__PURE__ */ ((e) => (e.NOOP = "noop", e.ADOPT_DB = "adopt-db", e.PUSH_COOKIE = "push-cookie", e))($ || {});
|
|
44
|
-
const
|
|
44
|
+
const G = (e) => ({
|
|
45
45
|
essentials: !0,
|
|
46
46
|
analytics: e.analytics,
|
|
47
47
|
marketing: e.marketing,
|
|
@@ -51,20 +51,20 @@ const F = (e) => ({
|
|
|
51
51
|
if (!e && !t)
|
|
52
52
|
return { action: "noop", value: null };
|
|
53
53
|
if (!e && t)
|
|
54
|
-
return { action: "adopt-db", value:
|
|
54
|
+
return { action: "adopt-db", value: G(t) };
|
|
55
55
|
if (e && !t)
|
|
56
56
|
return { action: "push-cookie", value: e };
|
|
57
57
|
const o = new Date(e.decidedAt).getTime(), n = new Date(
|
|
58
58
|
typeof t.decidedAt == "string" ? t.decidedAt : t.decidedAt.toISOString()
|
|
59
59
|
).getTime();
|
|
60
|
-
return n > o ? { action: "adopt-db", value:
|
|
60
|
+
return n > o ? { action: "adopt-db", value: G(t) } : o > n ? { action: "push-cookie", value: e } : { action: "noop", value: e };
|
|
61
61
|
}, Ee = (e) => ({
|
|
62
62
|
essentials: !0,
|
|
63
63
|
analytics: e.a,
|
|
64
64
|
marketing: e.m,
|
|
65
65
|
decidedAt: e.d,
|
|
66
66
|
consentVersion: e.v
|
|
67
|
-
}),
|
|
67
|
+
}), Y = (e) => ({
|
|
68
68
|
a: e.analytics,
|
|
69
69
|
m: e.marketing,
|
|
70
70
|
d: e.decidedAt,
|
|
@@ -77,20 +77,20 @@ const F = (e) => ({
|
|
|
77
77
|
() => Oe(e.consentVersion)
|
|
78
78
|
), n = de({
|
|
79
79
|
queryKey: ["cookie-consent", "me"],
|
|
80
|
-
queryFn: async () => (await
|
|
80
|
+
queryFn: async () => (await K.sdk.user.cookieConsent.get()).data.consent,
|
|
81
81
|
enabled: e.isAuthenticated,
|
|
82
82
|
retry: !1,
|
|
83
83
|
refetchOnWindowFocus: !1
|
|
84
84
|
}), s = ue({
|
|
85
|
-
mutationFn: async (i) => (await
|
|
85
|
+
mutationFn: async (i) => (await K.sdk.user.cookieConsent.upsert({
|
|
86
86
|
analytics: i.analytics,
|
|
87
87
|
marketing: i.marketing,
|
|
88
88
|
decidedAt: i.decidedAt,
|
|
89
89
|
consentVersion: i.consentVersion
|
|
90
90
|
})).data.consent
|
|
91
|
-
}), a =
|
|
91
|
+
}), a = A(
|
|
92
92
|
(i) => {
|
|
93
|
-
|
|
93
|
+
F(Y(i), { domain: e.domain }), o(i), e.isAuthenticated && s.mutate(i);
|
|
94
94
|
},
|
|
95
95
|
[e.domain, e.isAuthenticated, s]
|
|
96
96
|
);
|
|
@@ -107,9 +107,9 @@ const F = (e) => ({
|
|
|
107
107
|
},
|
|
108
108
|
e.consentVersion
|
|
109
109
|
), y = we(t, p ? i : null);
|
|
110
|
-
y.action === $.ADOPT_DB && y.value ? (
|
|
110
|
+
y.action === $.ADOPT_DB && y.value ? (F(Y(y.value), { domain: e.domain }), o(y.value)) : y.action === $.PUSH_COOKIE && y.value && s.mutate(y.value);
|
|
111
111
|
}, [e.isAuthenticated, n.isLoading, n.isError, n.data]);
|
|
112
|
-
const l =
|
|
112
|
+
const l = A(() => {
|
|
113
113
|
a({
|
|
114
114
|
essentials: !0,
|
|
115
115
|
analytics: !0,
|
|
@@ -117,7 +117,7 @@ const F = (e) => ({
|
|
|
117
117
|
decidedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
118
118
|
consentVersion: e.consentVersion
|
|
119
119
|
});
|
|
120
|
-
}, [e.consentVersion, a]), c =
|
|
120
|
+
}, [e.consentVersion, a]), c = A(() => {
|
|
121
121
|
a({
|
|
122
122
|
essentials: !0,
|
|
123
123
|
analytics: !1,
|
|
@@ -125,7 +125,7 @@ const F = (e) => ({
|
|
|
125
125
|
decidedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
126
126
|
consentVersion: e.consentVersion
|
|
127
127
|
});
|
|
128
|
-
}, [e.consentVersion, a]), r =
|
|
128
|
+
}, [e.consentVersion, a]), r = A(
|
|
129
129
|
(i) => {
|
|
130
130
|
a({
|
|
131
131
|
essentials: !0,
|
|
@@ -136,7 +136,7 @@ const F = (e) => ({
|
|
|
136
136
|
});
|
|
137
137
|
},
|
|
138
138
|
[e.consentVersion, a]
|
|
139
|
-
), u =
|
|
139
|
+
), u = A(() => {
|
|
140
140
|
Se({ domain: e.domain }), o(null);
|
|
141
141
|
}, [e.domain]);
|
|
142
142
|
return {
|
|
@@ -147,7 +147,17 @@ const F = (e) => ({
|
|
|
147
147
|
save: r,
|
|
148
148
|
reset: u
|
|
149
149
|
};
|
|
150
|
-
}, Te = "https://abyss-project.fr/cgu",
|
|
150
|
+
}, Te = "https://abyss-project.fr/cgu", Re = () => {
|
|
151
|
+
const e = Array.from(document.body.children).filter(
|
|
152
|
+
(t) => t instanceof HTMLElement && t.classList.contains("MuiModal-root") && !t.classList.contains("MuiModal-hidden") && !t.classList.contains("MuiPopover-root")
|
|
153
|
+
);
|
|
154
|
+
for (let t = e.length - 1; t >= 0; t -= 1) {
|
|
155
|
+
const o = e[t], n = o.querySelector('[aria-modal="true"]');
|
|
156
|
+
if (n !== null)
|
|
157
|
+
return { host: o, surface: n };
|
|
158
|
+
}
|
|
159
|
+
return null;
|
|
160
|
+
}, xe = /* @__PURE__ */ new Set([
|
|
151
161
|
"transform",
|
|
152
162
|
"translate",
|
|
153
163
|
"rotate",
|
|
@@ -159,12 +169,12 @@ const F = (e) => ({
|
|
|
159
169
|
"transform-style",
|
|
160
170
|
"offset-path",
|
|
161
171
|
"content-visibility"
|
|
162
|
-
]),
|
|
172
|
+
]), Ie = /* @__PURE__ */ new Set([
|
|
163
173
|
"paint",
|
|
164
174
|
"layout",
|
|
165
175
|
"strict",
|
|
166
176
|
"content"
|
|
167
|
-
]),
|
|
177
|
+
]), Le = /* @__PURE__ */ new Set(["size", "inline-size"]), k = (e) => e !== "" && e !== "none", I = (e, t) => e.split(/[\s,]+/).some((o) => t.has(o)), L = [
|
|
168
178
|
{ property: "transform", neutral: "none", creates: k },
|
|
169
179
|
{ property: "translate", neutral: "none", creates: k },
|
|
170
180
|
{ property: "rotate", neutral: "none", creates: k },
|
|
@@ -186,34 +196,34 @@ const F = (e) => ({
|
|
|
186
196
|
{
|
|
187
197
|
property: "contain",
|
|
188
198
|
neutral: "none",
|
|
189
|
-
creates: (e) => I(e,
|
|
199
|
+
creates: (e) => I(e, Ie)
|
|
190
200
|
},
|
|
191
201
|
{
|
|
192
202
|
property: "will-change",
|
|
193
203
|
neutral: "auto",
|
|
194
|
-
creates: (e) => I(e,
|
|
204
|
+
creates: (e) => I(e, xe)
|
|
195
205
|
},
|
|
196
206
|
{
|
|
197
207
|
// `scroll-state` alone makes no containing block: only the size containers do.
|
|
198
208
|
property: "container-type",
|
|
199
209
|
neutral: "normal",
|
|
200
|
-
creates: (e) => I(e,
|
|
210
|
+
creates: (e) => I(e, Le)
|
|
201
211
|
}
|
|
202
|
-
],
|
|
212
|
+
], _e = (e, t) => {
|
|
203
213
|
const o = [];
|
|
204
214
|
let n = e;
|
|
205
215
|
for (; n !== null && (o.push(n), n !== t); )
|
|
206
216
|
n = n.parentElement;
|
|
207
217
|
return o;
|
|
208
|
-
},
|
|
209
|
-
const o =
|
|
218
|
+
}, Pe = (e) => typeof e.getAnimations == "function" && e.getAnimations().length > 0, $e = (e, t) => {
|
|
219
|
+
const o = _e(e, t), n = /* @__PURE__ */ new Map();
|
|
210
220
|
let s = null;
|
|
211
221
|
const a = (c, r) => c.style.getPropertyValue(r.property) === r.neutral && c.style.getPropertyPriority(r.property) === "important", l = () => {
|
|
212
222
|
s == null || s.disconnect(), o.forEach((c) => {
|
|
213
223
|
let r = n.get(c);
|
|
214
224
|
if (L.filter(
|
|
215
225
|
(i) => (r == null ? void 0 : r.owned.has(i.property)) === !0 && !a(c, i)
|
|
216
|
-
).forEach((i) => r == null ? void 0 : r.owned.delete(i.property)),
|
|
226
|
+
).forEach((i) => r == null ? void 0 : r.owned.delete(i.property)), Pe(c))
|
|
217
227
|
return;
|
|
218
228
|
const u = getComputedStyle(c);
|
|
219
229
|
L.forEach((i) => {
|
|
@@ -237,17 +247,7 @@ const F = (e) => ({
|
|
|
237
247
|
}), !c.hadStyleAttribute && r.getAttribute("style") === "" && r.removeAttribute("style");
|
|
238
248
|
}), n.clear();
|
|
239
249
|
};
|
|
240
|
-
}, C = "data-abyss-cookie-banner-host",
|
|
241
|
-
const e = Array.from(document.body.children).filter(
|
|
242
|
-
(t) => t instanceof HTMLElement && t.classList.contains("MuiModal-root") && !t.classList.contains("MuiModal-hidden") && !t.classList.contains("MuiPopover-root")
|
|
243
|
-
);
|
|
244
|
-
for (let t = e.length - 1; t >= 0; t -= 1) {
|
|
245
|
-
const o = e[t], n = o.querySelector('[aria-modal="true"]');
|
|
246
|
-
if (n !== null)
|
|
247
|
-
return { host: o, surface: n };
|
|
248
|
-
}
|
|
249
|
-
return null;
|
|
250
|
-
}, De = () => {
|
|
250
|
+
}, C = "data-abyss-cookie-banner-host", De = () => {
|
|
251
251
|
const [e] = v(
|
|
252
252
|
() => typeof document > "u" ? null : document.createElement("div")
|
|
253
253
|
), [t, o] = v(null);
|
|
@@ -262,10 +262,10 @@ const F = (e) => ({
|
|
|
262
262
|
attributeFilter: ["class"]
|
|
263
263
|
}));
|
|
264
264
|
});
|
|
265
|
-
const u =
|
|
265
|
+
const u = Re(), i = (u == null ? void 0 : u.host) ?? null, p = (u == null ? void 0 : u.surface) ?? document.body;
|
|
266
266
|
e.parentNode !== p && p.appendChild(e);
|
|
267
267
|
const y = (u == null ? void 0 : u.surface) ?? null;
|
|
268
|
-
y !== s && (a == null || a(), a = null, s = y, u !== null && (a =
|
|
268
|
+
y !== s && (a == null || a(), a = null, s = y, u !== null && (a = $e(u.surface, u.host))), e.removeAttribute("aria-hidden"), i !== n && (n == null || n.removeAttribute(C), i == null || i.setAttribute(C, ""), n = i, o(i));
|
|
269
269
|
}, r = new MutationObserver(c);
|
|
270
270
|
return r.observe(document.body, { childList: !0 }), c(), () => {
|
|
271
271
|
r.disconnect(), a == null || a(), n == null || n.removeAttribute(C), e.remove();
|
|
@@ -334,12 +334,12 @@ function je({ api: e }) {
|
|
|
334
334
|
const B = Number.parseFloat(getComputedStyle(i).bottom), W = f(
|
|
335
335
|
i.getBoundingClientRect().height + (Number.isNaN(B) ? 0 : B)
|
|
336
336
|
);
|
|
337
|
-
p.style.setProperty(
|
|
337
|
+
p.style.setProperty(j, W), u === null ? p.style.removeProperty(b) : p.style.setProperty(b, W);
|
|
338
338
|
};
|
|
339
339
|
y();
|
|
340
340
|
const m = typeof ResizeObserver > "u" ? null : new ResizeObserver(y);
|
|
341
341
|
return m == null || m.observe(i), window.addEventListener("resize", y), () => {
|
|
342
|
-
m == null || m.disconnect(), window.removeEventListener("resize", y), p.style.removeProperty(
|
|
342
|
+
m == null || m.disconnect(), window.removeEventListener("resize", y), p.style.removeProperty(j), p.style.removeProperty(b);
|
|
343
343
|
};
|
|
344
344
|
}, [u]), r === null ? null : fe(
|
|
345
345
|
/* @__PURE__ */ h(J, { children: [
|
|
@@ -349,14 +349,14 @@ function je({ api: e }) {
|
|
|
349
349
|
styles: {
|
|
350
350
|
// A dialog or a sheet: the root of the modal is the box they are laid out in.
|
|
351
351
|
[`body > [${C}]`]: {
|
|
352
|
-
bottom: `var(${
|
|
352
|
+
bottom: `var(${b}, 0px)`
|
|
353
353
|
},
|
|
354
354
|
// A drawer's paper is fixed to the viewport, not laid out in the root: shorten it too.
|
|
355
355
|
[`body > [${C}] > .MuiDrawer-paper`]: {
|
|
356
|
-
maxHeight: `calc(100% - var(${
|
|
356
|
+
maxHeight: `calc(100% - var(${b}, 0px))`
|
|
357
357
|
},
|
|
358
358
|
[`body > [${C}] > .MuiDrawer-paperAnchorBottom`]: {
|
|
359
|
-
bottom: `var(${
|
|
359
|
+
bottom: `var(${b}, 0px)`
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
}
|
|
@@ -571,7 +571,7 @@ const z = re(null), Xe = () => {
|
|
|
571
571
|
);
|
|
572
572
|
return e;
|
|
573
573
|
}, yt = () => Q(z), gt = ({ children: e, consentVersion: t, isAuthenticated: o, domain: n, renderBanner: s }) => {
|
|
574
|
-
const a = Me({ isAuthenticated: o, consentVersion: t, domain: n }), [l, c] = v(!1), r =
|
|
574
|
+
const a = Me({ isAuthenticated: o, consentVersion: t, domain: n }), [l, c] = v(!1), r = A(() => c(!0), []), u = A(() => c(!1), []), i = H(
|
|
575
575
|
() => ({ ...a, openPreferences: r }),
|
|
576
576
|
[a, r]
|
|
577
577
|
), p = H(() => i.isResolved || l ? null : s ? s(i) : /* @__PURE__ */ d(je, { api: i }), [i, l, s]);
|
|
@@ -664,7 +664,6 @@ export {
|
|
|
664
664
|
Te as D,
|
|
665
665
|
$ as R,
|
|
666
666
|
oe as S,
|
|
667
|
-
Y as T,
|
|
668
667
|
yt as a,
|
|
669
668
|
Qe as b,
|
|
670
669
|
mt as c,
|
|
@@ -677,11 +676,12 @@ export {
|
|
|
677
676
|
he as j,
|
|
678
677
|
ke as k,
|
|
679
678
|
ve as l,
|
|
680
|
-
|
|
679
|
+
Ae as m,
|
|
681
680
|
te as n,
|
|
682
681
|
Se as o,
|
|
683
682
|
we as p,
|
|
683
|
+
Re as q,
|
|
684
684
|
Ce as r,
|
|
685
685
|
Xe as u,
|
|
686
|
-
|
|
686
|
+
F as w
|
|
687
687
|
};
|