@lab-anssi/ui-kit 1.9.0 → 1.10.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/dist/Alerte.svelte +3 -2
- package/dist/lab/vitrines-produits/briques/temoignages/IconeTemoignage.svelte +42 -0
- package/dist/lab/vitrines-produits/briques/temoignages/IconeTemoignage.svelte.d.ts +25 -0
- package/dist/lab/vitrines-produits/briques/temoignages/Temoignages.svelte +213 -0
- package/dist/lab/vitrines-produits/briques/temoignages/Temoignages.svelte.d.ts +20 -0
- package/dist/types.d.ts +5 -0
- package/dist/webcomponents/lab-anssi-ui-kit.iife.js +1 -1
- package/dist/webcomponents/lab-anssi-ui-kit.jsx.d.ts +4 -0
- package/package.json +1 -1
package/dist/Alerte.svelte
CHANGED
|
@@ -50,6 +50,7 @@ let estOuvert = true;
|
|
|
50
50
|
.alerte {
|
|
51
51
|
display: flex;
|
|
52
52
|
border: 1px solid #0163cb;
|
|
53
|
+
min-width: 200px;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
.contenu {
|
|
@@ -59,8 +60,8 @@ let estOuvert = true;
|
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
.icone {
|
|
62
|
-
width:
|
|
63
|
-
|
|
63
|
+
width: 40px;
|
|
64
|
+
min-width: 40px;
|
|
64
65
|
background: no-repeat center 8px #0163cb url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/information.svg");
|
|
65
66
|
}
|
|
66
67
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<svg width="32" height="33" viewBox="0 0 32 33" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g>
|
|
3
|
+
<g>
|
|
4
|
+
<path d="M13.3327 4.625H18.666C21.495 4.625 24.2081 5.74881 26.2085 7.74919C28.2089 9.74958 29.3327 12.4627 29.3327 15.2917C29.3327 18.1206 28.2089 20.8338 26.2085 22.8341C24.2081 24.8345 21.495 25.9583 18.666 25.9583V30.625C11.9993 27.9583 2.66602 23.9583 2.66602 15.2917C2.66602 12.4627 3.78982 9.74958 5.79021 7.74919C7.7906 5.74881 10.5037 4.625 13.3327 4.625ZM15.9993 23.2917H18.666C19.7166 23.2917 20.7569 23.0847 21.7275 22.6827C22.6981 22.2807 23.58 21.6914 24.3229 20.9485C25.0657 20.2057 25.655 19.3237 26.0571 18.3531C26.4591 17.3825 26.666 16.3422 26.666 15.2917C26.666 14.2411 26.4591 13.2008 26.0571 12.2302C25.655 11.2596 25.0657 10.3777 24.3229 9.63481C23.58 8.89194 22.6981 8.30267 21.7275 7.90063C20.7569 7.49859 19.7166 7.29167 18.666 7.29167H13.3327C11.211 7.29167 9.17612 8.13452 7.67583 9.63481C6.17554 11.1351 5.33268 13.1699 5.33268 15.2917C5.33268 20.105 8.61535 23.2463 15.9993 26.5983V23.2917Z" fill="#FFFFFF"/>
|
|
5
|
+
<path d="M15.5993 19.9583L12.7357 15.2917L15.5993 10.625H12.5084L9.59935 15.2917L12.5084 19.9583H15.5993ZM21.5993 19.9583L18.7357 15.2917L21.5993 10.625H18.5084L15.5993 15.2917L18.5084 19.9583H21.5993Z" fill="#FFFFFF"/>
|
|
6
|
+
</g>
|
|
7
|
+
</g>
|
|
8
|
+
</svg>
|
|
9
|
+
|
|
10
|
+
<style>.visible-tablette {
|
|
11
|
+
display: none !important;
|
|
12
|
+
}
|
|
13
|
+
@media (min-width: 576px) {
|
|
14
|
+
.visible-tablette {
|
|
15
|
+
display: unset !important;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (min-width: 576px) {
|
|
20
|
+
.invisible-tablette {
|
|
21
|
+
display: none !important;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.visible-desktop {
|
|
26
|
+
display: none !important;
|
|
27
|
+
}
|
|
28
|
+
@media (min-width: 932px) {
|
|
29
|
+
.visible-desktop {
|
|
30
|
+
display: unset !important;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@media (min-width: 932px) {
|
|
35
|
+
.invisible-desktop {
|
|
36
|
+
display: none !important;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
svg path {
|
|
41
|
+
fill: var(--brique-temoignages-icone-couleur);
|
|
42
|
+
}</style>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} IconeTemoignageProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} IconeTemoignageEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} IconeTemoignageSlots */
|
|
4
|
+
export default class IconeTemoignage extends SvelteComponent<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> {
|
|
9
|
+
}
|
|
10
|
+
export type IconeTemoignageProps = typeof __propDef.props;
|
|
11
|
+
export type IconeTemoignageEvents = typeof __propDef.events;
|
|
12
|
+
export type IconeTemoignageSlots = typeof __propDef.slots;
|
|
13
|
+
import { SvelteComponent } from "svelte";
|
|
14
|
+
declare const __propDef: {
|
|
15
|
+
props: {
|
|
16
|
+
[x: string]: never;
|
|
17
|
+
};
|
|
18
|
+
events: {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots: {};
|
|
22
|
+
exports?: undefined;
|
|
23
|
+
bindings?: undefined;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
<svelte:options customElement={{
|
|
2
|
+
tag: 'lab-anssi-temoignages',
|
|
3
|
+
props: {
|
|
4
|
+
titre: { reflect: false, type: 'String', attribute: 'titre' },
|
|
5
|
+
temoignages: { reflect: false, type: 'Array', attribute: 'temoignages' },
|
|
6
|
+
}
|
|
7
|
+
}} />
|
|
8
|
+
|
|
9
|
+
<script>import Brique from "../Brique.svelte";
|
|
10
|
+
import IconeTemoignage from "./IconeTemoignage.svelte";
|
|
11
|
+
export let titre = "Les avis de nos utilisateurs";
|
|
12
|
+
export let temoignages = [];
|
|
13
|
+
let elementCarrousel;
|
|
14
|
+
var Direction = /* @__PURE__ */ ((Direction2) => {
|
|
15
|
+
Direction2[Direction2["DROITE"] = 1] = "DROITE";
|
|
16
|
+
Direction2[Direction2["GAUCHE"] = -1] = "GAUCHE";
|
|
17
|
+
return Direction2;
|
|
18
|
+
})(Direction || {});
|
|
19
|
+
const scrollVers = (direction) => {
|
|
20
|
+
const declageCourant = elementCarrousel.scrollLeft;
|
|
21
|
+
const largeurCarte = elementCarrousel.children[0].clientWidth;
|
|
22
|
+
elementCarrousel.scrollLeft = declageCourant + largeurCarte * direction;
|
|
23
|
+
};
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<Brique variation="transparent">
|
|
27
|
+
<div class="brique-temoignages">
|
|
28
|
+
<h3>{titre}</h3>
|
|
29
|
+
<div class="carrousel-temoignages">
|
|
30
|
+
<div class="conteneur-carrousel" bind:this={elementCarrousel}>
|
|
31
|
+
{#each temoignages as temoignage, idx (idx)}
|
|
32
|
+
<div class="temoignage">
|
|
33
|
+
<IconeTemoignage />
|
|
34
|
+
<h4>« {temoignage.citation} »</h4>
|
|
35
|
+
<h5>{temoignage.auteur}</h5>
|
|
36
|
+
<h6>{temoignage.source}</h6>
|
|
37
|
+
</div>
|
|
38
|
+
{/each}
|
|
39
|
+
</div>
|
|
40
|
+
<div class="conteneur-actions">
|
|
41
|
+
<button class="precedent" type="button" on:click={() => scrollVers(Direction.GAUCHE)}>Précédent</button>
|
|
42
|
+
<button class="suivant" type="button" on:click={() => scrollVers(Direction.DROITE)}>Suivant</button>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</Brique>
|
|
47
|
+
|
|
48
|
+
<style>.visible-tablette {
|
|
49
|
+
display: none !important;
|
|
50
|
+
}
|
|
51
|
+
@media (min-width: 576px) {
|
|
52
|
+
.visible-tablette {
|
|
53
|
+
display: unset !important;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media (min-width: 576px) {
|
|
58
|
+
.invisible-tablette {
|
|
59
|
+
display: none !important;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.visible-desktop {
|
|
64
|
+
display: none !important;
|
|
65
|
+
}
|
|
66
|
+
@media (min-width: 932px) {
|
|
67
|
+
.visible-desktop {
|
|
68
|
+
display: unset !important;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@media (min-width: 932px) {
|
|
73
|
+
.invisible-desktop {
|
|
74
|
+
display: none !important;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.brique-temoignages {
|
|
79
|
+
font-family: Marianne;
|
|
80
|
+
}
|
|
81
|
+
.brique-temoignages h3 {
|
|
82
|
+
color: var(--brique-temoignages-titre-couleur);
|
|
83
|
+
font-size: 1.75rem;
|
|
84
|
+
font-weight: 700;
|
|
85
|
+
line-height: 2.25rem;
|
|
86
|
+
}
|
|
87
|
+
@media (min-width: 576px) {
|
|
88
|
+
.brique-temoignages h3 {
|
|
89
|
+
font-size: 2rem;
|
|
90
|
+
line-height: 2.5rem;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
.brique-temoignages .carrousel-temoignages {
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-direction: column;
|
|
96
|
+
gap: 24px;
|
|
97
|
+
}
|
|
98
|
+
.brique-temoignages .carrousel-temoignages .conteneur-carrousel {
|
|
99
|
+
display: flex;
|
|
100
|
+
gap: 24px;
|
|
101
|
+
overflow-x: auto;
|
|
102
|
+
scroll-behavior: smooth;
|
|
103
|
+
scroll-snap-type: x mandatory;
|
|
104
|
+
scrollbar-width: none;
|
|
105
|
+
-ms-overflow-style: none;
|
|
106
|
+
-webkit-overflow-scrolling: touch;
|
|
107
|
+
padding-bottom: 24px;
|
|
108
|
+
}
|
|
109
|
+
@media (min-width: 576px) {
|
|
110
|
+
.brique-temoignages .carrousel-temoignages .conteneur-carrousel {
|
|
111
|
+
display: flex;
|
|
112
|
+
flex-direction: row;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
.brique-temoignages .carrousel-temoignages .conteneur-carrousel .temoignage {
|
|
116
|
+
width: 100%;
|
|
117
|
+
box-sizing: border-box;
|
|
118
|
+
flex-shrink: 0;
|
|
119
|
+
scroll-snap-align: center;
|
|
120
|
+
padding: 0 8px 0 8px;
|
|
121
|
+
color: #161616;
|
|
122
|
+
font-size: 1.25rem;
|
|
123
|
+
font-style: normal;
|
|
124
|
+
font-weight: 700;
|
|
125
|
+
line-height: 2rem;
|
|
126
|
+
}
|
|
127
|
+
.brique-temoignages .carrousel-temoignages .conteneur-carrousel .temoignage:after {
|
|
128
|
+
content: "";
|
|
129
|
+
border-bottom: 1px solid #dddddd;
|
|
130
|
+
width: 15%;
|
|
131
|
+
display: block;
|
|
132
|
+
padding-bottom: 32px;
|
|
133
|
+
margin: 0 auto 0 0;
|
|
134
|
+
}
|
|
135
|
+
@media (min-width: 932px) {
|
|
136
|
+
.brique-temoignages .carrousel-temoignages .conteneur-carrousel .temoignage:after {
|
|
137
|
+
content: "";
|
|
138
|
+
border-bottom: none;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
@media (min-width: 932px) {
|
|
142
|
+
.brique-temoignages .carrousel-temoignages .conteneur-carrousel .temoignage {
|
|
143
|
+
min-width: 388px;
|
|
144
|
+
width: 388px;
|
|
145
|
+
scroll-snap-align: start;
|
|
146
|
+
padding-left: 32px;
|
|
147
|
+
padding-right: 0;
|
|
148
|
+
border-left: 1px solid #dddddd;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
.brique-temoignages .carrousel-temoignages .conteneur-carrousel .temoignage h4 {
|
|
152
|
+
margin: 8px 0 0;
|
|
153
|
+
font-size: 1.25rem;
|
|
154
|
+
font-weight: 700;
|
|
155
|
+
line-height: 2rem;
|
|
156
|
+
}
|
|
157
|
+
.brique-temoignages .carrousel-temoignages .conteneur-carrousel .temoignage h5 {
|
|
158
|
+
margin: 16px 0 0;
|
|
159
|
+
color: #161616;
|
|
160
|
+
font-size: 0.875rem;
|
|
161
|
+
font-weight: 700;
|
|
162
|
+
line-height: 1.5rem;
|
|
163
|
+
}
|
|
164
|
+
@media (min-width: 576px) {
|
|
165
|
+
.brique-temoignages .carrousel-temoignages .conteneur-carrousel .temoignage h5 {
|
|
166
|
+
font-size: 1rem;
|
|
167
|
+
font-weight: 700;
|
|
168
|
+
line-height: 1.5rem;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
.brique-temoignages .carrousel-temoignages .conteneur-carrousel .temoignage h6 {
|
|
172
|
+
margin: 4px 0 0;
|
|
173
|
+
color: #666666;
|
|
174
|
+
font-size: 0.75rem;
|
|
175
|
+
font-style: italic;
|
|
176
|
+
font-weight: 400;
|
|
177
|
+
line-height: 1.25rem;
|
|
178
|
+
}
|
|
179
|
+
.brique-temoignages .carrousel-temoignages .conteneur-actions {
|
|
180
|
+
display: flex;
|
|
181
|
+
margin-top: 32px;
|
|
182
|
+
justify-content: center;
|
|
183
|
+
gap: 24px;
|
|
184
|
+
}
|
|
185
|
+
.brique-temoignages .carrousel-temoignages .conteneur-actions button {
|
|
186
|
+
background: none;
|
|
187
|
+
border: none;
|
|
188
|
+
color: #000091;
|
|
189
|
+
font-size: 1.125rem;
|
|
190
|
+
font-weight: 400;
|
|
191
|
+
line-height: 1.75rem;
|
|
192
|
+
cursor: pointer;
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
gap: 8px;
|
|
196
|
+
font-family: Marianne;
|
|
197
|
+
}
|
|
198
|
+
.brique-temoignages .carrousel-temoignages .conteneur-actions .precedent:before,
|
|
199
|
+
.brique-temoignages .carrousel-temoignages .conteneur-actions .suivant:after {
|
|
200
|
+
content: url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/fleche_gauche_bleue.svg");
|
|
201
|
+
display: flex;
|
|
202
|
+
width: 24px;
|
|
203
|
+
height: 24px;
|
|
204
|
+
line-height: 1.75rem;
|
|
205
|
+
}
|
|
206
|
+
.brique-temoignages .carrousel-temoignages .conteneur-actions .suivant:after {
|
|
207
|
+
transform: rotate(180deg);
|
|
208
|
+
}
|
|
209
|
+
.brique-temoignages .carrousel-temoignages .conteneur-actions button:hover {
|
|
210
|
+
text-decoration: underline;
|
|
211
|
+
text-underline-offset: 4px;
|
|
212
|
+
text-decoration-thickness: 2px;
|
|
213
|
+
}</style>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { Temoignage } from "../../../../types";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
titre?: string;
|
|
6
|
+
temoignages?: Temoignage[];
|
|
7
|
+
};
|
|
8
|
+
events: {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
};
|
|
11
|
+
slots: {};
|
|
12
|
+
exports?: {} | undefined;
|
|
13
|
+
bindings?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
export type TemoignagesProps = typeof __propDef.props;
|
|
16
|
+
export type TemoignagesEvents = typeof __propDef.events;
|
|
17
|
+
export type TemoignagesSlots = typeof __propDef.slots;
|
|
18
|
+
export default class Temoignages extends SvelteComponent<TemoignagesProps, TemoignagesEvents, TemoignagesSlots> {
|
|
19
|
+
}
|
|
20
|
+
export {};
|
package/dist/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ const nonce = document.currentScript?.nonce;
|
|
|
2
2
|
var WebComponents=function(W){"use strict";var Ti=Object.defineProperty;var Oi=(W,T,ve)=>T in W?Ti(W,T,{enumerable:!0,configurable:!0,writable:!0,value:ve}):W[T]=ve;var ie=(W,T,ve)=>Oi(W,typeof T!="symbol"?T+"":T,ve);function T(){}const ve=t=>t;function an(t,e){for(const n in e)t[n]=e[n];return t}function rt(t){return t()}function at(){return Object.create(null)}function ae(t){t.forEach(rt)}function Ue(t){return typeof t=="function"}function J(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Se;function R(t,e){return t===e?!0:(Se||(Se=document.createElement("a")),Se.href=e,t===Se.href)}function on(t){return Object.keys(t).length===0}function cn(t,e,n,i){if(t){const s=ot(t,e,n,i);return t[0](s)}}function ot(t,e,n,i){return t[1]&&i?an(n.ctx.slice(),t[1](i(e))):n.ctx}function un(t,e,n,i){return t[2],e.dirty}function dn(t,e,n,i,s,r){if(s){const l=ot(e,n,i,r);t.p(l,s)}}function fn(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}function ce(t){return t??""}function ct(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const ut=typeof window<"u";let vn=ut?()=>window.performance.now():()=>Date.now(),Ve=ut?t=>requestAnimationFrame(t):T;const me=new Set;function dt(t){me.forEach(e=>{e.c(t)||(me.delete(e),e.f())}),me.size!==0&&Ve(dt)}function mn(t){let e;return me.size===0&&Ve(dt),{promise:new Promise(n=>{me.add(e={c:t,f:n})}),abort(){me.delete(e)}}}function d(t,e){t.appendChild(e)}function G(t,e,n){const i=We(t);if(!i.getElementById(e)){const s=v("style");s.nonce=nonce;s.id=e,s.textContent=n,ft(i,s)}}function We(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function pn(t){const e=v("style");e.nonce=nonce;return e.textContent="/* empty */",ft(We(t),e),e.sheet}function ft(t,e){return d(t.head||t,e),e.sheet}function x(t,e,n){t.insertBefore(e,n||null)}function b(t){t.parentNode&&t.parentNode.removeChild(t)}function qe(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function v(t){return document.createElement(t)}function O(t){return document.createTextNode(t)}function $(){return O(" ")}function pe(){return O("")}function le(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function o(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function hn(t){return Array.from(t.childNodes)}function V(t,e){e=""+e,t.data!==e&&(t.data=e)}function oe(t,e,n){t.classList.toggle(e,!!n)}function vt(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}function gn(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}const Me=new Map;let Ee=0;function bn(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function xn(t,e){const n={stylesheet:pn(e),rules:{}};return Me.set(t,n),n}function mt(t,e,n,i,s,r,l,a=0){const u=16.666/i;let c=`{
|
|
3
3
|
`;for(let y=0;y<=1;y+=u){const _=e+(n-e)*r(y);c+=y*100+`%{${l(_,1-_)}}
|
|
4
4
|
`}const f=c+`100% {${l(n,1-n)}}
|
|
5
|
-
}`,h=`__svelte_${bn(f)}_${a}`,p=We(t),{stylesheet:g,rules:m}=Me.get(p)||xn(p,t);m[h]||(m[h]=!0,g.insertRule(`@keyframes ${h} ${f}`,g.cssRules.length));const w=t.style.animation||"";return t.style.animation=`${w?`${w}, `:""}${h} ${i}ms linear ${s}ms 1 both`,Ee+=1,h}function wn(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?r=>r.indexOf(e)<0:r=>r.indexOf("__svelte")===-1),s=n.length-i.length;s&&(t.style.animation=i.join(", "),Ee-=s,Ee||_n())}function _n(){Ve(()=>{Ee||(Me.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&b(e)}),Me.clear())})}let _e;function $e(t){_e=t}function $n(){if(!_e)throw new Error("Function called outside component initialization");return _e}function yn(){const t=$n();return(e,n,{cancelable:i=!1}={})=>{const s=t.$$.callbacks[e];if(s){const r=vt(e,n,{cancelable:i});return s.slice().forEach(l=>{l.call(t,r)}),!r.defaultPrevented}return!0}}const he=[],Je=[];let ge=[];const pt=[],kn=Promise.resolve();let Ge=!1;function zn(){Ge||(Ge=!0,kn.then(N))}function ue(t){ge.push(t)}const Ye=new Set;let be=0;function N(){if(be!==0)return;const t=_e;do{try{for(;be<he.length;){const e=he[be];be++,$e(e),jn(e.$$)}}catch(e){throw he.length=0,be=0,e}for($e(null),he.length=0,be=0;Je.length;)Je.pop()();for(let e=0;e<ge.length;e+=1){const n=ge[e];Ye.has(n)||(Ye.add(n),n())}ge.length=0}while(he.length);for(;pt.length;)pt.pop()();Ge=!1,Ye.clear(),$e(t)}function jn(t){if(t.fragment!==null){t.update(),ae(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ue)}}function Cn(t){const e=[],n=[];ge.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),ge=e}let ye;function Sn(){return ye||(ye=Promise.resolve(),ye.then(()=>{ye=null})),ye}function Ke(t,e,n){t.dispatchEvent(vt(`${e?"intro":"outro"}${n}`))}const Le=new Set;let re;function ke(){re={r:0,c:[],p:re}}function ze(){re.r||ae(re.c),re=re.p}function I(t,e){t&&t.i&&(Le.delete(t),t.i(e))}function U(t,e,n,i){if(t&&t.o){if(Le.has(t))return;Le.add(t),re.c.push(()=>{Le.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}const qn={duration:0};function xe(t,e,n,i){let r=e(t,n,{direction:"both"}),l=i?0:1,a=null,u=null,c=null,f;function h(){c&&wn(t,c)}function p(m,w){const y=m.b-l;return w*=Math.abs(y),{a:l,b:m.b,d:y,duration:w,start:m.start,end:m.start+w,group:m.group}}function g(m){const{delay:w=0,duration:y=300,easing:_=ve,tick:k=T,css:C}=r||qn,P={start:vn()+w,b:m};m||(P.group=re,re.r+=1),"inert"in t&&(m?f!==void 0&&(t.inert=f):(f=t.inert,t.inert=!0)),a||u?u=P:(C&&(h(),c=mt(t,l,m,y,w,_,C)),m&&k(0,1),a=p(P,y),ue(()=>Ke(t,m,"start")),mn(F=>{if(u&&F>u.start&&(a=p(u,y),u=null,Ke(t,a.b,"start"),C&&(h(),c=mt(t,l,a.b,a.duration,0,_,r.css))),a){if(F>=a.end)k(l=a.b,1-l),Ke(t,a.b,"end"),u||(a.b?h():--a.group.r||ae(a.group.c)),a=null;else if(F>=a.start){const S=F-a.start;l=a.a+a.d*_(S/a.duration),k(l,1-l)}}return!!(a||u)}))}return{run(m){Ue(r)?Sn().then(()=>{r=r({direction:m?"in":"out"}),g(m)}):g(m)},end(){h(),a=u=null}}}function te(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Mn(t,e){t.d(1),e.delete(t.key)}function En(t,e){U(t,1,1,()=>{e.delete(t.key)})}function ht(t,e,n,i,s,r,l,a,u,c,f,h){let p=t.length,g=r.length,m=p;const w={};for(;m--;)w[t[m].key]=m;const y=[],_=new Map,k=new Map,C=[];for(m=g;m--;){const z=h(s,r,m),L=n(z);let M=l.get(L);M?C.push(()=>M.p(z,e)):(M=c(L,z),M.c()),_.set(L,y[m]=M),L in w&&k.set(L,Math.abs(m-w[L]))}const P=new Set,F=new Set;function S(z){I(z,1),z.m(a,f),l.set(z.key,z),f=z.first,g--}for(;p&&g;){const z=y[g-1],L=t[p-1],M=z.key,A=L.key;z===L?(f=z.first,p--,g--):_.has(A)?!l.has(M)||P.has(M)?S(z):F.has(A)?p--:k.get(M)>k.get(A)?(F.add(M),S(z)):(P.add(A),p--):(u(L,l),p--)}for(;p--;){const z=t[p];_.has(z.key)||u(z,l)}for(;g;)S(y[g-1]);return ae(C),y}function ne(t){t&&t.c()}function Z(t,e,n){const{fragment:i,after_update:s}=t.$$;i&&i.m(e,n),ue(()=>{const r=t.$$.on_mount.map(rt).filter(Ue);t.$$.on_destroy?t.$$.on_destroy.push(...r):ae(r),t.$$.on_mount=[]}),s.forEach(ue)}function ee(t,e){const n=t.$$;n.fragment!==null&&(Cn(n.after_update),ae(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ln(t,e){t.$$.dirty[0]===-1&&(he.push(t),zn(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Y(t,e,n,i,s,r,l=null,a=[-1]){const u=_e;$e(t);const c=t.$$={fragment:null,ctx:[],props:r,update:T,not_equal:s,bound:at(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:at(),dirty:a,skip_bound:!1,root:e.target||u.$$.root};l&&l(c.root);let f=!1;if(c.ctx=n?n(t,e.props||{},(h,p,...g)=>{const m=g.length?g[0]:p;return c.ctx&&s(c.ctx[h],c.ctx[h]=m)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](m),f&&Ln(t,h)),p}):[],c.update(),f=!0,ae(c.before_update),c.fragment=i?i(c.ctx):!1,e.target){if(e.hydrate){const h=hn(e.target);c.fragment&&c.fragment.l(h),h.forEach(b)}else c.fragment&&c.fragment.c();e.intro&&I(t.$$.fragment),Z(t,e.target,e.anchor),N()}$e(u)}let gt;typeof HTMLElement=="function"&&(gt=class extends HTMLElement{constructor(e,n,i){super();ie(this,"$$ctor");ie(this,"$$s");ie(this,"$$c");ie(this,"$$cn",!1);ie(this,"$$d",{});ie(this,"$$r",!1);ie(this,"$$p_d",{});ie(this,"$$l",{});ie(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(e,n,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const s=this.$$c.$on(e,n);this.$$l_u.set(n,s)}super.addEventListener(e,n,i)}removeEventListener(e,n,i){if(super.removeEventListener(e,n,i),this.$$c){const s=this.$$l_u.get(n);s&&(s(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=v("slot"),r!=="default"&&o(l,"name",r)},m:function(c,f){x(c,l,f)},d:function(c){c&&b(l)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=gn(this);for(const r of this.$$s)r in i&&(n[r]=[e(r)]);for(const r of this.attributes){const l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Ae(l,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});const s=()=>{this.$$r=!0;for(const r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){const l=Ae(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const r in this.$$l)for(const l of this.$$l[r]){const a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(e,n,i){var s;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ae(e,i,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function Ae(t,e,n,i){var r;const s=(r=n[t])==null?void 0:r.type;if(e=s==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!n[t])return e;if(i==="toAttribute")switch(s){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function K(t,e,n,i,s,r){let l=class extends gt{constructor(){super(t,n,s),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).forEach(a=>{Object.defineProperty(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var c;u=Ae(a,u,e),this.$$d[a]=u,(c=this.$$c)==null||c.$set({[a]:u})}})}),i.forEach(a=>{Object.defineProperty(l.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),t.element=l,l}class Q{constructor(){ie(this,"$$");ie(this,"$$set")}$destroy(){ee(this,1),this.$destroy=T}$on(e,n){if(!Ue(n))return T;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(e){this.$$set&&!on(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const An="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(An);function Nn(t){G(t,"svelte-1rajze3",'@media(min-width: 576px){}@media(min-width: 576px){}@media(min-width: 932px){}@media(min-width: 932px){}.alerte.svelte-1rajze3{display:flex;border:1px solid #0163cb}.contenu.svelte-1rajze3{flex:1;padding:8px;color:#3a3a3a}.icone.svelte-1rajze3{width:24px;padding:8px;background:no-repeat center 8px #0163cb url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/information.svg")}.fermer.svelte-1rajze3{width:16px;height:16px;padding:8px;margin-top:3px;margin-right:3px;background:no-repeat center 8px url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/croix-bleu.svg");border:0;cursor:pointer;box-sizing:content-box}')}function bt(t){let e,n,i,s,r,l,a,u,c;return{c(){e=v("div"),n=v("span"),i=$(),s=v("div"),r=O(t[0]),l=$(),a=v("button"),o(n,"class","icone svelte-1rajze3"),o(s,"class","contenu svelte-1rajze3"),o(a,"class","fermer svelte-1rajze3"),o(e,"class","alerte svelte-1rajze3")},m(f,h){x(f,e,h),d(e,n),d(e,i),d(e,s),d(s,r),d(e,l),d(e,a),u||(c=le(a,"click",t[2]),u=!0)},p(f,h){h&1&&V(r,f[0])},d(f){f&&b(e),u=!1,c()}}}function Tn(t){let e,n=t[1]&&bt(t);return{c(){n&&n.c(),e=pe()},m(i,s){n&&n.m(i,s),x(i,e,s)},p(i,[s]){i[1]?n?n.p(i,s):(n=bt(i),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:T,o:T,d(i){i&&b(e),n&&n.d(i)}}}function On(t,e,n){let{description:i}=e,s=!0;const r=()=>{n(1,s=!1)};return t.$$set=l=>{"description"in l&&n(0,i=l.description)},[i,s,r]}class xt extends Q{constructor(e){super(),Y(this,e,On,Tn,J,{description:0},Nn)}get description(){return this.$$.ctx[0]}set description(e){this.$$set({description:e}),N()}}customElements.define("lab-anssi-alerte",K(xt,{description:{}},[],[],!0));function wt(t){const e=t-1;return e*e*e+1}function Ne(t,{delay:e=0,duration:n=400,easing:i=wt,x:s=0,y:r=0,opacity:l=0}={}){const a=getComputedStyle(t),u=+a.opacity,c=a.transform==="none"?"":a.transform,f=u*(1-l),[h,p]=ct(s),[g,m]=ct(r);return{delay:e,duration:n,easing:i,css:(w,y)=>`
|
|
5
|
+
}`,h=`__svelte_${bn(f)}_${a}`,p=We(t),{stylesheet:g,rules:m}=Me.get(p)||xn(p,t);m[h]||(m[h]=!0,g.insertRule(`@keyframes ${h} ${f}`,g.cssRules.length));const w=t.style.animation||"";return t.style.animation=`${w?`${w}, `:""}${h} ${i}ms linear ${s}ms 1 both`,Ee+=1,h}function wn(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?r=>r.indexOf(e)<0:r=>r.indexOf("__svelte")===-1),s=n.length-i.length;s&&(t.style.animation=i.join(", "),Ee-=s,Ee||_n())}function _n(){Ve(()=>{Ee||(Me.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&b(e)}),Me.clear())})}let _e;function $e(t){_e=t}function $n(){if(!_e)throw new Error("Function called outside component initialization");return _e}function yn(){const t=$n();return(e,n,{cancelable:i=!1}={})=>{const s=t.$$.callbacks[e];if(s){const r=vt(e,n,{cancelable:i});return s.slice().forEach(l=>{l.call(t,r)}),!r.defaultPrevented}return!0}}const he=[],Je=[];let ge=[];const pt=[],kn=Promise.resolve();let Ge=!1;function zn(){Ge||(Ge=!0,kn.then(N))}function ue(t){ge.push(t)}const Ye=new Set;let be=0;function N(){if(be!==0)return;const t=_e;do{try{for(;be<he.length;){const e=he[be];be++,$e(e),jn(e.$$)}}catch(e){throw he.length=0,be=0,e}for($e(null),he.length=0,be=0;Je.length;)Je.pop()();for(let e=0;e<ge.length;e+=1){const n=ge[e];Ye.has(n)||(Ye.add(n),n())}ge.length=0}while(he.length);for(;pt.length;)pt.pop()();Ge=!1,Ye.clear(),$e(t)}function jn(t){if(t.fragment!==null){t.update(),ae(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ue)}}function Cn(t){const e=[],n=[];ge.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),ge=e}let ye;function Sn(){return ye||(ye=Promise.resolve(),ye.then(()=>{ye=null})),ye}function Ke(t,e,n){t.dispatchEvent(vt(`${e?"intro":"outro"}${n}`))}const Le=new Set;let re;function ke(){re={r:0,c:[],p:re}}function ze(){re.r||ae(re.c),re=re.p}function I(t,e){t&&t.i&&(Le.delete(t),t.i(e))}function U(t,e,n,i){if(t&&t.o){if(Le.has(t))return;Le.add(t),re.c.push(()=>{Le.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}const qn={duration:0};function xe(t,e,n,i){let r=e(t,n,{direction:"both"}),l=i?0:1,a=null,u=null,c=null,f;function h(){c&&wn(t,c)}function p(m,w){const y=m.b-l;return w*=Math.abs(y),{a:l,b:m.b,d:y,duration:w,start:m.start,end:m.start+w,group:m.group}}function g(m){const{delay:w=0,duration:y=300,easing:_=ve,tick:k=T,css:C}=r||qn,P={start:vn()+w,b:m};m||(P.group=re,re.r+=1),"inert"in t&&(m?f!==void 0&&(t.inert=f):(f=t.inert,t.inert=!0)),a||u?u=P:(C&&(h(),c=mt(t,l,m,y,w,_,C)),m&&k(0,1),a=p(P,y),ue(()=>Ke(t,m,"start")),mn(F=>{if(u&&F>u.start&&(a=p(u,y),u=null,Ke(t,a.b,"start"),C&&(h(),c=mt(t,l,a.b,a.duration,0,_,r.css))),a){if(F>=a.end)k(l=a.b,1-l),Ke(t,a.b,"end"),u||(a.b?h():--a.group.r||ae(a.group.c)),a=null;else if(F>=a.start){const S=F-a.start;l=a.a+a.d*_(S/a.duration),k(l,1-l)}}return!!(a||u)}))}return{run(m){Ue(r)?Sn().then(()=>{r=r({direction:m?"in":"out"}),g(m)}):g(m)},end(){h(),a=u=null}}}function te(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Mn(t,e){t.d(1),e.delete(t.key)}function En(t,e){U(t,1,1,()=>{e.delete(t.key)})}function ht(t,e,n,i,s,r,l,a,u,c,f,h){let p=t.length,g=r.length,m=p;const w={};for(;m--;)w[t[m].key]=m;const y=[],_=new Map,k=new Map,C=[];for(m=g;m--;){const z=h(s,r,m),L=n(z);let M=l.get(L);M?C.push(()=>M.p(z,e)):(M=c(L,z),M.c()),_.set(L,y[m]=M),L in w&&k.set(L,Math.abs(m-w[L]))}const P=new Set,F=new Set;function S(z){I(z,1),z.m(a,f),l.set(z.key,z),f=z.first,g--}for(;p&&g;){const z=y[g-1],L=t[p-1],M=z.key,A=L.key;z===L?(f=z.first,p--,g--):_.has(A)?!l.has(M)||P.has(M)?S(z):F.has(A)?p--:k.get(M)>k.get(A)?(F.add(M),S(z)):(P.add(A),p--):(u(L,l),p--)}for(;p--;){const z=t[p];_.has(z.key)||u(z,l)}for(;g;)S(y[g-1]);return ae(C),y}function ne(t){t&&t.c()}function Z(t,e,n){const{fragment:i,after_update:s}=t.$$;i&&i.m(e,n),ue(()=>{const r=t.$$.on_mount.map(rt).filter(Ue);t.$$.on_destroy?t.$$.on_destroy.push(...r):ae(r),t.$$.on_mount=[]}),s.forEach(ue)}function ee(t,e){const n=t.$$;n.fragment!==null&&(Cn(n.after_update),ae(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ln(t,e){t.$$.dirty[0]===-1&&(he.push(t),zn(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Y(t,e,n,i,s,r,l=null,a=[-1]){const u=_e;$e(t);const c=t.$$={fragment:null,ctx:[],props:r,update:T,not_equal:s,bound:at(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:at(),dirty:a,skip_bound:!1,root:e.target||u.$$.root};l&&l(c.root);let f=!1;if(c.ctx=n?n(t,e.props||{},(h,p,...g)=>{const m=g.length?g[0]:p;return c.ctx&&s(c.ctx[h],c.ctx[h]=m)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](m),f&&Ln(t,h)),p}):[],c.update(),f=!0,ae(c.before_update),c.fragment=i?i(c.ctx):!1,e.target){if(e.hydrate){const h=hn(e.target);c.fragment&&c.fragment.l(h),h.forEach(b)}else c.fragment&&c.fragment.c();e.intro&&I(t.$$.fragment),Z(t,e.target,e.anchor),N()}$e(u)}let gt;typeof HTMLElement=="function"&&(gt=class extends HTMLElement{constructor(e,n,i){super();ie(this,"$$ctor");ie(this,"$$s");ie(this,"$$c");ie(this,"$$cn",!1);ie(this,"$$d",{});ie(this,"$$r",!1);ie(this,"$$p_d",{});ie(this,"$$l",{});ie(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(e,n,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const s=this.$$c.$on(e,n);this.$$l_u.set(n,s)}super.addEventListener(e,n,i)}removeEventListener(e,n,i){if(super.removeEventListener(e,n,i),this.$$c){const s=this.$$l_u.get(n);s&&(s(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let l;return{c:function(){l=v("slot"),r!=="default"&&o(l,"name",r)},m:function(c,f){x(c,l,f)},d:function(c){c&&b(l)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=gn(this);for(const r of this.$$s)r in i&&(n[r]=[e(r)]);for(const r of this.attributes){const l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Ae(l,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});const s=()=>{this.$$r=!0;for(const r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){const l=Ae(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const r in this.$$l)for(const l of this.$$l[r]){const a=this.$$c.$on(r,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(e,n,i){var s;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ae(e,i,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function Ae(t,e,n,i){var r;const s=(r=n[t])==null?void 0:r.type;if(e=s==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!n[t])return e;if(i==="toAttribute")switch(s){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function K(t,e,n,i,s,r){let l=class extends gt{constructor(){super(t,n,s),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).forEach(a=>{Object.defineProperty(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var c;u=Ae(a,u,e),this.$$d[a]=u,(c=this.$$c)==null||c.$set({[a]:u})}})}),i.forEach(a=>{Object.defineProperty(l.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),t.element=l,l}class Q{constructor(){ie(this,"$$");ie(this,"$$set")}$destroy(){ee(this,1),this.$destroy=T}$on(e,n){if(!Ue(n))return T;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(e){this.$$set&&!on(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const An="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(An);function Nn(t){G(t,"svelte-uav83t",'@media(min-width: 576px){}@media(min-width: 576px){}@media(min-width: 932px){}@media(min-width: 932px){}.alerte.svelte-uav83t{display:flex;border:1px solid #0163cb;min-width:200px}.contenu.svelte-uav83t{flex:1;padding:8px;color:#3a3a3a}.icone.svelte-uav83t{width:40px;min-width:40px;background:no-repeat center 8px #0163cb url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/information.svg")}.fermer.svelte-uav83t{width:16px;height:16px;padding:8px;margin-top:3px;margin-right:3px;background:no-repeat center 8px url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/croix-bleu.svg");border:0;cursor:pointer;box-sizing:content-box}')}function bt(t){let e,n,i,s,r,l,a,u,c;return{c(){e=v("div"),n=v("span"),i=$(),s=v("div"),r=O(t[0]),l=$(),a=v("button"),o(n,"class","icone svelte-uav83t"),o(s,"class","contenu svelte-uav83t"),o(a,"class","fermer svelte-uav83t"),o(e,"class","alerte svelte-uav83t")},m(f,h){x(f,e,h),d(e,n),d(e,i),d(e,s),d(s,r),d(e,l),d(e,a),u||(c=le(a,"click",t[2]),u=!0)},p(f,h){h&1&&V(r,f[0])},d(f){f&&b(e),u=!1,c()}}}function Tn(t){let e,n=t[1]&&bt(t);return{c(){n&&n.c(),e=pe()},m(i,s){n&&n.m(i,s),x(i,e,s)},p(i,[s]){i[1]?n?n.p(i,s):(n=bt(i),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:T,o:T,d(i){i&&b(e),n&&n.d(i)}}}function On(t,e,n){let{description:i}=e,s=!0;const r=()=>{n(1,s=!1)};return t.$$set=l=>{"description"in l&&n(0,i=l.description)},[i,s,r]}class xt extends Q{constructor(e){super(),Y(this,e,On,Tn,J,{description:0},Nn)}get description(){return this.$$.ctx[0]}set description(e){this.$$set({description:e}),N()}}customElements.define("lab-anssi-alerte",K(xt,{description:{}},[],[],!0));function wt(t){const e=t-1;return e*e*e+1}function Ne(t,{delay:e=0,duration:n=400,easing:i=wt,x:s=0,y:r=0,opacity:l=0}={}){const a=getComputedStyle(t),u=+a.opacity,c=a.transform==="none"?"":a.transform,f=u*(1-l),[h,p]=ct(s),[g,m]=ct(r);return{delay:e,duration:n,easing:i,css:(w,y)=>`
|
|
6
6
|
transform: ${c} translate(${(1-w)*h}${p}, ${(1-w)*g}${m});
|
|
7
7
|
opacity: ${u-f*y}`}}function _t(t,{delay:e=0,duration:n=400,easing:i=wt,axis:s="y"}={}){const r=getComputedStyle(t),l=+r.opacity,a=s==="y"?"height":"width",u=parseFloat(r[a]),c=s==="y"?["top","bottom"]:["left","right"],f=c.map(_=>`${_[0].toUpperCase()}${_.slice(1)}`),h=parseFloat(r[`padding${f[0]}`]),p=parseFloat(r[`padding${f[1]}`]),g=parseFloat(r[`margin${f[0]}`]),m=parseFloat(r[`margin${f[1]}`]),w=parseFloat(r[`border${f[0]}Width`]),y=parseFloat(r[`border${f[1]}Width`]);return{delay:e,duration:n,easing:i,css:_=>`overflow: hidden;opacity: ${Math.min(_*20,1)*l};${a}: ${_*u}px;padding-${c[0]}: ${_*h}px;padding-${c[1]}: ${_*p}px;margin-${c[0]}: ${_*g}px;margin-${c[1]}: ${_*m}px;border-${c[0]}-width: ${_*w}px;border-${c[1]}-width: ${_*y}px;`}}const X=t=>`https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com${t}`;function Pn(t){G(t,"svelte-1bb4bxh",'@media(min-width: 576px){}@media(min-width: 576px){}@media(min-width: 932px){}@media(min-width: 932px){}.declencheur-centre-aide.svelte-1bb4bxh.svelte-1bb4bxh{position:fixed;bottom:24px;right:24px;border-radius:100px;border:1px solid #fff;background:var(--centre-aide-background-entete);box-shadow:0 4px 12px 0 rgba(0, 0, 18, 0.16);color:#f5f5fe;text-align:center;font-size:18px;font-weight:500;line-height:28px;display:flex;gap:8px;padding:10px 24px 10px 18px;cursor:pointer;z-index:1000;font-family:Marianne}.declencheur-centre-aide.svelte-1bb4bxh.svelte-1bb4bxh:hover{background:var(--centre-aide-background-hover-declencheur)}@media(min-width: 576px){.declencheur-centre-aide.svelte-1bb4bxh.svelte-1bb4bxh{bottom:48px;right:48px}}.centre-aide.svelte-1bb4bxh.svelte-1bb4bxh{position:fixed;top:0;left:0;width:100%;height:100%;background:white;z-index:9;font-family:Marianne;overflow-y:scroll}@media(min-width: 576px){.centre-aide.svelte-1bb4bxh.svelte-1bb4bxh{width:520px;height:576px;top:unset;left:unset;bottom:48px;right:48px;border-radius:8px;border:1px solid #fff;box-shadow:0 6px 18px 0 rgba(0, 0, 18, 0.16)}}.centre-aide.svelte-1bb4bxh .entete.svelte-1bb4bxh{padding:24px 32px;display:flex;align-items:center;justify-content:space-between;background:var(--centre-aide-background-entete);position:sticky;top:0;z-index:1}@media(min-width: 576px){.centre-aide.svelte-1bb4bxh .entete.svelte-1bb4bxh{border-top-left-radius:8px;border-top-right-radius:8px}}.centre-aide.svelte-1bb4bxh .entete .icone-centre-aide.svelte-1bb4bxh{width:24px;height:24px}@media(min-width: 576px){.centre-aide.svelte-1bb4bxh .entete .icone-centre-aide.svelte-1bb4bxh{width:30px;height:30px}}.centre-aide.svelte-1bb4bxh .entete h4.svelte-1bb4bxh{color:white;font-size:18px;font-weight:700;line-height:28px;margin:0}@media(min-width: 576px){.centre-aide.svelte-1bb4bxh .entete h4.svelte-1bb4bxh{font-size:24px;line-height:32px}}.centre-aide.svelte-1bb4bxh .entete div.svelte-1bb4bxh{display:flex;flex-direction:row;gap:16px}.centre-aide.svelte-1bb4bxh .entete button.svelte-1bb4bxh{border:none;background:none;margin:0;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer}.centre-aide.svelte-1bb4bxh .entete button span.svelte-1bb4bxh{display:none;font-size:14px;line-height:24px;font-weight:500;margin-right:8px;color:white;font-family:Marianne}@media(min-width: 576px){.centre-aide.svelte-1bb4bxh .entete button span.svelte-1bb4bxh{display:inline-block}}.centre-aide.svelte-1bb4bxh .contenu.svelte-1bb4bxh{padding:16px;display:flex;flex-direction:column;gap:12px}@media(min-width: 576px){.centre-aide.svelte-1bb4bxh .contenu.svelte-1bb4bxh{padding:32px}}.centre-aide.svelte-1bb4bxh .contenu .message.svelte-1bb4bxh{display:flex;padding:16px;border-radius:8px;background:#ededed;color:#161616;font-size:1rem;font-weight:400;line-height:24px}@media(min-width: 576px){.centre-aide.svelte-1bb4bxh .contenu .message.svelte-1bb4bxh{width:fit-content}}.centre-aide.svelte-1bb4bxh .contenu .message.marge-haute.svelte-1bb4bxh{margin-top:16px}.centre-aide.svelte-1bb4bxh .contenu a.lien.svelte-1bb4bxh{box-sizing:border-box;text-decoration:none;padding:8px 12px 8px 16px;background:var(--centre-aide-background-bouton);color:var(--centre-aide-font-color-bouton);border-radius:8px;font-size:16px;font-weight:500;line-height:24px;display:flex;flex-direction:row;text-align:left;align-items:center;justify-content:space-between;cursor:pointer;gap:8px}.centre-aide.svelte-1bb4bxh .contenu a.lien[href].svelte-1bb4bxh:after{content:"";mask-image:url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/lien-externe.svg");-webkit-mask-image:url("https://lab-anssi-ui-kit-prod-s3-assets.cellar-c2.services.clever-cloud.com/icones/lien-externe.svg");display:flex;background-color:var(--centre-aide-font-color-bouton);width:16px;height:16px;mask-size:16px;min-width:16px}.centre-aide.svelte-1bb4bxh .contenu a.lien.svelte-1bb4bxh:hover{background-color:var(--centre-aide-background-hover-lien)}@media(min-width: 576px){.centre-aide.svelte-1bb4bxh .contenu a.lien.svelte-1bb4bxh{width:fit-content}}.centre-aide.svelte-1bb4bxh .contenu a.lien.secondaire.svelte-1bb4bxh{background:none;border:1px solid var(--centre-aide-border-lien-secondaire);color:var(--centre-aide-font-color-lien-secondaire)}.centre-aide.svelte-1bb4bxh .contenu a.lien.secondaire.svelte-1bb4bxh:after{background-color:var(--centre-aide-font-color-lien-secondaire)}.centre-aide.svelte-1bb4bxh .contenu a.lien.secondaire.svelte-1bb4bxh:hover{background-color:rgba(0, 0, 0, 0.04)}')}function $t(t,e,n){const i=t.slice();return i[8]=e[n],i[10]=n,i}function yt(t){let e,n,i,s,r;return{c(){e=v("button"),e.innerHTML=`<img src="${X("/icones/centre-aide.svg")}" alt="Icône du centre d'aide"/>
|
|
8
8
|
Centre d'aide`,o(e,"class","declencheur-centre-aide svelte-1bb4bxh")},m(l,a){x(l,e,a),i=!0,s||(r=le(e,"click",t[5]),s=!0)},p:T,i(l){i||(l&&ue(()=>{i&&(n||(n=xe(e,Ne,{y:300},!0)),n.run(1))}),i=!0)},o(l){l&&(n||(n=xe(e,Ne,{y:300},!1)),n.run(0)),i=!1},d(l){l&&b(e),l&&n&&n.end(),s=!1,r()}}}function kt(t){let e,n,i,s,r,l,a,u,c,f,h,p,g,m,w,y,_,k,C,P,F,S,z,L,M=t[1]&&zt(t);return{c(){e=v("div"),n=v("div"),i=v("div"),i.innerHTML=`<img class="icone-centre-aide svelte-1bb4bxh" src="${X("/icones/centre-aide.svg")}" alt="Icône du centre d'aide"/> <h4 class="svelte-1bb4bxh">Centre d'aide</h4>`,s=$(),r=v("button"),r.innerHTML=`<span class="svelte-1bb4bxh">Fermer</span> <img src="${X("/icones/croix-blanche.svg")}" alt="Icône de fermeture du centre d'aider"/>`,l=$(),a=v("div"),u=v("div"),c=v("span"),f=O("Bonjour et bienvenue sur "),h=v("b"),p=O(t[0]),g=O(". Comment pouvons-nous vous aider ?"),m=$(),M&&M.c(),w=$(),y=v("div"),y.innerHTML='<span class="svelte-1bb4bxh">Vous souhaitez faire une autre demande à l'ANSSI ?</span>',_=$(),k=v("a"),k.textContent="️⚠️ Signaler un incident ou une vulnérabilité",C=$(),P=v("a"),P.textContent="️📩 Contacter d’autres services de l’ANSSI",o(i,"class","svelte-1bb4bxh"),o(r,"class","svelte-1bb4bxh"),o(n,"class","entete svelte-1bb4bxh"),o(c,"class","svelte-1bb4bxh"),o(u,"class","message svelte-1bb4bxh"),o(y,"class","message marge-haute svelte-1bb4bxh"),o(k,"class","lien secondaire centre-aide-signaler-incident svelte-1bb4bxh"),o(k,"href","https://club.ssi.gouv.fr/#/declarations"),o(k,"target","_blank"),o(P,"class","lien secondaire centre-aide-contacter-anssi svelte-1bb4bxh"),o(P,"href","https://cyber.gouv.fr/contacter-lanssi"),o(P,"target","_blank"),o(a,"class","contenu svelte-1bb4bxh"),o(e,"class","centre-aide svelte-1bb4bxh")},m(A,D){x(A,e,D),d(e,n),d(n,i),d(n,s),d(n,r),d(e,l),d(e,a),d(a,u),d(u,c),d(c,f),d(c,h),d(h,p),d(c,g),d(a,m),M&&M.m(a,null),d(a,w),d(a,y),d(a,_),d(a,k),d(a,C),d(a,P),S=!0,z||(L=le(r,"click",t[6]),z=!0)},p(A,D){(!S||D&1)&&V(p,A[0]),A[1]?M?M.p(A,D):(M=zt(A),M.c(),M.m(a,w)):M&&(M.d(1),M=null)},i(A){S||(A&&ue(()=>{S&&(F||(F=xe(e,Ne,{y:300},!0)),F.run(1))}),S=!0)},o(A){A&&(F||(F=xe(e,Ne,{y:300},!1)),F.run(0)),S=!1},d(A){A&&b(e),M&&M.d(),A&&F&&F.end(),z=!1,L()}}}function zt(t){let e=[],n=new Map,i,s=te(t[1]);const r=l=>l[10];for(let l=0;l<s.length;l+=1){let a=$t(t,s,l),u=r(a);n.set(u,e[l]=jt(u,a))}return{c(){for(let l=0;l<e.length;l+=1)e[l].c();i=pe()},m(l,a){for(let u=0;u<e.length;u+=1)e[u]&&e[u].m(l,a);x(l,i,a)},p(l,a){a&10&&(s=te(l[1]),e=ht(e,a,r,1,l,s,n,i.parentNode,Mn,jt,i,$t))},d(l){l&&b(i);for(let a=0;a<e.length;a+=1)e[a].d(l)}}}function jt(t,e){let n,i=e[8].texte+"",s,r,l,a,u;function c(...f){return e[7](e[8],...f)}return{key:t,first:null,c(){n=v("a"),s=O(i),o(n,"class","lien lien-principal svelte-1bb4bxh"),o(n,"href",r=e[8].href),o(n,"target","_blank"),o(n,"id",l=e[8].id),this.first=n},m(f,h){x(f,n,h),d(n,s),a||(u=le(n,"click",c),a=!0)},p(f,h){e=f,h&2&&i!==(i=e[8].texte+"")&&V(s,i),h&2&&r!==(r=e[8].href)&&o(n,"href",r),h&2&&l!==(l=e[8].id)&&o(n,"id",l)},d(f){f&&b(n),a=!1,u()}}}function Fn(t){let e,n,i=!t[2]&&yt(t),s=t[2]&&kt(t);return{c(){i&&i.c(),e=$(),s&&s.c(),n=pe()},m(r,l){i&&i.m(r,l),x(r,e,l),s&&s.m(r,l),x(r,n,l)},p(r,[l]){r[2]?i&&(ke(),U(i,1,1,()=>{i=null}),ze()):i?(i.p(r,l),l&4&&I(i,1)):(i=yt(r),i.c(),I(i,1),i.m(e.parentNode,e)),r[2]?s?(s.p(r,l),l&4&&I(s,1)):(s=kt(r),s.c(),I(s,1),s.m(n.parentNode,n)):s&&(ke(),U(s,1,1,()=>{s=null}),ze())},i(r){I(i),I(s)},o(r){U(i),U(s)},d(r){r&&(b(e),b(n)),i&&i.d(r),s&&s.d(r)}}}function Bn(t,e,n){let{nomService:i}=e,{liens:s}=e;const r=yn();let l=[],a=!1;const u=()=>n(2,a=!0),c=()=>n(2,a=!1),f=(h,p)=>{h.preventDefault&&p.preventDefault(),r("lienclique",{target:p.currentTarget})};return t.$$set=h=>{"nomService"in h&&n(0,i=h.nomService),"liens"in h&&n(4,s=h.liens)},t.$$.update=()=>{if(t.$$.dirty&18&&(n(1,l=JSON.parse(s)),!Array.isArray(l)||l.some(h=>!h.texte)))throw new Error("Les liens doivent respecter le type : { texte: string; href?: string; preventDefault?: boolean; id?: string }[]")},[i,l,a,r,s,u,c,f]}class Ct extends Q{constructor(e){super(),Y(this,e,Bn,Fn,J,{nomService:0,liens:4},Pn)}get nomService(){return this.$$.ctx[0]}set nomService(e){this.$$set({nomService:e}),N()}get liens(){return this.$$.ctx[4]}set liens(e){this.$$set({liens:e}),N()}}customElements.define("lab-anssi-centre-aide",K(Ct,{nomService:{},liens:{}},[],[],!0));function Dn(t){G(t,"svelte-16zsyam","@media(min-width: 576px){}@media(min-width: 576px){}@media(min-width: 932px){}@media(min-width: 932px){}a.svelte-16zsyam{display:inline-flex;color:#000091;border:none;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}")}function In(t){let e,n,i,s,r,l,a,u,c,f,h,p,g,m,w,y,_,k,C,P,F,S,z,L,M,A,D,H,j,B,se,de,we,fe,Qe,Te,Xe,Oe,Ze,Pe,et,Fe,tt,Be,nt,De,it,Ie,st,He,lt,Re;return{c(){e=v("p"),n=O(t[0]),i=O(` est hébergé chez
|