@20minutes/hela 0.1.21 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -40565,13 +40565,13 @@ const ij = function() {
40565
40565
  parentRubric: o,
40566
40566
  tags: l,
40567
40567
  colorScheme: c = "primary",
40568
- layout: u = an.DESKTOP
40568
+ layout: u = an.MOBILE
40569
40569
  }) => {
40570
40570
  const m = Tg.useRef(null);
40571
40571
  return uv(() => {
40572
40572
  m.current && u === an.DESKTOP && (fj(m.current), dj(m.current));
40573
40573
  }, []), /* @__PURE__ */ _e("div", {
40574
- className: "c-breadcrumb o-mobile-gutters",
40574
+ className: "c-breadcrumb",
40575
40575
  ref: m,
40576
40576
  children: [/* @__PURE__ */ O("div", {
40577
40577
  className: "c-breadcrumb__viewport",
@@ -41791,7 +41791,7 @@ const iK = ({
41791
41791
  [`u-color-${c.theme}`]: c.theme
41792
41792
  }),
41793
41793
  children: c.name
41794
- }))
41794
+ }, c.name))
41795
41795
  }), /* @__PURE__ */ _e("div", {
41796
41796
  className: "c-menu__tiles",
41797
41797
  children: [/* @__PURE__ */ O(gg, {
package/dist/index.umd.js CHANGED
@@ -323,4 +323,4 @@ Check the render method of %s.`,sn(zr)||"Unknown"));var U=dd(y,b);U.payload={ele
323
323
  let root = createRoot(domContainer);
324
324
  root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(p=t.identifierPrefix),t.onRecoverableError!==void 0&&(y=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var b=J_(e,P0,null,a,s,p,y);M0(b.current,e);var B=e.nodeType===Rt?e.parentNode:e;return d1(B),new S4(b)}function Vg(e){this._internalRoot=e}function iK(e){e&&o0(e)}Vg.prototype.unstable_scheduleHydration=iK;function oK(e,t,a){if(!Kg(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");E9(e),t===void 0&&S("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var s=a!=null?a:null,p=a!=null&&a.hydratedSources||null,y=!1,b=!1,B="",U=S9;a!=null&&(a.unstable_strictMode===!0&&(y=!0),a.identifierPrefix!==void 0&&(B=a.identifierPrefix),a.onRecoverableError!==void 0&&(U=a.onRecoverableError));var X=Z_(t,null,e,P0,s,y,b,B,U);if(M0(X.current,e),d1(e),p)for(var ee=0;ee<p.length;ee++){var ge=p[ee];h$(X,ge)}return new Vg(X)}function Kg(e){return!!(e&&(e.nodeType===Ae||e.nodeType===rn||e.nodeType===pn||!wt))}function im(e){return!!(e&&(e.nodeType===Ae||e.nodeType===rn||e.nodeType===pn||e.nodeType===Rt&&e.nodeValue===" react-mount-point-unstable "))}function E9(e){e.nodeType===Ae&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&S("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),_1(e)&&(e._reactRootContainer?S("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):S("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var lK=l.ReactCurrentOwner,w9;w9=function(e){if(e._reactRootContainer&&e.nodeType!==Rt){var t=t9(e._reactRootContainer.current);t&&t.parentNode!==e&&S("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var a=!!e._reactRootContainer,s=E4(e),p=!!(s&&qd(s));p&&!a&&S("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===Ae&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&S("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function E4(e){return e?e.nodeType===rn?e.documentElement:e.firstChild:null}function C9(){}function uK(e,t,a,s,p){if(p){if(typeof s=="function"){var y=s;s=function(){var ve=jg(b);y.call(ve)}}var b=Z_(t,s,e,Jd,null,!1,!1,"",C9);e._reactRootContainer=b,M0(b.current,e);var B=e.nodeType===Rt?e.parentNode:e;return d1(B),md(),b}else{for(var U;U=e.lastChild;)e.removeChild(U);if(typeof s=="function"){var X=s;s=function(){var ve=jg(ee);X.call(ve)}}var ee=J_(e,Jd,null,!1,!1,"",C9);e._reactRootContainer=ee,M0(ee.current,e);var ge=e.nodeType===Rt?e.parentNode:e;return d1(ge),md(function(){am(t,ee,a,s)}),ee}}function sK(e,t){e!==null&&typeof e!="function"&&S("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Wg(e,t,a,s,p){w9(a),sK(p===void 0?null:p,"render");var y=a._reactRootContainer,b;if(!y)b=uK(a,t,e,p,s);else{if(b=y,typeof p=="function"){var B=p;p=function(){var U=jg(b);B.call(U)}}am(t,b,e,p)}return jg(b)}function cK(e){{var t=lK.current;if(t!==null&&t.stateNode!==null){var a=t.stateNode._warnedAboutRefsInRender;a||S("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",un(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===Ae?e:GV(e,"findDOMNode")}function fK(e,t,a){if(S("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!im(t))throw new Error("Target container is not a DOM element.");{var s=_1(t)&&t._reactRootContainer===void 0;s&&S("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return Wg(null,e,t,!0,a)}function dK(e,t,a){if(S("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!im(t))throw new Error("Target container is not a DOM element.");{var s=_1(t)&&t._reactRootContainer===void 0;s&&S("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return Wg(null,e,t,!1,a)}function pK(e,t,a,s){if(S("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!im(a))throw new Error("Target container is not a DOM element.");if(e==null||!Mu(e))throw new Error("parentComponent must be a valid React Component");return Wg(e,t,a,!1,s)}function hK(e){if(!im(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=_1(e)&&e._reactRootContainer===void 0;t&&S("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var a=E4(e),s=a&&!qd(a);s&&S("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return md(function(){Wg(null,null,e,!1,function(){e._reactRootContainer=null,yC(e)})}),!0}else{{var p=E4(e),y=!!(p&&qd(p)),b=e.nodeType===Ae&&im(e.parentNode)&&!!e.parentNode._reactRootContainer;y&&S("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",b?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}Wt(XV),e0(qV),Mp(QV),Gv(Ku),n0(Dp),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&S("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),rf(gU),ul(QS,oV,md);function vK(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Kg(t))throw new Error("Target container is not a DOM element.");return YV(e,t,null,a)}function mK(e,t,a,s){return pK(e,t,a,s)}var w4={usingClientEntryPoint:!1,Events:[qd,$h,F0,As,Fl,QS]};function gK(e,t){return w4.usingClientEntryPoint||S('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),aK(e,t)}function yK(e,t,a){return w4.usingClientEntryPoint||S('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),oK(e,t,a)}function SK(e){return O_()&&S("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),md(e)}var EK=rK({findFiberByHostInstance:$p,bundleType:1,version:h4,rendererPackageName:"react-dom"});if(!EK&&zt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var _9=window.location.protocol;/^(https?|file):$/.test(_9)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(_9==="file:"?`
325
325
  You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}wu.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w4,wu.createPortal=vK,wu.createRoot=gK,wu.findDOMNode=cK,wu.flushSync=SK,wu.hydrate=fK,wu.hydrateRoot=yK,wu.render=dK,wu.unmountComponentAtNode=hK,wu.unstable_batchedUpdates=QS,wu.unstable_renderSubtreeIntoContainer=mK,wu.version=h4,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),wu}(function(i){function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(l){console.error(l)}}}process.env.NODE_ENV==="production"?(o(),i.exports=eN()):i.exports=tN()})(Fw);var nN=Fw.exports,rN=nN.unstable_flushControlled,aN=rN,Uw=tc.jsx;function iN(i,o){i.prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o}var oN=Xn.default,Hw=Ep,lN=function(i){iN(o,i);function o(){return i.apply(this,arguments)||this}var l=o.prototype;return l.shouldComponentUpdate=function(u){return this.props.text!==u.text||this.props.editorState.getSelection().getHasFocus()!==u.editorState.getSelection().getHasFocus()},l.render=function(){var u=this.props.editorState.getSelection().getHasFocus(),m=Hw({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":u}),S={whiteSpace:"pre-wrap"};return Uw("div",{className:m,children:Uw("div",{className:Hw("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:S,children:this.props.text})})},o}(oN.Component),uN=lN,$w=$y,Iv=Lm,jw=Su,Rd=jw.isPlatform("Mac OS X"),Vw=Rd&&jw.isBrowser("Firefox < 29"),Dd=$w.hasCommandModifier,Nf=$w.isCtrlKeyCommand;function Kw(i){return Rd&&i.altKey||Nf(i)}function sN(i){return Dd(i)?i.shiftKey?"redo":"undo":null}function cN(i){return!Rd&&i.shiftKey?null:Kw(i)?"delete-word":"delete"}function fN(i){return Dd(i)&&Rd?"backspace-to-start-of-line":Kw(i)?"backspace-word":"backspace"}function dN(i){switch(i.keyCode){case 66:return Dd(i)?"bold":null;case 68:return Nf(i)?"delete":null;case 72:return Nf(i)?"backspace":null;case 73:return Dd(i)?"italic":null;case 74:return Dd(i)?"code":null;case 75:return Rd&&Nf(i)?"secondary-cut":null;case 77:return Nf(i)?"split-block":null;case 79:return Nf(i)?"split-block":null;case 84:return Rd&&Nf(i)?"transpose-characters":null;case 85:return Dd(i)?"underline":null;case 87:return Rd&&Nf(i)?"backspace-word":null;case 89:return Nf(i)?Rd?"secondary-paste":"redo":null;case 90:return sN(i)||null;case Iv.RETURN:return"split-block";case Iv.DELETE:return cN(i);case Iv.BACKSPACE:return fN(i);case Iv.LEFT:return Vw&&Dd(i)?"move-selection-to-start-of-block":null;case Iv.RIGHT:return Vw&&Dd(i)?"move-selection-to-end-of-block":null;default:return null}}var Ww=dN,e2=tc.jsx,pN=Xn.default.createElement,Yw=tc.jsxs;function t2(i){for(var o=1;o<arguments.length;o++){var l=arguments[o]!=null?arguments[o]:{},c=Object.keys(l);typeof Object.getOwnPropertySymbols=="function"&&(c=c.concat(Object.getOwnPropertySymbols(l).filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable}))),c.forEach(function(u){_n(i,u,l[u])})}return i}function kn(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function _n(i,o,l){return o in i?Object.defineProperty(i,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[o]=l,i}function Gw(i,o){i.prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o}var hN=hy,vN=a7,mN=xD,gN=qA,yN=bO,SN=QL,Xw=aN,EN=uN,wN=Na,qw=Xn.default,CN=Ay,_N=$m,bN=Su,n2=Ep,xN=jc,TN=Ww,kN=jm,RN=wd,Ym=ra,Qw=Dv,DN=yu,Jw=bN.isBrowser("IE"),AN=!Jw,Zw={edit:SN,composite:mN,drag:yN,cut:null,render:null},e8=!1,ON=function(i){Gw(o,i);function o(){return i.apply(this,arguments)||this}var l=o.prototype;return l.render=function(){return null},l.componentDidMount=function(){this._update()},l.componentDidUpdate=function(){this._update()},l._update=function(){var u=this.props.editor;u._latestEditorState=this.props.editorState,u._blockSelectEvents=!0},o}(qw.Component),t8=function(i){Gw(o,i);function o(c){var u;return u=i.call(this,c)||this,_n(kn(u),"_blockSelectEvents",void 0),_n(kn(u),"_clipboard",void 0),_n(kn(u),"_handler",void 0),_n(kn(u),"_dragCount",void 0),_n(kn(u),"_internalDrag",void 0),_n(kn(u),"_editorKey",void 0),_n(kn(u),"_placeholderAccessibilityID",void 0),_n(kn(u),"_latestEditorState",void 0),_n(kn(u),"_latestCommittedEditorState",void 0),_n(kn(u),"_pendingStateFromBeforeInput",void 0),_n(kn(u),"_onBeforeInput",void 0),_n(kn(u),"_onBlur",void 0),_n(kn(u),"_onCharacterData",void 0),_n(kn(u),"_onCompositionEnd",void 0),_n(kn(u),"_onCompositionStart",void 0),_n(kn(u),"_onCopy",void 0),_n(kn(u),"_onCut",void 0),_n(kn(u),"_onDragEnd",void 0),_n(kn(u),"_onDragOver",void 0),_n(kn(u),"_onDragStart",void 0),_n(kn(u),"_onDrop",void 0),_n(kn(u),"_onInput",void 0),_n(kn(u),"_onFocus",void 0),_n(kn(u),"_onKeyDown",void 0),_n(kn(u),"_onKeyPress",void 0),_n(kn(u),"_onKeyUp",void 0),_n(kn(u),"_onMouseDown",void 0),_n(kn(u),"_onMouseUp",void 0),_n(kn(u),"_onPaste",void 0),_n(kn(u),"_onSelect",void 0),_n(kn(u),"editor",void 0),_n(kn(u),"editorContainer",void 0),_n(kn(u),"focus",void 0),_n(kn(u),"blur",void 0),_n(kn(u),"setMode",void 0),_n(kn(u),"exitCurrentMode",void 0),_n(kn(u),"restoreEditorDOM",void 0),_n(kn(u),"setClipboard",void 0),_n(kn(u),"getClipboard",void 0),_n(kn(u),"getEditorKey",void 0),_n(kn(u),"update",void 0),_n(kn(u),"onDragEnter",void 0),_n(kn(u),"onDragLeave",void 0),_n(kn(u),"_handleEditorContainerRef",function(m){u.editorContainer=m,u.editor=m!==null?m.firstChild:null}),_n(kn(u),"focus",function(m){var S=u.props.editorState,A=S.getSelection().getHasFocus(),x=u.editor;if(!!x){var L=_N.getScrollParent(x),q=m||kN(L),$=q.x,K=q.y;Qw(x)||(process.env.NODE_ENV!=="production"?Ym(!1,"editorNode is not an HTMLElement"):Ym(!1)),x.focus(),L===window?window.scrollTo($,K):CN.setTop(L,K),A||u.update(wN.forceSelection(S,S.getSelection()))}}),_n(kn(u),"blur",function(){var m=u.editor;!m||(Qw(m)||(process.env.NODE_ENV!=="production"?Ym(!1,"editorNode is not an HTMLElement"):Ym(!1)),m.blur())}),_n(kn(u),"setMode",function(m){var S=u.props,A=S.onPaste,x=S.onCut,L=S.onCopy,q=t2({},Zw.edit);A&&(q.onPaste=A),x&&(q.onCut=x),L&&(q.onCopy=L);var $=t2({},Zw,{edit:q});u._handler=$[m]}),_n(kn(u),"exitCurrentMode",function(){u.setMode("edit")}),_n(kn(u),"restoreEditorDOM",function(m){u.setState({contentsKey:u.state.contentsKey+1},function(){u.focus(m)})}),_n(kn(u),"setClipboard",function(m){u._clipboard=m}),_n(kn(u),"getClipboard",function(){return u._clipboard}),_n(kn(u),"update",function(m){u._latestEditorState=m,u.props.onChange(m)}),_n(kn(u),"onDragEnter",function(){u._dragCount++}),_n(kn(u),"onDragLeave",function(){u._dragCount--,u._dragCount===0&&u.exitCurrentMode()}),u._blockSelectEvents=!1,u._clipboard=null,u._handler=null,u._dragCount=0,u._editorKey=c.editorKey||xN(),u._placeholderAccessibilityID="placeholder-"+u._editorKey,u._latestEditorState=c.editorState,u._latestCommittedEditorState=c.editorState,u._onBeforeInput=u._buildHandler("onBeforeInput"),u._onBlur=u._buildHandler("onBlur"),u._onCharacterData=u._buildHandler("onCharacterData"),u._onCompositionEnd=u._buildHandler("onCompositionEnd"),u._onCompositionStart=u._buildHandler("onCompositionStart"),u._onCopy=u._buildHandler("onCopy"),u._onCut=u._buildHandler("onCut"),u._onDragEnd=u._buildHandler("onDragEnd"),u._onDragOver=u._buildHandler("onDragOver"),u._onDragStart=u._buildHandler("onDragStart"),u._onDrop=u._buildHandler("onDrop"),u._onInput=u._buildHandler("onInput"),u._onFocus=u._buildHandler("onFocus"),u._onKeyDown=u._buildHandler("onKeyDown"),u._onKeyPress=u._buildHandler("onKeyPress"),u._onKeyUp=u._buildHandler("onKeyUp"),u._onMouseDown=u._buildHandler("onMouseDown"),u._onMouseUp=u._buildHandler("onMouseUp"),u._onPaste=u._buildHandler("onPaste"),u._onSelect=u._buildHandler("onSelect"),u.getEditorKey=function(){return u._editorKey},process.env.NODE_ENV!=="production"&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach(function(m){c.hasOwnProperty(m)&&console.warn("Supplying an `".concat(m,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")}),u.state={contentsKey:0},u}var l=o.prototype;return l._buildHandler=function(u){var m=this;return function(S){if(!m.props.readOnly){var A=m._handler&&m._handler[u];A&&(Xw?Xw(function(){return A(m,S)}):A(m,S))}}},l._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},l._renderPlaceholder=function(){if(this._showPlaceholder()){var u={text:DN(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return e2(EN,{...u})}return null},l._renderARIADescribedBy=function(){var u=this.props.ariaDescribedBy||"",m=this._showPlaceholder()?this._placeholderAccessibilityID:"";return u.replace("{{editor_id_placeholder}}",m)||void 0},l.render=function(){var u=this.props,m=u.blockRenderMap,S=u.blockRendererFn,A=u.blockStyleFn,x=u.customStyleFn,L=u.customStyleMap,q=u.editorState,$=u.preventScroll,K=u.readOnly,J=u.textAlignment,te=u.textDirectionality,le=n2({"DraftEditor/root":!0,"DraftEditor/alignLeft":J==="left","DraftEditor/alignRight":J==="right","DraftEditor/alignCenter":J==="center"}),ie={outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},oe=this.props.role||"textbox",Ce=oe==="combobox"?!!this.props.ariaExpanded:null,Se={blockRenderMap:m,blockRendererFn:S,blockStyleFn:A,customStyleMap:t2({},vN,L),customStyleFn:x,editorKey:this._editorKey,editorState:q,preventScroll:$,textDirectionality:te};return Yw("div",{className:le,children:[this._renderPlaceholder(),e2("div",{className:n2("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef,children:Yw("div",{"aria-activedescendant":K?null:this.props.ariaActiveDescendantID,"aria-autocomplete":K?null:this.props.ariaAutoComplete,"aria-controls":K?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":K?null:Ce,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":K?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:n2({notranslate:!K,"public/DraftEditor/content":!0}),contentEditable:!K,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:K?null:oe,spellCheck:AN&&this.props.spellCheck,style:ie,suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex,children:[e2(ON,{editor:this,editorState:q}),pN(gN,{...Se,key:"contents"+this.state.contentsKey})]})})]})},l.componentDidMount=function(){this._blockSelectEvents=!1,!e8&&RN("draft_ods_enabled")&&(e8=!0),this.setMode("edit"),Jw&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):Sd.execCommand("AutoUrlDetect",!1,!1))},l.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},o}(qw.Component);_n(t8,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:hN,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:TN,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var MN=t8,FN={},BN={stringify:function(o){return"_"+String(o)},unstringify:function(o){return o.slice(1)}},n8=BN,LN=n8,NN=bp,r8=NN.strlen;function zN(i,o){var l=[];return i.findEntityRanges(function(c){return!!c.getEntity()},function(c,u){var m=i.getText(),S=i.getEntityAt(c);l.push({offset:r8(m.slice(0,c)),length:r8(m.slice(c,u)),key:Number(o[LN.stringify(S)])})}),l}var IN=zN,a8=bp,PN=gv,UN=function(o,l){return o===l},HN=function(o){return!!o},$N=[];function jN(i,o,l){var c=[],u=o.map(function(m){return m.has(l)}).toList();return PN(u,UN,HN,function(m,S){var A=i.getText();c.push({offset:a8.strlen(A.slice(0,m)),length:a8.strlen(A.slice(m,S)),style:l})}),c}function VN(i){var o=i.getCharacterList().map(function(c){return c.getStyle()}).toList(),l=o.flatten().toSet().map(function(c){return jN(i,o,c)});return Array.prototype.concat.apply($N,l.toJS())}var KN=VN;function WN(i){for(var o=1;o<arguments.length;o++){var l=arguments[o]!=null?arguments[o]:{},c=Object.keys(l);typeof Object.getOwnPropertySymbols=="function"&&(c=c.concat(Object.getOwnPropertySymbols(l).filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable}))),c.forEach(function(u){YN(i,u,l[u])})}return i}function YN(i,o,l){return o in i?Object.defineProperty(i,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[o]=l,i}var GN=gp,XN=Cs,i8=n8,qN=IN,QN=KN,o8=ra,l8=function(o,l){return{key:o.getKey(),text:o.getText(),type:o.getType(),depth:o.getDepth(),inlineStyleRanges:QN(o),entityRanges:qN(o,l),data:o.getData().toObject()}},JN=function(o,l,c,u){if(o instanceof GN){c.push(l8(o,l));return}o instanceof XN||(process.env.NODE_ENV!=="production"?o8(!1,"block is not a BlockNode"):o8(!1));var m=o.getParentKey(),S=u[o.getKey()]=WN({},l8(o,l),{children:[]});if(m){u[m].children.push(S);return}c.push(S)},ZN=function(o,l){var c=l.entityMap,u=[],m={},S={},A=0;return o.getBlockMap().forEach(function(x){x.findEntityRanges(function(L){return L.getEntity()!==null},function(L){var q=x.getEntityAt(L),$=i8.stringify(q);S[$]||(S[$]=q,c[$]="".concat(A),A++)}),JN(x,c,u,m)}),{blocks:u,entityMap:c}},ez=function(o,l){var c=l.blocks,u=l.entityMap,m={};return Object.keys(u).forEach(function(S,A){var x=o.getEntity(i8.unstringify(S));m[A]={type:x.getType(),mutability:x.getMutability(),data:x.getData()}}),{blocks:c,entityMap:m}},tz=function(o){var l={entityMap:{},blocks:[]};return l=ZN(o,l),l=ez(o,l),l},nz=tz;function Pv(i){for(var o=1;o<arguments.length;o++){var l=arguments[o]!=null?arguments[o]:{},c=Object.keys(l);typeof Object.getOwnPropertySymbols=="function"&&(c=c.concat(Object.getOwnPropertySymbols(l).filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable}))),c.forEach(function(u){rz(i,u,l[u])})}return i}function rz(i,o,l){return o in i?Object.defineProperty(i,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[o]=l,i}var az=jc,Gm=ra,iz=function(o,l){for(var c=[].concat(o).reverse();c.length;){var u=c.pop();l(u);var m=u.children;Array.isArray(m)||(process.env.NODE_ENV!=="production"?Gm(!1,"Invalid tree raw block"):Gm(!1)),c=c.concat([].concat(m.reverse()))}},u8=function(o){if(!(o&&o.type))return!1;var l=o.type;return l==="unordered-list-item"||l==="ordered-list-item"},oz=function(o){Array.isArray(o.children)&&(o.children=o.children.map(function(l){return l.type===o.type?Pv({},l,{depth:(o.depth||0)+1}):l}))},lz={fromRawTreeStateToRawState:function(o){var l=o.blocks,c=[];return Array.isArray(l)||(process.env.NODE_ENV!=="production"?Gm(!1,"Invalid raw state"):Gm(!1)),!Array.isArray(l)||!l.length?o:(iz(l,function(u){var m=Pv({},u);u8(u)&&(m.depth=m.depth||0,oz(u),u.children!=null&&u.children.length>0)||(delete m.children,c.push(m))}),o.blocks=c,Pv({},o,{blocks:c}))},fromRawStateToRawTreeState:function(o){var l=[],c=[];return o.blocks.forEach(function(u){var m=u8(u),S=u.depth||0,A=Pv({},u,{children:[]});if(!m){l.push(A);return}var x=c[0];if(x==null&&S===0)l.push(A);else if(x==null||x.depth<S-1){var L={key:az(),text:"",depth:S-1,type:u.type,children:[],entityRanges:[],inlineStyleRanges:[]};c.unshift(L),S===1?l.push(L):x!=null&&x.children.push(L),L.children.push(A)}else if(x.depth===S-1)x.children.push(A);else{for(;x!=null&&x.depth>=S;)c.shift(),x=c[0];S>0?x.children.push(A):l.push(A)}}),Pv({},o,{blocks:l})}},uz=lz,zf=Py,sz={isValidBlock:function(o,l){var c=o.getKey(),u=o.getParentKey();if(u!=null){var m=l.get(u);if(!m.getChildKeys().includes(c))return process.env.NODE_ENV!=="production"&&zf(!0,"Tree is missing parent -> child pointer on %s",c),!1}var S=o.getChildKeys().map(function($){return l.get($)});if(!S.every(function($){return $.getParentKey()===c}))return process.env.NODE_ENV!=="production"&&zf(!0,"Tree is missing child -> parent pointer on %s",c),!1;var A=o.getPrevSiblingKey();if(A!=null){var x=l.get(A);if(x.getNextSiblingKey()!==c)return process.env.NODE_ENV!=="production"&&zf(!0,"Tree is missing nextSibling pointer on %s's prevSibling",c),!1}var L=o.getNextSiblingKey();if(L!=null){var q=l.get(L);if(q.getPrevSiblingKey()!==c)return process.env.NODE_ENV!=="production"&&zf(!0,"Tree is missing prevSibling pointer on %s's nextSibling",c),!1}return L!==null&&A!==null&&A===L?(process.env.NODE_ENV!=="production"&&zf(!0,"Tree has a two-node cycle at %s",c),!1):o.text!=""&&o.getChildKeys().size>0?(process.env.NODE_ENV!=="production"&&zf(!0,"Leaf node %s has children",c),!1):!0},isConnectedTree:function(o){var l=o.toArray().filter(function(K){return K.getParentKey()==null&&K.getPrevSiblingKey()==null});if(l.length!==1)return process.env.NODE_ENV!=="production"&&zf(!0,"Tree is not connected. More or less than one first node"),!1;for(var c=l.shift(),u=0,m=c.getKey(),S=[];m!=null;){var A=o.get(m),x=A.getChildKeys(),L=A.getNextSiblingKey();if(x.size>0){L!=null&&S.unshift(L);var q=x.map(function(K){return o.get(K)}),$=q.find(function(K){return K.getPrevSiblingKey()==null});if($==null)return process.env.NODE_ENV!=="production"&&zf(!0,"%s has no first child",m),!1;m=$.getKey()}else A.getNextSiblingKey()!=null?m=A.getNextSiblingKey():m=S.shift();u++}return u!==o.size?(process.env.NODE_ENV!=="production"&&zf(!0,"Tree is not connected. %s nodes were seen instead of %s",u,o.size),!1):!0},isValidTree:function(o){var l=this,c=o.toArray();return c.every(function(u){return l.isValidBlock(u,o)})?this.isConnectedTree(o):!1}},cz=sz,fz=ws,dz=Wr.exports,pz=dz.List;function hz(i,o){var l=i.map(function(c,u){var m=o[u];return fz.create({style:c,entity:m})});return pz(l)}var vz=hz,mz=bp,s8=mz.substr;function gz(i,o){var l=Array(i.length).fill(null);return o&&o.forEach(function(c){for(var u=s8(i,0,c.offset).length,m=u+s8(i,c.offset,c.length).length,S=u;S<m;S++)l[S]=c.key}),l}var yz=gz,Sz=bp,Ez=Wr.exports,wz=Ez.OrderedSet,c8=Sz.substr,Cz=wz();function _z(i,o){var l=Array(i.length).fill(Cz);return o&&o.forEach(function(c){for(var u=c8(i,0,c.offset).length,m=u+c8(i,c.offset,c.length).length;u<m;)l[u]=l[u].add(c.style),u++}),l}var bz=_z;function Uv(i){for(var o=1;o<arguments.length;o++){var l=arguments[o]!=null?arguments[o]:{},c=Object.keys(l);typeof Object.getOwnPropertySymbols=="function"&&(c=c.concat(Object.getOwnPropertySymbols(l).filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable}))),c.forEach(function(u){xz(i,u,l[u])})}return i}function xz(i,o,l){return o in i?Object.defineProperty(i,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[o]=l,i}var Tz=gp,f8=Cs,kz=ly,Rz=Em,d8=uz,Dz=cz,p8=wm,Az=vz,Oz=yz,Mz=bz,h8=jc,Fz=wd,r2=Wr.exports,Ad=ra,v8=Fz("draft_tree_data_support"),m8=r2.List,Bz=r2.Map,g8=r2.OrderedMap,a2=function(o,l){var c=o.key,u=o.type,m=o.data,S=o.text,A=o.depth,x={text:S,depth:A||0,type:u||"unstyled",key:c||h8(),data:Bz(m),characterList:Lz(o,l)};return x},Lz=function(o,l){var c=o.text,u=o.entityRanges,m=o.inlineStyleRanges,S=u||[],A=m||[];return Az(Mz(c,A),Oz(c,S.filter(function(x){return l.hasOwnProperty(x.key)}).map(function(x){return Uv({},x,{key:l[x.key]})})))},i2=function(o){return Uv({},o,{key:o.key||h8()})},y8=function(o,l,c){var u=l.map(function(m){return Uv({},m,{parentRef:c})});return o.concat(u.reverse())},Nz=function(o,l){return o.map(i2).reduce(function(c,u,m){Array.isArray(u.children)||(process.env.NODE_ENV!=="production"?Ad(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):Ad(!1));var S=u.children.map(i2),A=new f8(Uv({},a2(u,l),{prevSibling:m===0?null:o[m-1].key,nextSibling:m===o.length-1?null:o[m+1].key,children:m8(S.map(function(ie){return ie.key}))}));c=c.set(A.getKey(),A);for(var x=y8([],S,A);x.length>0;){var L=x.pop(),q=L.parentRef,$=q.getChildKeys(),K=$.indexOf(L.key),J=Array.isArray(L.children);if(!J){J||(process.env.NODE_ENV!=="production"?Ad(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):Ad(!1));break}var te=L.children.map(i2),le=new f8(Uv({},a2(L,l),{parent:q.getKey(),children:m8(te.map(function(ie){return ie.key})),prevSibling:K===0?null:$.get(K-1),nextSibling:K===$.size-1?null:$.get(K+1)}));c=c.set(le.getKey(),le),x=y8(x,te,le)}return c},g8())},zz=function(o,l){return g8(o.map(function(c){var u=new Tz(a2(c,l));return[u.getKey(),u]}))},Iz=function(o,l){var c=o.blocks.find(function(S){return Array.isArray(S.children)&&S.children.length>0}),u=v8&&!c?d8.fromRawStateToRawTreeState(o).blocks:o.blocks;if(!v8)return zz(c?d8.fromRawTreeStateToRawState(o).blocks:u,l);var m=Nz(u,l);return process.env.NODE_ENV!=="production"&&(Dz.isValidTree(m)||(process.env.NODE_ENV!=="production"?Ad(!1,"Should be a valid tree"):Ad(!1))),m},Pz=function(o){var l=o.entityMap,c={};return Object.keys(l).forEach(function(u){var m=l[u],S=m.type,A=m.mutability,x=m.data;c[u]=Rz.__create(S,A,x||{})}),c},Uz=function(o){Array.isArray(o.blocks)||(process.env.NODE_ENV!=="production"?Ad(!1,"invalid RawDraftContentState"):Ad(!1));var l=Pz(o),c=Iz(o,l),u=c.isEmpty()?new p8:p8.createEmpty(c.first().getKey());return new kz({blockMap:c,entityMap:l,selectionBefore:u,selectionAfter:u})},Hz=Uz,$z=KE;function jz(i){var o=$z(i),l=0,c=0,u=0,m=0;if(o.length){if(o.length>1&&o[0].width===0){var S=o[1];l=S.top,c=S.right,u=S.bottom,m=S.left}else{var A=o[0];l=A.top,c=A.right,u=A.bottom,m=A.left}for(var x=1;x<o.length;x++){var L=o[x];L.height!==0&&L.width!==0&&(l=Math.min(l,L.top),c=Math.max(c,L.right),u=Math.max(u,L.bottom),m=Math.min(m,L.left))}}return{top:l,right:c,bottom:u,left:m,width:c-m,height:u-l}}var Vz=jz,Kz=Vz;function Wz(i){var o=i.getSelection();if(!o.rangeCount)return null;var l=o.getRangeAt(0),c=Kz(l),u=c.top,m=c.right,S=c.bottom,A=c.left;return u===0&&m===0&&S===0&&A===0?null:c}var Yz=Wz,Gz=Ik,Xz=mv,qz=ws,Qz=Kk,Jz=gp,Zz=ly,eI=hy,tI=a7,nI=MN,rI=pE,aI=Em,iI=gu,oI=_6,lI=Na,uI=$y,sI=FN,cI=Cw,fI=wm,dI=nz,pI=Hz,hI=jc,vI=Ww,mI=Yz,gI=Sw,yI={Editor:nI,EditorBlock:rI,EditorState:lI,CompositeDecorator:Qz,Entity:aI,EntityInstance:oI,BlockMapBuilder:Xz,CharacterMetadata:qz,ContentBlock:Jz,ContentState:Zz,RawDraftContentState:sI,SelectionState:fI,AtomicBlockUtils:Gz,KeyBindingUtil:uI,Modifier:iI,RichUtils:cI,DefaultDraftBlockRenderMap:eI,DefaultDraftInlineStyle:tI,convertFromHTML:gI,convertFromRaw:pI,convertToRaw:dI,genKey:hI,getDefaultKeyBinding:vI,getVisibleSelectionRect:mI},S8=yI;function o2(i,o){(o==null||o>i.length)&&(o=i.length);for(var l=0,c=new Array(o);l<o;l++)c[l]=i[l];return c}function SI(i){if(Array.isArray(i))return o2(i)}function EI(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function wI(i,o){if(!!i){if(typeof i=="string")return o2(i,o);var l=Object.prototype.toString.call(i).slice(8,-1);if(l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set")return Array.from(i);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return o2(i,o)}}function CI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
326
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Od(i){return SI(i)||EI(i)||wI(i)||CI()}function E8(i,o,l,c,u,m){var S=c-l,A=o+l<=i.offset;if(A)return Object.assign({},i,{offset:i.offset+S});var x=o>=i.offset&&o+l<=i.offset+i.length;if(x)return Object.assign({},i,{length:i.length+S});var L=i.offset>=o&&i.offset+i.length<=o+l&&u>0;if(L)return Object.assign({},i,{offset:i.offset+u});var q=i.offset<o&&i.offset+i.length<=o+l&&i.offset+i.length>o&&u>0;if(q)return[Object.assign({},i,{length:o-i.offset}),Object.assign({},i,{offset:o+u,length:i.offset-o+i.length})];var $=i.offset>=o&&i.offset+i.length>o+l&&o+l>i.offset&&m>0;return $?[Object.assign({},i,{offset:i.offset+u,length:o+l-i.offset}),Object.assign({},i,{offset:o+l+u+m,length:i.offset+i.length-(o+l)})]:i}const Xm=function(i,o){return i.offset===o.offset?o.length-i.length:i.offset-o.offset};var w8={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","\n":"<br/>"};const _I=function(i){for(var o=Od(i.text),l=i.entityRanges.sort(Xm),c=i.inlineStyleRanges.sort(Xm),u="",m=function(x){var L=o[x];if(w8[L]!==void 0){var q=w8[L],$=Od(u).length;u+=q;var K=function(te){return E8(te,$,L.length,q.length,0,0)};l=l.map(K),c=c.map(K)}else u+=L},S=0;S<o.length;S++)m(S);return Object.assign({},i,{text:u,inlineStyleRanges:c,entityRanges:l})};function qm(i){return qm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},qm(i)}var bI=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function mh(i){if(bI.indexOf(i.type)!==-1)return nl.renderToStaticMarkup(i);var o=nl.renderToStaticMarkup(Xn.default.cloneElement(i,{},"\r")).split("\r");return ec(o.length>1,"convertToHTML: Element of type ".concat(i.type," must render children")),ec(o.length<3,"convertToHTML: Element of type ".concat(i.type," cannot use carriage return character")),{start:o[0],end:o[1]}}function xI(i){return Xn.default.isValidElement(i)&&Xn.default.Children.count(i.props.children)>0}function Qm(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(i==null||typeof i=="string")return i;if(Xn.default.isValidElement(i)){if(xI(i))return nl.renderToStaticMarkup(i);var l=mh(i);if(o!==null&&qm(l)==="object"){var c=l.start,u=l.end;return c+o+u}return l}if(ec(Object.prototype.hasOwnProperty.call(i,"start")&&Object.prototype.hasOwnProperty.call(i,"end"),"convertToHTML: received conversion data without either an HTML string, ReactElement or an object with start/end tags"),o!==null){var m=i.start,S=i.end;return m+o+S}return i}var C8=function i(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"start";if(Xn.default.isValidElement(o)){var c=mh(o);if(typeof c=="string")return 0;var u=c[l].length,m=Xn.default.Children.toArray(o.props.children)[0];return u+(m&&Xn.default.isValidElement(m)?i(m,l):0)}return qm(o)==="object"&&o[l]?o[l].length:0},_8=function(){var o=arguments.length>1?arguments[1]:void 0;return o};const TI=function(i,o){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_8,c=Od(i.text),u=l;if(l.__isMiddleware&&(u=l(_8)),Object.prototype.hasOwnProperty.call(i,"entityRanges")&&i.entityRanges.length>0){for(var m=i.entityRanges.sort(Xm),S=i.inlineStyleRanges,A=function(q){var $=m[q],K=o[$.key],J=c.slice($.offset,$.offset+$.length).join(""),te=u(K,J),le=Qm(te,J),ie=void 0;!!le||le===""?ie=Od(le):ie=J;var oe=C8(te,"start"),Ce=C8(te,"end"),Se=function(nt,je){return je>q||Object.prototype.hasOwnProperty.call(nt,"style")?E8(nt,$.offset,$.length,ie.length,oe,Ce):nt},we=function(nt){return nt.reduce(function(je,ct,Xe){var ht=Se(ct,Xe);return Array.isArray(ht)?je.concat(ht):je.concat([ht])},[])};m=we(m),S=we(S),c=[].concat(Od(c.slice(0,$.offset)),Od(ie),Od(c.slice($.offset+$.length)))},x=0;x<m.length;x++)A(x);return Object.assign({},i,{text:c.join(""),inlineStyleRanges:S,entityRanges:m})}return i},b8=function(i){return function(o){return typeof i=="function"?i(o):i[o]}},x8=function(i,o){return function(){var l=i.apply(void 0,arguments);return l!=null?l:o.apply(void 0,arguments)}};function T8(i){switch(i){case"BOLD":return O("strong",{});case"ITALIC":return O("em",{});case"UNDERLINE":return O("u",{});case"CODE":return O("code",{});default:return{start:"",end:""}}}var l2=function(o,l){return o.filter(function(c){return!l.some(function(u){return u.style===c.style})})},kI=function(o,l){return l.reduceRight(function(c,u){var m=c[c.length-1];return ec(m.style===u.style,"Style ".concat(m.style," to be removed doesn't match expected ").concat(u.style)),c.slice(0,-1)},o)},RI=function(o,l){return l.filter(function(c){return o>=c.offset&&o<c.offset+c.length})},DI=function(o,l){var c=o.offset<=l.offset,u=o.offset+o.length>=l.offset+l.length;return c&&u},AI=function(o,l){var c=l.offset+l.length,u=o.offset+o.length;return c-u},OI=function(o,l){for(var c=0;c<o.length;)if(l.every(DI.bind(null,o[c])))c++;else return o.slice(c);return[]},MI=function(o,l,c){return l+Qm(o(c.style)).start},FI=function(o,l,c){return Qm(o(c.style)).end+l},k8=function(o){return function(l){return o(l)}};k8.__isMiddleware=!0;const BI=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k8;ec(i!=null,"Expected raw block to be non-null");var l;o.__isMiddleware===!0?l=o(T8):l=x8(b8(o),b8(T8));for(var c="",u=[],m=i.inlineStyleRanges.sort(Xm),S=Od(i.text),A=0;A<S.length;A++){var x=RI(A,m),L=l2(u,x),q=l2(x,u),$=l2(u,L),K=OI($,q),J=K.concat(q).sort(AI),te=J.reduce(MI.bind(null,l),""),le=L.concat(K).reduce(FI.bind(null,l),"");c+=le+te+S[A],u=kI(u,K.concat(L)),u=u.concat(J),ec(u.length===x.length,"Character ".concat(A,": ").concat(u.length-x.length," styles left on stack that should no longer be there"))}return c=u.reduceRight(function(ie,oe){return ie+Qm(l(oe.style)).end},c),c},u2=function(i){return function(o){return typeof i=="function"?i(o):i[o.type]}};function LI(i){return Xn.default.isValidElement(i)&&Xn.default.Children.count(i.props.children)>0}function NI(i){return ec(i!=null,"Expected block HTML value to be non-null"),typeof i=="string"?i:Xn.default.isValidElement(i)?LI(i)?nl.renderToStaticMarkup(i):mh(i):Object.prototype.hasOwnProperty.call(i,"element")&&Xn.default.isValidElement(i.element)?Object.assign({},i,mh(i.element)):(ec(Object.prototype.hasOwnProperty.call(i,"start")&&Object.prototype.hasOwnProperty.call(i,"end"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),i)}function gh(i,o){if(ec(i!=null,"Expected block HTML value to be non-null"),typeof i.nest=="function"){var l=mh(i.nest(o)),c=l.start,u=l.end;return Object.assign({},i,{nestStart:c,nestEnd:u})}if(Xn.default.isValidElement(i.nest)){var m=mh(i.nest),S=m.start,A=m.end;return Object.assign({},i,{nestStart:S,nestEnd:A})}return ec(Object.prototype.hasOwnProperty.call(i,"nestStart")&&Object.prototype.hasOwnProperty.call(i,"nestEnd"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),i}var zI=["1","a","i"];const R8={unstyled:O("p",{}),paragraph:O("p",{}),"header-one":O("h1",{}),"header-two":O("h2",{}),"header-three":O("h3",{}),"header-four":O("h4",{}),"header-five":O("h5",{}),"header-six":O("h6",{}),"code-block":O("pre",{}),blockquote:O("blockquote",{}),"unordered-list-item":{element:O("li",{}),nest:O("ul",{})},"ordered-list-item":{element:O("li",{}),nest:function(o){var l=zI[o%3];return O("ol",{type:l})}},media:O("figure",{}),atomic:O("figure",{})};var II=function(o,l){return l},D8=function(o){var l=o.styleToHTML,c=l===void 0?{}:l,u=o.blockToHTML,m=u===void 0?{}:u,S=o.entityToHTML,A=S===void 0?II:S;return function(x){ec(x!=null,"Expected contentState to be non-null");var L;m.__isMiddleware===!0?L=m(u2(R8)):L=x8(u2(m),u2(R8));var q=S8.convertToRaw(x),$=[],K=q.blocks.map(function(J){var te=J.type,le=J.depth,ie="",oe="",Ce=L(J);if(!Ce)throw new Error("convertToHTML: missing HTML definition for block with type ".concat(J.type));if(!Ce.nest)ie=$.reduceRight(function(ct,Xe){return ct+gh(L(Xe),le).nestEnd},""),$=[];else for(;le+1!==$.length||te!==$[le].type;)if(le+1===$.length){var Se=$[le];ie+=gh(L(Se),le).nestEnd,oe+=gh(L(J),le).nestStart,$[le]=J}else if(le+1<$.length){var we=$[$.length-1];ie+=gh(L(we),le).nestEnd,$=$.slice(0,-1)}else oe+=gh(L(J),le).nestStart,$.push(J);var Be=BI(TI(_I(J),q.entityMap,A),c),nt=NI(L(J)),je;return typeof nt=="string"?je=nt:je=nt.start+Be+nt.end,Be.length===0&&Object.prototype.hasOwnProperty.call(nt,"empty")&&(Xn.default.isValidElement(nt.empty)?je=nl.renderToStaticMarkup(nt.empty):je=nt.empty),ie+oe+je}).join("");return K=$.reduce(function(J,te){return J+gh(L(te),te.depth).nestEnd},K),K}};const PI=function(){for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return o.length===1&&Object.prototype.hasOwnProperty.call(o[0],"_map")&&o[0].getBlockMap!=null?D8({}).apply(void 0,o):D8.apply(void 0,o)},s2=i=>PI({blockToHTML:o=>{switch(o.type){case"blockquote":return nl.renderToStaticMarkup(Xn.default.createElement("blockquote",{},o.text));default:return null}},entityToHTML:(o,l)=>{switch(o.type){case"article":return nl.renderToStaticMarkup(Xn.default.createElement(N4,{label:"Lire Aussi",title:o.data.articleProps.meta.title,link:o.data.articleProps.meta.canonical,isTargetBlank:o.data.isTargetBlank,isNofollow:o.data.isNofollow,isSponsored:o.data.isSponsored}));case"button":return nl.renderToStaticMarkup(Xn.default.createElement(Li,{children:o.data.buttonProps.label,href:o.data.buttonProps.url,isTargetBlank:o.data.buttonProps.isTargetBlank,isNofollow:o.data.buttonProps.isNofollow,isSponsored:o.data.buttonProps.isSponsored,variant:"primary-button"}));case"html":return nl.renderToStaticMarkup(Xn.default.createElement("div",{dangerouslySetInnerHTML:{__html:o.data.htmlProps.html}}));case"LINK":return nl.renderToStaticMarkup(Xn.default.createElement(Li,{href:o.data.url,children:l,isTargetBlank:o.data.isTargetBlank,isNofollow:o.data.isNofollow,isSponsored:o.data.isSponsored,variant:"default"}));case"image":return nl.renderToStaticMarkup(Xn.default.createElement(A8,{src:o.data.imageProps.src,caption:o.data.imageProps.meta.caption}));default:return l}}})(S8.convertFromRaw(i)),UI=({content:i,colorScheme:o="primary"})=>O("div",{className:"c-article-content","data-color":`${o}`,dangerouslySetInnerHTML:{__html:s2(i)}}),HI=({title:i,label:o,lead:l,colorScheme:c,rightImageUrl:u})=>_e("header",{className:"c-article-header",children:[u&&O("div",{className:"c-article-header__img",children:O("img",{alt:i,src:u})}),O("h1",{className:"c-article-header__title",children:i}),_e("div",{className:"c-article-header__lead",children:[O(ja,{colorScheme:c,withRightDivider:!0,children:o}),l]})]}),A8=({src:i,caption:o,isCaptionInside:l=!1,layout:c=en.MOBILE})=>{let u="320x204",m="100%";const S=["1444x920","640x408","320x204"];return c===en.DESKTOP&&(u="722x460",m="(min-width: 48rem) 45.125rem, 100%"),_e("figure",{className:"c-media",children:[O("div",{className:"c-media__content",children:O(Of,{src:i,defaultFormat:u,formats:S,sizes:m,alt:o})}),o&&O("figcaption",{className:jn("c-media__caption",{"c-media__caption--inside":l}),children:o})]})},$I=({summary:i,colorScheme:o="primary"})=>i?_e("div",{className:`c-article-summary u-bg-${o}`,children:[O("h3",{className:"c-article-summary__title",children:"L\u2019essentiel"}),O("div",{dangerouslySetInnerHTML:{__html:s2(i)}})]}):null,jI=({src:i,caption:o})=>_e("div",{children:[O("img",{src:i,alt:o}),O("hr",{}),O("small",{children:o})]}),O8=({rubric:i})=>_e(co,{children:[O(cr,{className:"u-color-default u-pl1 u-pr1",size:7,name:"arrow"}),O(pp,{variant:"breadcrumb",link:i.link,children:i.label})]}),VI=({breadcrumbList:i,btnNext:o,btnPrev:l})=>{i&&(i.scrollLeft>0&&(i.scrollLeft+i.clientWidth<i.scrollWidth&&o.classList.add("c-breadcrumb__button-container--visible"),o.classList.remove("c-breadcrumb__button-container--visible"),l.classList.add("c-breadcrumb__button-container--visible")),i.clientWidth<i.scrollWidth?o.classList.add("c-breadcrumb__button-container--visible"):(l.classList.remove("c-breadcrumb__button-container--visible"),o.classList.remove("c-breadcrumb__button-container--visible")),i.scrollLeft+i.clientWidth===i.scrollWidth&&o.classList.remove("c-breadcrumb__button-container--visible"))},KI=({breadcrumbList:i,btnNext:o,btnPrev:l})=>{if(i)if(i.scrollWidth-i.clientWidth>i.clientWidth)i.scrollLeft+=Math.ceil(i.clientWidth*.7),l.classList.add("c-breadcrumb__button-container--visible"),i.scrollLeft+i.clientWidth>=i.scrollWidth&&o.classList.remove("c-breadcrumb__button-container--visible");else{const c=i.scrollWidth-i.clientWidth;i.scrollLeft+=c,o.classList.remove("c-breadcrumb__button-container--visible"),l.classList.add("c-breadcrumb__button-container--visible")}},WI=({breadcrumbList:i,btnNext:o,btnPrev:l})=>{i&&(i.clientWidth<i.scrollLeft?(i.scrollLeft-=i.clientWidth*.7,o.classList.add("c-breadcrumb__button-container--visible")):(i.scrollLeft=0,l.classList.remove("c-breadcrumb__button-container--visible"),i.clientWidth<i.scrollWidth&&o.classList.add("c-breadcrumb__button-container--visible")))},YI=({breadcrumbList:i,btnNext:o,btnPrev:l})=>{VI({breadcrumbList:i,btnNext:o,btnPrev:l})},GI=(i=document.querySelector(".c-breadcrumb"))=>{if(i){const o=i.querySelector(".c-breadcrumb__viewport"),l=i.querySelector(".c-breadcrumb__button-container--next-button"),c=i.querySelector(".c-breadcrumb__button-container--previous-button");o&&o.clientWidth<o.scrollWidth&&(l==null||l.classList.add("c-breadcrumb__button-container--visible")),l==null||l.addEventListener("click",KI.bind(!1,{breadcrumbList:o,btnNext:l,btnPrev:c})),c==null||c.addEventListener("click",WI.bind(!1,{breadcrumbList:o,btnNext:l,btnPrev:c}))}},XI=(i=document.querySelector(".c-breadcrumb"))=>{if(i){const o=i.querySelector(".c-breadcrumb__viewport"),l=i.querySelector(".c-breadcrumb__button-container--next-button"),c=i.querySelector(".c-breadcrumb__button-container--previous-button");window.addEventListener("resize",YI.bind(!1,{breadcrumbList:o,btnNext:l,btnPrev:c}))}},qI=({rubric:i,parentRubric:o,tags:l,colorScheme:c="primary",layout:u=en.DESKTOP})=>{const m=lm.useRef(null);return dp(()=>{m.current&&u===en.DESKTOP&&(GI(m.current),XI(m.current))},[]),_e("div",{className:"c-breadcrumb o-mobile-gutters",ref:m,children:[O("div",{className:"c-breadcrumb__viewport",children:_e("div",{className:"c-breadcrumb__list",children:[O(pp,{variant:"breadcrumb",link:"/",className:"",children:O(cr,{size:20,name:"home"})}),o&&O(O8,{rubric:o}),i&&O(O8,{rubric:i}),l&&_e(co,{children:[O(cm,{}),l.map((S,A)=>O(pp,{colorScheme:c,variant:"primary",link:S.link,className:A!==l.length-1?"u-mr1":"",children:S.label},S.label))]})]})}),u===en.DESKTOP&&_e(co,{children:[O("div",{className:"c-breadcrumb__button-container c-breadcrumb__button-container--previous-button",children:O($c,{variant:"navigation",icon:"chevron",iconSize:12})}),O("div",{className:"c-breadcrumb__button-container c-breadcrumb__button-container--next-button",children:O($c,{variant:"navigation",icon:"chevron",iconSize:12})})]})]})},M8=({link:i,cover:o,headline:l,title:c,layout:u=en.DESKTOP})=>{const m=["252x162","160x104"],S=u===en.MOBILE?"160x104":"252x162";return _e("a",{href:i,className:"c-category-card",children:[O(Of,{src:o,defaultFormat:S,formats:m,sizes:"(min-width: 48rem) 15.75rem, 10rem",alt:c,className:"c-category-card__img"}),O(ja,{colorScheme:"default",children:l}),O("h4",{className:"c-category-card__title",children:c})]})},QI=({link:i,title:o,cover:l,headline:c,summary:u,layout:m=en.DESKTOP})=>_e("a",{href:i,children:[O(ja,{children:c}),O("h4",{children:o}),O("div",{children:m===en.DESKTOP?O("img",{src:l,alt:o,width:"346",height:"222"}):O("img",{src:l,alt:o,width:"414",height:"265"})}),O("p",{children:u}),O("hr",{})]}),JI=({link:i,title:o,cover:l,headline:c,publishedAt:u,layout:m=en.DESKTOP})=>_e("a",{href:i,children:[O(ja,{withRightDivider:!0,children:u}),O(ja,{children:c}),O("h5",{children:o}),O("div",{style:{display:"flex"},children:m===en.DESKTOP?O("img",{src:l,alt:o,width:110,height:70}):O("img",{src:l,alt:o,width:130,height:82})}),O("hr",{})]});function ZI({avatar:i,avatarHD:o,username:l,publishedAt:c,editedAt:u,userlink:m}){const S=_e(co,{children:[O(k4,{img:i,imgHD:o,alt:l}),_e("div",{children:[O("div",{className:"c-signature__name",children:l}),_e("div",{className:"c-signature__date",children:[_e("time",{children:["Publi\xE9 le ",c]}),u&&_e("time",{children:[" \u2022 Mis \xE0 jour le ",u]})]})]})]});return m?O("a",{href:m,children:S}):S}const c2=({username:i,publishedAt:o,editedAt:l,avatar:c,avatarHD:u,userlink:m})=>O("address",{className:"c-signature",children:O(ZI,{username:i,publishedAt:o,editedAt:l,avatar:c,avatarHD:u,userlink:m})});function If({variant:i="advanced",commentCount:o,shareCount:l,colorScheme:c="primary",layout:u}){const m=_e(co,{children:[_e("div",{className:"c-social__items",children:[O("span",{className:"c-social__items__icon",children:O(cr,{size:20,name:"comment"})}),O("span",{className:jn("c-social__items__count",i!=="simple"&&[`u-bg-${c}`]),children:o})]}),_e("div",{className:"c-social__items",children:[O("span",{className:"c-social__items__icon",children:O(cr,{size:20,name:"share"})}),O("span",{className:jn("c-social__items__count",i!=="simple"&&[`u-bg-${c}`]),children:l})]})]});return _e("div",{className:jn("c-social",{"c-social--sidebar":i==="advanced"&&u===en.DESKTOP},{"c-social--bar":i==="advanced"&&u===en.MOBILE},{"c-social--reaction":i==="simple"}),children:[i==="simple"?O("div",{className:"c-social--reaction__block",children:m}):m,i!=="simple"&&u===en.DESKTOP?_e(co,{children:[O(cm,{}),O("div",{className:"c-social__items",children:O(cr,{size:20,name:"bookmark"})}),O("div",{className:"c-social__items",children:O(cr,{size:20,name:"report"})})]}):O("span",{className:"c-social__items__icon",children:O(cr,{size:20,name:"bookmark"})})]})}const eP=({link:i,title:o,cover:l,headline:c,summary:u,signatureProps:m,socialBarProps:S,layout:A=en.DESKTOP,colorScheme:x="primary"})=>{const L=["722x469","640x408","415x269","320x204"],q=A===en.MOBILE?"320x204":"722x469",$="(min-width: 64rem) 45.125rem, (min-width: 48rem) 25.9375rem, 100vw";let K=_e(co,{children:[O(Of,{src:l,defaultFormat:q,formats:L,sizes:$,alt:o,className:"c-large-card__img"}),_e("div",{className:"c-large-card__content",children:[_e("div",{children:[O(ja,{colorScheme:x,children:c}),O("h3",{className:"c-large-card__title",children:o}),O("p",{className:"c-large-card__summary",children:u})]}),O(If,{colorScheme:x,variant:"simple",...S})]})]});return A===en.MOBILE&&(K=_e(co,{children:[O(ja,{colorScheme:x,children:c}),O("h3",{className:"c-large-card__title",children:o}),O(Of,{src:l,defaultFormat:q,formats:L,sizes:$,alt:o,className:"c-large-card__img"}),O(c2,{...m}),O("p",{className:"c-large-card__summary",children:u}),O(If,{colorScheme:x,variant:"simple",...S})]})),O("a",{href:i,className:"c-large-card",children:K})},F8=({link:i,title:o,cover:l,headline:c,publishedAt:u,socialBarProps:m,layout:S=en.DESKTOP})=>{const A=["346x222","160x104"],x=S===en.MOBILE?"160x104":"346x222";return _e("a",{href:i,className:"c-live-card",children:[_e("div",{children:[O(Of,{src:l,defaultFormat:x,formats:A,sizes:"(min-width: 48rem) 21.625rem, 10rem",alt:o,className:"c-live-card__img"}),_e("div",{children:[O(ja,{colorScheme:"direct",children:u}),O(ja,{withLeftDivider:!0,colorScheme:"default",children:c})]}),O("h3",{children:o})]}),O("div",{children:S!==en.MOBILE&&O(If,{...m,variant:"simple"})})]})},B8=({link:i,title:o,cover:l,headline:c,layout:u=en.DESKTOP,colorScheme:m="default",articleDate:S,socialBarProps:A})=>{const x=["346x222","160x104"],L=u===en.MOBILE?"160x104":"346x222";return _e("a",{href:i,className:"c-medium-card",children:[O("div",{children:O(Of,{src:l,defaultFormat:L,formats:x,sizes:"(min-width: 48rem) 21.625rem, 10rem",alt:o,className:"c-medium-card__img"})}),O(ja,{colorScheme:m,children:c}),S&&_e("time",{className:"c-medium-card__article-date",children:[" \u2022 ",S]}),u===en.DESKTOP?O("h3",{children:o}):O("h5",{children:o}),A&&O(If,{...A,variant:"simple"})]})};function tP({link:i,cover:o,headline:l,title:c}){return _e("a",{href:i,children:[O("div",{children:O("img",{src:o,alt:c,width:252,height:162})}),O(ja,{children:l}),O("h2",{children:c})]})}const L8=({headline:i,title:o,link:l,cover:c,summary:u,index:m,viewCount:S,colorScheme:A="default",layout:x=en.DESKTOP,isSimplified:L=!1,withBorder:q=!1})=>_e("a",{href:l,className:`c-card-most-read ${L&&"c-card-most-read--simplified"} ${q&&"c-card-most-read--bordered"}`,children:[O("div",{className:"c-card-most-read__index",children:m}),_e("div",{className:"c-card-most-read__content",children:[O(ja,{colorScheme:A,children:i}),O("p",{className:"c-card-most-read__title",children:o}),!L&&x===en.DESKTOP&&O("p",{className:"c-card-most-read__summary",children:u}),!L&&x===en.MOBILE&&O("img",{src:c,alt:o,width:307,height:192,className:"c-card-most-read__img"}),!L&&_e("div",{className:"c-card-most-read__counter",children:[O(cr,{size:16,name:"view"})," ",S]})]}),!L&&O("div",{children:x===en.DESKTOP&&O("img",{src:c,alt:o,width:150,height:95,className:"c-card-most-read__img"})})]});function N8({link:i,cover:o,headline:l,title:c,layout:u=en.DESKTOP}){return _e("a",{href:i,children:[O("div",{children:u===en.DESKTOP?O("img",{src:o,alt:c,width:252,height:162}):O("img",{src:o,alt:c,width:160,height:104})}),O(ja,{children:l}),O("h4",{children:c})]})}function z8({link:i,cover:o,headline:l,title:c,colorScheme:u}){return _e("a",{href:i,className:"c-overview-card",children:[O("div",{className:"c-overview-card__img-container",children:O(Of,{src:o,alt:c,defaultFormat:"62x62",formats:["124x124","62x62"],sizes:"3.875rem",className:"c-overview-card__img-container__img"})}),_e("div",{children:[O(ja,{variant:"solid",colorScheme:u,children:l}),O("div",{className:"c-overview-card__title",children:c})]})]})}function nP({title:i,link:o,cover:l,headline:c,socialBarProps:u,podcastTime:m,layout:S=en.DESKTOP}){return _e("a",{href:o,children:[_e("div",{style:{position:"relative"},children:[S===en.DESKTOP?O("img",{src:l,alt:i,width:346,height:222}):O("img",{src:l,alt:i,width:307,height:192}),_e("div",{style:{position:"absolute",bottom:10,left:10},children:[O(cr,{fill:"white",name:"podcast"})," ",m]})]}),O(ja,{children:c}),O("h3",{children:i}),S===en.DESKTOP&&O(If,{...u})]})}const rP=({title:i,link:o,location:l,headline:c,socialBarProps:u,layout:m=en.DESKTOP})=>_e("a",{href:o,children:[O(ja,{children:c}),_e("div",{children:[O(cr,{name:"local",size:18}),O(ja,{children:l})]}),O("h3",{children:i}),O(If,{...u}),m===en.MOBILE&&O("hr",{})]}),aP=({title:i,link:o,cover:l,headline:c,summary:u,signatureProps:m,socialBarProps:S,layout:A=en.DESKTOP})=>O("a",{href:o,children:_e("div",{style:{display:"flex",flexDirection:A===en.MOBILE?"column":"row"},children:[A===en.MOBILE&&_e("div",{children:[O(ja,{children:c}),O("h2",{children:i})]}),O("div",{children:A===en.DESKTOP?O("img",{src:l,alt:i,height:460,width:722}):O("img",{src:l,alt:i,height:265,width:414})}),_e("div",{children:[A===en.MOBILE&&O(c2,{...m}),A===en.DESKTOP&&_e(co,{children:[O(ja,{children:c}),O("h2",{children:i})]}),O("p",{children:u}),O(If,{...S})]})]})}),f2=({link:i,title:o,cover:l,headline:c,colorScheme:u="default",articleDate:m,socialBarProps:S})=>_e("a",{href:i,className:"c-small-card",children:[_e("div",{className:"c-small-card__header",children:[O(ja,{colorScheme:u,children:c}),m&&_e("time",{className:"c-small-card__article-date",children:[" \u2022 ",m]})]}),_e("div",{className:"c-small-card__main",children:[O("h4",{className:"c-small-card__title",children:o}),O(Of,{src:l,defaultFormat:"130x82",formats:["130x82"],sizes:"8.125rem",alt:o,className:"c-small-card__img"})]}),S&&O(If,{...S,variant:"simple"})]}),iP=({link:i,title:o,cover:l,headline:c,layout:u=en.DESKTOP})=>_e("a",{href:i,children:[O("div",{children:u===en.DESKTOP?O("img",{src:l,alt:o,width:"252",height:"162"}):O("img",{src:l,alt:o,width:"104",height:"160"})}),O(ja,{children:c}),O("h5",{children:o})]}),oP=({cover:i,link:o,headline:l,title:c,layout:u=en.DESKTOP})=>_e("a",{href:o,style:{display:"flex",borderRight:u===en.DESKTOP?"1px solid":""},children:[O("div",{children:u===en.DESKTOP?O("img",{style:{borderRadius:62},src:i,alt:c,width:100,height:100}):O("img",{style:{borderRadius:62},src:i,alt:c,width:62,height:62})}),_e("div",{children:[O(ja,{variant:"solid",withRightDivider:!0,children:l}),O("h5",{children:c})]})]}),lP=({articles:i,label:o,layout:l=en.DESKTOP})=>_e("div",{children:[O("h3",{children:o}),O("div",{className:"c-category-cards",children:O("div",{className:"c-category-cards__list",children:i.map(c=>O(M8,{layout:l,...c},c.title))})})]}),uP=(i,o)=>{o.stopImmediatePropagation(),o.preventDefault();const l=o.currentTarget,c=document.querySelectorAll(".js-collapse__button"),u=document.querySelectorAll('[role="tabpanel"]'),m=l.getAttribute("aria-controls"),S=Object.values(u).find(A=>A.id===m);if(l.getAttribute("aria-expanded")==="true"){l.setAttribute("aria-expanded","false"),S==null||S.setAttribute("aria-hidden","true");return}c.forEach(A=>{A.setAttribute("aria-expanded","false")}),u.forEach(A=>{A.setAttribute("aria-hidden","true")}),l.setAttribute("aria-expanded","true"),S&&S.removeAttribute("aria-hidden")},sP=(i=document.querySelector(".js-collapse__button"))=>{i&&document.querySelectorAll(".c-collapse__button").forEach(l=>{l.addEventListener("click",uP.bind(!1,i))})},d2=({headingClass:i,listClass:o,iconClass:l,isOpen:c,btnClass:u,title:m,index:S,children:A})=>{const x=lm.useRef(null);return dp(()=>{x.current&&sP(x.current)},[]),_e("div",{className:"c-collapse js-collapse",children:[_e("button",{ref:x,type:"button",id:`c-collapse__button-${S}`,className:jn("c-collapse__button js-collapse__button",u),"aria-controls":`c-collapse__content-${S}`,"aria-expanded":c||"false",children:[O("span",{className:jn("c-collapse__title",i),children:m}),O(cr,{name:"chevron",size:16,className:jn("c-collapse__icon",l)})]}),O("div",{id:`c-collapse__content-${S}`,"aria-hidden":c?!c:"true","aria-labelledby":`c-collapse__button-${S}`,className:jn("c-collapse__list",o),role:"tabpanel",children:A})]})},cP=({statusCode:i="404"})=>{let o=_e(co,{children:[O("h2",{children:"La page que vous cherchez n\u2019existe pas !"}),_e("p",{children:[O("strong",{children:"Une page 404"})," est une page renvoy\xE9e par le serveur d\u2019un site, lorsque la page n\u2019existe plus ou lorsqu\u2019il y a une erreur dans l\u2019url."]}),O("p",{children:"Ce type d\u2019erreur se produit lorsque des pages ont \xE9t\xE9 supprim\xE9es ou d\xE9plac\xE9es."})]});return i==="500"&&(o=_e(co,{children:[O("h2",{children:"Erreur serveur, la page n\u2019est pas disponible !"}),O("p",{children:"Toutes nos excuses pour cette erreur\u2026"}),O("p",{children:"Une page qui renvoie un code d\u2019erreur 500 se produit lorsque le serveur web rencontre des difficult\xE9s pour charger une page."})]})),_e("div",{className:"c-error-content",children:[O(cr,{name:i==="404"?"not-found":"server-error",size:[130,72],className:"c-error-content__img"}),o,O(Li,{href:"/",className:"c-error-content__link u-mt1",children:"Retour page d\u2019accueil"})]})},p2=({categories:i,layout:o})=>O("div",{className:"c-footer-categories",children:o===en.MOBILE?O("div",{className:"c-footer-categories__accordion",children:i.map((l,c)=>O(d2,{title:l.name,iconClass:"u-color-white",headingClass:"u-bg-primary",listClass:"u-bg-primary",btnClass:"u-bg-primary",index:c,children:l.links.map(u=>_e(Li,{href:u.url,className:"u-color-white",children:[u.name,O(cr,{name:"chevron",size:[10,14],className:"u-color-white"})]},u.name))},l.name))}):O(co,{children:i.map((l,c)=>_e("div",{className:"c-footer-categories__list",children:[O(ah,{as:"h4",className:"c-footer-categories__list__title",children:l.name}),l.links.map((u,m)=>O(Li,{href:u.url,children:u.name},m))]},c))})}),h2=({footerBar:i,listClass:o})=>O("div",{className:"c-footer-links",children:i.map((l,c)=>O("div",{className:jn("o-inline",o),children:l.links.map((u,m)=>O(Li,{href:u.url||"#",onClick:u.javascript?()=>u.javascript:void 0,children:u.name},m))},c))}),I8=({title:i,subtitle:o,icon:l,variant:c="darkBlue",classname:u})=>_e("header",{className:jn("c-header-banner",c!=="transparent"&&`u-skin-${c}`,u),children:[l&&O(cr,{size:25,name:l,withBorder:!0,isRounded:!0}),_e("div",{children:[o&&O("p",{className:"c-header-banner__subtitle",children:o}),O("h2",{className:"c-header-banner__title",children:i})]})]}),fP=i=>{var l;const o=i.querySelector(".js-expandButton__label");i.setAttribute("aria-expanded","true"),o.innerHTML="Voir moins",(l=i.previousElementSibling)==null||l.setAttribute("aria-hidden","false")},dP=i=>{var l;const o=i.querySelector(".js-expandButton__label");i.setAttribute("aria-expanded","false"),o.innerHTML="Voir plus",(l=i.previousElementSibling)==null||l.setAttribute("aria-hidden","true")},pP=i=>{const o=i.currentTarget;return i.preventDefault(),o.getAttribute("aria-expanded")==="true"?dP(o):fP(o)},hP=(i=document.querySelector(".js-expandButton"))=>{i&&document.querySelectorAll(".js-expandButton").forEach(l=>l.addEventListener("click",pP))},vP=({title:i,subtitle:o="",colorScheme:l,isExpandable:c=!1})=>{const u=Hc.useRef(null);dp(()=>{u.current&&hP(u.current)},[]);const m=typeof o=="string";return _e("header",{className:"c-nodeheader",children:[O(ih,{colorScheme:l,hasShiftedIcon:!0}),O("h1",{className:"c-nodeheader__title o-mobile-gutters",children:i}),o&&_e(co,{children:[m?O("div",{className:jn("c-nodeheader__subtitle","o-mobile-gutters",c&&"is-expandable"),"aria-hidden":c,children:o}):O("div",{className:"c-nodeheader__subtitle o-mobile-gutters is-expandable","aria-hidden":!0,dangerouslySetInnerHTML:{__html:s2(o)}}),(!m||c)&&_e($c,{variant:"simple",className:"c-nodeheader__btn o-mobile-gutters js-expandButton","aria-expanded":"false",ref:u,children:[O(cr,{isRounded:!0,name:"chevron",size:12,className:"u-bg-background-1 u-pa1"}),O("span",{className:"js-expandButton__label",children:"Voir plus"})]})]})]})},P8=({modalIconSize:i=46,...o})=>_e("div",{className:"c-header-side-modal",children:[O(cr,{name:"logo",className:"u-color-primary",size:i}),O($c,{variant:"simple",icon:"close",iconClassNames:"u-color-black",...o})]}),U8=({title:i,description:o,className:l})=>_e("div",{className:jn("c-info-banner",l),children:[O("h3",{className:"c-info-banner__title",children:i}),O("p",{className:"c-info-banner__description",children:o})]}),v2=({icon:i,title:o,content:l,withBorder:c=!1,classnames:u})=>_e("div",{className:jn("c-horoscope-topic-card",{"c-horoscope-topic-card--bordered":c},u),children:[_e("div",{className:"c-horoscope-topic-card__header",children:[O(cr,{className:"c-horoscope-topic-card__icon",name:i,size:21}),O(ah,{variant:"secondary",as:"h2",children:o})]}),O("p",{className:"c-horoscope-topic-card__content",children:l})]}),mP=({topics:i,infoBannerProps:o})=>_e(co,{children:[O("ul",{className:"o-mobile-gutters",children:i.map((l,c)=>O("li",{children:O(v2,{icon:l.icon,title:l.title,content:l.content,withBorder:c!==i.length-1,classnames:c!==i.length-1?"u-mb2":""})},l.title))}),O(U8,{title:o.title,description:o.description,className:"o-mobile-gutters"})]}),gP=({signsContent:i,layout:o=en.MOBILE})=>O(co,{children:i.map((l,c)=>_e(lm.Fragment,{children:[O(I8,{title:l.heading.title,subtitle:l.heading.subtitle,icon:l.heading.icon,variant:"transparent",classname:"o-mobile-gutters u-pa0 u-mb2"},l.heading.title),l.topics.map((u,m)=>O(v2,{icon:u.icon,title:u.title,content:u.content,withBorder:m!==l.topics.length-1,classnames:"o-mobile-gutters u-mb2"},u.title)),O(Li,{variant:"secondary-button",href:l.link.href,className:"u-mb2",children:l.link.children}),o===en.MOBILE&&!((c+1)%3)&&O(x4,{adUnitCompletePath:(c+1)%6?"/49926454/20minutes_mobile2/divers/nfb_1":"/49926454/20minutes_mobile2/divers/nfb_2",lazyload:{delayed:!0,distanceVisible:700},variant:"ARTICLE"}),c!==i.length-1&&O(Ed,{className:"o-mobile-gutters u-bg-primary u-mb2"})]},c))}),yP=({horoscopeSignsList:i})=>O("ul",{className:"o-inline o-mobile-gutters",children:i.map(o=>O("li",{className:"o-inline__by-4",children:_e("a",{href:o.url,className:"c-square-tile o-column u-skin-darkBlue",children:[O(cr,{name:`horoscope-${o.slug}`,size:18}),O(ja,{colorScheme:"white",isUppercase:!1,children:o.label})]})},o.slug))}),SP=({articles:i,layout:o=en.DESKTOP})=>_e("div",{className:"c-live-cards",children:[O(ih,{colorScheme:"direct",hasShiftedIcon:!0,className:"c-live-cards__divider"}),O("h2",{children:"Le direct"}),O("div",{className:"c-live-cards__articles",children:O("div",{className:"c-live-cards__list",children:i.map(l=>O(F8,{layout:o,...l},l.title))})})]}),Hv=({icon:i,children:o,iconClassNames:l,iconSize:c,href:u,className:m})=>_e(Li,{href:u,className:jn("o-column o-column--centered u-color-white u-pt1 u-pb1 u-skin-darkBlue",m),children:[O(cr,{name:i,className:l,size:c}),O(ja,{colorScheme:"white",isUppercase:!1,children:o})]}),EP=({categories:i,tagsActu:o,layout:l})=>_e(L4,{variant:"left",children:[O(P8,{}),_e("div",{className:"c-menu",children:[l===en.MOBILE&&O(sm,{icon:"search",placeholder:"Rechercher"}),_e("div",{className:"c-menu__actu",children:[O(ah,{as:"h4",className:"c-menu__actu__title",children:"Dans l\u2019actu"}),O("div",{className:"c-menu__actu__tags",children:o.map((c,u)=>O(pp,{link:c.link,variant:"secondary",className:"u-color-primary",children:c.children},u))})]}),O("div",{className:"c-menu__list",children:i.map((c,u)=>c.links.length>0?_e(d2,{title:c.name,index:u,btnClass:`u-color-${c.theme}`,iconClass:"u-color-primary",children:[c.tags&&O("div",{className:"c-collapse__list__tags",children:c.tags.map((m,S)=>O(pp,{link:m.link,className:"u-color-primary",children:m.children},S))}),c.links.map(m=>_e(Li,{href:m.href,className:"u-color-black",children:[m.children,O(cr,{name:"chevron",size:[10,14],className:"u-color-primary"})]},m.href))]},c.name):O(Li,{href:c.categoryLink,className:jn("c-collapse__link",{[`u-color-${c.theme}`]:c.theme}),children:c.name}))}),_e("div",{className:"c-menu__tiles",children:[O(Hv,{icon:"newsletters",href:"/newsletters",className:"c-menu__tiles__items",children:"Newsletters"}),O(Hv,{icon:"journal",href:"/pdf",className:"c-menu__tiles__items",children:"Journal"}),O(Hv,{icon:"jeux",href:"/services/jeux",className:"c-menu__tiles__items",children:"Jeux"}),O(Hv,{icon:"horoscope",href:"/horoscope",className:"c-menu__tiles__items",children:"Horoscope"})]}),_e("div",{className:"c-menu__switch",children:[_e("div",{className:"c-menu__switch__title",children:[O(cr,{size:18,name:"notification"}),O("p",{className:"c-menu__switch__title__label",children:"Push Web"})]}),O(fm,{})]}),_e("div",{className:"c-menu__switch",children:[_e("div",{className:"c-menu__switch__title",children:[O(cr,{size:18,name:"darkmode"}),O("p",{className:"c-menu__switch__title__label",children:"Mode sombre"})]}),O(I4,{})]})]})]}),wP=(i,o)=>{o.preventDefault();const l=o.target,c=i.querySelectorAll('[role="tab"]'),u=i.querySelectorAll('[role="tabpanel"]'),m=l.getAttribute("aria-controls"),S=Object.values(u).find(A=>A.id===m);c.forEach(A=>{A.setAttribute("aria-selected","false")}),u.forEach(A=>{A.setAttribute("aria-hidden","true")}),l.setAttribute("aria-selected","true"),S&&S.removeAttribute("aria-hidden")},H8=i=>i.code==="ArrowLeft"||i.keyCode===39,$8=i=>i.code==="ArrowRight"||i.keyCode===37,CP=(i=document.querySelector(".js-tabs"))=>{if(i){const o=i.querySelectorAll('[role="tab"]');o.forEach(c=>{c.addEventListener("click",wP.bind(!1,i))});const l=i.querySelector('[role="tablist"]');if(l&&o.length>0){let c=0;l.addEventListener("keydown",u=>{u instanceof KeyboardEvent&&(H8(u)||$8(u))&&(o[c].setAttribute("tabindex","-1"),H8(u)?(c+=1,c>=o.length&&(c=0)):$8(u)&&(c-=1,c<0&&(c=o.length-1)),o[c].setAttribute("tabindex","0"),o[c].focus())})}}},j8=({tabItems:i,tabItemActive:o,tabVariant:l="default"})=>{const c=Hc.useRef(null);return dp(()=>{c.current&&CP(c.current)},[]),_e("div",{className:"js-tabs",ref:c,children:[O("div",{role:"tablist",className:jn("o-tabs",{[`o-tabs--${l}`]:l}),children:i.map(u=>O(P4,{name:u.name,isSelected:(o||i[0].name)===u.name,tabIndex:(o||i[0].name)===u.name?0:-1,variant:l,children:u.title},u.name))}),i.map(u=>O(U4,{name:u.name,isHidden:(o||i[0].name)!==u.name,children:u.content},u.name))]})},_P=({tabItems:i,tabItemActive:o})=>{const l=i.map(c=>({name:c.name,title:c.title,content:O("ul",{children:c.body.map((u,m)=>O("li",{children:O(L8,{isSimplified:!0,index:(m+1).toString(),headline:u.rubricName,title:u.title,link:u.url,withBorder:m!==c.body.length-1})},u.rubricSlug))})}));return O(j8,{tabItemActive:o||i[0].name,tabItems:l})},bP=({articles:i,label:o})=>_e("div",{children:[O("h3",{children:o}),O("hr",{}),O("div",{style:{display:"flex",gap:10},children:i.map(l=>O(N8,{...l},l.title))})]}),xP=({title:i,description:o,placeholder:l,checkboxLabel:c,buttonLabel:u,colorScheme:m,layout:S=en.DESKTOP})=>_e("div",{className:"c-newsletter",children:[m?O(ih,{colorScheme:m,iconSize:S===en.DESKTOP?"big":"default",hasShiftedIcon:S===en.MOBILE,hasMaxWidth:!0}):O("div",{className:"c-newsletter__icon-container",children:O(cr,{className:"c-newsletter__icon",size:S===en.DESKTOP?[47,53]:[33,37],name:"diode-leaning"})}),O("div",{className:"c-newsletter__form",children:_e("form",{children:[O("h5",{className:"c-newsletter__title",children:i}),O("p",{className:"c-newsletter__description",children:o}),O(sm,{className:"c-input--newsletter",type:"email",placeholder:l}),O($c,{variant:"secondary",type:"submit",className:"c-newsletter__button",children:u}),_e("div",{className:"c-newsletter__checkbox",children:[O(sm,{className:"c-input--checkbox",type:"checkbox",placeholder:l,required:!0,id:"term"}),O("label",{htmlFor:"term",dangerouslySetInnerHTML:{__html:c}})]})]})})]});function TP({articles:i,layout:o=en.MOBILE}){return _e("section",{className:"c-overview-bar u-mb3",children:[_e(R4,{children:["Le r\xE9cap\u2019",o===en.DESKTOP&&O("br",{}),"de la journ\xE9e"]}),O("ul",{className:"c-overview-bar__list",children:i.map((l,c)=>O("li",{className:jn("c-overview-bar__item",o===en.DESKTOP&&c!==i.length-1&&"c-overview-bar__item--withBorder"),children:O(z8,{...l})},l.title))})]})}const kP=({label:i,articles:o})=>_e("div",{className:"c-partner-cards__partner",children:[O("h4",{className:"c-partner-cards__partner-title",children:i}),o.map((l,c)=>{let u;return c===0?u=_e(co,{children:[O(B8,{...l}),O(Ed,{className:"c-partner-cards__partner-divider"})]}):c!==o.length-1?u=_e(co,{children:[O(f2,{...l}),O(Ed,{className:"c-partner-cards__partner-divider"})]}):u=O(f2,{...l}),u})]}),RP=({columns:i})=>_e("div",{className:"c-partner-cards",children:[O(ih,{colorScheme:"primary",hasShiftedIcon:!0,className:"c-partner-cards__divider"}),O("h2",{className:"c-partner-cards__title",children:"Partenaires"}),O("div",{className:"c-partner-cards__partners",children:O("div",{className:"c-partner-cards__list",children:i.map(o=>O(kP,{...o},o.label))})})]}),DP=()=>_e("div",{className:"c-smart-banner u-skin-darkBlue",children:[O($c,{icon:"close",iconSize:10,iconClassNames:"u-color-white",className:"c-smart-banner__close"}),O(cr,{name:"logo",size:35,className:"u-bg-white u-color-primary c-smart-banner__logo"}),_e("div",{children:[_e("h4",{className:"c-smart-banner__title",children:["20 Minutes",O("span",{className:"c-smart-banner__rate",children:[0,1,2,3].map(i=>O(cr,{name:"star",size:11},i))})]}),O("p",{className:"c-smart-banner__teaser",children:"Retrouvez l\u2019actualit\xE9 sur notre application"})]}),O($c,{className:"u-color-primary u-bg-white c-smart-banner__btn",children:"Installer"})]}),m2=({socialIcons:i})=>O("div",{className:"c-footer-social",children:i.map((o,l)=>O("div",{className:"o-inline",children:o.icons.map((c,u)=>O("a",{href:c.url,children:O(cr,{className:"u-color-primary u-bg-white u-pa1",size:20,name:c.name})},u))},l))}),AP=({tags:i,className:o})=>_e("div",{className:o,children:[i.map((l,c)=>O(pp,{...l},l.id||c)),O("hr",{})]}),OP=({socialIcons:i,footerBar:o,categories:l,logoLink:c})=>O("div",{className:"c-footer",children:_e("div",{className:"c-footer__wrap",children:[_e("section",{className:"c-footer__wrap__top",children:[_e("div",{className:"c-footer__wrap__top__left",children:[O(Li,{href:c,children:O(cr,{name:"logo",size:50,className:"u-color-white",withBorder:!0})}),O(m2,{socialIcons:i}),O(Ed,{className:"u-bg-white"}),O(ah,{as:"h4",className:"c-footer__wrap__top__left__title",children:"Nos applications"}),O(Af,{as:"p",className:"c-footer__wrap__top__left__mention",children:"D\xE9couvrez l\u2018ensemble de nos applications 20 Minutes !"}),_e("div",{className:"c-footer__wrap__top__left__app",children:[_e(Li,{href:"https://apps.apple.com/fr/app/20-minutes-news-en-continu/id308834491",variant:"primary-button",className:"c-link--app",isTargetBlank:!0,children:[O(cr,{name:"apple",size:[16,20],className:"u-color-primary"}),_e("span",{className:"u-color-black",children:["T\xE9l\xE9charger sur ",O("strong",{className:"c-link--app__mention",children:"App Store"})]})]}),_e(Li,{href:"https://play.google.com/store/apps/details?id=com.backelite.vingtminutes&hl=fr",variant:"primary-button",className:"c-link--app",isTargetBlank:!0,children:[O(cr,{name:"googleplay",size:[17,20],className:"u-color-primary"}),_e("span",{className:"u-color-black",children:["T\xE9l\xE9charger sur ",O("strong",{className:"c-link--app__mention",children:"Google Play"})]})]})]})]}),O("div",{className:"c-footer__wrap__top__right",children:O(p2,{categories:l})})]}),O(Ed,{className:"u-bg-white"}),_e("section",{className:"c-footer__wrap__bottom",children:[O(h2,{footerBar:o}),O(Af,{as:"strong",children:"\xA9 Copyright 20 Minutes"}),O(Af,{as:"p",className:"c-footer__wrap__bottom__mention",children:"La fr\xE9quentation de 20 Minutes est certifi\xE9e par l\u2018ACPM"})]})]})}),MP=({socialIcons:i,footerBar:o,categories:l,logoLink:c})=>_e("div",{className:"c-footer-mobile u-bg-primary",children:[O(p2,{categories:l,layout:en.MOBILE}),_e("div",{className:"c-footer-mobile__app",children:[O(ah,{as:"h4",className:"c-footer-mobile__app__title",children:"Nos applications"}),O(Af,{as:"p",className:"c-footer-mobile__app__mention",children:"D\xE9couvrez l\u2018ensemble de nos applications 20 Minutes !"}),_e("div",{className:"c-footer-mobile__app__btn",children:[O(Li,{href:c,children:O(cr,{name:"logo",size:26,className:"u-color-white",withBorder:!0})}),_e(Li,{href:"https://apps.apple.com/fr/app/20-minutes-news-en-continu/id308834491",variant:"primary-button",className:"c-link--app",isTargetBlank:!0,children:[O(cr,{name:"apple",size:[16,20],className:"u-color-primary"}),_e("span",{className:"u-color-black",children:["T\xE9l\xE9charger sur ",O("strong",{className:"c-link--app__mention",children:"App Store"})]})]}),_e(Li,{href:"https://play.google.com/store/apps/details?id=com.backelite.vingtminutes&hl=fr",variant:"primary-button",className:"c-link--app",isTargetBlank:!0,children:[O(cr,{name:"googleplay",size:[17,20],className:"u-color-primary"}),_e("span",{className:"u-color-black",children:["T\xE9l\xE9charger sur ",O("strong",{className:"c-link--app__mention",children:"Google Play"})]})]})]})]}),O(Ed,{className:"u-bg-white"}),O("div",{className:"c-footer-mobile__social",children:O(m2,{socialIcons:i})}),O(Ed,{className:"u-bg-white"}),_e("section",{className:"c-footer-mobile__bottom",children:[O(h2,{footerBar:o,listClass:"c-footer-mobile__bottom__list"}),O(Af,{as:"strong",className:"u-mt1",children:"\xA9 Copyright 20 Minutes"}),O(Af,{as:"p",className:"c-footer__wrap__bottom__mention",children:"La fr\xE9quentation de 20 Minutes est certifi\xE9e par l\u2018ACPM"})]})]}),FP=({layout:i=en.MOBILE,...o})=>{const l="https://www.20minutes.fr/";return i===en.DESKTOP?O(OP,{...o,logoLink:l}):O(MP,{...o,logoLink:l})},BP=({headerLinks:i,dividerColor:o="primary",logoLink:l})=>_e("div",{className:"c-header",children:[O("div",{className:"c-header__logo",children:O(Li,{href:l,children:O(cr,{name:"logo",size:100,className:"u-color-primary"})})}),_e("div",{className:"c-header__container",children:[_e("div",{className:"c-header__container__top",children:[O("div",{className:"c-header__container__top__left",children:" "}),O("div",{id:"mbrs-connectButtons",className:"c-header__container__top__right"})]}),O("div",{className:"c-header__container__bottom",children:i.map((c,u)=>O(Li,{href:c.url,className:`u-color-${c.theme?c.theme:"default"}`,children:c.name},`key-${u}`))})]}),O(ih,{className:"c-divider-section--menu",hasIcon:!1,colorScheme:o})]}),LP=({logoLink:i})=>_e("div",{className:"c-header-mobile",children:[O("div",{className:"c-header-mobile__side",children:O(Li,{href:i,children:O(cr,{name:"logo",size:46,className:"u-color-primary"})})}),O("div",{id:"mbrs-connectButtons",className:"c-header-mobile__side"})]}),NP=({layout:i=en.MOBILE,...o})=>{const l="https://www.20minutes.fr/";return i===en.DESKTOP?O(BP,{...o,logoLink:l}):O(LP,{logoLink:l})};yt.Ad=x4,yt.Alert=O9,yt.ArticleContent=UI,yt.ArticleHeader=HI,yt.ArticleImageCover=A8,yt.ArticleSummary=$I,yt.ArticleVideoCover=jI,yt.Avatar=k4,yt.Box=B4,yt.Breadcrumb=qI,yt.Button=$c,yt.CategoryCard=M8,yt.CategoryCards=lP,yt.Checkbox=M9,yt.Collapse=d2,yt.Divider=Ed,yt.DividerSection=ih,yt.ErrorContent=cP,yt.Footer=FP,yt.FooterCategories=p2,yt.FooterLinks=h2,yt.GameCard=QI,yt.Grid=z9,yt.Header=NP,yt.HeaderBanner=I8,yt.HeaderPage=vP,yt.HeaderSideModal=P8,yt.Heading=ah,yt.HomeLiveCard=JI,yt.HoroscopeContent=mP,yt.HoroscopeHomepageContent=gP,yt.HoroscopeTiles=yP,yt.HoroscopeTopicCard=v2,yt.Icon=cr,yt.Img=Of,yt.InfoBanner=U8,yt.Input=sm,yt.Label=ja,yt.LabelSection=R4,yt.LargeCard=eP,yt.LayoutType=en,yt.Link=Li,yt.LiveCard=F8,yt.LiveCards=SP,yt.MediumCard=B8,yt.Menu=EP,yt.MenuCard=tP,yt.Meta=I9,yt.Modal=L4,yt.MostReadArticles=_P,yt.MostReadCard=L8,yt.NewsCard=N8,yt.NewsCards=bP,yt.Newsletter=xP,yt.OverviewBar=TP,yt.OverviewCard=z8,yt.PartnerCards=RP,yt.Pipe=cm,yt.PodcastCard=nP,yt.ReadAlso=N4,yt.RegionalCard=rP,yt.RubricCard=aP,yt.ScrollProgressBar=H9,yt.Section=$9,yt.Select=j9,yt.Signature=c2,yt.SmallCard=f2,yt.SmallGameCard=iP,yt.SmallLiveCard=oP,yt.SmartBanner=DP,yt.SocialBar=If,yt.SocialIcons=m2,yt.SvgSprite=A9,yt.Switch=fm,yt.SwitchDarkMode=I4,yt.Tab=P4,yt.TabPanel=U4,yt.Tabs=j8,yt.Tag=pp,yt.TagBar=AP,yt.Text=Af,yt.Tiles=Hv,yt.useLayoutEffect=dp,Object.defineProperties(yt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
326
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Od(i){return SI(i)||EI(i)||wI(i)||CI()}function E8(i,o,l,c,u,m){var S=c-l,A=o+l<=i.offset;if(A)return Object.assign({},i,{offset:i.offset+S});var x=o>=i.offset&&o+l<=i.offset+i.length;if(x)return Object.assign({},i,{length:i.length+S});var L=i.offset>=o&&i.offset+i.length<=o+l&&u>0;if(L)return Object.assign({},i,{offset:i.offset+u});var q=i.offset<o&&i.offset+i.length<=o+l&&i.offset+i.length>o&&u>0;if(q)return[Object.assign({},i,{length:o-i.offset}),Object.assign({},i,{offset:o+u,length:i.offset-o+i.length})];var $=i.offset>=o&&i.offset+i.length>o+l&&o+l>i.offset&&m>0;return $?[Object.assign({},i,{offset:i.offset+u,length:o+l-i.offset}),Object.assign({},i,{offset:o+l+u+m,length:i.offset+i.length-(o+l)})]:i}const Xm=function(i,o){return i.offset===o.offset?o.length-i.length:i.offset-o.offset};var w8={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","\n":"<br/>"};const _I=function(i){for(var o=Od(i.text),l=i.entityRanges.sort(Xm),c=i.inlineStyleRanges.sort(Xm),u="",m=function(x){var L=o[x];if(w8[L]!==void 0){var q=w8[L],$=Od(u).length;u+=q;var K=function(te){return E8(te,$,L.length,q.length,0,0)};l=l.map(K),c=c.map(K)}else u+=L},S=0;S<o.length;S++)m(S);return Object.assign({},i,{text:u,inlineStyleRanges:c,entityRanges:l})};function qm(i){return qm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},qm(i)}var bI=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function mh(i){if(bI.indexOf(i.type)!==-1)return nl.renderToStaticMarkup(i);var o=nl.renderToStaticMarkup(Xn.default.cloneElement(i,{},"\r")).split("\r");return ec(o.length>1,"convertToHTML: Element of type ".concat(i.type," must render children")),ec(o.length<3,"convertToHTML: Element of type ".concat(i.type," cannot use carriage return character")),{start:o[0],end:o[1]}}function xI(i){return Xn.default.isValidElement(i)&&Xn.default.Children.count(i.props.children)>0}function Qm(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(i==null||typeof i=="string")return i;if(Xn.default.isValidElement(i)){if(xI(i))return nl.renderToStaticMarkup(i);var l=mh(i);if(o!==null&&qm(l)==="object"){var c=l.start,u=l.end;return c+o+u}return l}if(ec(Object.prototype.hasOwnProperty.call(i,"start")&&Object.prototype.hasOwnProperty.call(i,"end"),"convertToHTML: received conversion data without either an HTML string, ReactElement or an object with start/end tags"),o!==null){var m=i.start,S=i.end;return m+o+S}return i}var C8=function i(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"start";if(Xn.default.isValidElement(o)){var c=mh(o);if(typeof c=="string")return 0;var u=c[l].length,m=Xn.default.Children.toArray(o.props.children)[0];return u+(m&&Xn.default.isValidElement(m)?i(m,l):0)}return qm(o)==="object"&&o[l]?o[l].length:0},_8=function(){var o=arguments.length>1?arguments[1]:void 0;return o};const TI=function(i,o){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_8,c=Od(i.text),u=l;if(l.__isMiddleware&&(u=l(_8)),Object.prototype.hasOwnProperty.call(i,"entityRanges")&&i.entityRanges.length>0){for(var m=i.entityRanges.sort(Xm),S=i.inlineStyleRanges,A=function(q){var $=m[q],K=o[$.key],J=c.slice($.offset,$.offset+$.length).join(""),te=u(K,J),le=Qm(te,J),ie=void 0;!!le||le===""?ie=Od(le):ie=J;var oe=C8(te,"start"),Ce=C8(te,"end"),Se=function(nt,je){return je>q||Object.prototype.hasOwnProperty.call(nt,"style")?E8(nt,$.offset,$.length,ie.length,oe,Ce):nt},we=function(nt){return nt.reduce(function(je,ct,Xe){var ht=Se(ct,Xe);return Array.isArray(ht)?je.concat(ht):je.concat([ht])},[])};m=we(m),S=we(S),c=[].concat(Od(c.slice(0,$.offset)),Od(ie),Od(c.slice($.offset+$.length)))},x=0;x<m.length;x++)A(x);return Object.assign({},i,{text:c.join(""),inlineStyleRanges:S,entityRanges:m})}return i},b8=function(i){return function(o){return typeof i=="function"?i(o):i[o]}},x8=function(i,o){return function(){var l=i.apply(void 0,arguments);return l!=null?l:o.apply(void 0,arguments)}};function T8(i){switch(i){case"BOLD":return O("strong",{});case"ITALIC":return O("em",{});case"UNDERLINE":return O("u",{});case"CODE":return O("code",{});default:return{start:"",end:""}}}var l2=function(o,l){return o.filter(function(c){return!l.some(function(u){return u.style===c.style})})},kI=function(o,l){return l.reduceRight(function(c,u){var m=c[c.length-1];return ec(m.style===u.style,"Style ".concat(m.style," to be removed doesn't match expected ").concat(u.style)),c.slice(0,-1)},o)},RI=function(o,l){return l.filter(function(c){return o>=c.offset&&o<c.offset+c.length})},DI=function(o,l){var c=o.offset<=l.offset,u=o.offset+o.length>=l.offset+l.length;return c&&u},AI=function(o,l){var c=l.offset+l.length,u=o.offset+o.length;return c-u},OI=function(o,l){for(var c=0;c<o.length;)if(l.every(DI.bind(null,o[c])))c++;else return o.slice(c);return[]},MI=function(o,l,c){return l+Qm(o(c.style)).start},FI=function(o,l,c){return Qm(o(c.style)).end+l},k8=function(o){return function(l){return o(l)}};k8.__isMiddleware=!0;const BI=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k8;ec(i!=null,"Expected raw block to be non-null");var l;o.__isMiddleware===!0?l=o(T8):l=x8(b8(o),b8(T8));for(var c="",u=[],m=i.inlineStyleRanges.sort(Xm),S=Od(i.text),A=0;A<S.length;A++){var x=RI(A,m),L=l2(u,x),q=l2(x,u),$=l2(u,L),K=OI($,q),J=K.concat(q).sort(AI),te=J.reduce(MI.bind(null,l),""),le=L.concat(K).reduce(FI.bind(null,l),"");c+=le+te+S[A],u=kI(u,K.concat(L)),u=u.concat(J),ec(u.length===x.length,"Character ".concat(A,": ").concat(u.length-x.length," styles left on stack that should no longer be there"))}return c=u.reduceRight(function(ie,oe){return ie+Qm(l(oe.style)).end},c),c},u2=function(i){return function(o){return typeof i=="function"?i(o):i[o.type]}};function LI(i){return Xn.default.isValidElement(i)&&Xn.default.Children.count(i.props.children)>0}function NI(i){return ec(i!=null,"Expected block HTML value to be non-null"),typeof i=="string"?i:Xn.default.isValidElement(i)?LI(i)?nl.renderToStaticMarkup(i):mh(i):Object.prototype.hasOwnProperty.call(i,"element")&&Xn.default.isValidElement(i.element)?Object.assign({},i,mh(i.element)):(ec(Object.prototype.hasOwnProperty.call(i,"start")&&Object.prototype.hasOwnProperty.call(i,"end"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),i)}function gh(i,o){if(ec(i!=null,"Expected block HTML value to be non-null"),typeof i.nest=="function"){var l=mh(i.nest(o)),c=l.start,u=l.end;return Object.assign({},i,{nestStart:c,nestEnd:u})}if(Xn.default.isValidElement(i.nest)){var m=mh(i.nest),S=m.start,A=m.end;return Object.assign({},i,{nestStart:S,nestEnd:A})}return ec(Object.prototype.hasOwnProperty.call(i,"nestStart")&&Object.prototype.hasOwnProperty.call(i,"nestEnd"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),i}var zI=["1","a","i"];const R8={unstyled:O("p",{}),paragraph:O("p",{}),"header-one":O("h1",{}),"header-two":O("h2",{}),"header-three":O("h3",{}),"header-four":O("h4",{}),"header-five":O("h5",{}),"header-six":O("h6",{}),"code-block":O("pre",{}),blockquote:O("blockquote",{}),"unordered-list-item":{element:O("li",{}),nest:O("ul",{})},"ordered-list-item":{element:O("li",{}),nest:function(o){var l=zI[o%3];return O("ol",{type:l})}},media:O("figure",{}),atomic:O("figure",{})};var II=function(o,l){return l},D8=function(o){var l=o.styleToHTML,c=l===void 0?{}:l,u=o.blockToHTML,m=u===void 0?{}:u,S=o.entityToHTML,A=S===void 0?II:S;return function(x){ec(x!=null,"Expected contentState to be non-null");var L;m.__isMiddleware===!0?L=m(u2(R8)):L=x8(u2(m),u2(R8));var q=S8.convertToRaw(x),$=[],K=q.blocks.map(function(J){var te=J.type,le=J.depth,ie="",oe="",Ce=L(J);if(!Ce)throw new Error("convertToHTML: missing HTML definition for block with type ".concat(J.type));if(!Ce.nest)ie=$.reduceRight(function(ct,Xe){return ct+gh(L(Xe),le).nestEnd},""),$=[];else for(;le+1!==$.length||te!==$[le].type;)if(le+1===$.length){var Se=$[le];ie+=gh(L(Se),le).nestEnd,oe+=gh(L(J),le).nestStart,$[le]=J}else if(le+1<$.length){var we=$[$.length-1];ie+=gh(L(we),le).nestEnd,$=$.slice(0,-1)}else oe+=gh(L(J),le).nestStart,$.push(J);var Be=BI(TI(_I(J),q.entityMap,A),c),nt=NI(L(J)),je;return typeof nt=="string"?je=nt:je=nt.start+Be+nt.end,Be.length===0&&Object.prototype.hasOwnProperty.call(nt,"empty")&&(Xn.default.isValidElement(nt.empty)?je=nl.renderToStaticMarkup(nt.empty):je=nt.empty),ie+oe+je}).join("");return K=$.reduce(function(J,te){return J+gh(L(te),te.depth).nestEnd},K),K}};const PI=function(){for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return o.length===1&&Object.prototype.hasOwnProperty.call(o[0],"_map")&&o[0].getBlockMap!=null?D8({}).apply(void 0,o):D8.apply(void 0,o)},s2=i=>PI({blockToHTML:o=>{switch(o.type){case"blockquote":return nl.renderToStaticMarkup(Xn.default.createElement("blockquote",{},o.text));default:return null}},entityToHTML:(o,l)=>{switch(o.type){case"article":return nl.renderToStaticMarkup(Xn.default.createElement(N4,{label:"Lire Aussi",title:o.data.articleProps.meta.title,link:o.data.articleProps.meta.canonical,isTargetBlank:o.data.isTargetBlank,isNofollow:o.data.isNofollow,isSponsored:o.data.isSponsored}));case"button":return nl.renderToStaticMarkup(Xn.default.createElement(Li,{children:o.data.buttonProps.label,href:o.data.buttonProps.url,isTargetBlank:o.data.buttonProps.isTargetBlank,isNofollow:o.data.buttonProps.isNofollow,isSponsored:o.data.buttonProps.isSponsored,variant:"primary-button"}));case"html":return nl.renderToStaticMarkup(Xn.default.createElement("div",{dangerouslySetInnerHTML:{__html:o.data.htmlProps.html}}));case"LINK":return nl.renderToStaticMarkup(Xn.default.createElement(Li,{href:o.data.url,children:l,isTargetBlank:o.data.isTargetBlank,isNofollow:o.data.isNofollow,isSponsored:o.data.isSponsored,variant:"default"}));case"image":return nl.renderToStaticMarkup(Xn.default.createElement(A8,{src:o.data.imageProps.src,caption:o.data.imageProps.meta.caption}));default:return l}}})(S8.convertFromRaw(i)),UI=({content:i,colorScheme:o="primary"})=>O("div",{className:"c-article-content","data-color":`${o}`,dangerouslySetInnerHTML:{__html:s2(i)}}),HI=({title:i,label:o,lead:l,colorScheme:c,rightImageUrl:u})=>_e("header",{className:"c-article-header",children:[u&&O("div",{className:"c-article-header__img",children:O("img",{alt:i,src:u})}),O("h1",{className:"c-article-header__title",children:i}),_e("div",{className:"c-article-header__lead",children:[O(ja,{colorScheme:c,withRightDivider:!0,children:o}),l]})]}),A8=({src:i,caption:o,isCaptionInside:l=!1,layout:c=en.MOBILE})=>{let u="320x204",m="100%";const S=["1444x920","640x408","320x204"];return c===en.DESKTOP&&(u="722x460",m="(min-width: 48rem) 45.125rem, 100%"),_e("figure",{className:"c-media",children:[O("div",{className:"c-media__content",children:O(Of,{src:i,defaultFormat:u,formats:S,sizes:m,alt:o})}),o&&O("figcaption",{className:jn("c-media__caption",{"c-media__caption--inside":l}),children:o})]})},$I=({summary:i,colorScheme:o="primary"})=>i?_e("div",{className:`c-article-summary u-bg-${o}`,children:[O("h3",{className:"c-article-summary__title",children:"L\u2019essentiel"}),O("div",{dangerouslySetInnerHTML:{__html:s2(i)}})]}):null,jI=({src:i,caption:o})=>_e("div",{children:[O("img",{src:i,alt:o}),O("hr",{}),O("small",{children:o})]}),O8=({rubric:i})=>_e(co,{children:[O(cr,{className:"u-color-default u-pl1 u-pr1",size:7,name:"arrow"}),O(pp,{variant:"breadcrumb",link:i.link,children:i.label})]}),VI=({breadcrumbList:i,btnNext:o,btnPrev:l})=>{i&&(i.scrollLeft>0&&(i.scrollLeft+i.clientWidth<i.scrollWidth&&o.classList.add("c-breadcrumb__button-container--visible"),o.classList.remove("c-breadcrumb__button-container--visible"),l.classList.add("c-breadcrumb__button-container--visible")),i.clientWidth<i.scrollWidth?o.classList.add("c-breadcrumb__button-container--visible"):(l.classList.remove("c-breadcrumb__button-container--visible"),o.classList.remove("c-breadcrumb__button-container--visible")),i.scrollLeft+i.clientWidth===i.scrollWidth&&o.classList.remove("c-breadcrumb__button-container--visible"))},KI=({breadcrumbList:i,btnNext:o,btnPrev:l})=>{if(i)if(i.scrollWidth-i.clientWidth>i.clientWidth)i.scrollLeft+=Math.ceil(i.clientWidth*.7),l.classList.add("c-breadcrumb__button-container--visible"),i.scrollLeft+i.clientWidth>=i.scrollWidth&&o.classList.remove("c-breadcrumb__button-container--visible");else{const c=i.scrollWidth-i.clientWidth;i.scrollLeft+=c,o.classList.remove("c-breadcrumb__button-container--visible"),l.classList.add("c-breadcrumb__button-container--visible")}},WI=({breadcrumbList:i,btnNext:o,btnPrev:l})=>{i&&(i.clientWidth<i.scrollLeft?(i.scrollLeft-=i.clientWidth*.7,o.classList.add("c-breadcrumb__button-container--visible")):(i.scrollLeft=0,l.classList.remove("c-breadcrumb__button-container--visible"),i.clientWidth<i.scrollWidth&&o.classList.add("c-breadcrumb__button-container--visible")))},YI=({breadcrumbList:i,btnNext:o,btnPrev:l})=>{VI({breadcrumbList:i,btnNext:o,btnPrev:l})},GI=(i=document.querySelector(".c-breadcrumb"))=>{if(i){const o=i.querySelector(".c-breadcrumb__viewport"),l=i.querySelector(".c-breadcrumb__button-container--next-button"),c=i.querySelector(".c-breadcrumb__button-container--previous-button");o&&o.clientWidth<o.scrollWidth&&(l==null||l.classList.add("c-breadcrumb__button-container--visible")),l==null||l.addEventListener("click",KI.bind(!1,{breadcrumbList:o,btnNext:l,btnPrev:c})),c==null||c.addEventListener("click",WI.bind(!1,{breadcrumbList:o,btnNext:l,btnPrev:c}))}},XI=(i=document.querySelector(".c-breadcrumb"))=>{if(i){const o=i.querySelector(".c-breadcrumb__viewport"),l=i.querySelector(".c-breadcrumb__button-container--next-button"),c=i.querySelector(".c-breadcrumb__button-container--previous-button");window.addEventListener("resize",YI.bind(!1,{breadcrumbList:o,btnNext:l,btnPrev:c}))}},qI=({rubric:i,parentRubric:o,tags:l,colorScheme:c="primary",layout:u=en.MOBILE})=>{const m=lm.useRef(null);return dp(()=>{m.current&&u===en.DESKTOP&&(GI(m.current),XI(m.current))},[]),_e("div",{className:"c-breadcrumb",ref:m,children:[O("div",{className:"c-breadcrumb__viewport",children:_e("div",{className:"c-breadcrumb__list",children:[O(pp,{variant:"breadcrumb",link:"/",className:"",children:O(cr,{size:20,name:"home"})}),o&&O(O8,{rubric:o}),i&&O(O8,{rubric:i}),l&&_e(co,{children:[O(cm,{}),l.map((S,A)=>O(pp,{colorScheme:c,variant:"primary",link:S.link,className:A!==l.length-1?"u-mr1":"",children:S.label},S.label))]})]})}),u===en.DESKTOP&&_e(co,{children:[O("div",{className:"c-breadcrumb__button-container c-breadcrumb__button-container--previous-button",children:O($c,{variant:"navigation",icon:"chevron",iconSize:12})}),O("div",{className:"c-breadcrumb__button-container c-breadcrumb__button-container--next-button",children:O($c,{variant:"navigation",icon:"chevron",iconSize:12})})]})]})},M8=({link:i,cover:o,headline:l,title:c,layout:u=en.DESKTOP})=>{const m=["252x162","160x104"],S=u===en.MOBILE?"160x104":"252x162";return _e("a",{href:i,className:"c-category-card",children:[O(Of,{src:o,defaultFormat:S,formats:m,sizes:"(min-width: 48rem) 15.75rem, 10rem",alt:c,className:"c-category-card__img"}),O(ja,{colorScheme:"default",children:l}),O("h4",{className:"c-category-card__title",children:c})]})},QI=({link:i,title:o,cover:l,headline:c,summary:u,layout:m=en.DESKTOP})=>_e("a",{href:i,children:[O(ja,{children:c}),O("h4",{children:o}),O("div",{children:m===en.DESKTOP?O("img",{src:l,alt:o,width:"346",height:"222"}):O("img",{src:l,alt:o,width:"414",height:"265"})}),O("p",{children:u}),O("hr",{})]}),JI=({link:i,title:o,cover:l,headline:c,publishedAt:u,layout:m=en.DESKTOP})=>_e("a",{href:i,children:[O(ja,{withRightDivider:!0,children:u}),O(ja,{children:c}),O("h5",{children:o}),O("div",{style:{display:"flex"},children:m===en.DESKTOP?O("img",{src:l,alt:o,width:110,height:70}):O("img",{src:l,alt:o,width:130,height:82})}),O("hr",{})]});function ZI({avatar:i,avatarHD:o,username:l,publishedAt:c,editedAt:u,userlink:m}){const S=_e(co,{children:[O(k4,{img:i,imgHD:o,alt:l}),_e("div",{children:[O("div",{className:"c-signature__name",children:l}),_e("div",{className:"c-signature__date",children:[_e("time",{children:["Publi\xE9 le ",c]}),u&&_e("time",{children:[" \u2022 Mis \xE0 jour le ",u]})]})]})]});return m?O("a",{href:m,children:S}):S}const c2=({username:i,publishedAt:o,editedAt:l,avatar:c,avatarHD:u,userlink:m})=>O("address",{className:"c-signature",children:O(ZI,{username:i,publishedAt:o,editedAt:l,avatar:c,avatarHD:u,userlink:m})});function If({variant:i="advanced",commentCount:o,shareCount:l,colorScheme:c="primary",layout:u}){const m=_e(co,{children:[_e("div",{className:"c-social__items",children:[O("span",{className:"c-social__items__icon",children:O(cr,{size:20,name:"comment"})}),O("span",{className:jn("c-social__items__count",i!=="simple"&&[`u-bg-${c}`]),children:o})]}),_e("div",{className:"c-social__items",children:[O("span",{className:"c-social__items__icon",children:O(cr,{size:20,name:"share"})}),O("span",{className:jn("c-social__items__count",i!=="simple"&&[`u-bg-${c}`]),children:l})]})]});return _e("div",{className:jn("c-social",{"c-social--sidebar":i==="advanced"&&u===en.DESKTOP},{"c-social--bar":i==="advanced"&&u===en.MOBILE},{"c-social--reaction":i==="simple"}),children:[i==="simple"?O("div",{className:"c-social--reaction__block",children:m}):m,i!=="simple"&&u===en.DESKTOP?_e(co,{children:[O(cm,{}),O("div",{className:"c-social__items",children:O(cr,{size:20,name:"bookmark"})}),O("div",{className:"c-social__items",children:O(cr,{size:20,name:"report"})})]}):O("span",{className:"c-social__items__icon",children:O(cr,{size:20,name:"bookmark"})})]})}const eP=({link:i,title:o,cover:l,headline:c,summary:u,signatureProps:m,socialBarProps:S,layout:A=en.DESKTOP,colorScheme:x="primary"})=>{const L=["722x469","640x408","415x269","320x204"],q=A===en.MOBILE?"320x204":"722x469",$="(min-width: 64rem) 45.125rem, (min-width: 48rem) 25.9375rem, 100vw";let K=_e(co,{children:[O(Of,{src:l,defaultFormat:q,formats:L,sizes:$,alt:o,className:"c-large-card__img"}),_e("div",{className:"c-large-card__content",children:[_e("div",{children:[O(ja,{colorScheme:x,children:c}),O("h3",{className:"c-large-card__title",children:o}),O("p",{className:"c-large-card__summary",children:u})]}),O(If,{colorScheme:x,variant:"simple",...S})]})]});return A===en.MOBILE&&(K=_e(co,{children:[O(ja,{colorScheme:x,children:c}),O("h3",{className:"c-large-card__title",children:o}),O(Of,{src:l,defaultFormat:q,formats:L,sizes:$,alt:o,className:"c-large-card__img"}),O(c2,{...m}),O("p",{className:"c-large-card__summary",children:u}),O(If,{colorScheme:x,variant:"simple",...S})]})),O("a",{href:i,className:"c-large-card",children:K})},F8=({link:i,title:o,cover:l,headline:c,publishedAt:u,socialBarProps:m,layout:S=en.DESKTOP})=>{const A=["346x222","160x104"],x=S===en.MOBILE?"160x104":"346x222";return _e("a",{href:i,className:"c-live-card",children:[_e("div",{children:[O(Of,{src:l,defaultFormat:x,formats:A,sizes:"(min-width: 48rem) 21.625rem, 10rem",alt:o,className:"c-live-card__img"}),_e("div",{children:[O(ja,{colorScheme:"direct",children:u}),O(ja,{withLeftDivider:!0,colorScheme:"default",children:c})]}),O("h3",{children:o})]}),O("div",{children:S!==en.MOBILE&&O(If,{...m,variant:"simple"})})]})},B8=({link:i,title:o,cover:l,headline:c,layout:u=en.DESKTOP,colorScheme:m="default",articleDate:S,socialBarProps:A})=>{const x=["346x222","160x104"],L=u===en.MOBILE?"160x104":"346x222";return _e("a",{href:i,className:"c-medium-card",children:[O("div",{children:O(Of,{src:l,defaultFormat:L,formats:x,sizes:"(min-width: 48rem) 21.625rem, 10rem",alt:o,className:"c-medium-card__img"})}),O(ja,{colorScheme:m,children:c}),S&&_e("time",{className:"c-medium-card__article-date",children:[" \u2022 ",S]}),u===en.DESKTOP?O("h3",{children:o}):O("h5",{children:o}),A&&O(If,{...A,variant:"simple"})]})};function tP({link:i,cover:o,headline:l,title:c}){return _e("a",{href:i,children:[O("div",{children:O("img",{src:o,alt:c,width:252,height:162})}),O(ja,{children:l}),O("h2",{children:c})]})}const L8=({headline:i,title:o,link:l,cover:c,summary:u,index:m,viewCount:S,colorScheme:A="default",layout:x=en.DESKTOP,isSimplified:L=!1,withBorder:q=!1})=>_e("a",{href:l,className:`c-card-most-read ${L&&"c-card-most-read--simplified"} ${q&&"c-card-most-read--bordered"}`,children:[O("div",{className:"c-card-most-read__index",children:m}),_e("div",{className:"c-card-most-read__content",children:[O(ja,{colorScheme:A,children:i}),O("p",{className:"c-card-most-read__title",children:o}),!L&&x===en.DESKTOP&&O("p",{className:"c-card-most-read__summary",children:u}),!L&&x===en.MOBILE&&O("img",{src:c,alt:o,width:307,height:192,className:"c-card-most-read__img"}),!L&&_e("div",{className:"c-card-most-read__counter",children:[O(cr,{size:16,name:"view"})," ",S]})]}),!L&&O("div",{children:x===en.DESKTOP&&O("img",{src:c,alt:o,width:150,height:95,className:"c-card-most-read__img"})})]});function N8({link:i,cover:o,headline:l,title:c,layout:u=en.DESKTOP}){return _e("a",{href:i,children:[O("div",{children:u===en.DESKTOP?O("img",{src:o,alt:c,width:252,height:162}):O("img",{src:o,alt:c,width:160,height:104})}),O(ja,{children:l}),O("h4",{children:c})]})}function z8({link:i,cover:o,headline:l,title:c,colorScheme:u}){return _e("a",{href:i,className:"c-overview-card",children:[O("div",{className:"c-overview-card__img-container",children:O(Of,{src:o,alt:c,defaultFormat:"62x62",formats:["124x124","62x62"],sizes:"3.875rem",className:"c-overview-card__img-container__img"})}),_e("div",{children:[O(ja,{variant:"solid",colorScheme:u,children:l}),O("div",{className:"c-overview-card__title",children:c})]})]})}function nP({title:i,link:o,cover:l,headline:c,socialBarProps:u,podcastTime:m,layout:S=en.DESKTOP}){return _e("a",{href:o,children:[_e("div",{style:{position:"relative"},children:[S===en.DESKTOP?O("img",{src:l,alt:i,width:346,height:222}):O("img",{src:l,alt:i,width:307,height:192}),_e("div",{style:{position:"absolute",bottom:10,left:10},children:[O(cr,{fill:"white",name:"podcast"})," ",m]})]}),O(ja,{children:c}),O("h3",{children:i}),S===en.DESKTOP&&O(If,{...u})]})}const rP=({title:i,link:o,location:l,headline:c,socialBarProps:u,layout:m=en.DESKTOP})=>_e("a",{href:o,children:[O(ja,{children:c}),_e("div",{children:[O(cr,{name:"local",size:18}),O(ja,{children:l})]}),O("h3",{children:i}),O(If,{...u}),m===en.MOBILE&&O("hr",{})]}),aP=({title:i,link:o,cover:l,headline:c,summary:u,signatureProps:m,socialBarProps:S,layout:A=en.DESKTOP})=>O("a",{href:o,children:_e("div",{style:{display:"flex",flexDirection:A===en.MOBILE?"column":"row"},children:[A===en.MOBILE&&_e("div",{children:[O(ja,{children:c}),O("h2",{children:i})]}),O("div",{children:A===en.DESKTOP?O("img",{src:l,alt:i,height:460,width:722}):O("img",{src:l,alt:i,height:265,width:414})}),_e("div",{children:[A===en.MOBILE&&O(c2,{...m}),A===en.DESKTOP&&_e(co,{children:[O(ja,{children:c}),O("h2",{children:i})]}),O("p",{children:u}),O(If,{...S})]})]})}),f2=({link:i,title:o,cover:l,headline:c,colorScheme:u="default",articleDate:m,socialBarProps:S})=>_e("a",{href:i,className:"c-small-card",children:[_e("div",{className:"c-small-card__header",children:[O(ja,{colorScheme:u,children:c}),m&&_e("time",{className:"c-small-card__article-date",children:[" \u2022 ",m]})]}),_e("div",{className:"c-small-card__main",children:[O("h4",{className:"c-small-card__title",children:o}),O(Of,{src:l,defaultFormat:"130x82",formats:["130x82"],sizes:"8.125rem",alt:o,className:"c-small-card__img"})]}),S&&O(If,{...S,variant:"simple"})]}),iP=({link:i,title:o,cover:l,headline:c,layout:u=en.DESKTOP})=>_e("a",{href:i,children:[O("div",{children:u===en.DESKTOP?O("img",{src:l,alt:o,width:"252",height:"162"}):O("img",{src:l,alt:o,width:"104",height:"160"})}),O(ja,{children:c}),O("h5",{children:o})]}),oP=({cover:i,link:o,headline:l,title:c,layout:u=en.DESKTOP})=>_e("a",{href:o,style:{display:"flex",borderRight:u===en.DESKTOP?"1px solid":""},children:[O("div",{children:u===en.DESKTOP?O("img",{style:{borderRadius:62},src:i,alt:c,width:100,height:100}):O("img",{style:{borderRadius:62},src:i,alt:c,width:62,height:62})}),_e("div",{children:[O(ja,{variant:"solid",withRightDivider:!0,children:l}),O("h5",{children:c})]})]}),lP=({articles:i,label:o,layout:l=en.DESKTOP})=>_e("div",{children:[O("h3",{children:o}),O("div",{className:"c-category-cards",children:O("div",{className:"c-category-cards__list",children:i.map(c=>O(M8,{layout:l,...c},c.title))})})]}),uP=(i,o)=>{o.stopImmediatePropagation(),o.preventDefault();const l=o.currentTarget,c=document.querySelectorAll(".js-collapse__button"),u=document.querySelectorAll('[role="tabpanel"]'),m=l.getAttribute("aria-controls"),S=Object.values(u).find(A=>A.id===m);if(l.getAttribute("aria-expanded")==="true"){l.setAttribute("aria-expanded","false"),S==null||S.setAttribute("aria-hidden","true");return}c.forEach(A=>{A.setAttribute("aria-expanded","false")}),u.forEach(A=>{A.setAttribute("aria-hidden","true")}),l.setAttribute("aria-expanded","true"),S&&S.removeAttribute("aria-hidden")},sP=(i=document.querySelector(".js-collapse__button"))=>{i&&document.querySelectorAll(".c-collapse__button").forEach(l=>{l.addEventListener("click",uP.bind(!1,i))})},d2=({headingClass:i,listClass:o,iconClass:l,isOpen:c,btnClass:u,title:m,index:S,children:A})=>{const x=lm.useRef(null);return dp(()=>{x.current&&sP(x.current)},[]),_e("div",{className:"c-collapse js-collapse",children:[_e("button",{ref:x,type:"button",id:`c-collapse__button-${S}`,className:jn("c-collapse__button js-collapse__button",u),"aria-controls":`c-collapse__content-${S}`,"aria-expanded":c||"false",children:[O("span",{className:jn("c-collapse__title",i),children:m}),O(cr,{name:"chevron",size:16,className:jn("c-collapse__icon",l)})]}),O("div",{id:`c-collapse__content-${S}`,"aria-hidden":c?!c:"true","aria-labelledby":`c-collapse__button-${S}`,className:jn("c-collapse__list",o),role:"tabpanel",children:A})]})},cP=({statusCode:i="404"})=>{let o=_e(co,{children:[O("h2",{children:"La page que vous cherchez n\u2019existe pas !"}),_e("p",{children:[O("strong",{children:"Une page 404"})," est une page renvoy\xE9e par le serveur d\u2019un site, lorsque la page n\u2019existe plus ou lorsqu\u2019il y a une erreur dans l\u2019url."]}),O("p",{children:"Ce type d\u2019erreur se produit lorsque des pages ont \xE9t\xE9 supprim\xE9es ou d\xE9plac\xE9es."})]});return i==="500"&&(o=_e(co,{children:[O("h2",{children:"Erreur serveur, la page n\u2019est pas disponible !"}),O("p",{children:"Toutes nos excuses pour cette erreur\u2026"}),O("p",{children:"Une page qui renvoie un code d\u2019erreur 500 se produit lorsque le serveur web rencontre des difficult\xE9s pour charger une page."})]})),_e("div",{className:"c-error-content",children:[O(cr,{name:i==="404"?"not-found":"server-error",size:[130,72],className:"c-error-content__img"}),o,O(Li,{href:"/",className:"c-error-content__link u-mt1",children:"Retour page d\u2019accueil"})]})},p2=({categories:i,layout:o})=>O("div",{className:"c-footer-categories",children:o===en.MOBILE?O("div",{className:"c-footer-categories__accordion",children:i.map((l,c)=>O(d2,{title:l.name,iconClass:"u-color-white",headingClass:"u-bg-primary",listClass:"u-bg-primary",btnClass:"u-bg-primary",index:c,children:l.links.map(u=>_e(Li,{href:u.url,className:"u-color-white",children:[u.name,O(cr,{name:"chevron",size:[10,14],className:"u-color-white"})]},u.name))},l.name))}):O(co,{children:i.map((l,c)=>_e("div",{className:"c-footer-categories__list",children:[O(ah,{as:"h4",className:"c-footer-categories__list__title",children:l.name}),l.links.map((u,m)=>O(Li,{href:u.url,children:u.name},m))]},c))})}),h2=({footerBar:i,listClass:o})=>O("div",{className:"c-footer-links",children:i.map((l,c)=>O("div",{className:jn("o-inline",o),children:l.links.map((u,m)=>O(Li,{href:u.url||"#",onClick:u.javascript?()=>u.javascript:void 0,children:u.name},m))},c))}),I8=({title:i,subtitle:o,icon:l,variant:c="darkBlue",classname:u})=>_e("header",{className:jn("c-header-banner",c!=="transparent"&&`u-skin-${c}`,u),children:[l&&O(cr,{size:25,name:l,withBorder:!0,isRounded:!0}),_e("div",{children:[o&&O("p",{className:"c-header-banner__subtitle",children:o}),O("h2",{className:"c-header-banner__title",children:i})]})]}),fP=i=>{var l;const o=i.querySelector(".js-expandButton__label");i.setAttribute("aria-expanded","true"),o.innerHTML="Voir moins",(l=i.previousElementSibling)==null||l.setAttribute("aria-hidden","false")},dP=i=>{var l;const o=i.querySelector(".js-expandButton__label");i.setAttribute("aria-expanded","false"),o.innerHTML="Voir plus",(l=i.previousElementSibling)==null||l.setAttribute("aria-hidden","true")},pP=i=>{const o=i.currentTarget;return i.preventDefault(),o.getAttribute("aria-expanded")==="true"?dP(o):fP(o)},hP=(i=document.querySelector(".js-expandButton"))=>{i&&document.querySelectorAll(".js-expandButton").forEach(l=>l.addEventListener("click",pP))},vP=({title:i,subtitle:o="",colorScheme:l,isExpandable:c=!1})=>{const u=Hc.useRef(null);dp(()=>{u.current&&hP(u.current)},[]);const m=typeof o=="string";return _e("header",{className:"c-nodeheader",children:[O(ih,{colorScheme:l,hasShiftedIcon:!0}),O("h1",{className:"c-nodeheader__title o-mobile-gutters",children:i}),o&&_e(co,{children:[m?O("div",{className:jn("c-nodeheader__subtitle","o-mobile-gutters",c&&"is-expandable"),"aria-hidden":c,children:o}):O("div",{className:"c-nodeheader__subtitle o-mobile-gutters is-expandable","aria-hidden":!0,dangerouslySetInnerHTML:{__html:s2(o)}}),(!m||c)&&_e($c,{variant:"simple",className:"c-nodeheader__btn o-mobile-gutters js-expandButton","aria-expanded":"false",ref:u,children:[O(cr,{isRounded:!0,name:"chevron",size:12,className:"u-bg-background-1 u-pa1"}),O("span",{className:"js-expandButton__label",children:"Voir plus"})]})]})]})},P8=({modalIconSize:i=46,...o})=>_e("div",{className:"c-header-side-modal",children:[O(cr,{name:"logo",className:"u-color-primary",size:i}),O($c,{variant:"simple",icon:"close",iconClassNames:"u-color-black",...o})]}),U8=({title:i,description:o,className:l})=>_e("div",{className:jn("c-info-banner",l),children:[O("h3",{className:"c-info-banner__title",children:i}),O("p",{className:"c-info-banner__description",children:o})]}),v2=({icon:i,title:o,content:l,withBorder:c=!1,classnames:u})=>_e("div",{className:jn("c-horoscope-topic-card",{"c-horoscope-topic-card--bordered":c},u),children:[_e("div",{className:"c-horoscope-topic-card__header",children:[O(cr,{className:"c-horoscope-topic-card__icon",name:i,size:21}),O(ah,{variant:"secondary",as:"h2",children:o})]}),O("p",{className:"c-horoscope-topic-card__content",children:l})]}),mP=({topics:i,infoBannerProps:o})=>_e(co,{children:[O("ul",{className:"o-mobile-gutters",children:i.map((l,c)=>O("li",{children:O(v2,{icon:l.icon,title:l.title,content:l.content,withBorder:c!==i.length-1,classnames:c!==i.length-1?"u-mb2":""})},l.title))}),O(U8,{title:o.title,description:o.description,className:"o-mobile-gutters"})]}),gP=({signsContent:i,layout:o=en.MOBILE})=>O(co,{children:i.map((l,c)=>_e(lm.Fragment,{children:[O(I8,{title:l.heading.title,subtitle:l.heading.subtitle,icon:l.heading.icon,variant:"transparent",classname:"o-mobile-gutters u-pa0 u-mb2"},l.heading.title),l.topics.map((u,m)=>O(v2,{icon:u.icon,title:u.title,content:u.content,withBorder:m!==l.topics.length-1,classnames:"o-mobile-gutters u-mb2"},u.title)),O(Li,{variant:"secondary-button",href:l.link.href,className:"u-mb2",children:l.link.children}),o===en.MOBILE&&!((c+1)%3)&&O(x4,{adUnitCompletePath:(c+1)%6?"/49926454/20minutes_mobile2/divers/nfb_1":"/49926454/20minutes_mobile2/divers/nfb_2",lazyload:{delayed:!0,distanceVisible:700},variant:"ARTICLE"}),c!==i.length-1&&O(Ed,{className:"o-mobile-gutters u-bg-primary u-mb2"})]},c))}),yP=({horoscopeSignsList:i})=>O("ul",{className:"o-inline o-mobile-gutters",children:i.map(o=>O("li",{className:"o-inline__by-4",children:_e("a",{href:o.url,className:"c-square-tile o-column u-skin-darkBlue",children:[O(cr,{name:`horoscope-${o.slug}`,size:18}),O(ja,{colorScheme:"white",isUppercase:!1,children:o.label})]})},o.slug))}),SP=({articles:i,layout:o=en.DESKTOP})=>_e("div",{className:"c-live-cards",children:[O(ih,{colorScheme:"direct",hasShiftedIcon:!0,className:"c-live-cards__divider"}),O("h2",{children:"Le direct"}),O("div",{className:"c-live-cards__articles",children:O("div",{className:"c-live-cards__list",children:i.map(l=>O(F8,{layout:o,...l},l.title))})})]}),Hv=({icon:i,children:o,iconClassNames:l,iconSize:c,href:u,className:m})=>_e(Li,{href:u,className:jn("o-column o-column--centered u-color-white u-pt1 u-pb1 u-skin-darkBlue",m),children:[O(cr,{name:i,className:l,size:c}),O(ja,{colorScheme:"white",isUppercase:!1,children:o})]}),EP=({categories:i,tagsActu:o,layout:l})=>_e(L4,{variant:"left",children:[O(P8,{}),_e("div",{className:"c-menu",children:[l===en.MOBILE&&O(sm,{icon:"search",placeholder:"Rechercher"}),_e("div",{className:"c-menu__actu",children:[O(ah,{as:"h4",className:"c-menu__actu__title",children:"Dans l\u2019actu"}),O("div",{className:"c-menu__actu__tags",children:o.map((c,u)=>O(pp,{link:c.link,variant:"secondary",className:"u-color-primary",children:c.children},u))})]}),O("div",{className:"c-menu__list",children:i.map((c,u)=>c.links.length>0?_e(d2,{title:c.name,index:u,btnClass:`u-color-${c.theme}`,iconClass:"u-color-primary",children:[c.tags&&O("div",{className:"c-collapse__list__tags",children:c.tags.map((m,S)=>O(pp,{link:m.link,className:"u-color-primary",children:m.children},S))}),c.links.map(m=>_e(Li,{href:m.href,className:"u-color-black",children:[m.children,O(cr,{name:"chevron",size:[10,14],className:"u-color-primary"})]},m.href))]},c.name):O(Li,{href:c.categoryLink,className:jn("c-collapse__link",{[`u-color-${c.theme}`]:c.theme}),children:c.name},c.name))}),_e("div",{className:"c-menu__tiles",children:[O(Hv,{icon:"newsletters",href:"/newsletters",className:"c-menu__tiles__items",children:"Newsletters"}),O(Hv,{icon:"journal",href:"/pdf",className:"c-menu__tiles__items",children:"Journal"}),O(Hv,{icon:"jeux",href:"/services/jeux",className:"c-menu__tiles__items",children:"Jeux"}),O(Hv,{icon:"horoscope",href:"/horoscope",className:"c-menu__tiles__items",children:"Horoscope"})]}),_e("div",{className:"c-menu__switch",children:[_e("div",{className:"c-menu__switch__title",children:[O(cr,{size:18,name:"notification"}),O("p",{className:"c-menu__switch__title__label",children:"Push Web"})]}),O(fm,{})]}),_e("div",{className:"c-menu__switch",children:[_e("div",{className:"c-menu__switch__title",children:[O(cr,{size:18,name:"darkmode"}),O("p",{className:"c-menu__switch__title__label",children:"Mode sombre"})]}),O(I4,{})]})]})]}),wP=(i,o)=>{o.preventDefault();const l=o.target,c=i.querySelectorAll('[role="tab"]'),u=i.querySelectorAll('[role="tabpanel"]'),m=l.getAttribute("aria-controls"),S=Object.values(u).find(A=>A.id===m);c.forEach(A=>{A.setAttribute("aria-selected","false")}),u.forEach(A=>{A.setAttribute("aria-hidden","true")}),l.setAttribute("aria-selected","true"),S&&S.removeAttribute("aria-hidden")},H8=i=>i.code==="ArrowLeft"||i.keyCode===39,$8=i=>i.code==="ArrowRight"||i.keyCode===37,CP=(i=document.querySelector(".js-tabs"))=>{if(i){const o=i.querySelectorAll('[role="tab"]');o.forEach(c=>{c.addEventListener("click",wP.bind(!1,i))});const l=i.querySelector('[role="tablist"]');if(l&&o.length>0){let c=0;l.addEventListener("keydown",u=>{u instanceof KeyboardEvent&&(H8(u)||$8(u))&&(o[c].setAttribute("tabindex","-1"),H8(u)?(c+=1,c>=o.length&&(c=0)):$8(u)&&(c-=1,c<0&&(c=o.length-1)),o[c].setAttribute("tabindex","0"),o[c].focus())})}}},j8=({tabItems:i,tabItemActive:o,tabVariant:l="default"})=>{const c=Hc.useRef(null);return dp(()=>{c.current&&CP(c.current)},[]),_e("div",{className:"js-tabs",ref:c,children:[O("div",{role:"tablist",className:jn("o-tabs",{[`o-tabs--${l}`]:l}),children:i.map(u=>O(P4,{name:u.name,isSelected:(o||i[0].name)===u.name,tabIndex:(o||i[0].name)===u.name?0:-1,variant:l,children:u.title},u.name))}),i.map(u=>O(U4,{name:u.name,isHidden:(o||i[0].name)!==u.name,children:u.content},u.name))]})},_P=({tabItems:i,tabItemActive:o})=>{const l=i.map(c=>({name:c.name,title:c.title,content:O("ul",{children:c.body.map((u,m)=>O("li",{children:O(L8,{isSimplified:!0,index:(m+1).toString(),headline:u.rubricName,title:u.title,link:u.url,withBorder:m!==c.body.length-1})},u.rubricSlug))})}));return O(j8,{tabItemActive:o||i[0].name,tabItems:l})},bP=({articles:i,label:o})=>_e("div",{children:[O("h3",{children:o}),O("hr",{}),O("div",{style:{display:"flex",gap:10},children:i.map(l=>O(N8,{...l},l.title))})]}),xP=({title:i,description:o,placeholder:l,checkboxLabel:c,buttonLabel:u,colorScheme:m,layout:S=en.DESKTOP})=>_e("div",{className:"c-newsletter",children:[m?O(ih,{colorScheme:m,iconSize:S===en.DESKTOP?"big":"default",hasShiftedIcon:S===en.MOBILE,hasMaxWidth:!0}):O("div",{className:"c-newsletter__icon-container",children:O(cr,{className:"c-newsletter__icon",size:S===en.DESKTOP?[47,53]:[33,37],name:"diode-leaning"})}),O("div",{className:"c-newsletter__form",children:_e("form",{children:[O("h5",{className:"c-newsletter__title",children:i}),O("p",{className:"c-newsletter__description",children:o}),O(sm,{className:"c-input--newsletter",type:"email",placeholder:l}),O($c,{variant:"secondary",type:"submit",className:"c-newsletter__button",children:u}),_e("div",{className:"c-newsletter__checkbox",children:[O(sm,{className:"c-input--checkbox",type:"checkbox",placeholder:l,required:!0,id:"term"}),O("label",{htmlFor:"term",dangerouslySetInnerHTML:{__html:c}})]})]})})]});function TP({articles:i,layout:o=en.MOBILE}){return _e("section",{className:"c-overview-bar u-mb3",children:[_e(R4,{children:["Le r\xE9cap\u2019",o===en.DESKTOP&&O("br",{}),"de la journ\xE9e"]}),O("ul",{className:"c-overview-bar__list",children:i.map((l,c)=>O("li",{className:jn("c-overview-bar__item",o===en.DESKTOP&&c!==i.length-1&&"c-overview-bar__item--withBorder"),children:O(z8,{...l})},l.title))})]})}const kP=({label:i,articles:o})=>_e("div",{className:"c-partner-cards__partner",children:[O("h4",{className:"c-partner-cards__partner-title",children:i}),o.map((l,c)=>{let u;return c===0?u=_e(co,{children:[O(B8,{...l}),O(Ed,{className:"c-partner-cards__partner-divider"})]}):c!==o.length-1?u=_e(co,{children:[O(f2,{...l}),O(Ed,{className:"c-partner-cards__partner-divider"})]}):u=O(f2,{...l}),u})]}),RP=({columns:i})=>_e("div",{className:"c-partner-cards",children:[O(ih,{colorScheme:"primary",hasShiftedIcon:!0,className:"c-partner-cards__divider"}),O("h2",{className:"c-partner-cards__title",children:"Partenaires"}),O("div",{className:"c-partner-cards__partners",children:O("div",{className:"c-partner-cards__list",children:i.map(o=>O(kP,{...o},o.label))})})]}),DP=()=>_e("div",{className:"c-smart-banner u-skin-darkBlue",children:[O($c,{icon:"close",iconSize:10,iconClassNames:"u-color-white",className:"c-smart-banner__close"}),O(cr,{name:"logo",size:35,className:"u-bg-white u-color-primary c-smart-banner__logo"}),_e("div",{children:[_e("h4",{className:"c-smart-banner__title",children:["20 Minutes",O("span",{className:"c-smart-banner__rate",children:[0,1,2,3].map(i=>O(cr,{name:"star",size:11},i))})]}),O("p",{className:"c-smart-banner__teaser",children:"Retrouvez l\u2019actualit\xE9 sur notre application"})]}),O($c,{className:"u-color-primary u-bg-white c-smart-banner__btn",children:"Installer"})]}),m2=({socialIcons:i})=>O("div",{className:"c-footer-social",children:i.map((o,l)=>O("div",{className:"o-inline",children:o.icons.map((c,u)=>O("a",{href:c.url,children:O(cr,{className:"u-color-primary u-bg-white u-pa1",size:20,name:c.name})},u))},l))}),AP=({tags:i,className:o})=>_e("div",{className:o,children:[i.map((l,c)=>O(pp,{...l},l.id||c)),O("hr",{})]}),OP=({socialIcons:i,footerBar:o,categories:l,logoLink:c})=>O("div",{className:"c-footer",children:_e("div",{className:"c-footer__wrap",children:[_e("section",{className:"c-footer__wrap__top",children:[_e("div",{className:"c-footer__wrap__top__left",children:[O(Li,{href:c,children:O(cr,{name:"logo",size:50,className:"u-color-white",withBorder:!0})}),O(m2,{socialIcons:i}),O(Ed,{className:"u-bg-white"}),O(ah,{as:"h4",className:"c-footer__wrap__top__left__title",children:"Nos applications"}),O(Af,{as:"p",className:"c-footer__wrap__top__left__mention",children:"D\xE9couvrez l\u2018ensemble de nos applications 20 Minutes !"}),_e("div",{className:"c-footer__wrap__top__left__app",children:[_e(Li,{href:"https://apps.apple.com/fr/app/20-minutes-news-en-continu/id308834491",variant:"primary-button",className:"c-link--app",isTargetBlank:!0,children:[O(cr,{name:"apple",size:[16,20],className:"u-color-primary"}),_e("span",{className:"u-color-black",children:["T\xE9l\xE9charger sur ",O("strong",{className:"c-link--app__mention",children:"App Store"})]})]}),_e(Li,{href:"https://play.google.com/store/apps/details?id=com.backelite.vingtminutes&hl=fr",variant:"primary-button",className:"c-link--app",isTargetBlank:!0,children:[O(cr,{name:"googleplay",size:[17,20],className:"u-color-primary"}),_e("span",{className:"u-color-black",children:["T\xE9l\xE9charger sur ",O("strong",{className:"c-link--app__mention",children:"Google Play"})]})]})]})]}),O("div",{className:"c-footer__wrap__top__right",children:O(p2,{categories:l})})]}),O(Ed,{className:"u-bg-white"}),_e("section",{className:"c-footer__wrap__bottom",children:[O(h2,{footerBar:o}),O(Af,{as:"strong",children:"\xA9 Copyright 20 Minutes"}),O(Af,{as:"p",className:"c-footer__wrap__bottom__mention",children:"La fr\xE9quentation de 20 Minutes est certifi\xE9e par l\u2018ACPM"})]})]})}),MP=({socialIcons:i,footerBar:o,categories:l,logoLink:c})=>_e("div",{className:"c-footer-mobile u-bg-primary",children:[O(p2,{categories:l,layout:en.MOBILE}),_e("div",{className:"c-footer-mobile__app",children:[O(ah,{as:"h4",className:"c-footer-mobile__app__title",children:"Nos applications"}),O(Af,{as:"p",className:"c-footer-mobile__app__mention",children:"D\xE9couvrez l\u2018ensemble de nos applications 20 Minutes !"}),_e("div",{className:"c-footer-mobile__app__btn",children:[O(Li,{href:c,children:O(cr,{name:"logo",size:26,className:"u-color-white",withBorder:!0})}),_e(Li,{href:"https://apps.apple.com/fr/app/20-minutes-news-en-continu/id308834491",variant:"primary-button",className:"c-link--app",isTargetBlank:!0,children:[O(cr,{name:"apple",size:[16,20],className:"u-color-primary"}),_e("span",{className:"u-color-black",children:["T\xE9l\xE9charger sur ",O("strong",{className:"c-link--app__mention",children:"App Store"})]})]}),_e(Li,{href:"https://play.google.com/store/apps/details?id=com.backelite.vingtminutes&hl=fr",variant:"primary-button",className:"c-link--app",isTargetBlank:!0,children:[O(cr,{name:"googleplay",size:[17,20],className:"u-color-primary"}),_e("span",{className:"u-color-black",children:["T\xE9l\xE9charger sur ",O("strong",{className:"c-link--app__mention",children:"Google Play"})]})]})]})]}),O(Ed,{className:"u-bg-white"}),O("div",{className:"c-footer-mobile__social",children:O(m2,{socialIcons:i})}),O(Ed,{className:"u-bg-white"}),_e("section",{className:"c-footer-mobile__bottom",children:[O(h2,{footerBar:o,listClass:"c-footer-mobile__bottom__list"}),O(Af,{as:"strong",className:"u-mt1",children:"\xA9 Copyright 20 Minutes"}),O(Af,{as:"p",className:"c-footer__wrap__bottom__mention",children:"La fr\xE9quentation de 20 Minutes est certifi\xE9e par l\u2018ACPM"})]})]}),FP=({layout:i=en.MOBILE,...o})=>{const l="https://www.20minutes.fr/";return i===en.DESKTOP?O(OP,{...o,logoLink:l}):O(MP,{...o,logoLink:l})},BP=({headerLinks:i,dividerColor:o="primary",logoLink:l})=>_e("div",{className:"c-header",children:[O("div",{className:"c-header__logo",children:O(Li,{href:l,children:O(cr,{name:"logo",size:100,className:"u-color-primary"})})}),_e("div",{className:"c-header__container",children:[_e("div",{className:"c-header__container__top",children:[O("div",{className:"c-header__container__top__left",children:" "}),O("div",{id:"mbrs-connectButtons",className:"c-header__container__top__right"})]}),O("div",{className:"c-header__container__bottom",children:i.map((c,u)=>O(Li,{href:c.url,className:`u-color-${c.theme?c.theme:"default"}`,children:c.name},`key-${u}`))})]}),O(ih,{className:"c-divider-section--menu",hasIcon:!1,colorScheme:o})]}),LP=({logoLink:i})=>_e("div",{className:"c-header-mobile",children:[O("div",{className:"c-header-mobile__side",children:O(Li,{href:i,children:O(cr,{name:"logo",size:46,className:"u-color-primary"})})}),O("div",{id:"mbrs-connectButtons",className:"c-header-mobile__side"})]}),NP=({layout:i=en.MOBILE,...o})=>{const l="https://www.20minutes.fr/";return i===en.DESKTOP?O(BP,{...o,logoLink:l}):O(LP,{logoLink:l})};yt.Ad=x4,yt.Alert=O9,yt.ArticleContent=UI,yt.ArticleHeader=HI,yt.ArticleImageCover=A8,yt.ArticleSummary=$I,yt.ArticleVideoCover=jI,yt.Avatar=k4,yt.Box=B4,yt.Breadcrumb=qI,yt.Button=$c,yt.CategoryCard=M8,yt.CategoryCards=lP,yt.Checkbox=M9,yt.Collapse=d2,yt.Divider=Ed,yt.DividerSection=ih,yt.ErrorContent=cP,yt.Footer=FP,yt.FooterCategories=p2,yt.FooterLinks=h2,yt.GameCard=QI,yt.Grid=z9,yt.Header=NP,yt.HeaderBanner=I8,yt.HeaderPage=vP,yt.HeaderSideModal=P8,yt.Heading=ah,yt.HomeLiveCard=JI,yt.HoroscopeContent=mP,yt.HoroscopeHomepageContent=gP,yt.HoroscopeTiles=yP,yt.HoroscopeTopicCard=v2,yt.Icon=cr,yt.Img=Of,yt.InfoBanner=U8,yt.Input=sm,yt.Label=ja,yt.LabelSection=R4,yt.LargeCard=eP,yt.LayoutType=en,yt.Link=Li,yt.LiveCard=F8,yt.LiveCards=SP,yt.MediumCard=B8,yt.Menu=EP,yt.MenuCard=tP,yt.Meta=I9,yt.Modal=L4,yt.MostReadArticles=_P,yt.MostReadCard=L8,yt.NewsCard=N8,yt.NewsCards=bP,yt.Newsletter=xP,yt.OverviewBar=TP,yt.OverviewCard=z8,yt.PartnerCards=RP,yt.Pipe=cm,yt.PodcastCard=nP,yt.ReadAlso=N4,yt.RegionalCard=rP,yt.RubricCard=aP,yt.ScrollProgressBar=H9,yt.Section=$9,yt.Select=j9,yt.Signature=c2,yt.SmallCard=f2,yt.SmallGameCard=iP,yt.SmallLiveCard=oP,yt.SmartBanner=DP,yt.SocialBar=If,yt.SocialIcons=m2,yt.SvgSprite=A9,yt.Switch=fm,yt.SwitchDarkMode=I4,yt.Tab=P4,yt.TabPanel=U4,yt.Tabs=j8,yt.Tag=pp,yt.TagBar=AP,yt.Text=Af,yt.Tiles=Hv,yt.useLayoutEffect=dp,Object.defineProperties(yt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@20minutes/hela",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "repository": "git@github.com:20minutes/hela.git",
5
5
  "license": "MIT",
6
6
  "author": "20 Minutes",
@@ -71,7 +71,7 @@
71
71
  "eslint-plugin-import": "^2.25.3",
72
72
  "eslint-plugin-jsx-a11y": "^6.6.1",
73
73
  "eslint-plugin-prettier": "^4.2.1",
74
- "eslint-plugin-react": "^7.31.10",
74
+ "eslint-plugin-react": "^7.31.11",
75
75
  "eslint-plugin-simple-import-sort": "^8.0.0",
76
76
  "glob": "^8.0.3",
77
77
  "husky": "^8.0.2",