1(self.webpackChunkmondoin_mobile_ui=self.webpackChunkmondoin_mobile_ui||[]).push([[778],{90778:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r,o,i=n(84342),a=n(75593),c=n(67294),s=n.n(c),u=n(45697),l=n.n(u),f=n(97845),p=n(5748),d=n(82018),y=n(54543),h=n(69241),b=n(92089),m=n(56261),v=n(94184),g=n.n(v),O=n(37424),P=n(45812),j=n(36817),w=n(80411),x=n(45441);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D.apply(this,arguments)}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=I(e);if(t){var o=I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(e,t){if(t&&("object"===E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}var T=(0,m.D2)((function(e){return{element:{position:"relative"}}}))(r=(0,O.connect)((function(e,t){var n=f.q3(e),r={};return t.children&&t.children.length&&t.children.forEach((function(e){return r[e]=(0,w.Z)((0,x.Z)({state:t.relax.fragments&&{fragments:t.relax.fragments}||n,id:e,context:t.relax.childrenContext||t.relax.context}),t.relax.display)})),{loading:e.getIn(["ui","showLoader"]),rights:e.getIn(["account","rights"]),profile:(0,P.xi)(e.getIn(["account","profile"]),null),childrenProps:r,adminPreferences:(0,f.jQ)(e).adminPreferences,userGroups:e.getIn(["account","rights","groupMembership"]),locale:e.getIn(["language","locale"])}}),(function(e){return{onLoad:function(){e((0,j.loadAccountAspects)([d.T8]))}}}))((o=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(a,e);var t,n,r,o=S(a);function a(){var e;_(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).state={locale:"fr",sort:"dateASC",toDo:!0,calendar:!0,clock:!0,new:!0,notifications:!0,myProfile:!0,nextExam:!0,conceptionGuide:!0},e}return t=a,(n=[{key:"componentWillMount",value:function(){var e=this.props.onLoad;this.props.profile||e(),this.loadPreferences()}},{key:"componentDidUpdate",value:function(e,t,n){var r=this.props,o=r.adminPreferences,i=r.userGroups,a=r.profile,c=r.menuData;(!e.adminPreferences&&o||!e.userGroups&&i||!e.profile&&a||!e.menuData&&c)&&this.loadPreferences()}},{key:"loadPreferences",value:function(){var e=this.props,t=e.adminPreferences,n=e.userGroups,r=e.children,o=e.childrenProps,i=e.profile,a=e.relax,c=[],s=[],u={};i&&i.properties&&i.properties.forEach&&i.properties.forEach((function(e){"prefJson"===e.name&&(u=JSON.parse(e.value.Answer))}));var l=(0,p.q8)(t,n),f=l&&l.sectionsManager||[],d=u&&u.sectionsManager||[];
1(r||[]).forEach((function(e){if(a.editing)c.push(e);else if(o[e]&&o[e].navigation){var t=f.find((function(t){return t.ID===o[e].navigation}));if(t&&t.isEnabled){var n=d.find((function(t){return t.ID===o[e].navigation}));(!n&&p.it.test(t.defaultValue)||n&&n.value)&&(t.isDraggable?c.push(e):s.push(e))}}})),c=c.sort((function(e,t){var n=(d||[]).map((function(e){return e.ID})).indexOf(o[e]&&o[e].navigation),r=(d||[]).map((function(e){return e.ID})).indexOf(o[t]&&o[t].navigation);return n<r?-1:n>r?1:0})),(c=s.concat(c))&&this.setState({sectionToDisplay:c})}},{key:"render",value:function(){var e=this.props,t=e.Element,n=e.styleClassMap,r=e.relax,o=e.renderChildren,a=e.classes,c=e.locale,u=this.state.sectionToDisplay;return(0,i.Z)(null==r?void 0:r.styleValues,c)?s().createElement("div",{className:n.wrapper},s().createElement(t,D({},r,{htmlTag:"div",className:g()(a.element,n.element),settings:h.Z}),o({children:u}))):null}}])&&R(t.prototype,n),r&&R(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(a.Z),o.propTypes={styleClassMap:l().object,children:l().node,relax:l().object.isRequired,Element:l().func.isRequired,renderChildren:l().func.isRequired,onLoad:l().func.isRequired,classes:l().object.isRequired,profile:l().object,childrenProps:l().object,adminPreferences:l().oneOfType([l().object,l().array]),userGroups:l().object,locale:l().string},o.propsSchema=y.Z,o.settings=h.Z,o.style=b.Z,r=o))||r)||r}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.