Patrick Vieira takes over as Crystal Palace manager

Patrick Vieira takes over as Crystal Palace manager
0){if(++t>=xe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function me(e){if(null!=e){try{return Ct.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function fe(e,t){return e===t||e!==e&&t!==t}function pe(e){return null!=e&&ge(e.length)&&!ye(e)}function he(e){return _e(e)&&pe(e)}function ye(e){if(!ve(e))return!1;var t=j(e);return t==je||t==Fe||t==ke||t==Ye}function ge(e){return"number"==typeof e&&e>-1&&e%1==0&&e\n .view-comments-button-wrapped-component {display: block !important;}\n .view-comments-button-wrapper {display: none !important;}\n "}}),C.default.createElement("div",{className:(0,S.default)("view-comments-button-wrapper",{"view-comments-button-wrapper-hidden":this.isViewCommentsButtonWrapperHidden()})},C.default.createElement(t,{id:"stats-view-comments",labels:{label:"view-comments",metadata:r},fireOnView:!0,fireOnClick:!0,minimumTimeInView:0},C.default.createElement(M.ViewCommentsButton,{totalCommentsCount:n,onClick:this.showWrappedComponent}))),C.default.createElement("div",{className:(0,S.default)("view-comments-button-wrapped-component",{"view-comments-button-wrapped-component-hidden":this.isCommentsModuleWrapperHidden()})},C.default.createElement(e,(0,d.default)({},this.props,{autoFocusHeader:this.state.isWrappedComponentVisible}))))}}]),n}(E.Component);return t.displayName="WithViewCommentsButton("+i(e)+")",t.propTypes={forumData:E.PropTypes.shape({title:E.PropTypes.string.isRequired,totalCommentsCount:E.PropTypes.number.isRequired,commentTextLimit:E.PropTypes.number.isRequired,moderation:E.PropTypes.shape({rulesPageUrl:E.PropTypes.string.isRequired,status:E.PropTypes.oneOf((0,l.default)(x.default)).isRequired}),createForum:E.PropTypes.bool.isRequired,isClosed:E.PropTypes.bool.isRequired}).isRequired,sortOrder:E.PropTypes.oneOf((0,s.default)(I.default))},t.contextTypes={WithStatsIncludeCommonLabels:E.PropTypes.func.isRequired},t}function i(e){return e.displayName||e.name||"Component"}Object.defineProperty(t,"__esModule",{value:!0});var a=n(150),s=r(a),u=n(117),l=r(u),c=n(2),d=r(c),m=n(48),f=r(m),p=n(53),h=r(p),y=n(54),g=r(y),v=n(58),_=r(v),b=n(91),T=r(b);t.withViewCommentsButton=o;var E=n(99),C=r(E),P=n(148),S=r(P),w=n(160),O=n(196),x=r(O),M=n(247),R=n(244),I=r(R)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split(",");return t.reduce(function(e,t){if(t.indexOf(":")!==-1){var n=t.trim().split(":"),r=(0,m.default)(n,2),o=r[0],i=r[1];e[o]="on"===i.trim()}return e},{})}function i(e,t,n){var r=function(e,n){return t[n]?(0,c.default)({},e,(0,u.default)({},n,t[n])):e},i=f.reduce(r,{});return n&&(i.featureToggles=o(n)),(0,c.default)({},e,i)}function a(e){var t=e.siteConfig,n=void 0===t?{}:t,r=e.overrideProps,o=void 0===r?{}:r,a=e.toggleOverrides,s=void 0===a?"":a,u=e.shouldOverrideConfig,l=void 0!==u&&u;return n.featureToggles||(n.featureToggles={}),l?i(n,o,s):n}Object.defineProperty(t,"__esModule",{value:!0}),t.overridableProps=void 0;var s=n(153),u=r(s),l=n(2),c=r(l),d=n(257),m=r(d);t.parseToggleOverridesProp=o,t.getConfig=a;var f=t.overridableProps=["pageSize","theme","subtheme","initialView"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.StyleGuideModule=void 0;var o=n(117),i=r(o),a=n(2),s=r(a),u=n(48),l=r(u),c=n(53),d=r(c),m=n(54),f=r(m),p=n(58),h=r(p),y=n(91),g=r(y),v=n(148),_=r(v),b=n(99),T=r(b),E=n(214),C=n(175),P=n(443),S=r(P),w=n(192),O=r(w),x=n(169),M=n(183),R=r(M),I=n(249),N=n(178),k=n(191),A=n(256),D=n(180),L=r(D),j=n(196),F=r(j),U=n(208),q=r(U),W=n(252),B=n(270),Y=r(B),V=n(166),H=n(194),z=n(250),G=function(){},Z=function(e){var t=e.children;return T.default.createElement("h3",{className:"comments-styleguide__heading"},t)},K=function(e){var t=e.children;return t},X=function(){return!1},J=function(){return 1},Q=S.default.getSignedOutResponse(),$=S.default.getSignedInResponse(),ee=S.default.getSignedInResponseWithoutDisplayName(),te={signedIn:!1,signInButton:Q.signInButton},ne={displayName:"test-u16",under16:!0},re=20,oe=10,ie=6e4;Z.displayName="SectionHeading",Z.propTypes={children:b.PropTypes.oneOfType([b.PropTypes.arrayOf(b.PropTypes.node),b.PropTypes.node])};var ae=function(e){var t=e.children;return T.default.createElement("h4",{className:"comments-styleguide__subheading"},t)};ae.displayName="SubHeading",ae.propTypes={children:b.PropTypes.oneOfType([b.PropTypes.arrayOf(b.PropTypes.node),b.PropTypes.node])};var se=function(e){var t=e.id,n=e.heading,r=e.children,o=e.className;return T.default.createElement("section",{id:t,className:(0,_.default)("comments-styleguide__section",o)},T.default.createElement(Z,null,n),r)};se.displayName="Section",se.propTypes={id:b.PropTypes.string.isRequired,heading:b.PropTypes.string.isRequired,children:b.PropTypes.oneOfType([b.PropTypes.arrayOf(b.PropTypes.node),b.PropTypes.node]),className:b.PropTypes.string};var ue="Presenter",le=C.exampleAvatarUrl96x96PngBase64,ce="https://wrong_dummy_url",de=function(e){function t(e){(0,d.default)(this,t);var n=(0,h.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));return n.theme=Y.default.use({component:n,themeVariant:n.props.themeVariant,product:e.product}),(0,A.addModeSupport)({mode:e.mode,component:n}),n.state={audibleMessage:""},n.setA11yAlertText=n.setA11yAlertText.bind(n),n}return(0,g.default)(t,e),(0,f.default)(t,[{key:"setA11yAlertText",value:function(e){var t=this.state.audibleMessage===e?e+" ":e;this.setState({audibleMessage:t})}},{key:"menu",value:function(){return T.default.createElement(se,{heading:"Comments Styleguide",id:"comments-styleguide-menu"},T.default.createElement("ul",null,T.default.createElement("li",null,T.default.createElement("a",{href:"#comments-typography"},"Typography")),T.default.createElement("li",null,T.default.createElement("a",{href:"#comments-buttons"},"Buttons")),T.default.createElement("li",null,T.default.createElement("a",{href:"#comments-alerts"},"Alerts")),T.default.createElement("li",null,T.default.createElement("a",{href:"#comments-form-elements"},"Form Elements")),T.default.createElement("li",null,T.default.createElement("a",{href:"#comments-header"},"Header")),T.default.createElement("li",null,T.default.createElement("a",{href:"#comments-footer"},"Footer")),T.default.createElement("li",null,T.default.createElement("a",{href:"#comments-comment"},"Comment")),T.default.createElement("li",null,T.default.createElement("a",{href:"#comments-list"},"Comments List")),T.default.createElement("li",null,T.default.createElement("a",{href:"#tool-tip"},"Tooltip")),T.default.createElement("li",null,T.default.createElement("a",{href:"#comments-ratings"},"Ratings")),T.default.createElement("li",null,T.default.createElement("a",{href:"#comments-down-ratings"},"Down Ratings")),T.default.createElement("li",null,T.default.createElement("a",{href:"#comments-replies"},"Replies")),T.default.createElement("li",null,T.default.createElement("a",{href:"#comments-sort"},"Comments Sort")),T.default.createElement("li",null,T.default.createElement("a",{href:"#view-comments-button"},"View Comments Button"))))}},{key:"typography",value:function(){var e=this.theme.formatMessage("moduleTitleText"),t=this.theme.formatMessage("closedForum");return T.default.createElement(se,{heading:"Typography",id:"comments-typography"},T.default.createElement(ae,null,"Title"),T.default.createElement(x.CommentsHeader,null,T.default.createElement("div",{className:"comments__heading-wrapper",tabIndex:"-1"},T.default.createElement(x.CommentsModuleTitle,null,e),T.default.createElement(x.CommentsTitle,null,"Comments"))),T.default.createElement(ae,null,"Paragraph"),T.default.createElement("p",null,"Sample paragraph with some ",T.default.createElement("b",null,"bold text")," ",T.default.createElement("em",null,"emphasised, italic text")," and a ",T.default.createElement("a",{href:"#"},"Link"),"."),T.default.createElement(ae,null,"Links"),T.default.createElement(N.ActionLink,{href:"#"},"Sample Link"),T.default.createElement(N.ActionLinks,null,T.default.createElement(N.ActionLink,{href:"#"},"Action link without icon"),T.default.createElement(N.ActionLink,{icon:T.default.createElement(R.default,{alignToBaseline:!0}),href:"#"},"Action link with icon")),T.default.createElement(ae,null,"Comments Message"),T.default.createElement("p",{className:"comments__message comments__message--closed-forum"},t))}},{key:"buttons",value:function(){return T.default.createElement(se,{heading:"Buttons",id:"comments-buttons"},T.default.createElement(ae,null,"Active"),T.default.createElement(x.CommentsButton,null,"Post comment"),T.default.createElement(ae,null,"Disabled"),T.default.createElement(x.CommentsButton,{isDisabled:!0},"Post comment"),T.default.createElement(ae,null,"Submit Button"),T.default.createElement(x.CommentsButton,{type:"submit"},"Post comment"),T.default.createElement(ae,null,"More Comments Button"),T.default.createElement(x.CommentsButton,{className:"comments__more-comments-button",type:"button",onClick:G},"More comments"),T.default.createElement(ae,null,"Show New Comments Button"),T.default.createElement(x.ShowNewCommentsButton,{newCommentCount:2,onClick:G}),T.default.createElement(ae,null,"Stylized button"),T.default.createElement(x.CommentsButton,{className:"comments-button--styled"},"Stylized button"))}},{key:"formElements",value:function(){return T.default.createElement(se,{heading:"Form Elements",id:"comments-form-elements"},T.default.createElement(ae,null,"Expanding Text Area"),T.default.createElement(x.CommentsHeader,null,T.default.createElement(O.default,{className:"comments-input-box",placeholder:"Add your comment…",minRows:2,maxRows:8})),T.default.createElement(ae,null,"Comments Input"),T.default.createElement(x.CommentsHeader,null,T.default.createElement(x.CommentsInput,{textLimit:270,moderationStatus:F.default.PRE_MODERATED,createForum:!1,postCommentHandler:G})))}},{key:"header",value:function(){var e=S.default.getSignedOutResponse(),t=this.theme.formatMessage("moduleTitleText"),n=this.theme.formatMessage("closedForum");return T.default.createElement(se,{heading:"Header",id:"comments-header"},T.default.createElement(ae,null,"Not signed in"),T.default.createElement(x.CommentsHeader,null,T.default.createElement("div",{ className:"comments__heading-wrapper",tabIndex:"-1"},T.default.createElement(x.CommentsModuleTitle,null,t),T.default.createElement(x.CommentsTitle,null,"What is the best pizza topping?")),T.default.createElement("p",{className:"comments__signin--prompt"},"Sign in to comment, reply and rate."),T.default.createElement(x.IdctaSignInButton,{markup:e.signInButton}),T.default.createElement(x.CommentsModerationMessage,{rulesPageUrl:"#",moderationStatus:F.default.PRE_MODERATED,signedOut:!0})),T.default.createElement(ae,null,"Not signed in with comments total"),T.default.createElement(x.CommentsHeader,null,T.default.createElement("div",{className:"comments__heading-wrapper",tabIndex:"-1"},T.default.createElement(x.CommentsModuleTitle,null,t),T.default.createElement(x.CommentsTitle,null,"What is the best pizza topping?")),T.default.createElement("p",{className:"comments__signin--prompt"},"Sign in to comment, reply and rate."),T.default.createElement(x.IdctaSignInButton,{markup:e.signInButton}),T.default.createElement(x.CommentsModerationMessage,{rulesPageUrl:"#",moderationStatus:F.default.PRE_MODERATED,signedOut:!0}),T.default.createElement("div",{className:"comments__comments-total"},T.default.createElement(x.CommentsTotal,{totalCommentsCountIncludingNewComments:10}))),T.default.createElement(ae,null,"Not signed in with longer comments heading title"),T.default.createElement(x.CommentsHeader,null,T.default.createElement("div",{className:"comments__heading-wrapper",tabIndex:"-1"},T.default.createElement(x.CommentsModuleTitle,null,t),T.default.createElement(x.CommentsTitle,null,"Do you think England will qualify for the World Cup?")),T.default.createElement("p",{className:"comments__signin--prompt"},"Sign in to comment, reply and rate."),T.default.createElement(x.IdctaSignInButton,{markup:e.signInButton}),T.default.createElement(x.CommentsModerationMessage,{rulesPageUrl:"#",moderationStatus:F.default.PRE_MODERATED,signedOut:!0}),T.default.createElement("div",{className:"comments__comments-total"},T.default.createElement(x.CommentsTotal,{totalCommentsCountIncludingNewComments:10}))),T.default.createElement(ae,null,"Signed In"),T.default.createElement(x.CommentsHeader,null,T.default.createElement("div",{className:"comments__heading-wrapper",tabIndex:"-1"},T.default.createElement(x.CommentsModuleTitle,null,t),T.default.createElement(x.CommentsTitle,null,"What is the best pizza topping?")),T.default.createElement(x.IdctaSignedInMessage,{displayName:ne.displayName,under16:!1}),T.default.createElement(O.default,{className:"comments-input-box",placeholder:"Add your comment…",minRows:1,maxRows:8}),T.default.createElement(x.CommentsModerationMessage,{rulesPageUrl:"#",moderationStatus:F.default.PRE_MODERATED,signedOut:!1})),T.default.createElement(ae,null,"Pre-moderated forum message"),T.default.createElement(x.CommentsHeader,null,T.default.createElement("div",{className:"comments__heading-wrapper",tabIndex:"-1"},T.default.createElement(x.CommentsModuleTitle,null,t),T.default.createElement(x.CommentsTitle,null,"What is the best pizza topping?")),T.default.createElement(x.IdctaSignedInMessage,{displayName:ne.displayName,under16:ne.under16}),T.default.createElement(x.CommentsModerationMessage,{rulesPageUrl:"#",moderationStatus:F.default.PRE_MODERATED,signedOut:!1})),T.default.createElement(ae,null,"Post-moderated forum message"),T.default.createElement(x.CommentsHeader,null,T.default.createElement("div",{className:"comments__heading-wrapper",tabIndex:"-1"},T.default.createElement(x.CommentsModuleTitle,null,t),T.default.createElement(x.CommentsTitle,null,"What is the best pizza topping?")),T.default.createElement(x.IdctaSignedInMessage,{displayName:ne.displayName,under16:!1}),T.default.createElement(x.CommentsModerationMessage,{rulesPageUrl:"#",moderationStatus:F.default.POST_MODERATED,signedOut:!1})),T.default.createElement(ae,null,"Reactively-moderated forum message"),T.default.createElement(x.CommentsHeader,null,T.default.createElement("div",{className:"comments__heading-wrapper",tabIndex:"-1"},T.default.createElement(x.CommentsModuleTitle,null,t),T.default.createElement(x.CommentsTitle,null,"What is the best pizza topping?")),T.default.createElement(x.IdctaSignedInMessage,{displayName:ne.displayName,under16:!1}),T.default.createElement(x.CommentsModerationMessage,{rulesPageUrl:"#",moderationStatus:F.default.REACTIVELY_MODERATED,signedOut:!1})),T.default.createElement(ae,null,"Signed In With Policy Error"),T.default.createElement(x.CommentsHeader,null,T.default.createElement("div",{className:"comments__heading-wrapper",tabIndex:"-1"},T.default.createElement(x.CommentsModuleTitle,null,t),T.default.createElement(x.CommentsTitle,null,"What is the best pizza topping?")),T.default.createElement(x.IdctaSignedInMessage,{displayName:ne.displayName,under16:!1}),T.default.createElement("p",{className:"comments__message--user-ineligible"},this.theme.formatMessage("ineligibleToComment",{})),T.default.createElement(x.CommentsModerationMessage,{rulesPageUrl:"#",moderationStatus:F.default.PRE_MODERATED,signedOut:!1})),T.default.createElement(ae,null,"Closed forum"),T.default.createElement(x.CommentsHeader,null,T.default.createElement("div",{className:"comments__heading-wrapper",tabIndex:"-1"},T.default.createElement(x.CommentsModuleTitle,null,t),T.default.createElement(x.CommentsTitle,null,"What was your highlight of 2017?")),T.default.createElement("p",{className:"comments__message comments__message--closed-forum"},n)))}},{key:"footer",value:function(){var e=this.theme.formatMessage("backToTop");return T.default.createElement(se,{heading:"Footer",id:"comments-footer"},T.default.createElement(ae,null,"Without more comments"),T.default.createElement(x.CommentsFooter,null,T.default.createElement("div",null,T.default.createElement("div",null,T.default.createElement("a",{className:"comments__back-to-top-link",href:"#"},e,T.default.createElement(I.ToTop,null))))),T.default.createElement(ae,null,"With more comments"),T.default.createElement(x.CommentsFooter,null,T.default.createElement("div",null,T.default.createElement(x.CommentsButton,{className:"comments__more-comments-button",type:"button",onClick:G,rel:"next"},"More comments"),T.default.createElement("div",null,T.default.createElement("a",{className:"comments__back-to-top-link",href:"#"},e,T.default.createElement(I.ToTop,null))))),T.default.createElement(ae,null,"With slow loading message"),T.default.createElement(x.CommentsFooter,null,T.default.createElement("div",null,T.default.createElement(x.CommentsLoading,{slowMessageTimerInSeconds:6}),T.default.createElement("div",null,T.default.createElement("a",{className:"comments__back-to-top-link",href:"#"},e,T.default.createElement(I.ToTop,null))))),T.default.createElement(ae,null,"With error message"),T.default.createElement(x.CommentsFooter,null,T.default.createElement("div",null,T.default.createElement(x.CommentsAlert,{type:k.AlertTypes.ERROR},this.theme.formatMessage((0,H.getMessageKeyForError)(V.ErrorTypes.MORE_COMMENTS_FAILED))),T.default.createElement(x.CommentsButton,{className:"comments__more-comments-button",type:"button",onClick:G,rel:"next"},"More comments"),T.default.createElement("div",null,T.default.createElement("a",{className:"comments__back-to-top-link",href:"#"},e,T.default.createElement(I.ToTop,null))))))}},{key:"comment",value:function(){var e=(0,E.moment)(),t=(0,E.moment)().subtract(1,"year"),n={reportUrl:"/#/"},r="/rulesPageUrl";return T.default.createElement(se,{heading:"Comment",id:"comments-comment"},T.default.createElement(ae,null,"Contributor Avatar Image"),T.default.createElement(x.ContributorAvatar,{displayName:"ApricotLaughingIguana",isCurrentUser:!1,avatarImageUrl:le}),T.default.createElement(ae,null,"Contributor Avatar Letter"),T.default.createElement(x.ContributorAvatar,{displayName:"ApricotLaughingIguana",isCurrentUser:!1}),T.default.createElement(ae,null,"Contributor Avatar Letter for current user"),T.default.createElement(x.ContributorAvatar,{displayName:"ApricotLaughingIguana",isCurrentUser:!0}),T.default.createElement(ae,null,"Username"),T.default.createElement(x.Username,null,"ApricotLaughingIguana"),T.default.createElement(ae,null,"Description"),T.default.createElement(x.UserDescription,null,"Presenter"),T.default.createElement(ae,null,"Date/Time"),T.default.createElement("b",null,"Today:"),T.default.createElement(x.PostedDate,{time:e.format(),formattedTime:e.format("HH:mm")}),T.default.createElement("b",null,"This year:"),T.default.createElement(x.PostedDate,{time:e.format(),formattedTime:e.format("HH:mm D MMM")}),T.default.createElement("b",null,"Last year:"),T.default.createElement(x.PostedDate,{time:t.format(),formattedTime:t.format("HH:mm D MMM YYYY")}),T.default.createElement(ae,null,"Single line comment"),T.default.createElement(x.Comment,{userCanPostToForum:!0,commentData:{index:0,id:0,totalReplies:0,replies:[],author:{displayName:"ApricotLaughingIguana",isNotable:!1,userId:100},dateCreated:"2014-02-01T10:23:00+00:00",actions:n,rating:{positive:0,negative:0},text:"This is a single line comment",status:L.default.PASS},rulesPageUrl:r,forumId:"dummy",idctaData:te}),T.default.createElement(ae,null,"Multi-line comment"),T.default.createElement(x.Comment,{userCanPostToForum:!0,commentData:{index:1,id:1,totalReplies:0,replies:[],author:{displayName:"ApricotLaughingIguana",isNotable:!1,userId:100},dateCreated:"2014-02-01T10:23:00+00:00",actions:n,rating:{positive:0,negative:0},text:"This is a test comment that goes on for quite a while and it
\n spans over multiple lines and contains further lines that are separated by

\n many line breaks.
And also emojis