Blue Peter - How to make drums and play them (2024)

\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,{totalPostsCount: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,totalPostsCount: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),f=n(48),m=r(f),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(193),x=r(O),M=n(245),R=n(242),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,f.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=m.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(253),f=r(d);t.parseToggleOverridesProp=o,t.getConfig=a;var m=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),f=n(54),m=r(f),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(211),C=n(175),P=n(439),S=r(P),w=n(189),O=r(w),x=n(169),M=n(180),R=r(M),I=n(246),N=n(178),A=n(188),k=n(252),D=n(179),L=r(D),j=n(193),F=r(j),U=n(249),q=n(266),W=r(q),B=n(166),Y=n(191),V=n(247),z=function(){},H=function(e){var t=e.children;return T.default.createElement("h3",{className:"comments-styleguide__heading"},t)},G=function(e){var t=e.children;return t},Z=function(){return!1},K=function(){return 1},X=S.default.getSignedOutResponse(),J=S.default.getSignedInResponse(),Q=S.default.getSignedInResponseWithoutDisplayName(),$={signedIn:!1,signInButton:X.signInButton},ee={displayName:"test-u16",under16:!0},te=20,ne=10,re=6e4;H.displayName="SectionHeading",H.propTypes={children:b.PropTypes.oneOfType([b.PropTypes.arrayOf(b.PropTypes.node),b.PropTypes.node])};var oe=function(e){var t=e.children;return T.default.createElement("h4",{className:"comments-styleguide__subheading"},t)};oe.displayName="SubHeading",oe.propTypes={children:b.PropTypes.oneOfType([b.PropTypes.arrayOf(b.PropTypes.node),b.PropTypes.node])};var ie=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(H,null,n),r)};ie.displayName="Section",ie.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 ae="Presenter",se=C.exampleAvatarUrl96x96PngBase64,ue="https://wrong_dummy_url",le=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=W.default.use({component:n,themeVariant:n.props.themeVariant,product:e.product}),(0,k.addModeSupport)({mode:e.mode,component:n}),n.state={audibleMessage:""},n.setA11yAlertText=n.setA11yAlertText.bind(n),n}return(0,g.default)(t,e),(0,m.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(ie,{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(ie,{heading:"Typography",id:"comments-typography"},T.default.createElement(oe,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(oe,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(oe,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(oe,null,"Comments Message"),T.default.createElement("p",{className:"comments__message comments__message--closed-forum"},t))}},{key:"buttons",value:function(){return T.default.createElement(ie,{heading:"Buttons",id:"comments-buttons"},T.default.createElement(oe,null,"Active"),T.default.createElement(x.CommentsButton,null,"Post comment"),T.default.createElement(oe,null,"Disabled"),T.default.createElement(x.CommentsButton,{isDisabled:!0},"Post comment"),T.default.createElement(oe,null,"Submit Button"),T.default.createElement(x.CommentsButton,{type:"submit"},"Post comment"),T.default.createElement(oe,null,"More Comments Button"),T.default.createElement(x.CommentsButton,{className:"comments__more-comments-button",type:"button",onClick:z},"More comments"),T.default.createElement(oe,null,"Show New Comments Button"),T.default.createElement(x.ShowNewCommentsButton,{newCommentCount:2,onClick:z}),T.default.createElement(oe,null,"Stylized button"),T.default.createElement(x.CommentsButton,{className:"comments-button--styled"},"Stylized button"))}},{key:"formElements",value:function(){return T.default.createElement(ie,{heading:"Form Elements",id:"comments-form-elements"},T.default.createElement(oe,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(oe,null,"Comments Input"),T.default.createElement(x.CommentsHeader,null,T.default.createElement(x.CommentsInput,{textLimit:270,moderationStatus:F.default.PRE_MODERATED,createForum:!1,postCommentHandler:z})))}},{key:"header",value:function(){var e=S.default.getSignedOutResponse(),t=this.theme.formatMessage("moduleTitleText"),n=this.theme.formatMessage("closedForum");return T.default.createElement(ie,{heading:"Header",id:"comments-header"},T.default.createElement(oe,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(oe,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,{totalPostsCount:10}))),T.default.createElement(oe,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,{totalPostsCount:10}))),T.default.createElement(oe,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:ee.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(oe,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:ee.displayName,under16:ee.under16}),T.default.createElement(x.CommentsModerationMessage,{rulesPageUrl:"#",moderationStatus:F.default.PRE_MODERATED,signedOut:!1})),T.default.createElement(oe,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:ee.displayName,under16:!1}),T.default.createElement(x.CommentsModerationMessage,{rulesPageUrl:"#",moderationStatus:F.default.POST_MODERATED,signedOut:!1})),T.default.createElement(oe,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:ee.displayName,under16:!1}),T.default.createElement(x.CommentsModerationMessage,{rulesPageUrl:"#",moderationStatus:F.default.REACTIVELY_MODERATED,signedOut:!1})),T.default.createElement(oe,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:ee.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(oe,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(ie,{heading:"Footer",id:"comments-footer"},T.default.createElement(oe,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(oe,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:z,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(oe,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(oe,null,"With error message"),T.default.createElement(x.CommentsFooter,null,T.default.createElement("div",null,T.default.createElement(x.CommentsAlert,{type:A.AlertTypes.ERROR},this.theme.formatMessage((0,Y.getMessageKeyForError)(B.ErrorTypes.MORE_COMMENTS_FAILED))),T.default.createElement(x.CommentsButton,{className:"comments__more-comments-button",type:"button",onClick:z,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(ie,{heading:"Comment",id:"comments-comment"},T.default.createElement(oe,null,"Contributor Avatar Image"),T.default.createElement(x.ContributorAvatar,{displayName:"ApricotLaughingIguana",isCurrentUser:!1,avatarImageUrl:se}),T.default.createElement(oe,null,"Contributor Avatar Letter"),T.default.createElement(x.ContributorAvatar,{displayName:"ApricotLaughingIguana",isCurrentUser:!1}),T.default.createElement(oe,null,"Contributor Avatar Letter for current user"),T.default.createElement(x.ContributorAvatar,{displayName:"ApricotLaughingIguana",isCurrentUser:!0}),T.default.createElement(oe,null,"Username"),T.default.createElement(x.Username,null,"ApricotLaughingIguana"),T.default.createElement(oe,null,"Description"),T.default.createElement(x.UserDescription,null,"Presenter"),T.default.createElement(oe,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(oe,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:$}),T.default.createElement(oe,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 😂",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&nbsp&nbsp&nbsp😂
\n &nbsp&nbsp&nbspis 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.
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('

\n You need a display name to comment, reply and react.\n Create a display name\n \n

').build()}},e.exports=t.default},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(2),i=r(o),a=n(150),s=r(a),u=n(441),l=r(u),c=n(442),d=n(231),f=r(d),m=n(242),p=r(m),h=function(e){return null!==e};t.default=l.default.create({displayName:"CommentsAggregator",getInitialState:function(){return{firstPageOfCommentsRequestUri:null,latestCommentsDataRequestUri:null,commentsDataPaginationRequestUri:null,loadedComments:this.buildSortOrderArrays(),forumData:{totalPostsCount:0,totalCommentsCount:0},repliesDataPaginationRequestUri:null,sortDataRequestUri:null,retryCounters:{},sortOrder:p.default.NewestFirst.name,latestResponseType:null,fetchingSortedComments:!1,canLoadMore:!1,nextToken:null,alreadySortedByNewestFirst:!1,repliesNextToken:{},isAlreadyFirstRepliesPageLoaded:{}}},buildSortOrderArrays:function(){return(0,s.default)(p.default).reduce(function(e,t){return e[t]=[],e},{})},listenerAdded:function(e){switch(e.requestType){case f.default.replies:this.repliesListenerAdded(e);break;case f.default.sort:this.sortListenerAdded(e);break;case f.default.newComments:this.newCommentsListenerAdded(e);break;default:this.commentsListenerAdded(e),this.newCommentsListenerAdded(e)}},sortListenerAdded:function(e){var t=(0,i.default)({},e.commentsDataUri);if(this.state.sortOrder!==e.sortOrder){var n=p.default[e.sortOrder].indexName;this.state.sortOrder=e.sortOrder,t.pageSize=e.initialPageSize,delete t[n],this.state.repliesNextToken={},this.state.isAlreadyFirstRepliesPageLoaded={},t.sortOrder=e.sortOrder,t.retry=this.getRetryCounter(e.sortOrder),this.state.sortDataRequestUri=t,this.state.fetchingSortedComments=!0}},newCommentsListenerAdded:function(e){var t=this.state.sortOrder===p.default.NewestFirst.name,n=this.state.alreadySortedByNewestFirst,r=(0,i.default)({},e.commentsDataUri),o=r.forumId,a=r.apiKey,s=r.useLiveServices,u=r.useStageServices,l=t||n?this.state.forumData.totalCommentsCount:-1;this.state.latestCommentsDataRequestUri={forumId:o,apiKey:a,since:l,data:"bbc-morph-comments-data",useLiveServices:s,useStageServices:u}},commentsListenerAdded:function(e){var t=(0,i.default)({},e.commentsDataUri);e.nextToken?(t.nextToken=e.nextToken,t.pageSize=e.pageSize,t.sortOrder=this.state.sortOrder,this.state.commentsDataPaginationRequestUri=t):this.state.firstPageOfCommentsRequestUri=t},repliesListenerAdded:function(e){var t=(0,i.default)({},e.repliesDataUri),n=this.getRetryCounter(e.parentCommentId,e.nextReplyIndexToLoadFrom,e.repliesDataUri.pageSize),r=this.state.isAlreadyFirstRepliesPageLoaded[e.parentCommentId];this.setCheckingForReplies({commentId:e.parentCommentId,value:!0}),t.startIndex=e.nextReplyIndexToLoadFrom,this.state.repliesNextToken&&this.state.repliesNextToken[e.parentCommentId]&&(t.nextToken=this.state.repliesNextToken[e.parentCommentId]),r||(t.pageSize=e.repliesDataUri.pageSize+1),e.lastReplyId&&(t.lastReplyId=e.lastReplyId,t.repliesCount=e.nextReplyIndexToLoadFrom),t.commentId=e.parentCommentId,t.retry=n,this.state.repliesDataPaginationRequestUri=t},getRetryCounter:function(){for(var e=arguments.length,t=Array(e),n=0;n0){var n=(0,c.mapComments)(e.comments),r=this.getLoadedComments(p.default.NewestFirst.name),o=(0,c.prependNewComments)(r,n);this.setLoadedComments(p.default.NewestFirst.name,o),this.state.forumData=(0,c.getUpdatedForumData)(this.state.forumData,e),this.state.latestCommentsDataRequestUri.since=this.state.forumData.totalCommentsCount,this.state.latestResponseType=f.default.newComments}},processFirstPageOfCommentsDataRequest:function(){if(this.state.firstPageOfCommentsRequestUri){var e=this.getDataResponseIfAvailable(this.state.firstPageOfCommentsRequestUri);if(!e)return{uri:this.state.firstPageOfCommentsRequestUri,requireSuccess:!0,updates:!1};this.handleFirstPageOfCommentsDataResponse(e)}return null},processLatestCommentsDataRequest:function(){if(this.state.latestCommentsDataRequestUri){var e=this.getDataResponseIfAvailable(this.state.latestCommentsDataRequestUri);return e&&this.handleLatestCommentsDataResponse(e),{uri:this.state.latestCommentsDataRequestUri,requireSuccess:!0,updates:!0}}return null},processPaginatedCommentsDataRequest:function(){if(this.state.commentsDataPaginationRequestUri){var e=this.getDataResponseIfAvailable(this.state.commentsDataPaginationRequestUri);if(!e)return{uri:this.state.commentsDataPaginationRequestUri,requireSuccess:!0,updates:!1};var t=e.sortOrder,n=t===p.default.NewestFirst.name,r=(0,c.mapComments)(e.comments),o=this.getLoadedComments(this.state.sortOrder),i=(0,c.appendNewComments)(o,r,this.state.sortOrder);this.setLoadedComments(this.state.sortOrder,i),this.state.commentsDataPaginationRequestUri=null,this.state.latestResponseType=f.default.moreComments,this.state.canLoadMore=e.canLoadMore,this.state.nextToken=e.nextToken,this.state.alreadySortedByNewestFirst=this.state.alreadySortedByNewestFirst||n}return null},processRepliesDataRequest:function(){if(this.state.repliesDataPaginationRequestUri){var e=this.getDataResponseIfAvailable(this.state.repliesDataPaginationRequestUri);if(!e)return[{uri:this.state.repliesDataPaginationRequestUri,requireSuccess:!0,updates:!1}];var t=this.state.repliesDataPaginationRequestUri.commentId;this.setCheckingForReplies({commentId:t,value:!1}),this.storeNewRepliesForComment(t,e.replies),this.state.latestResponseType=f.default.replies,this.state.repliesNextToken[t]=e.nextToken,this.state.repliesDataPaginationRequestUri=null}return null},setCheckingForReplies:function(e){var t=e.commentId,n=e.value,r=this.getLoadedComments(this.state.sortOrder),o=(0,c.findById)(r,t);o&&(o.checkingForReplies=n)},storeNewRepliesForComment:function(e,t){var n=this.getLoadedComments(this.state.sortOrder),r=(0,c.findById)(n,e);if(r){var o=(0,c.mapReplies)(t,r,this.state.forumData.siteName),i=this.state.isAlreadyFirstRepliesPageLoaded[e];r.firstNewReplyId=(0,c.getFirstNewReplyId)(o,i),r.replies=(0,c.appendNewReplies)(r.replies,o),this.state.isAlreadyFirstRepliesPageLoaded[e]=!0}},handleSortResponse:function(e){var t=e.sortOrder,n=t===p.default.NewestFirst.name,r=this.state.alreadySortedByNewestFirst,o=this.getLoadedComments(t),i=(0,c.mapComments)(e.comments),a=(0,c.appendNewComments)(o,i,t),s=n||r?this.state.forumData.totalCommentsCount:-1;this.state.sortOrder=t,this.state.forumData=(0,c.getUpdatedForumData)(this.state.forumData,e),this.setLoadedComments(t,a),this.state.latestResponseType=f.default.sort,this.state.canLoadMore=e.canLoadMore,this.state.nextToken=e.nextToken,this.state.fetchingSortedComments=!1,this.state.latestCommentsDataRequestUri.since=s,this.state.alreadySortedByNewestFirst=this.state.alreadySortedByNewestFirst||n},processSortDataRequest:function(){if(this.state.sortDataRequestUri){var e=this.getDataResponseIfAvailable(this.state.sortDataRequestUri);if(!e)return[{uri:this.state.sortDataRequestUri,requireSuccess:!0,updates:!1}];this.handleSortResponse(e),this.state.sortDataRequestUri=null}return null},getDataResponseIfAvailable:function(e){var t=this.getAvailablePayload(e);return t&&200===t.meta.responseCode?t.body:null},setLoadedComments:function(e,t){this.state.loadedComments[e]=t},getLoadedComments:function(e){return this.state.loadedComments[e]},data:function(){var e=this.processFirstPageOfCommentsDataRequest(),t=this.processLatestCommentsDataRequest(),n=this.processPaginatedCommentsDataRequest(),r=this.processRepliesDataRequest(),o=this.processSortDataRequest();return[e,t,n,r,o].filter(h)},getPayload:function(){var e=this.state,t=e.forumData,n=e.loadedComments,r=e.sortOrder,o=e.latestResponseType,i=e.fetchingSortedComments,a=e.canLoadMore,s=e.nextToken,u=n[r];return{meta:{responseCode:200},body:{forumData:t,loadedComments:u,latestResponseType:o,sortOrder:r,fetchingSortedComments:i,canLoadMore:a,nextToken:s}}}}),e.exports=t.default},function(e,t){e.exports={create:function(e){return Morph.createAggregatorWithCaller("bbc-morph-comments-view@4.13.0",e)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return(0,l.pickBy)(e,function(e,t){return(0,c.not)("comments"===t)})}Object.defineProperty(t,"__esModule",{value:!0}),t.mapComments=t.mapReplies=t.appendNewReplies=t.getFirstNewReplyId=t.appendNewComments=t.prependNewComments=t.getUpdatedForumData=t.findById=void 0;var i=n(443),a=r(i),s=n(2),u=r(s),l=n(102),c=n(160),d=function(e,t){return t.some(function(t){return t.id===e.id})},f=function(e,t){var n=h(t,e.inReplyToId);return(0,u.default)({},e,{replyTo:{displayName:n.author.displayName,text:n.text}})},m=function(e){return e.replies&&e.replies[0]&&(e.replies[0].replyTo={displayName:e.author.displayName,text:e.text}),e.hasOwnProperty("checkingForReplies")===!1&&(e.checkingForReplies=!1),e},p=function(e,t){var n=e.map(function(e){return e.id}),r=t.filter(function(e){return(0,c.not)(n.indexOf(e.id)!==-1)});return r},h=t.findById=function(e,t){for(var n=0;n0;if(n){if(0===e.length)return t.slice();var r=t.filter(function(t){var n=e.some(function(e){return e.id===t.id});return!n});return r.concat(e)}return e},t.appendNewComments=function(e,t){var n=Array.isArray(t)&&t.length>0;if(n){if(0===e.length)return t.slice();var r=p(e,t);return e.concat(r)}return e},t.getFirstNewReplyId=function(e,t){var n=Array.isArray(e)&&e.length>0;return n?t?e[0].id:e[1].id:0},t.appendNewReplies=function(e,t){var n=Array.isArray(t)&&t.length>0;return n?[].concat((0,a.default)(e),(0,a.default)(t.filter(function(t){return!d(t,e)}))):e},t.mapReplies=function(e,t){var n=[].concat((0,a.default)(e),(0,a.default)(t.replies),[t]);return e.map(function(e){return f(e,n)})},t.mapComments=function(e){return e.map(function(e){return m(e)})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(444),i=r(o);t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1?arguments[1]:void 0,y=void 0!==h,g=0,v=c(f);if(y&&(h=r(h,p>2?arguments[2]:void 0,2)),void 0==v||m==Array&&s(v))for(t=u(f.length),n=new m(t);t>g;g++)l(n,g,y?h(f[g],g):f[g]);else for(d=v.call(f),n=new m;!(o=d.next()).done;g++)l(n,g,y?a(d,h,[o.value,g],!0):o.value);return n.length=g,n}})},function(e,t,n){"use strict";var r=n(12),o=n(20);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}}]);;});

Blue Peter - How to make drums and play them (2024)
Top Articles
Latest Posts
Recommended Articles
Article information

Author: Kieth Sipes

Last Updated:

Views: 6093

Rating: 4.7 / 5 (67 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Kieth Sipes

Birthday: 2001-04-14

Address: Suite 492 62479 Champlin Loop, South Catrice, MS 57271

Phone: +9663362133320

Job: District Sales Analyst

Hobby: Digital arts, Dance, Ghost hunting, Worldbuilding, Kayaking, Table tennis, 3D printing

Introduction: My name is Kieth Sipes, I am a zany, rich, courageous, powerful, faithful, jolly, excited person who loves writing and wants to share my knowledge and understanding with you.