1(self.webpackChunkmondoin_mobile_ui=self.webpackChunkmondoin_mobile_ui||[]).push([[610],{48921:(e,t,o)=>{"use strict";var r=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var n=r(o(67154)),i=r(o(59713)),a=r(o(6479)),s=r(o(67294)),l=(r(o(45697)),r(o(94184))),c=(o(93142),r(o(78252))),u=o(98741),d=function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}};function p(e){var t,o=e.classes,r=e.className,c=e.color,d=e.component,p=e.disableGutters,h=e.disableSticky,m=e.inset,f=(0,a.default)(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return s.default.createElement(d,(0,n.default)({className:(0,l.default)(o.root,(t={},(0,i.default)(t,o["color".concat((0,u.capitalize)(c))],"default"!==c),(0,i.default)(t,o.inset,m),(0,i.default)(t,o.sticky,!h),(0,i.default)(t,o.gutters,!p),t),r)},f))}t.styles=d,p.defaultProps={color:"default",component:"li",disableGutters:!1,disableSticky:!1,inset:!1},p.muiName="ListSubheader";var h=(0,c.default)(d,{name:"MuiListSubheader"})(p);t.default=h},52781:(e,t,o)=>{"use strict";var r=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.default}});var n=r(o(48921))},85963:(e,t,o)=>{"use strict";var r=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(o(67294)),i=(0,r(o(2108)).default)(n.default.createElement(n.default.Fragment,null,n.default.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),n.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),"FilterList");t.default=i},50169:(e,t,o)=>{"use strict";var r=o(95318);t.Z=void 0;var n=r(o(67294)),i=(0,r(o(2108)).default)(n.default.createElement(n.default.Fragment,null,n.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),n.default.createElement("circle",{cx:"6.18",cy:"17.82",r:"2.18"}),n.default.createElement("path",{d:"M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17 7.07 7.07h2.83c0-5.47-4.43-9.9-9.9-9.9z"})),"RssFeed");t.Z=i},64652:(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});var r=o(67294),n=o.n(r),i=o(40577);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},a.apply(this,arguments)}const s=function(e){return n().createElement(i.default,a({},e,{viewBox:"0 0 1800 1800"}),n().createElement("path",{d:"M1408 1088q0 26-19 45l-448 448q-19 19-45 19t-45-19l-448-448q-19-19-19-45t19-45 45-19h896q26 0 45 19t19 45zm0-384q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45 19-45l448-448q19-19 45-19t45 19l448 448q19 19 19 45z"}))}},40468:(e,t,o)=>{"use strict";o.d(t,{Z:()=>f});var r=o(67294),n=o.n(r),i=o(45697),a=o.n(i),s=o(65470),l=o.n(s),c=o(83638),u=o(48304),d=o(56261),p=o(23560),h=o.n(p),m=function(e){var t=e.intl,o=e.rights,r=e.queryId,i=e.profileData,a=e.onCreateInterestProfile,s=e.launchSearchToEditPredefinedSearch,d=e.hasCurrentlyNoResult,p=e.setPredefinedSearchInfo,m=e.styleClassMap,f=e.accessibilityLegend,g=t.formatMessage;if(!(!l().mobile&&!l().tablet&&o&&o.get("allowManageAllContent")))return null;var y,b=!!i&&Object.keys(i).length>0;if(b){var S=i.query||"",v=S.indexOf(":");if(v>0&&!(y=(S.slice(v+1)||"").trim()))return null}return n().createElement(c.default,{style:{height:42},onClick:function(){b?!d&&h()(s)?s(y):d&&h()(p)&&(p({lastModified:Date.now(),idd:y,isFrontEndCreated:!0}),a(r)):a(r)},"aria-label":null==f?void 0:f("Save as predefined search")},n().createElement(u.default,{className:m.iconStyle,style:{paddingRight:4}},b?"edit":"search"),n().createElement("span",{className:m.buttonTextStyle},g({id:"SearchTools.createInterestProfile",defaultMessage:"Predefined search"})))};m.propTypes={intl:d.gm.isRequired,rights:a().object,query:a().string,queryId:a().string.isRequired,onCreateInterestProfile:a().func.isRequired,profileData:a().object,launchSearchToEditPredefinedSearch:a().func,hasCurrentlyNoResult:a().bool,setPredefinedSearchInfo:a().func,accessibilityLegend:a().func,className:a().string,
1styleClassMap:a().object};const f=m},18770:(e,t,o)=>{"use strict";function r(e){var t=0;return e&&(t=Object.keys(e).reduce((function(t,o){return t+Object.keys(e[o]).reduce((function(t,r){return t+e[o][r]}),0)}),0)),t}o.d(t,{F:()=>r})},27085:(e,t,o)=>{"use strict";o.d(t,{Z:()=>m});var r=o(67294),n=o.n(r),i=o(45697),a=o.n(i),s=o(83638),l=["iconStyle"];function c(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function u(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?c(Object(o),!0).forEach((function(t){d(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function d(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function p(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}var h=function(e){e.iconStyle;var t=p(e,l),o=u(u({},t),{},{icon:void 0,label:void 0});return n().createElement(s.default,o," ",t.icon," ",t.label)};h.propTypes={iconStyle:a().object};const m=h},14706:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>At});var r=o(67294),n=o.n(r),i=o(45697),a=o.n(i),s=o(56261),l=o(25387),c=o(48281),u=o.n(c),d=o(61851),p=o(95104),h=o(36228),m=o(1852),f=o.n(m),g=o(48304),y=o(68821),b=o(30866),S=o(10251),v=o.n(S),w=o(30381),C=o.n(w),k=o(97144),T=o(61469),x=o(21191),E=o.n(x),R=o(18446),M=o.n(R),I=o(74619),A=o(57472),O=o(37424),P=o(97845),q=o(65470),D=o.n(q),F=o(95880),j=o(71426),L=o(81701),_=o(93619),N=o(94184),z=o.n(N),B=o(68278);const W=o.p+"appstatic/imgs/d73fa1cfdae2e072ed18634a84ad71f9.png",V=o.p+"appstatic/imgs/087be8980adf6e77be3603946dc43bfb.png",H=o.p+"appstatic/imgs/67366feef734d0cdd05509201147afd2.png",Z=o.p+"appstatic/imgs/561b24f9926f4124e04a3fac8d10b1cd.png",Q=o.p+"appstatic/imgs/9be34352a1ce341fb58f061ce83696d2.png",G=o.p+"appstatic/imgs/8a58b9157064db95f3e4705c8a863a20.png",U=o.p+"appstatic/imgs/653102bc06ba2ad5381de4817b4188ba.png",J=o.p+"appstatic/imgs/8c2cc139b82bf70903a9403f7dfcd71d.png";function X(e){return X="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},X(e)}var K,Y,$,ee,te,oe,re=["value","dragging","index"],ne=["value","dragging","index"];function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ie.apply(this,arguments)}function ae(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function se(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function le(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?se(Object(o),!0).forEach((function(t){ce(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):se(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function ce(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function ue(e){return function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||pe(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 de(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==o)return;var r,n,i=[],a=!0,s=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(s)throw n}}return i}(e,t)||pe(e,t)||function(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(e,t){if(e){if("string"==typeof e)return he(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?he(e,t):void 0}}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function me(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fe(e,t){return fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fe(e,t)}function ge(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 o,r=Se(e);if(t){var n=Se(this).constructor;o=Reflect.construct(r,arguments,n)}else o=r.apply(this,arguments);return ye(this,o)}}function ye(e,t){if(t&&("object"===X(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return be(e)}function be(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Se(e){return Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Se(e)}var ve,we,Ce,ke,Te,xe,Ee=T.default.Handle,Re={"ratio3-10":W,ratio2x5:V,ratio1x2:H,ratio3x5:Z,"ratio7-10":Q,ratio4x5:G,"ratio9-10":U,ratio1x1:J},Me=(K=(0,O.connect)((function(e){return{useOnlyDefaultList:"true"===(0,P.jQ)(e).useOnlyDefaultList,userBookings:e.getIn(["account","userBookingsObj"]),hideAgenda:e.getIn(["settings","noEventAgenda"])}})),Y=(0,B.Z)(100),K((oe=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&&fe(e,t)}(a,e);var t,o,r,i=ge(a);function a(e){var t,o,r,s,l;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={value:0,previous:0,showConfigurator:!0,timeLineMarks:null,timeLineSteps:1,orderingDirection:"ASC",orderingType:"DateCreated",endTimeAsMoment:null,marksArray:[],windowHeight:window.innerHeight,windowWidth:window.innerWidth,minEventPadding:20,maxEventPadding:40,linePadding:100,labelWidth:100,fillingMotionStiffness:150,fillingMotionDamping:25,slidingMotionStiffness:150,slidingMotionDamping:25,isTouchEnabled:!0,isKeyboardEnabled:!0,isOpenEnding:!0,isOpenBeginning:!1,backGroundMarks:null},t._compareValues=function(e,t,o){var r=o.reduce((function(e,t){return e&&e[t]}),e),n=o.reduce((function(e,t){return e&&e[t]}),t);return M()(r,n)},o=t,r="_handleWindowResize",s=te,l=be(t),s&&Object.defineProperty(o,r,{enumerable:s.enumerable,configurable:s.configurable,writable:s.writable,value:s.initializer?s.initializer.call(l):void 0}),t._scrollToCurrentValue=function(){var e=de(t._getScrollingValues(),1)[0],o=window.innerWidth/2-e/2;if(t.selectedCardRef.current){var r=Math.floor(t.selectedCardRef.current.offsetLeft-o);t.scroll.scroll({top:0,left:Math.max(0,r),behavior:"smooth"})}},t.setNoTimeMarks=function(e,o){var r=e>=o?o:e,n=ue(Array(r).keys());t.setState({marksArray:n,endTime:r-1,loadingMore:!1})},t._getMapToJSONSingleValue=function(e,t,o){if(null==e)return o;var r=e[t];if(null==r||0===r.length)return o;var n=r[0].value;return null==n?o:n},t.setTimeMarks=function(e,o){var r=t.state,n=r.orderingType,i=r.orderingDirection,a=e.toJS?e.toJS():e;a=a.map((function(e){return t._getMapToJSONSingleValue(e,n)})).sort((function(e,t){return C()(e)-C()(t)}));var s=C()(a[0]),l=C()(a[a.length-1]),c=l.diff(s,"millisecond"),u=a.reduce((function(e,t){var o=C()(t).diff(s,"milliseconds");return e.concat(e.includes(o)?[e[e.length-1]+1]:[o])}),[]);t.setState(le({endTime:c,startTime:s,marksArray:u,endTimeAsMoment:l,loadingMore:!1},o?{value:"ASC"===i?0:u.length-1,previous:0}:{}))},t._getMarksObject=function(){var e=t.props,o=e.isTimeMode,r=e.timelineGuideColor;return t.state.marksArray.reduce((function(e,t,n){return le(le({},e),{},ce({},t,le({index:n},o?{}:{style:{color:r.value}})))}),{})},t._getTimelineMarks=function(){var e,o=t.state,r=o.endTime,n=o.startTime,i=o.endTimeAsMoment,a=o.windowWidth,s=t.props,l=s.timelineGuideColor,c=s.theme.breakpoints.values,u=c.large,d=c.xmedium;e=a>u?10:a>d?7:4;var p={color:(0,_.o3)(l),bottom:"-".concat((t.timelineContainerRef.clientHeight||t.props.timelineHeight)-18,"px"),marginLeft:"0%",textAlign:"left"},h=Math.floor(r/e),m=n.clone();return ue(Array(e-1).keys()).reduce((function(e,o){return le(le({},e),{},ce({},(o+1)*h,{label:t._getTimeLabel(m.add(h,"ms"),n,i),style:p}))}),{})},t._getTimelineBetweenMarks=function(){var e,o=t.state,r=o.endTime,n=o.windowWidth,i=t.props.theme.breakpoints.values,a=i.large,s=i.xmedium;return e=n>a?10:n>s?7:4,Math.floor(r/e)/20},t._getTimeLabel=function(e,t,o){return o.diff(t,"seconds")<10?e.format("h:mm:ss.SSS"):o.diff(t,"minutes")<1?e.format("h:mm:ss"):o.diff(t,"hours")<10?e.format("h:mm"):o.diff(t,"days")<20?e.format("D - h:mm"):o.diff(t,"months")<10?e.format("MMM - Do"):o.diff(t,"years")<10?e.format("ll"):"".concat(e.format("ll"))},t.loadMore=function(){var e=t.props,o=e.searchListState,r=e.queryId,n=e.isRatingEnabled,i=e.showLike,a=e.onLoadMoreResult;null!=o&&null!=o.imResultSet&&0!==o.imResultSet.size&&a(r,i,n)},t.handle=function(e){var o=e.value,r=(e.dragging,e.index),i=ae(e,re),a=t.props,s=a.documentMarkColor,l=a.timelineHandleIcon,c=a.handlePosition,u=a.handleColor,d=a.handleSize,p=a.handleBubbleColor;i.style={backgroundColor:(0,_.o3)(s),border:"solid 1px ".concat((0,_.o3)(s)),display:"flex",justifyContent:"center",alignItems:"center"};var h="top"===c?{}:{top:"-100%"},m=(Math.ceil(parseInt(d.replace("px",""),10))+5)/.75,f={width:"100%",height:"100%",position:"relative",background:(0,_.o3)(p),borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",zIndex:3},y={position:"absolute",width:"0px",height:"0px",bottom:"-15%",borderLeft:"".concat(.3*m,"px solid transparent"),borderRight:"".concat(.3*m,"px solid transparent"),borderTop:"".concat(.3*m,"px solid ").concat((0,_.o3)(p))};return n().createElement(E(),{prefixCls:"rc-slider-tooltip",overlay:n().createElement(g.default,{color:"primary"},"place"),visible:!1,placement:"top",key:r},n().createElement(Ee,ie({value:o},i),"center"!==c&&m?n().createElement("div",{style:{display:"flex",justifyContent:"center",top:"calc(5px - ".concat(t.timelineContainerRef.clientHeight/2,"px - ").concat(1.15*m,"px)"),position:"absolute",width:"".concat(.9*m,"px"),height:"".concat(m,"px")}},n().createElement("div",{style:y}),n().createElement("div",{style:f},n().createElement("i",{className:z()(l&&l.className),style:le({color:(0,_.o3)(u),fontSize:d,position:"relative"},h)},l&&l.content))):n().createElement("i",{className:z()(l&&l.className),style:{color:(0,_.o3)(u),fontSize:d,position:"relative"}}
1,l&&l.content)))},t.handleBottomArm=function(e){var o=e.value,r=(e.dragging,e.index),i=ae(e,ne),a=t.props.bottomArmColor;return i.style={backgroundColor:"transparent",borderStyle:"none",marginTop:"0px",zIndex:"3",height:"100%",display:"flex",justifyContent:"center"},n().createElement(E(),{prefixCls:"rc-slider-tooltip",overlay:n().createElement(g.default,{color:"primary"},"place"),visible:!1,placement:"top",key:r},n().createElement(Ee,ie({value:o},i),n().createElement("div",{style:{height:"100%",bottom:"0px",width:"2px",left:"-2px",backgroundColor:(0,_.o3)(a)}})))},t._getScrollingValues=function(){var e=t.unselectedCardRef.current?t.unselectedCardRef.current.clientWidth+(t.state.value%2?.5:-.5):260;return[e,Math.ceil(.06*e)]},t.seek=function(e,o,r){var n=t.props,i=n.hasMore,a=n.isTimeMode,s=n.loadingPageSize,l=t.state,c=l.orderingDirection,u=l.value,d=l.marksArray,p=u,h=Math.ceil(.375*s);if(o&&u>0?p-=1:r&&u<d.length-1?p+=1:parseInt(e,10)>=0&&(p=d.indexOf(parseInt(e,10))),~p&&p!==u){var m={value:p,previous:u,loadingMore:!1};"ASC"!==c&&a?p<h&&i&&(m={value:p+s,previous:u+(s-1),loadingMore:!0}):m.loadingMore=p>=d.length-h&&i,t.setState(m,(function(){return m.loadingMore?t.loadMore():null}))}},t._applyRef=function(e,o){return"size"===e&&"size"===o?t.unselectedCardRef:"scroll"===e&&"scroll"===o&&t.selectedCardRef},t.unselectedCardRef=n().createRef(),t.selectedCardRef=n().createRef(),t}return t=a,(o=[{key:"componentWillMount",value:function(){var e=this;if(!this._compareValues(this.props,void 0,["searchListState","imResultSet"]))if(this.props.isTimeMode){var t=de(this.props.resultInfo.request.order?this.props.resultInfo.request.order.split("_"):["DateCreated","ASC"],2),o=t[0],r=t[1];this.setState({orderingType:o,orderingDirection:r},(function(){return e.setTimeMarks(e.props.searchListState.imResultSet,!0)}))}else this.setNoTimeMarks(8*(this.props.resultInfo.pageNo||1),this.props.resultInfo.hits),this.seek(0,!1,!1);this.setState({windowHeight:window.innerHeight,windowWidth:window.innerWidth})}},{key:"componentDidMount",value:function(){window.addEventListener("resize",this._handleWindowResize)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this._handleWindowResize)}},{key:"componentWillUpdate",value:function(e,t){var o=this;if(this._compareValues(e,this.props,["resultInfo","request","mappedFQ"])&&this._compareValues(e,this.props,["resultInfo","request","order"]))this._compareValues(e,void 0,["searchListState","imResultSet"])||this._compareValues(e,this.props,["searchListState","imResultSet"])||(this.props.isTimeMode?this.setTimeMarks(e.searchListState.imResultSet):this.setNoTimeMarks(8*e.resultInfo.pageNo,e.resultInfo.hits));else if(this.props.isTimeMode){var r=de(e.resultInfo.request.order.split("_"),2),n=r[0],i=r[1];this.setState({orderingType:n,orderingDirection:i},(function(){return o.setTimeMarks(e.searchListState.imResultSet,!0)}))}else this.setNoTimeMarks(8*(e.resultInfo.pageNo||1),e.resultInfo.hits),this.seek(0,!1,!1)}},{key:"componentDidUpdate",value:function(e,t){this.state.value===t.value||this.state.loadingMore||this._scrollToCurrentValue(),!this.state.loadingMore&&t.marksArray!==this.state.marksArray&&this.selectedCardRef.current&&this._scrollToCurrentValue(),this.state.windowHeight!==t.windowHeight&&this.state.windowWidth!==t.windowWidth&&this._scrollToCurrentValue()}},{key:"shouldComponentUpdate",value:function(e,t){var o=e.searchListState,r=this.props.searchListState;if(this.props.isTimeMode!==e.isTimeMode&&(e.isTimeMode?this.setTimeMarks(o.imResultSet):this.setNoTimeMarks(4,4)),null==o&&null!=r)return!0;if(this.state.value!=t.value)return!0;if(null!=r&&null==o)return!0;var n=r.imResultSet!==o.imResultSet||this.props.multiSelection!==e.multiSelection||this.props.showActionButtons!==e.showActionButtons||this.props.showLike!==e.showLike||this.props.isRatingEnabled!==e.isRatingEnabled||this.props.thumbnailFormat!==e.thumbnailFormat||this.props.showDocumentThumbnail!==e.showDocumentThumbnail||this.props.hideZmat!==e.hideZmat||this.props.userBookings!==e.userBookings||r.imExploreMap!==o.imExploreMap||r.imPnbStock!==o.imPnbStock||r.imPhysicalStock!==o.imPhysicalStock||r.imRating!==o.imRating||r.imLike!==o.imLike||r.favoriteBasket!==o.favoriteBasket||this.props.textAlignment!==e.textAlignment||this.props.timelineHeight!==e.timelineHeight||this.props.timelineGuideColor!==e.timelineGuideColor||this.props.documentMarkColor!==e.documentMarkColor||this.props.bottomArmColor!==e.bottomArmColor||this.state.windowHeight!==t.windowHeight||this.state.windowWidth!==t.windowWidth||this.state.marksArray!==e.marksArray;return n||(n=!v()(this.props.selectedIds,e.selectedIds)),n}},{key:"render",value:function(){var e=this,t=this.props,o=t.styleClassMap,r=t.selectedIds,i=t.onCardAction,a=t.onExploreClick,s=t.onResultClicked,l=t.onSelectItem,c=t.onMakeComment,u=t.searchListState,p=t.solrDebug,h=t.queryId,m=t.isWidget,f=t.multiSelection,y=t.showFavorite,S=t.showActionButtons,v=t.isRatingEnabled,w=t.thumbnailFormat,x=t.showDocumentThumbn
1ail,E=t.settingsFromCMS,R=t.rights,M=t.token,O=t.isBuilding,P=t.isEditing,N=t.onRequestLogin,z=t.router,B=t.isTimeMode,W=t.showLike,V=t.hideAgenda,H=t.newComment,Z=t.newCommentNoticeId,Q=t.user,G=t.userOmnidexid,U=t.useOnlyDefaultList,J=t.userBookings,X=t.textStyle,K=t.profileData,Y=t.textAlignment,$=t.timelineGuideColor,ee=t.documentMarkColor,te=t.bottomArmColor,oe=t.resultCardsHeight,re=t.resultCardsRatio,ne=de(this._getScrollingValues(),2),ae=ne[0],se=ne[1];if(null==u)return null;var ce=u.favoriteBasket,ue=u.imResultSet,pe=u.imExploreMap,he=u.imPnbStock,me=u.imPhysicalStock,fe=u.imRating,ge=u.imLike,ye=null,be=this.state,Se=be.orderingType,ve=be.orderingDirection;if(!ue)return null;ye=(ye=ue.toJS?ue.toJS():ue).map((function(e){return A.l3(e,ce,pe,he,me,fe,ge)})),B&&ye.sort((function(e,t){return(C()(e[Se])-C()(t[Se]))*("DESC"===ve?-1:1)})),new Set(r);var we=ye.map((function(t,r){return function(t,r){var u,g=!1,b=!1,C=[d.Z.ACTION_RESERVE];E&&"true"!==E.hidePrint&&C.push(d.Z.ACTION_PRINT),t.hideShareAction||C.push(d.Z.ACTION_SHARE),null!=R&&(R.get("allowContentTypeAssetPrinting")&&t.typeOfDocumentFacet&&R.get("allowContentTypeAssetPrinting").includes(t.typeOfDocumentFacet)&&(b=!0,C.push(d.Z.ACTION_PRINT_ASSETS)),R.get("allowContentTypeAssetDownload")&&t.typeOfDocumentFacet&&R.get("allowContentTypeAssetDownload").includes(t.typeOfDocumentFacet)&&(g=!0,C.push(d.Z.ACTION_DOWNLOAD)),R.get("allowViewBaskets")&&(U||C.push(d.Z.ACTION_ADD_LIST),y&&!t.hideFavoriteAction&&(t.isFavorite?C.push(d.Z.ACTION_REMOVE_FAVORITE):C.push(d.Z.ACTION_ADD_FAVORITE)))),t.like&&t.like.value&&(u=t.like.value);var T="ASC"===ve?e.state.value:e.state.marksArray.length-1-e.state.value,A=0!==T&&0===r||0===T&&1===r;return n().createElement(I.Z,ie({applyRef:!(!A&&T!==r)&&function(t){return e._applyRef(t,T===r?"scroll":"size")},isTimeMode:B,displayMode:"timeline",style:{textAlign:"center"},onResultClick:(0,k.PF)(s),onSelectResultItem:(0,k.PF)(l),checked:T===r,queryStatement:e.props.queryStatement,onCardAction:i,onMakeComment:c,allowDownload:g,allowAssetPrint:b,hideZmat:e.props.hideZmat,key:r,textStyle:X,hideAgenda:V,textAlignment:Y,cantReserveMoreThanOne:e.props.cantReserveMoreThanOne,isRatingEnabled:v,isBuilding:O,isEditing:P,showFavorite:e.props.showFavorite,queryId:h,showLike:W,multiSelection:f,thumbnailFormat:w,showDocumentThumbnail:x,isWidget:m,numberOfLike:u,cardActions:m||!S?[]:C,onExploreClick:a,solrDebug:p,rights:R,token:M,onRequestLogin:N,router:z,newComment:H,newCommentNoticeId:Z,user:Q,userOmnidexid:G,hoverEnabled:!(q.mobile||q.tablet),userBookings:J&&J[t.id.replace(/h::/,"")],date:B?t[e.state.orderingType]:t.date,timelineScaleX:"DESC"===ve?-1:1,timelineResultCardsHeight:oe,timelineResultCardsRatio:Re[re],timelineResultCardsMargin:se,timelineCardsMinWidth:D().firefox?ae:0,styleClassMap:o},t))}(t,r)}));return n().createElement("div",{style:{width:"100%",display:"flex",flexDirection:"column",flex:"0 1 100%"}},n().createElement("div",{ref:function(t){return e.scroll=t},style:le({paddingTop:"4px",paddingBottom:"16px",display:"flex",justifyContent:"flex-start",flexWrap:"nowrap",overflow:"hidden",alignItems:"center",scrollBehavior:"smooth",flex:"0 1 100%"},"DESC"===ve?{transform:"scaleX(-1)"}:{})},n().createElement("div",{style:{display:"flex",minHeight:"1px",height:"auto",flex:"0 0 calc(50% - ".concat((ae+2*se)/2,"px)")}},K&&n().createElement("img",{style:{width:"480px",marginLeft:"-240px"},src:"https://cdn.shopify.com/s/files/1/0298/8665/products/ganesha-sticker_1024x1024.png?v=1466357372",alt:"alt"}),K&&n().createElement("div",{style:{paddingRight:"48px",width:"546px",margin:"auto"}},n().createElement(j.default,{color:"primary",variant:"button",style:{fontSize:"1.8em",lineHeight:"1.3",margin:"auto",overflow:"hidden",paddingBottom:"32px"}},"Affichage de la Timeline"),n().createElement(j.default,{variant:"subtitle1",style:{fontSize:"0.9em",color:"#A6A6A6",overflow:"hidden",paddingBottom:"8px"}},"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.")),this.state.loadingMore&&"DESC"===ve&&n().createElement(b.default,{size:100})),we,n().createElement("div",{style:{minHeight:"1px",height:"auto",flex:"0 0 calc(50% - ".concat((ae+2*se)/2,"px)")}},this.state.loadingMore&&"ASC"===ve&&n().createElement(b.default,{size:100}))),this.state.marks&&this.state.marks[this.state.value]&&n().createElement(j.default,{variant:"button",style:{width:"200px",textAlign:"right",paddingRight:"16px",marginTop:"-18px",marginLeft:"auto",height:"0px",overflow:"visible"}},this.state.marks&&"Résultat #"+(this.state.marks[this.state.value].index+1)),ye&&ye.length&&ye.length>1&&n().createElement(F.default,{style:{height:"auto",flex:"0 0 ".concat(this.props.timelineHeight),alignItems:"center"},className:o.timelineBackGround,color:"default",position:"relative"},n().createElement("div",{style:{display:"flex",width:"100%",height:"100%",margin:"auto 0px",alignItems:"center"}},n().createElement(L.default,{color:"primary",size:"small",className:o.timelineNavArrows,style:{borderStyle:"solid",borderWidth:"2px",height:"24px",width:"24px",marginLeft:"8px",textTransform:"uppercase"},variant:"outlined",onClick:function(t){e.seek(e.state.value,!0,!1)},disabled:0===this.state.value||"0"===this.state.value},n().createElement(g.default,{color:0===this.state.value||"0"===this.state.value?"disabled":"inherit"},"keyboard_arrow_left")),n().createElement("div",{ref:function(t){return e.timelineContainerRef
1=t},style:{margin:"0px 24px",flexGrow:99,position:"relative",height:"100%",display:"flex",alignItems:"center"}},this.state.endTime&&n().createElement(T.default,{min:0,max:this.state.endTime,marks:this._getMarksObject(),value:this.state.marksArray[this.state.value],step:null,handle:this.handle,handleStyle:[{backgroundColor:"".concat((0,_.o3)(ee)," !important"),width:"12px",height:"12px",border:"solid 4px ".concat((0,_.o3)(ee))}],trackStyle:this.props.isTimeMode?{visibility:"hidden"}:{backgroundColor:(0,_.o3)($),height:"2px",top:"6px"},railStyle:this.props.isTimeMode?{visibility:"hidden"}:{backgroundColor:(0,_.o3)($),height:"2px",top:"6px"},dotStyle:{backgroundColor:(0,_.o3)(ee),border:"1px solid ".concat((0,_.o3)(ee)),borderColor:(0,_.o3)(ee),zIndex:"2"},activeDotStyle:{borderColor:(0,_.o3)(ee)},onChange:function(t){e.seek(t,!1,!1)}}),this.props.isTimeMode&&this.state.startTime&&this.state.endTimeAsMoment&&this.state.endTime&&n().createElement(n().Fragment,null,n().createElement(T.default,{style:{height:"100%",position:"absolute",top:"0px",padding:"0px",pointerEvents:"none"},min:0,max:this.state.endTime,marks:this._getTimelineMarks(),value:this.state.marksArray[this.state.value],handle:this.handleBottomArm,handleStyle:[{backgroundColor:"transparent",width:"0px",height:"0px",borderStyle:"none",visibility:"hidden",margin:"0"}],trackStyle:{backgroundColor:(0,_.o3)(te),height:"2px",bottom:"0px"},railStyle:{visibility:"hidden",height:"2px",bottom:"0px"},dotStyle:{borderRadius:"0%",borderColor:(0,_.o3)($),borderStyle:"none",width:"2px",height:"".concat(this.timelineContainerRef.clientHeight,"px"),top:"0px",backgroundColor:(0,_.o3)($)},activeDotStyle:{borderColor:(0,_.o3)($)}}),n().createElement(T.default,{style:{pointerEvents:"none",position:"absolute"},min:0,max:this.state.endTime,value:null,step:this._getTimelineBetweenMarks(),dots:!0,handle:function(){return null},handleStyle:[{visibility:"hidden"}],trackStyle:{visibility:"hidden"},railStyle:{visibility:"hidden"},dotStyle:{backgroundColor:(0,_.o3)($),border:"1px solid ".concat((0,_.o3)($)),height:"2px",width:"2px",bottom:"1px"},onChange:function(){return null}}))),n().createElement(L.default,{color:"primary",className:o.timelineNavArrows,size:"small",style:{borderStyle:"solid",borderWidth:"2px",height:"24px",width:"24px",marginRight:"8px",textTransform:"uppercase"},variant:"outlined",onClick:function(t){e.seek(e.state.value,!1,!0)},disabled:!!this.state.value&&parseInt(this.state.value,10)>=this.state.marksArray.length-1},n().createElement(g.default,{color:this.state.value&&parseInt(this.state.value,10)>=this.state.marksArray.length-1?"disabled":"inherit"},"keyboard_arrow_right")))))}}])&&me(t.prototype,o),r&&me(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component),oe.propTypes={styleClassMap:a().object,queryId:a().string,queryStatement:a().string,searchListState:a().object.isRequired,resultInfo:a().object.isRequired,rights:a().object.isRequired,profileData:a().object,hasMore:a().bool,loading:a().bool,isTimeMode:a().bool,theme:a().object.isRequired,hideAgenda:a().bool,useOnlyDefaultList:a().oneOfType([a().string,a().bool]),solrDebug:a().bool,isWidget:a().bool,selectedIds:a().array,token:a().string,showBaskets:a().bool,isRatingEnabled:a().bool,isEditing:a().bool,isBuilding:a().bool,showLike:a().bool,cantReserveMoreThanOne:a().bool,showFavorite:a().bool,multiSelection:a().bool,hideZmat:a().bool,showActionButtons:a().bool,showDocumentThumbnail:a().bool,onCardAction:a().func,onSelectItem:a().func,onExploreClick:a().func.isRequired,onResultClicked:a().func.isRequired,onLoadMoreResult:a().func,onMakeComment:a().func,onRequestLogin:a().func,settingsFromCMS:a().object,userBookings:a().object,thumbnailFormat:a().string,router:a().object,newComment:a().string,newCommentNoticeId:a().string,user:a().string,userOmnidexid:a().string,textStyle:a().string,textAlignment:a().string,timelineHeight:a().number,timelineGuideColor:a().object,documentMarkColor:a().object,bottomArmColor:a().object,timelineHandleIcon:a().object,loadingPageSize:a().number,loadingPageAhead:a().number,resultCardsHeight:a().string,resultCardsRatio:a().string,handlePosition:a().string,handleColor:a().object,handleBubbleColor:a().object,handleSize:a().string},oe.defaultProps={isEditing:!1,isBuilding:!1},ve=(ee=oe).prototype,we="_handleWindowResize",Ce=[Y],ke={configurable:!0,enumerable:!0,writable:!0,initializer:function(){var e=this;return function(){e.setState({windowHeight:window.innerHeight,windowWidth:window.innerWidth})}}},xe={},Object.keys(ke).forEach((function(e){xe[e]=ke[e]})),xe.enumerable=!!xe.enumerable,xe.configurable=!!xe.configurable,("value"in xe||xe.initializer)&&(xe.writable=!0),xe=Ce.slice().reverse().reduce((function(e,t){return t(ve,we,e)||e}),xe),Te&&void 0!==xe.initializer&&(xe.value=xe.initializer?xe.initializer.call(Te):void 0,xe.initializer=void 0),void 0===xe.initializer&&(Object.defineProperty(ve,we,xe),xe=null),te=xe,$
1=ee))||$),Ie=o(60869),Ae=o(20289);var Oe,Pe,qe,De=o(15482),Fe=o(50169),je=o(92352),Le=o(83638),_e=o(70398),Ne=o(70087),ze=o(31126),Be=o(10632),We=o(85963),Ve=o(88578),He=o(64652),Ze=o(32316),Qe=o(93962),Ge=o(55877),Ue=o.n(Ge),Je=o(23560),Xe=o.n(Je),Ke=o(27085),Ye=o(74103),$e=o(40468),et=o(18770);function tt(e){return tt="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},tt(e)}function ot(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rt(e,t){return rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rt(e,t)}function nt(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 o,r=at(e);if(t){var n=at(this).constructor;o=Reflect.construct(r,arguments,n)}else o=r.apply(this,arguments);return it(this,o)}}function it(e,t){if(t&&("object"===tt(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 at(e){return at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},at(e)}var st=(0,Ze.withStyles)((function(e){return{badge:{width:22,height:22,top:-8,right:-12},colorP:{color:"white"},searchToolIcon:{fontSize:"2.4rem"},searchToolLabel:{fontSize:"1.4rem"},searchToolButton:{width:42,minWidth:42,color:"black",padding:"0px"},searchToolSort:{height:42,width:42,minWidth:42,borderRadius:"50%",backgroundColor:"white",marginLeft:"5px"},facetDrawerIconSize:{fontSize:"2.2rem"}}}),{withTheme:!0})((qe=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&&rt(e,t)}(a,e);var t,o,r,i=nt(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).handleClose=function(){t.setState({open:!1})},t.handleOpen=function(){t.setState({open:!0})},t._handleSetSort=function(e){t.setState({openMenu:!1}),t.props.onSetSort(e)},t.handleClick=function(e){t.setState({openMenu:!0,anchorEl:e.currentTarget}),setTimeout((function(){document.getElementById("simple-menu")&&document.getElementById("simple-menu").parentElement.removeAttribute("aria-hidden")}),10)},t.handleDisplayClick=function(e){t.setState({openDisplayMenu:!0,anchorDisplayEl:e.currentTarget}),setTimeout((function(){document.getElementById("simple-menu2")&&document.getElementById("simple-menu2").parentElement.removeAttribute("aria-hidden")}),10)},t.handleRequestClose=function(){t.setState({openMenu:!1})},t.handleDisplayRequestClose=function(){t.setState({openDisplayMenu:!1})},t.handleChange=function(e){t.props.acceptSearchDisplayMode(null,e),t.setState({openDisplayMenu:!1})},t.state={open:!1,openDisplayMenu:!1,doSubEdit:!1,anchorEl:null,openMenu:!1},t}return t=a,(o=[{key:"shouldComponentUpdate",value:function(e,t){var o=this.props,r=o.facets,n=o.sorts,i=o.hits,a=o.order,s=o.mappedFQ,l=o.queryId,c=o.searchType,u=o.displayMode,d=o.selectedIds,p=o.showFacets,h=o.multiSelection,m=o.theme;return!(e.hits===i&&e.order===a&&e.queryId===l&&e.displayMode===u&&e.searchType===c&&e.showFacets===p&&e.theme===m&&e.multiSelection===h&&t.open===this.state.open&&t.openMenu===this.state.openMenu&&t.openDisplayMenu===this.state.openDisplayMenu&&(0,k.wU)(e.sorts,n)&&(0,k.wU)(e.facets,r)&&(0,k.wU)(e.mappedFQ,s)&&(0,k.wU)(e.selectedIds,d))}},{key:"renderSubscribe",value:function(){var e,t,o,r=this.props,n=r.intl,i=r.rights,a=r.queryId,s=r.query,l=r.profileData,c=r.subscriptionId,u=r.onSubscribe,d=r.onEditSubscribe,p=r.interestList,h=r.parentRelax,m=r.subscribeLegend,f=r.locale,g=n.formatMessage;c||this.state.doSubEdit?(e=g({id:"SearchTools.editSubscribe",defaultMessage:"Edit"}),t=!0):(t=!1,e=m&&m[f]||g({id:"SearchTools.subscribe",defaultMessage:"Subscribe"}));var y=s,b=c;if(l&&l.query&&(o=l.query.replace("profile:","").replace("h::",""),y=l.display,p&&p.get(o)&&(t=!0,e=g({id:"SearchTools.editSubscribe",defaultMessage:"Edit"}),b=p.get(o))),i&&(i.get("allowActivationOfPublicNotification")&&o||i.get("allowActivationOfNotification")&&!o)){if(t&&(b||o))return this.editToolButton(e,"alarm",(function(){return d(y,"10","html","weekly",b,a,o)}));if(!t)return this.renderToolButton(e,"alarm",(function(){return u(y,"10","html","weekly",b,a,o)}))}return h.editing?this.renderToolButton(e,"alarm",(function(){return null})):null}},{key:"launchSearchToEditPredefinedSearch",value:function(e){var t=this,o=this.props,r=o.token,n=o.beginSearch,i=o.locale,a=o.onEditSearch,s=o.setPredefinedSearchInfo;Qe.h.contentGraphById(r,e).then((function(o){var l=o&&o[e],c=l&&l.properties&&l.properties.savedQuery,u=!!c&&Object.keys(c).length>0,d=l&&l.properties&&l.properties.Query,p=!!d&&Object.keys(d).length>0;if(Xe()(s)&&s({lastModified:Date.now(),idd:e,isFrontEndCreated:u}),u){var h=c&&c.q;if(h){var m=c.id,f=!!c&&Array.isArray(c.query)&&c.query.length>0,g=h.searchContext,y=m&&"advancedsearch"===g;if(f&&!g&&Xe()(n))n({query:c.query[0],sf:"sf:"+c.sectionFacet});else if(y&&Xe()(a)){var b=Ue().v4();Qe.h.search(r,i,{searchType:"all",sf:"*",queryid:b,advancedQuery:h,fl:"id",pageNo:1,pageSize:1,locale:i,includeFacets:!1}).then((function(){a(b)})).catch()}}}else p&&Xe()(n)&&Qe.h.queryById(r,t.props.params.queryid).then((function(e){n({query:d[e.locale],sf:"sf:"+e.item.sectionFacet})})).catch()})).catch()}},{key:"renderToolButton",value:function(e,t,o){var r=this.props,i=r.theme,a=r.classes;return"timeline"===r.displayMode?n().createElement(Be.default,{size:"small",icon:n().createElement(g.default,{fontSize:"small"},t),style:{color:"black",height:"24px",marginRight:"4px",textTransform:"uppercase"},onClick:o,label:e,variant:"outlined"}):n().createElement(f(),{maxWidth:i.breakpoints.values.small-1,component:"span"},(function(r){return r?n().createElement(Le.default,{classes:{root:a.searchToolButton},onClick:o},n().createElement(g.default,{className:a.searchToolIcon},t)):n().createElement(Le.default,{onClick:o},n().createElement(g.default,{className:a.searchToolIcon,style:{paddingRight:5}},t),n().createElement("span",{className:a.searchToolLabel},e))}))}},{key:"editToolButton",value:function(e,t,o){var r=this.props,i=r.theme,a=r.classes,s=r.styleClassMap;return n().createElement(f(),{maxWidth:i.breakpoints.values.small-1,component:"span"},(function(r){return r?n().createElement(Le.default,{classes:{root:a.searchToolButton},onClick:o},n().createElement(g.default,{className:s.subscriptionIcon},t)):n().createElement(Le.default,{onClick:o},n().createElement(g.default,{className:s.subscriptionIcon,style:{paddingRight:5}},t),n().createElement("span",{className:a.searchToolLabel},e))}))}},{key:"render",value:function(){var e=this,t=this.props,o=t.facets,r=t.onLoadFacetValues,i=t.onLoadCalendarFacetValues,a=t.sorts,s=t.hits,l=t.order,c=t.mappedFQ,u=t.onAddFacetValue,p=t.onRemoveFacetValue,h=t.onSuppressFacetValue,m=t.onSetSort,y=t.displayMode,b=t.showSort,S=t.onShare,v=t.showDisplay,w=t.acceptSearchDisplayMode,C=t.onPrint,T=t.onEditSearch,x=t.facetSelections,E=t.onRemoveAllFacets,R=t.onCardAction,M=t.searchType,I=t.selectedIds,A=t.multiSelection,O=t.queryId,P=t.profileData,q=t.intl,D=t.showList,F=t.isTimeline,j=t.showMosaic,L=t.showWaterfall,_=t.showShare,N=t.onShowMore,z
1=t.showFacets,B=t.showFavorite,W=t.settingsFromCMS,V=t.theme,H=t.classes,Z=t.token,Q=t.onCreateInterestProfile,G=t.rights,U=q.formatMessage,J=(0,et.F)(c),X=n().createElement(g.default,{className:H.searchToolIcon,style:{overflow:"visible"}},"filter_list");J>0&&(X=n().createElement(_e.default,{color:"primary",badgeContent:J,style:{padding:0,lineHeight:"14px",fontSize:"1.2rem"},classes:{badge:H.badge,colorPrimary:H.colorP}},n().createElement(We.default,{classes:{root:H.searchToolIcon}})));var K=(a.find((function(e){return e.value.includes(l)}))||{label:""}).label,Y=null;return v&&(Y=n().createElement(Ne.default,{id:"simple-menu2",value:y,anchorEl:this.state.anchorDisplayEl,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"right",vertical:"top"},open:this.state.openDisplayMenu,onClose:this.handleDisplayRequestClose},D&&n().createElement(ze.default,{key:"list",onClick:function(){return e.handleChange("list")}},U({id:"SearchTools.List",defaultMessage:"List"})),j&&n().createElement(ze.default,{key:"mosaic",onClick:function(){return e.handleChange("mosaic")}},U({id:"SearchTools.Grid",defaultMessage:"Mosaic"})),L&&n().createElement(ze.default,{key:"waterfall",onClick:function(){return e.handleChange("waterfall")}},U({id:"SearchTools.Waterfall",defaultMessage:"Waterfall"})))),n().createElement("div",null,!F&&this.renderSubscribe(),A&&this.renderToolButton(U({id:"SearchResultCard.add",defaultMessage:"Add"}),"playlist_add",(function(){return R(d.Z.ACTION_ADD_LIST,I.length>0?I:O,"",B,Z)})),G.get("allowShareContent")&&_&&!F&&this.renderToolButton(U({id:"ShareButton.share",defaultMessage:"Share"}),"share",(function(){return S(I,O,s,P)})),v&&Y&&"timeline"===!y&&n().createElement(n().Fragment,null,n().createElement(f(),{maxWidth:V.breakpoints.values.small-1},n().createElement("span",null,n().createElement(Le.default,{classes:{root:H.searchToolButton},onClick:this.handleDisplayClick},n().createElement(g.default,{className:H.facetDrawerIconSize},"list"===y?"view_list":"mosaic"===y?"view_module":"view_week")),Y)),n().createElement(f(),{minWidth:V.breakpoints.values.small,component:"span"},n().createElement("span",null,n().createElement(Ke.Z,{htmlFor:"display",label:U("list"===y?{id:"SearchTools.List",defaultMessage:"List"}:"mosaic"===y?{id:"SearchTools.Grid",defaultMessage:"Grid"}:{id:"SearchTools.Waterfall",defaultMessage:"Waterfall"}),style:{height:42,fontSize:"1.4rem"},icon:n().createElement(g.default,null,"list"===y?"view_list":"mosaic"===y?"view_module":"view_week"),onClick:this.handleDisplayClick}),Y))),"AdvancedQuery"===M&&this.renderToolButton(U({id:"SearchTools.editSearch",defaultMessage:"Edit"}),"edit",(0,k.PF)((function(){return T(O)}))),n().createElement(f(),{minWidth:V.breakpoints.values.medium+1,component:"span"},"timeline"!==y&&n().createElement($e.Z,{intl:q,rights:G,queryId:O,profileData:P,onCreateInterestProfile:Q,launchSearchToEditPredefinedSearch:this.launchSearchToEditPredefinedSearch}),W&&"false"===W.hidePrint&&"timeline"!=y&&n().createElement(Le.default,{onClick:(0,k.PF)((function(){return C(I,O,s)})),style:{height:42}},n().createElement(g.default,{className:H.searchToolIcon,style:{paddingRight:5}},"print"),n().createElement("span",{className:H.searchToolLabel},U({id:"SearchTools.print",defaultMessage:"Print"}))),W&&"false"===W.hidePrint&&"timeline"===y&&!F&&n().createElement(Be.default,{size:"small",icon:n().createElement(g.default,null,"print"),style:{color:"black",marginRight:"4px",height:"24px",textTransform:"uppercase"},onClick:(0,k.PF)((function(){return C(I,O,s)})),label:U({id:"SearchTools.print",defaultMessage:"Print"}),variant:"outlined"})),b&&"timeline"!==y&&n().createElement(f(),{minWidth:V.breakpoints.values.medium+1,component:"span"},n().createElement(Ke.Z,{htmlFor:"sort",label:K,style:{height:42,fontSize:"1.4rem"},icon:n().createElement(He.Z,null),onClick:this.handleClick}),n().createElement(Ne.default,{id:"simple-menu",anchorEl:this.state.anchorEl,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"right",vertical:"top"},open:this.state.openMenu,onClose:this.handleRequestClose},a.map((function(t,o){return n().createElement(ze.default,{key:"sort_".concat(o),onClick:function(){return e._handleSetSort(t.value)},value:t.value,selected:l===t.value},t.label)})))),F&&n().createElement("span",null,n().createElement(Be.default,{color:"primary",size:"small",icon:n().createElement(We.default,{fontSize:"small"}
1),style:{border:"2px solid white",color:"white",height:"24px",marginLeft:"0px",textTransform:"uppercase"},onClick:(0,k.PF)((function(){return e.handleOpen()})),label:U({id:"SearchTools.filter",defaultMessage:"Voir les filtres"}),variant:"outlined"})),n().createElement(f(),{maxWidth:V.breakpoints.values.small-1},n().createElement("span",null,n().createElement(Le.default,{classes:{root:H.searchToolSort},variant:"contained",onClick:(0,k.PF)((function(){return e.handleOpen()}))},X))),n().createElement(f(),{minWidth:V.breakpoints.values.small,maxWidth:V.breakpoints.values.medium},n().createElement(Le.default,{onClick:(0,k.PF)((function(){return e.handleOpen()})),style:{height:42}},X,n().createElement("span",{className:H.searchToolLabel,style:{marginLeft:"16px"}},U({id:"SearchTools.tools",defaultMessage:"Tools"})))),n().createElement(Ve.Z,{isTimeline:F,intl:q,open:this.state.open,facets:o,sorts:a,showDisplay:v,acceptSearchDisplayMode:w,displayMode:y,hits:s,order:l,mappedFQ:c,queryId:O,onOpen:this.handleOpen,onClose:this.handleClose,onAddFacetValue:u,onRemoveFacetValue:p,onSuppressFacetValue:h,onSetSort:m,showClearFacets:!!x.length,onRemoveAllFacets:E,onShowMore:N,showFacets:z,onLoadFacetValues:r,onLoadCalendarFacetValues:i}))}}])&&ot(t.prototype,o),r&&ot(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component),qe.propTypes={classes:a().object.isRequired,theme:a().object.isRequired,facets:a().array,sorts:a().array,hits:a().number,token:a().string,showList:a().bool,isTimeline:a().bool,showMosaic:a().bool,showWaterfall:a().bool,multiSelection:a().bool,query:a().string,order:a().string,subscriptionId:a().string,mappedFQ:a().object,queryId:a().string.isRequired,interestList:a().object,profileData:a().object,displayMode:a().oneOfType([a().string,a().bool]),showDisplay:a().bool,showFavorite:a().bool,showSort:a().bool,showShare:a().bool,showFacets:a().bool,intl:s.gm.isRequired,searchType:a().string.isRequired,selectedIds:a().array.isRequired,selectedIdsForDownload:a().array.isRequired,selectedIdsForPrintAssets:a().array.isRequired,selectedIdsForApproval:a().array.isRequired,facetSelections:a().array.isRequired,onEditSubscribe:a().func.isRequired,acceptSearchDisplayMode:a().func.isRequired,onLoadFacetValues:a().func.isRequired,onLoadCalendarFacetValues:a().func.isRequired,onAddFacetValue:a().func.isRequired,onRemoveFacetValue:a().func.isRequired,onSuppressFacetValue:a().func.isRequired,onSetSort:a().func.isRequired,onShare:a().func.isRequired,onCreateInterestProfile:a().func.isRequired,onPrint:a().func.isRequired,onPrintAssets:a().func.isRequired,onCardAction:a().func,rights:a().object,onSubscribe:a().func.isRequired,onEditSearch:a().func.isRequired,onRemoveAllFacets:a().func.isRequired,onShowMore:a().func.isRequired,beginSearch:a().func.isRequired,locale:a().string.isRequired,setPredefinedSearchInfo:a().func.isRequired,settingsFromCMS:a().object,parentRelax:a().object,subscribeLegend:a().object,styleClassMap:a().object.isRequired},qe.defaultProps={showFacets:!0},function(e,t,o,r,n){var i={};Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=o.slice().reverse().reduce((function(o,r){return r(e,t,o)||o}),i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null)}((Pe=qe).prototype,"launchSearchToEditPredefinedSearch",[Ye.Z],Object.getOwnPropertyDescriptor(Pe.prototype,"launchSearchToEditPredefinedSearch"),Pe.prototype),Oe=Pe))||Oe,lt=o(94127),ct=o(70933),ut=o(54618),dt=o(71559),pt=o(10185),ht=o(36817),mt=o(55750),ft=o(55271);const gt={type:"search",options:[{label:"Action button",type:"Section",id:"actionButton",unlocks:[{label:"selected subscription icon",type:"Color",id:"subscriptionIconColor"}]},{label:"Summary",type:"Section",id:"summary",unlocks:[{label:"Text Alignment",type:"Buttons",id:"textAlign",props:{labels:[n().createElement("i",{className:"nc-icon-outline text_align-left"}),n().createElement("i",{className:"nc-icon-outline text_align-center"}),n().createElement("i",{className:"nc-icon-outline text_align-right"}),n().createElement("i",{className:"nc-icon-outline text_align-justify"})],tooltips:["Left","Center","Right","Justify"],values:["left","center","right","justify"]}}]},{label:"Timeline",type:"Section",id:"timeline",unlocks:[{label:"Timeline Backgroun
1d Color",type:"Color",id:"timelineContainerColor"},{label:"Navigation arrow Color",type:"Color",id:"navArrowColor"},{label:"Timeline Cards",type:"Section",id:"timelineCards",unlocks:[{label:"Cards Background Color",type:"Color",id:"cardsBackground"}]}]},{label:"Header section",type:"Section",id:"headerSection",unlocks:[{label:"Header",type:"Section",id:"headerSection",unlocks:[{label:"Header margin and padding",type:"MarginPadding",id:"headerMarginPadding"},{id:"headerBackgroundColor",label:"Header background color",type:"Color"}]}]}],defaults:{subscriptionIconColor:{},textAlign:"left",padding:"0 16px",timelineContainerColor:{type:"palette",value:"primary"},navArrowColor:{value:"#ffffff"},cardsBackground:{value:"#ffffff"},headerMarginPadding:{"padding-top":"0px","padding-right":"0px","padding-bottom":"0px","padding-left":"0px","margin-top":"0px","margin-right":"0px","margin-bottom":"0px","margin-left":"0px"},headerBackgroundColor:{value:"#ffffff",opacity:1}},rules:function(e){var t=(0,ft.Z)({}).rules;return t.a=(0,ft.Z)({}).setProperty("color",(0,_.Gj)("primary")).rules,{root:t,subscriptionIcon:(0,ft.Z)({}).setColor(e.subscriptionIconColor).rules,textStyle:(0,ft.Z)({}).setProperty("textAlign",e.textAlign).setProperty("padding","0 16px").rules,timelineBackGround:(0,ft.Z)({}).setBackgroundColor(e.timelineContainerColor).rules,timelineNavArrows:(0,ft.Z)({}).setColor(e.navArrowColor).setProperty("borderColor",e.navArrowColor).rules,cardContainer:(0,ft.Z)({}).setBackgroundColor(e.cardsBackground).rules,headerStyle:(0,ft.Z)({}).setMarginPadding(e.headerMarginPadding).setBackgroundColor(e.headerBackgroundColor).rules}}};var yt,bt,St=o(91629),vt=o(33311),wt=o(25666);function Ct(e){return Ct="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},Ct(e)}function kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tt(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xt(e,t){return xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xt(e,t)}function Et(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 o,r=Mt(e);if(t){var n=Mt(this).constructor;o=Reflect.construct(r,arguments,n)}else o=r.apply(this,arguments);return Rt(this,o)}}function Rt(e,t){if(t&&("object"===Ct(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 Mt(e){return Mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mt(e)}var It=["DateCreated_ASC","DateCreated_DESC","DateLastChange_ASC","DateLastChange_DESC"],At=(0,s.D2)((function(e){return{resultList:{textAlign:"left",marginTop:"-0.5rem"},leftResultList:{marginRight:0,"@media (min-width: 1025px)":{marginRight:360}},rightResultList:{marginRight:0,"@media (min-width: 1025px)":{marginLeft:360}},facet:{width:350,textAlign:"left","@media (maxWidth: 1024px)":{display:"none"}},leftFacet:{float:"left"},rightFacet:{float:"right"},iconNoImage:{marginLeft:"8px",marginRight:"8px"},expandMoreLessBtn:{top:"50%",width:"48px",right:"0",textAlign:"center",position:"absolute",transform:"translateY(-50%)"},expandColor:{fontSize:"2.4rem",color:e.palette.textColor},listItem:{height:48,paddingRight:16},listCaptions:{fontSize:"1.6rem"}}}),{withTheme:!0})(yt=(0,Ie.Z)({copyStatics:["defaultProps"]})(yt=(0,s.JQ)((function(e,t){var o=t.router,r=t.params.queryid,n=(0,A.uA)(e,r),i=t.location.state&&t.location.state.queryStatement,a=t.location.state&&t.location.state.yOffset,s=t.location.state&&t.location.state.subscriptionId,l=e.getIn(["account","lastSubId"]);l&&(s=l);var c=null;if(n&&n.queryComponents&&n.queryComponents.size){var u=n.queryComponents.get(0);u.get("isProfile")&&(c=u.toJS())}return{addToList:o&&o.location&&o.location.query&&o.location.query.idToAdd,downloadToAdd:o&&o.location&&o.location.query&&o.location.query.downloadToAdd,loading:e.getIn(["ui","showLoader"]),token:e.getIn(["account","token"]),solrDebug:e.getIn(["settings","showSolrQuery"]),rights:e.getIn(["account","rights"]),locale:e.getIn(["language","locale"]),interestList:(0,ct.dE)(e),cantReserveMoreThanOne:e.getIn(["settings","reservationNoPlace"]),showFavorite:e.getIn(["settings","allowAnonymousBasket"]),haveQueryState:(0,A.LL)(e,r),mappedFQ:(0,A.TZ)(e,r),facets:(0,A.ZS)(e,r),displayMode:(0,A.QA)(e),facetSelections:(0,A.tm)(e,r),order:(0,A.mK)(e,r),sorts:(0,A.KW)(e,r),resultInfo:n,profileData:c,immutablePage:(0,A.iX)(e,r),query:(0,A.oK)(e,r),searchType:(0,A.ar)(e,r),searchMode:(0,A.DA)(e,r),searchSections:(0,A.hW)(e,r),searchListState:(0,A.yT)(e,r),searchSectionMode:(0,A.Jm)(e),queryId:r,queryStatement:i,subscriptionId:s,yOffset:a,settingsFromCMS:(0,P.jQ)(e),queryLabel:(0,A.r6)(e,r),newComment:o&&o.location&&o.location.query&&o.location.query.newComment,newCommentNoticeId:o&&o.location&&o.location.query&&o.location.query.newCommentNoticeId,newCommentDisplayMode:o&&o.location&&o.location.query&&o.location.query.newCommentDisplayMode,user:e.getIn(["account","user"]),userOmnidexid:e.getIn(["account","omnidexid"])}}),(function(e,t){return{onSetSort:function(o){e(p.HD(t.params.queryid,o,parseInt(t.loadingPageSize,10)||8))},onAddFacetValue:function(o,r){e(p.lV(t.params.queryid,o,r,void 0,void 0,parseInt(t.loadingPageSize,10)||8))},onRemoveFacetValue:function(o,r){e(p.Ru(t.params.queryid,o,r,void 0,void 0,parseInt(t.loadingPageSize,10)||8))},onCreateInterestProfile:function(t){e(ut.openCreateInterestProfileDLG(t))},onSuppressFacetValue:function(o,r){e(p.Yd(t.params.queryid,o,r,void 0,void 0,parseInt(t.loadingPageSize,10)||8))},onCardAction:function(o,r,n,i,a,s,l,c,u){switch(o){case d.Z.ACTION_ADD_FAVORITE:e(pt.Dt(r));break;case d.Z.ACTION_REMOVE_FAVORITE:e(pt.E7(r));break;case d.Z.ACTION_ADD_LIST:e(i||a?ut.openBasketListDlg(r,n):ht.showSignIn(window.location.pathname+window.location.search+"?idToAdd="+r,t.location&&t.location.state));break;case d.Z.ACTION_SHARE:e(ut.openShareDialog("result",1,{ids:[r]}));break;case d.Z.ACTION_DOWNLOAD:a||s&&s.get("allowDirectDownload")?e(ut.openBasketDownloadDlg(r,n,"",l,c)):e(ht.showSignIn(window.location.pathname+window.location.search+"?downloadToAdd="+r,t.location&&t.location.state));break;case d.Z.ACTION_PRINT:e(ut.openPrintDlg([r],null,1,!1,void 0,void 0,void 0,u,void 0,void 0,!0,!0,!0));break;case d.Z.ACTION_PRINT_ASSETS:e(ut.openPrintDlg([r],null,1,!1,null,l,!1,u,void 0,void 0,!0,!0,!0));break;case d.Z.ACTION_DOWNLOAD_CONTENT:Qe.h.addToPersonalSpace(a||t.token,r,t.locale).then((function(t){t&&t.resp&&e(ht.
1showTranslatedMessage({id:"DialogSaga.addToPersonalSpace",defaultMessage:"Content added to my repository."}))}));break;case d.Z.ACTION_DOWNLOAD_FLIX:Qe.h.downloadFlix(a||t.token,r).then((function(t){t&&"OK"===t.code&&e(ht.showTranslatedMessage({id:"SearchResultCard.flixDownloaded",defaultMessage:"Flix added to your personal space."}))}))}},goToSearch:function(t){e((0,vt.VF)("/search/"+t))},onShare:function(t,o,r,n){e(ut.openShareDialog("result",r,{ids:t,queryId:o,profileData:n}))},onPrint:function(t,o,r,n){e(ut.openPrintDlg(t,t.length>0?null:o,t.length>0?null:r,!0,void 0,void 0,void 0,n,void 0,void 0,!0,!0,!0))},onPrintAssets:function(t,o,r,n){e(ut.openPrintDlg(t,t.length>0?null:o,t.length>0?null:r,!0,null,n,!1,void 0,void 0,void 0,!0,!0,!0))},onSubscribe:function(t,o,r,n,i,a,s){e(ut.saveSubscription(a,n,o,r,i,s))},onEditSubscribe:function(t,o,r,n,i,a,s){e(ut.openEditSubscriptionDialog(t,o,r,n,i,a,s))},resetSubId:function(){e((0,lt.m0)())},onLoad:function(o,r,n,i){e(p.Xj(t.params.queryid,o,r,parseInt(t.loadingPageSize,10)||8,i)),n&&e((0,lt.Ki)())},onExploreClick:function(t,o){e(p.T3(t,o))},onResultClicked:function(o,r,n,i,a,s){e(ht.showNotice(r,{pathname:t.location.pathname,state:{yOffset:i}},o,n.posInSet,a,s))},onEditSearch:function(t){e(h.DJ(t))},onShowMore:function(o,r,n){e(ut.openDialog(dt.Vg,{queryId:t.params.queryid,index:o,dialogTitle:r,filters:n}))},onRemoveAllFacets:function(){e(p.rG(t.params.queryid,void 0,void 0,parseInt(t.loadingPageSize,10)||8))},onLoadMoreResult:function(o,r,n){e(p.Oh(t.params.queryid,r,n,parseInt(t.loadingPageSize,10)||8))},setCurrentQuery:function(t){e(p.Mm(t))},acceptSearchDisplayMode:function(t,o){e(p.cz(t,o))},beginSearch:function(t){e(p.a$(t.query,t.sf))},onMakeComment:function(t){e(ut.openDialog(dt.Nf,t))},onRequestLogin:function(o,r){e(ht.showSignIn("".concat(window.location.pathname).concat(window.location.search,"?newComment=true&newCommentNoticeId=").concat(o,"&newCommentDisplayMode=").concat(r),t.location&&t.location.state))},setPredefinedSearchInfo:function(t){e((0,mt.yV)(t))},dispatch:e}}))((bt=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&&xt(e,t)}(a,e);var t,o,r,i=Et(a);function a(){var e;kt(this,a);for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return(e=i.call.apply(i,[this].concat(o))).state={selectedIds:e.props.selectedIds,selectedIdsForDownload:[],selectedIdsForPrintAssets:[],selectedIdsForApproval:[],displayMode:!1,findOnOpen:!0},e._onSelectResultItem=function(t,o,r,n,i){var a=(0,Ae.$)(e.state,t,o,r,n,i),s=a.selectedIds,l=a.selectedIdsForDownload,c=a.selectedIdsForPrintAssets,u=a.selectedIdsForApproval;e.setState({selectedIds:s,selectedIdsForDownload:l,selectedIdsForPrintAssets:c,selectedIdsForApproval:u})},e.resultClicked=function(t,o,r){var n=e.props,i=n.queryId,a=n.query;(0,n.onResultClicked)(i,t,o,window.pageYOffset,a,r)},e.onRSSClick=function(t){var o=e.props,r=o.profileData,n=o.locale;t.stopPropagation(),t.preventDefault(),window.open("/in/rest/api/rss?q="+encodeURIComponent(r?r.query:e.getCurrentQuery(e.props))+"&locale="+n)},e.renderQueryStatement=function(t){var o=e.props,r=o.resultInfo,i=o.profileData,a=o.queryId,s=o.query,c=o.searchMode,u=o.searchSections,d=o.queryStatement,p=o.intl,h=o.queryLabel;if(i)return e.renderProfileStatement(t);var m=null;if(null!=r&&(m=r.hits),null==m)return null;var f="-";c&&c.startsWith&&u&&u.length&&"*"!==c&&!c.startsWith("alpha:")&&(f=u.reduce((function(e,t){return t.sf===c?n().createElement("span",null,t.title):e}),""));var g="-";if(d)if(d.message)g=n().createElement("span",{style:{fontWeight:"bold"}},p.formatMessage(d.message,d.params));else{if("DO_NOT_DISPLAY_QS"===d)return n().createElement(l._H,{id:"SearchPage.resultCountFor",defaultMessage:"{hits, number} {hits, plural, one {result} other {results}} {searchModeTitle, select, - {} other {in {searchModeTitle}}} {queryStatement, select, - {} other }",values:{hits:m,queryStatement:g,searchModeTitle:f}});g=n().createElement("span",{style:{fontWeight:"bold"}},d)}
1else if(e.showQuerystatement(a,s))if(h)g=n().createElement("span",{style:{fontWeight:"bold"}},h);else{var y=s;a&&0===a.indexOf("N-EXPLORE")&&(y=y.substring(0,y.indexOf(":")).replace(/_/g," ")+y.substring(y.indexOf(":"),y.length)),g=n().createElement("span",{style:{fontWeight:"bold"}},y)}return t&&(g=n().createElement("span",null,g,t)),n().createElement(l._H,{id:"SearchPage.resultCountFor",defaultMessage:"{hits, page} {hits, plural, one {result} other {results}} {searchModeTitle, select, - {} other {in {searchModeTitle}}} {queryStatement, select, - {} other {for: {queryStatement}}}",values:{hits:m,queryStatement:g,searchModeTitle:f}})},e.renderProfileStatement=function(t){var o=e.props,r=o.resultInfo,i=o.profileData,a=o.theme,s=null;return null!=r&&(s=r.hits),null==s?null:n().createElement("div",null,i.thumbnail&&s?n().createElement("div",{style:{float:"left",width:"100px",height:"80px",marginRight:"8px",marginBottom:"8px",backgroundImage:"url(".concat((0,je.ZP)({size:128,icon:i.thumbnail}),")"),backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",display:u()("(max-width: ".concat(a.breakpoints.values.xsmall-1,"px)")).matches?"none":"block"}}):null,n().createElement("div",null,n().createElement(l._H,{id:"SearchPage.resultCountFor",defaultMessage:"{hits, number} {hits, plural, one {result} other {results}} {searchModeTitle, select, - {} other {in {searchModeTitle}}} {queryStatement, select, - {} other {for: {queryStatement}}}",values:{hits:s,queryStatement:"-",searchModeTitle:n().createElement("span",null,n().createElement("span",null,n().createElement("b",null,i.display)),t)}})),"<p><br></p>"!==i.description?n().createElement("div",{dangerouslySetInnerHTML:{__html:i.description}}):null)},e}return t=a,(o=[{key:"componentWillMount",value:function(){this.props.resetSubId(),this.props.setCurrentQuery(this.getCurrentQuery(this.props)),this.props.relax.isEditing||this.props.onLoad(this.props.showLike,this.props.isRatingEnabled,this.props.cantReserveMoreThanOne,this.props.isTimeMode?{order:"DateCreated_ASC"}:{})}},{key:"componentDidMount",value:function(){this.props.addToList&&(this.props.router.replace("".concat(window.location.pathname).concat(window.location.search.split("?idToAdd=")[0])),this.props.onCardAction(d.Z.ACTION_ADD_LIST,this.props.addToList,"",this.props.showFavorite,this.props.token)),this.props.downloadToAdd&&(this.props.router.replace("".concat(window.location.pathname).concat(window.location.search.split("?downloadToAdd=")[0])),this.props.onCardAction(d.Z.ACTION_DOWNLOAD,[this.props.downloadToAdd],"",this.props.showFavorite,this.props.token))}},{key:"componentWillUnmount",value:function(){this.props.setCurrentQuery()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,o=t.queryId,r=t.mappedFQ;o&&o===e.queryId||this.setState({selectedIds:[],selectedIdsForDownload:[],selectedIdsForPrintAssets:[],selectedIdsForApproval:[]}),r&&v()(r,e.mappedFQ)||this.setState({selectedIds:[],selectedIdsForDownload:[],selectedIdsForPrintAssets:[],selectedIdsForApproval:[]}),this.getCurrentQuery(this.props)!==this.getCurrentQuery(e)&&e.setCurrentQuery(this.getCurrentQuery(e))}},{key:"getCurrentQuery",value:function(e){var t;return e.query&&!e.queryStatement&&("*"===(t=e.query.trim())&&(t=null),"AdvancedQuery"===e.searchType&&(t=null),e.queryId.startsWith("N-")&&(t=null)),t}},{key:"showQuerystatement",value:function(e,t){return null!=e&&(!!e.startsWith("N-EXPLORE")||!e.startsWith("N-")&&t&&"*"!==t.trim())}},{key:"render",value:function(){var e=this,t=this.props,o=t.classes,r=t.resultInfo,i=(t.haveQueryState,t.onLoad,t.hideZmat),a=t.onExploreClick,s=t.showDisplay,l=(t.onAddFacetValue,t.onRemoveFacetValue,t.onRemoveAllFacets,t.onSuppressFacetValue,t.onLoadMoreResult),c=(t.onShowMore,t.onMakeComment),u=t.onRequestLogin,d=t.queryId,p=(t.facets,t.facetSelections,t.mappedFQ,t.intl),h=t.token,m=t.solrDebug,S=t.searchListState,v=t.multiSelection,w=t.rights,C=t.facetDisposition,T=t.styleClassMap,x=t.loading,E=t.profileData,R=t.onCardAction,M=t.setPredefinedSearchInfo,I=t.showFavorite,A=t.showActionButtons,O=t.settingsFromCMS,P=t.thumbnailFormat,q=t.showDocumentThumbn
1ail,D=t.showRSS,j=t.isRatingEnabled,L=t.theme,_=t.beginSearch,N=t.subscriptionId,z=t.relax,B=t.showLike,W=t.router,V=t.newComment,H=t.newCommentNoticeId,Z=t.user,Q=t.userOmnidexid,G=t.isTimeMode,U=t.cantReserveMoreThanOne,J=t.timelineHeight,X=t.resultCardsWidth,K=t.timelineGuideColor,Y=t.documentMarkColor,$=t.bottomArmColor,ee=t.timelineHandleIcon,te=t.loadingPageSize,oe=t.resultCardsHeight,re=t.resultCardsRatio,ne=t.handlePosition,ie=t.handleColor,ae=t.handleSize,se=t.handleBubbleColor,le=t.elevation,ce=t.cardElevation,ue=p.formatMessage,de=!1;null!=r&&r.pageNo<r.maxPageNo&&(de=!0);var pe,he=this.getCurrentQuery(this.props);return(he||E)&&(De.ZP,"/in/rest/api/rss?q=".concat(E?E.query:he),D&&(pe=n().createElement(f(),{minWidth:L.breakpoints.values.xsmall+1},n().createElement(Fe.Z,{onClick:this.onRSSClick,style:{verticalAlign:"bottom",width:"22px",height:"22px",color:"#FD7D00",cursor:"pointer"}})))),n().createElement("div",{style:{position:"absolute",display:"flex",flexDirection:"column",height:"100%",width:"100%"}}," ",n().createElement(y.default,{className:T&&T.headerStyle||"",elevation:(0,wt.Z)(le,ce)},n().createElement("div",{style:{display:"flex",margin:"4px",justifyContent:"space-between"}},n().createElement(Be.default,{size:"small",icon:n().createElement(g.default,null,"keyboard_arrow_left"),style:{color:"black",height:"24px",textTransform:"uppercase"},onClick:(0,k.PF)((function(){return e.props.goToSearch(d)})),label:ue({id:"SearchTools.timelineRetour",defaultMessage:"Retour vers la recherche"})}),n().createElement(st,{styleClassMap:T,rights:w,showDisplay:s,displayMode:"timeline",multiSelection:v,subscriptionId:N,onCardAction:R,profileData:E,selectedIds:this.state.selectedIds,selectedIdsForDownload:this.state.selectedIdsForDownload,selectedIdsForPrintAssets:this.state.selectedIdsForPrintAssets,selectedIdsForApproval:this.state.selectedIdsForApproval,showFacets:"none"!==C,beginSearch:_,locale:p.locale,showFavorite:I,setPredefinedSearchInfo:M,settingsFromCMS:O,token:h,showSort:this.props.showSort,showShare:this.props.showShare,facets:this.props.facets,sorts:G&&this.props.sorts?this.props.sorts.filter((function(e){return It.includes(e.value)})):this.props.sorts,showList:this.props.showList,showMosaic:this.props.showMosaic,showWaterfall:this.props.showWaterfall,query:this.props.query,order:this.props.order,mappedFQ:this.props.mappedFQ,queryId:this.props.queryId,interestList:this.props.interestList,intl:this.props.intl,searchType:this.props.searchType,facetSelections:this.props.facetSelections,onEditSubscribe:this.props.onEditSubscribe,acceptSearchDisplayMode:this.props.acceptSearchDisplayMode,onAddFacetValue:this.props.onAddFacetValue,onRemoveFacetValue:this.props.onRemoveFacetValue,onSuppressFacetValue:this.props.onSuppressFacetValue,onSetSort:this.props.onSetSort,onShare:this.props.onShare,onCreateInterestProfile:this.props.onCreateInterestProfile,onPrint:function(t,o,r){return e.props.onPrint(t,o,r,(0,St.M)(e.props))},onPrintAssets:this.props.onPrintAssets,onSubscribe:this.props.onSubscribe,onEditSearch:this.props.onEditSearch,onRemoveAllFacets:this.props.onRemoveAllFacets,onShowMore:this.props.onShowMore,parentRelax:this.props.relax,subscribeLegend:this.props.subscribeLegend,hits:r&&r.hits}))),n().createElement(Me,{classes:o,styleClassMap:T,isTimeMode:G,resultInfo:r,intl:p,loading:x,hideZmat:i,cantReserveMoreThanOne:U,showFavorite:I,isRatingEnabled:j,isEditing:z.editing,isBuilding:z.building,showLike:B,multiSelection:v,profileData:E,thumbnailFormat:P,showDocumentThumbnail:q,showActionButtons:A,queryId:d,queryStatement:this.props.query,searchListState:S,selectedIds:this.state.selectedIds,onCardAction:function(t,o,r,n,i,a,s,l){return e.props.onCardAction(t,o,r,n,i,a,s,l,(0,St.M)(e.props))},onSelectItem:this._onSelectResultItem,onExploreClick:a,onResultClicked:this.resultClicked,onLoadMoreResult:l,onMakeComment:c,onRequestLogin:u,hasMore:de,solrDebug:m,rights:w,token:h,settingsFromCMS:O,router:W,newComment:V,newCommentNoticeId:H,user:Z,theme:L,userOmnidexid:Q,textStyle:T.textStyle,textAlignment:z.styleValues.textAlign,timelineHeight:J,resultCardsWidth:parseInt(X,10)||250,timelineGuideColor:K,documentMarkColor:Y,bottomArmColor:$,timelineHandleIcon:ee,loadingPageSize:parseInt(te,10)||8,resultCardsHeight:oe,resultCardsRatio:re,handlePosition:ne,handleColor:ie,handleSize:ae,handleBubbleColor:se}),n().createElement(F.default,{style:{backgroundColor:"#191919",paddingLeft:"auto",flex:"0 0 36px"},elevation:6,position:"relative"},n().createElement("div",{style:{margin:"auto 16px",display:"flex",justifyContent:"space-between"}},n().createElement("div",{style:{display:"flex",margin:"auto 0",backgroundColor:"#191919"}},n().createElement(st,{isTimeline:!0,styleClassMap:T,rights:w,showDisplay:s,displayMode:"timeline",multiSelection:v,subscriptionId:N,onCardAction:R,profileData:E,selectedIds:this.state.selectedIds,selectedIdsForDownload:this.state.selectedIdsForDownload,selectedIdsForPrintAssets:this.state.selectedIdsForPrintAssets,selectedIdsForApproval:this.state.selectedIdsForApproval,showFacets:"none"!==C,beginSearch:_,locale:p.locale,showFavorite:I,setPredefinedSearchInfo:M,settingsFromCMS:O,token:h,showSort:this.props.showSort,showShare:this.props.showShare,facets:this.props.facets,sorts:G&&this.props.sorts?this.props.sorts.filter((function(e){return It.includes(e.value)})):this.props.sorts,showList:this.props.showList,showMosaic:this.props.showMosaic,showWaterfall:this.props.showWaterfall,query:this.props.query,order:this.props.order,mappedFQ:this.props.mappedFQ,queryId:this.props.queryId,interestList:this.props.interestList,intl:this.props.intl,searchType:this.props.searchType,facetSelections:this.props.facetSelections,onEditSubscribe:this.props.onEditSubscribe,acceptSearchDisplayMode:this.props.acceptSearchDisplayMode,onAddFacetValue:this.props.onAddFacetValue,onRemoveFacetValue:this.props.onRemoveFacetValue,onSuppressFacetValue:this.props.onSuppressFacetValue,onSetSort:this.props.onSetSort,onShare:this.props.onShare,onCreateInterestProfile:this.props.onCreateInterestProfile,onPrint:function(t,o,r){return e.props.onPrint(t,o,r,(0,St.M)(e.props))},onPrintAssets:this.props.onPrintAssets,onSubscribe:this.props.onSubscribe,onEditSearch:this.props.onEditSearch,onRemoveAllFacets:this.props.onRemoveAllFacets,onShowMore:this.props.onShowMore,parentRelax:this.props.relax,subscribeLegend:this.props.subscribeLegend,hits:r&&r.hits})),n().createElement("div",{style:{margin:"auto 0",fontSize:"1.4rem"}}
1,this.renderQueryStatement(pe)))),x&&!(S.imResultSet&&S.imResultSet.size)&&n().createElement("div",{style:{position:"absolute",top:40,left:0,width:"100%",textAlign:"center",display:"block"}},n().createElement(b.default,{size:60})))}}])&&Tt(t.prototype,o),r&&Tt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component),bt.propTypes={accessibilityLegend:a().func.isRequired,theme:a().object.isRequired,intl:s.gm.isRequired,queryId:a().string.isRequired,subscriptionId:a().string,downloadToAdd:a().string,idToAdd:a().string,displayModeCMS:a().string,queryStatement:a().oneOfType([a().string,a().object]),query:a().string,addToList:a().string,haveQueryState:a().bool.isRequired,mappedFQ:a().object.isRequired,relax:a().object.isRequired,facets:a().array.isRequired,facetSelections:a().array.isRequired,cantReserveMoreThanOne:a().bool,showLike:a().bool,isTimeMode:a().bool,showFavorite:a().bool,order:a().string.isRequired,sorts:a().array.isRequired,resultInfo:a().object.isRequired,profileData:a().object,immutablePage:a().object,location:a().object,searchMode:a().oneOfType([a().string,a().object]),searchType:a().string,token:a().string,searchSections:a().array,solrDebug:a().bool,showList:a().bool,showMosaic:a().bool,showWaterfall:a().bool,showShare:a().bool,displayMode:a().oneOfType([a().string,a().bool]),hideZmat:a().bool,rights:a().object,selectedIds:a().array.isRequired,onEditSubscribe:a().func.isRequired,onSubscribe:a().func.isRequired,onSetSort:a().func.isRequired,onAddFacetValue:a().func.isRequired,onRemoveFacetValue:a().func.isRequired,onRemoveAllFacets:a().func.isRequired,onSuppressFacetValue:a().func.isRequired,onCardAction:a().func.isRequired,onLoad:a().func.isRequired,resetSubId:a().func.isRequired,onExploreClick:a().func.isRequired,acceptSearchDisplayMode:a().func.isRequired,onResultClicked:a().func.isRequired,onEditSearch:a().func.isRequired,onShowMore:a().func.isRequired,onLoadMoreResult:a().func.isRequired,onMakeComment:a().func.isRequired,onRequestLogin:a().func.isRequired,dispatch:a().func.isRequired,setCurrentQuery:a().func.isRequired,searchListState:a().object.isRequired,facetDisposition:a().string,facetDisplay:a().string,styleClassMap:a().object,loading:a().bool,showRSS:a().bool,showDisplay:a().bool,showSort:a().bool,multiSelection:a().bool,isRatingEnabled:a().bool,showToolbar:a().bool,showActionButtons:a().bool,thumbnailFormat:a().string,showDocumentThumbnail:a().bool,searchSectionMode:a().string.isRequired,yOffset:a().number,findOn:a().array,findOnTitle:a().object,localized:a().func,classes:a().object,beginSearch:a().func,settingsFromCMS:a().object,setPredefinedSearchInfo:a().func,onCreateInterestProfile:a().func.isRequired,queryLabel:a().string,router:a().object,newComment:a().string,newCommentNoticeId:a().string,newCommentDisplayMode:a().string,user:a().string,userOmnidexid:a().string,interestList:a().object,onShare:a().func.isRequired,onPrint:a().func.isRequired,onPrintAssets:a().func.isRequired,locale:a().string,subscribeLegend:a().object,noticeLabel:a().object,callNumberShortLabel:a().object,callNumberLongLabel:a().object,timelineHeight:a().string,resultCardsWidth:a().string,timelineGuideColor:a().object,documentMarkColor:a().object,navArrowColor:a().object,bottomArmColor:a().object,timelineHandleIcon:a().object,loadingPageSize:a().string,resultCardsHeight:a().string,resultCardsRatio:a().string,handlePosition:a().string,handleColor:a().object,handleBubbleColor:a().object,handleSize:a().string,elevation:a().oneOfType([a().string,a().number]),cardElevation:a().oneOfType([a().string,a().number])},bt.defaultProps={facetDisposition:"right",displayModeCMS:"default",thumbnailFormat:"portrait",selectedIds:[],showDisplay:!0,showSort:!0,showShare:!0,multiSelection:!1,showToolbar:!0,showActionButtons:!0,showDocumentThumbnail:!0,showWaterfall:!0,showMosaic:!0,showList:!0,isRatingEnabled:!1,findOnTitle:{fr:"Trouver sur",en:"Find on",_localized:!0},timelineHeight:"36px",resultCardsWidth:"250",timelineGuideColor:{type:"hex",value:"#e2e3e5"},documentMarkColor:{type:"hex",value:"#ffffff"},bottomArmColor:{type:"hex",value:"#ffeeba"},timelineHandleIcon:{family:"Google icons",className:"material-icons",content:"filter_center_focus"},loadingPageSize:"8",resultCardsHeight:"85%",resultCardsRatio:"ratio1x2",handlePosition:"center",handleColor:{type:"hex",value:"#ffffff"},handleSize:"36px",handleBubbleColor:{type:"hex",value:"#000000",opacity:50},elevation:0},bt.iconClass="nc-icon-mini ui-1_zoom",bt.propsSchema=[{label:"Load Page Size",id:"loadingPageSize",type:"Number",props:{min:8,max:200}},{label:"Show rating",id:"isRatingEnabled",type:"Optional"},{label:"Bottom Timeline Height",id:"timelineHeight",type:"Number",props:{allowed:["px","%"]}},{label:"Result cards height",id:"resultCardsHeight",type:"Number",props:{allowed:["%"],max:80}},{label:"Result card ratio",id:"resultCardsRatio",type:"Select",props:{labels:["1:10","1:5","3:10","2:5","1:2","3:5","7:10","4:5","9:10","1:1"],values:["ratio1-10","ratio2x5","ratio3-10","ratio2x5","ratio1x2","ratio3x5","ratio7-10","ratio4x5","ratio9-10","ratio1x1"]}},{label:"Timeline Guide Color",type:"Color",id:"timelineGuideColor"},{label:"Document Marks Color",type:"Color",id:"documentMarkColor"},{label:"Handle Color",type:"Color",id:"handleColor"},{label:"Handle Size",type:"Number",id:"handleSize",props:{allowed:["px"]}},{label:"Timeline Handle Position",id:"handlePosition",type:"Select",props:{labels:["Top","Center"],values:["top","center"]}},{label:"Timeline Handle Bubble",id:"handleBubbleColor",type:"Color"},{label:"Enable time mode",id:"isTimeMode",type:"Optional",unlocks:[{label:"Timeline Handle",id:"timelineHandleIcon",type:"Icon"},{label:"Timeline Arm Color",type:"Color",id:"bottomArmColor",default:{value:"#ffeeba"}}]},{label:"Card elevation",type:"Number",id:"elevation",props:{clearable:!0,min:0,max:9}}],bt.style=gt,yt=bt))||yt)||yt)||yt}}]);
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.