Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@20minutes/hela

Package Overview
Dependencies
Maintainers
2
Versions
327
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@20minutes/hela - npm Package Compare versions

Comparing version 0.1.137 to 0.1.138

180

dist/js/scripts.es.js
var S = /* @__PURE__ */ ((e) => (e.MOBILE = "mobile", e.DESKTOP = "desktop", e))(S || {});
const A = (e) => {
const w = (e) => {
e.stopImmediatePropagation(), e.preventDefault();

@@ -8,3 +8,3 @@ const t = e.currentTarget, s = t.parentElement, o = s == null ? void 0 : s.querySelector(

t.getAttribute("aria-expanded") === "true" ? (t.setAttribute("aria-expanded", "false"), o == null || o.setAttribute("aria-hidden", "true")) : (t.setAttribute("aria-expanded", "true"), o == null || o.setAttribute("aria-hidden", "false"));
}, q = (e = document.querySelector(
}, A = (e = document.querySelector(
".js-collapse__button"

@@ -14,10 +14,10 @@ )) => {

s.addEventListener("click", (o) => {
A(o);
w(o);
});
});
}, T = (e) => {
}, q = (e) => {
var s;
const t = e.querySelector(".js-expandButton__label");
e.setAttribute("aria-expanded", "true"), t.innerHTML = "Voir moins", (s = e.previousElementSibling) == null || s.setAttribute("aria-hidden", "false");
}, k = (e) => {
}, T = (e) => {
var s;

@@ -28,4 +28,4 @@ const t = e.querySelector(".js-expandButton__label");

const t = e.currentTarget;
return e.preventDefault(), t.getAttribute("aria-expanded") === "true" ? k(t) : T(t);
}, j = (e = document.querySelector(
return e.preventDefault(), t.getAttribute("aria-expanded") === "true" ? T(t) : q(t);
}, k = (e = document.querySelector(
".js-expandButton"

@@ -37,3 +37,3 @@ )) => {

t == null || t.setAttribute("aria-expanded", "true"), s == null || s.setAttribute("aria-hidden", "false");
}, W = () => {
}, j = () => {
const e = document.querySelector(".js-live-form");

@@ -47,3 +47,3 @@ if (e) {

};
var I = [
var W = [
'a[href]:not([tabindex^="-"])',

@@ -61,3 +61,3 @@ 'area[href]:not([tabindex^="-"])',

'[tabindex]:not([tabindex^="-"])'
], O = "Tab", D = "Escape";
], D = "Tab", I = "Escape";
function u(e) {

@@ -67,3 +67,3 @@ this._show = this.show.bind(this), this._hide = this.hide.bind(this), this._maintainFocus = this._maintainFocus.bind(this), this._bindKeypress = this._bindKeypress.bind(this), this.$el = e, this.shown = !1, this._id = this.$el.getAttribute("data-a11y-dialog") || this.$el.id, this._previouslyFocused = null, this._listeners = {}, this.create();

u.prototype.create = function() {
this.$el.setAttribute("aria-hidden", !0), this.$el.setAttribute("aria-modal", !0), this.$el.setAttribute("tabindex", -1), this.$el.hasAttribute("role") || this.$el.setAttribute("role", "dialog"), this._openers = p('[data-a11y-dialog-show="' + this._id + '"]'), this._openers.forEach(
this.$el.setAttribute("aria-hidden", !0), this.$el.setAttribute("aria-modal", !0), this.$el.setAttribute("tabindex", -1), this.$el.hasAttribute("role") || this.$el.setAttribute("role", "dialog"), this._openers = m('[data-a11y-dialog-show="' + this._id + '"]'), this._openers.forEach(
(function(t) {

@@ -74,5 +74,5 @@ t.addEventListener("click", this._show);

const e = this.$el;
return this._closers = p("[data-a11y-dialog-hide]", this.$el).filter(function(t) {
return this._closers = m("[data-a11y-dialog-hide]", this.$el).filter(function(t) {
return t.closest('[aria-modal="true"], [data-a11y-dialog]') === e;
}).concat(p('[data-a11y-dialog-hide="' + this._id + '"]')), this._closers.forEach(
}).concat(m('[data-a11y-dialog-hide="' + this._id + '"]')), this._closers.forEach(
(function(t) {

@@ -117,3 +117,3 @@ t.addEventListener("click", this._hide);

const t = document.activeElement;
t && t.closest('[aria-modal="true"]') !== this.$el || (this.shown && e.key === D && this.$el.getAttribute("role") !== "alertdialog" && (e.preventDefault(), this.hide(e)), this.shown && e.key === O && C(this.$el, e));
t && t.closest('[aria-modal="true"]') !== this.$el || (this.shown && e.key === I && this.$el.getAttribute("role") !== "alertdialog" && (e.preventDefault(), this.hide(e)), this.shown && e.key === D && M(this.$el, e));
};

@@ -123,7 +123,7 @@ u.prototype._maintainFocus = function(e) {

};
function F(e) {
function O(e) {
return Array.prototype.slice.call(e);
}
function p(e, t) {
return F((t || document).querySelectorAll(e));
function m(e, t) {
return O((t || document).querySelectorAll(e));
}

@@ -134,13 +134,13 @@ function L(e) {

}
function H(e) {
return p(I.join(","), e).filter(function(t) {
function F(e) {
return m(W.join(","), e).filter(function(t) {
return !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length);
});
}
function C(e, t) {
var s = H(e), o = s.indexOf(document.activeElement);
function M(e, t) {
var s = F(e), o = s.indexOf(document.activeElement);
t.shiftKey && o === 0 ? (s[s.length - 1].focus(), t.preventDefault()) : !t.shiftKey && o === s.length - 1 && (s[0].focus(), t.preventDefault());
}
function y() {
p("[data-a11y-dialog]").forEach(function(e) {
m("[data-a11y-dialog]").forEach(function(e) {
new u(e);

@@ -150,8 +150,8 @@ });

typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", y) : window.requestAnimationFrame ? window.requestAnimationFrame(y) : window.setTimeout(y, 16));
const M = (e = document.querySelector(".js-modal")) => {
const H = (e = document.querySelector(".js-modal")) => {
e && new u(e);
}, R = ({ navigatedList: e, nextBtn: t, prevBtn: s }) => {
}, C = ({ navigatedList: e, nextBtn: t, prevBtn: s }) => {
const o = e.scrollLeft > 0, n = e.scrollLeft + e.clientWidth < e.scrollWidth;
o && n ? (t.classList.add("o-nav-button--visible"), s.classList.add("o-nav-button--visible")) : o ? (t.classList.remove("o-nav-button--visible"), s.classList.add("o-nav-button--visible")) : n ? (t.classList.add("o-nav-button--visible"), s.classList.remove("o-nav-button--visible")) : (t.classList.remove("o-nav-button--visible"), s.classList.remove("o-nav-button--visible"));
}, K = ({
}, R = ({
navigatedList: e,

@@ -163,13 +163,13 @@ nextBtn: t,

if (e) {
const n = e.closest(".js-overview-bar-container"), c = n == null ? void 0 : n.querySelector(".c-stepper"), l = c == null ? void 0 : c.querySelectorAll(".c-stepper__item");
if (l) {
const i = Array.from(l).findIndex(
const n = e.closest(".js-overview-bar-container"), l = n == null ? void 0 : n.querySelector(".c-stepper"), c = l == null ? void 0 : l.querySelectorAll(".c-stepper__item");
if (c) {
const i = Array.from(c).findIndex(
(r) => r.classList.contains("c-stepper__item--loading")
);
if (i < 0)
l[0].classList.add("c-stepper__item--loading");
c[0].classList.add("c-stepper__item--loading");
else {
l[i].classList.remove("c-stepper__item--loading"), l[i].classList.add("c-stepper__item--loaded");
const r = l[i].querySelector(".c-stepper__loader");
r && r instanceof HTMLElement && (r.style.transition = "width 0s linear"), i + 1 < l.length && l[i + 1].classList.add("c-stepper__item--loading");
c[i].classList.remove("c-stepper__item--loading"), c[i].classList.add("c-stepper__item--loaded");
const r = c[i].querySelector(".c-stepper__loader");
r && r instanceof HTMLElement && (r.style.transition = "width 0s linear"), i + 1 < c.length && c[i + 1].classList.add("c-stepper__item--loading");
}

@@ -205,3 +205,3 @@ }

}
}, P = ({
}, K = ({
navigatedList: e,

@@ -214,3 +214,3 @@ nextBtn: t,

if (e) {
const c = e.closest(".js-overview-bar-container"), l = c == null ? void 0 : c.querySelector(".c-stepper"), i = l == null ? void 0 : l.querySelectorAll(".c-stepper__item");
const l = e.closest(".js-overview-bar-container"), c = l == null ? void 0 : l.querySelector(".c-stepper"), i = c == null ? void 0 : c.querySelectorAll(".c-stepper__item");
if (i) {

@@ -251,4 +251,4 @@ const r = Array.from(i).findIndex(

}
}, B = ({ navigatedList: e, nextBtn: t, prevBtn: s }) => {
R({
}, P = ({ navigatedList: e, nextBtn: t, prevBtn: s }) => {
C({
navigatedList: e,

@@ -258,6 +258,6 @@ nextBtn: t,

});
}, V = () => {
}, B = () => {
const e = document.querySelectorAll(".js-navigation-container");
for (const t of Array.from(e)) {
const { sliderVariant: s } = t.dataset, { sliderAuto: o } = t.dataset, { sliderDelay: n } = t.dataset, c = n ? parseInt(n, 10) : 3e3, l = t.closest(".js-overview-bar-container"), i = l == null ? void 0 : l.querySelector(".c-stepper"), r = i == null ? void 0 : i.querySelectorAll(".c-stepper__item");
const { sliderVariant: s } = t.dataset, { sliderAuto: o } = t.dataset, { sliderDelay: n } = t.dataset, l = n ? parseInt(n, 10) : 3e3, c = t.closest(".js-overview-bar-container"), i = c == null ? void 0 : c.querySelector(".c-stepper"), r = i == null ? void 0 : i.querySelectorAll(".c-stepper__item");
if (t) {

@@ -273,3 +273,3 @@ const a = t.querySelector(

"click",
K.bind(!1, {
R.bind(!1, {
navigatedList: a,

@@ -282,3 +282,3 @@ nextBtn: d,

"click",
P.bind(!1, {
K.bind(!1, {
navigatedList: a,

@@ -288,14 +288,14 @@ nextBtn: d,

sliderVariant: s,
delay: c
delay: l
})
), o === "true" && d) {
const w = i ? i.querySelector(".c-stepper__item--loading") : null;
const E = i ? i.querySelector(".c-stepper__item--loading") : null;
r && (r.forEach((b) => {
const f = b.querySelector(".c-stepper__loader");
f && f instanceof HTMLElement && (f.style.transition = `width ${c / 1e3}s linear`);
}), w || r[0].classList.add("c-stepper__item--loading")), setInterval(() => {
f && f instanceof HTMLElement && (f.style.transition = `width ${l / 1e3}s linear`);
}), E || r[0].classList.add("c-stepper__item--loading")), setInterval(() => {
d.classList.contains("o-nav-button--visible") ? d.click() : a && h && (a.scrollLeft = 0, r && (r.forEach((b) => {
const f = b.querySelector(".c-stepper__loader");
f && f instanceof HTMLElement && (f.style.transition = "width 0s linear"), b.classList.remove("c-stepper__item--loading"), b.classList.remove("c-stepper__item--loaded"), setTimeout(() => {
f && f instanceof HTMLElement && (f.style.transition = `width ${c / 1e3}s linear`);
f && f instanceof HTMLElement && (f.style.transition = `width ${l / 1e3}s linear`);
}, 0);

@@ -305,7 +305,7 @@ }), setTimeout(() => {

}, 0)), h.click());
}, c);
}, l);
}
}
}
}, z = () => {
}, V = () => {
const e = document.querySelectorAll(".js-navigation-container");

@@ -319,3 +319,3 @@ for (const t of Array.from(e)) {

".o-nav-button--next-button"
), c = t.querySelector(
), l = t.querySelector(
".o-nav-button--previous-button"

@@ -325,6 +325,6 @@ );

"resize",
B.bind(!1, {
P.bind(!1, {
navigatedList: o,
nextBtn: n,
prevBtn: c,
prevBtn: l,
sliderVariant: s

@@ -335,3 +335,3 @@ })

}
}, N = () => {
}, z = () => {
const e = document.querySelectorAll(".js-header-link"), t = document.querySelector(".js-overlay");

@@ -352,3 +352,3 @@ if (t)

});
}, Y = () => {
}, N = () => {
const e = document.querySelector(".js-limit-scroll-progress-bar"), t = document.querySelector(".c-progress__bar"), { documentElement: s } = document;

@@ -362,16 +362,16 @@ if (!t)

e && (o = e.scrollHeight - s.clientHeight + (window.pageYOffset + e.getBoundingClientRect().top));
const c = Math.round(n / o * 100);
t.style.width = `${c}%`, c >= 100 && (t.style.width = "100%");
}, U = () => {
document.querySelector(".c-progress") && window.addEventListener("scroll", Y);
const l = Math.round(n / o * 100);
t.style.width = `${l}%`, l >= 100 && (t.style.width = "100%");
}, Y = () => {
document.querySelector(".c-progress") && window.addEventListener("scroll", N);
};
let m, _ = 0;
const G = () => {
m = null, document.body.getBoundingClientRect().top > _ + 2 && (m = "up"), document.body.getBoundingClientRect().top < _ - 2 && (m = "down"), _ = document.body.getBoundingClientRect().top;
let p, _ = 0;
const U = () => {
p = null, document.body.getBoundingClientRect().top > _ + 2 && (p = "up"), document.body.getBoundingClientRect().top < _ - 2 && (p = "down"), _ = document.body.getBoundingClientRect().top;
const e = document.querySelector(".c-read-also-banner");
if (e) {
const t = e.dataset.bannerLimitTop || "0";
m === "up" && -document.body.getBoundingClientRect().top >= parseInt(t, 10) && (e.classList.remove("c-read-also-banner__scrolldirection--down"), e.style.paddingTop = "0.75em", e.style.paddingBottom = "0.75em", e.style.borderWidth = "1px", e.classList.contains("c-read-also-banner__scrolldirection--up") || e.classList.add("c-read-also-banner__scrolldirection--up")), (m === "down" || -document.body.getBoundingClientRect().top <= parseInt(t, 10)) && (e.classList.remove("c-read-also-banner__scrolldirection--up"), e.style.paddingTop = "0", e.style.paddingBottom = "0", e.style.borderWidth = "0", e.classList.contains("c-read-also-banner__scrolldirection--down") || e.classList.add("c-read-also-banner__scrolldirection--down"));
p === "up" && -document.body.getBoundingClientRect().top >= parseInt(t, 10) && (e.classList.remove("c-read-also-banner__scrolldirection--down"), e.style.paddingTop = "0.75em", e.style.paddingBottom = "0.75em", e.style.borderWidth = "1px", e.classList.contains("c-read-also-banner__scrolldirection--up") || e.classList.add("c-read-also-banner__scrolldirection--up")), (p === "down" || -document.body.getBoundingClientRect().top <= parseInt(t, 10)) && (e.classList.remove("c-read-also-banner__scrolldirection--up"), e.style.paddingTop = "0", e.style.paddingBottom = "0", e.style.borderWidth = "0", e.classList.contains("c-read-also-banner__scrolldirection--down") || e.classList.add("c-read-also-banner__scrolldirection--down"));
}
}, J = (e = document.querySelector(
}, G = (e = document.querySelector(
".c-read-also-banner"

@@ -382,6 +382,6 @@ )) => {

window.addEventListener("scroll", () => {
clearTimeout(t), t = setTimeout(G, 100);
clearTimeout(t), t = setTimeout(U, 100);
});
}
}, Q = (e) => {
}, J = (e) => {
var o;

@@ -391,3 +391,3 @@ e.preventDefault();

t.setAttribute("aria-hidden", "true"), s == null || s.setAttribute("aria-hidden", "false");
}, X = (e = document.querySelector(
}, Q = (e = document.querySelector(
".js-search-toggle"

@@ -397,5 +397,5 @@ )) => {

const t = e.querySelector(".c-header__search-button");
t == null || t.addEventListener("click", Q);
t == null || t.addEventListener("click", J);
}
}, Z = () => {
}, X = () => {
if (typeof navigator.share == "function") {

@@ -412,7 +412,7 @@ const e = document.title, t = window.location.href;

}
}, ee = (e = document.querySelector(
}, Z = (e = document.querySelector(
".js-mobile-share-button"
)) => {
e && e.addEventListener("click", Z);
}, te = (e) => {
e && e.addEventListener("click", X);
}, ee = (e) => {
const { target: t } = e;

@@ -423,3 +423,3 @@ if (t instanceof Element) {

}
}, se = (e = document.querySelector(
}, te = (e = document.querySelector(
".c-search-form--button"

@@ -429,5 +429,5 @@ )) => {

"click",
(t) => te(t)
(t) => ee(t)
);
}, oe = ({
}, se = ({
tabsContainerElement: e,

@@ -437,4 +437,4 @@ event: t

t.preventDefault();
const s = t.target, o = e.querySelectorAll('[role="tab"]'), n = e.querySelectorAll('[role="tabpanel"]'), c = s.getAttribute("aria-controls"), l = Object.values(n).find(
(i) => i.id === c
const s = t.target, o = e.querySelectorAll('[role="tab"]'), n = e.querySelectorAll('[role="tabpanel"]'), l = s.getAttribute("aria-controls"), c = Object.values(n).find(
(i) => i.id === l
);

@@ -445,4 +445,4 @@ o.forEach((i) => {

i.setAttribute("aria-hidden", "true");
}), s.setAttribute("aria-selected", "true"), l && l.removeAttribute("aria-hidden");
}, v = (e) => e.code === "ArrowLeft" || e.keyCode === 39, g = (e) => e.code === "ArrowRight" || e.keyCode === 37, ie = (e = document.querySelector(".js-tabs")) => {
}), s.setAttribute("aria-selected", "true"), c && c.removeAttribute("aria-hidden");
}, v = (e) => e.code === "ArrowLeft" || e.keyCode === 39, g = (e) => e.code === "ArrowRight" || e.keyCode === 37, oe = (e = document.querySelector(".js-tabs")) => {
if (e) {

@@ -452,3 +452,3 @@ const t = e.querySelectorAll('[role="tab"]');

o.addEventListener("click", (n) => {
oe({ tabsContainerElement: e, event: n });
se({ tabsContainerElement: e, event: n });
});

@@ -464,27 +464,7 @@ });

}
}, E = ({
currentTheme: e,
switchDarkModeElement: t
}) => {
const s = e === "dark";
t.setAttribute("aria-checked", String(s));
const o = t.querySelector("span[aria-hidden]");
o && (o.setAttribute("aria-hidden", String(s)), o.innerHTML = s ? "on" : "off");
}, ne = (e = document.querySelector(
".js-switch-dark-mode"
)) => {
const t = localStorage.getItem("theme") || "light";
t && e && (document.documentElement.dataset.theme = t, E({ currentTheme: t, switchDarkModeElement: e }));
}, re = (e = document.querySelector(
".js-switch-dark-mode"
)) => {
e && e.addEventListener("click", () => {
const t = document.documentElement.dataset.theme, s = !t || t === "light" ? "dark" : "light";
document.documentElement.dataset.theme = s, localStorage.setItem("theme", s), E({ currentTheme: s, switchDarkModeElement: e });
});
}, ce = () => {
ne(), re(), j(), ie(), q(), U(), X(), ee(), M(), J(), W(), se(), V(), z(), window.layout === S.DESKTOP && N();
}, ie = () => {
k(), oe(), A(), Y(), Q(), Z(), H(), G(), j(), te(), B(), V(), window.layout === S.DESKTOP && z();
};
export {
ce as initScripts
ie as initScripts
};

@@ -1,1 +0,1 @@

(function(b,p){typeof exports=="object"&&typeof module<"u"?p(exports):typeof define=="function"&&define.amd?define(["exports"],p):(b=typeof globalThis<"u"?globalThis:b||self,p(b.scripts={}))})(this,function(b){"use strict";var p=(e=>(e.MOBILE="mobile",e.DESKTOP="desktop",e))(p||{});const A=e=>{e.stopImmediatePropagation(),e.preventDefault();const t=e.currentTarget,s=t.parentElement,o=s==null?void 0:s.querySelector(`#${t.getAttribute("aria-controls")}`);t.getAttribute("aria-expanded")==="true"?(t.setAttribute("aria-expanded","false"),o==null||o.setAttribute("aria-hidden","true")):(t.setAttribute("aria-expanded","true"),o==null||o.setAttribute("aria-hidden","false"))},q=(e=document.querySelector(".js-collapse__button"))=>{e&&document.querySelectorAll(".c-collapse__button").forEach(s=>{s.addEventListener("click",o=>{A(o)})})},T=e=>{var s;const t=e.querySelector(".js-expandButton__label");e.setAttribute("aria-expanded","true"),t.innerHTML="Voir moins",(s=e.previousElementSibling)==null||s.setAttribute("aria-hidden","false")},k=e=>{var s;const t=e.querySelector(".js-expandButton__label");e.setAttribute("aria-expanded","false"),t.innerHTML="Voir plus",(s=e.previousElementSibling)==null||s.setAttribute("aria-hidden","true")},x=e=>{const t=e.currentTarget;return e.preventDefault(),t.getAttribute("aria-expanded")==="true"?k(t):T(t)},j=(e=document.querySelector(".js-expandButton"))=>{e&&document.querySelectorAll(".js-expandButton").forEach(s=>s.addEventListener("click",x))},$=e=>{const t=e.querySelector(".js-live-form__textarea"),s=e.querySelector("#live-form-submit-section");t==null||t.setAttribute("aria-expanded","true"),s==null||s.setAttribute("aria-hidden","false")},W=()=>{const e=document.querySelector(".js-live-form");if(e){const t=e.querySelector(".js-live-form__textarea textarea");t==null||t.addEventListener("focus",$.bind(!1,e))}};var O=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'],I="Tab",D="Escape";function d(e){this._show=this.show.bind(this),this._hide=this.hide.bind(this),this._maintainFocus=this._maintainFocus.bind(this),this._bindKeypress=this._bindKeypress.bind(this),this.$el=e,this.shown=!1,this._id=this.$el.getAttribute("data-a11y-dialog")||this.$el.id,this._previouslyFocused=null,this._listeners={},this.create()}d.prototype.create=function(){this.$el.setAttribute("aria-hidden",!0),this.$el.setAttribute("aria-modal",!0),this.$el.setAttribute("tabindex",-1),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),this._openers=m('[data-a11y-dialog-show="'+this._id+'"]'),this._openers.forEach((function(t){t.addEventListener("click",this._show)}).bind(this));const e=this.$el;return this._closers=m("[data-a11y-dialog-hide]",this.$el).filter(function(t){return t.closest('[aria-modal="true"], [data-a11y-dialog]')===e}).concat(m('[data-a11y-dialog-hide="'+this._id+'"]')),this._closers.forEach((function(t){t.addEventListener("click",this._hide)}).bind(this)),this._fire("create"),this},d.prototype.show=function(e){return this.shown?this:(this._previouslyFocused=document.activeElement,this.$el.removeAttribute("aria-hidden"),this.shown=!0,S(this.$el),document.body.addEventListener("focus",this._maintainFocus,!0),document.addEventListener("keydown",this._bindKeypress),this._fire("show",e),this)},d.prototype.hide=function(e){return this.shown?(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this._previouslyFocused&&this._previouslyFocused.focus&&this._previouslyFocused.focus(),document.body.removeEventListener("focus",this._maintainFocus,!0),document.removeEventListener("keydown",this._bindKeypress),this._fire("hide",e),this):this},d.prototype.destroy=function(){return this.hide(),this._openers.forEach((function(e){e.removeEventListener("click",this._show)}).bind(this)),this._closers.forEach((function(e){e.removeEventListener("click",this._hide)}).bind(this)),this._fire("destroy"),this._listeners={},this},d.prototype.on=function(e,t){return typeof this._listeners[e]>"u"&&(this._listeners[e]=[]),this._listeners[e].push(t),this},d.prototype.off=function(e,t){var s=(this._listeners[e]||[]).indexOf(t);return s>-1&&this._listeners[e].splice(s,1),this},d.prototype._fire=function(e,t){var s=this._listeners[e]||[],o=new CustomEvent(e,{detail:t});this.$el.dispatchEvent(o),s.forEach((function(n){n(this.$el,t)}).bind(this))},d.prototype._bindKeypress=function(e){const t=document.activeElement;t&&t.closest('[aria-modal="true"]')!==this.$el||(this.shown&&e.key===D&&this.$el.getAttribute("role")!=="alertdialog"&&(e.preventDefault(),this.hide(e)),this.shown&&e.key===I&&M(this.$el,e))},d.prototype._maintainFocus=function(e){this.shown&&!e.target.closest('[aria-modal="true"]')&&!e.target.closest("[data-a11y-dialog-ignore-focus-trap]")&&S(this.$el)};function F(e){return Array.prototype.slice.call(e)}function m(e,t){return F((t||document).querySelectorAll(e))}function S(e){var t=e.querySelector("[autofocus]")||e;t.focus()}function H(e){return m(O.join(","),e).filter(function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)})}function M(e,t){var s=H(e),o=s.indexOf(document.activeElement);t.shiftKey&&o===0?(s[s.length-1].focus(),t.preventDefault()):!t.shiftKey&&o===s.length-1&&(s[0].focus(),t.preventDefault())}function v(){m("[data-a11y-dialog]").forEach(function(e){new d(e)})}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16));const C=(e=document.querySelector(".js-modal"))=>{e&&new d(e)},R=({navigatedList:e,nextBtn:t,prevBtn:s})=>{const o=e.scrollLeft>0,n=e.scrollLeft+e.clientWidth<e.scrollWidth;o&&n?(t.classList.add("o-nav-button--visible"),s.classList.add("o-nav-button--visible")):o?(t.classList.remove("o-nav-button--visible"),s.classList.add("o-nav-button--visible")):n?(t.classList.add("o-nav-button--visible"),s.classList.remove("o-nav-button--visible")):(t.classList.remove("o-nav-button--visible"),s.classList.remove("o-nav-button--visible"))},K=({navigatedList:e,nextBtn:t,prevBtn:s,sliderVariant:o})=>{if(e){const n=e.closest(".js-overview-bar-container"),c=n==null?void 0:n.querySelector(".c-stepper"),l=c==null?void 0:c.querySelectorAll(".c-stepper__item");if(l){const i=Array.from(l).findIndex(r=>r.classList.contains("c-stepper__item--loading"));if(i<0)l[0].classList.add("c-stepper__item--loading");else{l[i].classList.remove("c-stepper__item--loading"),l[i].classList.add("c-stepper__item--loaded");const r=l[i].querySelector(".c-stepper__loader");r&&r instanceof HTMLElement&&(r.style.transition="width 0s linear"),i+1<l.length&&l[i+1].classList.add("c-stepper__item--loading")}}if(e.scrollWidth-e.clientWidth>e.clientWidth){let i=e.scrollLeft;switch(o){case"partners":i+=e.clientWidth+32;break;case"rubrics":i+=e.clientWidth-36;break;case"overviewbar":i+=e.clientWidth-20;break;default:i+=Math.ceil(e.clientWidth*.6);break}e.scrollTo({left:i,behavior:"smooth"}),s.classList.add("o-nav-button--visible"),i+e.clientWidth>=e.scrollWidth&&t.classList.remove("o-nav-button--visible")}else{const i=e.scrollWidth-e.clientWidth;e.scrollTo({left:i,behavior:"smooth"}),t.classList.remove("o-nav-button--visible"),s.classList.add("o-nav-button--visible")}}},P=({navigatedList:e,nextBtn:t,prevBtn:s,sliderVariant:o,delay:n})=>{if(e){const c=e.closest(".js-overview-bar-container"),l=c==null?void 0:c.querySelector(".c-stepper"),i=l==null?void 0:l.querySelectorAll(".c-stepper__item");if(i){const r=Array.from(i).findIndex(a=>a.classList.contains("c-stepper__item--loading"));r<0?i[0].classList.add("c-stepper__item--loading"):(i[r].classList.remove("c-stepper__item--loading"),i[r].classList.remove("c-stepper__item--loaded"),r-1>0&&(i[r-1].classList.remove("c-stepper__item--loading"),i[r-1].classList.remove("c-stepper__item--loaded"),setTimeout(()=>{const a=i[r-1].querySelector(".c-stepper__loader");i[r-1].classList.add("c-stepper__item--loading"),a&&a instanceof HTMLElement&&(a.style.transition=`width ${n/1e3}s linear`)},0)))}if(e.clientWidth<e.scrollLeft){let r=e.scrollLeft;switch(o){case"partners":r-=e.clientWidth+32;break;case"rubrics":r-=e.clientWidth-36;break;case"overviewbar":r-=e.clientWidth-24;break;default:r-=Math.ceil(e.clientWidth*.6);break}e.scrollTo({left:r,behavior:"smooth"}),t.classList.add("o-nav-button--visible"),r===0&&s.classList.remove("o-nav-button--visible")}else e.scrollTo({left:0,behavior:"smooth"}),s.classList.remove("o-nav-button--visible"),e.clientWidth<e.scrollWidth&&t.classList.add("o-nav-button--visible")}},B=({navigatedList:e,nextBtn:t,prevBtn:s})=>{R({navigatedList:e,nextBtn:t,prevBtn:s})},V=()=>{const e=document.querySelectorAll(".js-navigation-container");for(const t of Array.from(e)){const{sliderVariant:s}=t.dataset,{sliderAuto:o}=t.dataset,{sliderDelay:n}=t.dataset,c=n?parseInt(n,10):3e3,l=t.closest(".js-overview-bar-container"),i=l==null?void 0:l.querySelector(".c-stepper"),r=i==null?void 0:i.querySelectorAll(".c-stepper__item");if(t){const a=t.querySelector(".js-navigation-container__list"),u=t.querySelector(".o-nav-button--next-button"),h=t.querySelector(".o-nav-button--previous-button");if(a&&a.clientWidth<a.scrollWidth&&(u==null||u.classList.add("o-nav-button--visible")),u==null||u.addEventListener("click",K.bind(!1,{navigatedList:a,nextBtn:u,prevBtn:h,sliderVariant:s})),h==null||h.addEventListener("click",P.bind(!1,{navigatedList:a,nextBtn:u,prevBtn:h,sliderVariant:s,delay:c})),o==="true"&&u){const le=i?i.querySelector(".c-stepper__item--loading"):null;r&&(r.forEach(_=>{const f=_.querySelector(".c-stepper__loader");f&&f instanceof HTMLElement&&(f.style.transition=`width ${c/1e3}s linear`)}),le||r[0].classList.add("c-stepper__item--loading")),setInterval(()=>{u.classList.contains("o-nav-button--visible")?u.click():a&&h&&(a.scrollLeft=0,r&&(r.forEach(_=>{const f=_.querySelector(".c-stepper__loader");f&&f instanceof HTMLElement&&(f.style.transition="width 0s linear"),_.classList.remove("c-stepper__item--loading"),_.classList.remove("c-stepper__item--loaded"),setTimeout(()=>{f&&f instanceof HTMLElement&&(f.style.transition=`width ${c/1e3}s linear`)},0)}),setTimeout(()=>{r[0].classList.add("c-stepper__item--loading")},0)),h.click())},c)}}}},z=()=>{const e=document.querySelectorAll(".js-navigation-container");for(const t of Array.from(e)){const{sliderVariant:s}=t.dataset;if(t){const o=t.querySelector(".js-navigation-container__list"),n=t.querySelector(".o-nav-button--next-button"),c=t.querySelector(".o-nav-button--previous-button");window.addEventListener("resize",B.bind(!1,{navigatedList:o,nextBtn:n,prevBtn:c,sliderVariant:s}))}}},N=()=>{const e=document.querySelectorAll(".js-header-link"),t=document.querySelector(".js-overlay");if(t)for(const s of e)s.addEventListener("mouseenter",()=>{const o=s.querySelector(".js-sub-menu");if(o){if(window.getComputedStyle(o).getPropertyValue("display")!=="none"){setTimeout(()=>t.classList.remove("u-hidden"),300);return}t.classList.add("u-hidden")}}),s.addEventListener("mouseleave",()=>{setTimeout(()=>t.classList.add("u-hidden"),300)})},Y=()=>{const e=document.querySelector(".js-limit-scroll-progress-bar"),t=document.querySelector(".c-progress__bar"),{documentElement:s}=document;if(!t)return;let o=s.scrollHeight-s.clientHeight;if(!o)return;const n=s.scrollTop;e&&(o=e.scrollHeight-s.clientHeight+(window.pageYOffset+e.getBoundingClientRect().top));const c=Math.round(n/o*100);t.style.width=`${c}%`,c>=100&&(t.style.width="100%")},U=()=>{document.querySelector(".c-progress")&&window.addEventListener("scroll",Y)};let y,g=0;const G=()=>{y=null,document.body.getBoundingClientRect().top>g+2&&(y="up"),document.body.getBoundingClientRect().top<g-2&&(y="down"),g=document.body.getBoundingClientRect().top;const e=document.querySelector(".c-read-also-banner");if(e){const t=e.dataset.bannerLimitTop||"0";y==="up"&&-document.body.getBoundingClientRect().top>=parseInt(t,10)&&(e.classList.remove("c-read-also-banner__scrolldirection--down"),e.style.paddingTop="0.75em",e.style.paddingBottom="0.75em",e.style.borderWidth="1px",e.classList.contains("c-read-also-banner__scrolldirection--up")||e.classList.add("c-read-also-banner__scrolldirection--up")),(y==="down"||-document.body.getBoundingClientRect().top<=parseInt(t,10))&&(e.classList.remove("c-read-also-banner__scrolldirection--up"),e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderWidth="0",e.classList.contains("c-read-also-banner__scrolldirection--down")||e.classList.add("c-read-also-banner__scrolldirection--down"))}},J=(e=document.querySelector(".c-read-also-banner"))=>{if(e){let t;window.addEventListener("scroll",()=>{clearTimeout(t),t=setTimeout(G,100)})}},Q=e=>{var o;e.preventDefault();const t=e.currentTarget,s=(o=t.closest(".js-search-toggle"))==null?void 0:o.querySelector(".c-search-form");t.setAttribute("aria-hidden","true"),s==null||s.setAttribute("aria-hidden","false")},X=(e=document.querySelector(".js-search-toggle"))=>{if(e){const t=e.querySelector(".c-header__search-button");t==null||t.addEventListener("click",Q)}},Z=()=>{if(typeof navigator.share=="function"){const e=document.title,t=window.location.href;navigator.share({title:e,url:t}).then(()=>{console.log("Contenu partagé avec succès")}).catch(s=>{console.log(s)})}},ee=(e=document.querySelector(".js-mobile-share-button"))=>{e&&e.addEventListener("click",Z)},te=e=>{const{target:t}=e;if(t instanceof Element){const s=t.closest(".c-search-form--button");s&&(e.preventDefault(),s.classList.remove("c-search-form--button"))}},se=(e=document.querySelector(".c-search-form--button"))=>{e&&e.addEventListener("click",t=>te(t))},oe=({tabsContainerElement:e,event:t})=>{t.preventDefault();const s=t.target,o=e.querySelectorAll('[role="tab"]'),n=e.querySelectorAll('[role="tabpanel"]'),c=s.getAttribute("aria-controls"),l=Object.values(n).find(i=>i.id===c);o.forEach(i=>{i.setAttribute("aria-selected","false")}),n.forEach(i=>{i.setAttribute("aria-hidden","true")}),s.setAttribute("aria-selected","true"),l&&l.removeAttribute("aria-hidden")},L=e=>e.code==="ArrowLeft"||e.keyCode===39,E=e=>e.code==="ArrowRight"||e.keyCode===37,ie=(e=document.querySelector(".js-tabs"))=>{if(e){const t=e.querySelectorAll('[role="tab"]');t.forEach(o=>{o.addEventListener("click",n=>{oe({tabsContainerElement:e,event:n})})});const s=e.querySelector('[role="tablist"]');if(s&&t.length>0){let o=0;s.addEventListener("keydown",n=>{n instanceof KeyboardEvent&&(L(n)||E(n))&&(t[o].setAttribute("tabindex","-1"),L(n)?(o+=1,o>=t.length&&(o=0)):E(n)&&(o-=1,o<0&&(o=t.length-1)),t[o].setAttribute("tabindex","0"),t[o].focus())})}}},w=({currentTheme:e,switchDarkModeElement:t})=>{const s=e==="dark";t.setAttribute("aria-checked",String(s));const o=t.querySelector("span[aria-hidden]");o&&(o.setAttribute("aria-hidden",String(s)),o.innerHTML=s?"on":"off")},ne=(e=document.querySelector(".js-switch-dark-mode"))=>{const t=localStorage.getItem("theme")||"light";t&&e&&(document.documentElement.dataset.theme=t,w({currentTheme:t,switchDarkModeElement:e}))},re=(e=document.querySelector(".js-switch-dark-mode"))=>{e&&e.addEventListener("click",()=>{const t=document.documentElement.dataset.theme,s=!t||t==="light"?"dark":"light";document.documentElement.dataset.theme=s,localStorage.setItem("theme",s),w({currentTheme:s,switchDarkModeElement:e})})},ce=()=>{ne(),re(),j(),ie(),q(),U(),X(),ee(),C(),J(),W(),se(),V(),z(),window.layout===p.DESKTOP&&N()};b.initScripts=ce,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
(function(b,p){typeof exports=="object"&&typeof module<"u"?p(exports):typeof define=="function"&&define.amd?define(["exports"],p):(b=typeof globalThis<"u"?globalThis:b||self,p(b.scripts={}))})(this,function(b){"use strict";var p=(e=>(e.MOBILE="mobile",e.DESKTOP="desktop",e))(p||{});const w=e=>{e.stopImmediatePropagation(),e.preventDefault();const t=e.currentTarget,s=t.parentElement,o=s==null?void 0:s.querySelector(`#${t.getAttribute("aria-controls")}`);t.getAttribute("aria-expanded")==="true"?(t.setAttribute("aria-expanded","false"),o==null||o.setAttribute("aria-hidden","true")):(t.setAttribute("aria-expanded","true"),o==null||o.setAttribute("aria-hidden","false"))},A=(e=document.querySelector(".js-collapse__button"))=>{e&&document.querySelectorAll(".c-collapse__button").forEach(s=>{s.addEventListener("click",o=>{w(o)})})},q=e=>{var s;const t=e.querySelector(".js-expandButton__label");e.setAttribute("aria-expanded","true"),t.innerHTML="Voir moins",(s=e.previousElementSibling)==null||s.setAttribute("aria-hidden","false")},T=e=>{var s;const t=e.querySelector(".js-expandButton__label");e.setAttribute("aria-expanded","false"),t.innerHTML="Voir plus",(s=e.previousElementSibling)==null||s.setAttribute("aria-hidden","true")},x=e=>{const t=e.currentTarget;return e.preventDefault(),t.getAttribute("aria-expanded")==="true"?T(t):q(t)},k=(e=document.querySelector(".js-expandButton"))=>{e&&document.querySelectorAll(".js-expandButton").forEach(s=>s.addEventListener("click",x))},j=e=>{const t=e.querySelector(".js-live-form__textarea"),s=e.querySelector("#live-form-submit-section");t==null||t.setAttribute("aria-expanded","true"),s==null||s.setAttribute("aria-hidden","false")},$=()=>{const e=document.querySelector(".js-live-form");if(e){const t=e.querySelector(".js-live-form__textarea textarea");t==null||t.addEventListener("focus",j.bind(!1,e))}};var W=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'],D="Tab",O="Escape";function d(e){this._show=this.show.bind(this),this._hide=this.hide.bind(this),this._maintainFocus=this._maintainFocus.bind(this),this._bindKeypress=this._bindKeypress.bind(this),this.$el=e,this.shown=!1,this._id=this.$el.getAttribute("data-a11y-dialog")||this.$el.id,this._previouslyFocused=null,this._listeners={},this.create()}d.prototype.create=function(){this.$el.setAttribute("aria-hidden",!0),this.$el.setAttribute("aria-modal",!0),this.$el.setAttribute("tabindex",-1),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),this._openers=m('[data-a11y-dialog-show="'+this._id+'"]'),this._openers.forEach((function(t){t.addEventListener("click",this._show)}).bind(this));const e=this.$el;return this._closers=m("[data-a11y-dialog-hide]",this.$el).filter(function(t){return t.closest('[aria-modal="true"], [data-a11y-dialog]')===e}).concat(m('[data-a11y-dialog-hide="'+this._id+'"]')),this._closers.forEach((function(t){t.addEventListener("click",this._hide)}).bind(this)),this._fire("create"),this},d.prototype.show=function(e){return this.shown?this:(this._previouslyFocused=document.activeElement,this.$el.removeAttribute("aria-hidden"),this.shown=!0,S(this.$el),document.body.addEventListener("focus",this._maintainFocus,!0),document.addEventListener("keydown",this._bindKeypress),this._fire("show",e),this)},d.prototype.hide=function(e){return this.shown?(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this._previouslyFocused&&this._previouslyFocused.focus&&this._previouslyFocused.focus(),document.body.removeEventListener("focus",this._maintainFocus,!0),document.removeEventListener("keydown",this._bindKeypress),this._fire("hide",e),this):this},d.prototype.destroy=function(){return this.hide(),this._openers.forEach((function(e){e.removeEventListener("click",this._show)}).bind(this)),this._closers.forEach((function(e){e.removeEventListener("click",this._hide)}).bind(this)),this._fire("destroy"),this._listeners={},this},d.prototype.on=function(e,t){return typeof this._listeners[e]>"u"&&(this._listeners[e]=[]),this._listeners[e].push(t),this},d.prototype.off=function(e,t){var s=(this._listeners[e]||[]).indexOf(t);return s>-1&&this._listeners[e].splice(s,1),this},d.prototype._fire=function(e,t){var s=this._listeners[e]||[],o=new CustomEvent(e,{detail:t});this.$el.dispatchEvent(o),s.forEach((function(n){n(this.$el,t)}).bind(this))},d.prototype._bindKeypress=function(e){const t=document.activeElement;t&&t.closest('[aria-modal="true"]')!==this.$el||(this.shown&&e.key===O&&this.$el.getAttribute("role")!=="alertdialog"&&(e.preventDefault(),this.hide(e)),this.shown&&e.key===D&&M(this.$el,e))},d.prototype._maintainFocus=function(e){this.shown&&!e.target.closest('[aria-modal="true"]')&&!e.target.closest("[data-a11y-dialog-ignore-focus-trap]")&&S(this.$el)};function I(e){return Array.prototype.slice.call(e)}function m(e,t){return I((t||document).querySelectorAll(e))}function S(e){var t=e.querySelector("[autofocus]")||e;t.focus()}function F(e){return m(W.join(","),e).filter(function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)})}function M(e,t){var s=F(e),o=s.indexOf(document.activeElement);t.shiftKey&&o===0?(s[s.length-1].focus(),t.preventDefault()):!t.shiftKey&&o===s.length-1&&(s[0].focus(),t.preventDefault())}function v(){m("[data-a11y-dialog]").forEach(function(e){new d(e)})}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16));const H=(e=document.querySelector(".js-modal"))=>{e&&new d(e)},C=({navigatedList:e,nextBtn:t,prevBtn:s})=>{const o=e.scrollLeft>0,n=e.scrollLeft+e.clientWidth<e.scrollWidth;o&&n?(t.classList.add("o-nav-button--visible"),s.classList.add("o-nav-button--visible")):o?(t.classList.remove("o-nav-button--visible"),s.classList.add("o-nav-button--visible")):n?(t.classList.add("o-nav-button--visible"),s.classList.remove("o-nav-button--visible")):(t.classList.remove("o-nav-button--visible"),s.classList.remove("o-nav-button--visible"))},R=({navigatedList:e,nextBtn:t,prevBtn:s,sliderVariant:o})=>{if(e){const n=e.closest(".js-overview-bar-container"),l=n==null?void 0:n.querySelector(".c-stepper"),c=l==null?void 0:l.querySelectorAll(".c-stepper__item");if(c){const i=Array.from(c).findIndex(r=>r.classList.contains("c-stepper__item--loading"));if(i<0)c[0].classList.add("c-stepper__item--loading");else{c[i].classList.remove("c-stepper__item--loading"),c[i].classList.add("c-stepper__item--loaded");const r=c[i].querySelector(".c-stepper__loader");r&&r instanceof HTMLElement&&(r.style.transition="width 0s linear"),i+1<c.length&&c[i+1].classList.add("c-stepper__item--loading")}}if(e.scrollWidth-e.clientWidth>e.clientWidth){let i=e.scrollLeft;switch(o){case"partners":i+=e.clientWidth+32;break;case"rubrics":i+=e.clientWidth-36;break;case"overviewbar":i+=e.clientWidth-20;break;default:i+=Math.ceil(e.clientWidth*.6);break}e.scrollTo({left:i,behavior:"smooth"}),s.classList.add("o-nav-button--visible"),i+e.clientWidth>=e.scrollWidth&&t.classList.remove("o-nav-button--visible")}else{const i=e.scrollWidth-e.clientWidth;e.scrollTo({left:i,behavior:"smooth"}),t.classList.remove("o-nav-button--visible"),s.classList.add("o-nav-button--visible")}}},K=({navigatedList:e,nextBtn:t,prevBtn:s,sliderVariant:o,delay:n})=>{if(e){const l=e.closest(".js-overview-bar-container"),c=l==null?void 0:l.querySelector(".c-stepper"),i=c==null?void 0:c.querySelectorAll(".c-stepper__item");if(i){const r=Array.from(i).findIndex(a=>a.classList.contains("c-stepper__item--loading"));r<0?i[0].classList.add("c-stepper__item--loading"):(i[r].classList.remove("c-stepper__item--loading"),i[r].classList.remove("c-stepper__item--loaded"),r-1>0&&(i[r-1].classList.remove("c-stepper__item--loading"),i[r-1].classList.remove("c-stepper__item--loaded"),setTimeout(()=>{const a=i[r-1].querySelector(".c-stepper__loader");i[r-1].classList.add("c-stepper__item--loading"),a&&a instanceof HTMLElement&&(a.style.transition=`width ${n/1e3}s linear`)},0)))}if(e.clientWidth<e.scrollLeft){let r=e.scrollLeft;switch(o){case"partners":r-=e.clientWidth+32;break;case"rubrics":r-=e.clientWidth-36;break;case"overviewbar":r-=e.clientWidth-24;break;default:r-=Math.ceil(e.clientWidth*.6);break}e.scrollTo({left:r,behavior:"smooth"}),t.classList.add("o-nav-button--visible"),r===0&&s.classList.remove("o-nav-button--visible")}else e.scrollTo({left:0,behavior:"smooth"}),s.classList.remove("o-nav-button--visible"),e.clientWidth<e.scrollWidth&&t.classList.add("o-nav-button--visible")}},P=({navigatedList:e,nextBtn:t,prevBtn:s})=>{C({navigatedList:e,nextBtn:t,prevBtn:s})},B=()=>{const e=document.querySelectorAll(".js-navigation-container");for(const t of Array.from(e)){const{sliderVariant:s}=t.dataset,{sliderAuto:o}=t.dataset,{sliderDelay:n}=t.dataset,l=n?parseInt(n,10):3e3,c=t.closest(".js-overview-bar-container"),i=c==null?void 0:c.querySelector(".c-stepper"),r=i==null?void 0:i.querySelectorAll(".c-stepper__item");if(t){const a=t.querySelector(".js-navigation-container__list"),u=t.querySelector(".o-nav-button--next-button"),h=t.querySelector(".o-nav-button--previous-button");if(a&&a.clientWidth<a.scrollWidth&&(u==null||u.classList.add("o-nav-button--visible")),u==null||u.addEventListener("click",R.bind(!1,{navigatedList:a,nextBtn:u,prevBtn:h,sliderVariant:s})),h==null||h.addEventListener("click",K.bind(!1,{navigatedList:a,nextBtn:u,prevBtn:h,sliderVariant:s,delay:l})),o==="true"&&u){const ne=i?i.querySelector(".c-stepper__item--loading"):null;r&&(r.forEach(_=>{const f=_.querySelector(".c-stepper__loader");f&&f instanceof HTMLElement&&(f.style.transition=`width ${l/1e3}s linear`)}),ne||r[0].classList.add("c-stepper__item--loading")),setInterval(()=>{u.classList.contains("o-nav-button--visible")?u.click():a&&h&&(a.scrollLeft=0,r&&(r.forEach(_=>{const f=_.querySelector(".c-stepper__loader");f&&f instanceof HTMLElement&&(f.style.transition="width 0s linear"),_.classList.remove("c-stepper__item--loading"),_.classList.remove("c-stepper__item--loaded"),setTimeout(()=>{f&&f instanceof HTMLElement&&(f.style.transition=`width ${l/1e3}s linear`)},0)}),setTimeout(()=>{r[0].classList.add("c-stepper__item--loading")},0)),h.click())},l)}}}},V=()=>{const e=document.querySelectorAll(".js-navigation-container");for(const t of Array.from(e)){const{sliderVariant:s}=t.dataset;if(t){const o=t.querySelector(".js-navigation-container__list"),n=t.querySelector(".o-nav-button--next-button"),l=t.querySelector(".o-nav-button--previous-button");window.addEventListener("resize",P.bind(!1,{navigatedList:o,nextBtn:n,prevBtn:l,sliderVariant:s}))}}},z=()=>{const e=document.querySelectorAll(".js-header-link"),t=document.querySelector(".js-overlay");if(t)for(const s of e)s.addEventListener("mouseenter",()=>{const o=s.querySelector(".js-sub-menu");if(o){if(window.getComputedStyle(o).getPropertyValue("display")!=="none"){setTimeout(()=>t.classList.remove("u-hidden"),300);return}t.classList.add("u-hidden")}}),s.addEventListener("mouseleave",()=>{setTimeout(()=>t.classList.add("u-hidden"),300)})},N=()=>{const e=document.querySelector(".js-limit-scroll-progress-bar"),t=document.querySelector(".c-progress__bar"),{documentElement:s}=document;if(!t)return;let o=s.scrollHeight-s.clientHeight;if(!o)return;const n=s.scrollTop;e&&(o=e.scrollHeight-s.clientHeight+(window.pageYOffset+e.getBoundingClientRect().top));const l=Math.round(n/o*100);t.style.width=`${l}%`,l>=100&&(t.style.width="100%")},Y=()=>{document.querySelector(".c-progress")&&window.addEventListener("scroll",N)};let y,g=0;const U=()=>{y=null,document.body.getBoundingClientRect().top>g+2&&(y="up"),document.body.getBoundingClientRect().top<g-2&&(y="down"),g=document.body.getBoundingClientRect().top;const e=document.querySelector(".c-read-also-banner");if(e){const t=e.dataset.bannerLimitTop||"0";y==="up"&&-document.body.getBoundingClientRect().top>=parseInt(t,10)&&(e.classList.remove("c-read-also-banner__scrolldirection--down"),e.style.paddingTop="0.75em",e.style.paddingBottom="0.75em",e.style.borderWidth="1px",e.classList.contains("c-read-also-banner__scrolldirection--up")||e.classList.add("c-read-also-banner__scrolldirection--up")),(y==="down"||-document.body.getBoundingClientRect().top<=parseInt(t,10))&&(e.classList.remove("c-read-also-banner__scrolldirection--up"),e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderWidth="0",e.classList.contains("c-read-also-banner__scrolldirection--down")||e.classList.add("c-read-also-banner__scrolldirection--down"))}},G=(e=document.querySelector(".c-read-also-banner"))=>{if(e){let t;window.addEventListener("scroll",()=>{clearTimeout(t),t=setTimeout(U,100)})}},J=e=>{var o;e.preventDefault();const t=e.currentTarget,s=(o=t.closest(".js-search-toggle"))==null?void 0:o.querySelector(".c-search-form");t.setAttribute("aria-hidden","true"),s==null||s.setAttribute("aria-hidden","false")},Q=(e=document.querySelector(".js-search-toggle"))=>{if(e){const t=e.querySelector(".c-header__search-button");t==null||t.addEventListener("click",J)}},X=()=>{if(typeof navigator.share=="function"){const e=document.title,t=window.location.href;navigator.share({title:e,url:t}).then(()=>{console.log("Contenu partagé avec succès")}).catch(s=>{console.log(s)})}},Z=(e=document.querySelector(".js-mobile-share-button"))=>{e&&e.addEventListener("click",X)},ee=e=>{const{target:t}=e;if(t instanceof Element){const s=t.closest(".c-search-form--button");s&&(e.preventDefault(),s.classList.remove("c-search-form--button"))}},te=(e=document.querySelector(".c-search-form--button"))=>{e&&e.addEventListener("click",t=>ee(t))},se=({tabsContainerElement:e,event:t})=>{t.preventDefault();const s=t.target,o=e.querySelectorAll('[role="tab"]'),n=e.querySelectorAll('[role="tabpanel"]'),l=s.getAttribute("aria-controls"),c=Object.values(n).find(i=>i.id===l);o.forEach(i=>{i.setAttribute("aria-selected","false")}),n.forEach(i=>{i.setAttribute("aria-hidden","true")}),s.setAttribute("aria-selected","true"),c&&c.removeAttribute("aria-hidden")},L=e=>e.code==="ArrowLeft"||e.keyCode===39,E=e=>e.code==="ArrowRight"||e.keyCode===37,oe=(e=document.querySelector(".js-tabs"))=>{if(e){const t=e.querySelectorAll('[role="tab"]');t.forEach(o=>{o.addEventListener("click",n=>{se({tabsContainerElement:e,event:n})})});const s=e.querySelector('[role="tablist"]');if(s&&t.length>0){let o=0;s.addEventListener("keydown",n=>{n instanceof KeyboardEvent&&(L(n)||E(n))&&(t[o].setAttribute("tabindex","-1"),L(n)?(o+=1,o>=t.length&&(o=0)):E(n)&&(o-=1,o<0&&(o=t.length-1)),t[o].setAttribute("tabindex","0"),t[o].focus())})}}},ie=()=>{k(),oe(),A(),Y(),Q(),Z(),H(),G(),$(),te(),B(),V(),window.layout===p.DESKTOP&&z()};b.initScripts=ie,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});

@@ -32,3 +32,2 @@ export * from './Ad';

export * from './Switch';
export * from './SwitchDarkMode';
export * from './Tab';

@@ -35,0 +34,0 @@ export * from './TabPanel';

@@ -1,8 +0,2 @@

import { type ReactNode } from 'react';
import type { AsProps } from '../../../types';
export interface SwitchOptions {
label?: string | ReactNode;
isChecked?: boolean;
}
export type SwitchProps = SwitchOptions & AsProps<'button'>;
export declare const Switch: import('../../../types').ComponentWithAs<"button", SwitchProps>;
import React from 'react';
export declare const Switch: React.FC<React.InputHTMLAttributes<HTMLInputElement>>;
import React from 'react';
declare const _default: {
title: string;
component: import("../../..").ComponentWithAs<"button", import('../../../components').SwitchProps>;
args: {
isChecked: boolean;
};
component: React.FC<React.InputHTMLAttributes<HTMLInputElement>>;
};
export default _default;
export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../..").OmitCommonProps<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "form" | "slot" | "style" | "title" | "as" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "name" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "value" | keyof import('../../../components').SwitchOptions> & import('../../../components').SwitchOptions & Omit<import("../../..").PropsOf<"button">, "color" | "align" | "ref"> & {
as?: import("../../..").As<any> | undefined;
} & import("../../..").OmitCommonProps<any, "form" | "slot" | "style" | "title" | "as" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "name" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "value" | keyof import('../../../components').SwitchOptions> & {
as?: import("../../..").As<any> | undefined;
}>;
export declare const PrimaryIsChecked: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../..").OmitCommonProps<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "form" | "slot" | "style" | "title" | "as" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "name" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "value" | keyof import('../../../components').SwitchOptions> & import('../../../components').SwitchOptions & Omit<import("../../..").PropsOf<"button">, "color" | "align" | "ref"> & {
as?: import("../../..").As<any> | undefined;
} & import("../../..").OmitCommonProps<any, "form" | "slot" | "style" | "title" | "as" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "name" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "value" | keyof import('../../../components').SwitchOptions> & {
as?: import("../../..").As<any> | undefined;
}>;
export declare const PrimaryWithIcon: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../..").OmitCommonProps<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "form" | "slot" | "style" | "title" | "as" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "name" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "value" | keyof import('../../../components').SwitchOptions> & import('../../../components').SwitchOptions & Omit<import("../../..").PropsOf<"button">, "color" | "align" | "ref"> & {
as?: import("../../..").As<any> | undefined;
} & import("../../..").OmitCommonProps<any, "form" | "slot" | "style" | "title" | "as" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "name" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "value" | keyof import('../../../components').SwitchOptions> & {
as?: import("../../..").As<any> | undefined;
}>;
export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, React.InputHTMLAttributes<HTMLInputElement>>;

@@ -11,2 +11,3 @@ import React from 'react';

isExpandable: boolean;
variant: string;
};

@@ -13,0 +14,0 @@ argTypes: {

@@ -218,2 +218,5 @@ export declare const tokenVariables: {

};
'view-close': {
value: string;
};
view: {

@@ -220,0 +223,0 @@ value: string;

{
"name": "@20minutes/hela",
"version": "0.1.137",
"version": "0.1.138",
"repository": "git@github.com:20minutes/hela.git",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc