2 lines
20 KiB
JavaScript
2 lines
20 KiB
JavaScript
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"],{"./src/reddit/components/PostEventMeta/index.tsx":function(e,t,n){"use strict";var o=n("./node_modules/react/index.js"),s=n("./bundled-modules/styled-components/styled-components.min.js"),r=n.n(s),i=n("./src/lib/eventTools/index.ts"),d=n("./src/app/strings/index.ts"),c=n("./src/lib/constants/index.ts");function l(e,t){return e.toLocaleDateString(t,{month:"numeric",day:"numeric"})}var a=n("./src/reddit/constants/colors.ts"),u=n("./src/reddit/helpers/styles/components/index.tsx"),f=n("./src/reddit/helpers/styles/mixins/fonts.tsx"),m=n("./src/reddit/helpers/styles/mixins/loading.ts"),p=n("./src/reddit/icons/fonts/Calendar/index.tsx"),b=n("./src/reddit/icons/fonts/Live/index.tsx"),v=n("./src/reddit/models/Theme/NewColorSystem/index.ts");n.d(t,"b",function(){return M});var y,x=(y="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,n,o){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=o;else if(r>1){for(var d=Array(r),c=0;c<r;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:y,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}});const h="comments",g=Object(s.css)([""]),j=Object(s.css)(["font-size: 16px;line-height: 16px;margin-right: 4px;"]),S=r.a.span.withConfig({componentId:"s44sesn-0"})(["","color: ",";"],g,e=>Object(v.c)(e).button),O=r.a.span.withConfig({componentId:"s44sesn-1"})(["","color: ",";"],g,e=>Object(v.c)(e).metaText),w=r.a.span.withConfig({componentId:"s44sesn-2"})(["","color: ",";"],g,a.a.orangered),C=r.a.span.withConfig({componentId:"s44sesn-3"})(["","align-items: center;display: inline-flex;vertical-align: middle;"],f.metadataFont),N=r()(p.a).withConfig({componentId:"s44sesn-4"})(["",""],j),I=r()(b.a).withConfig({componentId:"s44sesn-5"})(["",""],j),_=r()(Object(u.a)()).withConfig({componentId:"s44sesn-6"})(["","display: inline-block;height: 12px;vertical-align: middle;width: 60px;"],m.b);function M(e){return!!e.eventInfo}t.a=class extends o.Component{constructor(e){super(e),this.state={mounted:!1}}componentDidMount(){this.setState({mounted:!0})}render(){var e=this.props;const t=e.className,n=e.language,o=e.post.eventInfo;if(!o)return null;const s=o.eventEnd,r=o.eventIsLive,a=o.eventStart,u=Object(i.e)(a,s);let f,m;if(f=this.state.mounted||u===i.a.Live?function(e,t,n,o){const s=Object(i.e)(e,t),r=new Date(e*c.Wb);let a;return s===i.a.Live||o?Object(d.a)(n,"posts.event.inProgress"):(s===i.a.Future?a=Object(i.d)(e)?Object(d.a)(n,"posts.event.today"):Object(i.b)(e)>=5?l(r,n):function(e,t){return e.toLocaleDateString(t,{weekday:"long"})}(r,n):s===i.a.Past&&(a=Object(i.d)(e)?Object(d.a)(n,"posts.event.today"):l(r,n)),`${a} @ ${function(e,t){return e.toLocaleTimeString(t,{hour12:!0,hour:"numeric",minute:"2-digit"}).replace(/ /g,"").toUpperCase()}(r,n)}`)}(a,s,n,r):x(_,{gradientType:h,isLoading:!0}),r)m=x(w,{},void 0,x(I,{}),f);else if(u===i.a.Future)m=x(S,{},void 0,x(N,{}),f);else{if(u!==i.a.Past)return null;m=x(O,{},void 0,x(N,{}),f)}return x(C,{className:t},void 0,m)}}},"./src/reddit/components/QuarantinedLabel/index.m.less":function(e,t,n){e.exports={container:"_20cjHfhXYWuAKzRGNxePHy",quarantineIcon:"_3fdQM74ud_8KssWgeznOrR"}},"./src/reddit/components/QuarantinedLabel/index.tsx":function(e,t,n){"use strict";var o,s=n("./node_modules/react/index.js"),r=n.n(s),i=n("./node_modules/react-redux/es/index.js"),d=n("./node_modules/reselect/lib/index.js"),c=n("./bundled-modules/styled-components/styled-components.min.js"),l=n.n(c),a=n("./src/app/strings/index.ts"),u=n("./src/higherOrderComponents/asTooltip.tsx"),f=n("./src/reddit/components/InfoTextTooltip/index.tsx"),m=n("./src/reddit/contexts/PageLayer/index.tsx"),p=n("./src/reddit/icons/svgs/QuarantineWarning/index.tsx"),b=n("./src/reddit/models/Theme/NewColorSystem/index.ts"),v=n("./src/reddit/selectors/user.ts"),y=n("./src/reddit/components/QuarantinedL
|
||
|
//# sourceMappingURL=CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4.4669feb0e74c7cbcfd79.js.map
|