@20minutes/tyr 2.42.1 → 2.42.2
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const cookieItemsToKeep: string[];
|
|
2
2
|
export declare const localItemsToKeep: string[];
|
|
3
3
|
export declare const sessionItemsToKeep: string[];
|
|
4
|
-
export declare const requiredPurposes: readonly ["mesureda-6qyqaZXC", "publicite-9qedKJMX", "activation-bVrTKmmw", "
|
|
5
|
-
export declare const requiredVendors: readonly ["
|
|
4
|
+
export declare const requiredPurposes: readonly ["mesureda-6qyqaZXC", "publicite-9qedKJMX", "activation-bVrTKmmw", "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"];
|
|
5
|
+
export declare const requiredVendors: readonly ["20minutes-TB2pKd68", "20minutes-aFP8daKL", "20minutes-267jiLcq", "366sas-U9KhdfCC", "ultimedia", "amazonadv-U9UXjWkj", "google", "cxense"];
|
package/dist/js/cmp.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 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"))})}();
|
|
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"}),B(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"})),B=e=>S(...F({propValue:e.align,className:"self"})),U=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,{...U({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,{...U({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,{...U({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,...U({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,{...U({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","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=["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
|