\n spans over multiple lines and contains further lines that are separated by
\n many line breaks.
And also emojis 😂",status:L.default.PASS},rulesPageUrl:r,forumId:"dummy",idctaData:$}),T.default.createElement(oe,null,"Notable user comment"),T.default.createElement(x.Comment,{userCanPostToForum:!0,commentData:{index:2,id:2,totalReplies:0,replies:[],author:{displayName:"HackerTDog",isNotable:!0,userId:100,description:ae,avatarUrl:se},dateCreated:"2014-02-01T10:23:00+00:00",actions:n,text:"This is a comment by a notable user.",status:L.default.PASS},rulesPageUrl:r,forumId:"dummy",idctaData:$}),T.default.createElement(oe,null,"Notable user comment without description"),T.default.createElement(x.Comment,{userCanPostToForum:!0,commentData:{index:2,id:2,totalReplies:0,replies:[],author:{displayName:"HackerTDog",isNotable:!0,userId:100,avatarUrl:se},dateCreated:"2014-02-01T10:23:00+00:00",actions:n,text:"This is a comment by a notable user.",status:L.default.PASS},rulesPageUrl:r,forumId:"dummy",idctaData:$}),T.default.createElement(oe,null,"Notable user comment without avatar image"),T.default.createElement(x.Comment,{userCanPostToForum:!0,commentData:{index:2,id:2,totalReplies:0,replies:[],author:{displayName:"HackerTDog",isNotable:!0,userId:100,description:ae},dateCreated:"2014-02-01T10:23:00+00:00",actions:n,text:"This is a comment by a notable user.",status:L.default.PASS},rulesPageUrl:r,forumId:"dummy",idctaData:$}),T.default.createElement(oe,null,"Notable user comment with wrong avatar url image"),T.default.createElement(x.Comment,{userCanPostToForum:!0,commentData:{index:2,id:2,totalReplies:0,replies:[],author:{displayName:"HackerTDog",isNotable:!0,userId:100,avatarUrl:ue,description:ae},dateCreated:"2014-02-01T10:23:00+00:00",actions:n,text:"This is a comment by a notable user.",status:L.default.PASS},rulesPageUrl:r,forumId:"dummy",idctaData:$}),T.default.createElement(oe,null,"Notable user comment without description and avatar image"),T.default.createElement(x.Comment,{userCanPostToForum:!0,commentData:{index:2,id:2,totalReplies:0,replies:[],author:{displayName:"HackerTDog",isNotable:!0,userId:100},dateCreated:"2014-02-01T10:23:00+00:00",actions:n,text:"This is a comment by a notable user.",status:L.default.PASS},rulesPageUrl:r,forumId:"dummy",idctaData:$}),T.default.createElement(oe,null,"Comment with Distress Message"),T.default.createElement(x.Comment,{userCanPostToForum:!0,commentData:{index:0,id:2,totalReplies:0,replies:[],distressMessage:{text:"Hi UnicornPrincess,
\n you sound like you need to talk to someone about what you are going through at the moment.\n You could speak to a family member, a friend, a guardian or a teacher.
\n If there's really no one you can speak to, you can speak with a ChildLine counsellor by calling\n 0800 11 11 (calls are free), visiting their website at childline.org.uk, or by downloading\n the free ChildLine app, called For Me.
\n Or you could call the Samaritans on their helpline: 08457 90 90 90 (charged at local rates) or visit their website.
\n Always remember bullying is NOT acceptable and you don't have to stand for it
\n For further help, we also have some useful advice and helplines.
\n We hope this helps,
\n CBBC"},author:{displayName:"UnicornPrincess",isNotable:!1,userId:100},dateCreated:"2019-02-20T10:23:00+00:00",actions:n,rating:{positive:0,negative:0},text:"I love this episode. I know what Drew is feeling.
\n I am being bullied too and sometimes you just need to ignore them :(
\n
And also emojis 😁",status:L.default.PASS},rulesPageUrl:r,forumId:"dummy",idctaData:$}),T.default.createElement(oe,null,"Comment that failed moderation"),T.default.createElement("br",null),T.default.createElement(x.Comment,{userCanPostToForum:!0,commentData:{index:0,id:0,totalReplies:0,replies:[],author:{displayName:"CaptainAmerica",isNotable:!1,userId:100},dateCreated:"2019-04-10T10:08:45+00:00",actions:n,rating:{positive:0,negative:0},text:"This is a comment that failed moderation",status:L.default.FAIL},rulesPageUrl:r,forumId:"dummy",idctaData:$,isActionTrayOpen:!0}),T.default.createElement(oe,null,"Comment by the current user"),T.default.createElement("br",null),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 comment by the current user",status:L.default.PASS},personalisationDetails:{userId:100},rulesPageUrl:r,forumId:"dummy",idctaData:$}),T.default.createElement(oe,null,"Comment with link inside comment"),T.default.createElement("br",null),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 comment that has a link.',status:L.default.PASS},personalisationDetails:{userId:100},rulesPageUrl:r,forumId:"dummy",idctaData:$}),T.default.createElement(oe,null,"Comment by the current user with an un-moderated display name"),T.default.createElement("br",null),T.default.createElement(x.Comment,{userCanPostToForum:!0,commentData:{index:0,id:0,totalReplies:0,replies:[],author:{displayName:"U16123456",isNotable:!1,userId:100},dateCreated:"2014-02-01T10:23:00+00:00",actions:n,rating:{positive:0,negative:0},text:"This is a comment by the current user who has an un-moderated display name",status:L.default.PASS},personalisationDetails:{userId:100},rulesPageUrl:r,forumId:"dummy",idctaData:$}))}},{key:"commentsList",value:function(){var e={reportUrl:"/#/"},t="/rulesPageUrl",n=function t(n,r){var o=n.id,i=n.text,a=n.reply,s=n.displayName,u=(0,E.moment)().subtract(3*(r-o),"minutes").format();return{index:o,id:1233+o,key:1233+o,author:{displayName:s||"ApricotLaughingIguana",isNotable:!1,userId:100},dateCreated:u,actions:e,text:i,rating:{positive:0,negative:0},status:L.default.PASS,replies:a?[t({id:o+1,text:a,displayName:"CarrotSmilingGiraffe",inReplyToId:0,commentId:0})]:[],totalReplies:a?1:0,replyTo:{displayName:"displayNamePlaceholder",text:"text placeholder"}}},r=4,o=[n({id:3,text:"This is a single line comment"},r),n({id:2,text:"This is another single line comment, with replies",reply:"This is the first reply to a parent comment"},r),n({id:1,text:"This is a test comment that goes on for quite a while and it
spans over multiple lines and contains further lines that are separated by
many line breaks.
And also emojis 😂"},r),n({id:0,text:"😂"},r)];return T.default.createElement(ie,{heading:"Comments List",id:"comments-list"},T.default.createElement(oe,null,"Standard List"),T.default.createElement(x.CommentsList,{comments:o,rulesPageUrl:t,isRatingEnabled:!0,forumId:"dummy",idctaData:$,pageSize:te,repliesPageSize:ne,userCanPostToForum:!0}),T.default.createElement(oe,null,"New comments available"),T.default.createElement("div",null,T.default.createElement("div",{className:"comments__show-new-comments-container"},T.default.createElement(x.ShowNewCommentsButton,{newCommentCount:12,onClick:z})),T.default.createElement(x.CommentsList,{comments:o,rulesPageUrl:t,isRatingEnabled:!0,forumId:"dummy",idctaData:$,pageSize:te,repliesPageSize:ne,userCanPostToForum:!0})))}},{key:"alerts",value:function(){var e=this.theme.formatMessage("postCommentSuccessPremoderated"),t=this.theme.getIcon("SuccessIcon");return T.default.createElement(ie,{heading:"Alerts",id:"comments-alerts"},T.default.createElement(oe,null,"Under Character Limit Message"),T.default.createElement(x.CommentsHeader,null,T.default.createElement(x.CommentsTextLimit,{remainingCharacters:2,isTextOverLimit:!1,textLimit:750,remainingCharactersMessage:"You have 2 characters remaining"})),T.default.createElement(oe,null,"Over Character Limit Message"),T.default.createElement(x.CommentsHeader,null,T.default.createElement(x.CommentsTextLimit,{remainingCharacters:-5,isTextOverLimit:!0,textLimit:750,remainingCharactersMessage:"You've written 5 too many characters!"})),T.default.createElement(oe,null,"Error Message"),T.default.createElement(x.CommentsHeader,null,T.default.createElement(x.CommentsAlert,{type:A.AlertTypes.ERROR},"Sorry, there was a problem. Please refresh your browser and try again.")),T.default.createElement(oe,null,"Success Message Pre-moderated"),T.default.createElement(x.CommentsHeader,null,T.default.createElement(x.CommentsAlert,{type:A.AlertTypes.SUCCESS,Icon:t},e)),T.default.createElement(oe,null,"Comments Loading"),T.default.createElement(x.CommentsLoading,null))}},{key:"ratings",value:function(){var e=this,t=function(t){return T.default.createElement(x.CommentRating,(0,s.default)({ratingType:"positive",Icon:e.theme.getIcon("Upvote"),commentIndex:0,isDisabled:!1,commentId:0,ratingErrorHandler:z,isSendingRating:!1,ratingValue:9,hasRatedComment:!1,numberPlacement:"right",handleClick:z},t))};return T.default.createElement(ie,{heading:"Ratings",id:"comments-ratings"},T.default.createElement(oe,null,"Positive rating"),T.default.createElement("p",null,"Text on the right side."),T.default.createElement("div",null,T.default.createElement(t,null)),T.default.createElement("div",null,T.default.createElement(t,{ratingValue:99})),T.default.createElement("div",null,T.default.createElement(t,{ratingValue:999})),T.default.createElement("p",null,"Text on the left side."),T.default.createElement("div",null,T.default.createElement(t,{numberPlacement:"left"})),T.default.createElement("div",null,T.default.createElement(t,{ratingValue:99,numberPlacement:"left"})),T.default.createElement("div",null,T.default.createElement(t,{ratingValue:999,numberPlacement:"left"})),T.default.createElement(oe,null,"Sending"),T.default.createElement(t,{isSendingRating:!0}),T.default.createElement(oe,null,"Rated"),T.default.createElement(t,{hasRatedComment:!0}),T.default.createElement(oe,null,"Disabled"),T.default.createElement(t,{isDisabled:!0}))}},{key:"donwRatings",value:function(){var e=this,t=function(t){return T.default.createElement(x.CommentRating,(0,s.default)({ratingType:"negative",Icon:e.theme.getIcon("Downvote"),commentIndex:0,isDisabled:!1,commentId:0,ratingErrorHandler:z,isSendingRating:!1,ratingValue:9,hasRatedComment:!1,numberPlacement:"right",handleClick:z},t))};return T.default.createElement(ie,{heading:"Down Ratings",id:"comments-down-ratings"},T.default.createElement(oe,null,"Negative rating"),T.default.createElement("p",null,"Text on the right side."),T.default.createElement("div",null,T.default.createElement(t,null)),T.default.createElement("div",null,T.default.createElement(t,{ratingValue:99})),T.default.createElement("div",null,T.default.createElement(t,{ratingValue:999})),T.default.createElement("p",null,"Text on the left side."),T.default.createElement("div",null,T.default.createElement(t,{numberPlacement:"left"})),T.default.createElement("div",null,T.default.createElement(t,{ratingValue:99,numberPlacement:"left"})),T.default.createElement("div",null,T.default.createElement(t,{ratingValue:999,numberPlacement:"left"})),T.default.createElement(oe,null,"Sending"),T.default.createElement(t,{isSendingRating:!0}),T.default.createElement(oe,null,"Down Rated"),T.default.createElement(t,{hasRatedComment:!0}),T.default.createElement(oe,null,"Disabled"),T.default.createElement(t,{isDisabled:!0}))}},{key:"tooltip",value:function(){var e=S.default.getSignedOutResponse(),t=this.theme.formatMessage("tooltipErrorSubtitle"),n=this.theme.formatMessage("otherErrorBody");return T.default.createElement(ie,{heading:"Tooltip",id:"tool-tip"},T.default.createElement(oe,null,"Tooltip"),T.default.createElement("div",{className:"comments-styleguide__tooltip"},T.default.createElement(x.Tooltip,{subtitle:"Sign in to your BBC account to do this.",handleClose:z,shouldAutoFocus:!1},T.default.createElement(x.IdctaSignInButton,{markup:e.signInButton}))),T.default.createElement("br",null),T.default.createElement("br",null),T.default.createElement("br",null),T.default.createElement("br",null),T.default.createElement("br",null),T.default.createElement("br",null),T.default.createElement("br",null),T.default.createElement("br",null),T.default.createElement(oe,null,"Error Tooltip"),T.default.createElement("div",{className:"comments-styleguide__tooltip"},T.default.createElement(x.Tooltip,{subtitle:t,isAlert:!0,handleClose:z,shouldAutoFocus:!1},n)),T.default.createElement("br",null),T.default.createElement("br",null),T.default.createElement("br",null),T.default.createElement("br",null),T.default.createElement("br",null),T.default.createElement("br",null),T.default.createElement("br",null),T.default.createElement("br",null),T.default.createElement(oe,null,"Tooltip Launcher"),T.default.createElement(x.TooltipLauncher,{tooltipSubtitle:"Sign in to your BBC account to do this.",isTooltipOpen:!1,tooltipBody:T.default.createElement(x.IdctaSignInButton,{markup:e.signInButton})},T.default.createElement(x.CommentsButton,null,"Click me to view Tooltip")))}},{key:"replies",value:function(){var e={reportUrl:"/#/"},t="/rulesPageUrl",n=["This is a snippet only with text","😂","😂😂😂😂😂😂😂😂","
Yee😂eeeeeeeeeeeeeeee   😂
\n    is a snippet 😂 with everything.
\n Emoticons 😂😂😂 and text like this and break lines
\n like this, I really like this snippet component 😂😂😂😂"];return T.default.createElement(ie,{heading:"Replies",id:"comments-replies"},T.default.createElement(oe,null,"Reply button"),T.default.createElement(x.ReplyButton,null),T.default.createElement(oe,null,"Reply functionality when signed out"),T.default.createElement(x.Comment,{commentData:{index:0,id:0,totalReplies:0,replies:[],author:{displayName:"Superman",isNotable:!1,userId:200},dateCreated:"2019-04-02T16:33:00+00:00",actions:e,rating:{positive:0,negative:0},text:"This is a single line comment with Reply Button and functionality when signed out",status:L.default.PASS},rulesPageUrl:t,forumId:"dummy",idctaData:$}),T.default.createElement(oe,null,"Reply functionality when the user is ineligible to comment"),T.default.createElement(x.Comment,{commentData:{index:0,id:0,totalReplies:0,replies:[],author:{displayName:"MrBean",isNotable:!1,userId:100},dateCreated:"2019-04-12T10:08:38+00:00",actions:e,rating:{positive:0,negative:0},text:"This is a comment that the user can not reply because the user is ineligible to comment",status:L.default.PASS},rulesPageUrl:t,forumId:"dummy",idctaData:Q}),T.default.createElement(oe,null,"Replying to a parent comment"),T.default.createElement(x.Comment,{commentInputTextLimit:750,commentInputModerationStatus:F.default.PRE_MODERATED,commentData:{index:0,id:0,totalReplies:0,replies:[],author:{displayName:"Thor",isNotable:!1,userId:300},dateCreated:"2019-04-02T18:05:00+00:00",actions:e,rating:{positive:0,negative:0},text:"This is a single line comment with Reply Button and functionality when signed in and the user is eligible to comment",status:L.default.PASS},rulesPageUrl:t,forumId:"dummy",idctaData:J}),T.default.createElement(oe,null,"Replying to a reply"),T.default.createElement(x.Comment,{commentInputTextLimit:750,commentInputModerationStatus:F.default.PRE_MODERATED,commentData:{index:0,id:0,author:{displayName:"Hercules",isNotable:!1,userId:300},dateCreated:"2019-04-02T18:05:00+00:00",actions:e,rating:{positive:0,negative:0},text:"😂 This is a single line comment",status:L.default.PASS,totalReplies:1,replies:[{index:0,id:0,author:{displayName:"Ironman",isNotable:!1,userId:100},dateCreated:"2019-04-05T10:23:00+00:00",actions:{reportUrl:"/#/"},rating:{positive:0,negative:0},text:"This is the first reply of the comment and it is the only one",status:L.default.PASS,inReplyToId:0,commentId:0,replyTo:{displayName:"Hercules",text:"😂 This is a single line comment"}}]},rulesPageUrl:t,forumId:"dummy",idctaData:J,isRatingEnabled:!0,userCanPostToForum:!0}),T.default.createElement(oe,null,"Reply snippet in place"),T.default.createElement(x.Comment,{commentInputTextLimit:750,commentInputModerationStatus:F.default.PRE_MODERATED,commentData:{index:0,id:12345,author:{displayName:"CarpetMan",isNotable:!1,userId:300},dateCreated:"2019-04-02T18:05:00+00:00",actions:e,rating:{positive:0,negative:0},text:"😂
This is the 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 😂",status:L.default.PASS,totalReplies:1,replies:[{index:0,id:12346,author:{displayName:"WaterMan",isNotable:!1,userId:100},dateCreated:"2019-04-06T10:23:00+00:00",actions:{reportUrl:"/#/"},rating:{positive:0,negative:0},text:"This is the first reply of the comment and it is the only one",status:L.default.PASS,inReplyToId:12345,commentId:12345,replyTo:{displayName:"CarpetMan",text:"😂
This is the 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. \n You need a display name to comment, reply and react.\n Create a display name\n \n
And also emojis 😂"}}]},rulesPageUrl:t,forumId:"dummy",idctaData:J,isRatingEnabled:!0,userCanPostToForum:!0}),T.default.createElement(oe,null,"Reply snippet only text"),T.default.createElement("div",{dangerouslySetInnerHTML:{__html:"Comment: "+n[0]}}),T.default.createElement("div",{className:"comments-styleguide__white-background"},T.default.createElement(x.ReplySnippet,{replyToName:"SugarMan",replyToMsg:n[0]})),T.default.createElement(oe,null,"Reply snippet only 1 emoticon"),T.default.createElement("div",{dangerouslySetInnerHTML:{__html:"Comment: "+n[1]}}),T.default.createElement("div",{className:"comments-styleguide__white-background"},T.default.createElement(x.ReplySnippet,{replyToName:"SaltMan",replyToMsg:n[1]})),T.default.createElement(oe,null,"Reply snippet only emoticons"),T.default.createElement("div",{dangerouslySetInnerHTML:{__html:"Comment: "+n[2]}}),T.default.createElement("div",{className:"comments-styleguide__white-background"},T.default.createElement(x.ReplySnippet,{replyToName:"PepperMan",replyToMsg:n[2]})),T.default.createElement(oe,null,"Reply snippet mixed"),T.default.createElement("div",{dangerouslySetInnerHTML:{__html:"Comment: "+n[3]}}),T.default.createElement("div",{className:"comments-styleguide__white-background"},T.default.createElement(x.ReplySnippet,{replyToName:"CurryMan",replyToMsg:n[3]})),T.default.createElement(oe,null,"More replies"),T.default.createElement(x.Comment,{commentInputTextLimit:750,commentInputModerationStatus:F.default.PRE_MODERATED,commentData:{index:0,id:123456,author:{displayName:"PeterPan",isNotable:!1,userId:300},dateCreated:"2019-04-02T18:05:00+00:00",actions:e,rating:{positive:0,negative:0},text:"😂 This is a single line comment",status:L.default.PASS,totalReplies:13,replies:[{index:12,id:12,author:{displayName:"Bambi",isNotable:!1,userId:100},dateCreated:"2019-04-07T07:24:00+00:00",actions:{reportUrl:"/#/"},rating:{positive:0,negative:0},text:"This is a example of reply number 1",status:L.default.PASS,inReplyToId:123456,commentId:123456,replyTo:{displayName:"PeterPan",text:"😂 This is a single line comment"}},{index:11,id:11,author:{displayName:"LionKing",isNotable:!1,userId:100},dateCreated:"2019-04-06T08:39:00+00:00",actions:{reportUrl:"/#/"},rating:{positive:0,negative:0},text:"This is a example of reply number 2, replying to Bambi",status:L.default.PASS,inReplyToId:12,commentId:123456,replyTo:{displayName:"Bambi",text:"This is a example of reply number 1"}},{index:10,id:10,author:{displayName:"Romeo",isNotable:!1,userId:100},dateCreated:"2019-04-05T05:19:00+00:00",actions:{reportUrl:"/#/"},rating:{positive:0,negative:0},text:"This is a example of reply number 3, replying to LionKing",status:L.default.PASS,inReplyToId:11,commentId:123456,replyTo:{displayName:"LionKing",text:"This is a example of reply number 2, replying to Bambi"}},{index:9,id:9,author:{displayName:"Wendy",isNotable:!1,userId:100},dateCreated:"2019-04-05T05:00:00+00:00",actions:{reportUrl:"/#/"},rating:{positive:0,negative:0},text:"This is a example of reply number 4",status:L.default.PASS,inReplyToId:123456,commentId:123456,replyTo:{displayName:"PeterPan",text:"😂 This is a single line comment"}},{index:8,id:8,author:{displayName:"CaptainHook",isNotable:!1,userId:100},dateCreated:"2019-04-05T04:00:00+00:00",actions:{reportUrl:"/#/"},rating:{positive:0,negative:0},text:"This is a example of reply number 5",status:L.default.PASS,inReplyToId:123456,commentId:123456,replyTo:{displayName:"PeterPan",text:"😂 This is a single line comment"}},{index:7,id:7,author:{displayName:"Julieta",isNotable:!1,userId:100},dateCreated:"2019-04-05T03:19:00+00:00",actions:{reportUrl:"/#/"},rating:{positive:0,negative:0},text:"This is a example of reply number 6",status:L.default.PASS,inReplyToId:123456,commentId:123456,replyTo:{displayName:"PeterPan",text:"😂 This is a single line comment"}},{index:6,id:6,author:{displayName:"Shirkan",isNotable:!1,userId:100},dateCreated:"2019-04-05T03:09:00+00:00",actions:{reportUrl:"/#/"},rating:{positive:0,negative:0},text:"This is a example of reply number 7",status:L.default.PASS,inReplyToId:123456,commentId:123456,replyTo:{displayName:"PeterPan",text:"😂 This is a single line comment"}},{index:5,id:5,author:{displayName:"Rambo",isNotable:!1,userId:100},dateCreated:"2019-04-05T03:01:00+00:00",actions:{reportUrl:"/#/"},rating:{positive:0,negative:0},text:"This is a example of reply number 8",status:L.default.PASS,inReplyToId:123456,commentId:123456,replyTo:{displayName:"PeterPan",text:"😂 This is a single line comment"}},{index:4,id:4,author:{displayName:"Rocky",isNotable:!1,userId:100},dateCreated:"2019-04-05T02:19:00+00:00",actions:{reportUrl:"/#/"},rating:{positive:0,negative:0},text:"This is a example of reply number 9",status:L.default.PASS,inReplyToId:123456,commentId:123456,replyTo:{displayName:"PeterPan",text:"😂 This is a single line comment"}},{index:3,id:3,author:{displayName:"LuckyLuke",isNotable:!1,userId:100},dateCreated:"2019-04-05T02:09:00+00:00",actions:{reportUrl:"/#/"},rating:{positive:0,negative:0},text:"This is a example of reply number 10",status:L.default.PASS,inReplyToId:123456,commentId:123456,replyTo:{displayName:"PeterPan",text:"😂 This is a single line comment"}},{index:2,id:2,author:{displayName:"CristobalColon",isNotable:!1,userId:100},dateCreated:"2019-04-05T02:01:00+00:00",actions:{reportUrl:"/#/"},rating:{positive:0,negative:0},text:"This is a example of reply number 11",status:L.default.PASS,inReplyToId:123456,commentId:123456,replyTo:{displayName:"PeterPan",text:"😂 This is a single line comment"}},{index:1,id:1,author:{displayName:"Nadal",isNotable:!1,userId:100},dateCreated:"2019-04-05T01:19:00+00:00",actions:{reportUrl:"/#/"},rating:{positive:0,negative:0},text:"This is a example of reply number 12",status:L.default.PASS,inReplyToId:123456,commentId:123456,replyTo:{displayName:"PeterPan",text:"😂 This is a single line comment"}},{index:0,id:0,author:{displayName:"Federer",isNotable:!1,userId:100},dateCreated:"2019-04-05T01:09:00+00:00",actions:{reportUrl:"/#/"},rating:{positive:0,negative:0},text:"This is a example of reply number 13",status:L.default.PASS,inReplyToId:123456,commentId:123456,replyTo:{displayName:"PeterPan",text:"😂 This is a single line comment"}}]},rulesPageUrl:t,forumId:"dummy",idctaData:J,isRatingEnabled:!0,userCanPostToForum:!0}),T.default.createElement(oe,null,"Error after posting a reply"),T.default.createElement("div",{className:"comments-styleguide__white-background"},T.default.createElement("div",{className:"reply"},T.default.createElement("div",{className:"reply__signedin"},T.default.createElement("div",{className:"reply__signedin-eligible"},T.default.createElement("p",{className:"reply__signedin-eligible-header"},"Your reply to Albert"),T.default.createElement(x.CommentsAlert,{type:A.AlertTypes.ERROR},this.theme.formatMessage("postCommentIdctaError")),T.default.createElement(x.CommentsInput,{isDisabled:!0,commentInputClass:"reply-input",textLimit:270,moderationStatus:F.default.PRE_MODERATED,createForum:!1,postCommentHandler:z}))))),T.default.createElement(oe,null,"Confirmation after posting a reply"),T.default.createElement("div",{className:"comments-styleguide__white-background"},T.default.createElement("div",{className:"reply"},T.default.createElement("div",{className:"reply__signedin"},T.default.createElement("div",{className:"reply__signedin-eligible"},T.default.createElement("p",{className:"reply__signedin-eligible-header"},"Your reply to Henry"),T.default.createElement(x.CommentsAlert,{type:A.AlertTypes.SUCCESS,Icon:this.theme.getIcon("SuccessIcon")},this.theme.formatMessage("postCommentSuccessPremoderated")),T.default.createElement(x.CommentsInput,{isDisabled:!0,commentInputClass:"reply-input",textLimit:270,moderationStatus:F.default.PRE_MODERATED,createForum:!1,postCommentHandler:z}))))),T.default.createElement(oe,null,"Reply of removed parent"),T.default.createElement(x.Comment,{commentInputTextLimit:750,commentInputModerationStatus:F.default.PRE_MODERATED,commentData:{index:0,id:0,author:{displayName:"Planetman",isNotable:!1,userId:300},dateCreated:"2019-04-02T18:05:00+00:00",actions:e,rating:{positive:0,negative:0},text:"This comment was removed",status:L.default.FAIL,totalReplies:1,replies:[{index:0,id:0,author:{displayName:"Ironman",isNotable:!1,userId:100},dateCreated:"2019-04-05T10:23:00+00:00",actions:{reportUrl:"/#/"},rating:{positive:0,negative:0},text:"This is a reply of parent comment which was removed by moderation",status:L.default.PASS,inReplyToId:0,commentId:0,replyTo:{displayName:"Planetman",text:"This comment was removed"}}]},rulesPageUrl:t,forumId:"dummy",idctaData:J,isRatingEnabled:!0,userCanPostToForum:!0}),T.default.createElement(oe,null,"Removed reply"),T.default.createElement(x.Comment,{commentInputTextLimit:750,commentInputModerationStatus:F.default.PRE_MODERATED,commentData:{index:0,id:0,author:{displayName:"Earthman",isNotable:!1,userId:300},dateCreated:"2019-04-02T18:05:00+00:00",actions:e,rating:{positive:0,negative:0},text:"😂 This is a single line comment",status:L.default.PASS,totalReplies:1,replies:[{index:0,id:0,author:{displayName:"Riceman",isNotable:!1,userId:100},dateCreated:"2019-04-05T10:23:00+00:00",actions:{reportUrl:"/#/"},rating:{positive:0,negative:0},text:"This is a reply of parent comment which was removed by moderation",status:L.default.FAIL,inReplyToId:0,commentId:0,replyTo:{displayName:"Riceman",text:"😂 This is a single line comment"}}]},rulesPageUrl:t,forumId:"dummy",idctaData:J,isRatingEnabled:!0,userCanPostToForum:!0}),T.default.createElement(oe,null,"Replied by notable"),T.default.createElement(x.Comment,{commentInputTextLimit:750,commentInputModerationStatus:F.default.PRE_MODERATED,commentData:{index:0,id:0,author:{displayName:"Hercules",isNotable:!0,userId:300,description:ae,avatarUrl:se},dateCreated:"2019-04-02T18:05:00+00:00",actions:e,rating:{positive:0,negative:0},text:"😂 This is a single line comment",status:L.default.PASS,totalReplies:1,replies:[{index:0,id:0,author:{displayName:"Hercules",isNotable:!0,userId:100,description:ae,avatarUrl:se},dateCreated:"2019-04-05T10:23:00+00:00",actions:{reportUrl:"/#/"},rating:{positive:0,negative:0},text:"This is the first reply of the comment and it is the only one",status:L.default.PASS,inReplyToId:0,commentId:0,replyTo:{displayName:"Hercules",text:"😂 This is a single line comment"}}]},rulesPageUrl:t,forumId:"dummy",idctaData:J,isRatingEnabled:!0,userCanPostToForum:!0}),T.default.createElement(V.A11yAlertMessage,{timeout:re,message:this.state.audibleMessage}))}},{key:"commentsSort",value:function(){return T.default.createElement(ie,{heading:"Comments Sort",id:"comments-sort"},T.default.createElement(oe,null,"Comments Sort Select"),T.default.createElement("div",{className:"comments-styleguide__white-background"},T.default.createElement(x.CommentsSort,null)),T.default.createElement("div",{className:"comments-styleguide__white-background"},T.default.createElement(x.CommentsSort,{isLoading:!0})),T.default.createElement(oe,null,"Comments Sort Error"),T.default.createElement(x.CommentsSortError,null))}},{key:"viewCommentsButton",value:function(){return T.default.createElement(ie,{heading:"View Comments Button",id:"view-comments-button"},T.default.createElement(oe,null,"With comments"),T.default.createElement("div",{className:"comments-styleguide__white-background"},T.default.createElement(x.ViewCommentsButton,{totalPostsCount:1})),T.default.createElement("div",{className:"comments-styleguide__white-background"},T.default.createElement(x.ViewCommentsButton,{totalPostsCount:11})),T.default.createElement("div",{className:"comments-styleguide__white-background"},T.default.createElement(x.ViewCommentsButton,{totalPostsCount:263})),T.default.createElement(oe,null,"Without comments"),T.default.createElement("div",{className:"comments-styleguide__white-background"},T.default.createElement(x.ViewCommentsButton,null)))}},{key:"getChildContext",value:function(){return{isFeatureEnabled:function(){return!0},apiKey:"styleguide",forumId:"noForum",theme:this.theme,setA11yAlertText:this.setA11yAlertText,triggerAggregatorDataFetch:z,logImpressionEventWithCommonLabels:z,WithStatsIncludeCommonLabels:G,logClickEventWithCommonLabels:z,canSendStat:Z,setStatSent:z,clearStatsSent:z,getInstanceId:K,noJS:!1}}},{key:"render",value:function(){var e=this.theme,t=e.themeVariant,n=e.product;return T.default.createElement("div",{className:(0,_.default)("comments-theme-variant--"+t,"comments__product--"+n)},T.default.createElement("div",{className:"comments-styleguide comments"},T.default.createElement(x.NoJSMessage,null),this.menu(),this.typography(),this.buttons(),this.alerts(),this.formElements(),this.header(),this.footer(),this.comment(),this.commentsList(),this.tooltip(),this.ratings(),this.donwRatings(),this.replies(),this.commentsSort(),this.viewCommentsButton()))}}]),t}(b.Component);le.displayName="StyleGuideModule",le.propTypes={mode:b.PropTypes.string,themeVariant:b.PropTypes.string,product:b.PropTypes.oneOf((0,i.default)(U.Products))},le.defaultProps={mode:k.MODE_STANDALONE,themeVariant:U.ThemeVariants.DEFAULT,product:U.Products.DEFAULT},le.childContextTypes={isFeatureEnabled:b.PropTypes.func.isRequired,apiKey:b.PropTypes.string.isRequired,forumId:b.PropTypes.string.isRequired,theme:b.PropTypes.shape({formatMessage:b.PropTypes.func.isRequired,getIcon:b.PropTypes.func.isRequired,getComponent:b.PropTypes.func.isRequired,ratingsNumberPlacement:b.PropTypes.string.isRequired}).isRequired,setA11yAlertText:b.PropTypes.func,triggerAggregatorDataFetch:b.PropTypes.func,logImpressionEventWithCommonLabels:b.PropTypes.func,WithStatsIncludeCommonLabels:b.PropTypes.func.isRequired,logClickEventWithCommonLabels:b.PropTypes.func,canSendStat:b.PropTypes.func.isRequired,setStatSent:b.PropTypes.func.isRequired,clearStatsSent:b.PropTypes.func.isRequired,getInstanceId:b.PropTypes.func.isRequired,noJS:b.PropTypes.bool.isRequired},t.StyleGuideModule=le},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(165),i=r(o);t.default={getSignedOutResponse:function(){return i.default.new().signedIn(!1).withSignInButton('\n Sign in\n or Register\n ').build()},getSignedInResponse:function(){return i.default.new().signedIn(!0).withPolicyCheck(!1).withSignedInMessage('You\'re signed in as test-u16. Sign out').build()},getSignedInResponseWithUnder16PolicyError:function(){return i.default.new().signedIn(!0).withPolicyCheck(!0).withSignedInMessage('Sorry, it looks like you’re not the right age to comment.').build()},getSignedInResponseWithoutDisplayName:function(){return i.default.new().signedIn(!0).withPolicyCheck(!0).withSignedInMessage('