1(self.webpackChunkmondoin_mobile_ui=self.webpackChunkmondoin_mobile_ui||[]).push([[3566],{815351:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function c(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 r,n=u(e);if(t){var o=u(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return a(this,r)}}function a(e,t){if(t&&("object"===n(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 u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}r.d(t,{P:()=>l});var l=new(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&&i(e,t)}(u,e);var t,r,n,a=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,"bcitiSVC",e)}return t=u,(r=[{key:"getBCitiKBEntries",value:function(e,t,r){return this._getReq(e,{q:t,locale:r},"KBEntries")}},{key:"getBCitiSondages",value:function(e,t){return this._getReq(e,{locale:t},"sondages")}},{key:"getBCitiCivicVoice",value:function(e,t){return this._getReq(e,{locale:t},"civicVoice")}},{key:"getBCitiNotices",value:function(e,t,r,n){return this._getReq(e,{pageNo:r,pageSize:n,locale:t},"notices")}},{key:"getBCitiNotificationPreferences",value:function(e,t){return this._getReq(e,{locale:t},"notificationPreferences")}},{key:"setBCitiEventSubscription",value:function(e,t,r,n){return this._postReq(e,{notificationCategoryId:t,notificationEventId:r,enable:n?1:0},"eventSubscription")}}])&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(r(997971).Z))},933566:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>k});var n,o,i=r(784342),c=r(667294),a=r.n(c),u=r(45697),l=r.n(u),s=r(875593),f=r(556261),p=r(815351),y=r(857092),b=r(936405),g=r(395497);function d(e){return d="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},d(e)}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}
1function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function P(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 r,n=D(e);if(t){var o=D(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return I(this,r)}}function I(e,t){if(t&&("object"===d(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 D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}var k=(0,f.$j)((function(e){return{token:e.getIn(["account","token"]),locale:e.getIn(["language","locale"])}}))((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&&C(e,t)}(c,e);var t,r,n,o=P(c);function c(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var r=(t=o.call(this,e)).props.relax;return t.state={loading:!(r.editing||r.building),error:!1,notices:r.editing||r.building?t.getDemoNotices(e.pageSize):null},t}return t=c,r=[{key:"getDemoNotices",value:function(e){var t="1"===e,r=[{first:!0,last:t,id:"123456",title:"Notice 1",shortText:"Description courte notice 1",longText:"<p>Description longue notice 1</p>",priorityId:1,priority:"normal",creationDate:new Date(1551197742e3),creation:"26 février 2019 à 11h15",read:!1,categoryId:145,categoryName:"Nom de la catégorie de la notice",categoryDescription:"Description de la catégorie de la notice",categoryThumbnail:"https://uat-brossard.bciti.info/fichiers/mobile/7846/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpZCI6Ijg1ODUiLCJvcmdhbmlzYXRpb24iOjEsImNyZWF0aW9uIjoiMC41NTk2ODEwMCAxNTUzMDg5NTkzIiwicm9sZSI6InJvbGVfdXNlciJ9.-KbX-pBsLpDTor3i-RGMfwfIHiIq83ccY2zpkTmz-Vv48oYPGsqaR-aah_OoymrybSuQGUE0m19f8PLQ7m9_3A",urgent:!0}];return t||r.push({first:!1,last:!0,id:"789123",title:"Notice 2",shortText:"Description courte notice 2",longText:"<p>Description longue notice 2</p>",priorityId:1,priority:"normal",creationDate:new Date(1551197742e3),creation:"26 février 2019 à 11h15",read:!1,categoryId:145,categoryName:"Nom de la catégorie de la notice",categoryDescription:"Description de la catégorie de la notice",categoryThumbnail:"https://uat-brossard.bciti.info/fichiers/mobile/7846/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpZCI6Ijg1ODUiLCJvcmdhbmlzYXRpb24iOjEsImNyZWF0aW9uIjoiMC41NTk2ODEwMCAxNTUzMDg5NTkzIiwicm9sZSI6InJvbGVfdXNlciJ9.-KbX-pBsLpDTor3i-RGMfwfIHiIq83ccY2zpkTmz-Vv48oYPGsqaR-aah_OoymrybSuQGUE0m19f8PLQ7m9_3A",urgent:!1}),r}},{key:"componentWillMount",value:function(){var e=this,t=this.props,r=t.token,n=t.locale,o=t.pageNo,i=t.pageSize;this.state.loading&&p.P.getBCitiNotices(r,n,o||void 0,i||void 0).then((function(t){var r=[],n=t&&t.urgent||[],o=t&&t.other||[];r.push.apply(r,j(n.map(e.formatNotice(n,!0)))),r.push.apply(r,j(o.map(e.formatNotice(o)))),e.setState({loading:!1,notices:r})})).catch((function(t){console.dir(t),e.setState({loading:!1,error:!0})}))}},{key:"componentWillReceiveProps",value:function(e){e.pageSize!==this.props.pageSize&&(e.relax.editing||e.relax.building)&&this.setState({notices:this.getDemoNotices(e.pageSize)})}},{key:"formatNotice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(r,n){return v(v({},r),{},{creationDate:new Date(1e3*parseInt(r.creationTimestamp||"0",10)),categoryId:r.noticeCategory&&r.noticeCategory.id||"",categoryName:r.noticeCategory&&r.noticeCategory.name||"",categoryDescription:r.noticeCategory&&r.noticeCategory.description||"",categoryThumbnail:r.noticeCategory&&r.noticeCategory.fileImageUrl||null,urgent:t,first:0===n,last:n===e.length-1})}}},{key:"render",value:function(){var e=this,t=this.props,r=t.Element,n=t.styleClassMap,o=t.relax,c=t.renderChildren,u=t.schemaLinks,l=t.locale;if(!(0,i.Z)(null==o?void 0:o.styleValues,l))return null;var s=[];
1return this.state.loading||this.state.error?s.push({first:!0,last:!0}):s.push.apply(s,j(this.state.notices)),a().createElement(r,h({},o,{htmlTag:"div",className:n.element,settings:b.Z}),s.map((function(t){return c({links:u,linksData:{result:t,system:{loading:e.state.loading,error:e.state.error,empty:!(e.state.loading||e.state.error||e.state.notices&&e.state.notices.length)}}})})))}}],r&&S(t.prototype,r),n&&S(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(s.Z),o.propTypes={styleClassMap:l().object.isRequired,relax:l().object.isRequired,Element:l().func.isRequired,renderChildren:l().func.isRequired,token:l().string,locale:l().string,schemaLinks:l().object,pageSize:l().string,pageNo:l().string},o.propsSchema=y.Z,o.settings=b.Z,o.style=g.Z,n=o))||n}}]);
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.