1"use strict";(self.webpackChunksocialUX=self.webpackChunksocialUX||[]).push([[2210],{2210:function(t,e,a){a.r(e),a.d(e,{default:function(){return m}});var n=a(2452);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var n in a)({}).hasOwnProperty.call(a,n)&&(t[n]=a[n])}return t},r.apply(null,arguments)}function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function c(t,e,a){return(e=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var n=a.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=a){var n,i,r,o,c=[],s=!0,l=!1;try{if(r=(a=a.call(t)).next,0===e){if(Object(a)!==a)return;s=!1}else for(;!(s=(n=r.call(a)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){l=!0,i=t}finally{try{if(!s&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?l(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=Array(e);a<e;a++)n[a]=t[a];return n}var u=["avatar","update_avatar","title","bio","follow","date","review","update_author_rating","message"],d=(0,n.A)((function(t,e,a,n){var i=t.h,l=t.hooks,d=t.Fragment,m=a.formatDate,h=a.layoutOrder,p=a.layoutStatus,f=a.copyToClipboard,v=a.CommentBox,w=a.Review,g=l.useState,b=l.useCallback,y=l.useEffect;function _(t){return p&&t in p?"inactive"!==p[t]:u.includes(t)}var k=function(t){return m(new Date(1e3*parseInt(t)),"MMMM Do yyyy, h:mm:ss a")},x=i("path",{d:"M0 0h24v24H0z",fill:"none"}),C=i("a",{href:"javascript:;",class:"material-icons status-featured selected",title:"Featured"},i("svg",{xmlns:"http://www.w3.org/2000/svg",height:"17px",viewBox:"0 0 24 24",width:"17px"},x,i("path",{d:"M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12zm-10 5h-2v-2h2v2zm0-4h-2V7h2v6z"}))),j=i("a",{href:"javascript:;",class:"material-icons status-rejected selected",title:"Featured"},i("svg",{xmlns:"http://www.w3.org/2000/svg",height:"17px",viewBox:"0 0 24 24",width:"17px"},x,i("circle",{cx:"15.5",cy:"9.5",r:"1.5"}),i("circle",{cx:"8.5",cy:"9.5",r:"1.5"}),i("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm0-6c-2.33 0-4.32 1.45-5.12 3.5h1.67c.69-1.19 1.97-2 3.45-2s2.75.81 3.45 2h1.67c-.8-2.05-2.79-3.5-5.12-3.5z"}))),M=i("svg",{class:"comment-action-icon",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 24 24","aria-hidden":"true"},i("path",{d:"M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"}),x),S=i("svg",{class:"comment-action-icon",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 24 24","aria-hidden":"true"},x,i("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3
1-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"})),O=i("svg",{class:"comment-action-icon",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 24 24","aria-hidden":"true"},i("path",{fill:"none",d:"M0 0h24v24H0V0z"}),i("path",{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z"})),z=i("svg",{class:"comment-action-icon",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 24 24","aria-hidden":"true"},x,i("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z"})),B=i("svg",{class:"comment-action-icon",xmlns:"http://www.w3.org/2000/svg",height:"17px",width:"17px",viewBox:"0 0 24 24"},x,i("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"})),L=i("svg",{class:"comment-action-icon",xmlns:"http://www.w3.org/2000/svg",height:"17px",width:"17px",viewBox:"0 0 24 24"},x,i("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),R=i("svg",{class:"comment-action-icon",xmlns:"http://www.w3.org/2000/svg",height:"17px",width:"17px",viewBox:"0 0 24 24"},x,i("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"})),D=i("svg",{xmlns:"http://www.w3.org/2000/svg",height:"17px",viewBox:"0 0 24 24",width:"17px"},x,i("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),P=_("avatar")?function(t){var e=t.comment;return e.author?i("div",{class:"comment--item-avatar"},i("img",{src:e.author.image,title:e.author.title,alt:e.author.title,loading:"lazy",width:"38",height:"38"})):null}:function(){return null},A={update_author_rating:function(t){var e=t.comment,a=e.author,n=e.id,r=t.canBan,o=t.onAuthorRate;if(!r)return null;if(!a||!("rating"in a))return null;var c=s(g(a.rating||1),2),l=c[0],u=c[1];y((function(){u(a.rating)}),[a.rating]);var d=b((function(t){u(t)}),[]),m=b((function(){u(a.rating||1)}),[a.rating]),h=b((function(t){o(n,t)}),[n,o]);return i("span",{class:"author-rating"},i(w,{enabled:!0,onClick:h,onMouseEnter:d,onMouseLeave:m,score:l}))},message:function(t){var e=t.comment,a=(t.canBan,i("div",{class:"comment--item-message",dangerouslySetInnerHTML:{__html:e.html}}));return i(d,null,a)},bio:function(t){var e=t.comment;return e.author?i("div",{class:"comment--item--short-bio"},e.author.about):null},review:function(t){var e=t.comment;return e.payload&&e.payload.review_score?i("div",{class:"talk_review"},"Review:",i("span",{class:"input__star_rating","data-review":e.payload.review_score},i(w,{score:e.payload.review_score}))):null},title:function(t){var e=t.comment;return e.author?i("span",{class:"comment--item-username"},e.author.title):null},date:function(t){var e,a=t.comment,n=k(a.created_ts),r=(e=a.created_ts,m(new Date(1e3*parseInt(e)),"d MMM, yyyy"));return i("span",{class:"comment--item-date",title:"".concat(n).concat(a.is_updated?", last updated at ".concat(k(a.updated_ts)):"")},r)},follow:function(t){var e=t.comment.author;return e?i("div",{class:"follow-button","data-author-id":e.id}):null}},U=h.map((function(t){if(t in A&&_(t))return A[t];if(t.includes("site_field_")){var e=t.split("site_field_")[1];if(_("site_field_".concat(e)))return function(t){return function(e){var a=e.comment.author;if(a&&a.site_specific_data&&a.site_specific_data[t]){var n=t.replace(/_/gi,"-");return i("div",{class:"comment--custom-field-".concat(n),"data-value":a.site_specific_data[t]},a.site_specific_data[t])}return null}}(e)}return null}
1)).filter(Boolean);function F(t){var e=t.messageId,a=t.shareUrl,n=t.encodedUrl,r=t.show,o=t.onShare,c=s(g(!1),2),l=c[0],u=c[1];y((function(){u(!1)}),[r]);var d=b((function(){o()}),[o]),m=b((function(){f(a),u(!1),o()}),[o,a]);return i("div",{class:"comment--item__tooltip_share-wrp".concat(r?"":" hidden"),"data-message_id":e,tabindex:"-1"},i("div",{class:"comment--item__tooltip_share"},i("a",{onClick:d,href:"https://www.facebook.com/sharer/sharer.php?u=".concat(n,"%3Fxrs%3DRebelMouse_fb%26ts%3D"),"data-track-share":"Facebook","aria-label":"Share to Facebook",class:"share share-fb show-buttons autoclose",title:"Share to Facebook"},i("i",{class:"fa fa-facebook"})),i("a",{onClick:d,href:"https://twitter.com/intent/tweet?url=".concat(n),"data-track-share":"Twitter","aria-label":"Share to Twitter",class:"share share-tw show-buttons autoclose",title:"Share to Twitter"},i("i",{class:"fa fa-twitter"})),i("a",{onClick:d,href:a,"data-track-share":"link","aria-label":"Open permalink",class:"show-buttons autoclose",target:"_blank",title:"Open permalink"},i("i",{class:"fa fa-link"})),i("a",{onClick:m,href:"javascript: void(0)","data-clipboard-text":a,"data-track-share":"copy","aria-label":"Copy permalink",class:"show-buttons copy-clipboard",title:"Copy permalink"},i("i",{class:"fa fa-paste"}))),i("div",{class:"comment--item__copyed-link".concat(l?"":" hidden")},"copied to clipboard"))}function I(t){var e=t.comment,a=t.shouldDisable,n=t.onReplyClick,r=t.onDislikeClick,o=t.onLikeClick,c=a?" disabled":"",l=s(g(!1),2),u=l[0],d=l[1],m=b((function(){d(!u)}),[u]),h=b((function(){d(!1)}),[]);return i("div",null,i("a",{onClick:n,href:"javascript:;",title:"reply",class:"comment--item__reply ".concat(c),"data-message_id":e.id,"aria-label":"reply"},M),i("a",{onClick:m,href:"javascript:;",title:"share",class:"comment--item__share ".concat(c),"data-message_id":"${comment.id}","aria-label":"share"},S),i(F,{messageid:e.id,shareUrl:e.shareUrl,encodedUrl:e.encodedUrl,onShare:h,show:u}),i("a",{onClick:o,href:"javascript:;",title:"like",class:"comment--item__like".concat("like"===e.reaction?" selected":"").concat(c),"data-action":"like","data-message_id":e.id,"aria-label":"like"},O),i("a",{onClick:r,href:"javascript:;",title:"dislike",class:"comment--item__dislike ".concat("dislike"===e.reaction?" selected":"").concat(c),"data-action":"dislike","data-message_id":e.id,"aria-label":"dislike"},z))}function T(t){var e=t.comment,a=t.onFeatureClick,n=t.onApproveClick,r=t.onRejectClick,o=t.onToggleBan,c=t.canBan,s=t.canManage;return i("div",{class:"admin-controls"},s&&i(d,null,i("a",{href:"javascript:;",class:"action__featured".concat("featured"===e.status?" selected":""),"data-action":"featured","data-message_id":e.id,onClick:a,title:"Feature"},B),i("a",{href:"javascript:;",class:"action__approved".concat("approved"===e.status?" selected":""),"data-action":"approved","data-message_id":e.id,onClick:n,title:"Approve"},L),i("a",{href:"javascript:;",class:"action__rejected".concat("rejected"===e.status?" selected":""),"data-action":"rejected","data-message_id":e.id,onClick:r,title:"Reject"},R)),e.author&&c&&i("div",{class:"comment--item--menu"},D,i("div",{class:"comment--item--menu--drop-down"},i("a",{href:"javascript:;",onClick:o,class:"talks--menu__ban"},e.author.isBanned?"Unban user":"Ban user"))))}function E(t){var e=t.comment,a=t.isLoggedIn,n=t.canManage,l=t.canBan,u=t.status,m=t.onReplyClick,h=t.disabled,p=s(g(!1),2),f=p[0],w=p[1],_=s(g(!1),2),k=_[0],x=_[1],M=b((function(t){a?w(!f):m(t)}),[m,a,f]),S=b((function(t,e){m(t,e),x(!0)}),[m]);return y((function(){if(!h&&k)return w(!1),void x(!1)}),[h,k]),i(d,null,i(P,{comment:e}),i("div",{class:"comment--item-text"},"featured"===e.status&&C,"rejected"===e.status&&j,function(t){return U.map((function(e){return i(e,function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?o(Object(a),!0).forEach((function(e){c(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},t))}))}(t),i("div",{class:"comment--item--action"},"rejected"!==u&&i(I,r({},t,{onReplyClick:M})),(n||l)&&i(T,t)),!a&&i("div",{class:"comment-login-wrp"})),a&&f&&i("div",{class:"level-two"},i(v,r({replyId:e.id},t,{onReplyClick:S}))))}function H(t){var e=t.comment,a=t.onShowMore,n=t.onShowReplies,o=t.isChild,c=t.canManage,l=t.canBan,u=t.settings,d=Boolean(u&&u.expandReplies),m=c||l?e.counts.replies.total:e.replies.length>10?e.counts.replies.public.total:e.replies.length,h=s(g(m),2),p=h[0],f=h[1],v=s(g(d&&e.replies.length>0),2),w=v[0],_=v[1],k=b((function(t){_(!0),n(t)}),[n]),C=b((function(){_(!1)}),[]);return y((function(){p!=m&&(_(!0),f(m))}),[p,m]),o?null:i("div",{class:"replies level-two".concat(m?"":" hidden")},i("a",{onClick:k,href:"javascript:;",class:"comment--show--replies".concat(w?" hidden":""),"data-message_id":e.id,"aria-label":"show replies"},i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24","aria-hidden":"true"},i("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),x),i("span",{class:"comment--count"},m),1===m?" Reply":" Replies"),i("a",{onClick:C,href:"javascript:;",class:"comment--hide--replies".concat(w?"":" hidden"),"data-message_id":e.id,"aria-label":"hide replies"},i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24","aria-hidden":"true"}
1,i("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),x),"Hide replies"),i("div",{class:"reply-items".concat(w?"":" hidden")},e.replies.map((function(e){return i(V,r({},t,{key:e.id,comment:e,onShowMore:a,isChild:!0}))}))),i("div",{onClick:a,class:"talk--load_more__replies".concat(w&&e.replies.length&&e.replies.length!=m?"":" hidden"),"data-message_id":e.id},"Show More Replies"))}function V(t){var e=t.comment;return i("div",{id:"comment-".concat(e.id),class:"comment--item ".concat(e.status,"-comment"),"data-talk_id":e.talk_id,"data-message_id":e.id,"data-parents":e.parents},i(E,t),i(H,t))}return V}));function m(t){var e=t.preact;return d(e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.