9 lines
44 KiB
JavaScript
9 lines
44 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"],{"./src/lib/humanizeDateTime/index.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return s});const n=9999999999;function s(e){return e>n?new Date(e).toString():new Date(1e3*e).toString()}},"./src/lib/humanizeUTCDate/index.tsx":function(e,t,o){"use strict";t.a=(e=>{return new Date(1e3*e).toUTCString().replace("GMT","UTC")})},"./src/reddit/components/AuthorLink/index.tsx":function(e,t,o){"use strict";var n,s=o("./src/config.ts"),r=o("./node_modules/react/index.js"),i=o.n(r),d=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(d),a=o("./src/reddit/constants/colors.ts"),l=o("./src/reddit/controls/InternalLink/index.tsx"),p=o("./src/reddit/helpers/styles/components/index.tsx"),u=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),m=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},f=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var c=Array(i),a=0;a<i;a++)c[a]=arguments[a+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const x=`\n ${u.metadataFont}\n`,v=Object(p["d"])()`
|
|
${x}
|
|
color: ${e=>(e=>e.isAdmin?a.a.admin:e.isAdminEmeritus?a.a.adminEmeritus:e.isMod?a.a.moderator:e.isUnstyled?"inherit":Object(m.c)(e).linkText)(e)};
|
|
${e=>(e=>!e.isUnstyled&&(e.isOp||e.isAdmin||e.isAdminEmeritus||e.isMod||!1))(e)?u.actionFont:""}
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
`,g=c.a.a.withConfig({componentId:"s1461iz-0"})(["",""],v),y=c()(e=>f(l.a,{className:e.className,to:e.to,children:e.children})).withConfig({componentId:"s1461iz-1"})(["",""],v),h=c.a.span.withConfig({componentId:"s1461iz-2"})(["","color: inherit;"],x);t.a=(e=>e.isAuthorDeleted?f(h,{className:e.className},void 0,e.children):e.canAccessRedesignProfiles?i.a.createElement(y,b({},e,{to:`/user/${e.author}`}),e.children):i.a.createElement(g,b({},e,{href:`${s.a.redditUrl}/user/${e.author}`,target:"_blank"}),e.children))},"./src/reddit/components/Badges/UserDisplay/index.m.less":function(e,t,o){e.exports={image:"_2ntJEAiwKXBGvxrJiqxx_2"}},"./src/reddit/components/Badges/UserDisplay/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return y}),o.d(t,"a",function(){return h});var n,s=o("./node_modules/react/index.js"),r=o("./node_modules/react-redux/es/index.js"),i=o("./node_modules/reselect/lib/index.js"),d=o("./src/app/actions/tooltip.ts"),c=o("./src/config.ts"),a=o("./src/lib/classNames/index.ts"),l=o("./src/reddit/components/InfoTextTooltip/index.tsx"),p=o("./src/reddit/models/Badge/index.ts"),u=o("./src/reddit/components/Badges/UserDisplay/index.m.less"),m=o.n(u),b=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var c=Array(i),a=0;a<i;a++)c[a]=arguments[a+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});function f(e){return e.usePlaceholder&&!e.badges.length?b("img",{className:Object(a.a)(m.a.image,e.className),src:`${c.a.assetPath}/img/badges/placeholder.png`}):b(s.Fragment,{},void 0,e.badges.map(t=>{const o=Object(p.a)(24,24,t),n=`badges-display-${t.id}-${e.uniqueIdentifier}`;return b(s.Fragment,{},void 0,b("img",{className:Object(a.a)(m.a.image,e.className),id:n,src:o.url2x,srcSet:`${o.url}, ${o.url2x} 2x`,onMouseEnter:()=>e.onShowTooltip(n),onMouseLeave:()=>e.onHideTooltip()},t.id),b(l.c,{caretOnTop:!0,tooltipId:n,text:t.title}))}))}const x=Object(i.createStructuredSelector)({badges:(e,{subredditId:t,userId:o})=>{return((e.users.appliedBadges[o]||{})[t]||[]).map(t=>e.badges.models[t]).filter(Boolean)}}),v=Object(i.createStructuredSelector)({badges:(e,{subredditId:t})=>{const o=e.user.account;if(o){return((e.users.appliedBadges[o.id]||{})[t]||[]).map(t=>e.badges.models[t]).filter(Boolean)}return[]}}),g=e=>({onShowTooltip:t=>e(Object(d.d)({tooltipId:t})),onHideTooltip:()=>e(Object(d.f)())}),y=Object(r.connect)(x,g)(f),h=Object(r.connect)(v,g)(f)},"./src/reddit/components/CrosspostBox/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/react-router-dom/es/index.js"),c=o("./node_modules/reselect/lib/index.js"),a=o("./bundled-modules/styled-components/styled-components.min.js"),l=o.n(a),p=o("./src/app/strings/index.ts"),u=o("./src/lib/permalinkToOverlayLocation/index.ts"),m=o("./src/lib/prettyPrintNumber/index.ts"),b=o("./src/reddit/components/Media/index.tsx"),f=o("./src/reddit/components/PostMeta/index.tsx"),x=o("./src/reddit/components/PostTitle/index.tsx"),v=o("./src/reddit/components/SourceLink/index.tsx"),g=o("./src/reddit/components/Thumbnail/index.tsx"),y=o("./src/reddit/helpers/styles/mixins/index.tsx"),h=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),j=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),O=o("./src/reddit/selectors/posts.ts"),S=o("./src/reddit/selectors/user.ts"),T=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var c=Array(i),a=0;a<i;a++)c[a]=arguments[a+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const I=l()(b.a).withConfig({componentId:"s11okbsq-0"})(["margin-bottom: 8px;"]),w=l.a.div.withConfig({componentId:"s11okbsq-1"})(["","background: ",";border: 1px solid ",";border-radius: 4px;margin: 0 8px;padding: 8px 0;"],f.b,e=>Object(j.c)(e).body,e=>Object(j.c)(e).line),k=l.a.div.withConfig({componentId:"s11okbsq-2"})(["margin-left: 8px;margin-right: 8px;"]),C=l()(x.c).withConfig({componentId:"s11okbsq-3"})(["margin-left: 8px;margin-right: 8px;margin-bottom: 6px;"]),P=l.a.div.withConfig({componentId:"s11okbsq-4"})(["","color: ",";margin-top: 9px;margin-left: 8px;margin-right: 8px;position: relative;"],h.metadataFont,e=>Object(j.c)(e).metaText),N=l.a.div.withConfig({componentId:"s11okbsq-5"})(["display: inline-block;vertical-align: middle;a:hover {text-decoration: underline;}"]),M=l.a.span.withConfig({componentId:"s11okbsq-6"})(["display: inline-block;vertical-align: middle;margin: 0 3px;&:before {content: '·';}"]),A=l()(w).withConfig({componentId:"s11okbsq-7"})(["display: flex;flex-direction: row;"]),_=l.a.div.withConfig({componentId:"s11okbsq-8"})(["display: block;flex: 1 1 100%;flex-direction: column;position: relative;word-break: break-word;"]),$=l.a.div.withConfig({componentId:"s11okbsq-9"})(["","","border-radius: 4px;margin-right: 8px;"],g.e,Object(y.x)(56,84)),E=Object(c.createStructuredSelector)({language:S.M,post:O.D,shouldOpenPostInNewTab:S.Q,subreddit:O.O}),B=Object(i.connect)(E);t.a=B(e=>{const t=e.className,o=e.mediaProps,n=e.post,s=e.subreddit,i=e.language;if(!n)return null;const d={post:n,hideGildCta:!0,inSubredditOrProfile:!1,shouldShowSubscribeButton:!1,subredditOrProfile:s,language:i,tooltipType:`CrosspostBox--${o.isListing}`};return n&&!n.media?T(A,{className:t},void 0,T(_,{},void 0,T(k,{},void 0,r.a.createElement(f.a,d)),L(n),n.source&&T(v.a,{post:n}),F(e)),D(n)):T(w,{className:t},void 0,T(k,{},void 0,r.a.createElement(f.a,d)),L(n),R(e),F(e))});const L=e=>T(C,{isCrosspost:!0,post:e,shouldLinkWrap:!0,size:x.b.Small}),R=e=>{const t=e.mediaProps,o=e.post,n=Object.assign({},t,{post:o,crosspost:t.post});return T("div",{},void 0,r.a.createElement(I,n))},F=e=>{const t=e.language,o=e.post.score;return T(P,{},void 0,T(N,{},void 0,Object(p.d)(t,"posts.points.noun",o,{count:Object(m.b)(o)})),T(M,{}),T(N,{},void 0,U(e)))},U=e=>{const t=e.language,o=e.post,n=e.shouldOpenPostInNewTab,s=o.numComments;return T(d.a,{"data-click-id":"comments",to:Object(u.a)(o.permalink,!0),target:n?"_blank":void 0},void 0,Object(p.d)(t,"posts.comments.noun",s,{count:Object(m.b)(s)}))},D=e=>T($,{},void 0,T(g.d,{post:e}))},"./src/reddit/components/Governance/UserPublicPointsDisplay/async.tsx":function(e,t,o){"use strict";var n=o("./src/higherOrderComponents/makeAsync.tsx");const s=Object(n.a)({ErrorComponent:()=>null,LoadingComponent:()=>null,getComponent:()=>o.e("GovernanceUserPublicPointsDisplay").then(o.bind(null,"./src/reddit/components/Governance/UserPublicPointsDisplay/index.tsx")).then(e=>e.default)});t.a=s},"./src/reddit/components/Governance/UserPublicPointsDisplay/dynamicStyles.ts":function(e,t,o){"use strict";var n=o("./bundled-modules/styled-components/styled-components.min.js"),s=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),r=o("./src/reddit/components/Governance/UserPublicPointsDisplay/index.m.less"),i=o.n(r);t.a=Object(n.css)(["."," {color: ",";}"],i.a.amount,e=>Object(s.c)(e).metaText)},"./src/reddit/components/Governance/UserPublicPointsDisplay/index.m.less":function(e,t,o){e.exports={token:"_3nQr7AT1U0w1HdVk-xepUB",tokenGrey:"pvn75ouWnsoKK4l_QS9yI",tokenFilled:"_3d-Rpbq-Qb88tf5D_s1rsj",amount:"_3nhTfmUMmYib8x61No0h3r",container:"_15KjTxLhBmrJE79nlBUuxb"}},"./src/reddit/components/News/TopicTag.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return g});o("./node_modules/react/index.js");var n,s=o("./node_modules/react-redux/es/index.js"),r=o("./node_modules/react-router-dom/es/index.js"),i=o("./src/reddit/actions/news.ts"),d=o("./src/reddit/components/TrackingHelper/index.tsx"),c=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),a=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),l=o("./src/reddit/routes/news/util.ts"),p=o("./src/reddit/selectors/telemetry.ts"),u=o("./bundled-modules/styled-components/styled-components.min.js"),m=o.n(u),b=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var c=Array(i),a=0;a<i;a++)c[a]=arguments[a+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const f=m()(r.a).withConfig({componentId:"s1cvmbc0-0"})(["","user-select: none;padding: 2px 8px;border-radius: 2px;display: inline-block;height: 16px;overflow: hidden;text-overflow: ellipsis;vertical-align: middle;white-space: nowrap;"],c.flairFont),x=Object(s.connect)(null,(e,{topic:t,subtopic:o})=>({pushNewsRoute:()=>i.e(t,o)})),v=x(m()(Object(d.b)(e=>b(f,{className:e.className,to:Object(l.b)(e.topic,e.subtopic),onClick:t=>{if(t.stopPropagation(),e.topicTagClickEvent){const t=e.topic,o=e.subtopic,n=((e,t)=>{const o=t.post;return o&&o.id&&o.belongsTo&&o.belongsTo.id?t=>{let n=e(t);return n=Object.assign({},n,{post:Object(p.post)(t,o.id),subreddit:Object(p.subredditById)(t,o.belongsTo.id)})}:e})(e.topicTagClickEvent({topic:t,subtopic:o}),e);e.sendEvent(n)}e.pushNewsRoute()}},void 0,e.subtopic?e.subtopic.name:e.topic.name))).withConfig({componentId:"s1cvmbc0-1"})(["color: ",";cursor: pointer;margin: 0;background-color: ",";&:hover {text-decoration: underline;background-color: ",";}"],e=>e.active?Object(a.c)(e).body:Object(a.c)(e).postFlairText,e=>e.active?Object(a.c)(e).button:"transparent",e=>e.active?Object(a.c)(e).button:Object(a.c)(e).field)),g=m()(v).withConfig({componentId:"s1cvmbc0-2"})(["background-color: ",";margin-right: 4px;"],e=>Object(a.c)(e).field);t.b=v},"./src/reddit/components/OCCategoryList/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return v});o("./node_modules/react/index.js");var n,s=o("./node_modules/react-redux/es/index.js"),r=o("./node_modules/react-router-dom/es/index.js"),i=o("./node_modules/reselect/lib/index.js"),d=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(d),a=o("./src/reddit/contexts/PageLayer/index.tsx"),l=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),p=o("./src/reddit/layout/row/Inline/index.tsx"),u=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),m=o("./src/reddit/routes/originalContent/index.ts"),b=o("./src/reddit/selectors/originalContent.ts"),f=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var c=Array(i),a=0;a<i;a++)c[a]=arguments[a+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const x=c()(p.a).withConfig({componentId:"s1peah4e-0"})(["margin-right: 4px;"]),v=c()(r.a).withConfig({componentId:"s1peah4e-1"})(["",";background: ",";color: ",";border-radius: 2px;margin: 0 4px 0 0;padding: 3px 5px;white-space: nowrap;&:hover {background: "," };}"],l.flairFont,e=>Object(u.c)(e).field,e=>Object(u.c)(e).button,e=>Object(u.c)(e).flair),g=Object(a.w)({listingSort:a.c,timeSort:a.v,pageLayer:e=>e}),y=Object(i.createStructuredSelector)({ocCategories:b.e}),h=Object(s.connect)(y);t.b=g(h(e=>{const t=e.categoryNames.map(t=>e.ocCategories[t]).filter(Boolean);return f(x,{className:e.className},void 0,t.map(({name:t,displayText:o})=>f(v,{to:Object(m.b)(t,e.listingSort,e.timeSort)},t,o)))}))},"./src/reddit/components/PostBadges/index.m.less":function(e,t,o){e.exports={icon:"_3vju76MdF2FaGmELBeiJ_r",approveIcon:"_1knR9NIIXdSFC9IeFN11JL",automoderator:"_2etEb_0bRB9axAqF3uX28S",lockIcon:"_3wTfn3Meg1rXJ-qd2jUWMt",modIcon:"_SMl46gACTEszA_4A0Qfs",removeIcon:"_3yuF1RnBRJL4OS_STsoXcC",reportIcon:"_3guZWUAROueft8TPPGDZ-R",spamIcon:"_2BWw37nLL0rX6n7xcXciyD",stickyIcon:"NI8uZ-19oHf9gPO8jOvFu",archivedIcon:"_2WSiH2JwZq4bXuvrDn-cgU",addRemovalReason:"COGitU-ItwLZG_fP5rsdE",removalReason:"_16Ih3bzeELRlI6AWeW-nFy"}},"./src/reddit/components/PostBadges/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return Z});var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),c=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(c),l=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),p=o("./src/app/actions/tooltip.ts"),u=o("./src/app/strings/index.ts"),m=o("./src/lib/constants/index.ts"),b=o("./src/reddit/actions/removalReasons/index.ts"),f=o("./src/reddit/components/InfoTextTooltip/index.tsx"),x=o("./src/reddit/components/RestrictedFlatlistButton/index.tsx"),v=o("./src/reddit/constants/colors.ts"),g=o("./src/reddit/contexts/InsideOverlay.tsx"),y=o("./src/reddit/contexts/PageLayer/index.tsx"),h=o("./src/reddit/helpers/isRemoved.ts"),j=o("./src/reddit/helpers/modTooltipTemplates/index.ts"),O=o("./src/reddit/helpers/showReportIndicator/index.ts"),S=o("./src/reddit/selectors/posts.ts"),T=o("./src/reddit/icons/fonts/Approve/index.tsx"),I=o("./src/reddit/icons/fonts/Archived/index.tsx"),w=o("./src/reddit/icons/fonts/Lock/index.tsx"),k=o("./src/reddit/icons/fonts/Remove/index.tsx"),C=o("./src/reddit/icons/fonts/Report/index.tsx"),P=o("./src/reddit/icons/fonts/Spam/index.tsx"),N=o("./src/reddit/icons/fonts/Sticky/index.tsx"),M=o("./src/reddit/icons/svgs/Automoderator/index.tsx"),A=o("./src/reddit/icons/svgs/Moderate/index.tsx"),_=o("./src/reddit/components/PostBadges/index.m.less"),$=o.n(_),E=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var c=Array(i),a=0;a<i;a++)c[a]=arguments[a+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e};const L=`\n .${$.a.approveIcon} {\n color: ${v.a.moderator};\n }\n`,R=`\n .${$.a.archivedIcon} {\n color: ${v.a.locked};\n }\n`,F=a()(M.a).withConfig({componentId:"ksr6r6-0"})(["fill: ",";"],e=>e.removed?v.a.removed:v.a.approved),U=`\n .${$.a.lockIcon} {\n color: ${v.a.locked};\n }\n`,D=`\n .${$.a.removeIcon} {\n color: ${v.a.removed};\n }\n`,H=`\n .${$.a.reportIcon} {\n color: ${v.a.reported};\n }\n`,q=`\n .${$.a.spamIcon} {\n color: ${v.a.removed};\n }\n`,G=`\n .${$.a.stickyIcon} {\n color: ${v.a.moderator};\n }\n`,J=`\n .${$.a.modIcon} {\n fill: ${v.a.moderator};\n }\n`,z=`\n .${$.a.removalReason} {\n ${l.metadataFont};\n color: ${v.a.removed};\n }\n`,Q=e=>r.a.createElement("span",B({className:$.a.removalReason},e),e.children),Z=Object(c.css)(["","","","","","","","","","",""],L,R,U,D,H,q,G,J,x.f,z),W=Object(u.f)("posts.archived"),V=Object(u.f)("modTools.commentsLocked"),X=Object(u.f)("modTools.moderatorOf"),K=Object(u.f)("modTools.stickiedPost"),Y=Object(u.f)("modTools.pinnedPost"),ee=(e,t,o)=>{const n=`PostBadges--${e}--${t}`;return o?`${n}--${o}`:n},te=Object(y.w)({isProfilePostListing:y.M,isSubreddit:y.N,pageLayer:e=>e}),oe=Object(d.createStructuredSelector)({isPinned:(e,{post:t})=>Object(S.p)(e,{postId:t.id}),modModeEnabled:y.Q}),ne=Object(i.connect)(oe,(e,t)=>({onHideTooltip:()=>e(Object(p.f)()),onOpenRemovalReasonModal:()=>e(Object(b.d)(t.post.belongsTo.id,[t.post.id])),onShowTooltip:t=>()=>e(Object(p.d)({tooltipId:t}))}));t.a=te(ne(Object(g.b)(({className:e,displayText:t,isSubreddit:o,inSubredditOrProfile:n,isOverlay:i,isPinned:d,isProfilePostListing:c,language:a,modModeEnabled:l,onHideTooltip:p,onOpenRemovalReasonModal:b,onShowTooltip:v,post:g,tooltipType:y})=>{const S={container:null,caretOnTop:!1},M=ee("Approve",g.id,y),_=ee("Archived",g.id,y),L=ee("Automod",g.id,y),R=ee("Lock",g.id,y),U=ee("Mod",g.id,y),D=ee("Remove",g.id,y),H=ee("Report",g.id,y),q=ee("Spam",g.id,y),G=ee("Sticky",g.id,y),J=ee("Pinned",g.id,y);return E("div",{className:e},void 0,g.isArchived&&E(s.Fragment,{},void 0,E(I.a,{className:$.a.archivedIcon,desc:W(a),id:_,onMouseEnter:v(_),onMouseLeave:p}),r.a.createElement(f.c,B({tooltipId:_,text:W(a)},S))),g.isLocked&&E(s.Fragment,{},void 0,E(w.a,{className:$.a.lockIcon,desc:V(a),id:R,onMouseEnter:v(R),onMouseLeave:p}),r.a.createElement(f.c,B({tooltipId:R,text:V(a)},S))),o&&g.isStickied&&E(s.Fragment,{},void 0,E(N.a,{className:$.a.stickyIcon,desc:K(a),id:G,onMouseEnter:v(G),onMouseLeave:p}),r.a.createElement(f.c,B({tooltipId:G,text:K(a)},S))),c&&d&&E(s.Fragment,{},void 0,E(N.a,{className:$.a.stickyIcon,desc:Y(a),id:J,onMouseEnter:v(J),onMouseLeave:p}),r.a.createElement(f.c,B({tooltipId:J,text:Y(a)},S))),n&&t&&g.distinguishType===m.F.MODERATOR&&E(s.Fragment,{},void 0,E(A.a,{className:$.a.modIcon,desc:X(a,{displayText:t}),id:U,onMouseEnter:v(U),onMouseLeave:p}),r.a.createElement(f.c,B({tooltipId:U,text:X(a,{displayText:t})},S))),(g.isApproved||g.approvedBy)&&E(s.Fragment,{},void 0,E(T.a,{className:$.a.approveIcon,desc:Object(j.a)(a,g),id:M,onMouseEnter:v(M),onMouseLeave:p}),r.a.createElement(f.c,B({tooltipId:M,text:Object(j.a)(a,g)},S))),Object(h.a)(g)&&E(s.Fragment,{},void 0,E(k.a,{className:$.a.removeIcon,desc:Object(j.c)(a,g),id:D,onMouseEnter:v(D),onMouseLeave:p}),E(x.a,{className:$.a.addRemovalReason,canAddReason:g.isRemoved&&!g.modRemovalReason&&!g.modNote,onClick:b,text:Object(u.a)(a,"modTools.addARemovalReason")}),(g.modRemovalReason||g.modNote)&&E(Q,{onMouseEnter:v(D),onMouseLeave:p},void 0,Object(u.a)(a,"modTools.removalReason")),r.a.createElement(f.c,B({tooltipId:D,text:Object(j.c)(a,g)},S))),g.bannedBy&&g.isSpam&&E(s.Fragment,{},void 0,E(P.a,{className:$.a.spamIcon,desc:Object(j.e)(a,g),id:q,onMouseEnter:v(q),onMouseLeave:p}),r.a.createElement(f.c,B({tooltipId:q,text:Object(j.e)(a,g)},S))),("AutoModerator"===g.approvedBy||"AutoModerator"===g.bannedBy)&&E(s.Fragment,{},void 0,E(F,{className:$.a.automoderator,desc:Object(j.b)(a),id:L,onMouseEnter:v(L),onMouseLeave:p,removed:!!g.bannedBy}),r.a.createElement(f.c,B({tooltipId:L,text:Object(j.b)(a)},S))),Object(O.a)(g)&&!l&&E(s.Fragment,{},void 0,E(C.a,{className:$.a.reportIcon,desc:Object(j.d)(a,g.numReports),id:H,onMouseEnter:v(H),onMouseLeave:p}),r.a.createElement(f.c,B({tooltipId:H,text:Object(j.d)(a,g.numReports)},S))))})))},"./src/reddit/components/PostMeta/index.m.less":function(e,t,o){e.exports={metaContainer:"Ywkt6EDfNWINeTr9lP29H",postTopMeta:"iaAYGvTNtknkTxuHArCzL",subredditName:"_1L0pdcPf58t25Jy6ljHIKR"}},"./src/reddit/components/PostMeta/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return I});var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./bundled-modules/styled-components/styled-components.min.js"),d=o("./src/reddit/components/AwardBadges/index.tsx"),c=o("./src/reddit/components/Hovercards/SubredditHovercard/index.tsx"),a=o("./src/reddit/components/JSAPIContainers/index.tsx"),l=o("./src/reddit/components/News/TopicTag.tsx"),p=o("./src/reddit/components/OCCategoryList/index.tsx"),u=o("./src/reddit/components/PostBadges/index.tsx"),m=o("./src/reddit/components/PostEventMeta/index.tsx"),b=o("./src/reddit/components/PostTopMeta/index.tsx"),f=o("./src/reddit/components/QuarantinedLabel/index.tsx"),x=o("./src/reddit/components/SubredditNameLink/index.tsx"),v=o("./src/reddit/components/SubscribeButton/Inline.tsx"),g=o("./src/reddit/controls/MetaSeparator/index.tsx"),y=o("./src/reddit/helpers/trackers/news.ts"),h=o("./src/reddit/helpers/trackers/post.ts"),j=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),O=o("./src/reddit/components/PostMeta/index.m.less"),S=o.n(O),T=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var c=Array(i),a=0;a<i;a++)c[a]=arguments[a+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const I=Object(i.css)(["."," {color: ",";}","",""],S.a.subredditName,e=>Object(j.c)(e).bodyText,b.e,u.b);t.a=(e=>{const t=e.flairStyleTemplate,o=e.hideGildCta,n=e.inSubredditOrProfile,s=e.language,i=e.newsStory,j=e.post,O=e.shouldShowSubscribeButton,I=e.showOCCategories,w=e.subredditOrProfile,k=e.tooltipType;return T("div",{className:S.a.metaContainer},void 0,!!i&&!!i.topic&&!!i.subtopic&&T(l.a,{topic:i.topic,subtopic:i.subtopic,topicTagClickEvent:y.t,post:j}),I&&j.contentCategories&&T(p.b,{categoryNames:j.contentCategories}),Object(m.b)(j)&&T(r.a.Fragment,{},void 0,T(m.a,{language:s,post:j}),T(g.b,{})),!n&&!j.isSponsored&&w&&T(c.a,{postId:j.id,subredditName:w.name},void 0,T(x.a,{className:S.a.subredditName,"data-click-id":"subreddit",to:w.url},void 0,w.displayText)),w&&w.isQuarantined&&T(f.a,{}),!n&&!j.isSponsored&&w&&O&&T(v.a,{getEventFactory:e=>Object(h.d)(j.id,e?"unsubscribe":"subscribe"),identifier:{name:w.name,type:"subreddit"},postId:j.id,small:!0}),!n&&!j.isSponsored&&T(g.b,{}),!n&&!j.isSponsored&&T(a.h,{type:j.belongsTo.type,id:j.belongsTo.id}),T(b.d,{className:S.a.postTopMeta,flairStyleTemplate:t,language:s,post:j,showSponsorIcon:!0,tooltipType:k}),T(u.a,{displayText:w?w.displayText:null,inSubredditOrProfile:!!n,language:s,post:j,tooltipType:k}),T(d.d,{hideCta:o,thing:j,tooltipType:k}))})},"./src/reddit/components/PostTopMeta/index.m.less":function(e,t,o){e.exports={icon:"_2kj4VmBwjxriyYFAErhLcT",badge:"_2v3rPYFjifVGM7CfOh1dOl",container:"_3AStxql1mQsrZuUIFP9xSg",contractorIcon:"MMQAY3zdk1u4R9hIKTklf",adminIcon:"s46mo3ittWDxpPuCSXJ_T",crosspostIcon:"_3hh-iGjzOv78L_7t_PUHev",link:"eQgJJIfdY4JNXam_N622j",publicWallet:"SxdIdV2SgMWcIFG6Qsk0Q",authorLink:"_2tbHP6ZydRpjI44J3syuqC",outboundLink:"_3V0C4FGg6153xIBQjwsycq",externalLink:"_3jOxDPIQ0KaOWpzvSQo-1s",sponsored:"_1iAifs5p5MzPoJz5YrErUW",text:"_2fCzxBE1dlMh4OFc7B3Dun"}},"./src/reddit/components/PostTopMeta/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),c=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(c),l=o("./src/config.ts"),p=o("./src/lib/classNames/index.ts"),u=o("./src/lib/constants/index.ts"),m=o("./src/lib/humanizeDateTime/index.ts"),b=o("./src/lib/timeAgo/index.ts"),f=o("./src/reddit/helpers/isCrosspost.ts"),x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},v=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var c=Array(i),a=0;a<i;a++)c[a]=arguments[a+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),g=e=>r.a.createElement("svg",x({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),v("path",{d:"M9.06,8.64c1.12-1.26,2.2-2.45,4.44-2.6V7.5a1,1,0,0,0,.6.92,1,1,0,0,0,.41.09,1,1,0,0,0,.67-.26l3.16-2.9a.5.5,0,0,0,0-.74L15.18,1.7a1,1,0,0,0-1.68.74V4c-3.14.17-4.69,1.88-5.93,3.28C6.58,8.42,6,9,5,9H2a1,1,0,0,0,0,2H5C6.93,11,8,9.82,9.06,8.64Z"}),v("path",{d:"M15.18,11.76a1,1,0,0,0-1.68.74V14c-2.23-.16-3.29-1.32-4.39-2.56-.21-.24-.43-.48-.66-.72a5.63,5.63,0,0,1-1.77,1.06,13.34,13.34,0,0,1,.94,1A7.85,7.85,0,0,0,13.5,16v1.59a1,1,0,0,0,.6.92,1,1,0,0,0,.41.09,1,1,0,0,0,.67-.26l3.16-2.9a.5.5,0,0,0,0-.74Z"})),y=o("./src/app/actions/tooltip.ts"),h=o("./src/reddit/components/AuthorLink/index.tsx"),j=o("./src/reddit/components/Badges/UserDisplay/index.tsx"),O=o("./src/reddit/components/Flair/index.tsx"),S=o("./src/reddit/components/Governance/UserPublicPointsDisplay/async.tsx"),T=o("./src/reddit/components/Governance/UserPublicPointsDisplay/dynamicStyles.ts"),I=o("./src/reddit/components/Hovercards/AuthorHovercard/index.tsx"),w=o("./src/reddit/components/Hovercards/SubredditHovercard/index.tsx"),k=o("./src/reddit/components/InfoTextTooltip/index.tsx"),C=o("./src/reddit/components/JSAPIContainers/index.tsx"),P=o("./src/reddit/components/OCCategoryList/index.tsx"),N=o("./src/reddit/components/QuarantinedLabel/index.tsx"),M=o("./src/reddit/components/SponsoredLabel/index.tsx"),A=o("./src/reddit/components/SubredditNameLink/index.tsx"),_=o("./src/reddit/constants/colors.ts"),$=o("./src/reddit/contexts/InsideOverlay.tsx"),E=o("./src/reddit/controls/MetaSeparator/index.tsx"),B=o("./src/reddit/controls/OutboundLink/index.tsx"),L=o("./src/reddit/featureFlags/component.tsx"),R=o("./src/reddit/helpers/styles/postBackgroundColor.ts"),F=o("./src/reddit/helpers/styles/smartTextColor.ts"),U=o("./src/reddit/icons/fonts/Admin/index.tsx"),D=o("./src/reddit/featureFlags/index.ts"),H=o("./src/reddit/models/Flair/index.ts"),q=o("./src/reddit/models/NewStructuredStyles/index.ts"),G=o("./src/reddit/models/Post/index.ts"),J=o("./src/reddit/models/Subreddit/index.ts"),z=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),Q=o("./src/reddit/selectors/authorFlair.ts"),Z=o("./src/reddit/selectors/subreddit.ts"),W=o("./src/reddit/selectors/userFlair.ts"),V=o("./src/reddit/components/PostTopMeta/index.m.less"),X=o.n(V);o.d(t,"c",function(){return K}),o.d(t,"a",function(){return oe}),o.d(t,"e",function(){return le}),o.d(t,"b",function(){return me});var K,Y=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var c=Array(i),a=0;a<i;a++)c[a]=arguments[a+3];o.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();!function(e){e.StickyPost="sticky",e.Lightbox="lightbox"}(K||(K={}));const ee=e=>Object(F.a)(Object(R.a)(e),q.a.metaText,q.b.metaText),te=`\n .${X.a.adminIcon} {\n color: ${_.a.admin};\n }\n\n .${X.a.contractorIcon} {\n color: ${_.a.op};\n }\n`,oe=a()(E.b).withConfig({componentId:"s1j4909-0"})(["vertical-align: middle;"]),ne=Object(c.css)(["."," {color: ",";}"],X.a.text,e=>ee(e)),se=Object(L.a)("spBadges",j.b),re=e=>Y("span",{className:X.a.text},void 0,e.children),ie=Object(c.css)(["."," {fill: ",";}"],X.a.crosspostIcon,e=>Object(z.c)(e).button),de=Object(c.css)(["."," {color: ",";}"],X.a.authorLink,e=>ee(e)),ce=Object(c.css)(["."," {color: ",";}"],X.a.externalLink,e=>ee(e)),ae=Object(c.css)(["."," {color: ",";}"],X.a.outboundLink,e=>ee(e)),le=Object(c.css)(["","","","","","","",""],te,ie,ne,de,ce,ae,T.a),pe=a()(P.b).withConfig({componentId:"s1j4909-1"})(["display: inline-flex;"," {padding: 0 5px;}"],P.a),ue=Object(i.connect)(()=>Object(d.createStructuredSelector)({authorFlair:Q.a,canAccessRedesignProfiles:e=>D.d.redesignProfiles(e),createdTooltipId:(e,{isOverlay:t,post:o})=>`PostTopMeta--Created--${t}--${o.id}`,isUserFlairEnabled:(e,t)=>Object(W.a)(e,{subredditId:t.post.belongsTo.id}),flairPosition:(e,t)=>Object(W.c)(e,{subredditId:t.post.belongsTo.id}),patreonPatronFlair:(e,{post:t})=>Object(Z.q)(e,{identifier:t.belongsTo,userName:t.author})}),(e,{post:t,tooltipType:o})=>({onHideTooltip:()=>e(Object(y.f)()),onShowTooltip:t=>e(Object(y.d)({tooltipId:t}))})),me=e=>{const t=!e.isDeleted&&e.post.distinguishType===u.F.ADMIN;return Y(h.a,{className:X.a.authorLink,"data-click-id":"user",author:e.post.author,canAccessRedesignProfiles:e.canAccessRedesignProfiles,isAdmin:t,isAdminEmeritus:t,isAuthorDeleted:e.isDeleted,isUnstyled:!0},void 0,`u/${e.post.author}`,t&&Y(U.a,{className:X.a.adminIcon}),e.renderContractorBadge&&Y(U.a,{className:X.a.contractorIcon}))};t.d=Object($.b)(ue(class extends r.a.PureComponent{constructor(){super(...arguments),this.onShowCreatedTooltip=(()=>this.props.onShowTooltip(this.props.createdTooltipId))}render(){var e=this.props;const t=e.canAccessRedesignProfiles,o=e.className,n=e.createdTooltipId,r=e.isCommentsPage,i=e.isOverlay,d=e.isUserFlairEnabled,c=e.flairPosition,a=e.language,u=e.onHideTooltip,x=e.patreonPatronFlair,v=e.post,y=e.authorFlair;var h=e.showOCCategories;const j=void 0!==h&&h;var T=e.showSub;const P=void 0!==T&&T;var _=e.showTimestamp;const $=void 0===_||_,E=e.subredditOrProfile,L=e.tooltipType,R=e.hideSource,F=Object(f.a)(v),U=c===H.a.Left,D=v.authorIsContractor&&!!E&&E.type===J.b.EmployeesOnly,q=!i&&!r;return Y("div",{className:Object(p.a)(X.a.container,o)},void 0,j&&v.contentCategories&&Y(pe,{categoryNames:v.contentCategories}),P&&E&&Y(w.a,{postId:v.id,subredditName:E.name,tooltipType:L},void 0,Y(A.a,{"data-click-id":"subreddit",to:E.url},void 0,E.displayText)),E&&E.isQuarantined&&Y(N.a,{}),P&&!F&&Y(oe,{},void 0,"•"),v.isSponsored&&Y(s.Fragment,{},void 0,Y(M.a,{}),Y(oe,{},void 0,"•")),!v.isSponsored&&!F&&Y(re,{},void 0,"Posted by"),!v.isSponsored&&F&&Y(s.Fragment,{},void 0,Y(g,{className:X.a.crosspostIcon}),Y(re,{},void 0,"Crossposted by")),y&&U&&Y(O.c,{disabled:!d,flair:y,forceSmallEmojis:!0,usesCommunityStyles:q}),x&&U&&Y(O.c,{flair:x}),"subreddit"===v.belongsTo.type&&!Object(G.e)(v.author)&&Y(se,{className:X.a.badge,subredditId:v.belongsTo.id,userId:v.authorId,uniqueIdentifier:v.id}),Object(G.e)(v.author)?Y(me,{canAccessRedesignProfiles:t,post:v,isDeleted:!0,renderContractorBadge:D}):Y(I.b,{postOrComment:v,tooltipType:L},void 0,Y(me,{canAccessRedesignProfiles:t,post:v,renderContractorBadge:D})),y&&!U&&Y(O.c,{disabled:!d,flair:y,forceSmallEmojis:!0,usesCommunityStyles:q}),"subreddit"===v.belongsTo.type&&!Object(G.e)(v.author)&&Y(S.a,{className:X.a.publicWallet,contentId:v.id,subredditId:v.belongsTo.id,userId:v.authorId,username:v.author}),x&&!U&&Y(O.c,{flair:x}),Y(C.e,{post:v}),$&&Y("a",{className:X.a.externalLink,"data-click-id":"timestamp",href:v.permalink,id:n,onMouseEnter:this.onShowCreatedTooltip,onMouseLeave:u,target:"_blank",rel:"nofollow noopener"},void 0,Object(b.b)(a,v.created/1e3),Y(k.c,{caretOnTop:i,container:null,tooltipId:n,text:Object(m.a)(v.created)})),v.isSponsored&&v.source&&!R&&Y("span",{className:X.a.sponsored},void 0,Y(re,{},void 0,"from"),Y(B.a,{className:X.a.outboundLink,href:v.source.url.replace(l.a.redditUrl,""),isSponsored:v.isSponsored,source:v.source},void 0,v.source.displayText)))}}))},"./src/reddit/components/SourceLink/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(s),i=o("./src/lib/getShortenedLink.ts"),d=o("./src/reddit/controls/OutboundLink/styled.tsx"),c=o("./src/reddit/helpers/styles/components/index.tsx"),a=o("./src/reddit/icons/fonts/OutboundLink/index.tsx"),l=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var c=Array(i),a=0;a<i;a++)c[a]=arguments[a+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const p=r()(a.a).withConfig({componentId:"jlrhi6-0"})(["font-size: 13px;padding-left: 3px;vertical-align: middle;"]),u=r()(Object(c.a)()).withConfig({componentId:"jlrhi6-1"})(["display: flex;margin-top: ",";"],e=>e.isCommentsPage?"-5px":"0px");t.a=(e=>{const t=e.post,o=e.isCommentsPage,n=t.source,s=t.isSponsored;return n?l(u,{isCommentsPage:!!o},void 0,l(d.a,{href:n.url,isSponsored:s,source:n},void 0,Object(i.a)(t),l(p,{}))):null})},"./src/reddit/components/SponsoredLabel/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./node_modules/react-redux/es/index.js"),r=o("./node_modules/reselect/lib/index.js"),i=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(i),c=o("./src/app/strings/index.ts"),a=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),l=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),p=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var c=Array(i),a=0;a<i;a++)c[a]=arguments[a+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const u=d.a.span.withConfig({componentId:"s3dr7r-0"})(["","color: ",";flex: 0 0 auto;"],a.labelsFont,e=>Object(l.c)(e).linkText),m=Object(r.createStructuredSelector)({language:e=>e.user.language}),b=Object(s.connect)(m);t.a=b(({className:e,language:t})=>p(u,{className:e},void 0,Object(c.a)(t,"listings.sponsored")))},"./src/reddit/components/SubscribeButton/Inline.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),s=o.n(n),r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),d=o("./src/app/strings/index.ts"),c=o("./src/higherOrderComponents/addOverlayEvents.tsx"),a=o("./src/higherOrderComponents/asTooltip.tsx"),l=o("./src/reddit/models/MonthsToMinutes/index.ts"),p=o("./src/reddit/components/MonthsToMinutesTooltip/index.tsx"),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e};const m=Object(a.a)(i()(p.a).withConfig({componentId:"s1ey0ts-0"})(["margin-left: 10px;&:before {left: initial;right: ","px;}"],e=>e.targetBox?e.targetBox.width/2:40),[c.a.Click,c.a.Keydown,c.a.Resize]);var b=e=>s.a.createElement(m,u({targetBox:e.targetBox,targetPosition:["right","bottom"],tooltipPosition:["right","top"],tooltipType:l.j.SubscribeFeed},e)),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e};const x=Object(a.a)(i()(p.a).withConfig({componentId:"c7049y-0"})(["margin-left: 10px;&:before {left: initial;right: ","px;}"],e=>e.targetBox?e.targetBox.width/2:40),[c.a.Click,c.a.Keydown,c.a.Resize]);var v,g=e=>s.a.createElement(x,f({targetBox:e.targetBox,targetPosition:["right","bottom"],tooltipPosition:["right","top"],tooltipType:l.j.SubscribeReminder},e)),y=o("./src/reddit/components/TrackingHelper/index.tsx"),h=o("./src/reddit/connectors/SubscribeButton/index.ts"),j=o("./src/reddit/controls/Button/index.tsx"),O=o("./src/reddit/icons/svgs/Checkmark/index.tsx"),S=o("./src/reddit/icons/svgs/Plus/index.tsx"),T=o("./src/reddit/components/SubscribeButton/helpers/actionTemplateSource.ts"),I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},w=(v="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var s=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&s)for(var i in s)void 0===t[i]&&(t[i]=s[i]);else t||(t=s||{});if(1===r)t.children=n;else if(r>1){for(var d=Array(r),c=0;c<r;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:v,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),k=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&(o[n[s]]=e[n[s]])}return o};const C="\n line-height: 0;\n margin-left: 4px;\n padding: 0px;\n",P="\n align-items: center;\n display: flex;\n height: 24px;\n line-height: 22px;\n min-width: 24px;\n padding: 0 10px 3px 5px;\n",N=i()(e=>{e.small;var t=k(e,["small"]);return s.a.createElement(j.d,t)}).withConfig({componentId:"kvscsu-0"})(["",""],e=>e.small?C:P),M=i()(e=>{e.small,e.belongsToType;var t=k(e,["small","belongsToType"]);return s.a.createElement(j.g,t)}).withConfig({componentId:"kvscsu-1"})(["","line-height: 0;padding: 0;"],e=>e.small?C:P),A=i()(O.a).withConfig({componentId:"kvscsu-2"})(["height: 14px;margin: auto;width: 14px;"]),_=i()(S.a).withConfig({componentId:"kvscsu-3"})(["height: 14px;width: 14px;"]),$=i.a.div.withConfig({componentId:"kvscsu-4"})(["height: 24px;"]);t.a=Object(h.a)(Object(y.b)(class extends s.a.Component{constructor(e){super(e),this.onClick=(e=>{const t=this.props;if(t.userIsSubscriber?t.onUnsubscribe():(this.setState({hasJustSubscribed:!0}),t.onSubscribe()),t.onClick&&t.onClick(e),t.getEventFactory){const e=t.getEventFactory(t.userIsSubscriber);e&&t.sendEvent(e)}}),this.state={hasJustSubscribed:!1}}componentDidMount(){this.props.onSubscriptionsRequested()}render(){const e=this.props,t=e.className,o=e.identifier,n=e.language,r=(e.onSubscribe,e.onUnsubscribe,e.postId);e.sendEvent;var i=e.small;const c=void 0!==i&&i,a=e.subscribeReminderTooltipId,l=e.subscribeTooltipId,p=e.textVariant,u=e.userIsSubscriber,m=k(e,["className","identifier","language","onSubscribe","onUnsubscribe","postId","sendEvent","small","subscribeReminderTooltipId","subscribeTooltipId","textVariant","userIsSubscriber"]);return u?this.state.hasJustSubscribed?s.a.createElement(M,I({className:t,onClick:this.onClick,small:c,belongsToType:o.type},m),w(A,{})):c?null:w($,{}):w(s.a.Fragment,{},void 0,s.a.createElement(N,I({className:t,onClick:this.onClick,small:c},m,{id:`subscribe-button-${r}`}),w(_,{}),!c&&Object(d.a)(n,`subscriptions.${Object(T.a)({textVariant:p,type:o.type})}.subscribe`)),w(b,{isOpen:l===r,tooltipId:`subscribe-button-${r}`}),w(g,{isOpen:a===r,tooltipId:`subscribe-button-${r}`}))}}))},"./src/reddit/helpers/isRemoved.ts":function(e,t,o){"use strict";t.a=(e=>!!e.bannedBy&&!e.isSpam)},"./src/reddit/helpers/modTooltipTemplates/index.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return r}),o.d(t,"b",function(){return i}),o.d(t,"c",function(){return d}),o.d(t,"d",function(){return c}),o.d(t,"e",function(){return a});var n=o("./src/app/strings/index.ts"),s=o("./src/lib/humanizeUTCDate/index.tsx");const r=(e,t)=>t.approvedBy&&"string"==typeof t.approvedBy&&t.approvedAtUTC?Object(n.a)(e,"modTools.approvedBy",{username:t.approvedBy,time:Object(s.a)(t.approvedAtUTC)}):Object(n.a)(e,"modTools.approved"),i=Object(n.f)("modTools.actionByAutomod"),d=(e,t)=>{let o=t.bannedBy&&"string"==typeof t.bannedBy&&t.bannedAtUTC?Object(n.a)(e,"modTools.removedBy",{username:t.bannedBy,time:Object(s.a)(t.bannedAtUTC)}):Object(n.a)(e,"modTools.removed");return t.modReasonBy&&t.modRemovalReason&&(o=o+"\n"+Object(n.a)(e,"modTools.reasonBy",{username:t.modReasonBy})+t.modRemovalReason),t.modNote&&(o=o+"\n"+Object(n.a)(e,"modTools.note")+t.modNote),o},c=(e,t)=>`${t} ${Object(n.a)(e,"modTools.reports")}`,a=(e,t)=>t.bannedBy&&"string"==typeof t.bannedBy&&t.bannedAtUTC?Object(n.a)(e,"modTools.removedAsSpamBy",{username:t.bannedBy,time:Object(s.a)(t.bannedAtUTC)}):Object(n.a)(e,"modTools.removedAsSpam")},"./src/reddit/helpers/showReportIndicator/index.ts":function(e,t,o){"use strict";t.a=(e=>!e.ignoreReports&&(e.numReports||0)>0)},"./src/reddit/icons/fonts/Archived/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./src/lib/classNames/index.ts"),r=o("./src/reddit/icons/fonts/helpers.tsx"),i=o("./src/reddit/icons/fonts/commonStyles.m.less"),d=o.n(i),c=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var c=Array(i),a=0;a<i;a++)c[a]=arguments[a+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>c("i",{className:Object(s.a)(Object(r.b)("archived"),d.a.archivedIcon,e.className),id:e.id,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},void 0,c(r.a,{},void 0,e.desc)))},"./src/reddit/icons/fonts/Lock/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./src/lib/classNames/index.ts"),r=o("./src/reddit/icons/fonts/helpers.tsx"),i=o("./src/reddit/icons/fonts/commonStyles.m.less"),d=o.n(i),c=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var c=Array(i),a=0;a<i;a++)c[a]=arguments[a+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>c("i",{className:Object(s.a)(Object(r.b)("lock"),d.a.lockIcon,e.className),id:e.id,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},void 0,c(r.a,{},void 0,e.desc)))},"./src/reddit/icons/svgs/Automoderator/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var c=Array(i),a=0;a<i;a++)c[a]=arguments[a+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>s("svg",{className:e.className,id:e.id,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,s("path",{d:"M16,2H4A2,2,0,0,0,2,4V16a2,2,0,0,0,2,2H16a2,2,0,0,0,2-2V4A2,2,0,0,0,16,2ZM5.5,15.5h-1v-3h1Zm2,0h-1v-3h1ZM6,9A2,2,0,1,1,8,7,2,2,0,0,1,6,9Zm3.5,6.5h-1v-3h1Zm2,0h-1v-3h1Zm2,0h-1v-3h1Zm2,0h-1v-3h1ZM14,9a2,2,0,1,1,2-2A2,2,0,0,1,14,9Z"})))},"./src/reddit/models/Badge/index.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return i});var n=o("./src/config.ts"),s=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,s=!1,r=void 0;try{for(var i,d=e[Symbol.iterator]();!(n=(i=d.next()).done)&&(o.push(i.value),!t||o.length!==t);n=!0);}catch(c){s=!0,r=c}finally{try{!n&&d.return&&d.return()}finally{if(s)throw r}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function r(e,t,o){const n=o.media[0],r=Object.keys(n);let i={width:1/0,height:1/0,url:""};if(r.forEach(o=>{const r=n[o];var d=o.split("x").map(e=>parseInt(e)),c=s(d,2);const a=c[0],l=c[1];(a<i.width&&a>=e||l<i.height&&l>=t)&&(i={height:l,width:a,url:r})}),!i.url&&r.length){const e=Object.keys(n)[0],t=n[e];var d=e.split("x").map(e=>parseInt(e)),c=s(d,2);const o=c[0],r=c[1];i={height:r,width:o,url:t}}return i.url}function i(e,t,o){const s=r(e,t,o),i=r(2*e,2*t,o);return{url:`${n.a.assetPath}/${s}`,url2x:`${n.a.assetPath}/${i}`}}}}]);
|
|
//# sourceMappingURL=CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8.35bf65fed96d6fc5a328.js.map
|