2 lines
120 KiB
JavaScript
2 lines
120 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"],{"./src/higherOrderComponents/withClickTracking.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return a});var n=o("./node_modules/lodash/omit.js"),s=o.n(n),i=o("./node_modules/react/index.js"),r=o.n(i),d=o("./src/reddit/components/TrackingHelper/index.tsx"),c=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=(e,t,o)=>(n=(()=>{}))=>s=>{const i=u(s.target,s.currentTarget);i&&t&&e(t(o,i)),m(s.target,s.currentTarget)&&n(s)};function a(e){return Object(d.b)(class extends r.a.Component{constructor(){super(...arguments),this.cancelClick=!1}render(){var t=this.props;const o=t.sendEvent,n=t.eventFactory,i=t.clickTrackingId;return r.a.createElement(e,c({},s()(this.props,"sendEvent","eventFactory","clickTrackingId"),{afterClickTracking:l(o,n,i)}))}})}const p=["A","BUTTON"],m=(e,t)=>!p.includes(e.tagName)&&(e===t||!!e.parentElement&&m(e.parentElement,t)),u=(e,t)=>{const o=e.dataset.clickId;return o||(e===t?null:!!e.parentElement&&u(e.parentElement,t))}},"./src/lib/memoizeByReference/index.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return i});var n=o("./node_modules/lodash/every.js"),s=o.n(n);function i(e){let t=null,o=null;return(...n)=>(null!==t&&n.length===t.length&&s()(n,(e,o)=>e===t[o])||(t=n,o=e(...n)),o)}},"./src/lib/timezone/index.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return r}),o.d(t,"b",function(){return d}),o.d(t,"e",function(){return c}),o.d(t,"d",function(){return l}),o.d(t,"f",function(){return a}),o.d(t,"g",function(){return p}),o.d(t,"c",function(){return m});var n=o("./src/lib/constants/index.ts"),s=o("./src/reddit/models/PostCreationForm/index.ts"),i=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,i=void 0;try{for(var r,d=e[Symbol.iterator]();!(n=(r=d.next()).done)&&(o.push(r.value),!t||o.length!==t);n=!0);}catch(c){s=!0,i=c}finally{try{!n&&d.return&&d.return()}finally{if(s)throw i}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();const r="America/Los_Angeles",d=()=>{let e;try{e=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(t){}return"Asia/Calcutta"===e&&(e="Asia/Kolkata"),e||void 0},c=e=>{const t=Math.abs(e),o=t%60;return`${e>0?"-":"+"}${("0"+Math.floor(t/60)).slice(-2)}:${("0"+o).slice(-2)}`},l=(e,t)=>{const o=t||Date.now(),s={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short",hour12:!1,timeZone:e};let r="";try{r=new Intl.DateTimeFormat("en-US",s).format(new Date(o))}catch(C){return}var d=r.replace(", "," ").split(" "),c=i(d,3);const l=c[0],a=c[1],p=c[2];var m=l.trim().split("/").map(Number),u=i(m,3);const f=u[0],h=u[1],b=u[2];var x=a.trim().split(":").map(Number),g=i(x,3);const v=g[0],y=g[1],O=g[2],w=Date.UTC(b,f-1,h,v,y,O),j=new Date(o).setMilliseconds(0)-w;return{abbreviation:p,offset:Math.round(j/n.kb)}},a=e=>{var t=e.slice(0,19).split("T"),o=i(t,2);const n=o[0],s=o[1];var r=n.split("-").map(Number),d=i(r,3);const c=d[0],l=d[1],a=d[2];var p=s.split(":").map(Number),m=i(p,3);const u=m[0],f=m[1];var h=m[2];return new Date(c,l-1,a,u,f,void 0===h?0:h)},p=e=>{const t=new Date(e);return t.setMinutes(t.getMinutes()-t.getTimezoneOffset()),t.toISOString().slice(0,16)},m=e=>{if(e&&e.eventInfo){var t=e.eventInfo;const o=t.eventStart,i=t.eventEnd;return{startDate:p(new Date(o*n.Wb)),endDate:p(new Date(i*n.Wb)),submitTime:s.i.Now,timezoneName:d()||r}}}},"./src/reddit/actions/postCreation/editing.ts":function(e,t,o){"use strict";var n=o("./src/app/strings/index.ts"),s=o("./src/lib/makeActionCreator/index.ts"),i=o("./src/reddit/actions/post.ts"),r=o("./src/reddit/actions/toaster.ts"),d=o("./src/lib/constants/index.ts"),c=o("./src/lib/makeApiRequest/index.ts"),l=o("./src/lib/omitHeaders/index.ts"),a=o("./src/reddit/constants/headers.ts"),p=o("./src/reddit/helpers/addRedesignIdentifier/index.ts"),m=o("./src/reddit/models/RichTextJson/addRTJParam.ts");const u=e=>Object.assign({thing_id:e.post.id,validate_on_submit:!0},(e=>!(!e.document||!e.document.length))(e)?(e=>({text:null,richtext_json:JSON.stringify({document:e.document})}))(e):(e=>({text:e.markdown,return_rtjson:!0}))(e));var f=(e,t)=>Object(c.c)(Object(l.a)(e,[a.a]),{endpoint:Object(m.a)(Object(p.a)(`${e.apiUrl}/api/editusertext`)),method:d.jb.POST,data:u(t)}),h=o("./src/reddit/helpers/overlay/index.ts"),b=o("./src/reddit/helpers/r2/normalizePostFromR2/index.ts"),x=o("./src/reddit/helpers/trackers/lightbox.ts"),g=o("./src/reddit/helpers/trackers/post.ts"),v=o("./src/reddit/helpers/trackers/postComposer.ts"),y=o("./src/reddit/models/Media/index.ts"),O=o("./src/reddit/models/PostCreationForm/index.ts"),w=o("./src/reddit/models/Toast/index.ts"),j=o("./src/reddit/selectors/posts.ts"),C=o("./src/reddit/actions/postCreation/constants.ts"),S=o("./src/reddit/actions/postCreation/general.ts");o.d(t,"b",function(){return F}),o.d(t,"a",function(){return M}),o.d(t,"c",function(){return E});const k=Object(s.a)(C.m),I=Object(s.a)(C.n),P=Object(s.a)(C.A),T=Object(s.a)(C.G),F=Object(s.a)(C.H),M=(e,t)=>async(o,n,{apiContext:s})=>{const i=n(),r=Object(j.D)(i,{postId:e});t?(o(Object(h.a)(r.permalink)),Object(x.f)(e,"edit")(i)):Object(g.b)(e,"edit")(i);const d=r.media;if(!d)return;let c,l=O.h.RICH_TEXT,a="";d.type===y.m.TEXT?(l=O.h.MARKDOWN,a=d.content):d.type===y.m.RTJSON&&(a=(l=d.rteMode||O.h.RICH_TEXT)===O.h.MARKDOWN?d.markdownContent:d.richtextContent,c=d.mediaMetadata||void 0),o(T({editorMode:l,mediaMetadata:c,postContent:a,postId:e}))},E=e=>async(t,o,{apiContext:s})=>{const d=o(),c=e.post,l=!c.media||"rtjson"!==c.media.type&&"text"!==c.media.type?"":c.media.rteMode;v.q(o(),Object(S.n)(l)),t(P(c.id));const a=await f(s(),e),p=!1===a.body.success;if(t(k(c.id)),a.ok&&!p){t(Object(r.e)({kind:w.b.SuccessCommunity,text:Object(n.a)(d.user.language,"postCreation.editing.success")})),t(F(c.id));const e=Object(b.a)(a.body);t(Object(i.B)({[c.id]:e}))}else t(I(a.error))}},"./src/reddit/components/AdViewability/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return g});var n,s=o("./node_modules/lodash/isEqual.js"),i=o.n(s),r=o("./node_modules/react/index.js"),d=o("./node_modules/@researchgate/react-intersection-observer/lib/es/index.js"),c=o("./src/reddit/constants/viewabilityEvents.ts"),l=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const a=.01,p=.5,m=1,u=[p,m,a],f=1e3,h=0,b=2e3,x=3e3;class g extends r.Component{constructor(e){super(e),this.viewableImpression={timer:null,event:c.a.Viewable,threshold:p,viewabilityMinimum:f,fired:!1,timeViewingInitialized:0},this.impression={timer:null,event:c.a.Impression,threshold:a,viewabilityMinimum:h,fired:!1,timeViewingInitialized:0},this.videoViewable={timer:null,event:c.a.VideoViewable,threshold:p,viewabilityMinimum:b,fired:!1,timeViewingInitialized:0,elapsedTime:0,remainingTime:b,timeViewingInterrupted:0},this.videoFullyViewable={timer:null,event:c.a.VideoFullyViewable,threshold:m,viewabilityMinimum:x,fired:!1,timeViewingInitialized:0,elapsedTime:0,remainingTime:x,timeViewingInterrupted:0},this.handleViewabilityChange=(e=>{this.checkViewabilityByType(e)}),this.checkViewabilityByType=(e=>{i()(this.state.event,e)||this.setState({event:e}),this.checkViewability(e,this.viewableImpression),this.checkViewability(e,this.impression),this.props.trackVideoMetrics&&(this.checkViewability(e,this.videoViewable),this.checkViewability(e,this.videoFullyViewable))}),this.state={event:null,currentContinuousViewingStartedAt:e.continuousViewingStartedAt}}componentDidUpdate(){this.state.currentContinuousViewingStartedAt===this.props.continuousViewingStartedAt?this.props.trackVideoMetrics?this.checkViewabilityByType(this.state.event):(this.updateViewableStats(this.videoViewable),this.updateViewableStats(this.videoFullyViewable)):this.resetTimers()}resetTimers(){this.resetTimer(this.videoViewable),this.resetTimer(this.videoFullyViewable),this.setState({currentContinuousViewingStartedAt:this.props.continuousViewingStartedAt})}resetTimer(e){this.clearTimer(e.timer),e.timer=null,e.timeViewingInitialized=0,e.elapsedTime=0,e.remainingTime=e.viewabilityMinimum}updateViewableStats(e){let t;e.timer&&!e.fired&&(e.timeViewingInterrupted=Date.now(),e.elapsedTime=e.timeViewingInterrupted-e.timeViewingInitialized,t=e.viewabilityMinimum-e.elapsedTime,e.remainingTime=t>0?t:0,this.clearTimer(e.timer))}isAdequatelyInView(e,t){return e.isIntersecting&&e.intersectionRatio>=t}checkViewability(e,t){if(this.isAdequatelyInView(e,t.threshold)&&!t.fired){const e=this.getLengthForTimer(t);return e>0?this.initTimer(t,e):this.fireStat(t),void(t.timeViewingInitialized=Date.now())}this.clearTimer(t.timer)}clearTimer(e){e&&clearTimeout(e)}getLengthForTimer(e){return e.remainingTime||e.viewabilityMinimum||0}fireStat(e){this.props.onViewable(e.event),e.fired=!0}initTimer(e,t){this.clearTimer(e.timer),e.timer=window.setTimeout(()=>{this.fireStat(e)},t)}render(){return l(d.a,{threshold:u,onChange:this.handleViewabilityChange,disabled:this.viewableImpression.fired&&this.videoViewable.fired&&this.impression.fired&&this.videoFullyViewable.fired||this.viewableImpression.fired&&this.impression.fired&&!this.props.trackVideoMetrics},void 0,this.props.children)}}},"./src/reddit/components/Comments/Comment/ModToolsFlatlist/index.m.less":function(e,t,o){e.exports={DistinguishShield:"_3cuXnOdiXHbT8t5tAaGgKr",distinguishShield:"_3cuXnOdiXHbT8t5tAaGgKr"}},"./src/reddit/components/Comments/Comment/ModToolsFlatlist/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"),i=o("./node_modules/reselect/lib/index.js"),r=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(r),c=o("./src/lib/constants/index.ts"),l=o("./src/app/actions/tooltip.ts"),a=o("./src/app/strings/index.ts"),p=o("./src/reddit/actions/comment.ts"),m=o("./src/reddit/components/DistinguishCommentDropdown/index.tsx"),u=o("./src/reddit/components/ModModeReports/helpers.ts"),f=o("./src/reddit/components/RestrictedFlatlistButton/index.tsx"),h=o("./src/reddit/components/TrackingHelper/index.tsx"),b=o("./src/reddit/contexts/PageLayer/index.tsx"),x=o("./src/reddit/helpers/hasModPostPermissions/index.ts"),g=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),v=o("./src/reddit/helpers/trackers/modTools.ts"),y=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),O=o("./src/reddit/selectors/moderatorPermissions.ts"),w=o("./src/reddit/selectors/tooltip.ts"),j=o("./src/reddit/selectors/user.ts"),C=o("./src/reddit/icons/fonts/Approve/index.tsx"),S=o("./src/reddit/helpers/styles/mixins/index.tsx"),k=o("./src/reddit/icons/fonts/helpers.tsx"),I=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});var P=d()(e=>I("i",{className:`${Object(k.b)("distinguishShield")} ${e.className}`})).withConfig({componentId:"s1jpiqvx-0"})(["",""],S.l),T=o("./src/reddit/icons/fonts/Remove/index.tsx"),F=o("./src/reddit/icons/fonts/Spam/index.tsx"),M=o("./src/reddit/components/Comments/Comment/ModToolsFlatlist/index.m.less"),E=o.n(M),_=o("./src/lib/lessComponent.tsx");o.d(t,"b",function(){return D}),o.d(t,"a",function(){return B});var N=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var i=t&&t.defaultProps,r=arguments.length-3;if(o||0===r||(o={}),o&&i)for(var d in i)void 0===o[d]&&(o[d]=i[d]);else o||(o=i||{});if(1===r)o.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];o.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),A=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 R=Object(r.css)(["height: 12px;margin-top: -6px;padding-right: 4px;vertical-align: middle;width: 12px;"]),D=d()(f.c).withConfig({componentId:"y4o3ov-0"})(["color: ",";display: inline-block;fill: ",";margin: 0;&:hover {background-color: transparent;color: ",";fill: ",";}"],e=>e.selected?Object(y.c)(e).bodyText:Object(y.c)(e).metaText,e=>e.selected?Object(y.c)(e).bodyText:Object(y.c)(e).metaText,e=>Object(y.c)(e).bodyText,e=>Object(y.c)(e).bodyText),$=d()(C.a).withConfig({componentId:"y4o3ov-1"})(["",""],R),L=d()(T.a).withConfig({componentId:"y4o3ov-2"})(["",""],R),V=d()(F.a).withConfig({componentId:"y4o3ov-3"})(["",""],R),B=_.a.wrapped(P,"DistinguishShield",E.a),H=Object(b.w)(),z=e=>`Distinguish--Dropdown--${e}`,W=Object(i.createStructuredSelector)({activeTooltipId:w.a,currentUser:j.j,moderatorPermissions:(e,t)=>{const o=t.comment;return Object(b.i)(e,t)||Object(O.g)(e,{subredditId:o.subredditId})},modModeEnabled:b.Q}),U=Object(s.connect)(W,(e,{comment:t,language:o})=>({onApproveComment:()=>e(Object(p.G)(t.id)),onDistinguishComment:(o,n)=>e(Object(p.R)(t.id,o,n)),onRemoveComment:()=>e(Object(p.Z)(t.id,!1)),onSpamComment:()=>e(Object(p.Z)(t.id,!0)),onToggleDistinguishDropdown:()=>e(Object(l.e)({tooltipId:z(t.id)}))}));t.c=H(U(d()(Object(h.b)(e=>{var t=e.className,o=e.comment,n=e.currentUser,s=e.isCommentAuthor,i=e.isOverlay,r=e.language,d=e.moderatorPermissions,l=(e.modModeEnabled,e.onApproveComment),p=e.onDistinguishComment,f=e.onRemoveComment,h=e.onSpamComment,b=e.onToggleDistinguishDropdown,g=e.sendEvent,y=A(e,["className","comment","currentUser","isCommentAuthor","isOverlay","language","moderatorPermissions","modModeEnabled","onApproveComment","onDistinguishComment","onRemoveComment","onSpamComment","onToggleDistinguishDropdown","sendEvent"]);const O=Object(x.a)(d),w=Object(u.b)(o),j=o.isApproved&&w,C=!!n&&n.isEmployee,S=!o.bannedBy||o.bannedBy===c.m,k=e=>g(Object(v.a)(e,o.id));return N("div",{className:t},void 0,(o.bannedBy||w)&&N(D,{text:j?Object(a.a)(r,"modTools.reapprove"):Object(a.a)(r,"modTools.approve"),onClick:()=>{l(),k("approve")}},void 0,N($,{})),S&&[N(D,{text:o.bannedBy===c.m?Object(a.a)(r,"modTools.confirmRemoval"):Object(a.a)(r,"modTools.remove"),onClick:()=>{f(),o.bannedBy===c.m?k("confirm_remove"):k("remove")}},void 0,N(L,{})),N(D,{text:Object(a.a)(r,"modTools.spam"),onClick:()=>{h(),k("spam")}},void 0,N(V,{}))],s&&!C&&!o.bannedBy&&N(D,{onClick:()=>{k("mod_distinguish_menu"),b()},selected:y.activeTooltipId===z(o.id)},void 0,N(B,{}),N(m.a,{isAdminDistinguished:o.isAdmin,isDropdownOpen:y.activeTooltipId===z(o.id),isModDistinguished:o.isMod,isOverlay:!!i,isStickied:o.isStickied,isTopLevelComment:!o.parentId,isUserEmployee:C,isUserMod:O,language:r,onDistinguishComment:p,sendEventWithName:k,tooltipId:z(o.id)})))})).withConfig({componentId:"y4o3ov-4"})(["",""],g.actionFont)))},"./src/reddit/components/CommentsLink/index.m.less":function(e,t,o){e.exports={commentIcon:"_3DVrpDrMM9NLT6TlsTUMxC",commentsLink:"_1UoeAeSRhOKSNdY_h3iS1O",defaultCursorWrapper:"_3m17ICJgx45k_z-t82iVuO",link:"_1Hw7tY9pMr-T1F4P1C-xNU",text:"FHCV02u6Cp2zYL0fhQPsO"}},"./src/reddit/components/CommentsLink/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return S});var n,s=o("./node_modules/react/index.js"),i=o("./node_modules/react-redux/es/index.js"),r=o("./node_modules/react-router-dom/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),c=o("./bundled-modules/styled-components/styled-components.min.js"),l=o("./src/app/strings/index.ts"),a=o("./src/lib/classNames/index.ts"),p=o("./src/lib/permalinkToOverlayLocation/index.ts"),m=o("./src/lib/prettyPrintNumber/index.ts"),u=o("./src/reddit/constants/componentTestIds.ts"),f=o("./src/reddit/constants/postLayout.ts"),h=o("./src/reddit/helpers/path/index.ts"),b=o("./src/reddit/helpers/styles/mixins/index.tsx"),x=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),g=o("./src/reddit/icons/fonts/Comment/index.tsx"),v=o("./src/reddit/selectors/posts.ts"),y=o("./src/reddit/selectors/user.ts"),O=o("./src/reddit/components/CommentsLink/index.m.less"),w=o.n(O),j=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const C=Object(c.css)(["."," {","}"],w.a.link,b.p),S=Object(c.css)(["","."," {","}"],C,w.a.commentsLink,x.actionFont),k=Object(i.connect)(()=>Object(d.createStructuredSelector)({language:y.M,postPermalink:v.C,shouldOpenPostInNewTab:y.Q})),I=({type:e,numComments:t,language:o,modModeEnabled:n,hasModPostPerms:i})=>{let r;return r=e===f.f.Compact||n&&i?Object(m.b)(t):0===t?Object(l.a)(o,"posts.comment.verb"):Object(l.d)(o,"posts.comments.noun",t,{count:Object(m.b)(t)}),j(s.Fragment,{},void 0,j(g.a,{className:w.a.commentIcon,role:"presentation"}),j("span",{className:w.a.text},void 0,r))};t.b=k(e=>{const t=e.className,o=e.hasModPostPerms,n=e.isCommentPermalink,s=e.isCommentsPage,i=e.isOverlay,d=e.language,c=e.modModeEnabled,l=e.numComments,m=e.onClick,f=e.postPermalink,b=e.shouldOpenPostInNewTab,x=e.type,g=n&&!i;return s&&!n?j("div",{className:Object(a.a)(w.a.commentsLink,w.a.defaultCursorWrapper,t),onClick:m},void 0,j(I,{type:x,numComments:l,language:d,modModeEnabled:c,hasModPostPerms:o})):j(r.a,{rel:"nofollow","data-click-id":"comments","data-test-id":u.a,className:Object(a.a)(w.a.commentsLink,w.a.link,t),target:b?"_blank":void 0,to:g?Object(h.b)(f):Object(p.a)(f,!0),onClick:m},void 0,j(I,{type:x,numComments:l,language:d,modModeEnabled:c,hasModPostPerms:o}))})},"./src/reddit/components/ConfirmUserActionModal/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"),i=o("./node_modules/reselect/lib/index.js"),r=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(r),c=o("./src/app/strings/index.ts"),l=o("./src/higherOrderComponents/asModal.tsx"),a=o("./src/reddit/components/ModalStyledComponents/index.tsx"),p=o("./src/reddit/controls/TextButton/index.tsx"),m=o("./src/reddit/layout/twoCol/ExpandLeft/index.tsx"),u=o("./src/reddit/selectors/user.ts"),f=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const h=d()(a.j).withConfig({componentId:"s1mpd70m-0"})(["line-height: 22px;margin: 10px 0px;"]),b=Object(i.createStructuredSelector)({language:u.M}),x=Object(s.connect)(b),g=e=>e.preventDefault();t.a=Object(l.a)(x(e=>f(a.c,{},void 0,f(a.g,{},void 0,f(m.b,{},void 0,f(a.k,{},void 0,e.headerText||Object(c.a)(e.language,"subredditModeration.confirm")),f(p.a,{onClick:()=>{e.trackCancel&&e.trackCancel(),e.toggleModal()}},void 0,f(a.b,{})))),f(a.h,{},void 0,f(h,{},void 0,e.modalText)),f(a.e,{},void 0,f(a.a,{onMouseDown:g,onClick:()=>{e.trackCancel&&e.trackCancel(),e.toggleModal()},"data-redditstyle":!0},void 0,e.cancelActionText||Object(c.a)(e.language,"subredditModeration.buttons.cancel")),f(a.o,{onMouseDown:g,onClick:t=>{e.onConfirm(),e.toggleModal(),e.trackClick()},"data-redditstyle":!0},void 0,e.actionText)))))},"./src/reddit/components/DistinguishCommentDropdown/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./src/lib/constants/index.ts"),i=o("./src/reddit/helpers/getOverlayContainerById/index.ts"),r=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(r),c=o("./src/app/strings/index.ts"),l=o("./src/higherOrderComponents/asTooltip.tsx"),a=o("./src/reddit/constants/colors.ts"),p=o("./src/reddit/constants/zIndex.ts"),m=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),u=o("./src/reddit/icons/svgs/RadioOff/index.tsx"),f=o("./src/reddit/icons/svgs/RadioOn/index.tsx"),h=o("./src/reddit/layout/row/Inline/index.tsx"),b=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),x=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const g=d.a.div.withConfig({componentId:"fd9a5p-0"})(["color: ",";"],e=>Object(b.c)(e).bodyText),v=d()(h.a).withConfig({componentId:"fd9a5p-1"})(["padding: 8px;"]),y="\n height: 12px;\n width: 12px;\n margin-right: 4px;\n",O=d()(u.a).withConfig({componentId:"fd9a5p-2"})(["",";"],y),w=d()(f.a).withConfig({componentId:"fd9a5p-3"})(["",";fill: ",";"],y,a.a.alienblue),j=e=>x(v,{onClick:e.selected?void 0:e.onClick},void 0,e.selected?x(w,{}):x(O,{}),e.text),C=d()(e=>{const t=e.className,o=e.language,n=e.style,i=e.isAdminDistinguished,r=e.isUserEmployee,d=e.isUserMod,l=e.isModDistinguished,a=e.isStickied,p=e.isTopLevelComment,m=e.onDistinguishComment;return x(g,{className:t,style:n},void 0,x(j,{onClick:()=>m(s.F.NONE,null),selected:!l&&!i,text:Object(c.a)(o,"comment.undistinguish")}),d&&x(j,{onClick:()=>m(s.F.MODERATOR,null),selected:l&&!a,text:Object(c.a)(o,"comment.distinguishAsMod")}),p&&d&&x(j,{onClick:()=>m(s.F.MODERATOR,!0),selected:a,text:Object(c.a)(o,"comment.distinguishAndSticky")}),r&&x(j,{onClick:()=>m(s.F.ADMIN,null),selected:i,text:Object(c.a)(o,"comment.distinguishAsAdmin")}))}).withConfig({componentId:"fd9a5p-4"})(["","background-color: ",";border: 1px solid ",";border-radius: 4px;box-shadow: 0 2px 4px 0 ",";cursor: pointer;position: absolute;width: ","px;z-index: ",";"],m.titleFontH5,e=>Object(b.c)(e).body,e=>Object(b.c)(e).line,e=>Object(b.c)(e).flair,189,p.u);var S=Object(l.a)(C),k=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var i=t&&t.defaultProps,r=arguments.length-3;if(o||0===r||(o={}),o&&i)for(var d in i)void 0===o[d]&&(o[d]=i[d]);else o||(o=i||{});if(1===r)o.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];o.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();t.a=(e=>{const t=e.className,o=e.isAdminDistinguished,n=e.isUserEmployee,r=e.isUserMod,d=e.isModDistinguished,c=e.isStickied,l=e.isTopLevelComment,a=e.language,p=e.onDistinguishComment,m=e.sendEventWithName,u=e.tooltipId,f=Object(i.a)(e.isOverlay);return k("div",{className:t,id:u},void 0,k(S,{container:f,isAdminDistinguished:o,isUserEmployee:n,isUserMod:r,isModDistinguished:d,isOpen:e.isDropdownOpen,language:a,tooltipId:u,isStickied:c,isTopLevelComment:l,onDistinguishComment:(e,t)=>{p(e,t),e===s.F.MODERATOR?m(!c&&t?"distinguish_sticky":"distinguish"):e===s.F.ADMIN?m("admin_distinguish"):d&&e!==s.F.MODERATOR?m("undistinguish"):o&&e!==s.F.ADMIN&&m("admin_undistinguish"),c&&!t&&m("unsticky")}}))})},"./src/reddit/components/Economics/EntryPoints/PostFlatlistSupportCTA/dynamicStyles.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return p}),o.d(t,"b",function(){return m});var n=o("./node_modules/polished/dist/polished.es.js"),s=o("./bundled-modules/styled-components/styled-components.min.js"),i=o("./src/reddit/helpers/styles/postBackgroundColor.ts"),r=o("./src/reddit/helpers/styles/smartTextColor.ts"),d=o("./src/reddit/models/NewStructuredStyles/index.ts"),c=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),l=o("./src/reddit/components/Economics/EntryPoints/PostFlatlistSupportCTA/index.m.less"),a=o.n(l);const p="m-selected",m=Object(s.css)(["."," {&:hover,&."," {background-color: ",";}}."," {fill: ",";}"],a.a.button,p,e=>Object(n.e)(Object(c.c)(e).navIcon,.1),a.a.icon,e=>Object(r.a)(Object(i.a)(e),d.a.actionIcon,d.b.actionIcon))},"./src/reddit/components/Economics/EntryPoints/PostFlatlistSupportCTA/index.m.less":function(e,t,o){e.exports={button:"_1jk3a9xT1g521OffvnHp3G",icon:"_4KyX6HJ_ZdRPMDVyUjOWp"}},"./src/reddit/components/Flatlist/constants.ts":function(e,t,o){"use strict";var n;o.d(t,"a",function(){return n}),function(e){e.EditPost="EDITPOST",e.EditFlair="EDITFLAIR",e.Save="SAVE",e.Gild="GILD",e.Hide="HIDE",e.Report="REPORT",e.Share="SHARE"}(n||(n={}))},"./src/reddit/components/Flatlist/getFlatlistBreakpoints.ts":function(e,t,o){"use strict";o.d(t,"b",function(){return s}),o.d(t,"a",function(){return i});var n=o("./src/reddit/components/Flatlist/constants.ts");const s=710,i=1080,r=[s,i,i],d=[0,0,520],c={[n.a.EditPost]:d,[n.a.EditFlair]:d,[n.a.Save]:r,[n.a.Hide]:r,[n.a.Report]:r,[n.a.Share]:[420,520,460],[n.a.Gild]:[1040,460,1040]};t.c=((e,t,o)=>{let n=0;return t&&(n=o?2:1),c[e][n]})},"./src/reddit/components/Flatlist/index.m.less":function(e,t,o){e.exports={flatlistContainer:"_3-miAEojrCvx_4FQ8x3P-s",flatlistSeparator:"x7sinePdvDKj7bf-cdm4Z",flexSpacer:"_21pmAV9gWG6F_UKVe7YIE0",modActionsIcon:"_15c1hqseW25EvRu0WP2Dq5",shareIcon:"_1GQDWqbF-wkYWbrpmOvjqJ",shareMenu:"_3XELg38mTJetc-xIUOKrMy",shareText:"_6_44iTtZoeY6_XChKt5b0",supportButton:"_3NIVQWStkLT7RXnwKpKNuT",commentsLink:"_2qww3J5KKzsD7e5DO0BvvU",hideAtSmTablet:"TtGNMQuRdiYPax8_SOiIL"}},"./src/reddit/components/Flatlist/index.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),s=o.n(n),i=o("./node_modules/react-redux/es/index.js"),r=o("./node_modules/reselect/lib/index.js"),d=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(d),l=o("./src/app/strings/index.ts"),a=o("./src/lib/classNames/index.ts"),p=o("./src/lib/eventTools/index.ts"),m=o("./src/lib/timezone/index.ts"),u=o("./src/reddit/actions/gold/modals.ts"),f=o("./src/reddit/actions/modal.ts"),h=o("./src/reddit/actions/post.ts"),b=o("./src/reddit/actions/postCreation/editing.ts"),x=o("./src/reddit/actions/postFlair.ts"),g=o("./src/reddit/actions/reportFlow.ts"),v=o("./src/reddit/components/CommentsLink/index.tsx"),y=o("./src/higherOrderComponents/makeAsync.tsx"),O=o("./src/reddit/featureFlags/index.ts"),w=o("./src/reddit/selectors/economics.ts"),j=o("./src/reddit/components/Economics/EntryPoints/PostFlatlistSupportCTA/dynamicStyles.tsx");const C=Object(y.a)({ErrorComponent:()=>null,LoadingComponent:()=>null,getComponent:()=>Promise.all([o.e("vendors~CoinsPurchaseModal~EconomicsEntryPointsCommentFlatlistSupportCTA~EconomicsEntryPointsPostFla~fffc5772"),o.e("EconomicsEntryPointsCommentFlatlistSupportCTA~EconomicsEntryPointsPostFlatlistSupportCTA~EconomicsSu~c5c59906"),o.e("EconomicsEntryPointsCommentFlatlistSupportCTA~EconomicsEntryPointsPostFlatlistSupportCTA"),o.e("EconomicsEntryPointsPostFlatlistSupportCTA")]).then(o.bind(null,"./src/reddit/components/Economics/EntryPoints/PostFlatlistSupportCTA/index.tsx")).then(e=>e.default)});var S=Object(i.connect)(()=>Object(r.createStructuredSelector)({featureEnabled:O.d.spSupport,userAcceptsSupport:(e,t)=>{const o=e.posts.models[t.contentId];return!!o&&Object(w.b)(e,{contentId:o.id,subredditId:t.subredditId})}}))(function(e){return e.featureEnabled&&e.userAcceptsSupport?s.a.createElement(C,e):null}),k=o("./src/reddit/components/ModActionsMenu/index.tsx"),I=o("./src/reddit/components/ModModeReports/helpers.ts"),P=o("./src/reddit/components/ModToolsFlatlist/index.tsx"),T=o("./src/reddit/components/PostEventFollow/index.tsx"),F=o("./src/reddit/components/PostFlairPicker/index.tsx"),M=o("./src/reddit/components/PostModModeDropdown/index.tsx"),E=o("./src/reddit/components/PostOverflowMenu/index.tsx"),_=o("./src/reddit/components/RestrictedFlatlistButton/index.tsx"),N=o("./src/reddit/components/ShareMenu/index.tsx"),A=o("./src/reddit/components/TrackingHelper/index.tsx"),R=o("./src/reddit/components/ViewReportsDropdown/index.tsx"),D=o("./src/reddit/constants/postLayout.ts"),$=o("./src/reddit/contexts/PageLayer/index.tsx"),L=o("./src/reddit/helpers/styles/mixins/index.tsx"),V=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),B=o("./src/reddit/helpers/styles/postBackgroundColor.ts"),H=o("./src/reddit/helpers/styles/smartTextColor.ts"),z=o("./src/reddit/selectors/user.ts"),W=o("./src/reddit/controls/Dropdown/Row.tsx");const U=c()(W.b).withConfig({componentId:"s1afabjy-0"})(["","",""],"\n width: auto;\n height: 25px;\n white-space: nowrap;\n padding-right: 4px;\n margin-right: 4px;\n text-transform: capitalize;\n word-wrap: initial;\n word-break: initial;\n",L.p);var q=c()(U).withConfig({componentId:"s1afabjy-1"})(["",""],e=>e.hideSelf?"display: none;":void 0!==e.breakpoint?`\n @media(max-width: ${e.breakpoint}px) {\n display: none;\n }`:""),G=o("./src/reddit/helpers/correlationIdTracker.ts"),K=o("./src/reddit/helpers/trackers/modTools.ts"),J=o("./src/reddit/helpers/trackers/post.ts"),Z=o("./src/reddit/icons/fonts/IgnoreReport/index.tsx"),X=o("./src/reddit/icons/fonts/ModActions/index.tsx"),Q=o("./src/reddit/icons/fonts/Report/index.tsx"),Y=o("./src/reddit/icons/fonts/Share/index.tsx"),ee=o("./src/reddit/models/NewStructuredStyles/index.ts"),te=o("./src/reddit/models/PostCreationForm/index.ts"),oe=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),ne=o("./src/reddit/models/User/index.ts"),se=o("./src/reddit/components/Flatlist/constants.ts"),ie=o("./src/reddit/components/Flatlist/getFlatlistBreakpoints.ts"),re=o("./src/reddit/actions/postCollection.ts"),de=o("./src/reddit/components/PostCreationForm/CollectionListModal/index.tsx"),ce=o("./src/reddit/components/PostCreationForm/CreateOrEditCollectionModal/index.tsx"),le=o("./src/reddit/selectors/activeModalId.ts"),ae=o("./src/reddit/components/Flatlist/index.m.less"),pe=o.n(ae);o.d(t,"h",function(){return we}),o.d(t,"b",function(){return je}),o.d(t,"d",function(){return Se}),o.d(t,"e",function(){return ke}),o.d(t,"a",function(){return Ie}),o.d(t,"g",function(){return Pe}),o.d(t,"f",function(){return Ee});var me,ue=(me="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var s=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&s)for(var r in s)void 0===t[r]&&(t[r]=s[r]);else t||(t=s||{});if(1===i)t.children=n;else if(i>1){for(var d=Array(i),c=0;c<i;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:me,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),fe=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,i=void 0;try{for(var r,d=e[Symbol.iterator]();!(n=(r=d.next()).done)&&(o.push(r.value),!t||o.length!==t);n=!0);}catch(c){s=!0,i=c}finally{try{!n&&d.return&&d.return()}finally{if(s)throw i}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),he=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};let be,xe;const ge=`\n .${pe.a.flatlistContainer} {\n ${V.actionFont}\n }\n`,ve=c()(v.b).withConfig({componentId:"s1xh3xs1-0"})(["margin-right: 4px;"]),ye=c.a.button.withConfig({componentId:"s1xh3xs1-1"})(["","padding: 4px;text-transform: capitalize;"],L.p),Oe=c()(N.a).withConfig({componentId:"s1xh3xs1-2"})(["width: auto;margin: 0 4px 0 0;word-break: normal;",""],e=>void 0!==e.breakpoint?`\n @media(max-width: ${e.breakpoint}px) {\n display: none;\n }`:""),we=Object(d.css)(["."," {color: ",";}"],pe.a.modActionsIcon,e=>Object(H.a)(Object(B.a)(e),ee.a.actionIcon,ee.b.actionIcon)),je=e=>s.a.createElement(X.a,he({className:pe.a.modActionsIcon},e)),Ce=`\n .${pe.a.viewCounts} {\n ${V.metadataFont}\n }\n`,Se=Object(d.css)(["","","","","",""],v.a,ge,we,j.b,Ce),ke=Object(d.css)(["."," {border-right: 1px solid ",";}"],pe.a.flatlistSeparator,e=>Object(oe.c)(e).line),Ie=e=>s.a.createElement("div",he({},e,{className:Object(a.a)(pe.a.flatlistSeparator,e.className)})),Pe=(e,t,o)=>{const n=`${e}--${t}`;return o?`${n}--${o}`:n},Te=Object($.w)({currentProfileName:$.j,isCommentPermalink:$.y,isCommentsPage:$.z,isProfilePostListing:$.M,pageLayer:e=>e}),Fe=Object(r.createStructuredSelector)({activeModalId:le.a,layout:$.O,userIsOp:z.db,subreddit:$.t}),Me=Object(i.connect)(Fe,(e,{post:t,isOverlay:n,isCommentsPage:s})=>({addPostToCollection:(t,o)=>e(Object(re.r)(t,o)),onToggleModal:t=>e(Object(f.i)(t)),onToggleSave:()=>e(Object(h.D)(t.postId)),onHide:o=>e(Object(h.G)(t.postId,!t.hidden,n,!0)),onReportClick:()=>e(Object(g.i)(t.postId,n)),onEdit:()=>{const o=!n&&!s;e(Object(b.a)(t.postId,o))},onFlairPost:()=>e(Object(f.i)(Object(F.b)(t.postId))),onGildClick:()=>e(Object(u.d)(t.postId)),onFlairChanged:({selectedTemplateId:o,previewFlair:n})=>e(Object(x.h)({post:t,selectedTemplateId:o,previewFlair:n})),toggleEditStartTimeModal:async()=>{if(!be||!xe){var s=await Promise.all([o.e("schedulePickerModal").then(o.bind(null,"./src/reddit/components/PostCreationForm/SchedulePickerModal/index.tsx")).then(e=>e.default),Promise.resolve().then(o.bind(null,"./src/reddit/actions/events.ts")).then(e=>e.editEventTimeRequested)]),i=fe(s,2);be=i[0],xe=i[1]}e(Object(f.i)(Object(te.r)(t.postId,n,te.j.POST_OVERFLOW_MENU)))},addEventStartTime:o=>{xe&&e(xe(t.id,o))}}));const Ee=(e,t,o,n)=>{let s=t;return o&&(s+="-overlay"),n&&(s+="-sticky"),s+=e},_e=Te(Me(Object(A.b)(class extends s.a.Component{constructor(){super(...arguments),this.handleGild=(async()=>{var e=this.props;const t=e.onGildClick,n=e.post,s=e.sendEvent;Object(G.d)(G.a.GildingFlow),t(),s((0,(await o.e("gildTrackers").then(o.bind(null,"./src/reddit/helpers/trackers/gild.ts"))).clickGildEvent)(n.id))}),this.onToggleCurrentModal=(()=>{this.props.activeModalId&&this.props.onToggleModal(this.props.activeModalId)}),this.onToggleCollectionListModal=(()=>{var e=this.props;const t=e.isOverlay,o=e.post,n=Object(te.s)(o.id,t);this.props.onToggleModal(n)}),this.addPostToCollection=(e=>{this.props.addPostToCollection(e.id,this.props.post.id).then(()=>this.onToggleCurrentModal())})}render(){var e=this.props;const t=e.activeModalId,o=e.addEventStartTime,n=e.className,s=e.currentProfileName,i=e.currentUser,r=e.hasModFlairPerms,d=e.hasModPostPerms,c=e.isCommentPermalink,u=e.isCommentsPage,f=e.isOverlay,h=e.isProfilePostListing,b=e.isSticky,x=e.language,g=e.layout,v=e.modModeEnabled,y=e.onFlairChanged,O=e.onIgnoreReports,w=e.onOpenReportsDropdown,j=e.pageLayer,C=e.post,N=e.sendEvent,A=e.showEditFlair,$=e.showEditPost,L=e.subreddit,V=e.toggleEditStartTimeModal,B=e.tooltipType,H=e.userIsOp,z=C.eventInfo,W=z&&Object(p.c)(z.eventStart,z.eventEnd),U=!!i&&Object(ne.f)(i)===C.author,G=Pe("View--Reports",C.id,B),X=Object(I.c)(C),ee=Ee("-mod-actions-menu",C.id,f,b),oe=Object(I.a)(C),re=C.postId,le=g===D.f.Large,ae=!f&&le||d&&v;return ue("div",{className:Object(a.a)(pe.a.flatlistContainer,n)},void 0,W&&ue(T.a,{post:C}),ue(ve,{className:pe.a.commentsLink,hasModPostPerms:d,isCommentsPage:u,isCommentPermalink:c,isOverlay:f,postId:C.id,modModeEnabled:v,numComments:C.numComments}),i&&!H&&ue(q,{breakpoint:Object(ie.c)(se.a.Gild,!!i,H),hideSelf:!1,displayText:Object(l.a)(x,"gold.giveAward"),onClick:this.handleGild},void 0,ue(E.f,{})),ue(Oe,{breakpoint:Object(ie.c)(se.a.Share,!!i,H),dropdownId:Ee("-share-menu",C.id,f,b),isOverlay:!!f,permalink:C.permalink,post:C,sendEventWithName:e=>N(Object(J.d)(C.id,e)),subreddit:L},void 0,ue(ye,{"data-click-id":"share"},void 0,ue(Y.a,{className:pe.a.shareIcon}),ue("span",{className:pe.a.shareText},void 0,Object(l.a)(x,"posts.share")))),$&&ue(q,{breakpoint:Object(ie.c)(se.a.EditPost,!!i,H),hideSelf:ae,displayText:Object(l.a)(x,"posts.editPost"),onClick:this.props.onEdit},void 0,ue(E.b,{})),ue(q,{breakpoint:Object(ie.c)(se.a.Save,!!i,H),hideSelf:d&&v,displayText:Object(l.a)(x,`posts.${C.saved?"unsave":"save"}`),onClick:this.props.onToggleSave},void 0,C.saved?ue(E.e,{}):ue(E.d,{})),L&&i&&!H&&!C.isNSFW&&ue(S,{className:pe.a.supportButton,contentId:C.id,renderInPortal:!(f||u||c),subredditId:L.id,userName:C.author}),!C.isSponsored&&ue(q,{breakpoint:Object(ie.c)(se.a.Hide,!!i,H),hideSelf:ae,displayText:Object(l.a)(x,`posts.${C.hidden?"unhide":"hide"}`),onClick:()=>this.props.onHide(!!C.hidden)},void 0,ue(E.a,{})),!U&&!C.isSponsored&&ue(q,{breakpoint:Object(ie.c)(se.a.Report,!!i,H),hideSelf:ae,displayText:Object(l.a)(x,"posts.report"),onClick:this.props.onReportClick},void 0,ue(E.c,{})),ue(P.a,{isOverlay:f,layout:g,language:x,modModeEnabled:v,post:C,sendEvent:N}),d&&ue(k.a,{dropdownId:ee,onClick:()=>N(Object(J.d)(C.id,"post_mod_action_menu"))},void 0,ue(je,{className:pe.a.modActionsIcon}),ue(M.a,{hasModFlairPerms:r,hasModPostPerms:d,isOverlay:!!f,isPostAuthor:U,language:x,modModeEnabled:v,post:C,tooltipId:ee})),d&&X&&!v&&ue(_.c,{text:`${oe}`,onClick:()=>{w(G),N(Object(J.d)(C.id,"post_report_menu"))},id:G},void 0,ue(R.a,{isOverlay:f,language:x,model:C,onIgnoreReports:()=>{O(),N(Object(K.k)(C.ignoreReports?"restore_reports":"ignore_reports",C.id))},tooltipId:G}),C.ignoreReports?ue(Z.a,{}):ue(Q.a,{})),(i||!C.isSponsored)&&ue(E.g,{currentProfileName:s,dropdownId:Ee("-overflow-menu",C.id,f,b),isCommentsPage:u,isFixed:b,isOverlay:!!f,isProfilePostListing:h,layout:g,modModeWithPost:v&&d,pageLayer:j,permalink:C.permalink,postId:re,sendEvent:N,showEditPost:!!$,showEditFlair:!!A,useFlatlistBreakpoints:this.props.useFlatlistBreakpoints,toggleAddEventStartTimeModal:V,toggleEditStartTimeModal:V}),t===Object(te.s)(C.id,f)&&ue(de.a,{subredditId:C.belongsTo.id,onClose:this.onToggleCurrentModal,postId:C.id,onSelectCollection:this.addPostToCollection,titleText:Object(l.a)(x,"collection.addPostToACollection"),onItemHoverActionText:Object(l.a)(x,"collection.addActionText"),isOverlay:f}),t===Object(te.r)(C.id,f,te.j.POST_OVERFLOW_MENU)&&be&&ue(be,{onChange:o,onClose:V,schedule:Object(m.c)(C),shouldShowDeleteButton:!1}),t===Object(te.t)(C.id,f)&&ue(ce.a,{onCancel:this.onToggleCollectionListModal,onCollectionCreated:this.addPostToCollection}),t===Object(F.b)(C.id)&&ue(F.a,{flairs:C.flair,subredditId:C.belongsTo.id,language:x,modalId:Object(F.b)(C.id),onFlairChanged:y}),ue("div",{className:pe.a.flexSpacer}))}})));t.c=c()(_e).withConfig({componentId:"s1xh3xs1-3"})(["",""],Se)},"./src/reddit/components/GildModal/Loader.tsx":function(e,t,o){"use strict";var n=o("./src/higherOrderComponents/makeAsync.tsx"),s=o("./src/lib/loadWithRetries/index.ts");const i=Object(n.a)({getComponent:()=>Object(s.a)(()=>Promise.all([o.e("FramedGild~GildModal"),o.e("GildModal")]).then(o.bind(null,"./src/reddit/components/GildModal/index.tsx"))).then(e=>e.default),ErrorComponent:()=>null,LoadingComponent:()=>null});t.a=i},"./src/reddit/components/ModActionsMenu/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/polished/dist/polished.es.js"),i=(o("./node_modules/react/index.js"),o("./node_modules/react-redux/es/index.js")),r=o("./node_modules/reselect/lib/index.js"),d=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(d),l=o("./src/app/actions/tooltip.ts"),a=o("./src/reddit/components/Comments/Comment/ModToolsFlatlist/index.tsx"),p=o("./src/reddit/components/RestrictedFlatlistButton/index.tsx"),m=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),u=o("./src/reddit/selectors/tooltip.ts"),f=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const h=c.a.button.withConfig({componentId:"s1a70eaj-0"})(["","&:hover, &:focus {background-color: ",";}"],p.e,e=>Object(s.e)(Object(m.c)(e).navIcon,.1)),b=Object(r.createStructuredSelector)({dropdownIsOpen:(e,{dropdownId:t})=>Object(u.b)(t)(e)}),x=Object(i.connect)(b,(e,{dropdownId:t})=>({toggleDropdown:()=>e(Object(l.e)({tooltipId:t}))})),g=()=>null;t.a=x(e=>f("div",{id:e.dropdownId,onClick:e.dropdownIsOpen?g:e.onClick},void 0,e.inCommentFlatlist?f(a.b,{className:e.className,onClick:e.toggleDropdown},void 0,e.children):f(h,{className:e.className,onClick:e.toggleDropdown},void 0,e.children)))},"./src/reddit/components/ModModeReports/helpers.ts":function(e,t,o){"use strict";o.d(t,"c",function(){return n}),o.d(t,"a",function(){return s}),o.d(t,"b",function(){return i});const n=e=>(e.numReports||0)>0||!!e.modReportsDismissed||!!e.userReportsDismissed,s=e=>{if(e.numReports&&e.numReports>0)return e.numReports;return(e.modReportsDismissed&&e.modReportsDismissed.length||0)+(e.userReportsDismissed&&e.userReportsDismissed.length||0)},i=e=>(e.numReports||0)>0},"./src/reddit/components/ModToolsFlatlist/constants.ts":function(e,t,o){"use strict";var n;o.d(t,"a",function(){return n}),function(e){e.Flair="FLAIR",e.Spam="SPAM",e.Remove="REMOVE",e.Approve="APPROVE"}(n||(n={}))},"./src/reddit/components/ModToolsFlatlist/getModItemBreakpoints.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return s});var n=o("./src/reddit/components/ModToolsFlatlist/constants.ts");const s=720,i={[n.a.Approve]:[480,s],[n.a.Remove]:[540,790],[n.a.Spam]:[1020,1020],[n.a.Flair]:[1080,1080]};t.b=((e,t)=>{return i[e][t?1:0]})},"./src/reddit/components/ModToolsFlatlist/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),i=o("./node_modules/react-redux/es/index.js"),r=o("./node_modules/reselect/lib/index.js"),d=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(d),l=o("./src/lib/constants/index.ts"),a=o("./src/app/actions/tooltip.ts"),p=o("./src/app/strings/index.ts"),m=o("./src/reddit/actions/modal.ts"),u=o("./src/reddit/actions/post.ts"),f=o("./src/reddit/featureFlags/component.tsx"),h=o("./src/reddit/helpers/styles/mixins/index.tsx"),b=o("./src/reddit/selectors/user.ts"),x=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const g={t5_2rmtr:"13000",t5_2qnty:"14701",t5_2h84o:"10800",t5_2qh4a:"10301"},v=Object(r.createStructuredSelector)({isEmployee:b.D}),y=Object(i.connect)(v)(c()(e=>{const t=e.className,o=e.isEmployee,n=e.post;return g[n.belongsTo.id]&&o?x("a",{className:t,href:`https://reddit.atlassian.net/secure/CreateIssueDetails!init.jspa?pid=${g[n.belongsTo.id]}&issuetype=1&summary=${n.id}%20-%20${n.title}&description=${n.permalink}&labels=user-reported&priority=3`,target:"_blank"},void 0,"Make Ticket"):null}).withConfig({componentId:"s19dpilz-0"})(["","align-items: center;display: flex;margin: 4px 8px 4px 8px;padding: 4px;"],h.p));var O=Object(f.a)("jiraTicket",y),w=o("./src/reddit/components/JSAPIContainers/index.tsx"),j=o("./src/reddit/components/ModModeReports/helpers.ts"),C=o("./src/reddit/components/PostFlairPicker/index.tsx"),S=o("./src/reddit/components/RestrictedFlatlistButton/index.tsx"),k=o("./src/reddit/constants/postLayout.ts"),I=o("./src/reddit/helpers/hasModFlairPermissions/index.ts"),P=o("./src/reddit/helpers/hasModPostPermissions/index.ts"),T=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),F=o("./src/reddit/helpers/trackers/post.ts"),M=o("./src/reddit/icons/fonts/Approve/index.tsx"),E=o("./src/reddit/icons/fonts/Remove/index.tsx"),_=o("./src/reddit/icons/fonts/Spam/index.tsx"),N=o("./src/reddit/icons/fonts/Tag/index.tsx"),A=o("./src/reddit/selectors/activeModalId.ts"),R=o("./src/reddit/selectors/moderatorPermissions.ts"),D=o("./src/reddit/selectors/postFlair.ts"),$=o("./src/reddit/components/ModToolsFlatlist/constants.ts"),L=o("./src/reddit/components/ModToolsFlatlist/getModItemBreakpoints.ts"),V=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var i=t&&t.defaultProps,r=arguments.length-3;if(o||0===r||(o={}),o&&i)for(var d in i)void 0===o[d]&&(o[d]=i[d]);else o||(o=i||{});if(1===r)o.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];o.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const B=e=>c()(e).withConfig({componentId:"s1o43ulv-0"})(["",""],e=>void 0===e.breakpoint||e.modModeEnabled?"":`\n @media(max-width: ${e.breakpoint}px) {\n display: none;\n }`),H=B(S.b),z=B(S.c),W=B(S.d),U=Object(i.connect)(()=>Object(r.createStructuredSelector)({activeModalId:A.a,moderatorPermissions:(e,t)=>Object(R.f)(e,{postId:t.post.id}),postFlairData:D.b}),(e,{post:t})=>({onApprovePost:()=>e(Object(u.k)(t.id)),onOpenPostModModeDropdown:t=>e(Object(a.e)({tooltipId:t})),onRemovePost:()=>e(Object(u.C)(t.id,!1)),onSpamPost:()=>e(Object(u.C)(t.id,!0)),onFlairPost:t=>()=>e(Object(m.i)(t))})),q=c()(e=>{const t=e.className,o=e.isOverlay,n=e.language,i=e.layout,r=e.moderatorPermissions,d=e.modModeEnabled,c=e.onApprovePost,a=e.onFlairPost,m=e.onRemovePost,u=e.onSpamPost,f=e.post,h=e.postFlairData,b=e.sendEvent,x=e.showIconsOnly,g=Object(P.a)(r),v=Object(I.a)(r),y=Object(j.b)(f),S=f.approvedBy&&y,T=Object(C.b)(f.id),A=g&&d&&!f.isSponsored,R=(d&&v||v&&!g)&&h&&h.displaySettings.isEnabled;let D,B,U;x||(D=S?Object(p.a)(n,"posts.reapprove"):f.approvedBy?Object(p.a)(n,"posts.approved"):Object(p.a)(n,"posts.approve"),B=f.isRemoved?f.bannedBy===l.m?Object(p.a)(n,"modTools.confirmRemoval"):Object(p.a)(n,"posts.removed.text"):Object(p.a)(n,"posts.remove"),U=f.isSpam?Object(p.a)(n,"posts.spammed"):Object(p.a)(n,"posts.spam"));const q=!o&&i===k.f.Compact;return V("div",{className:t},void 0,A&&V(s.Fragment,{},void 0,V(H,{breakpoint:Object(L.b)($.a.Approve,q),text:D,disabled:!!f.approvedBy&&!y,onClick:()=>{c(),b(Object(F.d)(f.id,"approve"))}},"approveButton",V(M.a,{})),V(W,{breakpoint:Object(L.b)($.a.Remove,q),text:B,disabled:f.isRemoved&&f.bannedBy!==l.m,onClick:()=>{m(),f.isRemoved&&f.bannedBy===l.m?b(Object(F.d)(f.id,"confirm_remove")):b(Object(F.d)(f.id,"remove"))}},"removeButton",V(E.a,{})),V(W,{breakpoint:Object(L.b)($.a.Spam,q),text:U,disabled:f.isSpam,onClick:()=>{u(),b(Object(F.d)(f.id,"spam"))}},"removeSpamButton",V(_.a,{}))),R&&V(z,{breakpoint:Object(L.b)($.a.Flair,q),onClick:()=>{a(T)(),b(Object(F.d)(f.id,"post_flair_picker"))}},"tagButton",V(N.a,{})),V(O,{post:f}),V(w.f,{postId:f.id}))}).withConfig({componentId:"s1o43ulv-1"})(["","display: flex;height: 32px;position: relative;"],T.actionFont);t.a=U(q)},"./src/reddit/components/OverflowMenu/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return S});o("./node_modules/react/index.js");var n,s=o("./node_modules/react-redux/es/index.js"),i=o("./node_modules/reselect/lib/index.js"),r=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(r),c=o("./src/app/actions/tooltip.ts"),l=o("./src/app/strings/index.ts"),a=o("./src/higherOrderComponents/asTooltip.tsx"),p=o("./src/reddit/constants/colors.ts"),m=o("./src/reddit/contexts/InsideOverlay.tsx"),u=o("./src/reddit/controls/Dropdown/index.tsx"),f=o("./src/reddit/controls/Dropdown/Row.tsx"),h=o("./src/reddit/helpers/styles/mixins/index.tsx"),b=o("./src/reddit/icons/fonts/Menu/index.tsx"),x=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),g=o("./src/reddit/selectors/tooltip.ts"),v=o("./src/reddit/selectors/user.ts"),y=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const O=d()(u.a).withConfig({componentId:"mpc6lx-0"})(["overflow: visible;margin-top: 0;"]),w=Object(a.a)(O),j=d.a.button.withConfig({componentId:"mpc6lx-1"})(["height: 24px;",""],h.p),C=d()(b.a).withConfig({componentId:"mpc6lx-2"})(["color: ",";"],e=>Object(x.c)(e).actionIcon),S=d()(f.c).withConfig({componentId:"mpc6lx-3"})(["padding: 8px 16px 8px 8px;cursor: pointer;border-top: none;text-transform: none;color: ",";&:hover {color: ",";background-color: ",";fill: ",";border: none;}"],e=>Object(x.c)(e).metaText,e=>Object(x.c)(e).body,p.a.alienblue,e=>Object(x.c)(e).body),k=Object(i.createStructuredSelector)({dropdownIsOpen:(e,{dropdownId:t})=>Object(g.b)(t)(e),language:v.M}),I=Object(s.connect)(k,(e,{dropdownId:t})=>({toggleDropdown:()=>e(Object(c.e)({tooltipId:t}))}));t.b=I(Object(m.b)(e=>y(j,{"aria-expanded":e.dropdownIsOpen,"aria-haspopup":!0,"aria-label":Object(l.a)(e.language,"posts.moreOptions"),className:e.className,onClick:(e=>()=>{e.onClick(),e.toggleDropdown()})(e),onMouseDown:e.handleMouseDown,id:e.dropdownId},void 0,y(C,{}),y(w,{isOverlay:e.isOverlay,isOpen:e.dropdownIsOpen,tooltipId:e.dropdownId,isFixed:e.isFixed,targetPosition:e.targetPosition,tooltipPosition:e.tooltipPosition},void 0,e.children))))},"./src/reddit/components/PostBackgroundWrapper/index.m.less":function(e,t,o){e.exports={backgroundWrapper:"_1poyrkZ7g36PawDueRza-J"}},"./src/reddit/components/PostBackgroundWrapper/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return a});o("./node_modules/react/index.js");var n,s=o("./bundled-modules/styled-components/styled-components.min.js"),i=o("./src/lib/classNames/index.ts"),r=o("./src/reddit/helpers/styles/mixins/index.tsx"),d=o("./src/reddit/components/PostBackgroundWrapper/index.m.less"),c=o.n(d),l=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const a=Object(s.css)(["."," {",";}"],c.a.backgroundWrapper,e=>e.flairStyleTemplate?Object(r.k)(Object.assign({},e,{template:e.flairStyleTemplate})):r.q);t.b=(e=>l("div",{className:Object(i.a)(c.a.backgroundWrapper,e.className)},void 0,e.children))},"./src/reddit/components/PostContainer/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),i=o.n(s),r=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"),l=o.n(c),a=o("./src/reddit/actions/post.ts"),p=o("./src/reddit/components/AdViewability/index.tsx"),m=o("./src/reddit/components/GildModal/Loader.tsx"),u=o("./src/reddit/models/Media/index.ts"),f=o("./src/reddit/selectors/gild.ts"),h=o("./src/reddit/selectors/video.ts"),b=o("./src/lib/classNames/index.ts"),x=o("./src/higherOrderComponents/withClickTracking.tsx"),g=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 i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),y=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 O=l.a.div.withConfig({componentId:"s1ukwo15-0"})(["&:focus {outline: none;}"]),w=Object(d.createStructuredSelector)({clickTrackingId:(e,{post:t})=>t.id,buffering:(e,{post:t})=>Object(h.a)(e,{postId:t.id}),gildModalIsOpen:(e,{post:t})=>Object(f.c)(e,t.postId),playing:(e,{post:t})=>Object(h.e)(e,{postId:t.id}),continuousViewingStartedAt:(e,{post:t})=>Object(h.c)(e,{postId:t.id})}),j=Object(r.connect)(w,e=>({onPostViewable:(t,o)=>e(Object(a.z)(t,o))}));t.a=j(Object(x.a)(class extends i.a.Component{constructor(){super(...arguments),this.cancelClick=!1}render(){const e=this.props,t=e.afterClickTracking,o=e.buffering,n=e.children,s=e.className,r=e.continuousViewingStartedAt,d=e.gildModalIsOpen,c=e.playing,l=e.post,a=e.onClick,f=e.onPostViewable,h=y(e,["afterClickTracking","buffering","children","className","continuousViewingStartedAt","gildModalIsOpen","playing","post","onClick","onPostViewable"]),x=i.a.createElement(O,g({},h,{onMouseUp:e=>{0!==window.getSelection().toString().length&&(this.cancelClick=!0,window.setTimeout(()=>{this.cancelClick=!1},1e3))},onClick:e=>{!this.cancelClick&&e.button<2&&t(()=>a&&a(e,l))(e)},className:Object(b.a)(s,`Post ${l.id}`,{promotedlink:l.isSponsored,promotedvideolink:l.isSponsored&&!(l.media&&u.a.has(l.media.type))}),id:l.id,tabIndex:-1}),n,d&&v(m.a,{}));if(l.isSponsored){const e=!!l.media&&l.media.type===u.m.VIDEO;return v(p.a,{onViewable:e=>f(l,e),children:x,trackVideoMetrics:e&&!o&&c,continuousViewingStartedAt:r})}return x}}))},"./src/reddit/components/PostCreationForm/CollectionListModal/CollectionListItem/index.m.less":function(e,t,o){e.exports={container:"_3I_U-htoXoQEzFLCM48kHO",onHoverActionText:"_1Zlk1VrZ8puYZy5lJOfz--"}},"./src/reddit/components/PostCreationForm/CollectionListModal/index.tsx":function(e,t,o){"use strict";var n,s=o("./src/config.ts"),i=o("./node_modules/react/index.js"),r=o.n(i),d=o("./node_modules/react-redux/es/index.js"),c=o("./node_modules/reselect/lib/index.js"),l=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(l),p=o("./src/app/strings/index.ts"),m=o("./src/higherOrderComponents/asModal.tsx"),u=o("./src/lib/memoizeByReference/index.ts"),f=o("./src/reddit/actions/postCreation/general.ts"),h=o("./src/reddit/constants/keycodes.ts"),b=o("./src/reddit/controls/Button/index.tsx"),x=o("./src/reddit/controls/Input/index.tsx"),g=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),v=o("./src/reddit/icons/svgs/Close/index.tsx"),y=o("./src/reddit/icons/svgs/Plus/index.tsx"),O=o("./src/reddit/icons/svgs/Search/index.tsx"),w=o("./src/reddit/layout/row/Inline/index.tsx"),j=o("./src/reddit/models/PostCreationForm/index.ts"),C=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),S=o("./src/reddit/selectors/postCollection.ts"),k=o("./src/reddit/selectors/user.ts"),I=o("./node_modules/polished/dist/polished.es.js"),P=o("./src/lib/timeAgo/index.ts"),T=o("./src/reddit/controls/MetaSeparator/index.tsx"),F=o("./src/reddit/helpers/name/index.ts"),M=o("./src/reddit/helpers/styles/mixins/index.tsx"),E=o("./src/reddit/models/Subreddit/index.ts"),_=o("./src/reddit/models/User/index.ts"),N=o("./src/reddit/selectors/subreddit.ts"),A=o("./src/reddit/components/PostCreationForm/CollectionListModal/CollectionListItem/index.m.less"),R=o.n(A),D=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const $=a.a.div.withConfig({componentId:"s1k4qt1p-0"})(["cursor: pointer;display: flex;flex-flow: column nowrap;padding: 4px 12px;border-bottom: 1px solid ",";flex: 1;&:hover {background: ",";}"],e=>Object(C.c)(e).line,e=>Object(I.e)(Object(C.c)(e).button,.1)),L=a.a.div.withConfig({componentId:"s1k4qt1p-1"})(["color: ",";"],e=>Object(C.c)(e).button),V=a.a.h2.withConfig({componentId:"s1k4qt1p-2"})(["","hyphens: auto;padding-top: 3px;word-break: break-all;margin-right: 50px;"],M.s),B=a.a.div.withConfig({componentId:"s1k4qt1p-3"})(["","color: ",";"],g.bodyFontSmall,e=>Object(C.c)(e).metaText),H=a.a.span.withConfig({componentId:"s1k4qt1p-4"})(["","color: ",";vertical-align: middle;"],g.actionFont,e=>Object(C.c)(e).metaText),z=a.a.time.withConfig({componentId:"s1k4qt1p-5"})(["vertical-align: middle;"]),W=Object(c.createStructuredSelector)({subreddit:(e,{collection:{subredditId:t}})=>t?Object(N.G)(e,{subredditId:t}):void 0,user:k.j});var U=Object(d.connect)(W)(class extends r.a.PureComponent{constructor(){super(...arguments),this.onClick=(()=>{this.props.onClick(this.props.collection.id)})}render(){var e=this.props;const t=e.collection,o=e.language,n=e.subreddit,s=e.user,i=e.onHoverActionText,r=n&&Object(E.c)(n)&&s?Object(F.c)(Object(_.f)(s)):n?n.displayText:"",d=t.postIds.length;return D($,{onClick:this.onClick,className:R.a.container,redditStyle:!0},void 0,D(V,{"data-redditstyle":!0},void 0,t.title),D(B,{"data-redditstyle":!0},void 0,r&&D(H,{"data-redditstyle":!0},void 0,r),r&&D(T.b,{}),D(z,{},void 0,Object(p.d)(o,"postCreation.postsCount",d)),D(T.b,{}),D(z,{},void 0,Object(p.a)(o,"postCreation.collections.creationTime",{time:Object(P.b)(o,t.createdAtUTC)}))),i&&D(L,{className:R.a.onHoverActionText},void 0,D("span",{},void 0,i)))}}),q=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var i=t&&t.defaultProps,r=arguments.length-3;if(o||0===r||(o={}),o&&i)for(var d in i)void 0===o[d]&&(o[d]=i[d]);else o||(o=i||{});if(1===r)o.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];o.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const G=Object(p.f)("postCreation.collections.collectionsListEmptyText"),K=Object(p.f)("postCreation.collections.noCollectionMatchingFilter"),J=Object(p.f)("postCreation.collections.filterPlaceholder"),Z=Object(p.f)("postCreation.collections.collectionsListTitle"),X=Object(p.f)("postCreation.collections.createCollection"),Q=`${s.a.assetPath}/img/snoo-drafts.png`,Y=a.a.div.withConfig({componentId:"s1w4viu7-0"})(["background-color: ",";border-radius: 4px;box-sizing: border-box;display: flex;flex-flow: column nowrap;max-height: 70vh;min-height: 400px;"],e=>Object(C.c)(e).body),ee=a.a.div.withConfig({componentId:"s1w4viu7-1"})(["padding: 15px;border-bottom: 1px solid ",";"],e=>Object(C.c)(e).line),te=a.a.div.withConfig({componentId:"s1w4viu7-2"})(["","color: ",";position: relative;"],g.titleFontH4,e=>Object(C.c)(e).bodyText),oe=a.a.div.withConfig({componentId:"s1w4viu7-3"})(["","flex: 1;overflow-y: auto;"],g.bodyFont),ne=a()(w.a).withConfig({componentId:"s1w4viu7-4"})(["padding: 18px 0;border-top: 1px solid ",";background: ",";"],e=>Object(C.c)(e).line,e=>Object(C.c)(e).body),se=a.a.div.withConfig({componentId:"s1w4viu7-5"})(["cursor: pointer;position: absolute;top: 0;right: 0;"]),ie=a()(v.a).withConfig({componentId:"s1w4viu7-6"})(["height: 16px;width: 16px;padding: 4px;fill: ",";"],e=>Object(C.c)(e).actionIcon),re=a.a.div.withConfig({componentId:"s1w4viu7-7"})(["display: flex;flex-direction: column;align-items: center;padding-top: 64px;"]),de=a.a.img.withConfig({componentId:"s1w4viu7-8"})(["display: block;height: 128px;width: 240px;"]),ce=a.a.p.withConfig({componentId:"s1w4viu7-9"})(["","color: ",";"],g.bodyFont,e=>Object(C.c)(e).bodyText),le=a.a.div.withConfig({componentId:"s1w4viu7-10"})(["display: flex;margin-top: 18px;position: relative;"]),ae=a()(x.a).withConfig({componentId:"s1w4viu7-11"})(["border-radius: 4px;border: 1px solid ",";flex: 1;height: 30px;padding-left: 30px;"],e=>Object(C.c)(e).line),pe=a()(O.a).withConfig({componentId:"s1w4viu7-12"})(["width: 16px;height: 16px;position: absolute;left: 8px;top: 8px;fill: ",";"],e=>Object(C.c)(e).actionIcon),me=a()(y.a).withConfig({componentId:"s1w4viu7-13"})(["width: 16px;height: 16px;margin-right: 4px;fill: currentColor;"]),ue=a()(b.h).withConfig({componentId:"s1w4viu7-14"})(["","align-items: center;border: none;cursor: pointer;display: flex;margin-left: 10px;padding: 0;"],g.largeButtonFont),fe=Object(u.a)((e,t)=>{const o=t.toLowerCase();return e.filter(e=>e.title.toLowerCase().includes(o))}),he=Object(c.createStructuredSelector)({collections:S.p,language:k.M}),be=Object(d.connect)(he,(e,{postId:t,isOverlay:o})=>({onOpenCreateCollectionModal:()=>{let n=j.b;t&&(n=Object(j.t)(t,!!o)),e(Object(f.x)(n))}}));const xe=a()(Object(m.a)(be(class extends r.a.PureComponent{constructor(){super(...arguments),this.state={filterStr:""},this.handleEscapeKey=(e=>{e.keyCode===h.a.Escape&&this.props.onClose()}),this.onFilterStringChange=(e=>{this.setState({filterStr:e.target.value})}),this.renderItem=(e=>q(U,{collection:e,language:this.props.language,onClick:()=>this.props.onSelectCollection(e),onHoverActionText:this.props.onItemHoverActionText},e.id))}componentDidMount(){document.addEventListener("keydown",this.handleEscapeKey)}componentWillUnmount(){document.removeEventListener("keydown",this.handleEscapeKey)}renderNoCollections(){return q(re,{},void 0,q(de,{src:Q}),q(ce,{},void 0,G(this.props.language)))}renderNoFilterMatches(){return q(re,{},void 0,q(ce,{},void 0,K(this.props.language)))}render(){var e=this.props;const t=e.collections,o=e.language,n=e.titleText;let s;if(0===t.length)s=this.renderNoCollections();else{const e=fe(t,this.state.filterStr);s=0===e.length?this.renderNoFilterMatches():e.map(this.renderItem)}return q(Y,{"data-redditstyle":!0},void 0,q(ee,{},void 0,q(te,{"data-redditstyle":!0},void 0,n||Z(o),q(se,{onClick:this.props.onClose},void 0,q(ie,{"data-redditstyle":!0}))),q(le,{},void 0,q(pe,{}),q(ae,{placeholder:J(o),value:this.state.filterStr,onChange:this.onFilterStringChange}))),q(oe,{},void 0,s),q(ne,{},void 0,q(ue,{onClick:this.props.onOpenCreateCollectionModal},void 0,q(me,{}),X(o))))}}))).withConfig({componentId:"s1w4viu7-15"})(["width: 80vw;max-width: 600px;"]);t.a=xe},"./src/reddit/components/PostCreationForm/CreateOrEditCollectionModal/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),i=o.n(s),r=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"),l=o.n(c),a=o("./src/app/strings/index.ts"),p=o("./src/higherOrderComponents/asModal.tsx"),m=o("./src/lib/formatApiError/index.ts"),u=o("./src/reddit/actions/postCollection.ts"),f=o("./src/reddit/components/ModalStyledComponents/index.tsx"),h=o("./src/reddit/constants/postCreation.ts"),b=o("./src/reddit/controls/Button/index.tsx"),x=o("./src/reddit/controls/ErrorText/index.tsx"),g=o("./src/reddit/controls/Input/index.tsx"),v=o("./src/reddit/controls/LoadingIcon/index.tsx"),y=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),O=o("./src/reddit/icons/svgs/AddCollection/index.tsx"),w=o("./src/reddit/icons/svgs/Close/index.tsx"),j=o("./src/reddit/layout/row/Inline/index.tsx"),C=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),S=o("./src/reddit/selectors/postCollection.ts"),k=o("./src/reddit/selectors/user.ts"),I=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const P=Object(a.f)("postCreation.cancel"),T=Object(a.f)("postCreation.create"),F=Object(a.f)("postCreation.save"),M=Object(a.f)("postCreation.collections.createCollection"),E=Object(a.f)("postCreation.collections.createModal.details"),_=Object(a.f)("postCreation.collections.createModal.giveATitle"),N=Object(a.f)("postCreation.collections.createModal.editTitle"),A=Object(a.f)("postCreation.collections.createModal.titlePlaceholderText"),R=l.a.div.withConfig({componentId:"s6qmihf-0"})(["background-color: ",";border-radius: 4px;box-sizing: border-box;display: flex;flex-flow: column nowrap;position: relative;width: 487px;"],e=>Object(C.c)(e).body),D=l.a.div.withConfig({componentId:"s6qmihf-1"})(["display: flex;flex-flow: column nowrap;flex: 1;padding: 24px;"]),$=l.a.div.withConfig({componentId:"s6qmihf-2"})(["","align-items: center;color: ",";display: flex;"],y.titleFontH1,e=>Object(C.c)(e).bodyText),L=l.a.div.withConfig({componentId:"s6qmihf-3"})(["","color: ",";flex: 1;margin: 8px 0px 24px;"],y.bodyFontH5,e=>Object(C.c)(e).bodyText),V=l()(f.e).withConfig({componentId:"s6qmihf-4"})(["display: block;padding: 16px;"]),B=l()(j.a).withConfig({componentId:"s6qmihf-5"})([""]),H=l()(b.g).withConfig({componentId:"s6qmihf-6"})(["margin: 0 8px 0 auto;min-width: 90px;"]),z=l.a.div.withConfig({componentId:"s6qmihf-7"})(["cursor: pointer;position: absolute;top: 15px;right: 15px;"]),W=l()(w.a).withConfig({componentId:"s6qmihf-8"})(["fill: ",";height: 16px;width: 16px;"],e=>Object(C.c)(e).actionIcon),U=l.a.label.withConfig({componentId:"s6qmihf-9"})(["","color: ",";display: flex;flex-flow: column nowrap;height: 65px;"],y.titleFontH4,e=>Object(C.c)(e).bodyText),q=l()(g.a).withConfig({componentId:"s6qmihf-10"})(["","border-radius: 4px;border: 1px solid ",";margin-top: 8px;padding: 12px;"],y.bodyFontH5,e=>Object(C.c)(e).line),G=l()(O.a).withConfig({componentId:"s6qmihf-11"})(["fill: currentColor;height: 24px;margin-right: 8px;width: 24px;"]),K=l()(b.d).withConfig({componentId:"s6qmihf-12"})(["min-width: 98px;"]),J=l()(v.a).withConfig({componentId:"s6qmihf-13"})(["display: inline-block;margin-bottom: -3px;"]),Z=l()(x.a).withConfig({componentId:"s6qmihf-14"})(["padding-top: 4px;display: block;"]),X=Object(d.createStructuredSelector)({collection:S.l,error:S.a,isPending:S.c,language:k.M}),Q=Object(r.connect)(X,(e,t)=>({onCreate:t=>e(Object(u.s)(t)),onUpdate:o=>e(Object(u.y)(t.collectionId,o))}));t.a=Object(p.a)(Q(class extends i.a.PureComponent{constructor(e){super(e),this.onTitleChange=(e=>{this.setState({collectionTitle:e.target.value})}),this.onPrimaryButtonClick=(async()=>{const e=this.props.collectionId,t=this.state.collectionTitle;if(e)await this.props.onUpdate(t)&&this.props.onCollectionUpdated&&this.props.onCollectionUpdated();else{const e=await this.props.onCreate(t);e&&this.props.onCollectionCreated&&this.props.onCollectionCreated(e)}}),this.onClose=(()=>{this.props.onCancel()});const t=e.collection;this.state={collectionTitle:t?t.title:""}}render(){var e=this.props;const t=e.collectionId,o=e.error,n=e.isPending,s=e.language,r=!t,d=!!this.state.collectionTitle.trim(),c=r?T:F,l=r?_:N;return I(R,{},void 0,I(z,{onClick:this.props.onCancel},void 0,I(W,{})),I(D,{},void 0,r&&I(i.a.Fragment,{},void 0,I($,{},void 0,I(G,{}),M(s)),I(L,{},void 0,E(s))),I(U,{},void 0,l(s),I(q,{maxLength:h.e,onChange:this.onTitleChange,placeholder:A(s),value:this.state.collectionTitle}))),I(V,{},void 0,I(B,{},void 0,I(H,{onClick:this.props.onCancel},void 0,P(s)),I(K,{onClick:this.onPrimaryButtonClick,disabled:n||!d},void 0,n?I(J,{sizePx:10}):c(s))),o&&I(Z,{language:s},void 0,Object(m.a)(s,o))))}}))},"./src/reddit/components/PostEventFollow/index.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),s=o.n(n),i=o("./src/lib/eventTools/index.ts"),r=o("./src/reddit/components/PostFollow/index.tsx");t.a=(e=>{const t=e.post.eventInfo;if(!t)return null;const o=t.eventStart,n=t.eventEnd;return Object(i.c)(o,n)?s.a.createElement(r.b,e):null})},"./src/reddit/components/PostFlairPicker/index.m.less":function(e,t,o){e.exports={buttonsRow:"cF9DU_4WDAKS4gs43ct2_"}},"./src/reddit/components/PostFlairPicker/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return M});var n,s=o("./node_modules/react/index.js"),i=o.n(s),r=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"),l=o.n(c),a=o("./src/app/strings/index.ts"),p=o("./src/reddit/components/TrackingHelper/index.tsx"),m=o("./src/higherOrderComponents/asModal.tsx"),u=o("./src/reddit/actions/modal.ts"),f=o("./src/reddit/components/FlairPickerTitle/index.tsx"),h=o("./src/reddit/components/FlairPickerWrapper/index.tsx"),b=o("./src/reddit/components/FlairPreview/index.tsx"),x=o("./src/reddit/components/FlairSearch/index.tsx"),g=o("./src/reddit/constants/flair.ts"),v=o("./src/reddit/controls/Button/index.tsx"),y=o("./src/reddit/layout/row/Inline/index.tsx"),O=o("./src/reddit/layout/row/RightAlign/index.tsx"),w=o("./src/reddit/models/Flair/index.ts"),j=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),C=o("./src/reddit/selectors/moderatorPermissions.ts"),S=o("./src/reddit/selectors/postFlair.ts"),k=o("./src/reddit/selectors/subreddit.ts"),I=o("./src/reddit/selectors/telemetry.ts"),P=o("./src/reddit/components/PostFlairPicker/index.m.less"),T=o.n(P),F=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const M=e=>`PostFlair__Modal__${e}`,E=l()(y.a).withConfig({componentId:"s1re0yg3-0"})(["border: none;padding: 16px;"]),_=l()(v.l).withConfig({componentId:"s1re0yg3-1"})(["color: ",";"],e=>Object(j.c)(e).actionIcon),N=Object(d.createStructuredSelector)({flairData:S.c,subreddit:k.G,isMod:(e,t,o)=>!!Object(C.g)(e,t)});const A=Object(r.connect)(N,(e,t)=>({closeModal:()=>e(Object(u.i)(t.modalId))}))(class extends i.a.Component{constructor(e){super(e),this.getTrackingNoun=((e,t)=>this.props.isMod?e:t),this.onApply=(()=>{const e=this.props,t=this.state,o=t.previewFlair,n=t.selectedTemplateId;this.props.onFlairChanged({previewFlair:o,selectedTemplateId:n}),e.closeModal&&e.closeModal(),this.track(this.getTrackingNoun("flairadd_mod","flairadd_user"))}),this.onClear=(()=>this.setSelectedFlair(null,null)),this.setSelectedFlair=((e,t)=>this.setState({previewFlair:e,selectedTemplateId:t})),this.track=(e=>this.props.sendEvent(t=>({source:"post_flair_picker",action:"click",noun:e,subreddit:Object(I.subredditById)(t,this.props.subredditId)})));const t=e.flairs?e.flairs.find(e=>e.type===w.e.Text||e.type===w.e.Image||e.type===w.e.Richtext):null;this.state={previewFlair:t,selectedTemplateId:t&&t.templateId?t.templateId:null}}render(){const e=this.props,t=this.state,o=e.flairData,n=e.language,s=e.subreddit,i=s.displayText,r=o.templates,d=o.templateIds,c=!!(t.previewFlair&&Object(w.j)(t.previewFlair).length>g.b);return F(h.a,{},void 0,F(f.a,{onClosePressed:e.closeModal,title:Object(a.a)(n,"flair.postFlairModalTitle",{subredditName:i})}),F(b.a,{flair:t.previewFlair,flairTemplateType:w.c.LinkFlair,language:n,placeholderText:Object(a.a)(n,"flair.postFlairPlaceholder")}),F(x.a,{appliedFlair:t.previewFlair,flairTemplateType:w.c.LinkFlair,subredditId:s.id,templates:r,templateIds:d,language:e.language,onChange:this.setSelectedFlair,selectedTemplateId:t.selectedTemplateId}),F(E,{},void 0,F(O.a,{className:T.a.buttonsRow},void 0,F(v.d,{disabled:c,onClick:this.onApply,"data-redditstyle":!0},void 0,Object(a.a)(n,"flair.apply")),F(_,{onClick:this.onClear},void 0,Object(a.a)(n,"flair.clear")))))}});t.a=Object(m.a)(Object(p.b)(A))},"./src/reddit/components/PostFollow/index.m.less":function(e,t,o){e.exports={collectionFollow:"_1yF34mDRcD_ii0n-Ak0OdI"}},"./src/reddit/components/PostFollow/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return T});var n,s=o("./node_modules/react/index.js"),i=o.n(s),r=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"),l=o.n(c),a=o("./src/lib/classNames/index.ts"),p=o("./src/reddit/actions/post.ts"),m=o("./src/reddit/components/Translated/index.tsx"),u=o("./src/reddit/components/Widgets/ThemedWidget/helpers.tsx"),f=o("./src/reddit/helpers/styles/mixins/index.tsx"),h=o("./src/reddit/icons/svgs/Checkmark/index.tsx"),b=o("./src/reddit/icons/svgs/Plus/index.tsx"),x=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),g=o("./src/reddit/components/PostFollow/index.m.less"),v=o.n(g),y=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),O=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 w=l()(e=>{e.isFollowed;var t=O(e,["isFollowed"]);return i.a.createElement("button",t)}).withConfig({componentId:"s1llvgpn-0"})(["","color: ",";fill: currentColor;padding: 2px 4px 2px;"],f.p,e=>e.isFollowed?"inherit":Object(x.c)(e).button),j="\n width: 20px;\n height: 20px;\n padding-right: 2px;\n vertical-align: middle;\n",C=l()(b.a).withConfig({componentId:"s1llvgpn-1"})(["",""],j),S=l()(h.a).withConfig({componentId:"s1llvgpn-2"})(["",""],j),k=l.a.span.withConfig({componentId:"s1llvgpn-3"})(["display: inline-block;vertical-align: middle;"]),I=Object(r.connect)(()=>Object(d.createStructuredSelector)({}),(e,{post:t})=>({onFollow:()=>e(Object(p.q)(t.id))})),P=l()(e=>{e.isFollowed,e.isNightmodeOn;var t=O(e,["isFollowed","isNightmodeOn"]);return i.a.createElement("button",t)}).withConfig({componentId:"s1llvgpn-4"})(["color: ",";background-color: ",";border: 1px solid ",";"],e=>e.isFollowed?Object(u.d)(e):Object(u.b)(e),e=>e.isFollowed?Object(u.b)(e):Object(u.d)(e),e=>Object(u.d)(e));const T=I(class extends i.a.Component{constructor(e){super(e),this.state={isHovered:!1},this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this)}onMouseEnter(){const e=this.props.post;e&&e.isFollowed&&this.setState({isHovered:!0})}onMouseLeave(){const e=this.props.post;e&&e.isFollowed&&this.setState({isHovered:!1})}render(){var e=this.props;const t=e.className,o=e.isNightmodeOn,n=e.onFollow,s=e.post,i=this.state.isHovered,r=s.isFollowed;let d=r?"collection.follow.followed":"collection.follow.follow";return r&&i&&(d="collection.follow.unfollow"),y(P,{className:Object(a.a)(v.a.collectionFollow,t),isFollowed:!!s.isFollowed,onClick:n,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,isNightmodeOn:o},void 0,y(m.a,{msgId:d}))}});t.b=I(e=>{var t=e.compact;const o=void 0!==t&&t,n=e.onFollow,s=e.post,i=s.isFollowed?y(S,{}):y(C,{}),r=s.isFollowed?"posts.event.unfollow":"posts.event.follow";return y(w,{className:e.className,isFollowed:!!s.isFollowed,onClick:n},void 0,i,!o&&y(k,{},void 0,y(m.a,{msgId:r})))})},"./src/reddit/components/PostLeftRail/index.m.less":function(e,t,o){e.exports={postLeftRail:"_23h0-EcaBUorIHC-JZyh6J"}},"./src/reddit/components/PostLeftRail/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return p}),o.d(t,"c",function(){return m});o("./node_modules/react/index.js");var n,s=o("./bundled-modules/styled-components/styled-components.min.js"),i=o("./src/lib/classNames/index.ts"),r=o("./src/reddit/constants/colors.ts"),d=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),c=o("./src/reddit/components/PostLeftRail/index.m.less"),l=o.n(c),a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const p=40,m=e=>e.isSponsored?Object(d.c)(e).button:e.isRemoved?r.a.removed:e.isReported?r.a.reported:"transparent",u=Object(s.withTheme)(e=>{const t=m(e),o={width:`${p}px`,borderLeft:`4px solid ${t}`};return a("div",{className:Object(i.a)(l.a.postLeftRail,e.className),style:o},void 0,e.children)});t.b=u},"./src/reddit/components/PostModModeDropdown/index.tsx":function(e,t,o){"use strict";var n=o("./src/higherOrderComponents/makeAsync.tsx"),s=o("./src/lib/loadWithRetries/index.ts");const i=()=>null;t.a=Object(n.a)({ErrorComponent:i,getComponent:()=>Object(s.a)(()=>o.e("ModerationDropdowns").then(o.bind(null,"./src/reddit/components/PostModModeDropdown/_PostModModeDropdown.tsx"))).then(e=>e.default),LoadingComponent:i})},"./src/reddit/components/PostOverflowMenu/index.tsx":function(e,t,o){"use strict";var n,s=o("./src/lib/constants/index.ts"),i=o("./node_modules/react/index.js"),r=o.n(i),d=o("./node_modules/react-redux/es/index.js"),c=o("./node_modules/react-router/es/index.js"),l=o("./node_modules/reselect/lib/index.js"),a=o("./bundled-modules/styled-components/styled-components.min.js"),p=o.n(a),m=o("./src/app/actions/tooltip.ts"),u=o("./src/reddit/actions/events.ts"),f=o("./src/reddit/actions/gold/modals.ts"),h=o("./src/reddit/actions/modal.ts"),b=o("./src/reddit/actions/pinnedPost.ts"),x=o("./src/reddit/actions/post.ts"),g=o("./src/reddit/actions/postCreation/editing.ts"),v=o("./src/reddit/actions/reportFlow.ts"),y=o("./src/reddit/constants/posts.ts"),O=o("./src/reddit/icons/fonts/Admin/index.tsx"),w=o("./src/reddit/icons/fonts/Calendar/index.tsx"),j=o("./src/reddit/icons/fonts/Embed/index.tsx"),C=o("./src/reddit/helpers/styles/mixins/index.tsx"),S=o("./src/reddit/icons/fonts/helpers.tsx"),k=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});var I=p()(e=>k("i",{className:`${Object(S.b)("gild")} ${e.className}`,id:e.id,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},void 0,k(S.a,{},void 0,e.desc))).withConfig({componentId:"s1nzp00c-0"})(["",""],C.l),P=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var i=t&&t.defaultProps,r=arguments.length-3;if(o||0===r||(o={}),o&&i)for(var d in i)void 0===o[d]&&(o[d]=i[d]);else o||(o=i||{});if(1===r)o.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];o.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var T=p()(e=>P("i",{className:`${Object(S.b)("hide")} ${e.className}`})).withConfig({componentId:"uliscd-0"})(["",""],C.l),F=o("./src/reddit/icons/fonts/Link/index.tsx"),M=o("./src/reddit/icons/fonts/Live/index.tsx"),E=o("./src/reddit/icons/fonts/Pencil/index.tsx"),_=o("./src/reddit/icons/fonts/Report/index.tsx"),N=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var i=t&&t.defaultProps,r=arguments.length-3;if(o||0===r||(o={}),o&&i)for(var d in i)void 0===o[d]&&(o[d]=i[d]);else o||(o=i||{});if(1===r)o.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];o.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var A=p()(e=>N("i",{className:`${Object(S.b)("save")} ${e.className}`})).withConfig({componentId:"rb880w-0"})(["",""],C.l),R=o("./src/reddit/icons/fonts/Sticky/index.tsx"),D=o("./src/reddit/icons/fonts/Tag/index.tsx"),$=o("./src/lib/classNames/index.ts"),L=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var i=t&&t.defaultProps,r=arguments.length-3;if(o||0===r||(o={}),o&&i)for(var d in i)void 0===o[d]&&(o[d]=i[d]);else o||(o=i||{});if(1===r)o.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];o.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var V=p()(e=>L("i",{className:Object($.a)(Object(S.b)("unpin"),e.className)})).withConfig({componentId:"exhfgi-0"})(["",""],C.l),B=o("./src/reddit/icons/svgs/AddCollection/index.tsx"),H=o("./src/reddit/icons/svgs/Saved/index.tsx"),z=o("./src/reddit/icons/svgs/Trash2/index.tsx"),W=o("./src/reddit/components/OverflowMenu/index.tsx"),U=o("./src/reddit/components/PostEventMeta/index.tsx"),q=o("./src/reddit/components/ReportFlow/index.tsx"),G=o("./src/reddit/contexts/PageLayer/index.tsx"),K=o("./src/reddit/controls/CheckboxMenuItem/index.tsx"),J=o("./src/reddit/controls/Dropdown/Row.tsx"),Z=o("./src/app/strings/index.ts"),X=o("./src/reddit/components/Flatlist/constants.ts"),Q=o("./src/reddit/components/Flatlist/getFlatlistBreakpoints.ts"),Y=o("./src/reddit/constants/postLayout.ts"),ee=o("./src/reddit/helpers/correlationIdTracker.ts"),te=o("./src/reddit/helpers/isCrosspost.ts"),oe=o("./src/reddit/helpers/trackers/modTools.ts"),ne=o("./src/reddit/helpers/trackers/post.ts"),se=o("./src/reddit/models/OcSubreddits/index.ts"),ie=o("./src/reddit/selectors/posts.ts"),re=o("./src/reddit/selectors/subreddit.ts"),de=o("./src/reddit/selectors/tooltip.ts"),ce=o("./src/reddit/selectors/user.ts"),le=o("./src/reddit/components/ConfirmUserActionModal/index.tsx"),ae=o("./src/reddit/components/PostFlairPicker/index.tsx"),pe=o("./src/reddit/actions/postCollection.ts"),me=o("./src/reddit/models/PostCreationForm/index.ts"),ue=o("./src/reddit/selectors/postCollection.ts");o.d(t,"a",function(){return be}),o.d(t,"c",function(){return xe}),o.d(t,"d",function(){return ge}),o.d(t,"e",function(){return ve}),o.d(t,"f",function(){return Oe}),o.d(t,"b",function(){return je}),o.d(t,"h",function(){return _e});var fe=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var i=t&&t.defaultProps,r=arguments.length-3;if(o||0===r||(o={}),o&&i)for(var d in i)void 0===o[d]&&(o[d]=i[d]);else o||(o=i||{});if(1===r)o.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];o.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),he=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 be=p()(T).withConfig({componentId:"ojyp6c-0"})(["",""],J.d),xe=p()(_.a).withConfig({componentId:"ojyp6c-1"})(["",""],J.d),ge=p()(A).withConfig({componentId:"ojyp6c-2"})(["",""],J.d),ve=p()(H.a).withConfig({componentId:"ojyp6c-3"})(["",""],J.d),ye=p()(O.a).withConfig({componentId:"ojyp6c-4"})(["",""],J.d),Oe=p()(I).withConfig({componentId:"ojyp6c-5"})(["",""],J.d),we=p()(R.a).withConfig({componentId:"ojyp6c-6"})(["",""],J.d),je=p()(E.a).withConfig({componentId:"ojyp6c-7"})(["",""],J.d),Ce=p()(D.a).withConfig({componentId:"ojyp6c-8"})(["",""],J.d),Se=p()(z.b).withConfig({componentId:"ojyp6c-9"})(["",""],J.d),ke=p()(V).withConfig({componentId:"ojyp6c-10"})(["",""],J.d),Ie=p()(j.a).withConfig({componentId:"ojyp6c-11"})(["",""],J.d),Pe=p()(B.a).withConfig({componentId:"ojyp6c-12"})(["","display: inline-block;vertical-align: top;margin-left: 2px;"],J.d),Te=p()(M.a).withConfig({componentId:"ojyp6c-13"})(["","margin-left: 2px;"],J.d),Fe=p()(w.a).withConfig({componentId:"ojyp6c-14"})(["","margin-bottom: 2px;margin-left: 2px;"],J.d),Me=p()(F.a).withConfig({componentId:"ojyp6c-15"})(["","font-size: 16px;"],J.d),Ee=p()(J.c).withConfig({componentId:"ojyp6c-16"})(["padding: 8px 16px 8px 8px;cursor: pointer;","",""],e=>e.breakpoint?`@media (min-width: ${e.breakpoint}px) { display: none; }`:"",e=>e.isDisabled?"color: rgb(205, 205, 206); cursor: default;":""),_e=({gild:e=!0,save:t=!0,share:o=!0,report:n=!0,editPost:s=!0,hide:i=!0})=>({[X.a.Gild]:e,[X.a.Save]:t,[X.a.Share]:o,[X.a.Report]:n,[X.a.EditPost]:s,[X.a.Hide]:i}),Ne=Object(d.connect)(()=>Object(l.createStructuredSelector)({currentUser:ce.j,dropdownIsOpen:(e,{dropdownId:t})=>Object(de.b)(t)(e),isFutureEvent:ue.e,isSaved:ie.s,isHidden:ie.k,isSponsored:ie.u,isNSFW:ie.n,isOC:ie.o,isPinned:ie.p,isSpoiler:ie.t,language:e=>e.user.language,post:ie.D,postSubredditAboutInfo:ie.E,reportFlowIsOpen:(e,{isOverlay:t,postId:o})=>e.reportFlow.openedFromModalPage===t&&e.reportFlow.postOrCommentId===o,sendRepliesToggled:ie.M,showPinAction:(e,t)=>{var o=t.isProfilePostListing,n=he(t,["isProfilePostListing"]);return Object(G.F)(e,n)&&o&&Object(ce.db)(e,n)&&Object(ce.cb)(e,{userName:Object(ie.D)(e,{postId:n.postId}).author})},subredditOrProfile:ie.O,hasSubredditRules:re.k,userIsOp:ce.db,isPostPartOfACollection:ue.f,shouldRenderCollectionEditButtons:ue.m}),(e,{permalink:t,postId:o,dropdownId:n,isOverlay:s,isCommentsPage:i})=>({onCopyLink:()=>e(Object(x.r)(t)),onDelete:t=>e(Object(x.w)(o,t,s)),onDistinguishPost:t=>e(Object(x.m)(o,t)),onGildClick:()=>e(Object(f.d)(o)),onOpenDropdown:()=>e(Object(m.e)({tooltipId:n})),onToggleSave:()=>e(Object(x.D)(o)),onToggleNSFW:()=>e(Object(x.t)(o)),onToggleOC:()=>e(Object(x.u)(o)),onTogglePinned:()=>e(Object(b.i)(o)),onToggleSpoiler:()=>e(Object(x.F)(o)),onHide:t=>e(Object(x.G)(o,!t,s,!0)),onReportClick:()=>e(Object(v.i)(o,s)),onStartEventNow:()=>e(Object(u.startEventNowRequested)(o)),onEdit:()=>{const t=!s&&!i;e(Object(g.a)(o,t))},onFlairPost:()=>e(Object(h.i)(Object(ae.b)(o))),onToggleSendReplies:()=>e(Object(x.E)(o)),showCollectionsList:(t,o)=>{e(Object(pe.v)(t)).then(()=>{const t=Object(me.s)(o,s);e(h.i(t))})}}));const Ae=Object(c.f)(e=>fe(le.a,{toggleModal:e.toggleConfirmDelete,onConfirm:()=>e.handleDeletePost(e.location),actionText:Object(Z.a)(e.language,"posts.confirmDelete.action"),headerText:Object(Z.a)(e.language,"posts.confirmDelete.header"),modalText:Object(Z.a)(e.language,"posts.confirmDelete.text"),trackClick:()=>{},withOverlay:!0})),Re=e=>`\n@media (min-width: ${e}px) {\n display: none;\n}\n`;t.g=Ne(p()(class extends r.a.PureComponent{constructor(){super(...arguments),this.state={confirmDeleteIsOpen:!1},this.toggleConfirmDelete=(()=>{this.setState({confirmDeleteIsOpen:!this.state.confirmDeleteIsOpen})}),this.handlePostEvent=(e=>this.props.sendEvent(Object(oe.j)(e,this.props.post.id))),this.handleDeletePost=(e=>{e&&(this.props.onDelete(e),this.handlePostEvent("delete"))}),this.handleEdit=(()=>{this.handlePostEvent("edit"),this.props.onEdit()}),this.handleGild=(async()=>{Object(ee.d)(ee.a.GildingFlow),this.props.onGildClick();const e=(await o.e("gildTrackers").then(o.bind(null,"./src/reddit/helpers/trackers/gild.ts"))).clickGildEvent;this.props.sendEvent(e(this.props.postId))}),this.toggleHide=(()=>{const e=this.props.isHidden?"unhide":"hide";this.handlePostEvent(e),this.props.onHide(this.props.isHidden)}),this.toggleSave=(()=>{const e=this.props.isSaved?"unsave":"save";this.handlePostEvent(e),this.props.onToggleSave()}),this.handleReport=(()=>{this.handlePostEvent("report"),this.props.onReportClick()}),this.toggleOC=(()=>{this.handlePostEvent(this.props.isOC?"unmark_original_content":"mark_original_content"),this.props.onToggleOC()}),this.togglePinned=(()=>{this.handlePostEvent(this.props.isPinned?"unpin":"pin"),this.props.isPinned?this.props.sendEvent(Object(ne.e)(this.props.post.id)):this.props.sendEvent(Object(ne.c)(this.props.post.id)),this.props.onTogglePinned()}),this.toggleSpoiler=(()=>{this.handlePostEvent(this.props.isSpoiler?"unmark_spoiler":"mark_spoiler"),this.props.onToggleSpoiler()}),this.toggleNSFW=(()=>{this.handlePostEvent(this.props.isNSFW?"unmark_nsfw":"mark_nsfw"),this.props.onToggleNSFW()}),this.getBreakpoint=(e=>{var t=this.props;const o=t.currentUser,n=t.ignoreBreakpoints,s=t.userIsOp;if(!n)return Object(Q.c)(e,!!o,s)}),this.handleAddToCollection=(()=>{var e=this.props;const t=e.isPostPartOfACollection,o=e.showCollectionsList;t||o(this.props.post.belongsTo.id,this.props.post.id)})}renderDropdownIcons(){const e=this.props,t=e.isFutureEvent,o=e.isPinned,n=e.onStartEventNow,i=e.shouldRenderCollectionEditButtons,r=e.showEditFlair,d=e.showPinAction,c=e.toggleAddEventStartTimeModal,l=e.toggleEditStartTimeModal,a=e.useFlatlistBreakpoints,p=e.userIsOp,m=e.currentUser&&e.currentUser.isEmployee,u=Object(te.a)(e.post),f=e.post.belongsTo.type===y.a.PROFILE||Object(se.b)(e.postSubredditAboutInfo),h=Object(U.b)(e.post);return fe("div",{},void 0,e.currentUser&&!p&&fe(Ee,{breakpoint:a[X.a.Gild]?this.getBreakpoint(X.a.Gild):void 0,displayText:Object(Z.a)(e.language,"gold.giveAward"),onClick:this.handleGild},void 0,fe(Oe,{})),fe(Ee,{breakpoint:a[X.a.Share]?this.getBreakpoint(X.a.Share):void 0,displayText:Object(Z.a)(e.language,"posts.copyLink"),onClick:()=>{e.sendEvent(Object(ne.d)(e.postId,"share_copy")),e.onCopyLink()}},void 0,fe(Me,{})),fe(Ee,{breakpoint:a[X.a.Share]?this.getBreakpoint(X.a.Share):void 0,displayText:Object(Z.a)(e.language,"posts.embed"),onClick:()=>{e.sendEvent(Object(ne.d)(e.postId,"share_embed")),window.open(`https://embed.redditmedia.com/widgets/embed?url=${e.post.permalink}`,"RedditEmbed","height=500,width=650,modal=yes,alwaysRaised=yes")}},void 0,fe(Ie,{})),e.showEditPost&&fe(Ee,{breakpoint:a[X.a.EditPost]?this.getBreakpoint(X.a.EditPost):void 0,displayText:Object(Z.a)(e.language,"posts.editPost"),onClick:this.handleEdit,isSelected:e.isHidden},void 0,fe(je,{})),r&&fe(Ee,{displayText:Object(Z.a)(e.language,"posts.editFlair"),onClick:e.onFlairPost,isSelected:e.isHidden},void 0,fe(Ce,{})),fe(Ee,{breakpoint:a[X.a.Save]?this.getBreakpoint(X.a.Save):void 0,displayText:Object(Z.a)(e.language,`posts.${e.isSaved?"unsave":"save"}`),onClick:this.toggleSave,isSelected:e.isSaved},void 0,e.isSaved?fe(ve,{}):fe(ge,{})),d&&fe(Ee,{displayText:Object(Z.a)(e.language,`posts.${o?"unpinPost":"pinPost"}`),onClick:this.togglePinned},void 0,this.props.isPinned?fe(ke,{}):fe(we,{})),!e.isSponsored&&fe(Ee,{breakpoint:a[X.a.Hide]?this.getBreakpoint(X.a.Hide):void 0,displayText:Object(Z.a)(e.language,`posts.${e.isHidden?"unhide":"hide"}`),onClick:this.toggleHide,isSelected:e.isHidden},void 0,fe(be,{})),!e.isSponsored&&!p&&fe(Ee,{breakpoint:a[X.a.Report]?this.getBreakpoint(X.a.Report):void 0,displayText:Object(Z.a)(e.language,"posts.report"),onClick:this.handleReport},void 0,fe(xe,{})),i&&t&&n&&fe(Ee,{onClick:n,displayText:Object(Z.a)(e.language,"sidebar.widgets.postCollection.startEventNow")},void 0,fe(Te,{})),i&&t&&l&&fe(Ee,{onClick:l,displayText:Object(Z.a)(e.language,"sidebar.widgets.postCollection.editStartTime")},void 0,fe(Fe,{})),i&&!h&&c&&fe(Ee,{displayText:Object(Z.a)(e.language,"sidebar.widgets.postCollection.addEventStartTime"),onClick:c},void 0,fe(Fe,{})),i&&fe(Ee,{displayText:Object(Z.a)(e.language,"posts.addToCollection"),onClick:this.handleAddToCollection,noHover:this.props.isPostPartOfACollection,isDisabled:this.props.isPostPartOfACollection},void 0,fe(Pe,{})),p&&fe(Ee,{displayText:Object(Z.a)(e.language,"posts.delete"),onClick:this.toggleConfirmDelete},void 0,fe(Se,{})),m&&e.userIsOp&&fe(Ee,{displayText:e.post.distinguishType===s.F.ADMIN?Object(Z.a)(e.language,"posts.undistinguish"):Object(Z.a)(e.language,"posts.distinguishAsAdmin"),onClick:()=>e.post.distinguishType===s.F.ADMIN?e.onDistinguishPost(s.F.NONE):e.onDistinguishPost(s.F.ADMIN)},void 0,fe(ye,{})),p&&f&&!u&&fe(K.a,{text:Object(Z.a)(e.language,"posts.markAsOC"),onClick:this.toggleOC,isSelected:this.props.isOC}),p&&fe(K.a,{text:Object(Z.a)(e.language,"posts.markAsSpoiler"),onClick:this.toggleSpoiler,isSelected:this.props.isSpoiler}),p&&fe(K.a,{text:Object(Z.a)(e.language,"posts.markAsNSFW"),onClick:this.toggleNSFW,isSelected:this.props.isNSFW}),e.userIsOp&&fe(K.a,{text:Object(Z.a)(e.language,"posts.toggleSendReplies"),onClick:e.onToggleSendReplies,isSelected:this.props.sendRepliesToggled}))}render(){const e=this.props,t=this.state.confirmDeleteIsOpen;return fe("div",{},void 0,fe(W.b,{className:e.className,dropdownId:e.dropdownId,isFixed:e.isFixed,onClick:()=>e.sendEvent(Object(ne.d)(e.postId,"post_overflow_menu"))},void 0,this.renderDropdownIcons()),e.reportFlowIsOpen&&e.subredditOrProfile&&e.hasSubredditRules&&fe(q.a,{withOverlay:!0,overlayCustomStyles:q.b,postId:e.postId}),t&&fe(Ae,{toggleConfirmDelete:this.toggleConfirmDelete,handleDeletePost:this.handleDeletePost,language:e.language}))}}).withConfig({componentId:"ojyp6c-17"})(["","border-radius: 4px;cursor: pointer;height: 24px;line-height: 0px; // this seems to better vertically align the icon\npadding: 0 4px;width: 100%;"],e=>{const t=e.layout!==Y.f.Classic;return!e.isCommentsPage&&t||e.modModeWithPost||e.ignoreBreakpoints?"":e.currentUser?e.userIsOp?"":Re(Q.a):Re(Q.b)}))},"./src/reddit/components/ReportFlow/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return d});var n=o("./bundled-modules/styled-components/styled-components.min.js"),s=o("./src/higherOrderComponents/makeAsync.tsx"),i=o("./src/lib/loadWithRetries/index.ts"),r=o("./src/reddit/constants/colors.ts");const d=Object(n.css)(["background-color: ",";"],r.a.overlayReportFlow),c=()=>null;t.a=Object(s.a)({ErrorComponent:c,getComponent:()=>Object(i.a)(()=>o.e("ReportFlow").then(o.bind(null,"./src/reddit/components/ReportFlow/_ReportFlow.tsx"))).then(e=>e.default),LoadingComponent:c})},"./src/reddit/components/Reports/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"),i=o.n(s),r=o("./src/app/strings/index.ts"),d=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),c=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),l=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const a=i.a.div.withConfig({componentId:"s1u0ym3i-0"})(["color: ",";word-break: break-word;"],e=>Object(c.c)(e).bodyText),p=i.a.div.withConfig({componentId:"s1u0ym3i-1"})(["","color: ",";"],d.labelsFont,e=>Object(c.c)(e).bodyText),m=i.a.div.withConfig({componentId:"s1u0ym3i-2"})(["","padding: 8px;"],d.bodyFont);t.a=(e=>{const t=e.className,o=e.language,n=e.modReports,s=e.userReports;return l("div",{className:t},void 0,n&&n.length>0&&l(m,{},void 0,l(p,{},void 0,Object(r.a)(o,"posts.reports.title.moderator")),n.map(([e,t])=>l(a,{},`mod-${t}`,`u/${t}: ${e}`))),s&&s.length>0&&l(m,{},void 0,l(p,{},void 0,Object(r.a)(o,"posts.reports.title.user")),s.map(([e,t])=>l(a,{},`user-${e}`,`${t}: ${e}`))))})},"./src/reddit/components/ShareMenu/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"),i=o("./node_modules/reselect/lib/index.js"),r=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(r),c=o("./src/app/actions/tooltip.ts"),l=o("./src/app/strings/index.ts"),a=o("./node_modules/react-router/es/index.js"),p=o("./node_modules/react-router-redux/es/index.js"),m=o("./src/reddit/actions/post.ts"),u=o("./src/reddit/controls/Dropdown/index.tsx"),f=o("./src/reddit/controls/Dropdown/Row.tsx"),h=o("./src/reddit/helpers/getOverlayContainerById/index.ts"),b=o("./src/reddit/icons/fonts/Crosspost/index.tsx"),x=o("./src/reddit/icons/fonts/Embed/index.tsx"),g=o("./src/reddit/icons/fonts/Link/index.tsx"),v=o("./src/reddit/models/Subreddit/index.ts"),y=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),O=o("./src/reddit/routes/postCreation/constants.ts"),w=o("./src/reddit/selectors/tooltip.ts"),j=o("./src/reddit/selectors/user.ts"),C=o("./src/higherOrderComponents/asTooltip.tsx"),S=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,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 I=d()(u.a).withConfig({componentId:"s1fchhdg-0"})(["margin-top: 0;"]),P=Object(C.a)(I),T=d()(f.c).withConfig({componentId:"s1fchhdg-1"})(["padding: 8px 16px 8px 8px;border-top: none;color: ",";"],e=>Object(y.c)(e).metaText),F=d()(g.a).withConfig({componentId:"s1fchhdg-2"})(["font-size: 14px;"]),M=d()(b.a).withConfig({componentId:"s1fchhdg-3"})(["font-size: 12px;"]),E=d()(x.a).withConfig({componentId:"s1fchhdg-4"})(["font-size: 14px;"]),_=Object(i.createStructuredSelector)({dropdownIsOpen:(e,{dropdownId:t})=>Object(w.b)(t)(e),language:j.M}),N=Object(s.connect)(_,(e,t)=>{var o=t.dropdownId,n=t.permalink,s=k(t,["dropdownId","permalink"]);return{onCrosspost:()=>{s.post&&e(Object(p.b)(`${O.c}?source_id=${s.post.id}`))},toggleDropdown:()=>{e(Object(c.e)({tooltipId:o}))},copyLink:()=>e(Object(m.r)(n))}});t.a=Object(a.f)(N(e=>{const t=Object(h.a)(e.isOverlay),o=!e.subreddit||e.subreddit&&e.subreddit.type===v.b.Public,n=!!e.post&&e.post.isCrosspostable&&!e.post.isSponsored;return S("div",{className:e.className,onClick:e.toggleDropdown,id:e.dropdownId},void 0,e.children,S(P,{container:t,isOverlay:e.isOverlay,isOpen:e.dropdownIsOpen,tooltipId:e.dropdownId},void 0,S(T,{displayText:Object(l.a)(e.language,"posts.copyLink"),onClick:()=>{e.sendEventWithName("share_copy"),e.copyLink()}},void 0,S(F,{})),n&&S(T,{displayText:Object(l.a)(e.language,"posts.crosspost"),onClick:()=>{e.sendEventWithName("share_crosspost"),e.onCrosspost()}},void 0,S(M,{})),o&&S(T,{displayText:Object(l.a)(e.language,"posts.embed"),onClick:()=>{e.sendEventWithName("share_embed"),window.open(`https://embed.redditmedia.com/widgets/embed?url=${e.permalink}`,"RedditEmbed","height=500,width=650,modal=yes,alwaysRaised=yes")}},void 0,S(E,{}))))}))},"./src/reddit/components/ViewReportsDropdown/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"),i=o("./node_modules/reselect/lib/index.js"),r=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(r),c=o("./src/higherOrderComponents/asTooltip.tsx"),l=o("./src/reddit/controls/Dropdown/index.tsx"),a=o("./src/reddit/helpers/getOverlayContainerById/index.ts"),p=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),m=o("./src/reddit/selectors/tooltip.ts"),u=o("./src/app/strings/index.ts"),f=o("./src/reddit/components/Reports/index.tsx"),h=o("./src/reddit/components/RestrictedFlatlistButton/index.tsx"),b=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),x=o("./src/reddit/layout/row/Inline/index.tsx"),g=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const v=d()(x.a).withConfig({componentId:"q2chfv-0"})(["border-top: 1px solid ",";justify-content: flex-end;padding: 8px;"],e=>Object(p.c)(e).line),y=d()(h.c).withConfig({componentId:"q2chfv-1"})(["","color: ",";margin: 0px;"],b.smallButtonFont,e=>Object(p.c)(e).bodyText);var O=e=>g("div",{},void 0,g(f.a,{language:e.language,modReports:e.modReports,userReports:e.userReports}),!e.isShowingHistoricalReports&&g(v,{},void 0,g(y,{onClick:e.onIgnoreReports,text:e.ignoreReports?Object(u.a)(e.language,"posts.restoreReports"):Object(u.a)(e.language,"posts.ignoreReports")}))),w=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var i=t&&t.defaultProps,r=arguments.length-3;if(o||0===r||(o={}),o&&i)for(var d in i)void 0===o[d]&&(o[d]=i[d]);else o||(o=i||{});if(1===r)o.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];o.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const j=d()(l.a).withConfig({componentId:"huvt2w-0"})(["background-color: ",";border: 1px solid ",";border-radius: 4px;box-shadow: 0 2px 4px 0 ",";color: ",";font-size: 11px;margin-top: 0;overflow: auto;width: ","px;"],e=>Object(p.c)(e).body,e=>Object(p.c)(e).line,e=>Object(p.c)(e).flair,e=>Object(p.c)(e).metaText,320),C=Object(i.createStructuredSelector)({isDropdownOpen:(e,{tooltipId:t})=>Object(m.b)(t)(e)}),S=Object(s.connect)(C),k=Object(c.a)(j),I=S(e=>{const t=Object(a.a)(e.isOverlay),o=!(!e.model.numReports||-1!==e.model.numReports),n=o?e.model.modReportsDismissed||[]:e.model.modReports,s=o?e.model.userReportsDismissed||[]:e.model.userReports;return w(k,{className:e.className,container:t,isOpen:e.isDropdownOpen,isOverlay:e.isOverlay,tooltipId:e.tooltipId},void 0,w(O,{language:e.language,ignoreReports:e.model.ignoreReports,modReports:n,onIgnoreReports:e.onIgnoreReports,isShowingHistoricalReports:o,userReports:s}))});t.a=I},"./src/reddit/constants/componentTestIds.ts":function(e,t,o){"use strict";o.d(t,"d",function(){return n}),o.d(t,"b",function(){return s}),o.d(t,"c",function(){return i}),o.d(t,"a",function(){return r}),o.d(t,"e",function(){return d});const n="comment",s="comment-submission-form-markdown",i="comment-submission-form-richtext",r="comments-page-link-num-comments",d="post-content"},"./src/reddit/constants/postCreation.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return n}),o.d(t,"b",function(){return s}),o.d(t,"c",function(){return i}),o.d(t,"d",function(){return r}),o.d(t,"f",function(){return d}),o.d(t,"e",function(){return c}),o.d(t,"g",function(){return l});const n="PostCreation-AddEventButton",s=500,i="PostCreation-CollectionEducationTooltip",r="PostCreation-EventEducationTooltip",d=300,c=d,l="PostCreation-AddToCollectionButton"},"./src/reddit/controls/CheckboxMenuItem/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return x});o("./node_modules/react/index.js");var n,s=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(s),r=o("./src/reddit/constants/colors.ts"),d=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),c=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),l=o("./src/reddit/layout/row/Inline/index.tsx"),a=o("./src/reddit/icons/svgs/Checkbox/index.tsx"),p=o("./src/reddit/icons/svgs/CheckboxSelected/index.tsx"),m=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const u="\n height: 12px;\n width: 12px;\n margin-right: 10px;\n",f=i()(a.a).withConfig({componentId:"jw6ccf-0"})(["","background-color: ",";border-radius: 2px;"],u,e=>Object(d.c)(e).body),h=i()(p.a).withConfig({componentId:"jw6ccf-1"})(["",""],u),b=i()(e=>m("div",{className:e.className,onClick:e.onClick},void 0,m(l.a,{},void 0,e.isSelected?m(h,{className:"checkbox-inner-icon"}):m(f,{className:"checkbox-inner-icon"}),e.text))).withConfig({componentId:"jw6ccf-2"})(["","background-color: ",";box-sizing: border-box;color: ",";fill: ",";padding: 10px 8px;width: 100%;&:hover {color: ",";background-color: ",";fill: ",";}"],c.titleFontH5,e=>Object(d.c)(e).body,e=>Object(d.c)(e).bodyText,r.a.alienblue,e=>Object(d.c)(e).body,r.a.alienblue,e=>Object(d.c)(e).body),x=i()(Object(s.withTheme)(b)).withConfig({componentId:"jw6ccf-3"})(["cursor: pointer;color: ",";text-transform: capitalize;background-color: ",";border-top: "," solid 1px;border-left: "," solid 1px;border-right: "," solid 1px;display: block;white-space: nowrap;&:hover {background-color: ",";border-color: ",";}.checkbox-inner-icon {margin-left: 4px;margin-right: 6px;}"],e=>Object(d.c)(e).actionIcon,e=>Object(d.c)(e).body,e=>Object(d.c)(e).line,e=>Object(d.c)(e).line,e=>Object(d.c)(e).line,e=>Object(d.c)(e).actionIcon,e=>Object(d.c)(e).actionIcon);t.b=b},"./src/reddit/controls/ErrorText/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/lodash/uniqueId.js"),i=o.n(s),r=o("./node_modules/raf/index.js"),d=o.n(r),c=o("./node_modules/react/index.js"),l=o.n(c),a=o("./node_modules/react-redux/es/index.js"),p=o("./node_modules/reselect/lib/index.js"),m=o("./bundled-modules/styled-components/styled-components.min.js"),u=o.n(m),f=o("./src/app/strings/index.ts"),h=o("./src/reddit/actions/modal.ts"),b=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),x=o("./src/reddit/selectors/activeModalId.ts"),g=o("./src/higherOrderComponents/asModal.tsx"),v=o("./src/reddit/controls/Button/index.tsx"),y=o("./src/reddit/layout/row/Inline/index.tsx"),O=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),w=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const j=Object(f.f)("error.ok"),C=u.a.div.withConfig({componentId:"s18tv1r8-0"})(["box-sizing: border-box;border-radius: 4px;width: 350px;background-color: ",";border: 1px solid ",";border-radius: 4px;box-shadow: 0 0 0 1px ",",0px 2px 3px 2px ",";"],e=>Object(O.c)(e).body,e=>Object(O.c)(e).line,e=>Object(O.c)(e).line,e=>Object(O.c)(e).line),S=u()(y.a).withConfig({componentId:"s18tv1r8-1"})(["","padding: 11px 16px;border-bottom: 1px solid ",";"],b.titleFontH4,e=>Object(O.c)(e).line),k=u.a.div.withConfig({componentId:"s18tv1r8-2"})(["","padding: 16px;"],b.bodyFont),I=u()(y.a).withConfig({componentId:"s18tv1r8-3"})(["padding: 8px 5px;border-top: 1px solid ",";background: hsl(0, 0%, 98%);flex-direction: row-reverse;"],e=>Object(O.c)(e).line),P=u()(v.d).withConfig({componentId:"s18tv1r8-4"})(["margin-left: 5px;"]);var T=Object(g.a)(e=>{const t=e.children,o=e.language,n=e.title;return w(C,{},void 0,w(S,{},void 0,n),w(k,{},void 0,t),w(I,{},void 0,w(P,{onClick:e.onConfirmed},void 0,j(o))))});o.d(t,"b",function(){return L});var F=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var i=t&&t.defaultProps,r=arguments.length-3;if(o||0===r||(o={}),o&&i)for(var d in i)void 0===o[d]&&(o[d]=i[d]);else o||(o=i||{});if(1===r)o.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];o.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const M=Object(f.f)("error.more"),E=Object(f.f)("error.error"),_=Object(f.f)("error.type.generic"),N=u.a.div.withConfig({componentId:"s2apn2n-0"})(["","color: #f00;padding-top: 4px;text-align: right;display: flex;"],b.metadataFont),A=u.a.span.withConfig({componentId:"s2apn2n-1"})(["white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"]),R=u.a.span.withConfig({componentId:"s2apn2n-2"})(["text-decoration: underline;cursor: pointer;padding-left: 4px;"]),D=Object(p.createStructuredSelector)({activeModalId:x.a});const $=Object(a.connect)(D,e=>({toggleErrorTextModal:t=>e(Object(h.i)(t))}))(class extends l.a.Component{constructor(e){super(e),this.calcTextDidOverflow=(e=>{d()(()=>{e&&e.scrollWidth>e.clientWidth&&this.setState({textHasOverflowed:!0})})}),this.setRef=(e=>{this.calcTextDidOverflow(e)}),this.state={errorModalBody:e.errorModalBody||e.children,errorModalTitle:e.errorModalTitle||E(e.language),moreText:e.moreText||M(e.language),textHasOverflowed:!1,modalId:`ErrorTextModal--${i()()}`}}render(){var e=this.props;const t=e.children,o=e.className,n=e.activeModalId,s=e.language,i=e.toggleErrorTextModal;var r=this.state;const d=r.errorModalBody,c=r.errorModalTitle,l=r.modalId,a=r.moreText,p=r.textHasOverflowed;return F(N,{className:o},void 0,F(A,{innerRef:this.setRef},void 0,t),p&&F(R,{onClick:()=>i(l)},void 0,a),n===l&&F(T,{language:s,onConfirmed:()=>i(l),title:c},void 0,d))}});t.a=$;const L=(e,t)=>(e.length>0?e:[_(t)]).map(e=>F($,{language:t},void 0,e))},"./src/reddit/controls/Input/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return d});var n=o("./bundled-modules/styled-components/styled-components.min.js"),s=o.n(n),i=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),r=o("./src/reddit/models/Theme/NewColorSystem/index.ts");const d=`\n ${i.bodyFont}\n border: none;\n color: ${e=>Object(r.c)(e).actionIcon};\n display: block;\n height: 36px;\n padding: 0 8px;\n outline: none;\n`;t.a=s.a.input.withConfig({componentId:"ed4rwa-0"})(["",""],d)},"./src/reddit/controls/LoadingIcon/index.tsx":function(e,t,o){"use strict";var n=o("./node_modules/polished/dist/polished.es.js"),s=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(s),r=o("./src/reddit/helpers/styles/components/index.tsx"),d=o("./src/reddit/models/Theme/NewColorSystem/index.ts");const c=i()(Object(r.a)()).withConfig({componentId:"s1h5d9ni-0"})(["width: ","px;height: ","px;","font-size: 4px;position: relative;text-indent: -9999em;border-radius: 50%;border-top: .6em solid ",";border-right: .6em solid ",";border-bottom: .6em solid ",";border-left: .6em solid ",";transform: translateZ(0);animation: spin 1.1s infinite linear;&:after {border-radius: 50%;width: ","px;height: ","px;}@keyframes spin {0% {-webkit-transform: rotate(0deg);transform: rotate(0deg);}100% {-webkit-transform: rotate(360deg);transform: rotate(360deg);}}"],e=>e.sizePx,e=>e.sizePx,e=>e.center?"margin: 0 auto;":"",e=>Object(n.e)(Object(d.c)(e).bodyText,.2),e=>Object(n.e)(Object(d.c)(e).bodyText,.2),e=>Object(n.e)(Object(d.c)(e).bodyText,.2),e=>Object(d.c)(e).body,e=>e.sizePx,e=>e.sizePx);t.a=c},"./src/reddit/helpers/hasModFlairPermissions/index.ts":function(e,t,o){"use strict";t.a=(e=>!!e&&!!e.flair)},"./src/reddit/helpers/hasModPostPermissions/index.ts":function(e,t,o){"use strict";t.a=(e=>!!e&&!!e.posts)},"./src/reddit/icons/fonts/Comment/index.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),s=o.n(n),i=o("./src/lib/classNames/index.ts"),r=o("./src/reddit/icons/fonts/helpers.tsx"),d=o("./src/reddit/icons/fonts/commonStyles.m.less"),c=o.n(d),l=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},a=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};t.a=(e=>{var t=e.className,o=a(e,["className"]);return s.a.createElement("i",l({className:Object(i.a)(Object(r.b)("comment"),c.a.commentIcon,t)},o))})},"./src/reddit/icons/fonts/Crosspost/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"),i=o.n(s),r=o("./src/reddit/helpers/styles/mixins/index.tsx"),d=o("./src/reddit/icons/fonts/helpers.tsx"),c=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const l=i()(e=>c("i",{className:`${Object(d.b)("crosspost")} ${e.className}`})).withConfig({componentId:"jvtcal-0"})(["",""],r.l);t.a=l},"./src/reddit/icons/fonts/Embed/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"),i=o.n(s),r=o("./src/reddit/helpers/styles/mixins/index.tsx"),d=o("./src/reddit/icons/fonts/helpers.tsx"),c=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const l=i()(e=>c("i",{className:`${Object(d.b)("embed")} ${e.className}`})).withConfig({componentId:"o7l3oo-0"})(["",""],r.l);t.a=l},"./src/reddit/icons/fonts/IgnoreReport/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"),i=o.n(s),r=o("./src/reddit/helpers/styles/mixins/index.tsx"),d=o("./src/reddit/icons/fonts/helpers.tsx"),c=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const l=i()(e=>c("i",{className:`${Object(d.b)("ignoreReport")} ${e.className}`})).withConfig({componentId:"s17ko0bf-0"})(["",""],r.l);t.a=l},"./src/reddit/icons/fonts/ModActions/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./src/lib/classNames/index.ts"),i=o("./src/reddit/icons/fonts/helpers.tsx"),r=o("./src/reddit/icons/fonts/commonStyles.m.less"),d=o.n(r),c=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+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(i.b)("modActions"),d.a.modActions,e.className)}))},"./src/reddit/icons/fonts/Pencil/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"),i=o.n(s),r=o("./src/reddit/helpers/styles/mixins/index.tsx"),d=o("./src/reddit/icons/fonts/helpers.tsx"),c=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const l=i()(e=>c("i",{className:`${Object(d.b)("pencil")} ${e.className}`})).withConfig({componentId:"s1c9rdtg-0"})(["",""],r.l);t.a=l},"./src/reddit/icons/fonts/Share/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./src/lib/classNames/index.ts"),i=o("./src/reddit/icons/fonts/helpers.tsx"),r=o("./src/reddit/icons/fonts/commonStyles.m.less"),d=o.n(r),c=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+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(i.b)("share"),d.a.shareIcon,e.className)}))},"./src/reddit/icons/fonts/Tag/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"),i=o.n(s),r=o("./src/reddit/helpers/styles/mixins/index.tsx"),d=o("./src/reddit/icons/fonts/helpers.tsx"),c=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const l=i()(e=>c("i",{className:`${Object(d.b)("tag")} ${e.className}`})).withConfig({componentId:"s1ypmitj-0"})(["",""],r.l);t.a=l},"./src/reddit/icons/svgs/AddCollection/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 i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+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,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},void 0,s("defs",{},void 0,s("path",{id:"svg-add-collection",d:"M19.2 2.4a2.4 2.4 0 0 1 2.4 2.4v.936a3.577 3.577 0 0 0-2.4-.936H4.8c-.925 0-1.763.361-2.4.936V4.8a2.4 2.4 0 0 1 2.4-2.4h14.4zm0 3.6a2.4 2.4 0 0 1 2.4 2.4v.936a3.577 3.577 0 0 0-2.4-.936H4.8c-.925 0-1.763.361-2.4.936V8.4A2.4 2.4 0 0 1 4.8 6h14.4zm0 3.6a2.4 2.4 0 0 1 2.4 2.4v7.2a2.4 2.4 0 0 1-2.4 2.4H4.8a2.4 2.4 0 0 1-2.4-2.4V12a2.4 2.4 0 0 1 2.4-2.4h14.4zm-3.806 5.1H12.9v-2.494a.9.9 0 1 0-1.8 0V14.7H8.607a.9.9 0 1 0 0 1.8H11.1v2.494a.9.9 0 1 0 1.8 0V16.5h2.494a.9.9 0 0 0 0-1.8z"})),s("use",{fill:"inherit",xlinkHref:"#svg-add-collection",fillRule:"evenodd"})))},"./src/reddit/icons/svgs/Saved/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/polished/dist/polished.es.js"),i=(o("./node_modules/react/index.js"),o("./bundled-modules/styled-components/styled-components.min.js")),r=o.n(i),d=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),c=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var i=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&i)for(var d in i)void 0===t[d]&&(t[d]=i[d]);else t||(t=i||{});if(1===r)t.children=s;else if(r>1){for(var c=Array(r),l=0;l<r;l++)c[l]=arguments[l+3];t.children=c}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=r()(e=>c("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,c("path",{d:"M12.5 2h-11a.5.5 0 0 0 0 1A2.5 2.5 0 0 1 4 5.5v12.24a1 1 0 0 0 1.4.92l4.6-2 4.6 2a1 1 0 0 0 1.4-.92V5.5A3.5 3.5 0 0 0 12.5 2zm1 6.53l-4.26 4.29a.75.75 0 0 1-1.06 0L6.47 11.1A.75.75 0 0 1 7.53 10l1.18 1.18 3.76-3.76a.75.75 0 0 1 1.06 1.06z"}))).withConfig({componentId:"s1jovrf5-0"})(["fill: ",";"],e=>Object(s.f)(.6,Object(d.c)(e).active))},"./src/reddit/models/Payments/index.ts":function(e,t,o){"use strict";var n,s,i;o.d(t,"c",function(){return n}),o.d(t,"b",function(){return s}),o.d(t,"a",function(){return i}),o.d(t,"d",function(){return r}),o.d(t,"e",function(){return d}),function(e){e.PayPal="paypal",e.Stripe="stripe"}(n||(n={})),function(e){e.NewPayPal="new-paypal",e.NewStripe="new-stripe",e.SavedPayPal="saved-paypal",e.SavedStripe="saved-stripe"}(s||(s={})),function(e){e.Comment="comment",e.Post="post",e.Profile="profile"}(i||(i={}));const r=()=>({cardCVCComplete:!1,cardExpiryComplete:!1,cardNumberComplete:!1,name:"",postalCodeComplete:!1,saveCard:!1,type:s.NewStripe}),d=e=>e.cardCVCComplete&&e.cardExpiryComplete&&e.cardNumberComplete&&!!e.name&&e.postalCodeComplete},"./src/reddit/selectors/economics.ts":function(e,t,o){"use strict";o.d(t,"b",function(){return i}),o.d(t,"c",function(){return r}),o.d(t,"a",function(){return d}),o.d(t,"d",function(){return c}),o.d(t,"e",function(){return l}),o.d(t,"g",function(){return a}),o.d(t,"f",function(){return p});var n=o("./src/reddit/models/Payments/index.ts"),s=o("./src/reddit/reducers/economics/paymentSystems/index.ts");const i=(e,t)=>{const o=l(e,t);return!!o&&!!o.creator},r=e=>{const t=[],o=e.economics.paymentSystems;if(o.status===s.a.Fetched&&o.data.stripe&&o.data.stripe.sources){const e=o.data.stripe.sources;for(const o in e){const s=e[o];t.push({display:`${s.brand} •••• ${s.last4}`,id:o,type:n.b.SavedStripe})}}return t};var d;!function(e){e[e.Fetched=0]="Fetched",e[e.Fetching=1]="Fetching",e[e.NotFetched=2]="NotFetched"}(d||(d={}));const c=e=>e.economics.paymentSystems.status===s.a.NotFetched?d.NotFetched:e.economics.paymentSystems.status===s.a.Pending?d.Fetching:d.Fetched,l=(e,t)=>{const o=e.economics.tipDetails[t.subredditId];if(o){const e=o[t.contentId];if(e&&e.amounts&&e.amounts.usdr&&e.amounts.usdr.tipsProportions)return e.amounts.usdr.tipsProportions}},a=e=>{const t=e.economics.paymentSystems;return!!(t.status===s.a.Fetched&&t.data&&t.data.tips&&t.data.tips.usdr&&t.data.tips.usdr.allowed)},p=e=>{const t=e.economics.paymentSystems;return t.status===s.a.Fetched&&!!t.data&&!!t.data.stripe&&!!t.data.stripe.stripeAccountId}}}]);
|
|
//# sourceMappingURL=CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572.f515e5af068dfcd9fab7.js.map
|