@20minutes/tyr 2.41.9 → 2.42.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/assets/thirdParties/cmp/firstPartyHandler.d.ts +1 -0
- package/dist/assets/thirdParties/cmp/items.d.ts +2 -0
- package/dist/css/tvmostrecentPage-desktop-critical.css +1 -1
- package/dist/css/tvmostrecentPage-desktop-no-critical.css +1 -1
- package/dist/helpers/cookie.d.ts +6 -0
- package/dist/index.es.js +5206 -5196
- package/dist/index.umd.js +57 -56
- package/dist/js/ads.min.js +1 -1
- package/dist/js/cmp.min.js +2 -2
- package/dist/js/edgee.min.js +1 -1
- package/dist/js/main.min.js +5 -5
- package/dist/js/piano.min.js +1 -1
- package/dist/types/EnvVariablesType.d.ts +2 -0
- package/dist/types/ThirdParties/Cmp/Didomi.d.ts +3 -2
- package/package.json +2 -1
package/dist/js/ads.min.js
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var d=(n||(n=1,o.exports=function(){if(a)return s;a=1;var e=u(),r=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)n.call(t,s)&&!i.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:r,type:e,key:c,ref:u,props:l,_owner:o.current}}return s.Fragment=t,s.jsx=l,s.jsxs=l,s}()),o.exports),p=e(u());function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var f,y={exports:{}};var g,h=(f||(f=1,g=y,function(){var e={}.hasOwnProperty;function r(){for(var e="",r=0;r<arguments.length;r++){var n=arguments[r];n&&(e=a(e,t(n)))}return e}function t(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return r.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var n="";for(var o in t)e.call(t,o)&&t[o]&&(n=a(n,o));return n}function a(e,r){return r?e?e+" "+r:e+r:e}g.exports?(r.default=r,g.exports=r):window.classNames=r}()),y.exports);const b=m(h),v={primary:{ultramarine:{value:"#4742FF",key:"{color.primary.ultramarine}"},"ultramarine-light":{value:"#6B72FB",key:"{color.primary.ultramarine-light}"}},secondary:{orange:{value:"#FA9917",key:"{color.secondary.orange}"},yellow:{value:"#F2E500",key:"{color.secondary.yellow}"},green:{value:"#6A9F4F",key:"{color.secondary.green}"},purple:{value:"#AE6BA2",key:"{color.secondary.purple}"},red:{value:"#DC0E19",key:"{color.secondary.red}"},scarlet:{value:"#FF3F3F",key:"{color.secondary.scarlet}"},blue:{value:"#0000FF",key:"{color.secondary.blue}"},"blue-grey":{value:"#253548",key:"{color.secondary.blue-grey}"},"blue-dark":{value:"#16202B",key:"{color.secondary.blue-dark}"},pink:{value:"#EF2A82",key:"{color.secondary.pink}"},sponsoring:{value:"#FFF5F1",key:"{color.secondary.sponsoring}"},"blue-light":{value:"#D4ECFB",key:"{color.secondary.blue-light}"},"blue-ice":{value:"#F0F4F8",key:"{color.secondary.blue-ice}"}},greyscale:{black:{value:"#000",key:"{color.greyscale.black}"},white:{value:"#FFF",key:"{color.greyscale.white}"},"grey-50":{value:"#FFFFFE",key:"{color.greyscale.grey-50}"},"grey-100":{value:"#F7F7F7",key:"{color.greyscale.grey-100}"},"grey-200":{value:"#DDD",key:"{color.greyscale.grey-200}"},"grey-300":{value:"#898A8C",key:"{color.greyscale.grey-300}"},"grey-400":{value:"#6A6A6A",key:"{color.greyscale.grey-400}"},"grey-500":{value:"#484848",key:"{color.greyscale.grey-500}"},"grey-600":{value:"#2F3134",key:"{color.greyscale.grey-600}"},"grey-700":{value:"#181A1E",key:"{color.greyscale.grey-700}"},"grey-800":{value:"#101D25",key:"{color.greyscale.grey-800}"},"grey-900":{value:"#0F1115",key:"{color.greyscale.grey-900}"}},status:{warning:{value:"#FA9917",key:"{color.status.warning}"},error:{value:"#DC0E19",key:"{color.status.error}"},success:{value:"#6A9F4F",key:"{color.status.success}"}},theme:{conso:{value:"#ff8689",key:"{color.theme.conso}"},default:{value:"#4742ff",key:"{color.theme.default}"},entertainment:{value:"#9d61ff",key:"{color.theme.entertainment}"},hightech:{value:"#8f98a9",key:"{color.theme.hightech}"},media:{value:"#4742ff",key:"{color.theme.media}"},"partenaires-externes":{value:"#4742ff",key:"{color.theme.partenaires-externes}"},partner:{value:"#fd8000",key:"{color.theme.partner}"},planet:{value:"#00b482",key:"{color.theme.planet}"},production:{value:"#c5be00",key:"{color.theme.production}"},publicommunique:{value:"#c5be00",key:"{color.theme.publicommunique}"},publishing:{value:"#c5be00",key:"{color.theme.publishing}"},sport:{value:"#6398ab",key:"{color.theme.sport}"},tempo:{value:"#ecb200",key:"{color.theme.tempo}"},"vie-pro":{value:"#b49b56",key:"{color.theme.vie-pro}"},infolocale:{value:"#4742ff",key:"{color.theme.infolocale}"},gaming:{value:"#fa6ee5",key:"{color.theme.gaming}"},jeux:{value:"#4742ff",key:"{color.theme.jeux}"}}},w={base:{value:"Arial",key:"{font-family.base}"},obviously:{value:"'Obviously', sans-serif",key:"{font-family.obviously}"},"source-serif-pro":{value:"'Source Serif Pro', serif",key:"{font-family.source-serif-pro}"}};Object.keys(w).filter(e=>!["base"].includes(e)),Array.from({length:20},(e,r)=>`75056AR${(r+1).toString().padStart(2,"0")}`),Array.from({length:16},(e,r)=>`13055AR${(r+1).toString().padStart(2,"0")}`),Array.from({length:9},(e,r)=>`69123AR0${r+1}`);const x=["extreme-gauche","parti-revolutionnaire-communiste","lutte-ouvriere","npa","parti-des-travailleurs","association-nationale-communistes","france-insoumise","divers-extreme-gauche","gauche","parti-communiste-francais","parti-des-citoyens-europeens","nouvelle-donne","parti-socialiste","parti-radical-de-gauche","nouveau-front-populaire","union-gauche","divers-gauche","ecologie","europe-ecologie-les-verts","equinoxe","ecologie-positive","ecologie-au-centre","ecologistes","les-ecologistes","centristes","renaissance","ensemble","modem","horizons","udi","union-centre","divers-centre","droite","les-republicains","droite-souverainiste","union-droite","divers-droite","extreme-droite","rassemblement-national","reconquete","les-patriotes","rester-libre","les-nationalistes","les-republicains-union-extreme-droite","udr","union-extreme-droite","divers-extreme-droite","divers","changement-citoyen","decidons-nous-meme","parti-animaliste","parti-pirate","union-des-democrates-musulmans","ecologie-politique","federation-citoyenne","republique-souveraine","resistons","france-libre","la-ruche-citoyenne","defendre-les-enfants","democratie-representative","europe-democratie-esperanto","union-populaire-republicaine","regionalistes"],_={alignItems:["align-items"],alignContent:["align-content"],justifyContent:["justify-content"],gap:["gap"],gapX:["row-gap"],gapY:["col-gap"],inline:["inline"],direction:["direction"],wrap:["wrap"],flexGrow:["flex-grow"]},N={align:["align-self"],basis:["flex-basis"],shrink:["flex-shrink"],grow:["flex-grow"]},E={radius:["border-radius"]},S={p:["padding"],pt:["padding-top"],pr:["padding-right"],pl:["padding-left"],pb:["padding-bottom"],px:["padding-left","padding-right"],py:["padding-top","padding-bottom"]},j={m:["margin"],mt:["margin-top"],mr:["margin-right"],ml:["margin-left"],mb:["margin-bottom"],mx:["margin-left","margin-right"],my:["margin-top","margin-bottom"],...S},O={...j,borderColor:["border-color"],bg:["background-color"],color:["color"],...E},k={textAlign:["text-align"],weight:["font-weight"],italic:["font-style"],textDecoration:["text-decoration"],textTransform:["text-transform"],fontFamily:["font-family"],whiteSpace:["white-space"]};function I(e){return p.forwardRef(e)}Object.keys(v.primary),Object.keys(v.secondary),Object.keys(v.greyscale),Object.keys(v.status),Object.keys(v.theme);const A=I(({as:e="button",variant:r,color:t=("ghost"===r||"link"===r?void 0:"primary"),children:a,iconProps:n,counter:o,isCentered:s=!1,isSquare:i=!1,isFullWidth:l=!1,isLoading:c=!1,size:u,isCloseWithProgress:p,closeProgressColor:m,...f},y)=>{const g={...f?.style,...m&&{"--button-close-progress-color":`var(--color-theme-${m})`}};return d.jsxs(G,{...f,style:g,as:e,ref:y,alignItems:"center",justifyContent:"center",gap:"xxs",inline:"link"===r||"a"===e,radius:i?"0":void 0,className:b("c-btn",{[`c-btn--${t}`]:t,[`c-btn--${r}`]:r,[`c-btn--${u}`]:u,"c-btn--is-centered":s,"c-btn--is-loading":c,"c-btn--full-width":l},f?.className),children:[n&&d.jsx(T,{...n}),a,(0===o||o)&&d.jsx(G,{justifyContent:"center",alignItems:"center",color:"grey-900",bg:"white",px:"xxs",radius:"s",className:"c-btn__counter",children:o}),p&&d.jsx("div",{className:"c-btn__close-progress"})]})});A.displayName="Button",I(({text:e,color:r="black",thickness:t="thin",...a},n)=>{const o=d.jsx(q,{bg:r,align:"center",className:b("c-divider__line",{[`c-divider__line--${t}`]:"thin"!==t})});return d.jsx(G,{...a,ref:n,className:b("c-divider",{"c-divider--has-text":!!e},a?.className),children:e?d.jsxs(d.Fragment,{children:[o,d.jsx(q,{px:"xxs-2",className:"c-divider__text",children:d.jsx(W,{size:"xxs",color:r,textTransform:"uppercase",children:e})}),o]}):o})}),I(({color:e="black",thickness:r="thin",...t},a)=>d.jsx(z,{...t,ref:a,bg:e,className:b("c-divider-vertical",{[`c-divider-vertical--${r}`]:"thin"!==r},t?.className)}));const T=I(({name:e,size:r=28,isRounded:t=!1,border:a,rotation:n,svgTitle:o,color:s,...i},l)=>{const c=Array.isArray(r)?r?.[0]:r,u=Array.isArray(r)?r?.[1]:r,p=!o,m=(e=>"string"==typeof e&&x.includes(e))(s);return d.jsx(z,{as:"span",...i,ref:l,color:m?void 0:s,className:b("c-icon",{[`c-icon--has-border-${a}`]:a,"c-icon--is-rounded":t,[`c-icon--${n}`]:n,[`c-icon--${s}`]:m},i?.className),children:d.jsxs("svg",{width:c,height:u,role:"img","aria-label":o||void 0,"aria-hidden":p?"true":void 0,children:[o&&d.jsx("title",{children:o}),"circle"===e?d.jsx("circle",{}):d.jsx("use",{xlinkHref:`#${e}`})]})})}),$=I(({iconProps:e,as:r="button",variant:t,color:a,size:n,hasShadow:o,isLoading:s,isFloating:i,...l},c)=>d.jsx(G,{...l,as:r,ref:c,alignItems:"center",justifyContent:"center",className:b("c-icon-btn",{[`c-icon-btn--${t}`]:t,[`c-icon-btn--${a}`]:a,[`c-icon-btn--${n}`]:n,"c-icon-btn--has-shadow":o,"c-icon-btn--is-loading":s,"c-icon-btn--is-floating":i},l?.className),children:d.jsx(T,{...e})}));$.displayName="IconButton",I(({id:e,className:r,color:t,required:a,label:n,icon:o,positionIcon:s="right",isIconButton:i=!1,iconButtonProps:l,variant:c,msg:u,containerProps:p,isRounded:m,isTransparent:f,isLarge:y,children:g,hint:h,error:v,...w},x)=>{const _=o&&d.jsx(A,{className:b("c-input-container__icon",`color-${t||"black"}`),iconProps:{name:o,size:18},variant:"ghost",...l}),N=o&&d.jsx(T,{className:"c-input-container__icon",name:o,size:18,color:t||"black"});return d.jsxs(G,{direction:"column",...p,className:b("c-input",p?.className,{[`c-input--${c}`]:c}),children:[n&&d.jsxs("label",{htmlFor:e,className:"c-input__label",children:[n,a&&d.jsxs(W,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),h&&d.jsx(W,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:h}),d.jsxs(G,{gap:o&&g?"xs":void 0,className:b("c-input-container",{"c-input-container--rounded":m,"c-input-container--transparent":f,"c-input-container--large":y,[`c-input-container--${s}`]:o||g}),children:[(o||g)&&d.jsxs(G,{gap:"s",children:[i?_:N,g]}),d.jsx("input",{id:e,className:b("c-input-container__input",r),required:a,ref:x,"aria-describedby":[h?`${e}-hint`:null,v?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...w})]}),u?.length&&d.jsx(G,{wrap:"wrap",gapY:"s",gapX:"xxs-2",mt:"xxs-2",children:u.map(({iconProps:e,textProps:r,value:t},a)=>d.jsxs(G,{alignItems:"center",gap:"xxs",children:[e&&d.jsx(T,{...e}),d.jsx(W,{dangerouslySetInnerHTML:{__html:t},role:"alert",...r})]},a?.toString()))}),v&&d.jsx(W,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:v})]})});const C=e=>{if(e.propValue&&["boolean","string","number"].includes(typeof e.propValue)||!e.propValue){const r=R({className:e.className,defaultModifier:e.defaultModifier||"xs",propValue:e.propValue});return r?[r]:[]}return Object.entries(e.propValue).reduce((r,[t,a])=>{const n=R({className:e.className,defaultModifier:t,propValue:a});return n&&r.push(n),r},[])},R=e=>{if(void 0!==e.propValue){if("boolean"!=typeof e.propValue){const r=(e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase())("number"==typeof e.propValue?e.propValue.toString():e.propValue);return e.className?`${e.className}-${r}@${e.defaultModifier}`:`${r}@${e.defaultModifier}`}if(!e.className)throw new Error('It is necessary to define the argument "className" !');return`${e.className}@${e.defaultModifier}`}},P=({basis:e,shrink:r,grow:t,...a})=>b(...C({propValue:e,className:"basis"}),...C({propValue:r,className:"shrink"}),...C({propValue:t,className:"grow"}),F(a)),V=({inline:e=!1,direction:r,wrap:t,...a})=>b(...C({propValue:e,className:e?"inline-flex":"flex"}),...C({propValue:r,className:"direction"}),...C({propValue:t}),L(a)),L=e=>b(...C({propValue:e.alignItems,className:"items"}),...C({propValue:e.alignContent,className:"content"}),...C({propValue:e.justifyContent,className:"justify"}),...C({propValue:e.gap,className:"gap"}),...C({propValue:e.gapX,className:"gap-x"}),...C({propValue:e.gapY,className:"gap-y"}),...C({propValue:e.flexGrow,className:"grow"})),F=e=>b(...C({propValue:e.align,className:"self"})),M=e=>"object"==typeof e.props?Object.keys(e.props).reduce((r,t)=>(e.systemPropNames.includes(t)||(r[t]=e.props[t]),r),{}):{},D=e=>b(Object.entries(e).filter(([e])=>Object.keys(j).includes(e)).reduce((e,[r,t])=>(e.push(...C({className:r,propValue:t})),e),[])),H=e=>b(D(e),(e=>b({[`bg-${e.bg}`]:e.bg,[`color-${e.color}`]:e.color,[`border-color-${e.borderColor}`]:e.borderColor}))(e),(e=>b(Object.entries(e).filter(([e])=>Object.keys(E).includes(e)).reduce((e,[r,t])=>(e.push(...C({className:r,propValue:t})),e),[])))(e)),B=({textAlign:e,weight:r,textTransform:t,textDecoration:a,italic:n,fontFamily:o,whiteSpace:s})=>b(C({className:"text",propValue:e}),C({className:"font-weight",propValue:r}),{[`white-space-${s}`]:!!s,[`text-transform-${t}`]:!!t,[`text-decoration-${a}`]:!!a,"text-italic":!!n,[`font-${o}`]:!!o}),z=I(({as:e="div",children:r,...t},a)=>d.jsx(e,{...M({props:t,systemPropNames:Object.keys(O)}),ref:a,className:b(H(t),t?.className),children:r}));z.displayName="Box";const G=I(({as:e="div",children:r,...t},a)=>d.jsx(z,{...M({props:t,systemPropNames:Object.keys(_)}),as:e,ref:a,className:b(V(t),t?.className),children:r})),q=I(({as:e="div",children:r,...t},a)=>d.jsx(z,{...M({props:t,systemPropNames:Object.keys(N)}),as:e,ref:a,className:b(P(t),t?.className),children:r}));I(({as:e="a",children:r,color:t,buttonColor:a,size:n,variant:o,weight:s,whiteSpace:i,tabIsSelected:l,tabVariant:c,tabColor:u,defaultColor:p="ultramarine",isUnderlined:m,...f},y)=>{if((o||a)&&t)throw new Error("You can't use the color prop together with the variant or buttonColor prop");const g=!(!o&&!a),h=c||u?b("c-tab",{[`c-tab--${c}`]:c,[`c-tab--${u}`]:u,"c-tab--selected":l,"c-tab--unselected":!l},B({weight:s,whiteSpace:i}),f?.className):b("c-link",{"c-btn":g&&!t,[`c-btn--${a}`]:a&&!t,[`c-btn--${o}`]:o&&!t},B({weight:s,whiteSpace:i}),C({className:"text",propValue:n}),{"c-link--is-underlined":m},f?.className);return d.jsx(z,{...f,as:e,ref:y,color:c||u||g?void 0:t||("inherit"===p?void 0:p),className:h,children:r})}),I(({variant:e,progressColor:r="ultramarine"},t)=>d.jsx(z,{ref:t,bg:"grey-100",className:b("c-progress",{[`c-progress--${e}`]:e}),children:d.jsx(z,{className:"c-progress__bar",bg:r,style:{width:"0%"}})})),I(({id:e,className:r,required:t,label:a,defaultValue:n,options:o,placeholder:s,containerProps:i,variant:l="default",icon:c,isLarge:u,hint:p,error:m,...f},y)=>d.jsxs(G,{...i,ref:y,direction:"column",className:b("c-select",i?.className),children:[a&&d.jsxs("label",{htmlFor:e,className:"c-select__label",children:[a,t&&d.jsxs(W,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),p&&d.jsx(W,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:p}),d.jsxs("div",{className:"c-select__container",children:[c&&d.jsx(T,{className:"c-select__icon",name:c,size:18}),d.jsx(T,{className:`c-select__caret c-select__caret--${l}`,name:"arrow",size:12}),d.jsxs("select",{id:e,className:b("c-select__select",`c-select__select--${l}`,{"c-select__select--has-icon":!!c},{"c-select__select--large":u},D(f),r),required:t,defaultValue:n||o.filter(e=>e.isSelected)?.pop()?.value||"","aria-describedby":[p?`${e}-hint`:null,m?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...M({props:f,systemPropNames:Object.keys(S)}),children:[s&&d.jsx("option",{value:"",disabled:!0,hidden:!0,children:s}),o.map(e=>d.jsx("option",{value:e.value,children:e.title},e.value))]})]}),m&&d.jsx(W,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:m})]}));var Y=(e=>(e.MOBILE="mobile",e.DESKTOP="desktop",e))(Y||{});I(({layout:e,children:r,itemsGap:t,hasSpaceAroundButtons:a=!1,buttonsColor:n,buttonsSize:o,colorVariant:s,sliderVariant:i="default",auto:l=!1,delay:c=3e3,...u},p)=>d.jsxs(z,{...u,ref:p,className:b("c-slider js-navigation-container",u?.className),"data-slider-variant":i,"data-slider-auto":l,"data-slider-delay":c,children:[d.jsx(z,{className:"c-slider__viewport js-navigation-container__list",children:d.jsx(G,{className:"c-slider__list",alignItems:"center",gap:t,children:r})}),e===Y.DESKTOP&&d.jsx(z,{className:"c-slider__buttons-container",children:Array.from(["previous","next"],e=>d.jsx(z,{pr:a&&"previous"===e&&("translucent"===n&&"small"===o?"m":"l")||void 0,pl:a&&"next"===e&&("translucent"===n&&"small"===o?"m":"l")||void 0,className:b(`c-slider__button-container c-slider__button-container--${e} o-nav-button o-nav-button--${e}-button`,{"c-slider__button-container--has-space-around":a},{[`c-slider__button-container--${i}`]:i}),children:d.jsx($,{color:n,size:o,..."videos"===i&&{p:"m"},iconProps:{name:"chevron",size:"videos"===i?14:12,rotation:"previous"===e?"half":void 0,svgTitle:"previous"===e?"Précédent":"Suivant"}})},e))})]})),I(({as:e="a",id:r,variant:t="primary",size:a,children:n,...o},s)=>d.jsx(z,{...o,as:"span"===t?"span":e,href:"span"===t?void 0:o?.href,ref:s,className:b("c-tags",`c-tags--${t}`,{[`c-tags--${a}`]:a},o?.className),"data-id":r,py:o?.py??"0",px:o?.px??"xs",children:n})),I(({id:e,required:r,label:t,variant:a,msg:n,rows:o=5,containerProps:s,hint:i,error:l,...c},u)=>d.jsxs(G,{direction:"column",ref:u,...s,className:b("c-textarea",s?.className),children:[t&&d.jsxs("label",{htmlFor:e,className:"c-textarea__label",children:[t,r&&d.jsxs(W,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),i&&d.jsx(W,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:i}),d.jsx(G,{className:"c-textarea-container",children:d.jsx("textarea",{rows:o,placeholder:"Votre message...",required:r,...c,id:e,name:e,className:b("c-textarea-container__input",{[`c-textarea-container__input--${a}`]:a,"c-textarea-container__input--hint":!!i,"c-textarea-container__input--error":!!l},c?.className),"aria-describedby":[i?`${e}-hint`:null,l?`${e}-error`:null].filter(Boolean).join(" ")||void 0})}),n?.length&&d.jsx(G,{wrap:"wrap",gapY:"s",gapX:"xxs-2",mt:"xxs-2",children:n.map(({iconProps:e,textProps:r,value:t},a)=>d.jsxs(G,{alignItems:"center",gap:"xxs",children:[e&&d.jsx(T,{...e}),d.jsx(W,{dangerouslySetInnerHTML:{__html:t},role:"alert",...r})]},a?.toString()))}),l&&d.jsx(W,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:l})]}));const U=I(({as:e="h1",size:r,children:t,...a},n)=>d.jsx(J,{...a,as:e,ref:n,className:b(C({className:"heading",propValue:r}),a?.className),children:t})),W=I(({as:e="p",size:r,highlighted:t,children:a,...n},o)=>d.jsx(J,{as:t?"span":e,bg:t?"sponsoring":n.bg,p:t?"xxs":n.p,color:t?"grey-800":n.color,...n,ref:o,className:b(C({className:"text",propValue:r}),{"text-highlighted":t},n?.className),children:a})),J=I(({as:e="p",children:r,...t},a)=>r&&r.toString().length||t?.dangerouslySetInnerHTML?d.jsx(z,{...M({props:t,systemPropNames:Object.keys(k)}),as:e,ref:a,className:b(B(t),t?.className),children:r}):null);I(({icon:e,title:r,content:t,...a},n)=>d.jsxs(z,{...a,ref:n,className:b("c-astro-topic-card",a?.className),children:[d.jsxs(G,{alignItems:"center",mb:"s",children:[d.jsx(T,{mr:"xs",name:e,size:21}),d.jsx(U,{as:"h3",size:"xs",children:r})]}),d.jsx(W,{size:"m",children:t})]})),I(({as:e="article",children:r,className:t,clickable:a=!1,...n},o)=>d.jsx(G,{...n,as:e,ref:o,justifyContent:n?.justifyContent||"between",className:b("c-card-container",{"c-card-container--clickable":a},t),children:r})),I(({index:e,textTitleProps:r,headingTitleProps:t,titleIconProps:a,isOpen:n,contentWithBorder:o=!0,contentProps:s,iconProps:i,btnProps:l,children:c,isDropdown:u,...p},m)=>d.jsxs(z,{...p,className:b("c-collapse js-collapse",{"c-collapse--dropdown":u}),ref:m,children:[d.jsxs(z,{...l,as:"button",type:"button",id:`c-collapse__button-${e}`,pl:l?.pl||"l",py:l?.py||"xxs",className:b("c-collapse__button js-collapse__button",l?.className),"aria-controls":`c-collapse__content-${e}`,"aria-expanded":n||"false",children:[a?d.jsxs(G,{alignItems:"center",children:[d.jsx(T,{size:34,mr:"xs",...a}),r?.children]}):t?d.jsx(U,{as:"h3",size:"xxs",color:"black",...t,children:t?.children}):d.jsx(W,{size:"l",color:"black",...r,children:r?.children}),d.jsx(T,{name:"chevron",size:16,...i,className:b("c-collapse__icon",i?.className)})]}),d.jsx(G,{...s,direction:"column",p:s?.p||"xl",id:`c-collapse__content-${e}`,"aria-hidden":n?!n:"true","aria-labelledby":`c-collapse__button-${e}`,className:b("c-collapse__content",{"c-collapse__content--with-border":o}),role:"tabpanel",children:c})]}));const K=p.forwardRef(({href:e,children:r,...t},a)=>d.jsx("a",{href:e,className:b("c-skip-link",H(t),t?.className),ref:a,...t,children:r}));K.displayName="SkipLink";var X=(e=>(e.down="down",e.heart="heart",e.laughing="laughing",e.sad="sad",e.shock="shock",e.up="up",e))(X||{});X.up,X.down,X.sad,X.heart,X.laughing,X.shock;const Z=e=>null!==localStorage.getItem(e),Q=(e,r)=>{let t=e.toLowerCase().replace(/[\s-]+/g,r??"-");return t=(e=>{let r=e;const t="ãàáäâẽèéëêìíïîõòóöôùúüûñç·/,:;";for(let e=0;e<30;e+=1)r=r.replace(new RegExp(t.charAt(e),"g"),"aaaaaeeeeeiiiiooooouuuunc-----".charAt(e));return r})(t),t.replace(/[^\w-]+/g,"").replace(/-*$/g,"")},ee=["publicommunique","production","magazine"],re=(e,r)=>{const t=document.createElement("meta");t.setAttribute("name",e),t.setAttribute("content",r),document.head.appendChild(t)},te=()=>{re("pbstck_context:site_name",window.layout===Y.DESKTOP?"20minutes_desktop":"20minutes_webmobile"),re("pbstck_context:section",((e,r="",t="",a=[])=>{if("article"===e&&ee.includes(r)||"production"===t||a.map(e=>Q(e)).includes("production"))return"brand_publishing";switch(e){case"home":return"homepage";case"tag":case"section":return"homes";case"article":case"live":return"article";case"tvhome":case"tvlive":case"tvmostrecent":case"tvmostviewed":case"tvshow":case"tvshows":case"tvvideo":return"tv";default:return"divers"}})(window.datalayerInfo?.pageName,window.datalayerInfo?.subType,window.datalayerInfo?.parentTagSlug,window.datalayerInfo?.breadcrumb)),re("ad:lang","fr"),re("ad:dn",window.location.host)},ae=()=>{te(),window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(()=>{re("pbstck_context:consent",window.didomiState.didomiPurposesDisabled||window.didomiState.didomiVendorsDisabled?"false":"true")}),Object.entries({...window.dfp.targeting}).forEach(([e,r])=>{re(`ad:${e}`,r)})},ne=()=>{if(Z("20min_user_token")){const e=localStorage.getItem("20min_user_token");fetch(`https://securepubads.g.doubleclick.net/user_data_deletion?ppid=${e}&iu=49926454`,{referrerPolicy:"strict-origin-when-cross-origin"}).then(e=>{e.ok&&alert("La demande de suppression a bien été prise en compte")}),localStorage.removeItem("20min_user_token")}},oe=()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(e=>{!e.getCurrentUserStatus().purposes["publicite-9qedKJMX"]?.enabled||!navigator.userAgent.includes("Firefox")&&!navigator.userAgent.includes("Safari")||navigator.userAgent.includes("Chrome")||navigator.userAgent.includes("Chromium")||navigator.userAgent.includes("Seamonkey")||Z("20min_user_token")||localStorage.setItem("20min_user_token",window.crypto.randomUUID())})},se=()=>{oe(),(()=>{const e=document.getElementById("delete-ppid");e&&e.addEventListener("click",ne)})()},ie=["nfb_1","nfb_2","article_btf","pave_com","pave_home","inread","pave_article","article_mtf","native_web"],le=()=>{ie.forEach(e=>{const r=`#dfp_${e}`,t=[...document.querySelectorAll(r)].filter(e=>e instanceof HTMLElement);for(let r=0;r<=20;r+=1){const a=document.getElementById(`dfp_${e}_${r}`);a&&t.push(a)}let a=0;t.forEach(r=>{r.id=0===a?`dfp_${e}`:`dfp_${e}_${a}`,a+=1})})};var ce=(e=>(e.UNKNOWN="Non connu",e.SLIDESHOW_COVER="Slideshow cover",e.SLIDESHOW_COVER_LISTING_PAGE="Slideshow listing page",e.SLIDESHOW_PAGE="Slideshow page",e.ARTICLE="article",e.MISC="divers",e.HOME="home",e.LIVE="live",e.SECTION="section",e.TAG="tag",e.JOBS="home_metier",e.JOB_DETAILS="fiche_metier",e.WEATHER="weather",e.TRAFFIC="traffic",e.HOROSCOPE="horoscope",e.HOROSCOPE_HOME="horoscopehome",e.NUMEROLOGY="numerology",e.NUMEROLOGY_HOME="numerologyhome",e))(ce||{}),ue=(e=>(e.PAGETYPE="page_type",e.TAGS="tags",e.CATEGORY="category",e.SUBCATEGORY="subcategory",e.CONTENTID="content_id",e.CONTENTTYPE="content_type",e.CONTENTSLUG="content_slug",e.BRANDSAFETY="brand_safety",e.HASVIDEO="has_video",e.DEVICE="device",e.ADM="adm",e))(ue||{}),de=(e=>(e.ARCHIVE_BY_DAY="archivebyday",e.ARCHIVE_BY_YEAR="archivebyyear",e.ARTICLE="article",e.ASTRO="astro",e.ASTRO_HOME="astrohome",e.CONTACT="contact",e.DIRECT="direct",e.ELECTIONS="elections",e.ELECTIONSHOME="electionshome",e.GAME="game",e.GAME_APP="gameapp",e.GAMEHOME="gamehome",e.HOME="home",e.JOB_DETAILS="jobdetails",e.JOBS="jobs",e.JOURNALIST="journalist",e.LA21E="la21e",e.LEGAL="legal",e.LEGALNOTICE="legalnotice",e.LEGALNOTICEHOME="legalnoticehome",e.LEGALNOTICEDEPARTMENT="legalnoticedepartment",e.LIVE="live",e.MOBILE_APPS="mobileapps",e.MOST_COMMENTED="mostcommented",e.MOST_READ="mostread",e.MOST_SHARED="mostshared",e.MOST_VIEWED="mostviewed",e.MOVIES="movies",e.NEWS="news",e.PARTNER="partner",e.REWIND="rewind",e.SEARCH="search",e.SECTION="section",e.SERVICE="service",e.SITEMAP="sitemap",e.SPORT="sport",e.STORY="story",e.TAG="tag",e.TRAFFIC="traffic",e.TV_HOME="tvhome",e.TV_LIVE="tvlive",e.TV_MOST_RECENT="tvmostrecent",e.TV_MOST_VIEWED="tvmostviewed",e.TV_SHOW="tvshow",e.TV_SHOWS="tvshows",e.TV_VIDEO="tvvideo",e.WEATHER="weather",e))(de||{});const pe=()=>{window.dfp=window.dfp||{},window.dfp.targeting=window.dfp.targeting||{},Object.values(ue).forEach(e=>{const r=(e=>{switch(e){case"page_type":case"content_type":if(window.datalayerInfo?.pageName&&Object.values(de).includes(window.datalayerInfo?.pageName))switch(window.datalayerInfo?.pageName){case de.HOME:return"homepage";case de.TAG:return ce.HOME;case de.JOBS:return ce.JOBS;case de.JOB_DETAILS:return ce.JOB_DETAILS;case de.ASTRO:return ce.HOROSCOPE;case de.ASTRO_HOME:return ce.HOROSCOPE_HOME;default:return window.datalayerInfo?.pageName}return ce.MISC;case"content_id":return window.datalayerInfo?.contentId??window.datalayerInfo?.tagId??window.datalayerInfo?.jobId??void 0;case"tags":if(window.datalayerInfo?.elections&&(window.datalayerInfo?.pageName===de.ELECTIONS||window.datalayerInfo?.pageName===de.ELECTIONSHOME)){const{national:e,region:r,department:t,town:a}=window.datalayerInfo.elections||{};return[e?"national":void 0,r,t,a].filter(Boolean).join(",")}return window.datalayerInfo?.tagsSlug?window.datalayerInfo.tagsSlug.replace(/\|/g,","):Q(window.datalayerInfo?.tagName??"","_")||void 0;case"category":return!window.datalayerInfo?.elections||window.datalayerInfo?.pageName!==de.ELECTIONS&&window.datalayerInfo?.pageName!==de.ELECTIONSHOME?window.datalayerInfo?.breadcrumb?.[0]?"Divertissement"===window.datalayerInfo?.breadcrumb[0]?"arts-stars":Q(window.datalayerInfo?.breadcrumb[0]):window.datalayerInfo?.pageName===de.ASTRO||window.datalayerInfo?.pageName===de.ASTRO_HOME?Q(window.datalayerInfo?.pageName===de.ASTRO?"horoscope":"horoscopehome"):window.datalayerInfo?.sectionLabel?Q(window.datalayerInfo.sectionLabel):void 0:"elections";case"subcategory":if(window.datalayerInfo?.elections&&(window.datalayerInfo?.pageName===de.ELECTIONS||window.datalayerInfo?.pageName===de.ELECTIONSHOME))return"resultats";if(window.datalayerInfo?.breadcrumb&&window.datalayerInfo?.breadcrumb.length>1){const e=Q(window.datalayerInfo.breadcrumb[window.datalayerInfo.breadcrumb.length-(window.datalayerInfo?.pageName===de.TAG?2:1)]);return e===Q(window.datalayerInfo?.breadcrumb[0])?Q(window.datalayerInfo?.tagName??"")||void 0:e||void 0}return;case"content_slug":return window.datalayerInfo?.contentTitle?Q(window.datalayerInfo.contentTitle):void 0;case"brand_safety":return window.datalayerInfo?.sentiment;case"has_video":return void 0!==window.partnerFeatures?.enableDisplayOnHeaderAd?window.partnerFeatures.enableDisplayOnHeaderAd.toString():void 0;case"device":return window.layout??void 0;default:return}})(e);r&&(window.dfp.targeting[e]=r)})};window.googletag=window.googletag||{cmd:[]},window.dfp=window.dfp||{},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",le):le(),pe(),googletag.cmd.push(()=>{googletag.pubads().addEventListener("impressionViewable",e=>{const r=e.slot;document.querySelectorAll(".c-4b8m1ese3e").forEach(e=>{(e.getAttribute("data-dfp-id")??e.getAttribute("id"))===r.getSlotElementId()&&e.classList.add("placeholder-with-ad")})})}),se(),window.datalayerInfo?.enablePubstack&&ae()}();
|
|
10
|
+
*/var d=(n||(n=1,o.exports=function(){if(a)return s;a=1;var e=u(),r=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)n.call(t,s)&&!i.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:r,type:e,key:c,ref:u,props:l,_owner:o.current}}return s.Fragment=t,s.jsx=l,s.jsxs=l,s}()),o.exports),p=e(u());function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var f,y={exports:{}};var g,h=(f||(f=1,g=y,function(){var e={}.hasOwnProperty;function r(){for(var e="",r=0;r<arguments.length;r++){var n=arguments[r];n&&(e=a(e,t(n)))}return e}function t(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return r.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var n="";for(var o in t)e.call(t,o)&&t[o]&&(n=a(n,o));return n}function a(e,r){return r?e?e+" "+r:e+r:e}g.exports?(r.default=r,g.exports=r):window.classNames=r}()),y.exports);const b=m(h),v={primary:{ultramarine:{value:"#4742FF",key:"{color.primary.ultramarine}"},"ultramarine-light":{value:"#6B72FB",key:"{color.primary.ultramarine-light}"}},secondary:{orange:{value:"#FA9917",key:"{color.secondary.orange}"},yellow:{value:"#F2E500",key:"{color.secondary.yellow}"},green:{value:"#6A9F4F",key:"{color.secondary.green}"},purple:{value:"#AE6BA2",key:"{color.secondary.purple}"},red:{value:"#DC0E19",key:"{color.secondary.red}"},scarlet:{value:"#FF3F3F",key:"{color.secondary.scarlet}"},blue:{value:"#0000FF",key:"{color.secondary.blue}"},"blue-grey":{value:"#253548",key:"{color.secondary.blue-grey}"},"blue-dark":{value:"#16202B",key:"{color.secondary.blue-dark}"},pink:{value:"#EF2A82",key:"{color.secondary.pink}"},sponsoring:{value:"#FFF5F1",key:"{color.secondary.sponsoring}"},"blue-light":{value:"#D4ECFB",key:"{color.secondary.blue-light}"},"blue-ice":{value:"#F0F4F8",key:"{color.secondary.blue-ice}"}},greyscale:{black:{value:"#000",key:"{color.greyscale.black}"},white:{value:"#FFF",key:"{color.greyscale.white}"},"grey-50":{value:"#FFFFFE",key:"{color.greyscale.grey-50}"},"grey-100":{value:"#F7F7F7",key:"{color.greyscale.grey-100}"},"grey-200":{value:"#DDD",key:"{color.greyscale.grey-200}"},"grey-300":{value:"#898A8C",key:"{color.greyscale.grey-300}"},"grey-400":{value:"#6A6A6A",key:"{color.greyscale.grey-400}"},"grey-500":{value:"#484848",key:"{color.greyscale.grey-500}"},"grey-600":{value:"#2F3134",key:"{color.greyscale.grey-600}"},"grey-700":{value:"#181A1E",key:"{color.greyscale.grey-700}"},"grey-800":{value:"#101D25",key:"{color.greyscale.grey-800}"},"grey-900":{value:"#0F1115",key:"{color.greyscale.grey-900}"}},status:{warning:{value:"#FA9917",key:"{color.status.warning}"},error:{value:"#DC0E19",key:"{color.status.error}"},success:{value:"#6A9F4F",key:"{color.status.success}"}},theme:{conso:{value:"#ff8689",key:"{color.theme.conso}"},default:{value:"#4742ff",key:"{color.theme.default}"},entertainment:{value:"#9d61ff",key:"{color.theme.entertainment}"},hightech:{value:"#8f98a9",key:"{color.theme.hightech}"},media:{value:"#4742ff",key:"{color.theme.media}"},"partenaires-externes":{value:"#4742ff",key:"{color.theme.partenaires-externes}"},partner:{value:"#fd8000",key:"{color.theme.partner}"},planet:{value:"#00b482",key:"{color.theme.planet}"},production:{value:"#c5be00",key:"{color.theme.production}"},publicommunique:{value:"#c5be00",key:"{color.theme.publicommunique}"},publishing:{value:"#c5be00",key:"{color.theme.publishing}"},sport:{value:"#6398ab",key:"{color.theme.sport}"},tempo:{value:"#ecb200",key:"{color.theme.tempo}"},"vie-pro":{value:"#b49b56",key:"{color.theme.vie-pro}"},infolocale:{value:"#4742ff",key:"{color.theme.infolocale}"},gaming:{value:"#fa6ee5",key:"{color.theme.gaming}"},jeux:{value:"#4742ff",key:"{color.theme.jeux}"}}},w={base:{value:"Arial",key:"{font-family.base}"},obviously:{value:"'Obviously', sans-serif",key:"{font-family.obviously}"},"source-serif-pro":{value:"'Source Serif Pro', serif",key:"{font-family.source-serif-pro}"}};Object.keys(w).filter(e=>!["base"].includes(e)),Array.from({length:20},(e,r)=>`75056AR${(r+1).toString().padStart(2,"0")}`),Array.from({length:16},(e,r)=>`13055AR${(r+1).toString().padStart(2,"0")}`),Array.from({length:9},(e,r)=>`69123AR0${r+1}`);const x=["extreme-gauche","parti-revolutionnaire-communiste","lutte-ouvriere","npa","parti-des-travailleurs","association-nationale-communistes","france-insoumise","divers-extreme-gauche","gauche","parti-communiste-francais","parti-des-citoyens-europeens","nouvelle-donne","parti-socialiste","parti-radical-de-gauche","nouveau-front-populaire","union-gauche","divers-gauche","ecologie","europe-ecologie-les-verts","equinoxe","ecologie-positive","ecologie-au-centre","ecologistes","les-ecologistes","centristes","renaissance","ensemble","modem","horizons","udi","union-centre","divers-centre","droite","les-republicains","droite-souverainiste","union-droite","divers-droite","extreme-droite","rassemblement-national","reconquete","les-patriotes","rester-libre","les-nationalistes","les-republicains-union-extreme-droite","udr","union-extreme-droite","divers-extreme-droite","divers","changement-citoyen","decidons-nous-meme","parti-animaliste","parti-pirate","union-des-democrates-musulmans","ecologie-politique","federation-citoyenne","republique-souveraine","resistons","france-libre","la-ruche-citoyenne","defendre-les-enfants","democratie-representative","europe-democratie-esperanto","union-populaire-republicaine","regionalistes"],_={alignItems:["align-items"],alignContent:["align-content"],justifyContent:["justify-content"],gap:["gap"],gapX:["row-gap"],gapY:["col-gap"],inline:["inline"],direction:["direction"],wrap:["wrap"],flexGrow:["flex-grow"]},N={align:["align-self"],basis:["flex-basis"],shrink:["flex-shrink"],grow:["flex-grow"]},E={radius:["border-radius"]},S={p:["padding"],pt:["padding-top"],pr:["padding-right"],pl:["padding-left"],pb:["padding-bottom"],px:["padding-left","padding-right"],py:["padding-top","padding-bottom"]},j={m:["margin"],mt:["margin-top"],mr:["margin-right"],ml:["margin-left"],mb:["margin-bottom"],mx:["margin-left","margin-right"],my:["margin-top","margin-bottom"],...S},O={...j,borderColor:["border-color"],bg:["background-color"],color:["color"],...E},k={textAlign:["text-align"],weight:["font-weight"],italic:["font-style"],textDecoration:["text-decoration"],textTransform:["text-transform"],fontFamily:["font-family"],whiteSpace:["white-space"]};function I(e){return p.forwardRef(e)}Object.keys(v.primary),Object.keys(v.secondary),Object.keys(v.greyscale),Object.keys(v.status),Object.keys(v.theme);const A=I(({as:e="button",variant:r,color:t=("ghost"===r||"link"===r?void 0:"primary"),children:a,iconProps:n,counter:o,isCentered:s=!1,isSquare:i=!1,isFullWidth:l=!1,isLoading:c=!1,size:u,isCloseWithProgress:p,closeProgressColor:m,...f},y)=>{const g={...f?.style,...m&&{"--button-close-progress-color":`var(--color-theme-${m})`}};return d.jsxs(G,{...f,style:g,as:e,ref:y,alignItems:"center",justifyContent:"center",gap:"xxs",inline:"link"===r||"a"===e,radius:i?"0":void 0,className:b("c-btn",{[`c-btn--${t}`]:t,[`c-btn--${r}`]:r,[`c-btn--${u}`]:u,"c-btn--is-centered":s,"c-btn--is-loading":c,"c-btn--full-width":l},f?.className),children:[n&&d.jsx(T,{...n}),a,(0===o||o)&&d.jsx(G,{justifyContent:"center",alignItems:"center",color:"grey-900",bg:"white",px:"xxs",radius:"s",className:"c-btn__counter",children:o}),p&&d.jsx("div",{className:"c-btn__close-progress"})]})});A.displayName="Button",I(({text:e,color:r="black",thickness:t="thin",...a},n)=>{const o=d.jsx(q,{bg:r,align:"center",className:b("c-divider__line",{[`c-divider__line--${t}`]:"thin"!==t})});return d.jsx(G,{...a,ref:n,className:b("c-divider",{"c-divider--has-text":!!e},a?.className),children:e?d.jsxs(d.Fragment,{children:[o,d.jsx(q,{px:"xxs-2",className:"c-divider__text",children:d.jsx(W,{size:"xxs",color:r,textTransform:"uppercase",children:e})}),o]}):o})}),I(({color:e="black",thickness:r="thin",...t},a)=>d.jsx(z,{...t,ref:a,bg:e,className:b("c-divider-vertical",{[`c-divider-vertical--${r}`]:"thin"!==r},t?.className)}));const T=I(({name:e,size:r=28,isRounded:t=!1,border:a,rotation:n,svgTitle:o,color:s,...i},l)=>{const c=Array.isArray(r)?r?.[0]:r,u=Array.isArray(r)?r?.[1]:r,p=!o,m=(e=>"string"==typeof e&&x.includes(e))(s);return d.jsx(z,{as:"span",...i,ref:l,color:m?void 0:s,className:b("c-icon",{[`c-icon--has-border-${a}`]:a,"c-icon--is-rounded":t,[`c-icon--${n}`]:n,[`c-icon--${s}`]:m},i?.className),children:d.jsxs("svg",{width:c,height:u,role:"img","aria-label":o||void 0,"aria-hidden":p?"true":void 0,children:[o&&d.jsx("title",{children:o}),"circle"===e?d.jsx("circle",{}):d.jsx("use",{xlinkHref:`#${e}`})]})})}),$=I(({iconProps:e,as:r="button",variant:t,color:a,size:n,hasShadow:o,isLoading:s,isFloating:i,...l},c)=>d.jsx(G,{...l,as:r,ref:c,alignItems:"center",justifyContent:"center",className:b("c-icon-btn",{[`c-icon-btn--${t}`]:t,[`c-icon-btn--${a}`]:a,[`c-icon-btn--${n}`]:n,"c-icon-btn--has-shadow":o,"c-icon-btn--is-loading":s,"c-icon-btn--is-floating":i},l?.className),children:d.jsx(T,{...e})}));$.displayName="IconButton",I(({id:e,className:r,color:t,required:a,label:n,icon:o,positionIcon:s="right",isIconButton:i=!1,iconButtonProps:l,variant:c,msg:u,containerProps:p,isRounded:m,isTransparent:f,isLarge:y,children:g,hint:h,error:v,...w},x)=>{const _=o&&d.jsx(A,{className:b("c-input-container__icon",`color-${t||"black"}`),iconProps:{name:o,size:18},variant:"ghost",...l}),N=o&&d.jsx(T,{className:"c-input-container__icon",name:o,size:18,color:t||"black"});return d.jsxs(G,{direction:"column",...p,className:b("c-input",p?.className,{[`c-input--${c}`]:c}),children:[n&&d.jsxs("label",{htmlFor:e,className:"c-input__label",children:[n,a&&d.jsxs(W,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),h&&d.jsx(W,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:h}),d.jsxs(G,{gap:o&&g?"xs":void 0,className:b("c-input-container",{"c-input-container--rounded":m,"c-input-container--transparent":f,"c-input-container--large":y,[`c-input-container--${s}`]:o||g}),children:[(o||g)&&d.jsxs(G,{gap:"s",children:[i?_:N,g]}),d.jsx("input",{id:e,className:b("c-input-container__input",r),required:a,ref:x,"aria-describedby":[h?`${e}-hint`:null,v?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...w})]}),u?.length&&d.jsx(G,{wrap:"wrap",gapY:"s",gapX:"xxs-2",mt:"xxs-2",children:u.map(({iconProps:e,textProps:r,value:t},a)=>d.jsxs(G,{alignItems:"center",gap:"xxs",children:[e&&d.jsx(T,{...e}),d.jsx(W,{dangerouslySetInnerHTML:{__html:t},role:"alert",...r})]},a?.toString()))}),v&&d.jsx(W,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:v})]})});const C=e=>{if(e.propValue&&["boolean","string","number"].includes(typeof e.propValue)||!e.propValue){const r=R({className:e.className,defaultModifier:e.defaultModifier||"xs",propValue:e.propValue});return r?[r]:[]}return Object.entries(e.propValue).reduce((r,[t,a])=>{const n=R({className:e.className,defaultModifier:t,propValue:a});return n&&r.push(n),r},[])},R=e=>{if(void 0!==e.propValue){if("boolean"!=typeof e.propValue){const r=(e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase())("number"==typeof e.propValue?e.propValue.toString():e.propValue);return e.className?`${e.className}-${r}@${e.defaultModifier}`:`${r}@${e.defaultModifier}`}if(!e.className)throw new Error('It is necessary to define the argument "className" !');return`${e.className}@${e.defaultModifier}`}},P=({basis:e,shrink:r,grow:t,...a})=>b(...C({propValue:e,className:"basis"}),...C({propValue:r,className:"shrink"}),...C({propValue:t,className:"grow"}),F(a)),V=({inline:e=!1,direction:r,wrap:t,...a})=>b(...C({propValue:e,className:e?"inline-flex":"flex"}),...C({propValue:r,className:"direction"}),...C({propValue:t}),L(a)),L=e=>b(...C({propValue:e.alignItems,className:"items"}),...C({propValue:e.alignContent,className:"content"}),...C({propValue:e.justifyContent,className:"justify"}),...C({propValue:e.gap,className:"gap"}),...C({propValue:e.gapX,className:"gap-x"}),...C({propValue:e.gapY,className:"gap-y"}),...C({propValue:e.flexGrow,className:"grow"})),F=e=>b(...C({propValue:e.align,className:"self"})),M=e=>"object"==typeof e.props?Object.keys(e.props).reduce((r,t)=>(e.systemPropNames.includes(t)||(r[t]=e.props[t]),r),{}):{},D=e=>b(Object.entries(e).filter(([e])=>Object.keys(j).includes(e)).reduce((e,[r,t])=>(e.push(...C({className:r,propValue:t})),e),[])),H=e=>b(D(e),(e=>b({[`bg-${e.bg}`]:e.bg,[`color-${e.color}`]:e.color,[`border-color-${e.borderColor}`]:e.borderColor}))(e),(e=>b(Object.entries(e).filter(([e])=>Object.keys(E).includes(e)).reduce((e,[r,t])=>(e.push(...C({className:r,propValue:t})),e),[])))(e)),B=({textAlign:e,weight:r,textTransform:t,textDecoration:a,italic:n,fontFamily:o,whiteSpace:s})=>b(C({className:"text",propValue:e}),C({className:"font-weight",propValue:r}),{[`white-space-${s}`]:!!s,[`text-transform-${t}`]:!!t,[`text-decoration-${a}`]:!!a,"text-italic":!!n,[`font-${o}`]:!!o}),z=I(({as:e="div",children:r,...t},a)=>d.jsx(e,{...M({props:t,systemPropNames:Object.keys(O)}),ref:a,className:b(H(t),t?.className),children:r}));z.displayName="Box";const G=I(({as:e="div",children:r,...t},a)=>d.jsx(z,{...M({props:t,systemPropNames:Object.keys(_)}),as:e,ref:a,className:b(V(t),t?.className),children:r})),q=I(({as:e="div",children:r,...t},a)=>d.jsx(z,{...M({props:t,systemPropNames:Object.keys(N)}),as:e,ref:a,className:b(P(t),t?.className),children:r}));I(({as:e="a",children:r,color:t,buttonColor:a,size:n,variant:o,weight:s,whiteSpace:i,tabIsSelected:l,tabVariant:c,tabColor:u,defaultColor:p="ultramarine",isUnderlined:m,...f},y)=>{if((o||a)&&t)throw new Error("You can't use the color prop together with the variant or buttonColor prop");const g=!(!o&&!a),h=c||u?b("c-tab",{[`c-tab--${c}`]:c,[`c-tab--${u}`]:u,"c-tab--selected":l,"c-tab--unselected":!l},B({weight:s,whiteSpace:i}),f?.className):b("c-link",{"c-btn":g&&!t,[`c-btn--${a}`]:a&&!t,[`c-btn--${o}`]:o&&!t},B({weight:s,whiteSpace:i}),C({className:"text",propValue:n}),{"c-link--is-underlined":m},f?.className);return d.jsx(z,{...f,as:e,ref:y,color:c||u||g?void 0:t||("inherit"===p?void 0:p),className:h,children:r})}),I(({variant:e,progressColor:r="ultramarine"},t)=>d.jsx(z,{ref:t,bg:"grey-100",className:b("c-progress",{[`c-progress--${e}`]:e}),children:d.jsx(z,{className:"c-progress__bar",bg:r,style:{width:"0%"}})})),I(({id:e,className:r,required:t,label:a,defaultValue:n,options:o,placeholder:s,containerProps:i,variant:l="default",icon:c,isLarge:u,hint:p,error:m,...f},y)=>d.jsxs(G,{...i,ref:y,direction:"column",className:b("c-select",i?.className),children:[a&&d.jsxs("label",{htmlFor:e,className:"c-select__label",children:[a,t&&d.jsxs(W,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),p&&d.jsx(W,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:p}),d.jsxs("div",{className:"c-select__container",children:[c&&d.jsx(T,{className:"c-select__icon",name:c,size:18}),d.jsx(T,{className:`c-select__caret c-select__caret--${l}`,name:"arrow",size:12}),d.jsxs("select",{id:e,className:b("c-select__select",`c-select__select--${l}`,{"c-select__select--has-icon":!!c},{"c-select__select--large":u},D(f),r),required:t,defaultValue:n||o.filter(e=>e.isSelected)?.pop()?.value||"","aria-describedby":[p?`${e}-hint`:null,m?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...M({props:f,systemPropNames:Object.keys(S)}),children:[s&&d.jsx("option",{value:"",disabled:!0,hidden:!0,children:s}),o.map(e=>d.jsx("option",{value:e.value,children:e.title},e.value))]})]}),m&&d.jsx(W,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:m})]}));var Y=(e=>(e.MOBILE="mobile",e.DESKTOP="desktop",e))(Y||{});I(({layout:e,children:r,itemsGap:t,hasSpaceAroundButtons:a=!1,buttonsColor:n,buttonsSize:o,colorVariant:s,sliderVariant:i="default",auto:l=!1,delay:c=3e3,...u},p)=>d.jsxs(z,{...u,ref:p,className:b("c-slider js-navigation-container",u?.className),"data-slider-variant":i,"data-slider-auto":l,"data-slider-delay":c,children:[d.jsx(z,{className:"c-slider__viewport js-navigation-container__list",children:d.jsx(G,{className:"c-slider__list",alignItems:"center",gap:t,children:r})}),e===Y.DESKTOP&&d.jsx(z,{className:"c-slider__buttons-container",children:Array.from(["previous","next"],e=>d.jsx(z,{pr:a&&"previous"===e&&("translucent"===n&&"small"===o?"m":"l")||void 0,pl:a&&"next"===e&&("translucent"===n&&"small"===o?"m":"l")||void 0,className:b(`c-slider__button-container c-slider__button-container--${e} o-nav-button o-nav-button--${e}-button`,{"c-slider__button-container--has-space-around":a},{[`c-slider__button-container--${i}`]:i}),children:d.jsx($,{color:n,size:o,..."videos"===i&&{p:"m"},iconProps:{name:"chevron",size:"videos"===i?14:12,rotation:"previous"===e?"half":void 0,svgTitle:"previous"===e?"Précédent":"Suivant"}})},e))})]})),I(({as:e="a",id:r,variant:t="primary",size:a,children:n,...o},s)=>d.jsx(z,{...o,as:"span"===t?"span":e,href:"span"===t?void 0:o?.href,ref:s,className:b("c-tags",`c-tags--${t}`,{[`c-tags--${a}`]:a},o?.className),"data-id":r,py:o?.py??"0",px:o?.px??"xs",children:n})),I(({id:e,required:r,label:t,variant:a,msg:n,rows:o=5,containerProps:s,hint:i,error:l,...c},u)=>d.jsxs(G,{direction:"column",ref:u,...s,className:b("c-textarea",s?.className),children:[t&&d.jsxs("label",{htmlFor:e,className:"c-textarea__label",children:[t,r&&d.jsxs(W,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),i&&d.jsx(W,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:i}),d.jsx(G,{className:"c-textarea-container",children:d.jsx("textarea",{rows:o,placeholder:"Votre message...",required:r,...c,id:e,name:e,className:b("c-textarea-container__input",{[`c-textarea-container__input--${a}`]:a,"c-textarea-container__input--hint":!!i,"c-textarea-container__input--error":!!l},c?.className),"aria-describedby":[i?`${e}-hint`:null,l?`${e}-error`:null].filter(Boolean).join(" ")||void 0})}),n?.length&&d.jsx(G,{wrap:"wrap",gapY:"s",gapX:"xxs-2",mt:"xxs-2",children:n.map(({iconProps:e,textProps:r,value:t},a)=>d.jsxs(G,{alignItems:"center",gap:"xxs",children:[e&&d.jsx(T,{...e}),d.jsx(W,{dangerouslySetInnerHTML:{__html:t},role:"alert",...r})]},a?.toString()))}),l&&d.jsx(W,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:l})]}));const U=I(({as:e="h1",size:r,children:t,...a},n)=>d.jsx(J,{...a,as:e,ref:n,className:b(C({className:"heading",propValue:r}),a?.className),children:t})),W=I(({as:e="p",size:r,highlighted:t,children:a,...n},o)=>d.jsx(J,{as:t?"span":e,bg:t?"sponsoring":n.bg,p:t?"xxs":n.p,color:t?"grey-800":n.color,...n,ref:o,className:b(C({className:"text",propValue:r}),{"text-highlighted":t},n?.className),children:a})),J=I(({as:e="p",children:r,...t},a)=>r&&r.toString().length||t?.dangerouslySetInnerHTML?d.jsx(z,{...M({props:t,systemPropNames:Object.keys(k)}),as:e,ref:a,className:b(B(t),t?.className),children:r}):null);I(({icon:e,title:r,content:t,...a},n)=>d.jsxs(z,{...a,ref:n,className:b("c-astro-topic-card",a?.className),children:[d.jsxs(G,{alignItems:"center",mb:"s",children:[d.jsx(T,{mr:"xs",name:e,size:21}),d.jsx(U,{as:"h3",size:"xs",children:r})]}),d.jsx(W,{size:"m",children:t})]})),I(({as:e="article",children:r,className:t,clickable:a=!1,...n},o)=>d.jsx(G,{...n,as:e,ref:o,justifyContent:n?.justifyContent||"between",className:b("c-card-container",{"c-card-container--clickable":a},t),children:r})),I(({index:e,textTitleProps:r,headingTitleProps:t,titleIconProps:a,isOpen:n,contentWithBorder:o=!0,contentProps:s,iconProps:i,btnProps:l,children:c,isDropdown:u,...p},m)=>d.jsxs(z,{...p,className:b("c-collapse js-collapse",{"c-collapse--dropdown":u}),ref:m,children:[d.jsxs(z,{...l,as:"button",type:"button",id:`c-collapse__button-${e}`,pl:l?.pl||"l",py:l?.py||"xxs",className:b("c-collapse__button js-collapse__button",l?.className),"aria-controls":`c-collapse__content-${e}`,"aria-expanded":n||"false",children:[a?d.jsxs(G,{alignItems:"center",children:[d.jsx(T,{size:34,mr:"xs",...a}),r?.children]}):t?d.jsx(U,{as:"h3",size:"xxs",color:"black",...t,children:t?.children}):d.jsx(W,{size:"l",color:"black",...r,children:r?.children}),d.jsx(T,{name:"chevron",size:16,...i,className:b("c-collapse__icon",i?.className)})]}),d.jsx(G,{...s,direction:"column",p:s?.p||"xl",id:`c-collapse__content-${e}`,"aria-hidden":n?!n:"true","aria-labelledby":`c-collapse__button-${e}`,className:b("c-collapse__content",{"c-collapse__content--with-border":o}),role:"tabpanel",children:c})]}));const K=p.forwardRef(({href:e,children:r,...t},a)=>d.jsx("a",{href:e,className:b("c-skip-link",H(t),t?.className),ref:a,...t,children:r}));K.displayName="SkipLink";class X extends Error{}X.prototype.name="InvalidTokenError";var Z=(e=>(e.down="down",e.heart="heart",e.laughing="laughing",e.sad="sad",e.shock="shock",e.up="up",e))(Z||{});Z.up,Z.down,Z.sad,Z.heart,Z.laughing,Z.shock;const Q=e=>null!==localStorage.getItem(e),ee=(e,r)=>{let t=e.toLowerCase().replace(/[\s-]+/g,r??"-");return t=(e=>{let r=e;const t="ãàáäâẽèéëêìíïîõòóöôùúüûñç·/,:;";for(let e=0;e<30;e+=1)r=r.replace(new RegExp(t.charAt(e),"g"),"aaaaaeeeeeiiiiooooouuuunc-----".charAt(e));return r})(t),t.replace(/[^\w-]+/g,"").replace(/-*$/g,"")},re=["publicommunique","production","magazine"],te=(e,r)=>{const t=document.createElement("meta");t.setAttribute("name",e),t.setAttribute("content",r),document.head.appendChild(t)},ae=()=>{te("pbstck_context:site_name",window.layout===Y.DESKTOP?"20minutes_desktop":"20minutes_webmobile"),te("pbstck_context:section",((e,r="",t="",a=[])=>{if("article"===e&&re.includes(r)||"production"===t||a.map(e=>ee(e)).includes("production"))return"brand_publishing";switch(e){case"home":return"homepage";case"tag":case"section":return"homes";case"article":case"live":return"article";case"tvhome":case"tvlive":case"tvmostrecent":case"tvmostviewed":case"tvshow":case"tvshows":case"tvvideo":return"tv";default:return"divers"}})(window.datalayerInfo?.pageName,window.datalayerInfo?.subType,window.datalayerInfo?.parentTagSlug,window.datalayerInfo?.breadcrumb)),te("ad:lang","fr"),te("ad:dn",window.location.host)},ne=()=>{ae(),window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(()=>{te("pbstck_context:consent",window.didomiState.didomiPurposesDisabled||window.didomiState.didomiVendorsDisabled?"false":"true")}),Object.entries({...window.dfp.targeting}).forEach(([e,r])=>{te(`ad:${e}`,r)})},oe=()=>{if(Q("20min_user_token")){const e=localStorage.getItem("20min_user_token");fetch(`https://securepubads.g.doubleclick.net/user_data_deletion?ppid=${e}&iu=49926454`,{referrerPolicy:"strict-origin-when-cross-origin"}).then(e=>{e.ok&&alert("La demande de suppression a bien été prise en compte")}),localStorage.removeItem("20min_user_token")}},se=()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(e=>{!e.getCurrentUserStatus().purposes["publicite-9qedKJMX"]?.enabled||!navigator.userAgent.includes("Firefox")&&!navigator.userAgent.includes("Safari")||navigator.userAgent.includes("Chrome")||navigator.userAgent.includes("Chromium")||navigator.userAgent.includes("Seamonkey")||Q("20min_user_token")||localStorage.setItem("20min_user_token",window.crypto.randomUUID())})},ie=()=>{se(),(()=>{const e=document.getElementById("delete-ppid");e&&e.addEventListener("click",oe)})()},le=["nfb_1","nfb_2","article_btf","pave_com","pave_home","inread","pave_article","article_mtf","native_web"],ce=()=>{le.forEach(e=>{const r=`#dfp_${e}`,t=[...document.querySelectorAll(r)].filter(e=>e instanceof HTMLElement);for(let r=0;r<=20;r+=1){const a=document.getElementById(`dfp_${e}_${r}`);a&&t.push(a)}let a=0;t.forEach(r=>{r.id=0===a?`dfp_${e}`:`dfp_${e}_${a}`,a+=1})})};var ue=(e=>(e.UNKNOWN="Non connu",e.SLIDESHOW_COVER="Slideshow cover",e.SLIDESHOW_COVER_LISTING_PAGE="Slideshow listing page",e.SLIDESHOW_PAGE="Slideshow page",e.ARTICLE="article",e.MISC="divers",e.HOME="home",e.LIVE="live",e.SECTION="section",e.TAG="tag",e.JOBS="home_metier",e.JOB_DETAILS="fiche_metier",e.WEATHER="weather",e.TRAFFIC="traffic",e.HOROSCOPE="horoscope",e.HOROSCOPE_HOME="horoscopehome",e.NUMEROLOGY="numerology",e.NUMEROLOGY_HOME="numerologyhome",e))(ue||{}),de=(e=>(e.PAGETYPE="page_type",e.TAGS="tags",e.CATEGORY="category",e.SUBCATEGORY="subcategory",e.CONTENTID="content_id",e.CONTENTTYPE="content_type",e.CONTENTSLUG="content_slug",e.BRANDSAFETY="brand_safety",e.HASVIDEO="has_video",e.DEVICE="device",e.ADM="adm",e))(de||{}),pe=(e=>(e.ARCHIVE_BY_DAY="archivebyday",e.ARCHIVE_BY_YEAR="archivebyyear",e.ARTICLE="article",e.ASTRO="astro",e.ASTRO_HOME="astrohome",e.CONTACT="contact",e.DIRECT="direct",e.ELECTIONS="elections",e.ELECTIONSHOME="electionshome",e.GAME="game",e.GAME_APP="gameapp",e.GAMEHOME="gamehome",e.HOME="home",e.JOB_DETAILS="jobdetails",e.JOBS="jobs",e.JOURNALIST="journalist",e.LA21E="la21e",e.LEGAL="legal",e.LEGALNOTICE="legalnotice",e.LEGALNOTICEHOME="legalnoticehome",e.LEGALNOTICEDEPARTMENT="legalnoticedepartment",e.LIVE="live",e.MOBILE_APPS="mobileapps",e.MOST_COMMENTED="mostcommented",e.MOST_READ="mostread",e.MOST_SHARED="mostshared",e.MOST_VIEWED="mostviewed",e.MOVIES="movies",e.NEWS="news",e.PARTNER="partner",e.REWIND="rewind",e.SEARCH="search",e.SECTION="section",e.SERVICE="service",e.SITEMAP="sitemap",e.SPORT="sport",e.STORY="story",e.TAG="tag",e.TRAFFIC="traffic",e.TV_HOME="tvhome",e.TV_LIVE="tvlive",e.TV_MOST_RECENT="tvmostrecent",e.TV_MOST_VIEWED="tvmostviewed",e.TV_SHOW="tvshow",e.TV_SHOWS="tvshows",e.TV_VIDEO="tvvideo",e.WEATHER="weather",e))(pe||{});const me=()=>{window.dfp=window.dfp||{},window.dfp.targeting=window.dfp.targeting||{},Object.values(de).forEach(e=>{const r=(e=>{switch(e){case"page_type":case"content_type":if(window.datalayerInfo?.pageName&&Object.values(pe).includes(window.datalayerInfo?.pageName))switch(window.datalayerInfo?.pageName){case pe.HOME:return"homepage";case pe.TAG:return ue.HOME;case pe.JOBS:return ue.JOBS;case pe.JOB_DETAILS:return ue.JOB_DETAILS;case pe.ASTRO:return ue.HOROSCOPE;case pe.ASTRO_HOME:return ue.HOROSCOPE_HOME;default:return window.datalayerInfo?.pageName}return ue.MISC;case"content_id":return window.datalayerInfo?.contentId??window.datalayerInfo?.tagId??window.datalayerInfo?.jobId??void 0;case"tags":if(window.datalayerInfo?.elections&&(window.datalayerInfo?.pageName===pe.ELECTIONS||window.datalayerInfo?.pageName===pe.ELECTIONSHOME)){const{national:e,region:r,department:t,town:a}=window.datalayerInfo.elections||{};return[e?"national":void 0,r,t,a].filter(Boolean).join(",")}return window.datalayerInfo?.tagsSlug?window.datalayerInfo.tagsSlug.replace(/\|/g,","):ee(window.datalayerInfo?.tagName??"","_")||void 0;case"category":return!window.datalayerInfo?.elections||window.datalayerInfo?.pageName!==pe.ELECTIONS&&window.datalayerInfo?.pageName!==pe.ELECTIONSHOME?window.datalayerInfo?.breadcrumb?.[0]?"Divertissement"===window.datalayerInfo?.breadcrumb[0]?"arts-stars":ee(window.datalayerInfo?.breadcrumb[0]):window.datalayerInfo?.pageName===pe.ASTRO||window.datalayerInfo?.pageName===pe.ASTRO_HOME?ee(window.datalayerInfo?.pageName===pe.ASTRO?"horoscope":"horoscopehome"):window.datalayerInfo?.sectionLabel?ee(window.datalayerInfo.sectionLabel):void 0:"elections";case"subcategory":if(window.datalayerInfo?.elections&&(window.datalayerInfo?.pageName===pe.ELECTIONS||window.datalayerInfo?.pageName===pe.ELECTIONSHOME))return"resultats";if(window.datalayerInfo?.breadcrumb&&window.datalayerInfo?.breadcrumb.length>1){const e=ee(window.datalayerInfo.breadcrumb[window.datalayerInfo.breadcrumb.length-(window.datalayerInfo?.pageName===pe.TAG?2:1)]);return e===ee(window.datalayerInfo?.breadcrumb[0])?ee(window.datalayerInfo?.tagName??"")||void 0:e||void 0}return;case"content_slug":return window.datalayerInfo?.contentTitle?ee(window.datalayerInfo.contentTitle):void 0;case"brand_safety":return window.datalayerInfo?.sentiment;case"has_video":return void 0!==window.partnerFeatures?.enableDisplayOnHeaderAd?window.partnerFeatures.enableDisplayOnHeaderAd.toString():void 0;case"device":return window.layout??void 0;default:return}})(e);r&&(window.dfp.targeting[e]=r)})};window.googletag=window.googletag||{cmd:[]},window.dfp=window.dfp||{},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",ce):ce(),me(),googletag.cmd.push(()=>{googletag.pubads().addEventListener("impressionViewable",e=>{const r=e.slot;document.querySelectorAll(".c-4b8m1ese3e").forEach(e=>{(e.getAttribute("data-dfp-id")??e.getAttribute("id"))===r.getSlotElementId()&&e.classList.add("placeholder-with-ad")})})}),ie(),window.datalayerInfo?.enablePubstack&&ne()}();
|
|
11
11
|
//# sourceMappingURL=ads.min.js.map
|
package/dist/js/cmp.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){"use strict";const e="forward-disable-audience-measure",t="data-preferences-consent",r=()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(e=>{if(e.getCurrentUserStatus().purposes["mesureda-6qyqaZXC"]?.enabled){Array.from(document.getElementsByClassName("cmp-placeholder")).forEach(e=>{e.classList.add("u-hidden")});Array.from(document.getElementsByClassName("js-game-wrapper")).forEach(e=>{e.classList.remove("u-hidden"),e.querySelectorAll("[data-href]").forEach(e=>{const t=e.getAttribute("data-href");t&&(e.setAttribute("href",t),e.removeAttribute("data-href"))}),e.querySelectorAll("[data-src]").forEach(e=>{const t=e.getAttribute("data-src");t&&(e.setAttribute("src",t),e.removeAttribute("data-src"))})})}else{Array.from(document.getElementsByClassName("cmp-placeholder")).forEach(e=>{e.classList.remove("u-hidden")})}})},n=()=>{document.querySelectorAll(".c-game-placeholder").forEach(e=>{e.addEventListener("click",e=>{const t=e.target;if(!(t instanceof HTMLElement&&t.closest(".cmp-game-button")))return;e.preventDefault(),window.didomiOnReady.push(()=>{(()=>{const e=window.Didomi.openCurrentUserStatusTransaction();e.enablePurpose("mesureda-6qyqaZXC"),window.sessionStorage.setItem("cmpModal","accepted"),e.commit(),r()})()});const n=t.closest("div.c-game-placeholder");n&&n.focus()})})},o=()=>{window.didomiOnReady=window.didomiOnReady||[],r(),window.didomiEventListeners.push({event:"consent.changed",listener(){r()}}),n()},a=e=>{const t=[`${e.name}=`,"expires=Thu, 1 Jan 1970 00:00:01 UTC","path=/"];e.domain&&t.push(`domain=${e.domain}`),document.cookie=t.join("; ")},s=e=>{document.cookie.split(";").map(e=>e.split("=")[0].trim()).filter(t=>-1===e.indexOf(t)).forEach(e=>{const{hostname:t}=window.location;a({name:e}),a({name:e,domain:t.substring(t.indexOf(".")+1)}),a({name:e,domain:t.substring(t.indexOf("."))}),a({name:e,domain:`.${t}`})})};var i=(e=>(e.down="down",e.heart="heart",e.laughing="laughing",e.sad="sad",e.shock="shock",e.up="up",e))(i||{});i.up,i.down,i.sad,i.heart,i.laughing,i.shock;const c=e=>{for(let t=sessionStorage.length-1;t>=0;t-=1){const r=sessionStorage.key(t);r&&-1===e.indexOf(r)&&sessionStorage.removeItem(r)}},l=e=>{localStorage.removeItem(e)},d=e=>{for(let t=localStorage.length-1;t>=0;t-=1){const r=localStorage.key(t);r&&-1===e.indexOf(r)&&l(r)}},u=(e,t)=>{let r=e.toLowerCase().replace(/[\s-]+/g,"-");return r=(e=>{let t=e;const r="ãàáäâẽèéëêìíïîõòóöôùúüûñç·/,:;";for(let e=0;e<30;e+=1)t=t.replace(new RegExp(r.charAt(e),"g"),"aaaaaeeeeeiiiiooooouuuunc-----".charAt(e));return t})(r),r.replace(/[^\w-]+/g,"").replace(/-*$/g,"")},p=()=>{const e=(()=>{const e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())})();delete e["didomiConfig.user.externalConsent.value"],delete e["didomiConfig.notice.enable"];const t=`${window.location.origin}${window.location.pathname}`,r=Object.entries(e).map(([e,t])=>[e,String(t)]),n=new URLSearchParams(r),o=n.toString()?`${t}?${n.toString()}`:t;window.history.replaceState({},document.title,o)};var m=(e=>(e.ARCHIVE_BY_DAY="archivebyday",e.ARCHIVE_BY_YEAR="archivebyyear",e.ARTICLE="article",e.ASTRO="astro",e.ASTRO_HOME="astrohome",e.CONTACT="contact",e.DIRECT="direct",e.ELECTIONS="elections",e.ELECTIONSHOME="electionshome",e.GAME="game",e.GAME_APP="gameapp",e.GAMEHOME="gamehome",e.HOME="home",e.JOB_DETAILS="jobdetails",e.JOBS="jobs",e.JOURNALIST="journalist",e.LA21E="la21e",e.LEGAL="legal",e.LEGALNOTICE="legalnotice",e.LEGALNOTICEHOME="legalnoticehome",e.LEGALNOTICEDEPARTMENT="legalnoticedepartment",e.LIVE="live",e.MOBILE_APPS="mobileapps",e.MOST_COMMENTED="mostcommented",e.MOST_READ="mostread",e.MOST_SHARED="mostshared",e.MOST_VIEWED="mostviewed",e.MOVIES="movies",e.NEWS="news",e.PARTNER="partner",e.REWIND="rewind",e.SEARCH="search",e.SECTION="section",e.SERVICE="service",e.SITEMAP="sitemap",e.SPORT="sport",e.STORY="story",e.TAG="tag",e.TRAFFIC="traffic",e.TV_HOME="tvhome",e.TV_LIVE="tvlive",e.TV_MOST_RECENT="tvmostrecent",e.TV_MOST_VIEWED="tvmostviewed",e.TV_SHOW="tvshow",e.TV_SHOWS="tvshows",e.TV_VIDEO="tvvideo",e.WEATHER="weather",e))(m||{}),f=(e=>(e.POOOL_ACCESS="poool-access",e.POOOL_ENGAGE="poool-engage",e.AUDION="audion",e.GOOGLE_SEARCH="google-search",e.DIGITEKA_VISIBLE_PLAYER="digiteka-visible-player",e.DIGITEKA_VIDEO_FEED="digiteka-video-feed",e.IDALGO="idalgo",e.NONLI="nonli",e.TABOOLA="taboola-sdk",e.MEDIEGO="mediego",e.BATCH="batch-sdk",e))(f||{});function h(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var y,g,w,b,v={exports:{}},x={},_={exports:{}},S={};function E(){if(y)return S;y=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),u=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,f={};function h(e,t,r){this.props=e,this.context=t,this.refs=f,this.updater=r||p}function g(){}function w(e,t,r){this.props=e,this.context=t,this.refs=f,this.updater=r||p}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=h.prototype;var b=w.prototype=new g;b.constructor=w,m(b,h.prototype),b.isPureReactComponent=!0;var v=Array.isArray,x=Object.prototype.hasOwnProperty,_={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function j(t,r,n){var o,a={},s=null,i=null;if(null!=r)for(o in void 0!==r.ref&&(i=r.ref),void 0!==r.key&&(s=""+r.key),r)x.call(r,o)&&!E.hasOwnProperty(o)&&(a[o]=r[o]);var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){for(var l=Array(c),d=0;d<c;d++)l[d]=arguments[d+2];a.children=l}if(t&&t.defaultProps)for(o in c=t.defaultProps)void 0===a[o]&&(a[o]=c[o]);return{$$typeof:e,type:t,key:s,ref:i,props:a,_owner:_.current}}function k(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var N=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function C(r,n,o,a,s){var i=typeof r;"undefined"!==i&&"boolean"!==i||(r=null);var c=!1;if(null===r)c=!0;else switch(i){case"string":case"number":c=!0;break;case"object":switch(r.$$typeof){case e:case t:c=!0}}if(c)return s=s(c=r),r=""===a?"."+O(c,0):a,v(s)?(o="",null!=r&&(o=r.replace(N,"$&/")+"/"),C(s,n,o,"",function(e){return e})):null!=s&&(k(s)&&(s=function(t,r){return{$$typeof:e,type:t.type,key:r,ref:t.ref,props:t.props,_owner:t._owner}}(s,o+(!s.key||c&&c.key===s.key?"":(""+s.key).replace(N,"$&/")+"/")+r)),n.push(s)),1;if(c=0,a=""===a?".":a+":",v(r))for(var l=0;l<r.length;l++){var d=a+O(i=r[l],l);c+=C(i,n,o,d,s)}else if(d=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=u&&e[u]||e["@@iterator"])?e:null}(r),"function"==typeof d)for(r=d.call(r),l=0;!(i=r.next()).done;)c+=C(i=i.value,n,o,d=a+O(i,l++),s);else if("object"===i)throw n=String(r),Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(r).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return c}function A(e,t,r){if(null==e)return e;var n=[],o=0;return C(e,n,"","",function(e){return t.call(r,e,o++)}),n}function $(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},R={transition:null},T={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:R,ReactCurrentOwner:_};function L(){throw Error("act(...) is not supported in production builds of React.")}return S.Children={map:A,forEach:function(e,t,r){A(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},S.Component=h,S.Fragment=r,S.Profiler=o,S.PureComponent=w,S.StrictMode=n,S.Suspense=c,S.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,S.act=L,S.cloneElement=function(t,r,n){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=m({},t.props),a=t.key,s=t.ref,i=t._owner;if(null!=r){if(void 0!==r.ref&&(s=r.ref,i=_.current),void 0!==r.key&&(a=""+r.key),t.type&&t.type.defaultProps)var c=t.type.defaultProps;for(l in r)x.call(r,l)&&!E.hasOwnProperty(l)&&(o[l]=void 0===r[l]&&void 0!==c?c[l]:r[l])}var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){c=Array(l);for(var d=0;d<l;d++)c[d]=arguments[d+2];o.children=c}return{$$typeof:e,type:t.type,key:a,ref:s,props:o,_owner:i}},S.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},S.createElement=j,S.createFactory=function(e){var t=j.bind(null,e);return t.type=e,t},S.createRef=function(){return{current:null}},S.forwardRef=function(e){return{$$typeof:i,render:e}},S.isValidElement=k,S.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:$}},S.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},S.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},S.unstable_act=L,S.useCallback=function(e,t){return I.current.useCallback(e,t)},S.useContext=function(e){return I.current.useContext(e)},S.useDebugValue=function(){},S.useDeferredValue=function(e){return I.current.useDeferredValue(e)},S.useEffect=function(e,t){return I.current.useEffect(e,t)},S.useId=function(){return I.current.useId()},S.useImperativeHandle=function(e,t,r){return I.current.useImperativeHandle(e,t,r)},S.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},S.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},S.useMemo=function(e,t){return I.current.useMemo(e,t)},S.useReducer=function(e,t,r){return I.current.useReducer(e,t,r)},S.useRef=function(e){return I.current.useRef(e)},S.useState=function(e){return I.current.useState(e)},S.useSyncExternalStore=function(e,t,r){return I.current.useSyncExternalStore(e,t,r)},S.useTransition=function(){return I.current.useTransition()},S.version="18.3.1",S}function j(){return g||(g=1,_.exports=E()),_.exports}
|
|
1
|
+
!function(){"use strict";const e=()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(e=>{if(e.getCurrentUserStatus().purposes["mesureda-6qyqaZXC"]?.enabled){Array.from(document.getElementsByClassName("cmp-placeholder")).forEach(e=>{e.classList.add("u-hidden")});Array.from(document.getElementsByClassName("js-game-wrapper")).forEach(e=>{e.classList.remove("u-hidden"),e.querySelectorAll("[data-href]").forEach(e=>{const t=e.getAttribute("data-href");t&&(e.setAttribute("href",t),e.removeAttribute("data-href"))}),e.querySelectorAll("[data-src]").forEach(e=>{const t=e.getAttribute("data-src");t&&(e.setAttribute("src",t),e.removeAttribute("data-src"))})})}else{Array.from(document.getElementsByClassName("cmp-placeholder")).forEach(e=>{e.classList.remove("u-hidden")})}})},t=()=>{document.querySelectorAll(".c-game-placeholder").forEach(t=>{t.addEventListener("click",t=>{const r=t.target;if(!(r instanceof HTMLElement&&r.closest(".cmp-game-button")))return;t.preventDefault(),window.didomiOnReady.push(()=>{(()=>{const t=window.Didomi.openCurrentUserStatusTransaction();t.enablePurpose("mesureda-6qyqaZXC"),window.sessionStorage.setItem("cmpModal","accepted"),t.commit(),e()})()});const n=r.closest("div.c-game-placeholder");n&&n.focus()})})},r=()=>{window.didomiOnReady=window.didomiOnReady||[],e(),window.didomiEventListeners.push({event:"consent.changed",listener(){e()}}),t()};var n=(e=>(e.ARCHIVE_BY_DAY="archivebyday",e.ARCHIVE_BY_YEAR="archivebyyear",e.ARTICLE="article",e.ASTRO="astro",e.ASTRO_HOME="astrohome",e.CONTACT="contact",e.DIRECT="direct",e.ELECTIONS="elections",e.ELECTIONSHOME="electionshome",e.GAME="game",e.GAME_APP="gameapp",e.GAMEHOME="gamehome",e.HOME="home",e.JOB_DETAILS="jobdetails",e.JOBS="jobs",e.JOURNALIST="journalist",e.LA21E="la21e",e.LEGAL="legal",e.LEGALNOTICE="legalnotice",e.LEGALNOTICEHOME="legalnoticehome",e.LEGALNOTICEDEPARTMENT="legalnoticedepartment",e.LIVE="live",e.MOBILE_APPS="mobileapps",e.MOST_COMMENTED="mostcommented",e.MOST_READ="mostread",e.MOST_SHARED="mostshared",e.MOST_VIEWED="mostviewed",e.MOVIES="movies",e.NEWS="news",e.PARTNER="partner",e.REWIND="rewind",e.SEARCH="search",e.SECTION="section",e.SERVICE="service",e.SITEMAP="sitemap",e.SPORT="sport",e.STORY="story",e.TAG="tag",e.TRAFFIC="traffic",e.TV_HOME="tvhome",e.TV_LIVE="tvlive",e.TV_MOST_RECENT="tvmostrecent",e.TV_MOST_VIEWED="tvmostviewed",e.TV_SHOW="tvshow",e.TV_SHOWS="tvshows",e.TV_VIDEO="tvvideo",e.WEATHER="weather",e))(n||{}),o=(e=>(e.POOOL_ACCESS="poool-access",e.POOOL_ENGAGE="poool-engage",e.AUDION="audion",e.GOOGLE_SEARCH="google-search",e.DIGITEKA_VISIBLE_PLAYER="digiteka-visible-player",e.DIGITEKA_VIDEO_FEED="digiteka-video-feed",e.IDALGO="idalgo",e.NONLI="nonli",e.TABOOLA="taboola-sdk",e.MEDIEGO="mediego",e.BATCH="batch-sdk",e))(o||{});function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s,i,c,l,d={exports:{}},u={},p={exports:{}},m={};function f(){if(s)return m;s=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),p=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,y={};function g(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||f}function w(){}function b(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||f}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=g.prototype;var v=b.prototype=new w;v.constructor=b,h(v,g.prototype),v.isPureReactComponent=!0;var _=Array.isArray,x=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function k(t,r,n){var o,a={},s=null,i=null;if(null!=r)for(o in void 0!==r.ref&&(i=r.ref),void 0!==r.key&&(s=""+r.key),r)x.call(r,o)&&!E.hasOwnProperty(o)&&(a[o]=r[o]);var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){for(var l=Array(c),d=0;d<c;d++)l[d]=arguments[d+2];a.children=l}if(t&&t.defaultProps)for(o in c=t.defaultProps)void 0===a[o]&&(a[o]=c[o]);return{$$typeof:e,type:t,key:s,ref:i,props:a,_owner:S.current}}function j(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var N=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function C(r,n,o,a,s){var i=typeof r;"undefined"!==i&&"boolean"!==i||(r=null);var c=!1;if(null===r)c=!0;else switch(i){case"string":case"number":c=!0;break;case"object":switch(r.$$typeof){case e:case t:c=!0}}if(c)return s=s(c=r),r=""===a?"."+O(c,0):a,_(s)?(o="",null!=r&&(o=r.replace(N,"$&/")+"/"),C(s,n,o,"",function(e){return e})):null!=s&&(j(s)&&(s=function(t,r){return{$$typeof:e,type:t.type,key:r,ref:t.ref,props:t.props,_owner:t._owner}}(s,o+(!s.key||c&&c.key===s.key?"":(""+s.key).replace(N,"$&/")+"/")+r)),n.push(s)),1;if(c=0,a=""===a?".":a+":",_(r))for(var l=0;l<r.length;l++){var d=a+O(i=r[l],l);c+=C(i,n,o,d,s)}else if(d=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(r),"function"==typeof d)for(r=d.call(r),l=0;!(i=r.next()).done;)c+=C(i=i.value,n,o,d=a+O(i,l++),s);else if("object"===i)throw n=String(r),Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(r).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return c}function A(e,t,r){if(null==e)return e;var n=[],o=0;return C(e,n,"","",function(e){return t.call(r,e,o++)}),n}function $(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},R={transition:null},T={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:R,ReactCurrentOwner:S};function L(){throw Error("act(...) is not supported in production builds of React.")}return m.Children={map:A,forEach:function(e,t,r){A(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!j(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},m.Component=g,m.Fragment=r,m.Profiler=o,m.PureComponent=b,m.StrictMode=n,m.Suspense=l,m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,m.act=L,m.cloneElement=function(t,r,n){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=h({},t.props),a=t.key,s=t.ref,i=t._owner;if(null!=r){if(void 0!==r.ref&&(s=r.ref,i=S.current),void 0!==r.key&&(a=""+r.key),t.type&&t.type.defaultProps)var c=t.type.defaultProps;for(l in r)x.call(r,l)&&!E.hasOwnProperty(l)&&(o[l]=void 0===r[l]&&void 0!==c?c[l]:r[l])}var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){c=Array(l);for(var d=0;d<l;d++)c[d]=arguments[d+2];o.children=c}return{$$typeof:e,type:t.type,key:a,ref:s,props:o,_owner:i}},m.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},m.createElement=k,m.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},m.createRef=function(){return{current:null}},m.forwardRef=function(e){return{$$typeof:c,render:e}},m.isValidElement=j,m.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:$}},m.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},m.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},m.unstable_act=L,m.useCallback=function(e,t){return I.current.useCallback(e,t)},m.useContext=function(e){return I.current.useContext(e)},m.useDebugValue=function(){},m.useDeferredValue=function(e){return I.current.useDeferredValue(e)},m.useEffect=function(e,t){return I.current.useEffect(e,t)},m.useId=function(){return I.current.useId()},m.useImperativeHandle=function(e,t,r){return I.current.useImperativeHandle(e,t,r)},m.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},m.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},m.useMemo=function(e,t){return I.current.useMemo(e,t)},m.useReducer=function(e,t,r){return I.current.useReducer(e,t,r)},m.useRef=function(e){return I.current.useRef(e)},m.useState=function(e){return I.current.useState(e)},m.useSyncExternalStore=function(e,t,r){return I.current.useSyncExternalStore(e,t,r)},m.useTransition=function(){return I.current.useTransition()},m.version="18.3.1",m}function h(){return i||(i=1,p.exports=f()),p.exports}
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var k=(b||(b=1,v.exports=function(){if(w)return x;w=1;var e=j(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,s){var i,c={},l=null,d=null;for(i in void 0!==s&&(l=""+s),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(d=r.ref),r)n.call(r,i)&&!a.hasOwnProperty(i)&&(c[i]=r[i]);if(e&&e.defaultProps)for(i in r=e.defaultProps)void 0===c[i]&&(c[i]=r[i]);return{$$typeof:t,type:e,key:l,ref:d,props:c,_owner:o.current}}return x.Fragment=r,x.jsx=s,x.jsxs=s,x}()),v.exports),N=h(j());function O(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C,A={exports:{}};var $,I=(C||(C=1,$=A,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=n(e,r(o)))}return e}function r(r){if("string"==typeof r||"number"==typeof r)return r;if("object"!=typeof r)return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var a in r)e.call(r,a)&&r[a]&&(o=n(o,a));return o}function n(e,t){return t?e?e+" "+t:e+t:e}$.exports?(t.default=t,$.exports=t):window.classNames=t}()),A.exports);const R=O(I),T={primary:{ultramarine:{value:"#4742FF",key:"{color.primary.ultramarine}"},"ultramarine-light":{value:"#6B72FB",key:"{color.primary.ultramarine-light}"}},secondary:{orange:{value:"#FA9917",key:"{color.secondary.orange}"},yellow:{value:"#F2E500",key:"{color.secondary.yellow}"},green:{value:"#6A9F4F",key:"{color.secondary.green}"},purple:{value:"#AE6BA2",key:"{color.secondary.purple}"},red:{value:"#DC0E19",key:"{color.secondary.red}"},scarlet:{value:"#FF3F3F",key:"{color.secondary.scarlet}"},blue:{value:"#0000FF",key:"{color.secondary.blue}"},"blue-grey":{value:"#253548",key:"{color.secondary.blue-grey}"},"blue-dark":{value:"#16202B",key:"{color.secondary.blue-dark}"},pink:{value:"#EF2A82",key:"{color.secondary.pink}"},sponsoring:{value:"#FFF5F1",key:"{color.secondary.sponsoring}"},"blue-light":{value:"#D4ECFB",key:"{color.secondary.blue-light}"},"blue-ice":{value:"#F0F4F8",key:"{color.secondary.blue-ice}"}},greyscale:{black:{value:"#000",key:"{color.greyscale.black}"},white:{value:"#FFF",key:"{color.greyscale.white}"},"grey-50":{value:"#FFFFFE",key:"{color.greyscale.grey-50}"},"grey-100":{value:"#F7F7F7",key:"{color.greyscale.grey-100}"},"grey-200":{value:"#DDD",key:"{color.greyscale.grey-200}"},"grey-300":{value:"#898A8C",key:"{color.greyscale.grey-300}"},"grey-400":{value:"#6A6A6A",key:"{color.greyscale.grey-400}"},"grey-500":{value:"#484848",key:"{color.greyscale.grey-500}"},"grey-600":{value:"#2F3134",key:"{color.greyscale.grey-600}"},"grey-700":{value:"#181A1E",key:"{color.greyscale.grey-700}"},"grey-800":{value:"#101D25",key:"{color.greyscale.grey-800}"},"grey-900":{value:"#0F1115",key:"{color.greyscale.grey-900}"}},status:{warning:{value:"#FA9917",key:"{color.status.warning}"},error:{value:"#DC0E19",key:"{color.status.error}"},success:{value:"#6A9F4F",key:"{color.status.success}"}},theme:{conso:{value:"#ff8689",key:"{color.theme.conso}"},default:{value:"#4742ff",key:"{color.theme.default}"},entertainment:{value:"#9d61ff",key:"{color.theme.entertainment}"},hightech:{value:"#8f98a9",key:"{color.theme.hightech}"},media:{value:"#4742ff",key:"{color.theme.media}"},"partenaires-externes":{value:"#4742ff",key:"{color.theme.partenaires-externes}"},partner:{value:"#fd8000",key:"{color.theme.partner}"},planet:{value:"#00b482",key:"{color.theme.planet}"},production:{value:"#c5be00",key:"{color.theme.production}"},publicommunique:{value:"#c5be00",key:"{color.theme.publicommunique}"},publishing:{value:"#c5be00",key:"{color.theme.publishing}"},sport:{value:"#6398ab",key:"{color.theme.sport}"},tempo:{value:"#ecb200",key:"{color.theme.tempo}"},"vie-pro":{value:"#b49b56",key:"{color.theme.vie-pro}"},infolocale:{value:"#4742ff",key:"{color.theme.infolocale}"},gaming:{value:"#fa6ee5",key:"{color.theme.gaming}"},jeux:{value:"#4742ff",key:"{color.theme.jeux}"}}},L={base:{value:"Arial",key:"{font-family.base}"},obviously:{value:"'Obviously', sans-serif",key:"{font-family.obviously}"},"source-serif-pro":{value:"'Source Serif Pro', serif",key:"{font-family.source-serif-pro}"}};Object.keys(L).filter(e=>!["base"].includes(e)),Array.from({length:20},(e,t)=>`75056AR${(t+1).toString().padStart(2,"0")}`),Array.from({length:16},(e,t)=>`13055AR${(t+1).toString().padStart(2,"0")}`),Array.from({length:9},(e,t)=>`69123AR0${t+1}`);const P=["extreme-gauche","parti-revolutionnaire-communiste","lutte-ouvriere","npa","parti-des-travailleurs","association-nationale-communistes","france-insoumise","divers-extreme-gauche","gauche","parti-communiste-francais","parti-des-citoyens-europeens","nouvelle-donne","parti-socialiste","parti-radical-de-gauche","nouveau-front-populaire","union-gauche","divers-gauche","ecologie","europe-ecologie-les-verts","equinoxe","ecologie-positive","ecologie-au-centre","ecologistes","les-ecologistes","centristes","renaissance","ensemble","modem","horizons","udi","union-centre","divers-centre","droite","les-republicains","droite-souverainiste","union-droite","divers-droite","extreme-droite","rassemblement-national","reconquete","les-patriotes","rester-libre","les-nationalistes","les-republicains-union-extreme-droite","udr","union-extreme-droite","divers-extreme-droite","divers","changement-citoyen","decidons-nous-meme","parti-animaliste","parti-pirate","union-des-democrates-musulmans","ecologie-politique","federation-citoyenne","republique-souveraine","resistons","france-libre","la-ruche-citoyenne","defendre-les-enfants","democratie-representative","europe-democratie-esperanto","union-populaire-republicaine","regionalistes"],V={alignItems:["align-items"],alignContent:["align-content"],justifyContent:["justify-content"],gap:["gap"],gapX:["row-gap"],gapY:["col-gap"],inline:["inline"],direction:["direction"],wrap:["wrap"],flexGrow:["flex-grow"]},F={align:["align-self"],basis:["flex-basis"],shrink:["flex-shrink"],grow:["flex-grow"]},D={radius:["border-radius"]},M={p:["padding"],pt:["padding-top"],pr:["padding-right"],pl:["padding-left"],pb:["padding-bottom"],px:["padding-left","padding-right"],py:["padding-top","padding-bottom"]},z={m:["margin"],mt:["margin-top"],mr:["margin-right"],ml:["margin-left"],mb:["margin-bottom"],mx:["margin-left","margin-right"],my:["margin-top","margin-bottom"],...M},q={...z,borderColor:["border-color"],bg:["background-color"],color:["color"],...D},B={textAlign:["text-align"],weight:["font-weight"],italic:["font-style"],textDecoration:["text-decoration"],textTransform:["text-transform"],fontFamily:["font-family"],whiteSpace:["white-space"]};function H(e){return N.forwardRef(e)}Object.keys(T.primary),Object.keys(T.secondary),Object.keys(T.greyscale),Object.keys(T.status),Object.keys(T.theme);const U=H(({as:e="button",variant:t,color:r=("ghost"===t||"link"===t?void 0:"primary"),children:n,iconProps:o,counter:a,isCentered:s=!1,isSquare:i=!1,isFullWidth:c=!1,isLoading:l=!1,size:d,isCloseWithProgress:u,closeProgressColor:p,...m},f)=>{const h={...m?.style,...p&&{"--button-close-progress-color":`var(--color-theme-${p})`}};return k.jsxs(ae,{...m,style:h,as:e,ref:f,alignItems:"center",justifyContent:"center",gap:"xxs",inline:"link"===t||"a"===e,radius:i?"0":void 0,className:R("c-btn",{[`c-btn--${r}`]:r,[`c-btn--${t}`]:t,[`c-btn--${d}`]:d,"c-btn--is-centered":s,"c-btn--is-loading":l,"c-btn--full-width":c},m?.className),children:[o&&k.jsx(G,{...o}),n,(0===a||a)&&k.jsx(ae,{justifyContent:"center",alignItems:"center",color:"grey-900",bg:"white",px:"xxs",radius:"s",className:"c-btn__counter",children:a}),u&&k.jsx("div",{className:"c-btn__close-progress"})]})});U.displayName="Button",H(({text:e,color:t="black",thickness:r="thin",...n},o)=>{const a=k.jsx(se,{bg:t,align:"center",className:R("c-divider__line",{[`c-divider__line--${r}`]:"thin"!==r})});return k.jsx(ae,{...n,ref:o,className:R("c-divider",{"c-divider--has-text":!!e},n?.className),children:e?k.jsxs(k.Fragment,{children:[a,k.jsx(se,{px:"xxs-2",className:"c-divider__text",children:k.jsx(le,{size:"xxs",color:t,textTransform:"uppercase",children:e})}),a]}):a})}),H(({color:e="black",thickness:t="thin",...r},n)=>k.jsx(oe,{...r,ref:n,bg:e,className:R("c-divider-vertical",{[`c-divider-vertical--${t}`]:"thin"!==t},r?.className)}));const G=H(({name:e,size:t=28,isRounded:r=!1,border:n,rotation:o,svgTitle:a,color:s,...i},c)=>{const l=Array.isArray(t)?t?.[0]:t,d=Array.isArray(t)?t?.[1]:t,u=!a,p=(e=>"string"==typeof e&&P.includes(e))(s);return k.jsx(oe,{as:"span",...i,ref:c,color:p?void 0:s,className:R("c-icon",{[`c-icon--has-border-${n}`]:n,"c-icon--is-rounded":r,[`c-icon--${o}`]:o,[`c-icon--${s}`]:p},i?.className),children:k.jsxs("svg",{width:l,height:d,role:"img","aria-label":a||void 0,"aria-hidden":u?"true":void 0,children:[a&&k.jsx("title",{children:a}),"circle"===e?k.jsx("circle",{}):k.jsx("use",{xlinkHref:`#${e}`})]})})}),W=H(({iconProps:e,as:t="button",variant:r,color:n,size:o,hasShadow:a,isLoading:s,isFloating:i,...c},l)=>k.jsx(ae,{...c,as:t,ref:l,alignItems:"center",justifyContent:"center",className:R("c-icon-btn",{[`c-icon-btn--${r}`]:r,[`c-icon-btn--${n}`]:n,[`c-icon-btn--${o}`]:o,"c-icon-btn--has-shadow":a,"c-icon-btn--is-loading":s,"c-icon-btn--is-floating":i},c?.className),children:k.jsx(G,{...e})}));W.displayName="IconButton",H(({id:e,className:t,color:r,required:n,label:o,icon:a,positionIcon:s="right",isIconButton:i=!1,iconButtonProps:c,variant:l,msg:d,containerProps:u,isRounded:p,isTransparent:m,isLarge:f,children:h,hint:y,error:g,...w},b)=>{const v=a&&k.jsx(U,{className:R("c-input-container__icon",`color-${r||"black"}`),iconProps:{name:a,size:18},variant:"ghost",...c}),x=a&&k.jsx(G,{className:"c-input-container__icon",name:a,size:18,color:r||"black"});return k.jsxs(ae,{direction:"column",...u,className:R("c-input",u?.className,{[`c-input--${l}`]:l}),children:[o&&k.jsxs("label",{htmlFor:e,className:"c-input__label",children:[o,n&&k.jsxs(le,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),y&&k.jsx(le,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:y}),k.jsxs(ae,{gap:a&&h?"xs":void 0,className:R("c-input-container",{"c-input-container--rounded":p,"c-input-container--transparent":m,"c-input-container--large":f,[`c-input-container--${s}`]:a||h}),children:[(a||h)&&k.jsxs(ae,{gap:"s",children:[i?v:x,h]}),k.jsx("input",{id:e,className:R("c-input-container__input",t),required:n,ref:b,"aria-describedby":[y?`${e}-hint`:null,g?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...w})]}),d?.length&&k.jsx(ae,{wrap:"wrap",gapY:"s",gapX:"xxs-2",mt:"xxs-2",children:d.map(({iconProps:e,textProps:t,value:r},n)=>k.jsxs(ae,{alignItems:"center",gap:"xxs",children:[e&&k.jsx(G,{...e}),k.jsx(le,{dangerouslySetInnerHTML:{__html:r},role:"alert",...t})]},n?.toString()))}),g&&k.jsx(le,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:g})]})});const Y=e=>{if(e.propValue&&["boolean","string","number"].includes(typeof e.propValue)||!e.propValue){const t=X({className:e.className,defaultModifier:e.defaultModifier||"xs",propValue:e.propValue});return t?[t]:[]}return Object.entries(e.propValue).reduce((t,[r,n])=>{const o=X({className:e.className,defaultModifier:r,propValue:n});return o&&t.push(o),t},[])},X=e=>{if(void 0!==e.propValue){if("boolean"!=typeof e.propValue){const t=(e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase())("number"==typeof e.propValue?e.propValue.toString():e.propValue);return e.className?`${e.className}-${t}@${e.defaultModifier}`:`${t}@${e.defaultModifier}`}if(!e.className)throw new Error('It is necessary to define the argument "className" !');return`${e.className}@${e.defaultModifier}`}},Z=({basis:e,shrink:t,grow:r,...n})=>R(...Y({propValue:e,className:"basis"}),...Y({propValue:t,className:"shrink"}),...Y({propValue:r,className:"grow"}),Q(n)),J=({inline:e=!1,direction:t,wrap:r,...n})=>R(...Y({propValue:e,className:e?"inline-flex":"flex"}),...Y({propValue:t,className:"direction"}),...Y({propValue:r}),K(n)),K=e=>R(...Y({propValue:e.alignItems,className:"items"}),...Y({propValue:e.alignContent,className:"content"}),...Y({propValue:e.justifyContent,className:"justify"}),...Y({propValue:e.gap,className:"gap"}),...Y({propValue:e.gapX,className:"gap-x"}),...Y({propValue:e.gapY,className:"gap-y"}),...Y({propValue:e.flexGrow,className:"grow"})),Q=e=>R(...Y({propValue:e.align,className:"self"})),ee=e=>"object"==typeof e.props?Object.keys(e.props).reduce((t,r)=>(e.systemPropNames.includes(r)||(t[r]=e.props[r]),t),{}):{},te=e=>R(Object.entries(e).filter(([e])=>Object.keys(z).includes(e)).reduce((e,[t,r])=>(e.push(...Y({className:t,propValue:r})),e),[])),re=e=>R(te(e),(e=>R({[`bg-${e.bg}`]:e.bg,[`color-${e.color}`]:e.color,[`border-color-${e.borderColor}`]:e.borderColor}))(e),(e=>R(Object.entries(e).filter(([e])=>Object.keys(D).includes(e)).reduce((e,[t,r])=>(e.push(...Y({className:t,propValue:r})),e),[])))(e)),ne=({textAlign:e,weight:t,textTransform:r,textDecoration:n,italic:o,fontFamily:a,whiteSpace:s})=>R(Y({className:"text",propValue:e}),Y({className:"font-weight",propValue:t}),{[`white-space-${s}`]:!!s,[`text-transform-${r}`]:!!r,[`text-decoration-${n}`]:!!n,"text-italic":!!o,[`font-${a}`]:!!a}),oe=H(({as:e="div",children:t,...r},n)=>k.jsx(e,{...ee({props:r,systemPropNames:Object.keys(q)}),ref:n,className:R(re(r),r?.className),children:t}));oe.displayName="Box";const ae=H(({as:e="div",children:t,...r},n)=>k.jsx(oe,{...ee({props:r,systemPropNames:Object.keys(V)}),as:e,ref:n,className:R(J(r),r?.className),children:t})),se=H(({as:e="div",children:t,...r},n)=>k.jsx(oe,{...ee({props:r,systemPropNames:Object.keys(F)}),as:e,ref:n,className:R(Z(r),r?.className),children:t}));H(({as:e="a",children:t,color:r,buttonColor:n,size:o,variant:a,weight:s,whiteSpace:i,tabIsSelected:c,tabVariant:l,tabColor:d,defaultColor:u="ultramarine",isUnderlined:p,...m},f)=>{if((a||n)&&r)throw new Error("You can't use the color prop together with the variant or buttonColor prop");const h=!(!a&&!n),y=l||d?R("c-tab",{[`c-tab--${l}`]:l,[`c-tab--${d}`]:d,"c-tab--selected":c,"c-tab--unselected":!c},ne({weight:s,whiteSpace:i}),m?.className):R("c-link",{"c-btn":h&&!r,[`c-btn--${n}`]:n&&!r,[`c-btn--${a}`]:a&&!r},ne({weight:s,whiteSpace:i}),Y({className:"text",propValue:o}),{"c-link--is-underlined":p},m?.className);return k.jsx(oe,{...m,as:e,ref:f,color:l||d||h?void 0:r||("inherit"===u?void 0:u),className:y,children:t})}),H(({variant:e,progressColor:t="ultramarine"},r)=>k.jsx(oe,{ref:r,bg:"grey-100",className:R("c-progress",{[`c-progress--${e}`]:e}),children:k.jsx(oe,{className:"c-progress__bar",bg:t,style:{width:"0%"}})})),H(({id:e,className:t,required:r,label:n,defaultValue:o,options:a,placeholder:s,containerProps:i,variant:c="default",icon:l,isLarge:d,hint:u,error:p,...m},f)=>k.jsxs(ae,{...i,ref:f,direction:"column",className:R("c-select",i?.className),children:[n&&k.jsxs("label",{htmlFor:e,className:"c-select__label",children:[n,r&&k.jsxs(le,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),u&&k.jsx(le,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:u}),k.jsxs("div",{className:"c-select__container",children:[l&&k.jsx(G,{className:"c-select__icon",name:l,size:18}),k.jsx(G,{className:`c-select__caret c-select__caret--${c}`,name:"arrow",size:12}),k.jsxs("select",{id:e,className:R("c-select__select",`c-select__select--${c}`,{"c-select__select--has-icon":!!l},{"c-select__select--large":d},te(m),t),required:r,defaultValue:o||a.filter(e=>e.isSelected)?.pop()?.value||"","aria-describedby":[u?`${e}-hint`:null,p?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...ee({props:m,systemPropNames:Object.keys(M)}),children:[s&&k.jsx("option",{value:"",disabled:!0,hidden:!0,children:s}),a.map(e=>k.jsx("option",{value:e.value,children:e.title},e.value))]})]}),p&&k.jsx(le,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:p})]}));var ie=(e=>(e.MOBILE="mobile",e.DESKTOP="desktop",e))(ie||{});H(({layout:e,children:t,itemsGap:r,hasSpaceAroundButtons:n=!1,buttonsColor:o,buttonsSize:a,colorVariant:s,sliderVariant:i="default",auto:c=!1,delay:l=3e3,...d},u)=>k.jsxs(oe,{...d,ref:u,className:R("c-slider js-navigation-container",d?.className),"data-slider-variant":i,"data-slider-auto":c,"data-slider-delay":l,children:[k.jsx(oe,{className:"c-slider__viewport js-navigation-container__list",children:k.jsx(ae,{className:"c-slider__list",alignItems:"center",gap:r,children:t})}),e===ie.DESKTOP&&k.jsx(oe,{className:"c-slider__buttons-container",children:Array.from(["previous","next"],e=>k.jsx(oe,{pr:n&&"previous"===e&&("translucent"===o&&"small"===a?"m":"l")||void 0,pl:n&&"next"===e&&("translucent"===o&&"small"===a?"m":"l")||void 0,className:R(`c-slider__button-container c-slider__button-container--${e} o-nav-button o-nav-button--${e}-button`,{"c-slider__button-container--has-space-around":n},{[`c-slider__button-container--${i}`]:i}),children:k.jsx(W,{color:o,size:a,..."videos"===i&&{p:"m"},iconProps:{name:"chevron",size:"videos"===i?14:12,rotation:"previous"===e?"half":void 0,svgTitle:"previous"===e?"Précédent":"Suivant"}})},e))})]})),H(({as:e="a",id:t,variant:r="primary",size:n,children:o,...a},s)=>k.jsx(oe,{...a,as:"span"===r?"span":e,href:"span"===r?void 0:a?.href,ref:s,className:R("c-tags",`c-tags--${r}`,{[`c-tags--${n}`]:n},a?.className),"data-id":t,py:a?.py??"0",px:a?.px??"xs",children:o})),H(({id:e,required:t,label:r,variant:n,msg:o,rows:a=5,containerProps:s,hint:i,error:c,...l},d)=>k.jsxs(ae,{direction:"column",ref:d,...s,className:R("c-textarea",s?.className),children:[r&&k.jsxs("label",{htmlFor:e,className:"c-textarea__label",children:[r,t&&k.jsxs(le,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),i&&k.jsx(le,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:i}),k.jsx(ae,{className:"c-textarea-container",children:k.jsx("textarea",{rows:a,placeholder:"Votre message...",required:t,...l,id:e,name:e,className:R("c-textarea-container__input",{[`c-textarea-container__input--${n}`]:n,"c-textarea-container__input--hint":!!i,"c-textarea-container__input--error":!!c},l?.className),"aria-describedby":[i?`${e}-hint`:null,c?`${e}-error`:null].filter(Boolean).join(" ")||void 0})}),o?.length&&k.jsx(ae,{wrap:"wrap",gapY:"s",gapX:"xxs-2",mt:"xxs-2",children:o.map(({iconProps:e,textProps:t,value:r},n)=>k.jsxs(ae,{alignItems:"center",gap:"xxs",children:[e&&k.jsx(G,{...e}),k.jsx(le,{dangerouslySetInnerHTML:{__html:r},role:"alert",...t})]},n?.toString()))}),c&&k.jsx(le,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:c})]}));const ce=H(({as:e="h1",size:t,children:r,...n},o)=>k.jsx(de,{...n,as:e,ref:o,className:R(Y({className:"heading",propValue:t}),n?.className),children:r})),le=H(({as:e="p",size:t,highlighted:r,children:n,...o},a)=>k.jsx(de,{as:r?"span":e,bg:r?"sponsoring":o.bg,p:r?"xxs":o.p,color:r?"grey-800":o.color,...o,ref:a,className:R(Y({className:"text",propValue:t}),{"text-highlighted":r},o?.className),children:n})),de=H(({as:e="p",children:t,...r},n)=>t&&t.toString().length||r?.dangerouslySetInnerHTML?k.jsx(oe,{...ee({props:r,systemPropNames:Object.keys(B)}),as:e,ref:n,className:R(ne(r),r?.className),children:t}):null);H(({icon:e,title:t,content:r,...n},o)=>k.jsxs(oe,{...n,ref:o,className:R("c-astro-topic-card",n?.className),children:[k.jsxs(ae,{alignItems:"center",mb:"s",children:[k.jsx(G,{mr:"xs",name:e,size:21}),k.jsx(ce,{as:"h3",size:"xs",children:t})]}),k.jsx(le,{size:"m",children:r})]})),H(({as:e="article",children:t,className:r,clickable:n=!1,...o},a)=>k.jsx(ae,{...o,as:e,ref:a,justifyContent:o?.justifyContent||"between",className:R("c-card-container",{"c-card-container--clickable":n},r),children:t})),H(({index:e,textTitleProps:t,headingTitleProps:r,titleIconProps:n,isOpen:o,contentWithBorder:a=!0,contentProps:s,iconProps:i,btnProps:c,children:l,isDropdown:d,...u},p)=>k.jsxs(oe,{...u,className:R("c-collapse js-collapse",{"c-collapse--dropdown":d}),ref:p,children:[k.jsxs(oe,{...c,as:"button",type:"button",id:`c-collapse__button-${e}`,pl:c?.pl||"l",py:c?.py||"xxs",className:R("c-collapse__button js-collapse__button",c?.className),"aria-controls":`c-collapse__content-${e}`,"aria-expanded":o||"false",children:[n?k.jsxs(ae,{alignItems:"center",children:[k.jsx(G,{size:34,mr:"xs",...n}),t?.children]}):r?k.jsx(ce,{as:"h3",size:"xxs",color:"black",...r,children:r?.children}):k.jsx(le,{size:"l",color:"black",...t,children:t?.children}),k.jsx(G,{name:"chevron",size:16,...i,className:R("c-collapse__icon",i?.className)})]}),k.jsx(ae,{...s,direction:"column",p:s?.p||"xl",id:`c-collapse__content-${e}`,"aria-hidden":o?!o:"true","aria-labelledby":`c-collapse__button-${e}`,className:R("c-collapse__content",{"c-collapse__content--with-border":a}),role:"tabpanel",children:l})]}));const ue=N.forwardRef(({href:e,children:t,...r},n)=>k.jsx("a",{href:e,className:R("c-skip-link",re(r),r?.className),ref:n,...r,children:t}));ue.displayName="SkipLink";const pe=["20mnToken","20mnUserDataLayer","20mnTutorial","20mnUserInfo","20mnUserSession","_vfa","_vfb","_vfz","atauthority","atid","atidvisitor","atidx","atuserid","didomi_dcs","didomi_token","euconsent-v2","osano_consentmanager","osano_consentmanager_expdate","osano_consentmanager_uuid","SESSIDSF","SESSIDSFRM","TCPID","TSTD","ei_client_id","_biz_pendingA","_biz_flagsA","_biz_uid","_biz_nA","ajs_group_id","ajs_user_id","ajs_anonymous_id","TSNGUID","_mkto_trk","JSESSIONID","staging-login_idle_session_timeout","login_idle_session_timeout","lang","auth_expiration_timestamp","sticky-scorecast-business-chat","__utna","__utnv","auth_token","PHPSESSID","sticky-scorecast-business-app","sticky-scorecast-prod-app","realm","_pcid","AFFICHE_C"],me=["consent_validity_date","20mn-articlesSaved","20mnBreakingNews","20mn-visits-content","data-preferences-consent","forward-disable-audience-measure"],fe=["com.batch.sessionId"],he=()=>{let e,r;window.cmpVariables={consentEventsCount:0},window.didomiEventListeners.push({event:"consent.changed",listener:()=>{if(document.location.href.includes("webview_player"))return;const n=(e=>{const t=document.cookie.split(";").filter(t=>-1!==t.indexOf(e))[0];return t?t.split("=")[1]:"{}"})("euconsent-v2"),o=window.cmpVariables.consentEventsCount>0||!!n,a=window.sessionStorage.getItem("cmpModal");o&&!a&&(e&&clearTimeout(e),r&&clearTimeout(r),e=setTimeout(()=>{const e=window.Didomi.getCurrentUserStatus(),r=!e.purposes.cookies?.enabled,n=!e.purposes["publicite-9qedKJMX"]?.enabled,o=!e.purposes["mesureda-6qyqaZXC"]?.enabled;(r||n||o)&&(s(pe),d(me),c(fe),p()),window.didomiState.didomiPurposesDisabled||window.didomiState.didomiVendorsDisabled||localStorage.setItem(t,"false")},150),r=setTimeout(()=>{window.location.reload()},window.layout===ie.DESKTOP?450:550)),a&&window.sessionStorage.removeItem("cmpModal"),window.cmpVariables.consentEventsCount+=1}})},ye=()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(e=>{const t=Array.from(document.getElementsByClassName("embed-placeholder")),r=e.getCurrentUserStatus(),n=r?.purposes?.["activation-gGierZpp"]?.enabled;t.forEach(e=>{const t=e.querySelector(".cmp-placeholder"),o=e.querySelector(".embed-wrapper");if(t instanceof Element&&o instanceof Element){if(!n||!(r?.vendors[e.getAttribute("data-vendor")||""]?.enabled??1))return t.classList.remove("u-hidden"),void o.classList.add("u-hidden");t.classList.add("u-hidden"),o.classList.remove("u-hidden"),o.querySelectorAll("[data-src]").forEach(e=>{const t=e.getAttribute("data-src");t&&(e.setAttribute("src",t),e.removeAttribute("data-src"))})}})})},ge=()=>{document.addEventListener("click",e=>{const t=e.target;if(!(t instanceof HTMLElement&&t.closest(".cmp-button")))return;e.preventDefault();const r=t.closest("div.embed-placeholder"),n=r instanceof HTMLElement?r.dataset.vendor??void 0:void 0;window.didomiOnReady.push(()=>{(e=>{const t=window.Didomi.openCurrentUserStatusTransaction();t.enablePurpose("activation-gGierZpp"),e&&t.enableVendor(e),window.sessionStorage.setItem("cmpModal","accepted"),t.commit(),ye()})(n)}),r&&r.focus()})},we=e=>{const t=document.createElement("script");if(t.type="text/javascript","async"===e.load?t.async=!0:"defer"===e.load&&(t.defer=!0),"src"in e&&e.src){const r=eval;t.src=e.src?.replace(/%(.*?)%/,(e,t)=>r(t))}e.name&&(performance.mark(`20mn:${e.name}:Start`),t.onerror=r=>{performance.mark(`20mn:${e.name}:Error`),console.error(`Script failed to load: ${e.name}${t.src?` (${t.src})`:""}`,r)}),(e.name||e.onLoad)&&(t.onload=()=>{e.name&&performance.mark(`20mn:${e.name}:End`),e.onLoad&&e.onLoad()}),"text"in e&&e.text&&(t.innerHTML=e.text),e.id&&(t.id=e.id),e.dataAttributes&&Object.entries(e.dataAttributes).forEach(([e,r])=>{var n;t.setAttribute(`data-${n=e,n.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}`,r)}),"head"===e.target&&document.head?document.head.appendChild(t):document.body?document.body.appendChild(t):(window.bodyScripts=window.bodyScripts||[],window.bodyScripts.push(t))};let be=null;const ve=()=>{window.pa?.privacy?.setMode("exempt"),window.Didomi.getCurrentUserStatus().purposes["mesureda-6qyqaZXC"]?.enabled&&window.pa?.privacy?.setMode("optin")},xe=()=>{const{hostname:e}=window.location;if(window.__webo_withdraw_fired)return;window.__webo_withdraw_fired=!0,window.wamid="10069";const t=navigator.sendBeacon;navigator.sendBeacon=function(r,n){const o=t.call(this,r,n);try{const t="string"==typeof r?r:r.toString(),s="string"==typeof n?JSON.parse(n):null;return o&&t.includes("consent/withdraw")&&s?.affiche_c&&(a({name:"AFFICHE_C",domain:e.substring(e.indexOf("."))}),a({name:"AFFICHE_C"}),a({name:"AFFICHE_C",domain:e})),!0}catch(e){return console.error("Error while withdrawing consent from Weborama",e),!1}},we({name:"weborama-consent-withdrawal",src:"https://cstatic.weborama.fr/js/wamf/consent_withdrawal.min.js",load:"async"})},_e=()=>{const e=window.Didomi.getCurrentUserStatus();return{weborama:e.vendors.weborama?.enabled?1:0,vendor366:e.vendors["366sas-U9KhdfCC"]?.enabled?1:0}},Se=()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(()=>{be=_e()}),window.didomiEventListeners=window.didomiEventListeners||[],window.didomiEventListeners.push({event:"consent.changed",listener:()=>{(()=>{const e=_e();if(((e,t)=>!!t&&e.weborama===t.weborama&&e.vendor366===t.vendor366)(e,be))return;const t=be;be=e,t&&((e,t)=>1===e.weborama&&0===t.weborama||1===e.vendor366&&0===t.vendor366)(t,e)&&xe()})()}})},Ee=()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(e=>{if(!e.shouldUserStatusBeCollected())try{((e,t)=>{const r=window.thirdPartiesConfig?.conditional?.find(t=>u(t.name)===e);if(!r)throw new Error(`Script with name ${e} not found`);we({...r,...t})})(f.BATCH)}catch(e){e instanceof Error&&console.error(e.message)}})},je=()=>{document.cookie="_pprv=; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Path=/; SameSite=Lax; Secure","true"!==localStorage.getItem(t)?(window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(()=>{ve()}),window.didomiEventListeners=window.didomiEventListeners||[],window.didomiEventListeners.push({event:"consent.changed",listener:()=>{ve()}})):window.pa?.privacy?.setMode("optout"),Se(),Ee()};window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(()=>{let e=new Date;const t=e.getTimezoneOffset();e=new Date(e.getTime()-60*t*1e3);const r=e.toISOString().split("T")[0],n=localStorage.getItem("consent_validity_date");n&&r>n&&(window.Didomi.reset(),localStorage.removeItem("consent_validity_date"),window.disapproveDidomiGTMEvents=!0,s(pe),d(me),c(fe),window.Didomi.notice.show())}),je(),he(),window.didomiOnReady=window.didomiOnReady||[],ye(),window.didomiEventListeners.push({event:"consent.changed",listener(){ye()}}),ge(),window.datalayerInfo?.pageName&&[m.GAME,m.GAME_APP].includes(window.datalayerInfo?.pageName)&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",o):o()),window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(()=>{const e=document.getElementById("choice-consent");e&&window?.Didomi?.preferences?.show&&e.addEventListener("click",()=>{window.Didomi.preferences.show()})}),window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(e=>{const t=document.querySelector(".js-rewind-alert");t&&(e.getCurrentUserStatus().purposes["mesureda-6qyqaZXC"]?.enabled?t.classList.add("u-hidden"):t.classList.remove("u-hidden"))}),setTimeout(()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(e=>{e.getCurrentUserStatus().purposes.cookies?.enabled||s(pe)})},3e4),window.didomiOnReady.push(t=>{const r=(e=>{const t=localStorage.getItem(e);return t?JSON.parse(t):void 0})(e);if(void 0!==r){if(l(e),!r)return;const n=t.openCurrentUserStatusTransaction();n.disablePurpose("mesureda-6qyqaZXC"),n.disableVendor("cxense"),n.commit()}})}();
|
|
10
|
+
*/var y=(l||(l=1,d.exports=function(){if(c)return u;c=1;var e=h(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,s){var i,c={},l=null,d=null;for(i in void 0!==s&&(l=""+s),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(d=r.ref),r)n.call(r,i)&&!a.hasOwnProperty(i)&&(c[i]=r[i]);if(e&&e.defaultProps)for(i in r=e.defaultProps)void 0===c[i]&&(c[i]=r[i]);return{$$typeof:t,type:e,key:l,ref:d,props:c,_owner:o.current}}return u.Fragment=r,u.jsx=s,u.jsxs=s,u}()),d.exports),g=a(h());function w(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var b,v={exports:{}};var _,x=(b||(b=1,_=v,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=n(e,r(o)))}return e}function r(r){if("string"==typeof r||"number"==typeof r)return r;if("object"!=typeof r)return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var a in r)e.call(r,a)&&r[a]&&(o=n(o,a));return o}function n(e,t){return t?e?e+" "+t:e+t:e}_.exports?(t.default=t,_.exports=t):window.classNames=t}()),v.exports);const S=w(x),E={primary:{ultramarine:{value:"#4742FF",key:"{color.primary.ultramarine}"},"ultramarine-light":{value:"#6B72FB",key:"{color.primary.ultramarine-light}"}},secondary:{orange:{value:"#FA9917",key:"{color.secondary.orange}"},yellow:{value:"#F2E500",key:"{color.secondary.yellow}"},green:{value:"#6A9F4F",key:"{color.secondary.green}"},purple:{value:"#AE6BA2",key:"{color.secondary.purple}"},red:{value:"#DC0E19",key:"{color.secondary.red}"},scarlet:{value:"#FF3F3F",key:"{color.secondary.scarlet}"},blue:{value:"#0000FF",key:"{color.secondary.blue}"},"blue-grey":{value:"#253548",key:"{color.secondary.blue-grey}"},"blue-dark":{value:"#16202B",key:"{color.secondary.blue-dark}"},pink:{value:"#EF2A82",key:"{color.secondary.pink}"},sponsoring:{value:"#FFF5F1",key:"{color.secondary.sponsoring}"},"blue-light":{value:"#D4ECFB",key:"{color.secondary.blue-light}"},"blue-ice":{value:"#F0F4F8",key:"{color.secondary.blue-ice}"}},greyscale:{black:{value:"#000",key:"{color.greyscale.black}"},white:{value:"#FFF",key:"{color.greyscale.white}"},"grey-50":{value:"#FFFFFE",key:"{color.greyscale.grey-50}"},"grey-100":{value:"#F7F7F7",key:"{color.greyscale.grey-100}"},"grey-200":{value:"#DDD",key:"{color.greyscale.grey-200}"},"grey-300":{value:"#898A8C",key:"{color.greyscale.grey-300}"},"grey-400":{value:"#6A6A6A",key:"{color.greyscale.grey-400}"},"grey-500":{value:"#484848",key:"{color.greyscale.grey-500}"},"grey-600":{value:"#2F3134",key:"{color.greyscale.grey-600}"},"grey-700":{value:"#181A1E",key:"{color.greyscale.grey-700}"},"grey-800":{value:"#101D25",key:"{color.greyscale.grey-800}"},"grey-900":{value:"#0F1115",key:"{color.greyscale.grey-900}"}},status:{warning:{value:"#FA9917",key:"{color.status.warning}"},error:{value:"#DC0E19",key:"{color.status.error}"},success:{value:"#6A9F4F",key:"{color.status.success}"}},theme:{conso:{value:"#ff8689",key:"{color.theme.conso}"},default:{value:"#4742ff",key:"{color.theme.default}"},entertainment:{value:"#9d61ff",key:"{color.theme.entertainment}"},hightech:{value:"#8f98a9",key:"{color.theme.hightech}"},media:{value:"#4742ff",key:"{color.theme.media}"},"partenaires-externes":{value:"#4742ff",key:"{color.theme.partenaires-externes}"},partner:{value:"#fd8000",key:"{color.theme.partner}"},planet:{value:"#00b482",key:"{color.theme.planet}"},production:{value:"#c5be00",key:"{color.theme.production}"},publicommunique:{value:"#c5be00",key:"{color.theme.publicommunique}"},publishing:{value:"#c5be00",key:"{color.theme.publishing}"},sport:{value:"#6398ab",key:"{color.theme.sport}"},tempo:{value:"#ecb200",key:"{color.theme.tempo}"},"vie-pro":{value:"#b49b56",key:"{color.theme.vie-pro}"},infolocale:{value:"#4742ff",key:"{color.theme.infolocale}"},gaming:{value:"#fa6ee5",key:"{color.theme.gaming}"},jeux:{value:"#4742ff",key:"{color.theme.jeux}"}}},k={base:{value:"Arial",key:"{font-family.base}"},obviously:{value:"'Obviously', sans-serif",key:"{font-family.obviously}"},"source-serif-pro":{value:"'Source Serif Pro', serif",key:"{font-family.source-serif-pro}"}};Object.keys(k).filter(e=>!["base"].includes(e)),Array.from({length:20},(e,t)=>`75056AR${(t+1).toString().padStart(2,"0")}`),Array.from({length:16},(e,t)=>`13055AR${(t+1).toString().padStart(2,"0")}`),Array.from({length:9},(e,t)=>`69123AR0${t+1}`);const j=["extreme-gauche","parti-revolutionnaire-communiste","lutte-ouvriere","npa","parti-des-travailleurs","association-nationale-communistes","france-insoumise","divers-extreme-gauche","gauche","parti-communiste-francais","parti-des-citoyens-europeens","nouvelle-donne","parti-socialiste","parti-radical-de-gauche","nouveau-front-populaire","union-gauche","divers-gauche","ecologie","europe-ecologie-les-verts","equinoxe","ecologie-positive","ecologie-au-centre","ecologistes","les-ecologistes","centristes","renaissance","ensemble","modem","horizons","udi","union-centre","divers-centre","droite","les-republicains","droite-souverainiste","union-droite","divers-droite","extreme-droite","rassemblement-national","reconquete","les-patriotes","rester-libre","les-nationalistes","les-republicains-union-extreme-droite","udr","union-extreme-droite","divers-extreme-droite","divers","changement-citoyen","decidons-nous-meme","parti-animaliste","parti-pirate","union-des-democrates-musulmans","ecologie-politique","federation-citoyenne","republique-souveraine","resistons","france-libre","la-ruche-citoyenne","defendre-les-enfants","democratie-representative","europe-democratie-esperanto","union-populaire-republicaine","regionalistes"],N={alignItems:["align-items"],alignContent:["align-content"],justifyContent:["justify-content"],gap:["gap"],gapX:["row-gap"],gapY:["col-gap"],inline:["inline"],direction:["direction"],wrap:["wrap"],flexGrow:["flex-grow"]},O={align:["align-self"],basis:["flex-basis"],shrink:["flex-shrink"],grow:["flex-grow"]},C={radius:["border-radius"]},A={p:["padding"],pt:["padding-top"],pr:["padding-right"],pl:["padding-left"],pb:["padding-bottom"],px:["padding-left","padding-right"],py:["padding-top","padding-bottom"]},$={m:["margin"],mt:["margin-top"],mr:["margin-right"],ml:["margin-left"],mb:["margin-bottom"],mx:["margin-left","margin-right"],my:["margin-top","margin-bottom"],...A},I={...$,borderColor:["border-color"],bg:["background-color"],color:["color"],...C},R={textAlign:["text-align"],weight:["font-weight"],italic:["font-style"],textDecoration:["text-decoration"],textTransform:["text-transform"],fontFamily:["font-family"],whiteSpace:["white-space"]};function T(e){return g.forwardRef(e)}Object.keys(E.primary),Object.keys(E.secondary),Object.keys(E.greyscale),Object.keys(E.status),Object.keys(E.theme);const L=T(({as:e="button",variant:t,color:r=("ghost"===t||"link"===t?void 0:"primary"),children:n,iconProps:o,counter:a,isCentered:s=!1,isSquare:i=!1,isFullWidth:c=!1,isLoading:l=!1,size:d,isCloseWithProgress:u,closeProgressColor:p,...m},f)=>{const h={...m?.style,...p&&{"--button-close-progress-color":`var(--color-theme-${p})`}};return y.jsxs(J,{...m,style:h,as:e,ref:f,alignItems:"center",justifyContent:"center",gap:"xxs",inline:"link"===t||"a"===e,radius:i?"0":void 0,className:S("c-btn",{[`c-btn--${r}`]:r,[`c-btn--${t}`]:t,[`c-btn--${d}`]:d,"c-btn--is-centered":s,"c-btn--is-loading":l,"c-btn--full-width":c},m?.className),children:[o&&y.jsx(V,{...o}),n,(0===a||a)&&y.jsx(J,{justifyContent:"center",alignItems:"center",color:"grey-900",bg:"white",px:"xxs",radius:"s",className:"c-btn__counter",children:a}),u&&y.jsx("div",{className:"c-btn__close-progress"})]})});L.displayName="Button",T(({text:e,color:t="black",thickness:r="thin",...n},o)=>{const a=y.jsx(Y,{bg:t,align:"center",className:S("c-divider__line",{[`c-divider__line--${r}`]:"thin"!==r})});return y.jsx(J,{...n,ref:o,className:S("c-divider",{"c-divider--has-text":!!e},n?.className),children:e?y.jsxs(y.Fragment,{children:[a,y.jsx(Y,{px:"xxs-2",className:"c-divider__text",children:y.jsx(Q,{size:"xxs",color:t,textTransform:"uppercase",children:e})}),a]}):a})}),T(({color:e="black",thickness:t="thin",...r},n)=>y.jsx(X,{...r,ref:n,bg:e,className:S("c-divider-vertical",{[`c-divider-vertical--${t}`]:"thin"!==t},r?.className)}));const V=T(({name:e,size:t=28,isRounded:r=!1,border:n,rotation:o,svgTitle:a,color:s,...i},c)=>{const l=Array.isArray(t)?t?.[0]:t,d=Array.isArray(t)?t?.[1]:t,u=!a,p=(e=>"string"==typeof e&&j.includes(e))(s);return y.jsx(X,{as:"span",...i,ref:c,color:p?void 0:s,className:S("c-icon",{[`c-icon--has-border-${n}`]:n,"c-icon--is-rounded":r,[`c-icon--${o}`]:o,[`c-icon--${s}`]:p},i?.className),children:y.jsxs("svg",{width:l,height:d,role:"img","aria-label":a||void 0,"aria-hidden":u?"true":void 0,children:[a&&y.jsx("title",{children:a}),"circle"===e?y.jsx("circle",{}):y.jsx("use",{xlinkHref:`#${e}`})]})})}),P=T(({iconProps:e,as:t="button",variant:r,color:n,size:o,hasShadow:a,isLoading:s,isFloating:i,...c},l)=>y.jsx(J,{...c,as:t,ref:l,alignItems:"center",justifyContent:"center",className:S("c-icon-btn",{[`c-icon-btn--${r}`]:r,[`c-icon-btn--${n}`]:n,[`c-icon-btn--${o}`]:o,"c-icon-btn--has-shadow":a,"c-icon-btn--is-loading":s,"c-icon-btn--is-floating":i},c?.className),children:y.jsx(V,{...e})}));P.displayName="IconButton",T(({id:e,className:t,color:r,required:n,label:o,icon:a,positionIcon:s="right",isIconButton:i=!1,iconButtonProps:c,variant:l,msg:d,containerProps:u,isRounded:p,isTransparent:m,isLarge:f,children:h,hint:g,error:w,...b},v)=>{const _=a&&y.jsx(L,{className:S("c-input-container__icon",`color-${r||"black"}`),iconProps:{name:a,size:18},variant:"ghost",...c}),x=a&&y.jsx(V,{className:"c-input-container__icon",name:a,size:18,color:r||"black"});return y.jsxs(J,{direction:"column",...u,className:S("c-input",u?.className,{[`c-input--${l}`]:l}),children:[o&&y.jsxs("label",{htmlFor:e,className:"c-input__label",children:[o,n&&y.jsxs(Q,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),g&&y.jsx(Q,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:g}),y.jsxs(J,{gap:a&&h?"xs":void 0,className:S("c-input-container",{"c-input-container--rounded":p,"c-input-container--transparent":m,"c-input-container--large":f,[`c-input-container--${s}`]:a||h}),children:[(a||h)&&y.jsxs(J,{gap:"s",children:[i?_:x,h]}),y.jsx("input",{id:e,className:S("c-input-container__input",t),required:n,ref:v,"aria-describedby":[g?`${e}-hint`:null,w?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...b})]}),d?.length&&y.jsx(J,{wrap:"wrap",gapY:"s",gapX:"xxs-2",mt:"xxs-2",children:d.map(({iconProps:e,textProps:t,value:r},n)=>y.jsxs(J,{alignItems:"center",gap:"xxs",children:[e&&y.jsx(V,{...e}),y.jsx(Q,{dangerouslySetInnerHTML:{__html:r},role:"alert",...t})]},n?.toString()))}),w&&y.jsx(Q,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:w})]})});const F=e=>{if(e.propValue&&["boolean","string","number"].includes(typeof e.propValue)||!e.propValue){const t=D({className:e.className,defaultModifier:e.defaultModifier||"xs",propValue:e.propValue});return t?[t]:[]}return Object.entries(e.propValue).reduce((t,[r,n])=>{const o=D({className:e.className,defaultModifier:r,propValue:n});return o&&t.push(o),t},[])},D=e=>{if(void 0!==e.propValue){if("boolean"!=typeof e.propValue){const t=(e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase())("number"==typeof e.propValue?e.propValue.toString():e.propValue);return e.className?`${e.className}-${t}@${e.defaultModifier}`:`${t}@${e.defaultModifier}`}if(!e.className)throw new Error('It is necessary to define the argument "className" !');return`${e.className}@${e.defaultModifier}`}},M=({basis:e,shrink:t,grow:r,...n})=>S(...F({propValue:e,className:"basis"}),...F({propValue:t,className:"shrink"}),...F({propValue:r,className:"grow"}),U(n)),q=({inline:e=!1,direction:t,wrap:r,...n})=>S(...F({propValue:e,className:e?"inline-flex":"flex"}),...F({propValue:t,className:"direction"}),...F({propValue:r}),z(n)),z=e=>S(...F({propValue:e.alignItems,className:"items"}),...F({propValue:e.alignContent,className:"content"}),...F({propValue:e.justifyContent,className:"justify"}),...F({propValue:e.gap,className:"gap"}),...F({propValue:e.gapX,className:"gap-x"}),...F({propValue:e.gapY,className:"gap-y"}),...F({propValue:e.flexGrow,className:"grow"})),U=e=>S(...F({propValue:e.align,className:"self"})),B=e=>"object"==typeof e.props?Object.keys(e.props).reduce((t,r)=>(e.systemPropNames.includes(r)||(t[r]=e.props[r]),t),{}):{},H=e=>S(Object.entries(e).filter(([e])=>Object.keys($).includes(e)).reduce((e,[t,r])=>(e.push(...F({className:t,propValue:r})),e),[])),G=e=>S(H(e),(e=>S({[`bg-${e.bg}`]:e.bg,[`color-${e.color}`]:e.color,[`border-color-${e.borderColor}`]:e.borderColor}))(e),(e=>S(Object.entries(e).filter(([e])=>Object.keys(C).includes(e)).reduce((e,[t,r])=>(e.push(...F({className:t,propValue:r})),e),[])))(e)),W=({textAlign:e,weight:t,textTransform:r,textDecoration:n,italic:o,fontFamily:a,whiteSpace:s})=>S(F({className:"text",propValue:e}),F({className:"font-weight",propValue:t}),{[`white-space-${s}`]:!!s,[`text-transform-${r}`]:!!r,[`text-decoration-${n}`]:!!n,"text-italic":!!o,[`font-${a}`]:!!a}),X=T(({as:e="div",children:t,...r},n)=>y.jsx(e,{...B({props:r,systemPropNames:Object.keys(I)}),ref:n,className:S(G(r),r?.className),children:t}));X.displayName="Box";const J=T(({as:e="div",children:t,...r},n)=>y.jsx(X,{...B({props:r,systemPropNames:Object.keys(N)}),as:e,ref:n,className:S(q(r),r?.className),children:t})),Y=T(({as:e="div",children:t,...r},n)=>y.jsx(X,{...B({props:r,systemPropNames:Object.keys(O)}),as:e,ref:n,className:S(M(r),r?.className),children:t}));T(({as:e="a",children:t,color:r,buttonColor:n,size:o,variant:a,weight:s,whiteSpace:i,tabIsSelected:c,tabVariant:l,tabColor:d,defaultColor:u="ultramarine",isUnderlined:p,...m},f)=>{if((a||n)&&r)throw new Error("You can't use the color prop together with the variant or buttonColor prop");const h=!(!a&&!n),g=l||d?S("c-tab",{[`c-tab--${l}`]:l,[`c-tab--${d}`]:d,"c-tab--selected":c,"c-tab--unselected":!c},W({weight:s,whiteSpace:i}),m?.className):S("c-link",{"c-btn":h&&!r,[`c-btn--${n}`]:n&&!r,[`c-btn--${a}`]:a&&!r},W({weight:s,whiteSpace:i}),F({className:"text",propValue:o}),{"c-link--is-underlined":p},m?.className);return y.jsx(X,{...m,as:e,ref:f,color:l||d||h?void 0:r||("inherit"===u?void 0:u),className:g,children:t})}),T(({variant:e,progressColor:t="ultramarine"},r)=>y.jsx(X,{ref:r,bg:"grey-100",className:S("c-progress",{[`c-progress--${e}`]:e}),children:y.jsx(X,{className:"c-progress__bar",bg:t,style:{width:"0%"}})})),T(({id:e,className:t,required:r,label:n,defaultValue:o,options:a,placeholder:s,containerProps:i,variant:c="default",icon:l,isLarge:d,hint:u,error:p,...m},f)=>y.jsxs(J,{...i,ref:f,direction:"column",className:S("c-select",i?.className),children:[n&&y.jsxs("label",{htmlFor:e,className:"c-select__label",children:[n,r&&y.jsxs(Q,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),u&&y.jsx(Q,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:u}),y.jsxs("div",{className:"c-select__container",children:[l&&y.jsx(V,{className:"c-select__icon",name:l,size:18}),y.jsx(V,{className:`c-select__caret c-select__caret--${c}`,name:"arrow",size:12}),y.jsxs("select",{id:e,className:S("c-select__select",`c-select__select--${c}`,{"c-select__select--has-icon":!!l},{"c-select__select--large":d},H(m),t),required:r,defaultValue:o||a.filter(e=>e.isSelected)?.pop()?.value||"","aria-describedby":[u?`${e}-hint`:null,p?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...B({props:m,systemPropNames:Object.keys(A)}),children:[s&&y.jsx("option",{value:"",disabled:!0,hidden:!0,children:s}),a.map(e=>y.jsx("option",{value:e.value,children:e.title},e.value))]})]}),p&&y.jsx(Q,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:p})]}));var K=(e=>(e.MOBILE="mobile",e.DESKTOP="desktop",e))(K||{});T(({layout:e,children:t,itemsGap:r,hasSpaceAroundButtons:n=!1,buttonsColor:o,buttonsSize:a,colorVariant:s,sliderVariant:i="default",auto:c=!1,delay:l=3e3,...d},u)=>y.jsxs(X,{...d,ref:u,className:S("c-slider js-navigation-container",d?.className),"data-slider-variant":i,"data-slider-auto":c,"data-slider-delay":l,children:[y.jsx(X,{className:"c-slider__viewport js-navigation-container__list",children:y.jsx(J,{className:"c-slider__list",alignItems:"center",gap:r,children:t})}),e===K.DESKTOP&&y.jsx(X,{className:"c-slider__buttons-container",children:Array.from(["previous","next"],e=>y.jsx(X,{pr:n&&"previous"===e&&("translucent"===o&&"small"===a?"m":"l")||void 0,pl:n&&"next"===e&&("translucent"===o&&"small"===a?"m":"l")||void 0,className:S(`c-slider__button-container c-slider__button-container--${e} o-nav-button o-nav-button--${e}-button`,{"c-slider__button-container--has-space-around":n},{[`c-slider__button-container--${i}`]:i}),children:y.jsx(P,{color:o,size:a,..."videos"===i&&{p:"m"},iconProps:{name:"chevron",size:"videos"===i?14:12,rotation:"previous"===e?"half":void 0,svgTitle:"previous"===e?"Précédent":"Suivant"}})},e))})]})),T(({as:e="a",id:t,variant:r="primary",size:n,children:o,...a},s)=>y.jsx(X,{...a,as:"span"===r?"span":e,href:"span"===r?void 0:a?.href,ref:s,className:S("c-tags",`c-tags--${r}`,{[`c-tags--${n}`]:n},a?.className),"data-id":t,py:a?.py??"0",px:a?.px??"xs",children:o})),T(({id:e,required:t,label:r,variant:n,msg:o,rows:a=5,containerProps:s,hint:i,error:c,...l},d)=>y.jsxs(J,{direction:"column",ref:d,...s,className:S("c-textarea",s?.className),children:[r&&y.jsxs("label",{htmlFor:e,className:"c-textarea__label",children:[r,t&&y.jsxs(Q,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),i&&y.jsx(Q,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:i}),y.jsx(J,{className:"c-textarea-container",children:y.jsx("textarea",{rows:a,placeholder:"Votre message...",required:t,...l,id:e,name:e,className:S("c-textarea-container__input",{[`c-textarea-container__input--${n}`]:n,"c-textarea-container__input--hint":!!i,"c-textarea-container__input--error":!!c},l?.className),"aria-describedby":[i?`${e}-hint`:null,c?`${e}-error`:null].filter(Boolean).join(" ")||void 0})}),o?.length&&y.jsx(J,{wrap:"wrap",gapY:"s",gapX:"xxs-2",mt:"xxs-2",children:o.map(({iconProps:e,textProps:t,value:r},n)=>y.jsxs(J,{alignItems:"center",gap:"xxs",children:[e&&y.jsx(V,{...e}),y.jsx(Q,{dangerouslySetInnerHTML:{__html:r},role:"alert",...t})]},n?.toString()))}),c&&y.jsx(Q,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:c})]}));const Z=T(({as:e="h1",size:t,children:r,...n},o)=>y.jsx(ee,{...n,as:e,ref:o,className:S(F({className:"heading",propValue:t}),n?.className),children:r})),Q=T(({as:e="p",size:t,highlighted:r,children:n,...o},a)=>y.jsx(ee,{as:r?"span":e,bg:r?"sponsoring":o.bg,p:r?"xxs":o.p,color:r?"grey-800":o.color,...o,ref:a,className:S(F({className:"text",propValue:t}),{"text-highlighted":r},o?.className),children:n})),ee=T(({as:e="p",children:t,...r},n)=>t&&t.toString().length||r?.dangerouslySetInnerHTML?y.jsx(X,{...B({props:r,systemPropNames:Object.keys(R)}),as:e,ref:n,className:S(W(r),r?.className),children:t}):null);T(({icon:e,title:t,content:r,...n},o)=>y.jsxs(X,{...n,ref:o,className:S("c-astro-topic-card",n?.className),children:[y.jsxs(J,{alignItems:"center",mb:"s",children:[y.jsx(V,{mr:"xs",name:e,size:21}),y.jsx(Z,{as:"h3",size:"xs",children:t})]}),y.jsx(Q,{size:"m",children:r})]})),T(({as:e="article",children:t,className:r,clickable:n=!1,...o},a)=>y.jsx(J,{...o,as:e,ref:a,justifyContent:o?.justifyContent||"between",className:S("c-card-container",{"c-card-container--clickable":n},r),children:t})),T(({index:e,textTitleProps:t,headingTitleProps:r,titleIconProps:n,isOpen:o,contentWithBorder:a=!0,contentProps:s,iconProps:i,btnProps:c,children:l,isDropdown:d,...u},p)=>y.jsxs(X,{...u,className:S("c-collapse js-collapse",{"c-collapse--dropdown":d}),ref:p,children:[y.jsxs(X,{...c,as:"button",type:"button",id:`c-collapse__button-${e}`,pl:c?.pl||"l",py:c?.py||"xxs",className:S("c-collapse__button js-collapse__button",c?.className),"aria-controls":`c-collapse__content-${e}`,"aria-expanded":o||"false",children:[n?y.jsxs(J,{alignItems:"center",children:[y.jsx(V,{size:34,mr:"xs",...n}),t?.children]}):r?y.jsx(Z,{as:"h3",size:"xxs",color:"black",...r,children:r?.children}):y.jsx(Q,{size:"l",color:"black",...t,children:t?.children}),y.jsx(V,{name:"chevron",size:16,...i,className:S("c-collapse__icon",i?.className)})]}),y.jsx(J,{...s,direction:"column",p:s?.p||"xl",id:`c-collapse__content-${e}`,"aria-hidden":o?!o:"true","aria-labelledby":`c-collapse__button-${e}`,className:S("c-collapse__content",{"c-collapse__content--with-border":a}),role:"tabpanel",children:l})]}));const te=g.forwardRef(({href:e,children:t,...r},n)=>y.jsx("a",{href:e,className:S("c-skip-link",G(r),r?.className),ref:n,...r,children:t}));te.displayName="SkipLink";const re="forward-disable-audience-measure",ne="data-preferences-consent";class oe extends Error{}function ae(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,(e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}(t)}catch(e){return atob(t)}}oe.prototype.name="InvalidTokenError";const se=e=>{try{return function(e,t){if("string"!=typeof e)throw new oe("Invalid token specified: must be a string");t||(t={});const r=!0===t.header?0:1,n=e.split(".")[r];if("string"!=typeof n)throw new oe(`Invalid token specified: missing part #${r+1}`);let o;try{o=ae(n)}catch(e){throw new oe(`Invalid token specified: invalid base64 for part #${r+1} (${e.message})`)}try{return JSON.parse(o)}catch(e){throw new oe(`Invalid token specified: invalid json for part #${r+1} (${e.message})`)}}(ie(e))}catch(e){console.error(e)}return null},ie=e=>{const t=document.cookie.split(";").filter(t=>-1!==t.indexOf(e))[0];return t?t.split("=")[1]:"{}"},ce=e=>{const t=[`${e.name}=`,"expires=Thu, 1 Jan 1970 00:00:01 UTC","path=/"];e.domain&&t.push(`domain=${e.domain}`),document.cookie=t.join("; ")},le=e=>{document.cookie.split(";").map(e=>e.split("=")[0].trim()).filter(t=>-1===e.indexOf(t)).forEach(e=>{const{hostname:t}=window.location;ce({name:e}),ce({name:e,domain:t.substring(t.indexOf(".")+1)}),ce({name:e,domain:t.substring(t.indexOf("."))}),ce({name:e,domain:`.${t}`})})};var de=(e=>(e.down="down",e.heart="heart",e.laughing="laughing",e.sad="sad",e.shock="shock",e.up="up",e))(de||{});de.up,de.down,de.sad,de.heart,de.laughing,de.shock;const ue=e=>{for(let t=sessionStorage.length-1;t>=0;t-=1){const r=sessionStorage.key(t);r&&-1===e.indexOf(r)&&sessionStorage.removeItem(r)}},pe=e=>{localStorage.removeItem(e)},me=e=>{for(let t=localStorage.length-1;t>=0;t-=1){const r=localStorage.key(t);r&&-1===e.indexOf(r)&&pe(r)}},fe=(e,t)=>{let r=e.toLowerCase().replace(/[\s-]+/g,"-");return r=(e=>{let t=e;const r="ãàáäâẽèéëêìíïîõòóöôùúüûñç·/,:;";for(let e=0;e<30;e+=1)t=t.replace(new RegExp(r.charAt(e),"g"),"aaaaaeeeeeiiiiooooouuuunc-----".charAt(e));return t})(r),r.replace(/[^\w-]+/g,"").replace(/-*$/g,"")},he=()=>{const e=(()=>{const e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())})();delete e["didomiConfig.user.externalConsent.value"],delete e["didomiConfig.notice.enable"];const t=`${window.location.origin}${window.location.pathname}`,r=Object.entries(e).map(([e,t])=>[e,String(t)]),n=new URLSearchParams(r),o=n.toString()?`${t}?${n.toString()}`:t;window.history.replaceState({},document.title,o)},ye=["20mnToken","20mnUserDataLayer","20mnTutorial","20mnUserInfo","20mnUserSession","20mnSubscription","_vfa","_vfb","_vfz","atauthority","atid","atidvisitor","atidx","atuserid","didomi_dcs","didomi_token","euconsent-v2","osano_consentmanager","osano_consentmanager_expdate","osano_consentmanager_uuid","SESSIDSF","SESSIDSFRM","TCPID","TSTD","ei_client_id","_biz_pendingA","_biz_flagsA","_biz_uid","_biz_nA","ajs_group_id","ajs_user_id","ajs_anonymous_id","TSNGUID","_mkto_trk","JSESSIONID","staging-login_idle_session_timeout","login_idle_session_timeout","lang","auth_expiration_timestamp","sticky-scorecast-business-chat","__utna","__utnv","auth_token","PHPSESSID","sticky-scorecast-business-app","sticky-scorecast-prod-app","realm","_pcid","AFFICHE_C"],ge=["consent_validity_date","20mn-articlesSaved","20mnBreakingNews","20mn-visits-content","data-preferences-consent","forward-disable-audience-measure"],we=["com.batch.sessionId"],be=["mesureda-6qyqaZXC","publicite-9qedKJMX","activation-bVrTKmmw","attributio-nChbC4e9","cookies","select_basic_ads","create_ads_profile","select_personalized_ads","measure_ad_performance","measure_content_performance","market_research","improve_products","device_characteristics","geolocation_data","create_content_profile","select_personalized_content","use_limited_data_to_select_content"],ve=["firstidt-yhUPqUTn","20minutes-TB2pKd68","20minutes-aFP8daKL","20minutes-267jiLcq","366sas-U9KhdfCC","ultimedia","amazonadv-U9UXjWkj","google","cxense"],_e=()=>{let e,t;window.cmpVariables={consentEventsCount:0,isRedirectingToSubscription:!1},window.didomiEventListeners.push({event:"consent.changed",listener:()=>{if(document.location.href.includes("webview_player"))return;if(window.cmpVariables.isRedirectingToSubscription)return;const r=ie("euconsent-v2"),n=window.cmpVariables.consentEventsCount>0||!!r,o=window.sessionStorage.getItem("cmpModal");n&&!o&&(e&&clearTimeout(e),t&&clearTimeout(t),e=setTimeout(()=>{const e=window.Didomi.getCurrentUserStatus(),t=!e.purposes.cookies?.enabled,r=!e.purposes["publicite-9qedKJMX"]?.enabled,n=!e.purposes["mesureda-6qyqaZXC"]?.enabled;(t||r||n)&&(le(ye),me(ge),ue(we),he()),window.didomiState.didomiPurposesDisabled||window.didomiState.didomiVendorsDisabled||localStorage.setItem(ne,"false")},150),t=setTimeout(()=>{window.location.reload()},window.layout===K.DESKTOP?450:550)),o&&window.sessionStorage.removeItem("cmpModal"),window.cmpVariables.consentEventsCount+=1}})},xe=()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(e=>{const t=Array.from(document.getElementsByClassName("embed-placeholder")),r=e.getCurrentUserStatus(),n=r?.purposes?.["activation-gGierZpp"]?.enabled;t.forEach(e=>{const t=e.querySelector(".cmp-placeholder"),o=e.querySelector(".embed-wrapper");if(t instanceof Element&&o instanceof Element){if(!n||!(r?.vendors[e.getAttribute("data-vendor")||""]?.enabled??1))return t.classList.remove("u-hidden"),void o.classList.add("u-hidden");t.classList.add("u-hidden"),o.classList.remove("u-hidden"),o.querySelectorAll("[data-src]").forEach(e=>{const t=e.getAttribute("data-src");t&&(e.setAttribute("src",t),e.removeAttribute("data-src"))})}})})},Se=()=>{document.addEventListener("click",e=>{const t=e.target;if(!(t instanceof HTMLElement&&t.closest(".cmp-button")))return;e.preventDefault();const r=t.closest("div.embed-placeholder"),n=r instanceof HTMLElement?r.dataset.vendor??void 0:void 0;window.didomiOnReady.push(()=>{(e=>{const t=window.Didomi.openCurrentUserStatusTransaction();t.enablePurpose("activation-gGierZpp"),e&&t.enableVendor(e),window.sessionStorage.setItem("cmpModal","accepted"),t.commit(),xe()})(n)}),r&&r.focus()})},Ee=e=>{const t=e.getCurrentUserStatus();return be.every(e=>t.purposes[e]?.enabled)&&ve.every(e=>t.vendors[e]?.enabled)},ke=()=>{const e=se("20mnSubscription");return!!e&&parseInt(e.subscription.subscriptionEndAt,10)>Date.now()/1e3},je=()=>{const e=JSON.parse(decodeURIComponent(ie("20mnUserInfo")?.replace(/'/g,'"')));return e?.id},Ne=async e=>{window.cmpVariables=window.cmpVariables||{consentEventsCount:0},window.cmpVariables.isRedirectingToSubscription=!0;const t=`${window.envVariables.memberEndpoint}/abonnement/inscription`;if(e){const r=`${window.envVariables.goomEndpoint}/redirection`;try{const n=await fetch(r,{method:"POST",body:JSON.stringify({id:e})});window.location.href=n.redirected?n.url:t}catch(e){console.error(e instanceof Error?e.message:e)}}else window.location.href=t},Oe=()=>{setTimeout(()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(e=>{e.getCurrentUserStatus().purposes.cookies?.enabled||le(ye)})},3e4),window.didomiOnReady.push(e=>{const t=(e=>{const t=localStorage.getItem(e);return t?JSON.parse(t):void 0})(re);if(void 0!==t){if(pe(re),!t)return;const r=e.openCurrentUserStatusTransaction();r.disablePurpose("mesureda-6qyqaZXC"),r.disableVendor("cxense"),r.commit()}})},Ce=()=>{Oe(),window.didomiOnReady.push(e=>{ie("euconsent-v2")&&(ke()||window.location.href.includes(window.envVariables.pageEndpoint)&&!Ee(e)&&e.notice.show())}),window.didomiEventListeners=window.didomiEventListeners||[],window.didomiEventListeners.push({event:"notice.clickdisagree",listener:()=>{ke()||Ne(je())}}),window.didomiEventListeners.push({event:"preferences.clickdisagreetoall",listener:()=>{ke()||Ne(je())}}),window.didomiEventListeners.push({event:"preferences.clicksavechoices",listener:()=>{ke()||Ee(window.Didomi)||Ne(je())}})},Ae=e=>{const t=document.createElement("script");if(t.type="text/javascript","async"===e.load?t.async=!0:"defer"===e.load&&(t.defer=!0),"src"in e&&e.src){const r=eval;t.src=e.src?.replace(/%(.*?)%/,(e,t)=>r(t))}e.name&&(performance.mark(`20mn:${e.name}:Start`),t.onerror=r=>{performance.mark(`20mn:${e.name}:Error`),console.error(`Script failed to load: ${e.name}${t.src?` (${t.src})`:""}`,r)}),(e.name||e.onLoad)&&(t.onload=()=>{e.name&&performance.mark(`20mn:${e.name}:End`),e.onLoad&&e.onLoad()}),"text"in e&&e.text&&(t.innerHTML=e.text),e.id&&(t.id=e.id),e.dataAttributes&&Object.entries(e.dataAttributes).forEach(([e,r])=>{var n;t.setAttribute(`data-${n=e,n.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}`,r)}),"head"===e.target&&document.head?document.head.appendChild(t):document.body?document.body.appendChild(t):(window.bodyScripts=window.bodyScripts||[],window.bodyScripts.push(t))};let $e=null;const Ie=()=>{window.pa?.privacy?.setMode("exempt"),window.Didomi.getCurrentUserStatus().purposes["mesureda-6qyqaZXC"]?.enabled&&window.pa?.privacy?.setMode("optin")},Re=()=>{const{hostname:e}=window.location;if(window.__webo_withdraw_fired)return;window.__webo_withdraw_fired=!0,window.wamid="10069";const t=navigator.sendBeacon;navigator.sendBeacon=function(r,n){const o=t.call(this,r,n);try{const t="string"==typeof r?r:r.toString(),a="string"==typeof n?JSON.parse(n):null;return o&&t.includes("consent/withdraw")&&a?.affiche_c&&(ce({name:"AFFICHE_C",domain:e.substring(e.indexOf("."))}),ce({name:"AFFICHE_C"}),ce({name:"AFFICHE_C",domain:e})),!0}catch(e){return console.error("Error while withdrawing consent from Weborama",e),!1}},Ae({name:"weborama-consent-withdrawal",src:"https://cstatic.weborama.fr/js/wamf/consent_withdrawal.min.js",load:"async"})},Te=()=>{const e=window.Didomi.getCurrentUserStatus();return{weborama:e.vendors.weborama?.enabled?1:0,vendor366:e.vendors["366sas-U9KhdfCC"]?.enabled?1:0}},Le=()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(()=>{$e=Te()}),window.didomiEventListeners=window.didomiEventListeners||[],window.didomiEventListeners.push({event:"consent.changed",listener:()=>{(()=>{const e=Te();if(((e,t)=>!!t&&e.weborama===t.weborama&&e.vendor366===t.vendor366)(e,$e))return;const t=$e;$e=e,t&&((e,t)=>1===e.weborama&&0===t.weborama||1===e.vendor366&&0===t.vendor366)(t,e)&&Re()})()}})},Ve=()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(e=>{if(!e.shouldUserStatusBeCollected())try{((e,t)=>{const r=window.thirdPartiesConfig?.conditional?.find(t=>fe(t.name)===e);if(!r)throw new Error(`Script with name ${e} not found`);Ae({...r,...t})})(o.BATCH)}catch(e){e instanceof Error&&console.error(e.message)}})},Pe=()=>{document.cookie="_pprv=; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Path=/; SameSite=Lax; Secure","true"!==localStorage.getItem(ne)?(window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(()=>{Ie()}),window.didomiEventListeners=window.didomiEventListeners||[],window.didomiEventListeners.push({event:"consent.changed",listener:()=>{Ie()}})):window.pa?.privacy?.setMode("optout"),Le(),Ve()};window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(()=>{let e=new Date;const t=e.getTimezoneOffset();e=new Date(e.getTime()-60*t*1e3);const r=e.toISOString().split("T")[0],n=localStorage.getItem("consent_validity_date");n&&r>n&&(window.Didomi.reset(),localStorage.removeItem("consent_validity_date"),window.disapproveDidomiGTMEvents=!0,le(ye),me(ge),ue(we),window.Didomi.notice.show())}),Pe(),Ce(),_e(),window.didomiOnReady=window.didomiOnReady||[],xe(),window.didomiEventListeners.push({event:"consent.changed",listener(){xe()}}),Se(),window.datalayerInfo?.pageName&&[n.GAME,n.GAME_APP].includes(window.datalayerInfo?.pageName)&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",r):r()),window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(()=>{const e=document.getElementById("choice-consent");e&&window?.Didomi?.preferences?.show&&e.addEventListener("click",()=>{window.Didomi.preferences.show()})}),window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(e=>{const t=document.querySelector(".js-rewind-alert");t&&(e.getCurrentUserStatus().purposes["mesureda-6qyqaZXC"]?.enabled?t.classList.add("u-hidden"):t.classList.remove("u-hidden"))})}();
|
|
11
11
|
//# sourceMappingURL=cmp.min.js.map
|
package/dist/js/edgee.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(){"use strict";
|
|
1
|
+
!function(){"use strict";class e extends Error{}e.prototype.name="InvalidTokenError";var t=(e=>(e.down="down",e.heart="heart",e.laughing="laughing",e.sad="sad",e.shock="shock",e.up="up",e))(t||{});t.up,t.down,t.sad,t.heart,t.laughing,t.shock;const n=()=>{const e={};if(e["b:user_darkmode"]="dark"===document.documentElement.getAttribute("data-theme"),e["b:user_status"]=!!document.cookie.match("(^|;)\\s*20mnUserInfo\\s*=\\s*([^;]+)"),!e["b:user_status"])return e;const t=(e=>{const t=document.cookie.split(";").filter(t=>-1!==t.indexOf(e))[0];return t?t.split("=")[1]:"{}"})("20mnUserDataLayer"),n=t?(()=>{try{return JSON.parse(decodeURIComponent(t))}catch{return null}})():null;return n&&(e["s:user_id"]=String(n.i),Number.isNaN(n.d)||(e["n:user_a"]=Number(n.d)),Number.isNaN(n.l)||(e["n:user_zip"]=Number(n.l)),Number.isNaN(n.g)||(e["n:user_g"]=Number(n.g))),e};(()=>{if(!window.edgee)return void console.warn("Edgee not available, skipping user edge tracking");const e=document.getElementById("__EDGEE_DATA_LAYER__");if(e){const t=(()=>{const e=n();return{user_id:e?.["s:user_id"]?.toString(),properties:e}})();try{const n=JSON.parse(e.textContent||"");n.data_collection.context=n.data_collection.context||{},n.data_collection.context.user=t,n.data_collection.context.page=n.data_collection.context.page||{};const o=n.data_collection.context.page.properties||{};t.user_id&&(o["b:user_status"]=!0,o["b:user_darkmode"]="dark"===document.documentElement?.getAttribute("data-theme")),window.performance&&(o.navigation_method=window.performance.getEntriesByType?.("navigation")?.map(e=>e.type)?.pop()||null),n.data_collection.context.page.properties=o,e.textContent=JSON.stringify(n,null,2)}catch(e){console.warn("Failed to update Edgee data layer:",e)}}window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(e=>{e.getCurrentUserStatus().purposes["mesureda-6qyqaZXC"]?.enabled&&window.edgee?.user&&window.edgee.user()})})()}();
|
|
2
2
|
//# sourceMappingURL=edgee.min.js.map
|