1(self.webpackChunkmondoin_mobile_ui=self.webpackChunkmondoin_mobile_ui||[]).push([[3778],{23388:(e,t,o)=>{"use strict";var n=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var r=n(o(59713)),a=n(o(6479)),i=n(o(67154)),s=n(o(67294)),l=(n(o(45697)),n(o(94184))),c=(o(93142),n(o(78252))),u=n(o(16070)),d=o(98741),p=function(e){return{root:(0,i.default)({},e.typography.button,{boxSizing:"border-box",minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]},color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],"&$focusVisible":{boxShadow:e.shadows[6]},"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground},textDecoration:"none"},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},primary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},secondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},extended:{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48,"&$sizeSmall":{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,he
1ight:34},"&$sizeMedium":{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40}},focusVisible:{},disabled:{},colorInherit:{color:"inherit"},sizeSmall:{width:40,height:40},sizeMedium:{width:48,height:48}}};function m(e){var t,o=e.children,n=e.classes,c=e.className,p=e.color,m=e.disabled,h=e.disableFocusRipple,f=e.focusVisibleClassName,b=e.size,g=e.variant,y=(0,a.default)(e,["children","classes","className","color","disabled","disableFocusRipple","focusVisibleClassName","size","variant"]);return s.default.createElement(u.default,(0,i.default)({className:(0,l.default)(n.root,(t={},(0,r.default)(t,n.extended,"extended"===g),(0,r.default)(t,n.primary,"primary"===p),(0,r.default)(t,n.secondary,"secondary"===p),(0,r.default)(t,n["size".concat((0,d.capitalize)(b))],"large"!==b),(0,r.default)(t,n.disabled,m),(0,r.default)(t,n.colorInherit,"inherit"===p),t),c),disabled:m,focusRipple:!h,focusVisibleClassName:(0,l.default)(n.focusVisible,f)},y),s.default.createElement("span",{className:n.label},o))}t.styles=p,m.defaultProps={color:"default",component:"button",disabled:!1,disableFocusRipple:!1,size:"large",type:"button",variant:"round"};var h=(0,c.default)(p,{name:"MuiFab"})(m);t.default=h},51922:(e,t,o)=>{"use strict";var n=o(95318);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.default}});var r=n(o(23388))},87239:(e,t,o)=>{"use strict";var n=o(95318);t.Z=void 0;var r=n(o(67294)),a=(0,n(o(2108)).default)(r.default.createElement(r.default.Fragment,null,r.default.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),r.default.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"})),"FileCopy");t.Z=a},73778:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>le});var n,r,a,i=o(75593),s=o(67294),l=o.n(s),c=o(45697),u=o.n(c),d=o(77314),p=o(1852),m=o.n(p),h=o(56261),f=o(15279),b=o(94184),g=o.n(b),y=o(65470),v=o.n(y),w=o(61851),x=o(73935),k=o.n(x),E=o(51147),C=o(71426),R=o(48304),S=o(30060),O=o(48281),P=o.n(O),T=o(97144),N=o(52548),A=o(60447),j=o(57472),F=o(48519),_=o(82067),D=o(51922),M=o(1386),I=o(58874);function B(e){return B="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},B(e)}function z(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}
1function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function q(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,n=Z(e);if(t){var r=Z(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return W(this,o)}}function W(e,t){if(t&&("object"===B(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 Z(e){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Z(e)}var V=(n=(0,h.D2)((function(e){return{cardSummaryRoot:{borderRadius:"0px",position:"relative",display:"flex",alignItems:"stretch",flexDirection:"row"},zmatSticker:{color:"white",backgroundColor:"black",top:"16px",right:"0px",fontSize:"1.6rem",fontWeight:"bold",height:"40px",textAlign:"center",padding:"8px 12px 8px 16px",borderTopLeftRadius:"20px",borderBottomLeftRadius:"20px",display:"inline-flex"},top:{textAlign:e.isRtl?"right":"left"},title:{fontSize:"2rem",fontWeight:"bold",lineHeight:"normal",fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',color:e.palette.textColor},typographyLabelBtn:{color:"rgba(32, 32, 32, 0.8)",fontSize:"1.2rem"},iconBtn:{fontSize:"2.4rem"},notes:{position:"relative",left:"200px",bottom:"32px"},metaFieldsContainer:{paddingBottom:"8px"},clearfix:{clear:"both"},metaFieldsMainContentContainer:{paddingTop:"16px",margin:"auto 0",display:"flex",flexDirection:"column",justifyContent:"space-around",flexBasis:"50%"},BottomNavigationContainer:{width:"100%"},accessibilityHiddenHeaders:{display:"none"},metaFields:{textAlign:e.isRtl?"right":"left"},metaLabel:{fontSize:"1.3rem",lineHeight:"normal",margin:e.isRtl?"4px 0px 2px 6px":"4px 6px 2px 0px",color:"rgba(0, 0, 0, 0.541176)",fontWeight:"bold",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block",width:"30%",verticalAlign:"text-top","& + .meta-values":{width:"65%",marginBottom:"2px"}},metaValue:{fontSize:"1.3rem",lineHeight:"normal",margin:"4px 0px 8px",display:"inline-block",width:"100%",verticalAlign:"top"},metaFieldExploreValue:{textDecoration:"underline",cursor:"pointer",color:e.palette.colorContrastAdjuster?(0,I.z)(e.palette.primary1Color,e.palette.background.paper,"light"===e.palette.type):e.palette.primary1Color},fab:{marginRight:"8px",backgroundColor:"white"},feedbackText:{margin:"0 0 5px 5px",color:"#8b8b8b"},feedback:{marginLeft:"20px",display:"flex",flexWrap:"wrap"},feedbackIcon:{fontSize:"1.2em",width:"1em",color:"#0C659F",verticalAlign:"middle",margin:"0px 5px"}}}),{withTheme:!0}),(0,h.XN)(r=n((a=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&&L(e,t)}(a,e);var t,o,n,r=q(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=r.call(this,e)).state={value:0},t.handleChange=function(e,o){t.setState({value:o})},t._getReaderUrl=function(){var e=t.props,o=e.instanceId,n=e.noticeSummary,r=e.documentList,a=e.aspects[E.O1],i="http://".concat(window.location.host),s="".concat(o.replace("h::","")),l="";if(a){var c=(0,F.YA)(a,"ark")||[];if(c.length>0){var u=c[0].qa;u&&u.Answer&&(l="&ark=/ark:/".concat(u.Answer))}}if("DocumentReader"===n.readerEnabled){var d="";if(a){var p=(0,F.YA)(a,"documentAnchor")||[];if(p.length>0){var m=p[0].qa;m&&m.Answer&&(d="#nameddest=".concat(m.Answer))}}var h="";if(r&&r.length)for(var f=0;f<r.length;f++)if(r[f].Document&&"Document"===r[f].DocumentType){h="&file=/in/rest/annotationSVC/DownloadWatermarkedAttachment/".concat(r[f].Document),l&&(h+="".concat(l,"/PDF/").concat(r[f].DocumentFileName)),h+=d;break}return"".concat(i,"/documentsReader?id=").concat(s).concat(h)}return"".concat(i,"/in/imageReader.xhtml?id=").concat(s).concat(l)},t.refreshMode=function(){var e=!1;(e=t._container?k().findDOMNode(t._container).offsetWidth<=N.j.xmedium:P()("(max-width: ".concat(N.j.xmedium,"px)")).matches)!==t.state.phone&&t.setState({phone:e})},t.bottomNavStyle=function(e){return{width:v().msie?"".concat(Math.min(100,35*e),"%"):"100%",margin:"auto",height:"initial",minHeight:"56px",marginBottom:"7px"}},t._renderActionButtons=function(){var e=t.props,o=e.instanceId,n=e.isFavorite,r=e.onResultAction,a=e.rights,i=e.showFavorite,s=e.token,c=e.noticeSummary,u=e.classes,d=e.theme,p=e.cmsSettings,m=e.showButtonEnrich,h=e.showButtonShare,f=e.intl,b
1=e.showPrintBtn,g=[],y=f.formatMessage,v=c.title;return c.allowImageSubmission&&g.push(l().createElement(D.default,{className:u.fab,key:"submitImage",onClick:(0,T.PF)((function(){r(w.Z.ACTION_REPLACE_IMAGE,o)})),size:"small",color:"default","aria-label":"add"},l().createElement(R.default,{className:u.iconBtn},"insert_photo"))),a&&a.get("allowViewBaskets")&&(n?g.push(l().createElement(D.default,{className:u.fab,key:"favorite",onClick:(0,T.PF)((function(){r(w.Z.ACTION_REMOVE_FAVORITE,o)})),size:"small",color:"default","aria-label":"add"},l().createElement(R.default,{color:"error",className:u.iconBtn},"favorite_border"))):g.push(l().createElement(D.default,{className:u.fab,key:"favorite",onClick:(0,T.PF)((function(){r(w.Z.ACTION_ADD_FAVORITE,o)})),size:"small",color:"default","aria-label":"add"},l().createElement(R.default,{className:u.iconBtn},"favorite_border"))),"true"!==p.useOnlyDefaultList&&g.push(l().createElement(D.default,{className:u.fab,key:"playlist_add",label:y({id:"MetaFieldsBlock.add",defaultMessage:"Add"}),onClick:(0,T.PF)((function(){r(w.Z.ACTION_ADD_LIST,o,i,s)})),size:"small",color:"default","aria-label":"add"},l().createElement(R.default,{className:u.iconBtn},"playlist_add"))),t.props.rights.get("allowContentTypeAssetDownload")&&t.props.noticeSummary&&t.props.noticeSummary.TypeOfDocumentFacet&&t.props.rights.get("allowContentTypeAssetDownload").includes(t.props.noticeSummary.TypeOfDocumentFacet)&&g.push(l().createElement(D.default,{className:u.fab,key:"download",label:y({id:"DownloadButton.label",defaultMessage:"Download"}),onClick:function(){return r(w.Z.ACTION_DOWNLOAD,o,i,s,v,[t.props.noticeSummary.readerEnabled])},size:"small",color:"default","aria-label":"add"},l().createElement(R.default,{className:u.iconBtn},"get_app")))),(m&&P()("(min-width: ".concat(d.breakpoints.values.medium+1,"px)")).matches||b)&&g.push(l().createElement(D.default,{className:u.fab,key:"print",onClick:(0,T.PF)((function(){return r(w.Z.ACTION_PRINT,o)})),size:"small",color:"default","aria-label":"add"},l().createElement(R.default,{className:u.iconBtn},"print"))),P()("(min-width: ".concat(d.breakpoints.values.medium+1,"px)")).matches&&t.props.rights.get("allowContentTypeAssetPrinting")&&t.props.noticeSummary&&t.props.noticeSummary.TypeOfDocumentFacet&&t.props.rights.get("allowContentTypeAssetPrinting").includes(t.props.noticeSummary.TypeOfDocumentFacet)&&g.push(l().createElement(D.default,{className:u.fab,key:"printMedia",onClick:function(){return r(w.Z.ACTION_PRINT_ASSETS,o,null,null,null,[c.readerEnabled])},size:"small",color:"default","aria-label":"add"},l().createElement(R.default,{className:u.iconBtn},"comment"))),h&&g.push(l().createElement(D.default,{className:u.fab,key:"share",onClick:(0,T.PF)((function(){r(w.Z.ACTION_SHARE,o,null,
1null,v)})),size:"small",color:"default","aria-label":"add"},l().createElement(R.default,{className:u.iconBtn},"share"))),g},t.state={phone:!1},t}return t=a,(o=[{key:"componentWillMount",value:function(){this.refreshMode()}},{key:"componentDidMount",value:function(){window.addEventListener("resize",this.refreshMode)}},{key:"componentWillReceiveProps",value:function(e){this.props.relax.display!==e.relax.display&&this.refreshMode()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.refreshMode)}},{key:"countLengthWithChild",value:function(e){var t=this;if(e&&e.forEach){var o=0;return e.forEach((function(e){o+=t.countLengthWithChild(e)})),o}if(e&&e.children&&e.children.forEach){var n=1;return e.children.forEach((function(e){n+=t.countLengthWithChild(e)})),n}return 1}},{key:"_renderRatingPart",value:function(){var e,t=this.props,o=t.rating,n=t.isRatingEnabled,r=t.aspects[E.Bx],a=t.intl,i=t.classes,s=t.showComment,c=a.formatMessage;if(s){var u=this.countLengthWithChild(r);e=u>1?"".concat(u," ").concat(c({id:"MetaFieldsBlock.comments",defaultMessage:"comments"})):"".concat(u," ").concat(c({id:"MetaFieldsBlock.comment",defaultMessage:"comment"}))}return n||s?l().createElement("div",{style:{fontSize:"1.3rem"}},l().createElement("div",{className:i.feedbackText},c({id:"Comment.ratings_and_reviews",defaultMessage:"Rating and reviews"})),l().createElement("div",{className:g()(i.feedbackText),style:{fontWeight:"bold"}},n&&o&&o.ratings&&l().createElement("div",{className:i.feedback},l().createElement(R.default,{className:i.feedbackIcon},"star"),"".concat((o.ratings.average||0).toFixed(1)," / 5 - ").concat(o.ratings.totalCount," ").concat(c({id:"Comment.review",defaultMessage:"review"}))),s&&l().createElement("div",{className:i.feedback},l().createElement(R.default,{className:i.feedbackIcon},"chat"),e))):null}},{key:"_renderZmatSticker",value:function(e){var t=this.props,o=t.showZmat,n=t.classes;return o&&e.zmatDisplay?l().createElement("div",{className:n.zmatSticker},l().createElement("span",null,e.zmatDisplay[0].value)):null}},{key:"renderMap",value:function(){var e=this.props,t=e.glatlong,o=e.showMapIfLocationFound,n=e.cmsSettings;if(!t||!t.length||!o)return null;var r=this.props.glatlong[0].qa.Answer.split(",");return l().createElement(_.default,{style:{width:280,height:280,position:"absolute",bottom:-100,left:-100,borderRadius:"50%",border:"8px solid white"}},l().createElement(M.default,{zoom:14,lat:r[0],lng:r[1],useMarker:!0,googleAPI:n&&n.googleAPI,interactive:!1}))}},{key:"render",value:function(){var e=this.props,t=e.instanceId,o=e.hideZmatDuplicate,n=e.noticeSummary,r=e.intl,a=e.onExploreClick,i=e.exploreSf,s=e.classes,c=e.theme,u=e.glatlong,d=e.showMapIfLocationFound,p=e.isRatingEnabled,m=e.rating,h=e.cmsSettings,f=e.terms,b=e.currentQuery,g=e.rights;if(r.formatMessage,!n||!n.title)return null;var y=n.title,w=(0,j.G9)(n),x=(v().msie&&v().version,this._getReaderUrl()),k=this._renderActionButtons(),E=!this.state.phone&&u&&u.length&&d,R=p&&m&&m.ratings;return l().createElement("div",{style:{position:"relative"}},l().createElement(_.default,{style:{position:"relative",minHeight:250,textAlign:"left",borderRadius:"16px",paddingBottom:E?180:R?80:0}},l().createElement("div",{style:this.state.phone?{height:250,background:"url('/in/rest/Thumb/image?id=".concat(encodeURIComponent(t),"') center center/cover no-repeat")}:{position:"absolute",top:0,left:"35%",right:0,bottom:0,background:"url('/static/imgs/card_effect.png') left top no-repeat, url('/in/rest/Thumb/image?id=".concat(encodeURIComponent(t),"') center center/cover no-repeat")}}),k&&!!k.length&&l().createElement("div",{style:{position:"absolute",top:"16px",right:0}},k,w&&this._renderZmatSticker(w)),l().createElement("div",{style:{position:"relative",width:this.state.phone?"100%":"40%"}},l().createElement(S.default,null,l().createElement(C.default,{variant:"h5",component:"h2",style:{fontWeight:"bold",marginBottom:16}},y),l().createElement("div",{className:s.metaFieldsContainer},(w||n.readerEnabled&&"VideoReader"!==n.readerEnabled&&x)&&l().createElement(A.NS,{metaFields:w,classes:s,intl:r,onExploreClick:a,exploreSf:i,readerType:n.readerEnabled,openReaderUrl:x,hideZmat:o,theme:c,label:n.readerLabel,highlightSearchTerms:null==h?void 0:h.highlightSearchTerms,terms:f,currentQuery:b,rights:g})))),l().createElement("div",{className:s.notes,style:{left:E?200:10}},this._renderRatingPart())),E&&this.renderMap())}}])&&z(t.prototype,o),n&&z(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.Component),a.propTypes={classes:u().object,theme:u().object,rights:u().object.isRequired,token:u().string,title:u().string,instanceId:u().string.isRequired,showFavorite:u().bool,isFavorite:u().bool,showButtonFavorite:u().bool,showButtonAddAlbum:u().bool,showButtonEnrich:u().bool,showButtonShare:u().bool,intl:h.gm,onResultAction:u().func.isRequired,onExploreClick:u().func.isRequired,exploreSf:u().string,playlist:u().array,noticeSummary:u().object,rating:u().object,isRatingEnabled:u().bool,showZmat:u().bool,showPrintBtn:u().bool,showComment:u().bool,hideZmatDuplicate:u().bool,documentList:u().array,aspects:u().object,relax:u().object,cmsSettings:u().object,stickers:u().array,glatlong:u().any,showMapIfLocationFound:u().bool,terms:u().array,currentQuery:u().string},a.defaultProps={showZmat:!1,showPrintBtn:!0},r=a))||r)||r),H=o(39986),Q=o(59067),U=o(46507),G=o(83638),$=o(87239),Y=o(73566);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)}function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},J.apply(this,arguments)}function K(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function ee(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?K(Object(o),!0).forEach((function(t){te(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):K(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function te(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ne(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function re(e,t){return re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},re(e,t)}function ae(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,n=se(e);if(t){var r=se(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return ie(this,o)}}function ie(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 function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function se(e){return se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},se(e)}var le=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&&re(e,t)}(a,e);var t,o,n,r=ae(a);function a(){var e;oe(this,a);for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return(e=r.call.apply(r,[this].concat(o))).handleTabChangeSwipe=function(t){return e.handleTabChange(null,t)},e.handleTabChange=function(t,o){e.props.children&&e.props.children[o]&&(e.setState({tab:o}),e.props.relax.editing&&e.props.selectElement(e.props.children[o],e.props.relax.childrenContext||e.props.relax.context))},e}return t=a,(o=[{key:"getInitState",value:function(){return{tab:0,poster:this.getPoster(this.props),glatlong:this.getGLatLong(this.props)}}},{key:"componentWillMount",value:function(){this.props.setCurrentQuery(this.getCurrentQuery(this.props)),(this.props.relax.editing||this.props.relax.building)&&this.setState({displayContent:!0}),this.props.onLoad(),this.props.relax.editing||this.props.relax.building||(this.props.showComment&&(null!==this.props.aspects[E.Bx]&&void 0!==this.props.aspects[E.Bx]||this.props.onRequestAspects([E.Bx])),this.props.showLike&&this.props.loadNumberOfLike(this.props.noticeId))}},{key:"componentDidMount",value:function(){var e=this;this.props.addToList&&(this.props.router.replace("".concat(window.location.pathname).concat(window.location.search.split("&idToAdd=")[0])),this.props.onResultAction(w.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.onResultAction(w.Z.ACTION_DOWNLOAD,this.props.downloadToAdd,this.props.showFavorite,this.props.token)),this.props.relax.editing||this.props.relax.building||(this._timeout=setTimeout((function(){return e.setState({displayContent:!0})}),500))}},{key:"componentWillReceiveProps",value:function(e){if((this.props.zmat!==e.zmat&&e.zmat||this.props.poster!==e.poster||this.props.usePoster!==e.usePoster)&&this.setState({poster:this.getPoster(e)}),(this.props.aspects&&this.props.aspects[E.O1])!==(e.aspects&&e.aspects[E.O1])&&e.aspects&&e.aspects[E.O1]||this.props.cmsSettings!==e.cmsSettings&&(!this.props.cmsSettings||this.props.cmsSettings.googleAPI!==e.cmsSettings.googleAPI)||this.props.usePoster!==e.usePoster){var t=this.getGLatLong(e);(t||this.state.glatlong)&&this.setState({glatlong:t})}this.getCurrentQuery(this.props)!==this.getCurrentQuery(e)&&e.setCurrentQuery(this.getCurrentQuery(e)),e.childrenProps&&(this.props.childrenProps&&this.props.childrenProps.length)!==e.childrenProps.length&&e.childrenProps.length<=this.state.tab&&this.setState({tab:e.childrenProps.length-1})}},{key:"componentWillUnmount",value:function(){this.props.setCurrentQuery(),this._timeout&&clearTimeout(this._timeout)}},{key:"getCurrentQuery",value:function(e){var t;return e.query&&("*"===(t=e.query.trim())&&(t=null),e.searchType&&"AdvancedQuery"===e.searchType&&(t=null),e.queryId&&(e.queryId.startsWith("N-")||e.queryId.startsWith("basket"))&&(t=null)),t}},{key:"getPoster",value:function(e){var t,o,n,r=e.zmat,a=e.usePoster,i=e.poster,s=e.localized;return a&&i?(i.forEach((function(e){e.zmat===r&&(t=(0,f.Ep)(s(e.image)),o=e.opacity/100,n=e.blur)}
1)),t||i.forEach((function(e){e.zmat||(t=(0,f.Ep)(s(e.image)),o=e.opacity/100,n=e.blur)})),{url:t,opacity:o,blur:n}):null}},{key:"getGLatLong",value:function(e){if(!(e&&e.aspects&&e.aspects[E.O1]&&e.aspects[E.O1].length&&e.usePoster))return null;var t=e.aspects[E.O1].filter((function(e){return"glatlong"===e.name}));return t.length&&t[0].values&&t[0].values.length?t[0].values:null}},{key:"getPosterFromMeta",value:function(){var e=this.props;if(!(e&&e.aspects&&e.aspects[E.O1]&&e.aspects[E.O1].length))return null;var t=e.aspects[E.O1].filter((function(e){return"poster"===e.name}));return t.length&&t[0].values&&t[0].values.length&&t[0].values[0]&&t[0].values[0].qa&&t[0].values[0].qa.Document?t[0].values[0].qa.Document:null}},{key:"preventClick",value:function(e){e.stopPropagation(),e.preventDefault()}},{key:"renderTabs",value:function(){var e=this,t=this.props,o=t.childrenProps,n=t.localized,r=t.styleClassMap;return o.map((function(t,o){return l().createElement(G.default,{key:o,onClick:function(t){return e.handleTabChange(t,o)},className:g()(r.tabHeader,e.state.tab===o&&r.activeTabHeader)},n(t.title)||"")}))}},{key:"renderTabContainer",value:function(){var e=this.props,t=e.useTabs,o=e.classes,n=e.styleClassMap,r=e.intl.formatMessage;return t?l().createElement("div",{style:{textAlign:"right"},className:n.holder},this.renderTabs()):l().createElement("h2",{className:o.accessibilityHiddenHeaders},r({id:"MetaFieldsBlock.noticeContent",defaultMessage:"Notice Content"}))}},{key:"renderPoster",value:function(){var e=this.props,t=e.usePoster,o=e.noticeSummary,n=e.classes,r=null;return o&&t&&this.getPosterFromMeta()?r=l().createElement("div",{className:n.defaultPoster,style:{background:"url(/in/rest/annotationSVC/Attachment/".concat(this.getPosterFromMeta(),") center center/cover no-repeat")}}):this.state.poster&&(r=l().createElement("div",{className:n.defaultPoster,style:{background:"url(".concat(this.state.poster.url,") center center/cover no-repeat"),opacity:this.state.poster.opacity,filter:this.state.poster.blur&&"blur(".concat(this.state.poster.blur,")")}})),r}},{key:"renderContent",value:function(){var e,t=this.props,o=t.playlist,n=t.showFavorite,r=t.token,a=t.relax,i=t.theme,s=t.hideZmatDuplicate,c=t.classes,u=t.renderChildren,p=t.duplicateSae,h=t.styleClassMap,f=t.aspects,b=t.onRequestAspects,y=t.acceptAspects,w=t.noticeId,x=t.noticeSummary,k=t.profile,E=t.thumbnailFormat,C=t.arkInfo,R=t.rating,S=t.isFavorite,O=t.rights,P=t.onResultAction,T=t.showZmat,N=t.isPrintBtnEnabled,A=t.showMetadata,j=t.stickers,F=t.onExploreClick,_=t.exploreSf,D=t.numberOfLike,M=t.useTabs,I=t.showComment,B=t.showLike,z=t.template,L=t.isRatingEnabled,q=t.cmsSettings,W=t.locale,Z=t.showMapIfLocationFound,Y=t.terms,X=!1;if(null!=O&&"1"!==x.IsPhysicalDocument&&!x.noRightsEdit)if(O.get("allowManageAllContent"))X=!0;else if(O.get("allowManageContent")){var J=(O.get("contentTypesForCreate")||"").split(","),K=(O.get("contentTypesToExcludeForCreate")||"").split(","),ee=x.TypeOfDocumentFacet;!J.includes(ee)||K.includes(ee)||K.includes("*")||(X=!0)}var te="DocumentREN"===x.TypeOfDocumentFacet||"VideoREN"===x.TypeOfDocumentFacet||"AudioREN"===x.TypeOfDocumentFacet||"PhotoREN"===x.TypeOfDocumentFacet||"QuizREN"===x.TypeOfDocumentFacet||"MultimediaREN"===x.TypeOfDocumentFacet,oe=u({noDrop:!0,customChildrenProps:{useMaxWidth:a.styleValues.useMaxWidth,maxWidth:a.styleValues.maxWidth,margin:"0 auto",onRequestAspects:b,acceptNoticeAspects:y,aspects:f,activeTab:this.props.children[this.state.tab],noticeId:w,arkInfo:C,template:z}}),ne=(null===(e=this.state.glatlong)||void 0===e?void 0:e.length)&&Z;return l().createElement("div",null,l().createElement("div",{className:g()(h.content,c.topStyle,M?c.topStyleUseTab:null)},this.renderPoster(),A&&l().createElement("div",{className:h.holder,style:{position:"relative",top:60}},l().createElement(V,{profile:k,instanceId:w,noticeSummary:x,thumbnailFormat:E,playlist:o,isFavorite:S,numberOfLike:D,rating:R,showComment:I,showLike:B,isRatingEnabled:L,rights:O,token:r,showFavorite:n,aspects:f,hideZmatDuplicate:s,showZmat:T,showPrintBtn:N,onResultAction:a.editing||a.building?function(){}:P,relax:a,onExploreClick:F,exploreSf:_,stickers:j,cmsSettings:q,glatlong:this.state.glatlong,showMapIfLocationFound:Z,terms:Y,currentQuery:this.getCurrentQuery(this.props)}))),l().createElement("div",{className:g()(h.content,c.bottomStyle),style:{paddingTop:ne?100:24}},this.state.displayContent&&this.renderTabContainer(),M?l().createElement(d.Z,{index:this.state.tab,onChangeIndex:this.handleTabChangeSwipe,style:a.editing?{paddingBottom:50,marginTop:"-0.5rem"}:{marginTop:"-0.5rem"},containerStyle:Object.assign({display:v().msie&&v().version<11?"-ms-flexbox":"flex",margin:"0 1"},(v().msie||v().msedge)&&U.default.includes(W)?{flexDirection:"row"}:{}),slideStyle:Object.assign({padding:"1px",overflow:"visible"}),children:oe,axis:"ar"===W?"x-reverse":"x"}):oe[this.props.children.length-1]||oe,l().createElement(H.Z,{id:w,onNext:this.props.onNextRecord,onPrev:this.props.onPreviousRecord,enabled:null!=this.props.queryId,offset:this.props.posInSet,total:this.props.queryHits,noticeLoaded:this.props.loaded,nextNotice:this.props.nextNotice,prevNotice:this.props.prevNotice,windowWidth:window.innerWidth,contentWidth:a.styleValues.useMaxWidth?a.styleValues.maxWidth:"-1"}
1)),(X||te)&&l().createElement("div",{className:c.floatButtonContainer},te&&l().createElement(m(),{minWidth:i.breakpoints.values.medium},l().createElement("a",{onClick:function(){return p(w)},target:"_blank"},l().createElement(G.default,{"aria-label":"Copy",className:c.floatButton},l().createElement($.Z,{style:{fontSize:"2rem"}})))),X&&l().createElement(m(),{minWidth:i.breakpoints.values.medium},l().createElement("a",{href:"".concat(window.location.protocol,"//").concat(window.location.hostname,"/in/edit.xhtml?id=").concat(w),target:"_blank"},l().createElement(G.default,{"aria-label":"Edit",className:c.floatButton},l().createElement(Q.Z,{style:{fontSize:"2rem"}}))))))}},{key:"render",value:function(){var e=this.props,t=e.styleClassMap,o=e.relax,n=e.Element,r=e.contentType;return l().createElement(n,J({},o,{htmlTag:"div",settings:Y.Z,className:t.root,element:ee(ee({},o.element),{},{label:r||o.element.label,originalLabel:o.element.label})}),this.renderContent())}}])&&ne(t.prototype,o),n&&ne(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.Z);le.propTypes={classes:u().object.isRequired,localized:u().func.isRequired,styleClassMap:u().object.isRequired,intl:h.gm,profile:u().object,relax:u().object.isRequired,router:u().object.isRequired,noticeId:u().string,zmat:u().string,showFavorite:u().bool,token:u().string,addToList:u().string,downloadToAdd:u().string,children:u().array,childrenProps:u().array.isRequired,cmsSettings:u().object,playlist:u().array,theme:u().object,arkInfo:u().object,rating:u().object.isRequired,isFavorite:u().bool,rights:u().object.isRequired,stickers:u().array,Element:u().func.isRequired,contentType:u().string,queryId:u().string,posInSet:u().string,loaded:u().bool,queryHits:u().number,noticeSummary:u().object,useTabs:u().bool,isScrollable:u().bool,showMetadata:u().bool,showZmat:u().bool,isPrintBtnEnabled:u().bool,showLike:u().bool,aspect:u().object,showComment:u().bool,isRatingEnabled:u().bool,hideZmatDuplicate:u().bool,thumbnailFormat:u().string.isRequired,usePoster:u().bool,poster:u().array,aspects:u().object,numberOfLike:u().oneOfType([u().object,u().number]),showMapIfLocationFound:u().bool,nextNotice:u().object,prevNotice:u().object,onLoad:u().func.isRequired,selectElement:u().func.isRequired,onResultAction:u().func.isRequired,setCurrentQuery:u().func.isRequired,duplicateSae:u().func.isRequired,onRequestAspects:u().func.isRequired,loadNumberOfLike:u().func.isRequired,onNextRecord:u().func.isRequired,onPreviousRecord:u().func.isRequired,renderChildren:u().func.isRequired,acceptAspects:u().func.isRequired,onExploreClick:u().func.isRequired,exploreSf:u().string,locale:u().string,template:u().string,terms:u().array}}}]);
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.