15 lines
498 KiB
JavaScript
15 lines
498 KiB
JavaScript
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["CommentsPage","Frontpage~ModListing~ModQueuePages~Multireddit~News~OriginalContent~ProfileComments~ProfileOverview~~1d46b903","PostDraft~SubredditWiki"],{"./node_modules/lodash/_baseDelay.js":function(e,t){var o="Expected a function";e.exports=function(e,t,n){if("function"!=typeof e)throw new TypeError(o);return setTimeout(function(){e.apply(void 0,n)},t)}},"./node_modules/lodash/compact.js":function(e,t){e.exports=function(e){for(var t=-1,o=null==e?0:e.length,n=0,s=[];++t<o;){var r=e[t];r&&(s[n++]=r)}return s}},"./node_modules/lodash/defer.js":function(e,t,o){var n=o("./node_modules/lodash/_baseDelay.js"),s=o("./node_modules/lodash/_baseRest.js")(function(e,t){return n(e,1,t)});e.exports=s},"./node_modules/lodash/random.js":function(e,t,o){var n=o("./node_modules/lodash/_baseRandom.js"),s=o("./node_modules/lodash/_isIterateeCall.js"),r=o("./node_modules/lodash/toFinite.js"),i=parseFloat,d=Math.min,a=Math.random;e.exports=function(e,t,o){if(o&&"boolean"!=typeof o&&s(e,t,o)&&(t=o=void 0),void 0===o&&("boolean"==typeof t?(o=t,t=void 0):"boolean"==typeof e&&(o=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=r(e),void 0===t?(t=e,e=0):t=r(t)),e>t){var c=e;e=t,t=c}if(o||e%1||t%1){var l=a();return d(e+l*(t-e+i("1e-"+((l+"").length-1))),t)}return n(e,t)}},"./src/app/helpers/describeApiError/index.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return r});var n=o("./src/app/strings/index.ts"),s=o("./src/lib/constants/index.ts");function r({apiError:e,isLoggedOut:t,language:o}){switch(e.type){case s.I.AUTHORIZATION_ERROR:return t?Object(n.a)(o,"error.type.notLoggedIn"):Object(n.a)(o,"error.type.notAuthorized");case s.I.VALIDATION_ERROR:return Object(n.a)(o,"error.type.validation");case s.I.NOT_FOUND_ERROR:return Object(n.a)(o,"error.type.notFound");case s.I.SERVER_ERROR:return Object(n.a)(o,"error.type.server");case s.I.LIKELY_UBLOCK_ERROR:return Object(n.a)(o,"error.type.blocked");default:return Object(n.a)(o,"error.type.generic")}}},"./src/lib/bigNumberUtils/percent.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return s});var n=o("./node_modules/bignumber.js/bignumber.js");function s(e,t){const o=new n.BigNumber(e),s=new n.BigNumber(t),r=new n.BigNumber(o.dividedBy(s)),i=new n.BigNumber("100").multipliedBy(r);return new n.BigNumber(i).toNumber()}},"./src/lib/colors/constants.ts":function(e,t,o){"use strict";o.d(t,"c",function(){return n}),o.d(t,"b",function(){return s}),o.d(t,"n",function(){return r}),o.d(t,"l",function(){return i}),o.d(t,"g",function(){return d}),o.d(t,"k",function(){return a}),o.d(t,"m",function(){return c}),o.d(t,"a",function(){return l}),o.d(t,"d",function(){return p}),o.d(t,"e",function(){return m}),o.d(t,"f",function(){return u}),o.d(t,"h",function(){return b}),o.d(t,"i",function(){return f}),o.d(t,"j",function(){return h});const n="#24A0ED",s="#000",r="#FFF",i="#FF4500",d="#CCCCCA",a="#A5A4A4",c="#222",l="#EA0027",p="#5F99CF",m="#0079d3",u="#F7FBFD",b="#545452",f="#222",h="#C6C6C6"},"./src/lib/humanizeDate/index.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return s});var n=o("./src/app/strings/index.ts");function s(e,t,o){const s=new Date(1e3*e);return`${Object(n.a)(t,`time.monthName.${s.getMonth()}`)} ${o?s.getDate()+", ":""}${s.getFullYear()}`}},"./src/lib/linkMatchers/index.ts":function(e,t,o){"use strict";var n=o("./node_modules/linkify-it/index.js"),s=o.n(n),r=o("./node_modules/tlds/index.js"),i=o.n(r),d=o("./src/lib/linkMatchers/customLinks.ts"),a=o("./node_modules/lodash/values.js"),c=o.n(a);const l=e=>c()(d.b).includes(e.substring(1)),p=["//","ftp:","http:","https:","mailto:"],m=e=>((e,t)=>(t.forEach(t=>e.add(t,null)),e))(e,p);o.d(t,"c",function(){return u}),o.d(t,"d",function(){return f}),o.d(t,"g",function(){return h}),o.d(t,"a",function(){return x}),o.d(t,"b",function(){return y}),o.d(t,"e",function(){return O}),o.d(t,"f",function(){return C});const u=s()().tlds(i.a).set({fuzzyIP:!0}),b=s()().set({fuzzyIP:!0}).add(d.f.mention.prefix,d.f.mention.config),f=m(s()()).set({fuzzyLink:!1,fuzzyEmail:!1}).add(d.f.subreddit.pr
|
||
|
${C.n}
|
||
|
${C.m}
|
||
|
${b.a}
|
||
|
${T.b}
|
||
|
${N.b}
|
||
|
${R}
|
||
|
|
||
|
${e=>Object(C.j)(e.flairStyleTemplate)};
|
||
|
border-radius: 4px;
|
||
|
cursor: pointer;
|
||
|
display: flex;
|
||
|
flex: 1;
|
||
|
`,U=d()(e=>{const t=e.autoplayPref,o=e.availableWidth,n=e.className,s=e.crosspostRoot,r=e.crosspostSubredditOrProfile,i=e.currentUser,d=e.eventFactory,a=e.flairStyleTemplate,l=e.forceLoadMedia,p=e.hideNSFWPref,v=e.language,O=e.moderatorPermissions,C=e.modModeEnabled,j=e.onClickPost,S=e.post,I=e.scrollerItemRef,P=e.shouldPause;var k=e.showMetaLine;const L=void 0===k||k,M=e.subredditOrProfile,E=e.userIsOp;const R=(s||S).media,B=R&&R.type,D=Object(h.b)(S.id),$=B===w.m.RTJSON,U="subreddit"===S.belongsTo.type,W=E&&$,H=E&&!!U,V=Object(y.a)(O),z=Object(x.a)(O),K=R&&B!==w.m.RTJSON&&B!==w.m.TEXT,q=!R&&!!S.source&&Object(c.a)(S.source.url),G=R&&F(u.a,{autoplayPref:t,availableWidth:o,className:A.a.media,forceAspectRatio:w.c,isListing:!0,isMiniCard:!0,isNotCardView:!0,post:s||S,scrollerItemRef:I,shouldPause:P,shouldLoad:l,showCentered:!0,showFull:!1});return F(f.a,{className:n,post:S,onClick:j,eventFactory:d},void 0,F(b.b,{className:A.a.backgroundWrapper,flairStyleTemplate:a},void 0,K&&G,F("div",{className:A.a.innerContainer},void 0,q&&F(_.a,{post:S,templatePlaceholderImage:a?a.postPlaceholderImage:void 0}),F(g.c,{className:A.a.postTitleCompact,disableFlair:!0,hideSourceLink:!0,post:S,size:g.b.Large,titleColor:a&&a.postTitleColor}),L&&M&&F(N.a,{className:A.a.metaLine,crosspostSubredditOrProfile:r,hideNSFWPref:p,language:v,post:S,subredditOrProfile:M}),!K&&F("div",{className:A.a.mediaWrapper},void 0,G),F("div",{className:A.a.flexSpacer}),F(T.a,{currentUser:i,handleVote:e.handleVote,hasModFlairPerms:z,hasModPostPerms:V,language:v,modModeEnabled:C,post:S,showEditFlair:H,showEditPost:W}))),e.activeModalId===D&&F(h.a,{flairs:S.flair,subredditId:S.belongsTo.id,language:v,modalId:D,onFlairChanged:e.onFlairChanged}),F(m.d,{postId:S.id}))}).withConfig({componentId:"s1ml9eop-0"})(["",";"],$);t.c=B(D(U))},"./src/reddit/components/MiniPost/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return j});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"),a=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(a),l=o("./src/app/strings/index.ts"),p=o("./src/lib/prettyPrintNumber/index.ts"),m=o("./src/lib/timeAgo/index.ts"),u=o("./src/reddit/components/SubredditNameLink/index.tsx"),b=o("./src/reddit/components/Thumbnail/index.tsx"),f=o("./src/reddit/helpers/overlay/index.ts"),h=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),g=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),v=o("./src/reddit/selectors/news.ts"),x=o("./src/reddit/selectors/posts.ts"),y=o("./src/reddit/selectors/subreddit.ts"),O=o("./src/reddit/selectors/user.ts"),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 a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const w=c.a.p.withConfig({componentId:"s1weoanc-0"})(["","color: ",";margin-bottom: 4px;max-height: 36px;overflow: hidden;text-overflow: ellipsis;"],h.titleFontH5,e=>Object(g.c)(e).bodyText),j=Object(a.css)(["cursor: pointer;display: flex;padding-top: 12px;&:not(:last-child) {border-bottom: 2px solid ",";padding-bottom: 12px;}&:hover "," {text-decoration: underline;}"],e=>Object(g.c)(e).field,w),S=c.a.div.withConfig({componentId:"s1weoanc-1"})(["",";"],j),I=c.a.div.withConfig({componentId:"s1weoanc-2"})(["","border-radius: 4px;display: inline-block;flex: 0 0 65px;height: 49px;margin-right: 7px;width: 65px;"],b.e),P=c.a.div.withConfig({componentId:"s1weoanc-3"})(["display: flex;flex: 1;flex-direction: column;justify-content: center;overflow: hidden;"]),k=c.a.span.withConfig({componentId:"s1weoanc-4"})(["","color: ",";white-space: nowrap;& ~ &:before {content: '·';font-weight: bold;margin: 0 3px;}"],h.metadataFont,e=>Object(g.c)(e).actionIcon),T=Object(d.createSelector)(e=>e,x.D,x.c,v.q,O.M,(e,t,o,n,
|
||
|
//# sourceMappingURL=CommentsPage.a49796f4e39018c866ec.js.map
|