@20minutes/tyr 2.40.7 → 2.40.8

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.
@@ -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=(v||(v=1,b.exports=function(){if(g)return w;g=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 w.Fragment=r,w.jsx=s,w.jsxs=s,w}()),b.exports),E=f(j());function N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var O,C={exports:{}};var R,$=(O||(O=1,R=C,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}R.exports?(t.default=t,R.exports=t):window.classNames=t}()),C.exports);const A=N($);function I(e){return E.forwardRef(e)}const T=I(({as:e="button",variant:t="primary",children:r,iconProps:n,counter:o,isCentered:a=!1,isSquare:s=!1,isLoading:i=!1,size:c,isCloseWithProgress:l,closeProgressColor:d,...u},p)=>{const m={...u?.style,...d&&{"--button-close-progress-color":`var(--color-theme-${d})`}};return k.jsxs(ne,{...u,style:m,as:e,ref:p,alignItems:"center",justifyContent:"center",gap:"xxs",inline:"link"===t||"a"===e,radius:s?"0":void 0,className:A("c-btn",{[`c-btn--${t}`]:t,[`c-btn--${c}`]:c,"c-btn--is-centered":a,"c-btn--is-loading":i},u?.className),children:[n&&k.jsx(U,{...n}),r,(0===o||o)&&k.jsx(ne,{justifyContent:"center",alignItems:"center",color:"grey-900",bg:"white",px:"xxs",radius:"s",className:"c-btn__counter",children:o}),l&&k.jsx("div",{className:"c-btn__close-progress"})]})});T.displayName="Button",I(({text:e,color:t="black",thickness:r="thin",...n},o)=>{const a=k.jsx(oe,{bg:t,align:"center",className:A("c-divider__line",{[`c-divider__line--${r}`]:"thin"!==r})});return k.jsx(ne,{...n,ref:o,className:A("c-divider",{"c-divider--has-text":!!e},n?.className),children:e?k.jsxs(k.Fragment,{children:[a,k.jsx(oe,{px:"xxs-2",className:"c-divider__text",children:k.jsx(ie,{size:"xxs",color:t,textTransform:"uppercase",children:e})}),a]}):a})}),I(({color:e="black",thickness:t="thin",...r},n)=>k.jsx(re,{...r,ref:n,bg:e,className:A("c-divider-vertical",{[`c-divider-vertical--${t}`]:"thin"!==t},r?.className)}));const P={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 V=["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"],D={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"]},M={radius:["border-radius"]},B={p:["padding"],pt:["padding-top"],pr:["padding-right"],pl:["padding-left"],pb:["padding-bottom"],px:["padding-left","padding-right"],py:["padding-top","padding-bottom"]},q={m:["margin"],mt:["margin-top"],mr:["margin-right"],ml:["margin-left"],mb:["margin-bottom"],mx:["margin-left","margin-right"],my:["margin-top","margin-bottom"],...B},z={...q,borderColor:["border-color"],bg:["background-color"],color:["color"],...M},H={textAlign:["text-align"],weight:["font-weight"],italic:["font-style"],textDecoration:["text-decoration"],textTransform:["text-transform"],fontFamily:["font-family"],whiteSpace:["white-space"]};Object.keys(P.primary),Object.keys(P.secondary),Object.keys(P.greyscale),Object.keys(P.status),Object.keys(P.theme);const U=I(({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&&V.includes(e))(s);return k.jsx(re,{...i,ref:c,color:p?void 0:s,className:A("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}`})]})})});I(({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,...v},b)=>{const w=a&&k.jsx(T,{className:"c-input-container__icon",iconProps:{name:a,size:18},variant:"ghost",color:r||"black",...c}),_=a&&k.jsx(U,{className:"c-input-container__icon",name:a,size:18,color:r||"black"});return k.jsxs(ne,{direction:"column",...u,className:A("c-input",u?.className),children:[o&&k.jsxs("label",{htmlFor:e,className:"c-input__label",children:[o,n&&k.jsxs(ie,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),y&&k.jsx(ie,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:y}),k.jsxs(ne,{gap:a&&h?"xs":void 0,className:A("c-input-container",{[`c-input-container--${l}`]:l,"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(ne,{gap:"s",children:[i?w:_,h]}),k.jsx("input",{id:e,className:A("c-input-container__input",t),required:n,ref:b,"aria-describedby":[y?`${e}-hint`:null,g?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...v})]}),d?.length&&k.jsx(ne,{wrap:"wrap",gapY:"s",gapX:"xxs-2",mt:"xxs-2",children:d.map(({iconProps:e,textProps:t,value:r},n)=>k.jsxs(ne,{alignItems:"center",gap:"xxs",children:[e&&k.jsx(U,{...e}),k.jsx(ie,{dangerouslySetInnerHTML:{__html:r},role:"alert",...t})]},n?.toString()))}),g&&k.jsx(ie,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:g})]})});const G=e=>{if(e.propValue&&["boolean","string","number"].includes(typeof e.propValue)||!e.propValue){const t=J({className:e.className,defaultModifier:e.defaultModifier||"xs",propValue:e.propValue});return t?[t]:[]}return Object.entries(e.propValue).reduce((t,[r,n])=>{const o=J({className:e.className,defaultModifier:r,propValue:n});return o&&t.push(o),t},[])},J=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}`}},W=({basis:e,shrink:t,grow:r,...n})=>A(...G({propValue:e,className:"basis"}),...G({propValue:t,className:"shrink"}),...G({propValue:r,className:"grow"}),Z(n)),Y=({inline:e=!1,direction:t,wrap:r,...n})=>A(...G({propValue:e,className:e?"inline-flex":"flex"}),...G({propValue:t,className:"direction"}),...G({propValue:r}),X(n)),X=e=>A(...G({propValue:e.alignItems,className:"items"}),...G({propValue:e.alignContent,className:"content"}),...G({propValue:e.justifyContent,className:"justify"}),...G({propValue:e.gap,className:"gap"}),...G({propValue:e.gapX,className:"gap-x"}),...G({propValue:e.gapY,className:"gap-y"}),...G({propValue:e.flexGrow,className:"grow"})),Z=e=>A(...G({propValue:e.align,className:"self"})),K=e=>"object"==typeof e.props?Object.keys(e.props).reduce((t,r)=>(e.systemPropNames.includes(r)||(t[r]=e.props[r]),t),{}):{},Q=e=>A(Object.entries(e).filter(([e])=>Object.keys(q).includes(e)).reduce((e,[t,r])=>(e.push(...G({className:t,propValue:r})),e),[])),ee=e=>A(Q(e),(e=>A({[`bg-${e.bg}`]:e.bg,[`color-${e.color}`]:e.color,[`border-color-${e.borderColor}`]:e.borderColor}))(e),(e=>A(Object.entries(e).filter(([e])=>Object.keys(M).includes(e)).reduce((e,[t,r])=>(e.push(...G({className:t,propValue:r})),e),[])))(e)),te=({textAlign:e,weight:t,textTransform:r,textDecoration:n,italic:o,fontFamily:a,whiteSpace:s})=>A(G({className:"text",propValue:e}),G({className:"font-weight",propValue:t}),{[`white-space-${s}`]:!!s,[`text-transform-${r}`]:!!r,[`text-decoration-${n}`]:!!n,"text-italic":!!o,[`font-${a}`]:!!a}),re=I(({as:e="div",children:t,...r},n)=>k.jsx(e,{...K({props:r,systemPropNames:Object.keys(z)}),ref:n,className:A(ee(r),r?.className),children:t}));re.displayName="Box";const ne=I(({as:e="div",children:t,...r},n)=>k.jsx(re,{...K({props:r,systemPropNames:Object.keys(D)}),as:e,ref:n,className:A(Y(r),r?.className),children:t})),oe=I(({as:e="div",children:t,...r},n)=>k.jsx(re,{...K({props:r,systemPropNames:Object.keys(F)}),as:e,ref:n,className:A(W(r),r?.className),children:t}));I(({as:e="a",children:t,color:r,size:n,variant:o,weight:a,whiteSpace:s,tabIsSelected:i,tabVariant:c,tabColor:l,defaultColor:d="ultramarine",isUnderlined:u,...p},m)=>{if(o&&r)throw new Error("You can't use color and variant props together");const f=c||l?A("c-tab",{[`c-tab--${c}`]:c,[`c-tab--${l}`]:l,"c-tab--selected":i,"c-tab--unselected":!i},te({weight:a,whiteSpace:s}),p?.className):A("c-link",{[`c-btn c-btn--${o}`]:o&&!r},te({weight:a,whiteSpace:s}),G({className:"text",propValue:n}),{"c-link--is-underlined":u},p?.className);return k.jsx(re,{...p,as:e,ref:m,color:c||l||o?void 0:r||("inherit"===d?void 0:d),className:f,children:t})}),I(({variant:e,progressColor:t="ultramarine"},r)=>k.jsx(re,{ref:r,bg:"grey-100",className:A("c-progress",{[`c-progress--${e}`]:e}),children:k.jsx(re,{className:"c-progress__bar",bg:t,style:{width:"0%"}})})),I(({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(ne,{...i,ref:f,direction:"column",className:A("c-select",i?.className),children:[n&&k.jsxs("label",{htmlFor:e,className:"c-select__label",children:[n,r&&k.jsxs(ie,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),u&&k.jsx(ie,{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(U,{className:"c-select__icon",name:l,size:18}),k.jsx(U,{className:`c-select__caret c-select__caret--${c}`,name:"arrow",size:12}),k.jsxs("select",{id:e,className:A("c-select__select",`c-select__select--${c}`,{"c-select__select--has-icon":!!l},{"c-select__select--large":d},Q(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,...K({props:m,systemPropNames:Object.keys(B)}),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(ie,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:p})]}));var ae=(e=>(e.MOBILE="mobile",e.DESKTOP="desktop",e))(ae||{});I(({layout:e,children:t,itemsGap:r,hasSpaceAroundButtons:n=!1,buttonsVariant:o,colorVariant:a,sliderVariant:s="default",auto:i=!1,delay:c=3e3,...l},d)=>k.jsxs(re,{...l,ref:d,className:A("c-slider js-navigation-container",l?.className),"data-slider-variant":s,"data-slider-auto":i,"data-slider-delay":c,children:[k.jsx(re,{className:"c-slider__viewport js-navigation-container__list",children:k.jsx(ne,{className:"c-slider__list",alignItems:"center",gap:r,children:t})}),e===ae.DESKTOP&&k.jsx(re,{className:"c-slider__buttons-container",children:Array.from(["previous","next"],e=>k.jsx(re,{pr:n&&"previous"===e&&("round-small-transparent-bg"===o?"m":"l")||void 0,pl:n&&"next"===e&&("round-small-transparent-bg"===o?"m":"l")||void 0,className:A(`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--${s}`]:s}),children:k.jsx(T,{variant:o||"round",color:a,..."videos"===s&&{p:"m"},iconProps:{name:"chevron",size:"videos"===s?14:12,rotation:"previous"===e?"half":void 0,svgTitle:"previous"===e?"Précédent":"Suivant"}})},e))})]})),I(({as:e="a",id:t,variant:r="primary",size:n,children:o,...a},s)=>k.jsx(re,{...a,as:"span"===r?"span":e,href:"span"===r?void 0:a?.href,ref:s,className:A("c-tags",`c-tags--${r}`,{[`c-tags--${n}`]:n},a?.className),"data-id":t,px:a?.px,children:o})),I(({id:e,required:t,label:r,variant:n,msg:o,rows:a=5,containerProps:s,hint:i,error:c,...l},d)=>k.jsxs(ne,{direction:"column",ref:d,...s,className:A("c-textarea",s?.className),children:[r&&k.jsxs("label",{htmlFor:e,className:"c-textarea__label",children:[r,t&&k.jsxs(ie,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),i&&k.jsx(ie,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:i}),k.jsx(ne,{className:"c-textarea-container",children:k.jsx("textarea",{rows:a,placeholder:"Votre message...",required:t,...l,id:e,name:e,className:A("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(ne,{wrap:"wrap",gapY:"s",gapX:"xxs-2",mt:"xxs-2",children:o.map(({iconProps:e,textProps:t,value:r},n)=>k.jsxs(ne,{alignItems:"center",gap:"xxs",children:[e&&k.jsx(U,{...e}),k.jsx(ie,{dangerouslySetInnerHTML:{__html:r},role:"alert",...t})]},n?.toString()))}),c&&k.jsx(ie,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:c})]}));const se=I(({as:e="h1",size:t,children:r,...n},o)=>k.jsx(ce,{...n,as:e,ref:o,className:A(G({className:"heading",propValue:t}),n?.className),children:r})),ie=I(({as:e="p",size:t,highlighted:r,children:n,...o},a)=>k.jsx(ce,{as:r?"span":e,bg:r?"sponsoring":o.bg,p:r?"xxs":o.p,color:r?"grey-800":o.color,...o,ref:a,className:A(G({className:"text",propValue:t}),{"text-highlighted":r},o?.className),children:n})),ce=I(({as:e="p",children:t,...r},n)=>t&&t.toString().length||r?.dangerouslySetInnerHTML?k.jsx(re,{...K({props:r,systemPropNames:Object.keys(H)}),as:e,ref:n,className:A(te(r),r?.className),children:t}):null);I(({as:e="article",children:t,className:r,clickable:n=!1,...o},a)=>k.jsx(ne,{...o,as:e,ref:a,justifyContent:o?.justifyContent||"between",className:A("c-card-container",{"c-card-container--clickable":n},r),children:t})),I(({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(re,{...u,className:A("c-collapse js-collapse",{"c-collapse--dropdown":d}),ref:p,children:[k.jsxs(re,{...c,as:"button",type:"button",id:`c-collapse__button-${e}`,pl:c?.pl||"l",py:c?.py||"xxs",className:A("c-collapse__button js-collapse__button",c?.className),"aria-controls":`c-collapse__content-${e}`,"aria-expanded":o||"false",children:[n?k.jsxs(ne,{alignItems:"center",children:[k.jsx(U,{size:34,mr:"xs",...n}),t?.children]}):r?k.jsx(se,{as:"h3",size:"xxs",color:"black",...r,children:r?.children}):k.jsx(ie,{size:"l",color:"black",...t,children:t?.children}),k.jsx(U,{name:"chevron",size:16,...i,className:A("c-collapse__icon",i?.className)})]}),k.jsx(ne,{...s,direction:"column",p:s?.p||"xl",id:`c-collapse__content-${e}`,"aria-hidden":o?!o:"true","aria-labelledby":`c-collapse__button-${e}`,className:A("c-collapse__content",{"c-collapse__content--with-border":a}),role:"tabpanel",children:l})]})),I(({icon:e,title:t,content:r,...n},o)=>k.jsxs(re,{...n,ref:o,className:A("c-horoscope-topic-card",n?.className),children:[k.jsxs(ne,{alignItems:"center",mb:"s",children:[k.jsx(U,{className:"c-horoscope-topic-card__icon",name:e,size:21}),k.jsx(se,{as:"h3",size:"xs",children:t})]}),k.jsx(ie,{size:"m",children:r})]}));var le,de={};!function(){if(le)return de;le=1,Object.defineProperty(de,"__esModule",{value:!0}),de.StickyShareButtons=de.InlineShareButtons=de.InlineReactionButtons=de.InlineFollowButtons=void 0;var e,t=(e=E)&&e.__esModule?e:{default:e};function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var n,o=c(e);if(t){var a=c(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,n)}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e,t){var r=e.props.config||{enabled:!0};r=JSON.parse(JSON.stringify(r));var n=window.onShareThisLoaded;if(window.onShareThisLoaded=function o(){if(!o.complete){if(!r.id){var a="sharethis-"+Date.now();r.id=a}e.buttons.current&&(e.buttons.current.id=r.id,window.__sharethis__.load(t,r)),n&&n(),o.complete=!0}},document.getElementById("sharethis-js"))window.__sharethis__&&window.onShareThisLoaded();else{var o=document.createElement("script");o.setAttribute("id","sharethis-js");var a={property:r.property||"",product:t,source:"reactjs"},s=Object.keys(a).map(function(e){return e+"="+a[e]}).join("&");o.src="https://platform-api.sharethis.com/js/sharethis.js?"+s,o.async=!0,document.body.appendChild(o)}},d=function(e){a(s,e);var r=i(s);function s(e){var o;return n(this,s),(o=r.call(this,e)).buttons=t.default.createRef(),o}return o(s,[{key:"componentDidMount",value:function(){l(this,"inline-follow-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),s}(t.default.Component);de.InlineFollowButtons=d;var u=function(e){a(s,e);var r=i(s);function s(e){var o;return n(this,s),(o=r.call(this,e)).buttons=t.default.createRef(),o}return o(s,[{key:"componentDidMount",value:function(){l(this,"inline-share-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),s}(t.default.Component);de.InlineShareButtons=u;var p=function(e){a(s,e);var r=i(s);function s(e){var o;return n(this,s),(o=r.call(this,e)).buttons=t.default.createRef(),o}return o(s,[{key:"componentDidMount",value:function(){l(this,"inline-reaction-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),s}(t.default.Component);de.InlineReactionButtons=p;var m=function(e){a(s,e);var r=i(s);function s(e){var o;return n(this,s),(o=r.call(this,e)).buttons=t.default.createRef(),o}return o(s,[{key:"componentDidMount",value:function(){l(this,"sticky-share-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),s}(t.default.Component);de.StickyShareButtons=m}();const ue=E.forwardRef(({href:e,children:t,...r},n)=>k.jsx("a",{href:e,className:A("c-skip-link",ee(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"],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),l(me),c(fe),p()),window.didomiState.didomiPurposesDisabled||window.didomiState.didomiVendorsDisabled||localStorage.setItem(t,"false")},150),r=setTimeout(()=>{window.location.reload()},window.layout===ae.DESKTOP?300: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()})},ve="webo_prev",be=()=>{window.pa?.privacy?.setMode("exempt"),window.Didomi.getCurrentUserStatus().purposes["mesureda-6qyqaZXC"]?.enabled&&window.pa?.privacy?.setMode("optin")},we=()=>{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}},(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))})({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}},xe=()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(()=>{u(ve,_e())}),window.didomiEventListeners=window.didomiEventListeners||[],window.didomiEventListeners.push({event:"consent.changed",listener:()=>{const e=d(ve),t=_e();e&&"4198576"===window.datalayerInfo?.contentId&&((e,t)=>1===e.weborama&&0===t.weborama||1===e.vendor366&&0===t.vendor366)(e,t)&&we(),u(ve,t)}})},Se=()=>{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(()=>{be()}),window.didomiEventListeners=window.didomiEventListeners||[],window.didomiEventListeners.push({event:"consent.changed",listener:()=>{be()}})):window.pa?.privacy?.setMode("optout"),xe()};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),l(me),c(fe),window.Didomi.notice.show())}),Se(),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=d(e);if(void 0!==r){if(n=e,localStorage.removeItem(n),!r)return;const o=t.openCurrentUserStatusTransaction();o.disablePurpose("mesureda-6qyqaZXC"),o.disableVendor("cxense"),o.commit()}var n})}();
10
+ */var k=(v||(v=1,b.exports=function(){if(g)return w;g=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 w.Fragment=r,w.jsx=s,w.jsxs=s,w}()),b.exports),E=f(j());function N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var O,C={exports:{}};var R,$=(O||(O=1,R=C,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}R.exports?(t.default=t,R.exports=t):window.classNames=t}()),C.exports);const A=N($);function I(e){return E.forwardRef(e)}const T=I(({as:e="button",variant:t="primary",children:r,iconProps:n,counter:o,isCentered:a=!1,isSquare:s=!1,isLoading:i=!1,size:c,isCloseWithProgress:l,closeProgressColor:d,...u},p)=>{const m={...u?.style,...d&&{"--button-close-progress-color":`var(--color-theme-${d})`}};return k.jsxs(ne,{...u,style:m,as:e,ref:p,alignItems:"center",justifyContent:"center",gap:"xxs",inline:"link"===t||"a"===e,radius:s?"0":void 0,className:A("c-btn",{[`c-btn--${t}`]:t,[`c-btn--${c}`]:c,"c-btn--is-centered":a,"c-btn--is-loading":i},u?.className),children:[n&&k.jsx(U,{...n}),r,(0===o||o)&&k.jsx(ne,{justifyContent:"center",alignItems:"center",color:"grey-900",bg:"white",px:"xxs",radius:"s",className:"c-btn__counter",children:o}),l&&k.jsx("div",{className:"c-btn__close-progress"})]})});T.displayName="Button",I(({text:e,color:t="black",thickness:r="thin",...n},o)=>{const a=k.jsx(oe,{bg:t,align:"center",className:A("c-divider__line",{[`c-divider__line--${r}`]:"thin"!==r})});return k.jsx(ne,{...n,ref:o,className:A("c-divider",{"c-divider--has-text":!!e},n?.className),children:e?k.jsxs(k.Fragment,{children:[a,k.jsx(oe,{px:"xxs-2",className:"c-divider__text",children:k.jsx(ie,{size:"xxs",color:t,textTransform:"uppercase",children:e})}),a]}):a})}),I(({color:e="black",thickness:t="thin",...r},n)=>k.jsx(re,{...r,ref:n,bg:e,className:A("c-divider-vertical",{[`c-divider-vertical--${t}`]:"thin"!==t},r?.className)}));const P={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 V=["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"],D={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"]},M={radius:["border-radius"]},B={p:["padding"],pt:["padding-top"],pr:["padding-right"],pl:["padding-left"],pb:["padding-bottom"],px:["padding-left","padding-right"],py:["padding-top","padding-bottom"]},q={m:["margin"],mt:["margin-top"],mr:["margin-right"],ml:["margin-left"],mb:["margin-bottom"],mx:["margin-left","margin-right"],my:["margin-top","margin-bottom"],...B},z={...q,borderColor:["border-color"],bg:["background-color"],color:["color"],...M},H={textAlign:["text-align"],weight:["font-weight"],italic:["font-style"],textDecoration:["text-decoration"],textTransform:["text-transform"],fontFamily:["font-family"],whiteSpace:["white-space"]};Object.keys(P.primary),Object.keys(P.secondary),Object.keys(P.greyscale),Object.keys(P.status),Object.keys(P.theme);const U=I(({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&&V.includes(e))(s);return k.jsx(re,{...i,ref:c,color:p?void 0:s,className:A("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}`})]})})});I(({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,...v},b)=>{const w=a&&k.jsx(T,{className:"c-input-container__icon",iconProps:{name:a,size:18},variant:"ghost",color:r||"black",...c}),_=a&&k.jsx(U,{className:"c-input-container__icon",name:a,size:18,color:r||"black"});return k.jsxs(ne,{direction:"column",...u,className:A("c-input",u?.className),children:[o&&k.jsxs("label",{htmlFor:e,className:"c-input__label",children:[o,n&&k.jsxs(ie,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),y&&k.jsx(ie,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:y}),k.jsxs(ne,{gap:a&&h?"xs":void 0,className:A("c-input-container",{[`c-input-container--${l}`]:l,"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(ne,{gap:"s",children:[i?w:_,h]}),k.jsx("input",{id:e,className:A("c-input-container__input",t),required:n,ref:b,"aria-describedby":[y?`${e}-hint`:null,g?`${e}-error`:null].filter(Boolean).join(" ")||void 0,...v})]}),d?.length&&k.jsx(ne,{wrap:"wrap",gapY:"s",gapX:"xxs-2",mt:"xxs-2",children:d.map(({iconProps:e,textProps:t,value:r},n)=>k.jsxs(ne,{alignItems:"center",gap:"xxs",children:[e&&k.jsx(U,{...e}),k.jsx(ie,{dangerouslySetInnerHTML:{__html:r},role:"alert",...t})]},n?.toString()))}),g&&k.jsx(ie,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:g})]})});const G=e=>{if(e.propValue&&["boolean","string","number"].includes(typeof e.propValue)||!e.propValue){const t=J({className:e.className,defaultModifier:e.defaultModifier||"xs",propValue:e.propValue});return t?[t]:[]}return Object.entries(e.propValue).reduce((t,[r,n])=>{const o=J({className:e.className,defaultModifier:r,propValue:n});return o&&t.push(o),t},[])},J=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}`}},W=({basis:e,shrink:t,grow:r,...n})=>A(...G({propValue:e,className:"basis"}),...G({propValue:t,className:"shrink"}),...G({propValue:r,className:"grow"}),Z(n)),Y=({inline:e=!1,direction:t,wrap:r,...n})=>A(...G({propValue:e,className:e?"inline-flex":"flex"}),...G({propValue:t,className:"direction"}),...G({propValue:r}),X(n)),X=e=>A(...G({propValue:e.alignItems,className:"items"}),...G({propValue:e.alignContent,className:"content"}),...G({propValue:e.justifyContent,className:"justify"}),...G({propValue:e.gap,className:"gap"}),...G({propValue:e.gapX,className:"gap-x"}),...G({propValue:e.gapY,className:"gap-y"}),...G({propValue:e.flexGrow,className:"grow"})),Z=e=>A(...G({propValue:e.align,className:"self"})),K=e=>"object"==typeof e.props?Object.keys(e.props).reduce((t,r)=>(e.systemPropNames.includes(r)||(t[r]=e.props[r]),t),{}):{},Q=e=>A(Object.entries(e).filter(([e])=>Object.keys(q).includes(e)).reduce((e,[t,r])=>(e.push(...G({className:t,propValue:r})),e),[])),ee=e=>A(Q(e),(e=>A({[`bg-${e.bg}`]:e.bg,[`color-${e.color}`]:e.color,[`border-color-${e.borderColor}`]:e.borderColor}))(e),(e=>A(Object.entries(e).filter(([e])=>Object.keys(M).includes(e)).reduce((e,[t,r])=>(e.push(...G({className:t,propValue:r})),e),[])))(e)),te=({textAlign:e,weight:t,textTransform:r,textDecoration:n,italic:o,fontFamily:a,whiteSpace:s})=>A(G({className:"text",propValue:e}),G({className:"font-weight",propValue:t}),{[`white-space-${s}`]:!!s,[`text-transform-${r}`]:!!r,[`text-decoration-${n}`]:!!n,"text-italic":!!o,[`font-${a}`]:!!a}),re=I(({as:e="div",children:t,...r},n)=>k.jsx(e,{...K({props:r,systemPropNames:Object.keys(z)}),ref:n,className:A(ee(r),r?.className),children:t}));re.displayName="Box";const ne=I(({as:e="div",children:t,...r},n)=>k.jsx(re,{...K({props:r,systemPropNames:Object.keys(D)}),as:e,ref:n,className:A(Y(r),r?.className),children:t})),oe=I(({as:e="div",children:t,...r},n)=>k.jsx(re,{...K({props:r,systemPropNames:Object.keys(F)}),as:e,ref:n,className:A(W(r),r?.className),children:t}));I(({as:e="a",children:t,color:r,size:n,variant:o,weight:a,whiteSpace:s,tabIsSelected:i,tabVariant:c,tabColor:l,defaultColor:d="ultramarine",isUnderlined:u,...p},m)=>{if(o&&r)throw new Error("You can't use color and variant props together");const f=c||l?A("c-tab",{[`c-tab--${c}`]:c,[`c-tab--${l}`]:l,"c-tab--selected":i,"c-tab--unselected":!i},te({weight:a,whiteSpace:s}),p?.className):A("c-link",{[`c-btn c-btn--${o}`]:o&&!r},te({weight:a,whiteSpace:s}),G({className:"text",propValue:n}),{"c-link--is-underlined":u},p?.className);return k.jsx(re,{...p,as:e,ref:m,color:c||l||o?void 0:r||("inherit"===d?void 0:d),className:f,children:t})}),I(({variant:e,progressColor:t="ultramarine"},r)=>k.jsx(re,{ref:r,bg:"grey-100",className:A("c-progress",{[`c-progress--${e}`]:e}),children:k.jsx(re,{className:"c-progress__bar",bg:t,style:{width:"0%"}})})),I(({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(ne,{...i,ref:f,direction:"column",className:A("c-select",i?.className),children:[n&&k.jsxs("label",{htmlFor:e,className:"c-select__label",children:[n,r&&k.jsxs(ie,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),u&&k.jsx(ie,{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(U,{className:"c-select__icon",name:l,size:18}),k.jsx(U,{className:`c-select__caret c-select__caret--${c}`,name:"arrow",size:12}),k.jsxs("select",{id:e,className:A("c-select__select",`c-select__select--${c}`,{"c-select__select--has-icon":!!l},{"c-select__select--large":d},Q(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,...K({props:m,systemPropNames:Object.keys(B)}),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(ie,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:p})]}));var ae=(e=>(e.MOBILE="mobile",e.DESKTOP="desktop",e))(ae||{});I(({layout:e,children:t,itemsGap:r,hasSpaceAroundButtons:n=!1,buttonsVariant:o,colorVariant:a,sliderVariant:s="default",auto:i=!1,delay:c=3e3,...l},d)=>k.jsxs(re,{...l,ref:d,className:A("c-slider js-navigation-container",l?.className),"data-slider-variant":s,"data-slider-auto":i,"data-slider-delay":c,children:[k.jsx(re,{className:"c-slider__viewport js-navigation-container__list",children:k.jsx(ne,{className:"c-slider__list",alignItems:"center",gap:r,children:t})}),e===ae.DESKTOP&&k.jsx(re,{className:"c-slider__buttons-container",children:Array.from(["previous","next"],e=>k.jsx(re,{pr:n&&"previous"===e&&("round-small-transparent-bg"===o?"m":"l")||void 0,pl:n&&"next"===e&&("round-small-transparent-bg"===o?"m":"l")||void 0,className:A(`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--${s}`]:s}),children:k.jsx(T,{variant:o||"round",color:a,..."videos"===s&&{p:"m"},iconProps:{name:"chevron",size:"videos"===s?14:12,rotation:"previous"===e?"half":void 0,svgTitle:"previous"===e?"Précédent":"Suivant"}})},e))})]})),I(({as:e="a",id:t,variant:r="primary",size:n,children:o,...a},s)=>k.jsx(re,{...a,as:"span"===r?"span":e,href:"span"===r?void 0:a?.href,ref:s,className:A("c-tags",`c-tags--${r}`,{[`c-tags--${n}`]:n},a?.className),"data-id":t,px:a?.px,children:o})),I(({id:e,required:t,label:r,variant:n,msg:o,rows:a=5,containerProps:s,hint:i,error:c,...l},d)=>k.jsxs(ne,{direction:"column",ref:d,...s,className:A("c-textarea",s?.className),children:[r&&k.jsxs("label",{htmlFor:e,className:"c-textarea__label",children:[r,t&&k.jsxs(ie,{as:"span",size:"xxs",weight:"regular",children:[" ","(obligatoire)"]})]}),i&&k.jsx(ie,{as:"span",id:`${e}-hint`,mt:"xxs-2",ml:"xxs-2",className:"u-mask",children:i}),k.jsx(ne,{className:"c-textarea-container",children:k.jsx("textarea",{rows:a,placeholder:"Votre message...",required:t,...l,id:e,name:e,className:A("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(ne,{wrap:"wrap",gapY:"s",gapX:"xxs-2",mt:"xxs-2",children:o.map(({iconProps:e,textProps:t,value:r},n)=>k.jsxs(ne,{alignItems:"center",gap:"xxs",children:[e&&k.jsx(U,{...e}),k.jsx(ie,{dangerouslySetInnerHTML:{__html:r},role:"alert",...t})]},n?.toString()))}),c&&k.jsx(ie,{as:"span",id:`${e}-error`,className:"u-mask",color:"red",size:"xxs",mt:"xxs-2",ml:"xxs-2",role:"alert",children:c})]}));const se=I(({as:e="h1",size:t,children:r,...n},o)=>k.jsx(ce,{...n,as:e,ref:o,className:A(G({className:"heading",propValue:t}),n?.className),children:r})),ie=I(({as:e="p",size:t,highlighted:r,children:n,...o},a)=>k.jsx(ce,{as:r?"span":e,bg:r?"sponsoring":o.bg,p:r?"xxs":o.p,color:r?"grey-800":o.color,...o,ref:a,className:A(G({className:"text",propValue:t}),{"text-highlighted":r},o?.className),children:n})),ce=I(({as:e="p",children:t,...r},n)=>t&&t.toString().length||r?.dangerouslySetInnerHTML?k.jsx(re,{...K({props:r,systemPropNames:Object.keys(H)}),as:e,ref:n,className:A(te(r),r?.className),children:t}):null);I(({as:e="article",children:t,className:r,clickable:n=!1,...o},a)=>k.jsx(ne,{...o,as:e,ref:a,justifyContent:o?.justifyContent||"between",className:A("c-card-container",{"c-card-container--clickable":n},r),children:t})),I(({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(re,{...u,className:A("c-collapse js-collapse",{"c-collapse--dropdown":d}),ref:p,children:[k.jsxs(re,{...c,as:"button",type:"button",id:`c-collapse__button-${e}`,pl:c?.pl||"l",py:c?.py||"xxs",className:A("c-collapse__button js-collapse__button",c?.className),"aria-controls":`c-collapse__content-${e}`,"aria-expanded":o||"false",children:[n?k.jsxs(ne,{alignItems:"center",children:[k.jsx(U,{size:34,mr:"xs",...n}),t?.children]}):r?k.jsx(se,{as:"h3",size:"xxs",color:"black",...r,children:r?.children}):k.jsx(ie,{size:"l",color:"black",...t,children:t?.children}),k.jsx(U,{name:"chevron",size:16,...i,className:A("c-collapse__icon",i?.className)})]}),k.jsx(ne,{...s,direction:"column",p:s?.p||"xl",id:`c-collapse__content-${e}`,"aria-hidden":o?!o:"true","aria-labelledby":`c-collapse__button-${e}`,className:A("c-collapse__content",{"c-collapse__content--with-border":a}),role:"tabpanel",children:l})]})),I(({icon:e,title:t,content:r,...n},o)=>k.jsxs(re,{...n,ref:o,className:A("c-horoscope-topic-card",n?.className),children:[k.jsxs(ne,{alignItems:"center",mb:"s",children:[k.jsx(U,{className:"c-horoscope-topic-card__icon",name:e,size:21}),k.jsx(se,{as:"h3",size:"xs",children:t})]}),k.jsx(ie,{size:"m",children:r})]}));var le,de={};!function(){if(le)return de;le=1,Object.defineProperty(de,"__esModule",{value:!0}),de.StickyShareButtons=de.InlineShareButtons=de.InlineReactionButtons=de.InlineFollowButtons=void 0;var e,t=(e=E)&&e.__esModule?e:{default:e};function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var n,o=c(e);if(t){var a=c(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,n)}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e,t){var r=e.props.config||{enabled:!0};r=JSON.parse(JSON.stringify(r));var n=window.onShareThisLoaded;if(window.onShareThisLoaded=function o(){if(!o.complete){if(!r.id){var a="sharethis-"+Date.now();r.id=a}e.buttons.current&&(e.buttons.current.id=r.id,window.__sharethis__.load(t,r)),n&&n(),o.complete=!0}},document.getElementById("sharethis-js"))window.__sharethis__&&window.onShareThisLoaded();else{var o=document.createElement("script");o.setAttribute("id","sharethis-js");var a={property:r.property||"",product:t,source:"reactjs"},s=Object.keys(a).map(function(e){return e+"="+a[e]}).join("&");o.src="https://platform-api.sharethis.com/js/sharethis.js?"+s,o.async=!0,document.body.appendChild(o)}},d=function(e){a(s,e);var r=i(s);function s(e){var o;return n(this,s),(o=r.call(this,e)).buttons=t.default.createRef(),o}return o(s,[{key:"componentDidMount",value:function(){l(this,"inline-follow-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),s}(t.default.Component);de.InlineFollowButtons=d;var u=function(e){a(s,e);var r=i(s);function s(e){var o;return n(this,s),(o=r.call(this,e)).buttons=t.default.createRef(),o}return o(s,[{key:"componentDidMount",value:function(){l(this,"inline-share-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),s}(t.default.Component);de.InlineShareButtons=u;var p=function(e){a(s,e);var r=i(s);function s(e){var o;return n(this,s),(o=r.call(this,e)).buttons=t.default.createRef(),o}return o(s,[{key:"componentDidMount",value:function(){l(this,"inline-reaction-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),s}(t.default.Component);de.InlineReactionButtons=p;var m=function(e){a(s,e);var r=i(s);function s(e){var o;return n(this,s),(o=r.call(this,e)).buttons=t.default.createRef(),o}return o(s,[{key:"componentDidMount",value:function(){l(this,"sticky-share-buttons")}},{key:"render",value:function(){return t.default.createElement("div",{ref:this.buttons})}}]),s}(t.default.Component);de.StickyShareButtons=m}();const ue=E.forwardRef(({href:e,children:t,...r},n)=>k.jsx("a",{href:e,className:A("c-skip-link",ee(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"],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),l(me),c(fe),p()),window.didomiState.didomiPurposesDisabled||window.didomiState.didomiVendorsDisabled||localStorage.setItem(t,"false")},150),r=setTimeout(()=>{window.location.reload()},window.layout===ae.DESKTOP?300: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()})},ve="webo_prev",be=()=>{window.pa?.privacy?.setMode("exempt"),window.Didomi.getCurrentUserStatus().purposes["mesureda-6qyqaZXC"]?.enabled&&window.pa?.privacy?.setMode("optin")},we=()=>{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}},(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))})({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}},xe=()=>{window.didomiOnReady=window.didomiOnReady||[],window.didomiOnReady.push(()=>{u(ve,_e())}),window.didomiEventListeners=window.didomiEventListeners||[],window.didomiEventListeners.push({event:"consent.changed",listener:()=>{const e=d(ve),t=_e();["4198576","4008938"].includes(window.datalayerInfo?.contentId||"")&&((e,t)=>e?1===e.weborama&&0===t.weborama||1===e.vendor366&&0===t.vendor366:0===t.weborama||0===t.vendor366)(e,t)&&we(),u(ve,t)}})},Se=()=>{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(()=>{be()}),window.didomiEventListeners=window.didomiEventListeners||[],window.didomiEventListeners.push({event:"consent.changed",listener:()=>{be()}})):window.pa?.privacy?.setMode("optout"),xe()};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),l(me),c(fe),window.Didomi.notice.show())}),Se(),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=d(e);if(void 0!==r){if(n=e,localStorage.removeItem(n),!r)return;const o=t.openCurrentUserStatusTransaction();o.disablePurpose("mesureda-6qyqaZXC"),o.disableVendor("cxense"),o.commit()}var n})}();
11
11
  //# sourceMappingURL=cmp.min.js.map