19 lines
466 KiB
JavaScript
19 lines
466 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["Subreddit","Frontpage~ModListing~ModQueuePages~Multireddit~News~OriginalContent~ProfileComments~ProfileOverview~~1d46b903","PostDraft~SubredditWiki","GovernanceLeaderboard"],{"./node_modules/lodash/orderBy.js":function(e,t,o){var n=o("./node_modules/lodash/_baseOrderBy.js"),s=o("./node_modules/lodash/isArray.js");e.exports=function(e,t,o,r){return null==e?[]:(s(t)||(t=null==t?[]:[t]),s(o=r?void 0:o)||(o=null==o?[]:[o]),n(e,t,o))}},"./node_modules/lodash/random.js":function(e,t,o){var n=o("./node_modules/lodash/_baseRandom.js"),s=o("./node_modules/lodash/_isIterateeCall.js"),r=o("./node_modules/lodash/toFinite.js"),i=parseFloat,d=Math.min,a=Math.random;e.exports=function(e,t,o){if(o&&"boolean"!=typeof o&&s(e,t,o)&&(t=o=void 0),void 0===o&&("boolean"==typeof t?(o=t,t=void 0):"boolean"==typeof e&&(o=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=r(e),void 0===t?(t=e,e=0):t=r(t)),e>t){var c=e;e=t,t=c}if(o||e%1||t%1){var l=a();return d(e+l*(t-e+i("1e-"+((l+"").length-1))),t)}return n(e,t)}},"./src/app/helpers/describeApiError/index.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return r});var n=o("./src/app/strings/index.ts"),s=o("./src/lib/constants/index.ts");function r({apiError:e,isLoggedOut:t,language:o}){switch(e.type){case s.I.AUTHORIZATION_ERROR:return t?Object(n.a)(o,"error.type.notLoggedIn"):Object(n.a)(o,"error.type.notAuthorized");case s.I.VALIDATION_ERROR:return Object(n.a)(o,"error.type.validation");case s.I.NOT_FOUND_ERROR:return Object(n.a)(o,"error.type.notFound");case s.I.SERVER_ERROR:return Object(n.a)(o,"error.type.server");case s.I.LIKELY_UBLOCK_ERROR:return Object(n.a)(o,"error.type.blocked");default:return Object(n.a)(o,"error.type.generic")}}},"./src/lib/bigNumberUtils/percent.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return s});var n=o("./node_modules/bignumber.js/bignumber.js");function s(e,t){const o=new n.BigNumber(e),s=new n.BigNumber(t),r=new n.BigNumber(o.dividedBy(s)),i=new n.BigNumber("100").multipliedBy(r);return new n.BigNumber(i).toNumber()}},"./src/lib/colors/constants.ts":function(e,t,o){"use strict";o.d(t,"c",function(){return n}),o.d(t,"b",function(){return s}),o.d(t,"n",function(){return r}),o.d(t,"l",function(){return i}),o.d(t,"g",function(){return d}),o.d(t,"k",function(){return a}),o.d(t,"m",function(){return c}),o.d(t,"a",function(){return l}),o.d(t,"d",function(){return p}),o.d(t,"e",function(){return u}),o.d(t,"f",function(){return m}),o.d(t,"h",function(){return b}),o.d(t,"i",function(){return f}),o.d(t,"j",function(){return g});const n="#24A0ED",s="#000",r="#FFF",i="#FF4500",d="#CCCCCA",a="#A5A4A4",c="#222",l="#EA0027",p="#5F99CF",u="#0079d3",m="#F7FBFD",b="#545452",f="#222",g="#C6C6C6"},"./src/lib/humanizeDate/index.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return s});var n=o("./src/app/strings/index.ts");function s(e,t,o){const s=new Date(1e3*e);return`${Object(n.a)(t,`time.monthName.${s.getMonth()}`)} ${o?s.getDate()+", ":""}${s.getFullYear()}`}},"./src/lib/linkMatchers/index.ts":function(e,t,o){"use strict";var n=o("./node_modules/linkify-it/index.js"),s=o.n(n),r=o("./node_modules/tlds/index.js"),i=o.n(r),d=o("./src/lib/linkMatchers/customLinks.ts"),a=o("./node_modules/lodash/values.js"),c=o.n(a);const l=e=>c()(d.b).includes(e.substring(1)),p=["//","ftp:","http:","https:","mailto:"],u=e=>((e,t)=>(t.forEach(t=>e.add(t,null)),e))(e,p);o.d(t,"c",function(){return m}),o.d(t,"d",function(){return f}),o.d(t,"g",function(){return g}),o.d(t,"a",function(){return y}),o.d(t,"b",function(){return x}),o.d(t,"e",function(){return O}),o.d(t,"f",function(){return w});const m=s()().tlds(i.a).set({fuzzyIP:!0}),b=s()().set({fuzzyIP:!0}).add(d.f.mention.prefix,d.f.mention.config),f=u(s()()).set({fuzzyLink:!1,fuzzyEmail:!1}).add(d.f.subreddit.prefix,d.f.subreddit.config).add(d.f.subredditFull.prefix,d.f.subreddit.config),g=u(s()()).set({fuzzyLink:!1,fuzzyEmail:!1}).add(d.f.profile.prefix,d.f.profile.config).add(d.f.profileFull.prefix,d.f.profile.config),h=s()().tlds(i.a).set({fuzzyIP:!0}).add(d.f.subreddit.prefix,d.f.subreddit.config).add(d.f.subredditFull.prefix,d.f.subreddit.config).add(d.f.profile.prefix,d.f.profile.config).add(d.f.profileFull.prefix,d.f.profile.config).add(d.f.mention.prefix,d.f.mention.config),v=m.normalize;m.normalize=(e=>{v.call(m,e),!e.schema&&e.url.startsWith("http:")&&(e.url=`https:${e.url.slice(5)}`)});const y=(e,t)=>{return(h.match(e)||[]).filter(e=>{const o=l(e.text);return!o||o&&t})},x=e=>{return[...g.match(e)||[],...b.match(e)||[]].map(e=>!l(e.text)&&e.text.replace(d.a,"")).filter(e=>e)},O=(e,t)=>{const o=e.match(t);if(o&&1===o.length&&0===o[0].index&&o[0].lastIndex===t.length)return o[0]},w=e=>{const t=m.match(e);if(t&&1===t.length&&0===t[0].index){const o=t[0];return o.lastIndex===e.length?o:((e,t)=>{const o=e.substring(t.lastIndex);if(/.*\/\/.*\/.*/.test(t.url)&&/^(\?|\!)+$/.test(o))return t.lastIndex+=o.length,t.url+=o,t})(e,o)}}},"./src/lib/opener/index.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return n});const n={SELF:"_self",BLANK:"_blank",PARENT:"_parent",TOP:"_top"};t.b=((e,t=n.SELF,o)=>{if(t===n.BLANK){const n=window.open("",t,o);null!=n?(n.opener=null,n.location.href=e):window.location.href=e}else window.location.href=e})},"./src/reddit/components/AccountCompleteness/index.tsx":function(e,t,o){"use strict";var n=o("./src/higherOrderComponents/makeAsync.tsx"),s=o("./src/lib/loadWithRetries/index.ts");const r=()=>null,i=Object(n.a)({ErrorComponent:r,getComponent:()=>Object(s.a)(()=>o.e("MonthsToMinutes").then(o.bind(null,"./src/reddit/components/AccountCompleteness/_AccountCompleteness.tsx"))).then(e=>e.default),LoadingComponent:r});t.a=i},"./src/reddit/components/AdLinkWrapper/index.tsx":function(e,t,o){"use strict";var n=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),s=o("./bundled-modules/styled-components/styled-components.min.js");const r=o.n(s).a.div.withConfig({componentId:"s1u63ysq-0"})(["display: flex;justify-content: space-between;align-items: center;background-color: ",";height: 35px;"],e=>Object(n.c)(e).field);t.a=r},"./src/reddit/components/BannerAd/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),a=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(a),l=o("./src/lib/addQueryParams/index.ts"),p=o("./src/lib/constants/index.ts"),u=o("./src/lib/doubleclickForPublishers/index.ts"),m=o("./src/lib/intersectionObserver/index.ts"),b=o("./src/lib/objectSelector/index.ts"),f=o("./src/reddit/helpers/createBannerProperties/index.ts"),g=o("./src/reddit/selectors/subreddit.ts"),h=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const v=c.a.div.withConfig({componentId:"s127g5g-0"})(["position: relative;"]),y=c.a.div.withConfig({componentId:"s127g5g-1"})(["position: absolute;top: 0;left: 0;right: 0;bottom: 0;margin-top: -300px;margin-bottom: -300px;padding-top: 300px;padding-bottom: 300px;pointer-events: none;z-index: -1000;"]),x=e=>setTimeout(()=>{throw e},0);class O extends r.a.Component{constructor(){super(...arguments),this.frame=null,this.loader=null,this.refreshedAt=1/0,this.isWithinLoadingDistance=!1}componentDidCatch(e){x(e)}defineSlot(){var e=this.props;const t=e.id,o=e.slot,n=e.properties;var s=e.sizes;const r=void 0===s?[]:s;try{return this.frame&&u.a(this.frame,{id:t,slot:o,properties:n,sizes:r})}catch(i){x(i)}}destroySlot(){try{this.frame&&u.b(this.frame)}catch(e){x(e)}}async componentDidMount(){try{await this.defineSlot()}catch(e){x(e)}this.loader&&m.a(this.loader,e=>{this.frame&&u.e(this.frame,{viewable:e.intersectionRatio>.5}),this.isWithinLoadingDistance=!0,this.refresh(this.props),this.loader&&m.b(this.loader)})}componentWillUnmount(){this.loader&&m.b(this.loader),this.destroySlot()}refresh(e){this.isWithinLoadingDistance&&(this.refreshedAt=Date.now(),this.frame&&u.d(this.frame,{id:e.id,slot:e.slot,properties:e.properties,sizes:e.sizes}))}componentWillReceiveProps(e){this.props.refreshKey!==e.refreshKey&&Date.now()-this.refreshedAt>6e3&&this.refresh(e)}render(){var e=this.props;const t=e.id,o=e.slot,n=e.className;return o?h(v,{"data-slot":o},void 0,h(y,{innerRef:e=>{this.loader=e}},`${t}-loadinghitbox`),r.a.createElement("div",{key:`${t}-div`,className:n,ref:e=>{this.frame=e},id:t})):h("div",{className:n})}}O.defaultProps={sizes:[p.f]};t.a=Object(i.connect)(()=>Object(d.createStructuredSelector)({properties:Object(b.a)((e,t)=>{const o=e.platform.currentPage;if(!o)return{};const n=`${e.meta.protocol}://${e.meta.domain}`;return Object(f.b)(t.placement,e.user,Object(l.a)(`${n}${o.url}`,o.queryParams),Object(g.v)(e,{subredditName:t.listingName}),t.position)}),slot:(e,t)=>{const o=e.platform.currentPage;return o&&o.meta?u.c(t.listingName,o.meta.name):""}}))(O)},"./src/reddit/components/CallToActionButton/index.tsx":function(e,t,o){"use strict";var n=o("./bundled-modules/styled-components/styled-components.min.js"),s=o.n(n),r=o("./src/reddit/controls/Button/index.tsx"),i=o("./src/reddit/controls/OutboundLink/styled.tsx");const d=s()(i.a).withConfig({componentId:"xq4oc1-0"})(["","background-color: transparent;","",";&:hover{text-decoration: none;}"],r.o,r.p,e=>e.isNotCardView?"height: 27px":"");t.a=d},"./src/reddit/components/CategoriesNavigation/Categories/index.m.less":function(e,t,o){e.exports={titleFontH1:"pIlxiRadWdcEAlZpZ3w57",titleFontH2:"_3vnIPkjF9gBa5GN2XFL1-n",titleFontH3:"MvcJW2tVfXEu3OFs8dyUn",titleFontH4:"_1EMItyJFgJK_DvcDtXBW5N",titleFontH5:"_1mVw3TrTmgMkNGKgvDGV4m",titleFontH6:"_1g_9si81i_Ia2WHfpJJysD",metadataFont:"hvzV6yOQzOK0U0lb9LIvc",flairFont:"_2d5LK8qj16SfFMeiO51ZxA",labelsFont:"_25hPBsDfNcLK2OHu5-NUuT",actionFont:"bd1M804sJobTLMn9jONGB",smallButtonFont:"_1DsZf85_3IARf2X_-StG2S",largeButtonFont:"_1aPJzuSXNyPQv9HMxGsdTF",tabFont:"_2Or84wUVDTQzfcwoGc7hDN",bodyFontH1:"_2Je67ruqe_x3kX9CxIJw5j",fvfo:"_2IMaqkpQwasYg4x37LzCd3",bodyFontH2:"_1uZDFpBkclKxCYaLJCdi8V",bodyFontH3:"_1Ohj1SaXQOG-zW_vtbBdJl",bodyFontH4:"_3nI5qwD_dLjCpstcuSuzAO",bodyFontH5:"_1V79Mo61gXvVAUMIbL8xII",bodyFontH6:"_21ljVz_9cQigv7inOMChAh",bodyFont:"_1FceGC28wdOKKUG8PA4aSj",bodyFontSmall:"G7nA9YAsdHSxeatvbcFfb",bodyFontMono:"_3tx_deDztLnD8a7aX8ujTQ",container:"_1Fvwm_nUnZInOU-lABGsba",item:"_2-ZGfZ8pVitk1Yqnsi6T4O",link:"_3F10i35Gntc-o4JIMuVHZP",linkActive:"_3yylOQ1SS6TbgJKQ-8Ux7T",arrowIcon:"_3mQpw_UbTbG4OYN4uquCwf",arrow:"uBD5FR-aGquNrZX3qcvqv",arrowLeft:"EJw8EFAUIlMSU6YEHQEpX",arrowRight:"_2smW023ohact6kPgSOwT5F"}},"./src/reddit/components/CategoriesNavigation/index.m.less":function(e,t,o){e.exports={container:"_3v16LgmyO8Zf2vXkCMxaap",showFPR:"_2dq2JfGI0L_UOOpy9csUuG",showFpr:"_2dq2JfGI0L_UOOpy9csUuG",showSuspended:"_3kGgzwkJvWmHQjDRfE3Zla",categoriesContainer:"_2GfQ0hFW3IubWuHuFqgPhn"}},"./src/reddit/components/CategoriesNavigation/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),a=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(a),l=o("./src/lib/classNames/index.ts"),p=o("./src/reddit/components/AlertBanner/heights.ts"),u=o("./src/reddit/components/LayoutNavigation/Container.tsx"),m=o("./src/reddit/constants/postLayout.ts"),b=o("./src/reddit/contexts/PageLayer/index.tsx"),f=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),g=o("./src/reddit/selectors/category.ts"),h=o("./src/reddit/selectors/experiments/exploreV2.ts"),v=o("./src/reddit/selectors/user.ts"),y=o("./node_modules/lodash/isEqual.js"),x=o.n(y),O=o("./node_modules/react-motion/lib/react-motion.js"),w=o("./src/app/strings/index.ts"),j=o("./src/reddit/components/TrackingHelper/index.tsx"),S=o("./src/reddit/constants/listings.ts"),C=o("./src/reddit/constants/page.ts"),I=o("./src/reddit/controls/InternalLink/index.tsx"),k=o("./src/reddit/helpers/name/index.ts"),P=o("./src/reddit/helpers/trackers/navigation.ts"),N=o("./src/reddit/icons/svgs/Dropdown/index.tsx"),_=o("./src/reddit/actions/category.ts"),T=o("./src/reddit/components/CategoriesNavigation/Categories/index.m.less"),L=o.n(T),M=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});var A=Object(i.connect)(()=>{const e=Object(g.c)();return Object(d.createStructuredSelector)({language:v.M,subreddits:(t,{category:o})=>e(t,{categoryName:Object(k.f)(o.name)})})},(e,{category:t})=>({loadSubredditsAndNavigate:()=>e(_.i(t.id))}))(Object(j.b)(class extends r.a.Component{constructor(){super(...arguments),this.sendClickEvent=(()=>{this.props.sendEvent(Object(P.a)(Object(k.f)(this.props.category.name)))}),this.handleButtonClick=(()=>{this.sendClickEvent(),this.props.loadSubredditsAndNavigate()})}render(){const e=this.props.category;return r.a.createElement("span",{className:L.a.item,ref:this.props.innerRef},M(I.a,{className:Object(l.a)(L.a.link,this.props.isActive&&L.a.linkActive),to:`${S.c[C.e.Explore]}/${Object(k.f)(e.name)}`,onMouseDown:this.sendClickEvent},void 0,e.name))}}));class E extends r.a.Component{constructor(){super(...arguments),this.scrollTo=(e=>{this.containerRef&&(this.containerRef.scrollLeft=e)}),this.setContainerRef=(e=>{this.containerRef=e,this.props.innerRef&&this.props.innerRef(e)})}componentDidMount(){this.scrollTo(this.props.scrollLeft)}componentDidUpdate(e){this.scrollTo(e.scrollLeft)}render(){return r.a.createElement("div",{className:Object(l.a)(L.a.container,this.props.className),ref:this.setContainerRef},this.props.children)}}var B=o("./node_modules/raf/index.js"),F=o.n(B);class R extends r.a.Component{constructor(){super(...arguments),this.isIE=(()=>/Trident/.test(navigator.userAgent)),this.setContainerRef=(e=>{this.containerRef=e,this.createSensor()}),this.handleResize=(()=>{void 0!==this.frame&&F.a.cancel(this.frame),this.frame=F()(this.props.onResize)})}shouldComponentUpdate(){return!1}componentDidMount(){this.createSensor()}createSensor(){if(!this.containerRef||this.sensor)return;this.sensor=document.createElement("object"),this.sensor.setAttribute("style","\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n overflow: hidden;\n pointer-events: none;\n z-index: -1;\n "),this.sensor.setAttribute("tabindex","-1"),this.sensor.onload=(()=>{this.props.onResize(),this.sensor&&this.sensor.contentDocument&&this.sensor.contentDocument.defaultView&&this.sensor.contentDocument.defaultView.addEventListener("resize",this.handleResize)}),this.sensor.type="text/html";const e=this.isIE();e&&this.containerRef.appendChild(this.sensor),this.sensor.data="about:blank",e||this.containerRef.appendChild(this.sensor),this.props.onResize()}componentWillUnmount(){this.sensor&&(this.sensor&&this.sensor.contentDocument&&this.sensor.contentDocument.defaultView&&this.sensor.contentDocument.defaultView.removeEventListener("resize",this.handleResize),this.containerRef&&this.containerRef.removeChild(this.sensor))}render(){return r.a.createElement("div",{ref:this.setContainerRef})}}var $=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const D=300,U=24,W={x:0},H=Object(a.css)(["."," {background-color: ",";}."," {fill: ",";}."," {color: ",";}"],L.a.arrow,e=>Object(f.c)(e).body,L.a.arrowIcon,e=>Object(f.c)(e).navIcon,L.a.link,e=>Object(f.c)(e).bodyText),V=e=>$("div",{className:Object(l.a)(L.a.arrow,e.className),onClick:e.onClick},void 0,$(N.b,{className:L.a.arrowIcon}));var z=Object(j.b)(class extends r.a.Component{constructor(){super(...arguments),this.state={scrollLeft:0,showLeftArrow:!1,showRightArrow:!1},this.scrollTo=(e=>{if(!this.containerRef)return;const t=this.getMaxScrollLeft(),o=Math.min(Math.max(0,e),t),n={scrollLeft:o,showLeftArrow:0!==o,showRightArrow:o!==t};this.setState(e=>x()(e,n)?null:n)}),this.handleResize=(()=>{if(!this.containerRef)return;let e;const t=this.state.scrollLeft;var o=this.containerRef;const n=o.clientWidth,s=o.scrollWidth;e=s>n?{scrollLeft:Math.min(this.getMaxScrollLeft(),t),showLeftArrow:t>0,showRightArrow:t+n<s}:{scrollLeft:0,showLeftArrow:!1,showRightArrow:!1},this.setState(t=>x()(t,e)?null:e)}),this.handleLeftArrowClick=(()=>{const e=this.state.scrollLeft;if(!this.containerRef||0===e)return;this.sendScrollEvent();const t=Math.max(0,e-D);this.setState({scrollLeft:t,showLeftArrow:0!==t,showRightArrow:!0})}),this.handleRightArrowClick=(()=>{const e=this.state.scrollLeft,t=this.getMaxScrollLeft();if(!this.containerRef||e>=t)return;this.sendScrollEvent();const o=Math.min(t,e+D);this.setState({scrollLeft:o,showLeftArrow:!0,showRightArrow:o!==t})}),this.sendScrollEvent=(()=>{this.props.sendEvent(P.b)}),this.sendAllCategoriesClickEvent=(()=>{this.props.sendEvent(Object(P.a)("all"))}),this.sendPopularClickEvent=(()=>{this.props.sendEvent(Object(P.a)(C.e.Popular))}),this.setContainerRef=(e=>{this.containerRef=e,this.handleResize(),this.ensureActiveIsVisible()}),this.setActiveRef=(e=>{this.activeRef=e,this.ensureActiveIsVisible()}),this.renderCategory=(e=>{const t=Object(k.f)(e.name),o=t===Object(k.f)(this.props.category||"");return $(A,{category:e,innerRef:o?this.setActiveRef:void 0,isActive:o},t)}),this.renderContent=(e=>{const t=void 0===this.props.category,o=this.props.category===C.e.Popular;return $(E,{className:this.props.className,innerRef:this.setContainerRef,scrollLeft:e.x},void 0,r.a.createElement("span",{className:L.a.item,ref:t?this.setActiveRef:void 0},$(I.a,{className:Object(l.a)(L.a.link,t?L.a.linkActive:""),onMouseDown:this.sendAllCategoriesClickEvent,to:this.props.baseUrl},void 0,Object(w.a)(this.props.language,"categories.all"))),Object(h.d)(this.props.exploreV2Variant)&&r.a.createElement("span",{className:L.a.item,ref:o?this.setActiveRef:void 0},$(I.a,{className:Object(l.a)(L.a.link,o?L.a.linkActive:""),onMouseDown:this.sendPopularClickEvent,to:S.c[C.e.Popular]},void 0,Object(w.a)(this.props.language,"subscriptions.popular"))),this.props.categories.map(this.renderCategory),this.state.showLeftArrow&&$(V,{className:L.a.arrowLeft,onClick:this.handleLeftArrowClick}),this.state.showRightArrow&&$(V,{className:L.a.arrowRight,onClick:this.handleRightArrowClick}))})}componentDidMount(){window.addEventListener("resize",this.handleResize),setTimeout(()=>{this.ensureActiveIsVisible(),this.handleResize()},2e3)}componentDidUpdate(e){this.props.category!==e.category&&this.ensureActiveIsVisible()}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}getMaxScrollLeft(){return this.containerRef?this.containerRef.scrollWidth-this.containerRef.clientWidth:0}ensureActiveIsVisible(){if(!this.containerRef||!this.activeRef)return;const e=this.state.scrollLeft,t=this.state.scrollLeft+this.containerRef.offsetWidth,o=this.activeRef.offsetLeft,n=this.activeRef.offsetLeft+this.activeRef.offsetWidth;if(o>t||n<e)this.scrollTo(this.activeRef.offsetLeft-this.containerRef.offsetWidth/2+this.activeRef.offsetWidth/2);else if(n>t){const e=n-t;this.scrollTo(this.state.scrollLeft+e+U)}else if(o<e){const t=e-o;this.scrollTo(this.state.scrollLeft-t-U)}}render(){return 0===this.props.categories.length?null:$(r.a.Fragment,{},void 0,$(O.Motion,{defaultStyle:W,style:{x:Object(O.spring)(this.state.scrollLeft)}},void 0,this.renderContent),$(R,{onResize:this.handleResize}))}}),q=o("./src/reddit/components/CategoriesNavigation/index.m.less"),G=o.n(q),K=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const J=c()(u.a).withConfig({componentId:"yfrzu-0"})(["",";border-bottom: 1px solid ",";border-top: 1px solid ",";"],H,e=>Object(f.c)(e).line,e=>Object(f.c)(e).line),X=Object(d.createStructuredSelector)({categories:g.e,exploreV2Variant:h.a,isLoggedIn:v.F,language:v.M,layout:b.O}),Z=Object(i.connect)(X),Q=Object(b.w)({isExplore:b.A,pageLayer:e=>e});t.a=Q(Z(e=>{if(e.isLoggedIn)return null;return K(J,{className:Object(l.a)(G.a.container,e.className,Object(p.a)(G.a,{showFPR:!1,showSuspended:!1})),considerPinnedSubscriptions:!1,considerSidebar:!1,render:()=>{const t=K(z,{baseUrl:e.baseUrl,categories:e.categories,category:e.category,exploreV2Variant:e.exploreV2Variant,language:e.language});return e.isExplore&&e.layout===m.f.Classic?K("div",{className:G.a.categoriesContainer},void 0,t):t}})}))},"./src/reddit/components/ClassicPost/index.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),s=o.n(n),r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),d=o("./src/config.ts"),a=o("./src/lib/getShortenedLink.ts"),c=o("./src/reddit/components/AdLinkWrapper/index.tsx"),l=o("./src/reddit/components/CallToActionButton/index.tsx"),p=o("./src/reddit/components/Flatlist/index.tsx"),u=o("./src/reddit/components/JSAPIContainers/index.tsx"),m=o("./src/reddit/components/PostOverflowMenu/index.tsx"),b=o("./src/reddit/components/CompactPost/HorizontalVotes.tsx"),f=o("./src/reddit/components/ExpandoButton/index.tsx"),g=o("./src/reddit/components/LargePost/index.tsx"),h=o("./src/reddit/components/ModModeReports/index.tsx"),v=o("./src/reddit/components/ModModeReports/helpers.ts"),y=o("./src/reddit/components/PostBackgroundWrapper/index.tsx"),x=o("./src/reddit/components/PostContainer/index.tsx"),O=o("./src/reddit/components/PostMedia/index.tsx"),w=o("./src/reddit/components/PostMeta/index.tsx"),j=o("./src/reddit/components/PostTitle/index.tsx"),S=o("./src/reddit/components/PostTopMeta/index.tsx"),C=o("./src/reddit/controls/OutboundLink/styled.tsx"),I=o("./src/reddit/helpers/styles/postBackgroundColor.ts"),k=o("./src/reddit/models/Media/index.ts"),P=o("./src/reddit/components/ClassicPost/Thumbnail.tsx"),N=o("./node_modules/react-redux/es/index.js"),_=o("./node_modules/reselect/lib/index.js"),T=o("./src/app/actions/tooltip.ts"),L=o("./src/reddit/actions/post.ts"),M=o("./src/reddit/models/Vote/index.ts"),A=o("./src/reddit/contexts/InsideOverlay.tsx"),E=o("./src/reddit/contexts/PageLayer/index.tsx"),B=o("./src/reddit/selectors/activeModalId.ts"),F=o("./src/reddit/selectors/experiments/subscribeText.ts"),R=o("./src/reddit/selectors/moderatorPermissions.ts"),$=o("./src/reddit/selectors/monthsToMinutes.ts"),D=o("./src/reddit/selectors/posts.ts"),U=o("./src/reddit/selectors/user.ts");const W={autoplayPref:U.b,activeModalId:B.a,crosspost:D.c,currentUser:U.j,inlineSubscribeIsEnabled:F.a,isActive:D.f,isExpanded:D.h,isFrontpageHome:$.j,isMeta:(e,{postId:t})=>Object(D.m)(e,t),language:U.M,moderatorPermissions:R.f,modModeEnabled:E.Q,newsStory:()=>null,post:D.D,poll:(e,t)=>{const o=e.posts.metaMap[t.postId];return o?e.polls.models[o]:null},showMedia:E.u,subredditOrProfile:D.O,userIsOp:U.db,flairStyleTemplate:E.S},H=(e,{postId:t})=>({handleVote:o=>{const n=o===M.a.upvoted?Object(L.J)(t):Object(L.n)(t);e(n)},onIgnoreReports:()=>e(Object(L.H)(t)),onOpenReportsDropdown:t=>e(Object(T.e)({tooltipId:t}))}),V=(e,t,o)=>Object.assign({},e,t,o,{formatTitle:e=>e.title}),z=Object(N.connect)(()=>Object(_.createStructuredSelector)(W),H,V);var q=o("./src/reddit/selectors/news.ts");const G=Object(E.w)(),K=Object.assign({},W,{newsStory:q.q}),J=Object(N.connect)(()=>Object(_.createStructuredSelector)(K),H,V);var X,Z=o("./src/lib/LRUCache/index.ts"),Q=(X="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var s=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&s)for(var i in s)void 0===t[i]&&(t[i]=s[i]);else t||(t=s||{});if(1===r)t.children=n;else if(r>1){for(var d=Array(r),a=0;a<r;a++)d[a]=arguments[a+3];t.children=d}return{$$typeof:X,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const Y=Object(E.w)({searchQuery:E.W}),ee=new Z.a(250),te=Object(N.connect)(()=>Object(_.createStructuredSelector)(W),H,(e,t,o)=>Object.assign({},e,t,o,{formatTitle:(e=>{const t=e.trim().replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return e=>{const o=`${e.id}-${t}`;let n=ee.get(o);if(void 0===n){const r=new RegExp(`(\\b${t}\\b)`,"gi"),i=e.title.split(r);for(let e=1;e<i.length;e+=2)i[e]=Q("em",{style:{fontWeight:700}},void 0,i[e]);n=Q("span",{style:{fontWeight:"normal"}},void 0,s.a.Children.toArray(i)),ee.set(o,n)}return n}})(o.searchQuery||"")}));var oe=o("./src/reddit/helpers/hasModFlairPermissions/index.ts"),ne=o("./src/reddit/helpers/hasModPostPermissions/index.ts"),se=o("./src/reddit/helpers/styles/mixins/index.tsx"),re=o("./src/reddit/helpers/styles/mixins/responsive.ts"),ie=o("./src/reddit/components/ClassicPost/index.m.less"),de=o.n(ie);o.d(t,"a",function(){return ge}),o.d(t,"b",function(){return he});var ae=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},ce=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const le=16,pe=i()(c.a).withConfig({componentId:"s1ty340e-0"})(["margin-right: -8px;margin-bottom: 8px;"]),ue=i()(b.a).withConfig({componentId:"s1ty340e-1"})(["max-height: 24px;",""],re.a);const me=(e,t,o)=>o?e.crosspostRootId?ce("div",{className:de.a.crosspostMediaWrapper},void 0,be(e,t)):be(e,t):null,be=(e,t)=>ce(O.a,{isExpando:!0,isListing:!0,isNotCardView:!0,scrollerItemRef:t,shouldLoad:!0,shouldPause:!1,showFull:!0,showCentered:!0,post:e}),fe=i()(class extends s.a.Component{componentDidUpdate(e){this.props.onSizeChanged&&e.isExpanded!==this.props.isExpanded&&this.props.onSizeChanged(this.props.post.id)}render(){var e=this.props;const t=e.className,o=e.currentUser,n=e.handleVote,r=e.isExpanded,i=e.isMeta,c=e.inSubredditOrProfile,b=e.inlineSubscribeIsEnabled,O=e.isCheckboxSelected,I=e.isFrontpage,N=e.isFrontpageHome,_=e.isOverlay,T=e.language,L=e.moderatorPermissions,M=e.eventFactory,A=e.flairStyleTemplate,E=e.formatTitle,B=e.modModeEnabled,F=e.newsStory,R=e.onClickPost,$=e.onIgnoreReports,D=e.onOpenReportsDropdown,U=e.poll,W=e.post,H=e.scrollerItemRef,V=e.subredditOrProfile,z=e.showBulkActionCheckbox,q=e.showMedia,G=e.toggleCheckbox,K=e.userIsOp,J=this.props.crosspost||void 0,X=Object(ne.a)(L),Z=Object(oe.a)(L),Q=B&&ne.a,Y=!!W.media&&W.media.type===k.m.RTJSON,ee="subreddit"===W.belongsTo.type,te=K&&Y,se=K&&!!ee,re=c&&!q,ie={flairStyleTemplate:A,post:W,inSubredditOrProfile:c,shouldShowSubscribeButton:b&&!(I&&N),subredditOrProfile:V,showOCCategories:!0,newsStory:F,language:T};return ce(x.a,{className:t,post:W,onClick:R,eventFactory:M},void 0,Object(g.b)(W,n,z,O,G,A),ce(y.b,{flairStyleTemplate:A},void 0,ce("div",{className:de.a.mainBody},void 0,ce("div",{className:re?de.a.expandoContainer:de.a.thumbnailContainer},void 0,!re&&ce(P.b,{className:de.a.classicThumbnail,crosspost:J&&W,isMeta:i,post:J||W,url:F&&F.thumbnailUrl&&W&&W.thumbnail&&"default"===W.thumbnail.url?F.thumbnailUrl:"",templatePlaceholderImage:A&&A.postPlaceholderImage}),ce(f.a,{crosspost:J,className:de.a.rightExpando,isExpanded:!!r,post:W,useMediaIcons:!1})),ce("div",{className:de.a.content,"data-click-id":"body",style:{paddingBottom:`${le}px`}},void 0,ce(j.c,{className:U?de.a.titleWithPoll:void 0,format:E,poll:U,post:W,size:j.b.Medium,titleColor:A&&A.postTitleColor,disableFlair:!!F&&!!F.topic&&!!F.subtopic,isOverlay:_},void 0,W.source&&!J&&ce(C.a,{href:W.source.url,isSponsored:W.isSponsored,source:W.source},void 0,Object(a.a)(W))),s.a.createElement(w.a,ae({key:"PostMeta"},ie)),B&&X&&Object(v.c)(W)&&ce(h.a,{language:T,onIgnoreReports:$,reportable:W}),ce("div",{className:de.a.spacer}),W.source&&W.source.url&&W.isSponsored&&ce(pe,{},void 0,ce(C.a,{href:W.source.url.replace(d.a.redditUrl,""),isSponsored:W.isSponsored,source:W.source},void 0,W.source.displayText),W.callToAction&&ce(l.a,{href:W.source.url.replace(d.a.redditUrl,""),isSponsored:W.isSponsored,source:W.source},void 0,W.callToAction)),ce("div",{className:de.a.flatlistContainer},void 0,ce(f.a,{className:de.a.leftExpando,crosspost:J,isExpanded:!!r,post:W,useMediaIcons:!1}),ce(ue,{compact:!1,flairStyleTemplate:A,model:W,onVoteClick:n}),ce(p.a,{className:de.a.flatlistSeparator}),ce(p.c,{className:de.a.flatlist,currentUser:o,hasModFlairPerms:Z,hasModPostPerms:X,isOverlay:!!_,language:T,modModeEnabled:B,onIgnoreReports:$,onOpenReportsDropdown:D,post:W,showEditPost:te,showEditFlair:se,tooltipType:_?S.c.Lightbox:void 0,useFlatlistBreakpoints:Object(m.h)({editPost:!Q,save:!Q,hide:!Q,report:!Q})})),ce(u.d,{postId:W.id}))),me(W,H,r)))}}).withConfig({componentId:"s1ty340e-2"})(["."," {background: ",";}","","","","","","","",";cursor: pointer;"],de.a.classicThumbnail,I.b,P.a,se.h,se.f,p.e,p.d,w.b,y.a,e=>Object(se.j)(e.flairStyleTemplate)),ge=(e=>G(J(Object(A.b)(e))))(fe),he=(e=>Y(te(e)))(fe);t.c=(e=>z(Object(A.b)(e)))(fe)},"./src/reddit/components/CompactPost/index.m.less":function(e,t,o){e.exports={responsiveMeta:"_1xomvNxK4aHGoGa-YDw1Mc",compactWrapper:"YA9IzN0YR-G5_oD5EUydl",compactPostRow:"WnMeTcero48dKo501T-19",leftRailWrapper:"_3YgWdffoKyCp7UaGAEQpoo",proposalMetaData:"_1_B8IWlNlt5jJVg4cKy7nL"}},"./src/reddit/components/CompactPost/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-redux/es/index.js"),d=(o("./node_modules/react-router-dom/es/index.js"),o("./node_modules/reselect/lib/index.js")),a=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(a),l=o("./src/config.ts"),p=o("./src/lib/eventTools/index.ts"),u=o("./src/reddit/components/TrackingHelper/index.tsx"),m=o("./src/reddit/constants/postLayout.ts"),b=o("./src/reddit/constants/screenWidths.ts"),f=o("./src/reddit/helpers/hasModPostPermissions/index.ts"),g=o("./src/reddit/helpers/showReportIndicator/index.ts"),h=o("./src/reddit/helpers/styles/components/index.tsx"),v=o("./src/reddit/helpers/styles/mixins/index.tsx"),y=o("./src/reddit/helpers/trackers/post.ts"),x=o("./src/reddit/models/Media/index.ts"),O=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),w=o("./src/reddit/models/User/index.ts"),j=o("./src/reddit/models/Vote/index.ts"),S=o("./src/app/actions/tooltip.ts"),C=o("./src/reddit/actions/post.ts"),I=o("./src/reddit/actions/postFlair.ts"),k=o("./src/reddit/selectors/activeModalId.ts"),P=o("./src/reddit/selectors/moderatorPermissions.ts"),N=o("./src/reddit/selectors/posts.ts"),_=o("./src/reddit/selectors/user.ts"),T=o("./src/reddit/components/AdLinkWrapper/index.tsx"),L=o("./src/reddit/components/AwardBadges/index.tsx"),M=o("./src/reddit/components/CallToActionButton/index.tsx"),A=o("./src/reddit/components/CommentsLink/index.tsx"),E=o("./src/reddit/components/CompactPost/HorizontalVotes.tsx"),B=o("./src/reddit/components/ExpandoButton/index.tsx"),F=o("./src/reddit/components/Flatlist/index.tsx"),R=o("./src/reddit/components/JSAPIContainers/index.tsx"),$=o("./src/reddit/components/ModActionsMenu/index.tsx"),D=o("./src/reddit/components/ModModeReports/index.tsx"),U=o("./src/reddit/components/ModModeReports/helpers.ts"),W=o("./src/reddit/components/ModToolsFlatlist/index.tsx"),H=o("./src/reddit/components/ModToolsFlatlist/getModItemBreakpoints.ts"),V=o("./src/reddit/components/PostBackgroundWrapper/index.tsx"),z=o("./src/reddit/components/PostBadges/index.tsx"),q=o("./src/reddit/components/PostContainer/index.tsx"),G=o("./src/reddit/components/PostEventFollow/index.tsx"),K=o("./src/reddit/components/PostEventMeta/index.tsx"),J=o("./src/reddit/components/PostFlairPicker/index.tsx"),X=o("./src/reddit/components/PostLeftRail/index.tsx"),Z=o("./src/reddit/components/PostMedia/index.tsx"),Q=o("./src/reddit/components/PostModModeDropdown/index.tsx"),Y=o("./src/reddit/components/PostOverflowMenu/index.tsx"),ee=o("./src/reddit/components/PostTitle/index.tsx"),te=o("./src/reddit/components/PostTopMeta/index.tsx"),oe=o("./src/reddit/components/RestrictedFlatlistButton/index.tsx"),ne=o("./src/reddit/components/SponsoredLabel/index.tsx"),se=o("./src/reddit/components/SubredditIcon/index.tsx"),re=o("./src/reddit/components/VerticalVotes/index.tsx"),ie=o("./src/reddit/components/ViewReportsDropdown/index.tsx"),de=o("./src/reddit/contexts/InsideOverlay.tsx"),ae=o("./src/reddit/contexts/PageLayer/index.tsx"),ce=o("./src/reddit/controls/Checkbox/index.tsx"),le=o("./src/reddit/controls/MetaData/index.tsx"),pe=o("./src/reddit/controls/OutboundLink/styled.tsx"),ue=o("./src/reddit/helpers/hasModFlairPermissions/index.ts"),me=o("./src/reddit/helpers/styles/mixins/responsive.ts"),be=o("./src/reddit/icons/fonts/IgnoreReport/index.tsx"),fe=o("./src/reddit/icons/fonts/Report/index.tsx"),ge=o("./src/reddit/components/CompactPost/index.m.less"),he=o.n(ge),ve=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),ye=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 xe=c()(T.a).withConfig({componentId:"g1q0zx-0"})(["padding-left: 32px;"]),Oe=c()(V.b).withConfig({componentId:"g1q0zx-1"})(["border-left: 1px solid ",";flex: 1 1 auto;padding: 3px 0;@media (max-width: ","px) {padding-left: 8px;}"],e=>Object(O.c)(e).line,b.i-1),we=c()(re.a).withConfig({componentId:"g1q0zx-2"})(["align-items: flex-start;",""],me.a),je=c()(E.a).withConfig({componentId:"g1q0zx-3"})(["",""],me.b),Se=c()(Object(h.a)()).withConfig({componentId:"g1q0zx-4"})(["box-sizing: border-box;flex: 1;border-left: 4px solid ",";flex: 0 0 36px;"],X.c),Ce=c()(ce.a).withConfig({componentId:"g1q0zx-5"})(["padding: 4px;"]),Ie=c()(e=>{e.isCompact;var t=ye(e,["isCompact"]);return r.a.createElement(B.a,t)}).withConfig({componentId:"g1q0zx-6"})(["","flex: 0 0 24px;margin: 0 8px;"],e=>e.isCompact?me.a:me.b),ke=(c()(se.b).withConfig({componentId:"g1q0zx-7"})(["width: 20px;height: 20px;margin: 2px 12px 0 4px;"]),c.a.div.withConfig({componentId:"g1q0zx-8"})(["flex: 1 1 100%;margin-top: 2px;overflow: hidden;word-wrap: break-word;"])),Pe=c()(te.d).withConfig({componentId:"g1q0zx-9"})(["display: inline-block;vertical-align: middle;",""],me.b),Ne=c()(z.a).withConfig({componentId:"g1q0zx-10"})(["display: inline-block;vertical-align: middle;"]),_e=c.a.div.withConfig({componentId:"g1q0zx-11"})(["align-items: center;display: flex;flex: 0 0 72px;flex-direction: row;justify-content: flex-end;height: 24px;margin-left: 4px;padding-right: 4px;@media (max-width: ","px) {flex: 0 0 auto;flex-direction: column;height: 100%;}"],b.i-1),Te=c()(W.a).withConfig({componentId:"g1q0zx-12"})(["@media (max-width: ","px) {display: none;}"],H.a),Le=c()(A.b).withConfig({componentId:"g1q0zx-13"})(["","width: 53px;"],me.b),Me=c()(G.a).withConfig({componentId:"g1q0zx-14"})(["","text-align: left;width: 53px;"],me.b),Ae=c()(V.b).withConfig({componentId:"g1q0zx-15"})(["height: 100%;position: relative;"]),Ee=c.a.div.withConfig({componentId:"g1q0zx-16"})(["padding-top: 8px;margin-bottom: 8px;"]),Be=Object(i.connect)(()=>Object(d.createStructuredSelector)({activeModalId:k.a,crosspost:N.c,currentUser:_.j,flairStyleTemplate:ae.S,isActive:N.f,isExpanded:N.h,language:_.M,layout:ae.O,moderatorPermissions:P.f,modModeEnabled:ae.Q,poll:(e,t)=>{const o=e.posts.metaMap[t.postId];return o?e.polls.models[o]:null},post:N.D,subredditOrProfile:N.O,userIsOp:_.db}),(e,{postId:t})=>({dispatchFlairChanged:({post:t,previewFlair:o,selectedTemplateId:n})=>e(Object(I.h)({post:t,previewFlair:o,selectedTemplateId:n})),handleVote:o=>{const n=o===j.a.upvoted?Object(C.J)(t):Object(C.n)(t);e(n)},onIgnoreReports:()=>e(Object(C.H)(t)),onOpenReportsDropdown:t=>e(Object(S.e)({tooltipId:t}))}),(e,t,o)=>Object.assign({},o,e,t,{onFlairChanged:({previewFlair:o,selectedTemplateId:n})=>t.dispatchFlairChanged({post:e.post,previewFlair:o,selectedTemplateId:n})}));const Fe=e=>ve(Ae,{flairStyleTemplate:e.flairStyleTemplate},void 0,e.post.crosspostRootId?ve(Ee,{},void 0,Re(e.post,e.scrollerItemRef)):Re(e.post,e.scrollerItemRef)),Re=(e,t)=>ve(Z.a,{isExpando:!0,isListing:!0,isNotCardView:!0,scrollerItemRef:t,shouldLoad:!0,shouldPause:!1,showFull:!0,showCentered:!0,post:e}),$e=(e,t,o,n)=>ve(Ie,{crosspost:t,isCompact:n,isExpanded:o,post:e,useMediaIcons:!0}),De=(e,t,o)=>ve("div",{className:he.a.responsiveMeta},void 0,Object(le.d)(e.score,e.scoreHidden,o),ve(le.b,{}),Object(le.c)(e.numComments,o),ve(le.b,{}),t&&ve("a",{href:t.url},void 0,ve(le.a,{},void 0,t.displayText)),e.isSponsored&&[ve(ne.a,{},"label"),ve(le.b,{},"separator")],!e.isSponsored&&ve(le.a,{},void 0," Posted by "),ve(te.b,{post:e,canAccessRedesignProfiles:!1}));t.a=Be(c()(Object(u.b)(Object(de.b)(class extends r.a.Component{componentDidUpdate(e){this.props.onSizeChanged&&e.isExpanded!==this.props.isExpanded&&this.props.onSizeChanged(this.props.post.id)}render(){var e=this.props;const t=e.activeModalId,o=e.className,n=e.currentProfileName,s=e.crosspost,i=e.currentUser,d=e.eventFactory,a=e.flairStyleTemplate,c=e.handleVote;var u=e.isCheckboxSelected;const b=void 0!==u&&u,h=e.isCommentsPage,v=e.isCommentPermalink,O=e.isExpanded,j=e.isOriginalPage,S=e.isOverlay,C=e.isProfilePostListing;var I=e.inSubredditOrProfile;const k=void 0!==I&&I,P=e.language,N=e.layout,_=e.moderatorPermissions,T=e.modModeEnabled,A=e.onClickPost,E=e.onFlairChanged,B=e.onIgnoreReports,W=e.poll,H=e.post,V=e.subredditOrProfile,z=e.userIsOp,G=e.hideModTools,X=e.scrollerItemRef,Z=e.showBulkActionCheckbox,te=e.toggleCheckbox,ne=e.tooltipType,se=e.sendEvent,re=H.eventInfo,de=re&&Object(p.c)(re.eventStart,re.eventEnd),ae=!!H.media&&H.media.type===x.m.RTJSON,ce="subreddit"===H.belongsTo.type,me=z&&ae,ge=z&&!!ce,ye=Object(J.b)(H.id),Ie=Object(f.a)(_),Ae=Object(ue.a)(_),Ee=`-mod-actions-menu-${H.id}`,Be=!!i&&Object(w.f)(i)===H.author,Re=Object(U.c)(H),Ue=Object(F.g)("View--Reports",H.id,ne),We=Object(U.a)(H),He=e=>se(Object(y.d)(H.id,e));return ve(q.a,{className:o,post:H,onClick:A,eventFactory:d},void 0,ve("div",{className:he.a.compactWrapper},void 0,ve("div",{className:he.a.leftRailWrapper},void 0,ve(Se,{isRemoved:!!H.bannedBy,isReported:Object(g.a)(H),isSponsored:H.isSponsored},void 0,Z&&ve(Ce,{isCheckboxSelected:b,toggleCheckbox:te}),ve(we,{compact:!0,flairStyleTemplate:a,model:H,onVoteClick:c}),ve(je,{compact:!1,flairStyleTemplate:a,model:H,onVoteClick:c}))),ve(Oe,{flairStyleTemplate:a},void 0,ve("div",{className:he.a.compactPostRow},void 0,!G&&$e(H,s,O,!1),!k&&!H.isSponsored&&ve(R.h,{type:H.belongsTo.type,id:H.belongsTo.id}),ve(ke,{"data-click-id":"body"},void 0,ve(ee.c,{post:H,poll:W,size:ee.b.Small,titleColor:a&&a.postTitleColor,isOverlay:!1}),Object(K.b)(H)&&ve(r.a.Fragment,{},void 0,ve(K.a,{language:P,post:H}),ve(le.b,{})),De(H,V,P),ve(Pe,{flairStyleTemplate:a,language:P,post:H,showOCCategories:j,showSub:!!V&&!k&&!H.isSponsored,subredditOrProfile:V}),ve(Ne,{displayText:V?V.displayText:null,inSubredditOrProfile:k,language:P,post:H}),ve(L.d,{tooltipType:ne,thing:H})),ve(_e,{},void 0,de&&ve(Me,{compact:!0,post:H}),!de&&ve(Le,{hasModPostPerms:Ie,isCommentsPage:h,isCommentPermalink:v,isOverlay:S,postId:H.id,modModeEnabled:T,numComments:H.numComments,type:m.f.Compact}),ve(Te,{isOverlay:!1,language:P,layout:N,modModeEnabled:T,post:H,sendEvent:se,showIconsOnly:!0}),Ie&&ve($.a,{dropdownId:Ee,onClick:()=>He("post_mod_action_menu")},void 0,ve(F.b,{}),ve(Q.a,{hasModFlairPerms:Ae,hasModPostPerms:Ie,isOverlay:!1,isPostAuthor:Be,language:P,modModeEnabled:T,post:H,tooltipId:Ee})),Ie&&Re&&!T&&ve(oe.c,{text:`${We}`,onClick:()=>{this.props.onOpenReportsDropdown(Ue),He("post_report_menu")},id:Ue},void 0,ve(ie.a,{isOverlay:!1,language:P,model:H,onIgnoreReports:()=>{B(),He(H.ignoreReports?"restore_reports":"ignore_reports")},tooltipId:Ue}),H.ignoreReports?ve(be.a,{}):ve(fe.a,{})),ve(Y.g,{currentProfileName:n,isCommentsPage:h,isOverlay:!1,isProfilePostListing:C,layout:N,permalink:H.permalink,postId:H.postId,sendEvent:se,showEditPost:me,showEditFlair:ge,dropdownId:`${H.id}-overflow-menu`,useFlatlistBreakpoints:Object(Y.h)({share:!1,editPost:!1,save:!1,gild:!1,hide:!1,report:!1})}),!G&&$e(H,s,O,!0))),H.source&&H.source.url&&H.isSponsored&&ve(xe,{},void 0,ve(pe.a,{href:H.source.url.replace(l.a.redditUrl,""),isSponsored:H.isSponsored,source:H.source},void 0,H.source.displayText),H.callToAction&&ve(M.a,{href:H.source.url.replace(l.a.redditUrl,""),isSponsored:H.isSponsored,source:H.source,isNotCardView:!0},void 0,H.callToAction)),T&&Ie&&Re&&ve("div",{className:he.a.compactPostRow},void 0,ve(D.a,{language:P,onIgnoreReports:B,reportable:H})),ve(R.d,{postId:H.id}))),O&&ve(Fe,{post:H,scrollerItemRef:X,flairStyleTemplate:a}),t===ye&&ve(J.a,{flairs:H.flair,subredditId:H.belongsTo.id,language:P,modalId:ye,onFlairChanged:E}))}}))).withConfig({componentId:"g1q0zx-17"})(["","","","","","","","",";max-width: 100%;"],v.i,v.f,F.h,te.e,z.b,V.a,A.a,e=>Object(v.j)(e.flairStyleTemplate)))},"./src/reddit/components/CreatePostBanner/index.m.less":function(e,t,o){e.exports={titleFontH1:"_1BIJI1DdDH_4emkRdSgYtS",titleFontH2:"_23v2sEqtCPdekfIaLfBZp0",titleFontH3:"_3IPxgawQfrpK8awcnvf2tu",titleFontH4:"ZuN5dJ8fJ4v1pojDMILP0",titleFontH5:"_2ztaAHYqZbZbLYMI-lEtHX",titleFontH6:"FJTuq_jN8uqei2Q4GA66j",metadataFont:"_1cBJStdY8xmiR_5jS9gSeH",flairFont:"_1fMm1d_nUYPU1bZGhGW2bC",labelsFont:"_2_UCOjEBwHnvHk6zBrjPsR",actionFont:"_2yyPZbzMoNrAUtQO_SktBd",smallButtonFont:"_2_b2a8o6wkToROG8VNRtMR",largeButtonFont:"_3Ls4y5dDOPfsU8368YWswn",tabFont:"_2TXH3iCv_qoKnRDI_q5ehB",bodyFontH1:"_2ZqUm_Cp2QP_j0eqf4TOLu",fvfo:"Ud9FP0gU7NgPdco1P0GzC",bodyFontH2:"_3CcMb_6AI06xq5ar12VdGR",bodyFontH3:"_2rQURI6yWXPMKy8zTsJVhS",bodyFontH4:"_20eyEQiTe3oMfPFHKZsVTk",bodyFontH5:"_1LGkFCI_sPLVchg392lGmP",bodyFontH6:"NneW2LW2rvek7WBZYLULA",bodyFont:"_1WbHqicmob5scrxcNoRM6z",bodyFontSmall:"_1JhbrLSCwywCqsws4jUAzS",bodyFontMono:"_1DXzqFfRPHDAA7hSJMbTxi",closeContainer:"_3Amqa4WXRxq65XAjmjQw8E",buttonWrapper:"_2MsQ2gmnKXnwElZFA1jCbV",postIcon:"_2cBHGzAvbCcbR3bvPSt_Y1",button:"_3dn2kMjL3eThyGPEb1oAf-",banner:"_2bVJFy1zdpBBF6tNX6MsZt",heading:"aVXYLWktPH4YxXbOJbfEg",text:"_3VcroXmJS3StZ2nIi8JODq",close:"_1MiKBKJCDaPRJ7r-vSQ8xU"}},"./src/reddit/components/CreatePostButton/index.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),s=o.n(n),r=o("./node_modules/react-redux/es/index.js"),i=o("./src/app/strings/index.ts"),d=o("./src/reddit/actions/modal.ts"),a=o("./src/reddit/constants/modals.ts"),c=o("./src/reddit/constants/page.ts"),l=o("./src/reddit/controls/Button/index.tsx"),p=o("./src/reddit/helpers/getSubredditUrl/index.ts"),u=o("./src/reddit/selectors/telemetry.ts"),m=o("./src/reddit/selectors/user.ts"),b=o("./node_modules/reselect/lib/index.js"),f=o("./src/reddit/components/TrackingHelper/index.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},h=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 v=Object(b.createStructuredSelector)({isLoggedIn:m.F,language:m.M}),y=Object(r.connect)(v,e=>({openLoginModal:()=>e(Object(d.i)(a.a.REGISTER_MODAL_ID))}));t.a=y(Object(f.b)(e=>{var t=e.isLoggedIn,o=e.language,n=e.listingName,r=e.openLoginModal,d=e.sendEvent,a=e.subreddit,m=h(e,["isLoggedIn","language","listingName","openLoginModal","sendEvent","subreddit"]);return s.a.createElement(l.f,g({},m,{onClick:e=>{d(e=>({action:"click",noun:"create_post",source:"id_card",screen:Object(u.screen)(e),subreddit:Object(u.subreddit)(e),actionInfo:Object(u.actionInfo)(e)})),t||(r(),e.preventDefault())},to:`${Object(p.a)(a)||(e=>e===c.j?"/original/":"")(n)||"/"}submit`}),Object(i.a)(o,"postCreation.createPost"))}))},"./src/reddit/components/DiscoveryUnit/CarouselBase/index.m.less":function(e,t,o){e.exports={arrowIcon:"_2vWDDpepKDRWqekB9vJEi"}},"./src/reddit/components/DiscoveryUnit/CarouselBase/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/lodash/values.js"),r=o.n(s),i=o("./node_modules/react/index.js"),d=o.n(i),a=o("./src/lib/classNames/index.ts"),c=o("./src/reddit/icons/svgs/DiscoveryUnitArrow/index.m.less"),l=o.n(c),p=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});var u=e=>p("svg",{className:e.className,viewBox:"0 0 29 29",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},void 0,p("defs",{},void 0,p("circle",{id:"du-left-b",cx:"18",cy:"18",r:"18"}),p("filter",{id:"du-left-d",x:"-33.3%",y:"-25%",width:"166.7%",height:"166.7%"},void 0,p("feOffset",{dx:"0",dy:"3",in:"SourceAlpha",result:"shadowOffsetOuter1"}),p("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"3.5"}),p("feColorMatrix",{in:"shadowBlurOuter1",values:"0 0 0 0 0.101960784 0 0 0 0 0.101960784 0 0 0 0 0.105882353 0 0 0 0.3 0"})),p("path",{id:"du-left-a",d:"m12 8c-0.2048 0-0.4096-0.0784-0.5656-0.2344l-3.4344-3.4344-3.4344 3.4344c-0.3128 0.3128-0.8184 0.3128-1.1312 0s-0.3128-0.8184 0-1.1312l4-4c0.3128-0.3128 0.8184-0.3128 1.1312 0l4 4c0.3128 0.3128 0.3128 0.8184 0 1.1312-0.156 0.156-0.3608 0.2344-0.5656 0.2344zm0 4.8c-0.2048 0-0.4096-0.0784-0.5656-0.2344l-3.4344-3.4344-3.4344 3.4344c-0.3128 0.3128-0.8184 0.3128-1.1312 0s-0.3128-0.8184 0-1.1312l4-4c0.3128-0.3128 0.8184-0.3128 1.1312 0l4 4c0.3128 0.3128 0.3128 0.8184 0 1.1312-0.156 0.156-0.3608 0.2344-0.5656 0.2344z"})),p("g",{fill:"none",fillRule:"evenodd"},void 0,p("g",{transform:"translate(25 22) scale(-1 1) translate(-18 -18)"},void 0,p("g",{fillRule:"nonzero"},void 0,p("use",{className:l.a.black,filter:"url(#du-left-d)",xlinkHref:"#du-left-b"}),p("use",{className:l.a.white,xlinkHref:"#du-left-b"})),p("g",{transform:"translate(18 18) rotate(90) translate(-7.8261 -7.8261)"},void 0,p("polygon",{points:"0 16 16 16 16 0 0 0"}),p("mask",{id:"du-left-c",className:l.a.white},void 0,p("use",{xlinkHref:"#du-left-a"})),p("use",{className:l.a.black,fillRule:"evenodd",xlinkHref:"#du-left-a"}),p("g",{className:l.a.alienBlue,fillRule:"evenodd",mask:"url(#du-left-c)"},void 0,p("rect",{className:l.a.rect})))))),m=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var b=e=>m("svg",{className:e.className,viewBox:"0 0 29 29",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},void 0,m("defs",{},void 0,m("circle",{id:"du-right-b",cx:"18",cy:"18",r:"18"}),m("filter",{id:"du-right-d",x:"-33.3%",y:"-25%",width:"166.7%",height:"166.7%"},void 0,m("feOffset",{dx:"0",dy:"3",in:"SourceAlpha",result:"shadowOffsetOuter1"}),m("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"3.5"}),m("feColorMatrix",{in:"shadowBlurOuter1",values:"0 0 0 0 0.101960784 0 0 0 0 0.101960784 0 0 0 0 0.105882353 0 0 0 0.3 0"})),m("path",{id:"du-right-a",d:"m12 8c-0.2048 0-0.4096-0.0784-0.5656-0.2344l-3.4344-3.4344-3.4344 3.4344c-0.3128 0.3128-0.8184 0.3128-1.1312 0s-0.3128-0.8184 0-1.1312l4-4c0.3128-0.3128 0.8184-0.3128 1.1312 0l4 4c0.3128 0.3128 0.3128 0.8184 0 1.1312-0.156 0.156-0.3608 0.2344-0.5656 0.2344zm0 4.8c-0.2048 0-0.4096-0.0784-0.5656-0.2344l-3.4344-3.4344-3.4344 3.4344c-0.3128 0.3128-0.8184 0.3128-1.1312 0s-0.3128-0.8184 0-1.1312l4-4c0.3128-0.3128 0.8184-0.3128 1.1312 0l4 4c0.3128 0.3128 0.3128 0.8184 0 1.1312-0.156 0.156-0.3608 0.2344-0.5656 0.2344z"})),m("g",{fill:"none",fillRule:"evenodd"},void 0,m("g",{transform:"translate(-1005 -120)"},void 0,m("g",{transform:"translate(1012 124)"},void 0,m("g",{fillRule:"nonzero"},void 0,m("use",{className:l.a.black,filter:"url(#du-right-d)",xlinkHref:"#du-right-b"}),m("use",{className:l.a.white,xlinkHref:"#du-right-b"})),m("g",{transform:"translate(18 18) rotate(90) translate(-7.8261 -7.8261)"},void 0,m("polygon",{points:"0 16 16 16 16 0 0 0"}),m("mask",{id:"du-right-c",className:l.a.white},void 0,m("use",{xlinkHref:"#du-right-a"})),m("use",{className:l.a.black,fillRule:"evenodd",xlinkHref:"#du-right-a"}),m("g",{className:l.a.alienBlue,fillRule:"evenodd",mask:"url(#du-right-c)"},void 0,m("rect",{className:l.a.rect}))))))),f=o("./src/reddit/components/DiscoveryUnit/CarouselBase/index.m.less"),g=o.n(f);o.d(t,"a",function(){return v}),o.d(t,"b",function(){return y});var h=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const v=e=>h("button",{className:Object(a.a)(g.a.arrow,e.className),onClick:e.onClick},void 0,h(u,{className:g.a.arrowIcon})),y=e=>h("button",{className:Object(a.a)(g.a.arrow,e.className),onClick:e.onClick},void 0,h(b,{className:g.a.arrowIcon}));t.c=class extends d.a.Component{constructor(e){super(e),this.state={scrollIndex:0,viewableItems:{},visibleItemsCount:null},this.makeVisibilityChangeHandler=(e=>t=>{this.setState({viewableItems:Object.assign({},this.state.viewableItems,{[e]:t.isIntersecting&&t.intersectionRatio>=.99})})}),this.getVisibleItemsCount=(()=>r()(this.state.viewableItems).reduce((e,t)=>e+(t?1:0),0)),this.getMaxScrollIndex=(e=>null!=e&&this.props.items?this.props.items.length-e:null),this.getMarginLeft=((e,t,o)=>e*-t+o),this.itemsFitInContainer=((e,t,o)=>!e||e.offsetWidth/t>o.length),this.getAdjustment=((e,t,o,n)=>{let s=0;if(e===t&&o){const e=o*n;s=(this.container?this.container.offsetWidth:e)-e}else e>0&&(s=0);return s}),this.setContainerRef=(e=>{this.container=e}),this.id="",this.onClickNext=this.onClickNext.bind(this),this.onClickPrev=this.onClickPrev.bind(this)}componentDidMount(){const e=this.getVisibleItemsCount();this.setState({visibleItemsCount:e})}onClickNext(){const e=this.getVisibleItemsCount(),t=this.getMaxScrollIndex(e),o=Math.max(1,e),n=Math.min(this.state.scrollIndex+o,t);this.setState({scrollIndex:n,visibleItemsCount:e})}onClickPrev(){const e=this.getVisibleItemsCount(),t=Math.max(1,e),o=Math.max(0,this.state.scrollIndex-t);this.setState({scrollIndex:o,visibleItemsCount:e})}}},"./src/reddit/components/DiscoveryUnit/Community/index.m.less":function(e,t,o){e.exports={layout:"_1Yi7fbTTde5XeZybixm6FR",iconContainer:"gWdCEy56VxHUE2mBMBOW6",subscribeIcon:"_12F_RRHdGrCd7fUWkfqSgn",subscribeButton:"OSpYRUTaGaz3fjrn4W5P9",textContainer:"_1_5Q3J1CP2DOHmfGlUHZf3",icon:"_2wcnJRvYkbVflIjjKlL5UQ",name:"_2vd1AsQKSbwADj27oRcCpI",subscribers:"_2vCu8MDznHrM1jxVe1QlBk",right:"_2RT-YVauGr7kW3UYPzKHiy",visitCommunity:"_18hknfXm8lfBF7Ukdz7q_p",description:"_2DMxsEeoABpUf9b0cmcofA",descriptionLine:"_3TPTU-e7e845VpQqN3B9ni",plusIcon:"_1IK16jx0Si95U3hxV79faK"}},"./src/reddit/components/DiscoveryUnit/Community/index.tsx":function(e,t,o){"use strict";var n,s=o("./src/app/strings/index.ts"),r=o("./node_modules/react/index.js"),i=o.n(r),d=o("./node_modules/react-router-dom/es/index.js"),a=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(a),l=o("./src/lib/classNames/index.ts"),p=o("./src/reddit/components/SubredditIcon/index.tsx"),u=o("./src/reddit/components/SubscribeButton/index.tsx"),m=o("./src/reddit/connectors/connectToLanguage.ts"),b=o("./src/reddit/constants/posts.ts"),f=o("./src/reddit/helpers/name/index.ts"),g=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});var h=e=>g("svg",{className:e.className,viewBox:"0 0 12 12",version:"1.1"},void 0,g("path",{d:"M10.8 4.4H7.6V1.2a.8.8 0 0 0-.8-.8H5.2a.8.8 0 0 0-.8.8v3.2H1.2a.8.8 0 0 0-.8.8v1.6a.8.8 0 0 0 .8.8h3.2v3.2a.8.8 0 0 0 .8.8h1.6a.8.8 0 0 0 .8-.8V7.6h3.2a.8.8 0 0 0 .8-.8V5.2a.8.8 0 0 0-.8-.8",fill:"currentColor",fillRule:"evenodd"})),v=o("./src/reddit/layout/threeCol/ExpandCenter/index.tsx"),y=o("./src/reddit/models/Subreddit/index.ts"),x=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),O=o("./src/reddit/components/DiscoveryUnit/Community/index.m.less"),w=o.n(O),j=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const S=c()(u.a).withConfig({componentId:"s8pveuu-0"})(["",""],e=>e.withPlusIcon?"\n padding-bottom: 0;\n padding-top: 0;\n white-space: nowrap;\n ":""),C=c.a.div.withConfig({componentId:"s8pveuu-1"})(["."," {border: 1px solid ",";}."," {color: ",";}.",",.",",."," {color: ",";}."," {background-color: ",";}."," {color: ",";}."," {fill: ",";}"],w.a.icon,e=>Object(x.c)(e).line,w.a.name,e=>Object(x.c)(e).bodyText,w.a.description,w.a.subscribers,w.a.descriptionLine,e=>Object(x.c)(e).metaText,w.a.subscribeButton,e=>Object(x.c)(e).field,w.a.visitCommunity,e=>Object(x.c)(e).linkText,w.a.plusIcon,e=>Object(x.c)(e).body);t.a=Object(m.a)(e=>{const t=e.subredditAboutInfo,o=e.subredditOrProfile,n={name:o.name,type:Object(y.c)(o)?b.a.PROFILE:b.a.SUBREDDIT},r=t?t.publicDescription:"";return j(C,{className:Object(l.a)(w.a.container,e.className)},void 0,j(v.a,{className:w.a.layout},void 0,j("div",{className:w.a.iconContainer},void 0,j(p.b,{className:w.a.icon,redditStyle:!0,subredditOrProfile:o}),e.showSubscribeSmallIcon&&j(S,{className:w.a.subscribeIcon,getEventFactory:e.getSubscribeEventFactory,icon:!0,identifier:n,small:!0})),j("div",{className:w.a.textContainer},void 0,j(d.a,{className:w.a.name,to:o.url,onMouseDown:e.onClick},void 0,Object(f.b)(o.displayText||o.name)),!e.showDescriptionLine&&!!r&&j("p",{className:w.a.description,title:r},void 0,r),(e.showDescriptionLine||!r)&&!!o.subscribers&&j("p",{className:w.a.subscribers},void 0,Object(s.d)(e.language,"listings.subscribers",o.subscribers))),j("div",{className:w.a.right},void 0,!e.showSubscribeSmallIcon&&j(i.a.Fragment,{},void 0,e.showVisitLink&&j(d.a,{className:w.a.visitCommunity,to:o.url,onMouseDown:e.onClick},void 0,Object(s.a)(e.language,"discoveryUnits.visitCommunity")),j(S,{border:!!e.showSubscribeBlueButton,className:e.showSubscribeBlueButton||e.showSubscribeLargeIcon?void 0:w.a.subscribeButton,getEventFactory:e.getSubscribeEventFactory,identifier:n,icon:e.showSubscribeLargeIcon,small:!e.showSubscribeLargeIcon,withPlusIcon:!!e.showSubscribeBlueButton},void 0,e.showSubscribeBlueButton&&j(h,{className:w.a.plusIcon}))))),e.showDescriptionLine&&j("p",{className:w.a.descriptionLine,title:r},void 0,r))})},"./src/reddit/components/DiscoveryUnit/Layout/Posts/LargePost/index.m.less":function(e,t,o){e.exports={subscribeBlock:"_2K1NDLfQ1li98LnvydBdNi",metaLine:"_2ZzXnnvViW1cNiyJDAwQDt",bodyWrapper:"_3u6y1RQYCofMUyoR2kjC5l",textWrapper:"_19mUmrg6WesSKSmZhQEjWV",mediaWrapper:"_1yIBLJ6HB85lFgtecGo5fE",thumbnail:"_3UTXxzS2wbR9EWHksS_e8h",flatlist:"_1Vzo24SML9Mhww7IxRI2pp",postTitle:"RIdh-lLjEPPyxAGw3Tu5k",postTitleCompact:"_2S1d6YLjro9lYVxzu3lo54",flexSpacer:"_2VNbdMdEXhCajLS8-L_dXA"}},"./src/reddit/components/DiscoveryUnit/Layout/Posts/LargePost/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return Z});var n,s=o("./src/config.ts"),r=o("./node_modules/react/index.js"),i=o.n(r),d=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(d),c=o("./src/lib/isUrl/index.ts"),l=o("./src/reddit/components/DiscoveryUnit/Community/index.tsx"),p=o("./src/reddit/components/JSAPIContainers/index.tsx"),u=o("./src/reddit/components/Media/index.tsx"),m=o("./src/reddit/components/MiniCardPost/index.tsx"),b=o("./src/reddit/components/MiniCardPost/Flatlist/index.tsx"),f=o("./src/reddit/components/MiniCardPost/MetaLine/index.tsx"),g=o("./src/reddit/components/MiniCardPost/Thumbnail/index.tsx"),h=o("./src/reddit/components/PostBackgroundWrapper/index.tsx"),v=o("./src/reddit/components/PostContainer/index.tsx"),y=o("./src/reddit/components/PostFlairPicker/index.tsx"),x=o("./src/reddit/components/PostTitle/index.tsx"),O=o("./src/reddit/components/SubscribeButton/Base.tsx"),w=o("./src/reddit/constants/posts.ts"),j=o("./src/reddit/contexts/PageLayer/index.tsx"),S=o("./src/reddit/controls/Button/index.tsx"),C=o("./src/reddit/controls/ContentType/index.tsx"),I=o("./src/reddit/helpers/canPreviewSelfText/index.ts"),k=o("./src/reddit/helpers/getRichTextContent.ts"),P=o("./src/reddit/helpers/hasModFlairPermissions/index.ts"),N=o("./src/reddit/helpers/hasModPostPermissions/index.ts"),_=o("./src/reddit/helpers/postHasSelfText/index.ts"),T=o("./src/reddit/models/Media/index.ts"),L=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),M=o("./src/reddit/components/Media/EmbedBox/index.m.less"),A=o.n(M),E=o("./src/reddit/components/Media/ImageBox/index.m.less"),B=o.n(E),F=o("./src/reddit/components/Media/VideoBox/index.m.less"),R=o.n(F),$=o("./src/reddit/components/MiniCardPost/index.m.less"),D=o.n($),U=o("./src/reddit/components/Thumbnail/index.m.less"),W=o.n(U),H=o("./src/reddit/controls/Score/index.m.less"),V=o.n(H),z=o("./src/reddit/components/DiscoveryUnit/Layout/Posts/LargePost/index.m.less"),q=o.n(z),G=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const K=`${s.a.assetPath}/img/link-placeholder.png`,J=Object(j.w)(),X="\n border-radius: 0;\n height: 180px;\n width: auto;\n",Z=`\n .${q.a.mediaWrapper} {\n .${q.a.thumbnail} {\n .${W.a.container} {\n ${X};\n\n .${W.a.thumbnail} {\n ${X};\n background-size: cover;\n }\n }\n\n .${W.a.linkIcon} {\n border-radius: 0;\n }\n\n .${W.a.outboundLinkIcon} {\n margin-top: 2px;\n }\n\n .${W.a.contentType} {\n transform: scale(1.5);\n }\n }\n\n .${B.a.container} > div {\n width: 100%;\n }\n\n .${B.a.image} {\n object-fit: cover;\n width: 100%;\n }\n\n .${R.a.styledVideo} {\n object-fit: cover;\n }\n\n .${B.a.seeMore} {\n bottom: 0;\n }\n\n .${A.a.embedBox} {\n height: 180px;\n width: 100%;\n }\n }\n\n .${V.a.score} {\n color: inherit !important; // to override inline style\n }\n`,Q=a()(e=>{const t=e.autoplayPref,o=e.availableWidth,n=e.className,s=e.crosspostRoot,r=e.crosspostSubredditOrProfile,d=e.currentUser,a=e.eventFactory,m=e.flairStyleTemplate,O=e.forceLoadMedia,j=e.hideNSFWPref,S=e.language,C=e.moderatorPermissions,L=e.modModeEnabled,M=e.onClickPost,A=e.post,E=e.scrollerItemRef,B=e.shouldPause;var F=e.showMetaLine;const R=void 0===F||F;var $=e.showSubscribeBlock;const U=void 0!==$&&$,W=e.subredditOrProfile,H=e.userIsOp;const V=(s||A).media,z=V&&V.type,J=Object(y.b)(A.id),X=z===T.m.RTJSON,Z=A.belongsTo.type===w.a.SUBREDDIT,Q=H&&X,Y=H&&!!Z,ee=Object(N.a)(C),te=Object(P.a)(C),oe=V&&G(u.a,{autoplayPref:t,availableWidth:o,className:D.a.media,forceAspectRatio:T.c,isListing:!0,isMiniCard:!0,isNotCardView:!0,post:s||A,scrollerItemRef:E,shouldPause:B,shouldLoad:O,showCentered:!1,showFull:!1});let ne,se=!0;const re=!!A.source&&Object(c.a)(A.source.url)||!!A.thumbnail&&Object(c.a)(A.thumbnail.url);return!V&&re?(se=!1,ne=G(i.a.Fragment,{},void 0,G("div",{className:q.a.flexSpacer}),G("div",{className:q.a.mediaWrapper},void 0,G(g.a,{className:q.a.thumbnail,post:A,templatePlaceholderImage:m?m.postPlaceholderImage:K,showPlaceholderContentType:!m||!m.postPlaceholderImage})))):V&&oe?V.type!==T.m.RTJSON&&V.type!==T.m.TEXT?(se=!1,ne=G(i.a.Fragment,{},void 0,G("div",{className:q.a.flexSpacer}),G("div",{className:q.a.mediaWrapper},void 0,oe))):ne=Object(_.a)(A)||Object(k.a)(A,null)&&Object(I.a)(A)?G("div",{className:q.a.textWrapper},void 0,oe):G("div",{className:q.a.flexSpacer}):ne=G("div",{className:q.a.flexSpacer}),G(v.a,{className:n,post:A,onClick:M,eventFactory:a},void 0,G(h.b,{className:D.a.backgroundWrapper,flairStyleTemplate:m},void 0,G("div",{className:D.a.innerContainer},void 0,U&&W&&G(l.a,{className:q.a.subscribeBlock,getSubscribeEventFactory:e.getSubredditSubscribeEventFactory,onClick:()=>e.onCommunityClick(A),showSubscribeLargeIcon:!0,subredditOrProfile:W}),R&&W&&G(f.a,{className:q.a.metaLine,crosspostSubredditOrProfile:r,hideNSFWPref:j,language:S,onCommunityClick:()=>e.onCommunityClick(A),post:A,subredditOrProfile:W}),G(x.c,{className:se?q.a.postTitle:q.a.postTitleCompact,disableFlair:!0,hideSourceLink:!0,post:A,size:x.b.Large,titleColor:m&&m.postTitleColor}),ne,G(b.a,{className:q.a.flatlist,currentUser:d,handleVote:e.handleVote,hasModFlairPerms:te,hasModPostPerms:ee,language:S,modModeEnabled:L,post:A,showEditFlair:Y,showEditPost:Q}))),e.activeModalId===J&&G(y.a,{flairs:A.flair,subredditId:A.belongsTo.id,language:S,modalId:J,onFlairChanged:e.onFlairChanged}),G(p.d,{postId:A.id}))}).withConfig({componentId:"yhotp9-0"})(["",";",";margin-bottom: 0;"," {color: ",";}."," {padding-top: 8px;}."," {height: 100%;}."," {"," {fill: ",";}"," {",";background-color: ",";border: 1px solid ",";&:active,&:hover,&:disabled,&[disabled],&[data-disabled] {background-color: ",";border: 1px solid ",";}}}"],m.d,Z,C.a,e=>Object(L.c)(e).body,D.a.innerContainer,D.a.media,q.a.subscribeBlock,O.a,e=>Object(L.c)(e).button,O.b,S.u,e=>Object(L.c)(e).body,e=>Object(L.c)(e).button,e=>Object(L.c)(e).body,e=>Object(L.c)(e).button);t.a=J(Object(m.b)(Q))},"./src/reddit/components/DiscoveryUnit/Layout/Posts/TopPostsLargePost/index.m.less":function(e,t,o){e.exports={metaLine:"_3RsomDBMRm4zJwQoMA4H1I",bodyWrapper:"_8QyJR-f-gRDrBnB_U9d9M",mediaWrapper:"aAoswTeXSP59D_O0jbLMm",textWrapper:"_2QMHsv2ah510M8yVPnDIDo",meta:"_3OnBTLhwkjT_qb7jDZaN9k",metaWrapper:"_2kgjZeq5YSkBzbG2wBt-_",thumbnail:"_1DSgZoQLneHjWE3l_dVvDG",flatlist:"_15Tcsv4uOZy408GvAhSm6S",postTitle:"_20l1A0LHN5sLYdsFa4q_mv",postTitleCompact:"-si4FJBkXt7YGgVfE6_gR",flexSpacer:"oE0WBXnmx0c_cycbOzIeZ"}},"./src/reddit/components/DiscoveryUnit/Layout/Posts/TopPostsPlaceholder.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./src/lib/classNames/index.ts"),d=o("./node_modules/react-redux/es/index.js"),a=o("./node_modules/reselect/lib/index.js"),c=o("./bundled-modules/styled-components/styled-components.min.js"),l=o.n(c),p=o("./src/reddit/components/SubredditIcon/index.tsx"),u=o("./src/reddit/components/VerticalVotes/votes.tsx"),m=o("./src/reddit/contexts/PageLayer/index.tsx"),b=o("./src/reddit/helpers/styles/components/index.tsx"),f=o("./src/reddit/helpers/styles/mixins/index.tsx"),g=o("./src/reddit/helpers/styles/mixins/loading.ts"),h=o("./src/reddit/layout/row/Inline/index.tsx"),v=o("./src/reddit/models/Vote/index.ts"),y=o("./src/reddit/components/MiniCardPost/Placeholder/index.m.less"),x=o.n(y),O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},w=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),j=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 S=Object(m.w)(),C=Object(a.createStructuredSelector)({isFakeSubreddit:m.B}),I=Object(d.connect)(C),k=l.a.div.withConfig({componentId:"y700x7-0"})(["",";background: rgba(0, 0, 0, 0.15);height: 16px;margin: 0 14px 0 4px;width: 16px;"],g.c),P=l()(e=>{const t={interactive:!1,voteState:v.a.notVoted};return w("div",{className:e.className},void 0,r.a.createElement(u.d,t),w(k,{}),r.a.createElement(u.c,t))}).withConfig({componentId:"y700x7-1"})(["","align-items: center;flex-direction: row;"],f.y),N=l()(Object(b.a)()).withConfig({componentId:"y700x7-2"})(["",";",";"],g.b,g.c),_=l()(p.a).withConfig({componentId:"y700x7-3"})(["",";"],g.b);var T=l()(S(I(e=>{var t=e.className,o=e.showSubreddit,n=j(e,["className","showSubreddit"]);return w("div",{className:Object(i.a)(x.a.container,t)},void 0,r.a.createElement(N,O({className:x.a.thumbnail,gradientType:"posts"},n)),w("div",{className:x.a.content},void 0,w("div",{className:x.a.titleContainer},void 0,r.a.createElement(N,O({className:x.a.title,gradientType:"posts"},n)),r.a.createElement(N,O({className:x.a.title,gradientType:"posts"},n))),o&&w(h.a,{className:x.a.subreddit},void 0,r.a.createElement(_,O({className:x.a.subredditIcon,gradientType:"posts"},n,{isLoading:!1})),r.a.createElement(N,O({className:x.a.subredditName,gradientType:"posts"},n))),w(h.a,{},void 0,r.a.createElement(P,n),r.a.createElement(N,O({className:x.a.comments,gradientType:"posts"},n)),r.a.createElement(N,O({className:x.a.share,gradientType:"posts"},n)),r.a.createElement(N,O({className:x.a.ellipsis,gradientType:"posts"},n)))))}))).withConfig({componentId:"y700x7-4"})(["",";border-radius: 4px;cursor: pointer;"],f.n),L=o("./src/reddit/components/DiscoveryUnit/Layout/Posts/index.m.less"),M=o.n(L),A=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();t.a=(e=>A("div",{className:Object(i.a)(M.a.container,e.className)},void 0,A("div",{className:M.a.largePosts},void 0,A(T,{className:M.a.topPostLargePost,isLoading:!0,showSubreddit:e.showSubreddit}),A(T,{className:M.a.topPostLargePost,isLoading:!0,showSubreddit:e.showSubreddit}),A(T,{className:M.a.topPostLargePost,isLoading:!0,showSubreddit:e.showSubreddit}))))},"./src/reddit/components/DiscoveryUnit/Layout/Posts/index.m.less":function(e,t,o){e.exports={container:"_380AW2tV1AjseFZoaW2xp3",topPosts:"_3RDCFf4elKrhJHKKZkPPD",topPostsLargePostsContainer:"_1iE8_7IcegvYg_Wg3A0jTR",largePosts:"_2jBymLZmAms1MelhCFZsUI",topPostLargePosts:"_1B27sUe973sxluKyC6_HnP",topPost:"_3_Nr3saSmaO8BeqrN2u7Pb",largePost:"_21q6EU8IrGnKgnRi9Fcrko",topPostLargePost:"_3rjlIRqkC_nm_BoSlEQ8u-",smallPosts:"_1XdjckgSGhgpGEGUohL62w",smallPost:"_69IUkr5xucpVcbGP5l070"}},"./src/reddit/components/DiscoveryUnit/Layout/PostsCarousel/index.m.less":function(e,t,o){e.exports={topPostsLargePostsContainer:"blJHXrhp2aDTr_eU2819a",postsWrapper:"_31N1g4ul5_oWaf7McMDm4z",arrowIcon:"_3F9Z39fzFmmtRTyUcoORtW",arrow:"_3PrQgt3ZKPk7QhsYwrdYga",arrowLeft:"_1GoqoM-Z9VRJCHgekfYoZE",arrowRight:"SGDu37agzx7_Dwp8seKWa"}},"./src/reddit/components/DiscoveryUnit/Layout/PostsCarousel/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/@researchgate/react-intersection-observer/lib/es/index.js"),r=o("./node_modules/react/index.js"),i=o.n(r),d=o("./node_modules/react-motion/lib/react-motion.js"),a=o("./node_modules/react-redux/es/index.js"),c=o("./src/reddit/components/DiscoveryUnit/CarouselBase/index.tsx"),l=o("./src/reddit/helpers/overlay/index.ts"),p=o("./src/reddit/helpers/trackers/discoveryUnit.ts"),u=o("./bundled-modules/styled-components/styled-components.min.js"),m=o.n(u),b=o("./src/lib/isUrl/index.ts"),f=o("./src/lib/prettyPrintNumber/index.ts"),g=o("./src/app/strings/index.ts"),h=o("./src/reddit/components/DiscoveryUnit/Layout/Posts/LargePost/index.tsx"),v=o("./node_modules/react-router-dom/es/index.js"),y=o("./src/lib/classNames/index.ts"),x=o("./src/lib/timeAgo/index.ts"),O=o("./src/reddit/constants/posts.ts"),w=o("./src/reddit/components/Translated/index.tsx"),j=o("./src/reddit/components/Widgets/CommunityList/helpers.ts"),S=o("./src/reddit/layout/row/Inline/index.tsx"),C=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),I=o("./src/reddit/components/DiscoveryUnit/PostAuthor/index.m.less"),k=o.n(I),P=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const N=m.a.div.withConfig({componentId:"wqqzd-0"})(["."," {color: ",";}."," {color: ",";}"],k.a.authorName,e=>Object(C.c)(e).metaText,k.a.description,e=>Object(C.c)(e).metaText);var _=e=>{const t=O.a.PROFILE,o=Object(j.a)(e.author,t);return P(N,{className:Object(y.a)(k.a.container,e.className)},void 0,P(S.a,{className:k.a.layout},void 0,P("div",{className:k.a.textContainer},void 0,P("span",{className:k.a.description},void 0,P(w.a,{msgId:"posts.postedBy"})),P(v.a,{className:k.a.authorName,to:o},void 0,Object(j.b)(e.author,t)),P("span",{className:k.a.timestamp},void 0,Object(x.b)(e.language,e.created/1e3)))))},T=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),L=o("./src/reddit/icons/svgs/CircledPlanet/index.tsx"),M=o("./src/reddit/layout/threeCol/ExpandCenter/index.tsx"),A=o("./src/reddit/components/DiscoveryUnit/PostCommunity/index.m.less"),E=o.n(A),B=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const F=m.a.div.withConfig({componentId:"gnl22b-0"})(["."," {background: ",";fill: ",";}."," {color: ",";}.",",.",",."," {color: ",";}."," {background-color: ",";}."," {color: ",";}"],E.a.planetIcon,e=>Object(C.c)(e).active,e=>Object(C.c)(e).lightText,E.a.name,e=>Object(C.c)(e).bodyText,E.a.description,E.a.subscribers,E.a.descriptionLine,e=>Object(C.c)(e).metaText,E.a.subscribeButton,e=>Object(C.c)(e).field,E.a.visitCommunity,e=>Object(C.c)(e).linkText),R=m.a.span.withConfig({componentId:"gnl22b-1"})(["",""],T.metadataFont);var $=e=>{const t=Object(j.a)(e.name,e.type);return B(F,{className:Object(y.a)(E.a.container,e.className)},void 0,B(M.a,{className:E.a.layout},void 0,B("div",{className:E.a.iconContainer},void 0,e.iconUrl?B("img",{className:E.a.icon,src:e.iconUrl}):B(L.a,{className:E.a.planetIcon,"data-redditstyle":!0})),B("div",{className:E.a.textContainer},void 0,B(v.a,{className:E.a.name,to:t},void 0,Object(j.b)(e.displayText||e.name,e.type)),B("span",{className:E.a.separator},void 0,"•"),B(R,{className:E.a.timestamp},void 0,Object(x.b)(e.language,e.created/1e3)))))},D=o("./src/reddit/components/JSAPIContainers/index.tsx"),U=o("./src/reddit/components/Media/index.tsx"),W=o("./src/reddit/components/MiniCardPost/index.tsx"),H=o("./src/reddit/components/MiniCardPost/MetaLine/index.tsx"),V=o("./src/reddit/components/MiniCardPost/Thumbnail/index.tsx"),z=o("./src/reddit/components/PostBackgroundWrapper/index.tsx"),q=o("./src/reddit/components/PostContainer/index.tsx"),G=o("./src/reddit/components/PostTitle/index.tsx"),K=o("./src/reddit/helpers/canPreviewSelfText/index.ts"),J=o("./src/reddit/models/Media/index.ts"),X=o("./src/reddit/models/Subreddit/index.ts"),Z=o("./src/reddit/models/Widgets/index.ts"),Q=o("./src/reddit/components/MiniCardPost/index.m.less"),Y=o.n(Q),ee=o("./src/reddit/components/Thumbnail/index.m.less"),te=o.n(ee),oe=o("./src/reddit/components/DiscoveryUnit/Layout/Posts/TopPostsLargePost/index.m.less"),ne=o.n(oe),se=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},re=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const ie=m.a.span.withConfig({componentId:"s7w73iq-0"})(["","color: ",";& ~ &::before {content: '·';font-weight: bold;margin: 0 3px;}"],T.metadataFont,e=>Object(C.c)(e).actionIcon);const de="\n border-radius: 0;\n height: 180px;\n min-width: 324px;\n width: auto;\n",ae=m()(class extends i.a.Component{render(){var e=this.props;const t=e.autoplayPref,o=e.availableWidth,n=e.className,s=e.crosspostRoot,r=e.crosspostSubredditOrProfile,d=e.eventFactory,a=e.flairStyleTemplate,c=e.forceLoadMedia,l=e.hideNSFWPref,p=e.language,u=e.onClickPost,m=e.post,h=e.scrollerItemRef,v=e.shouldPause;var y=e.showAuthorBlock;const x=void 0!==y&&y;var O=e.showMetaLine;const w=void 0===O||O;var j=e.showSubscribeBlock;const S=void 0!==j&&j,C=e.subredditOrProfile,I=(s||m).media,k=!I&&!!m.source&&Object(b.a)(m.source.url);let P=I&&re(U.a,{autoplayPref:t,availableWidth:o,className:Y.a.media,forceAspectRatio:J.c,isListing:!0,isMiniCard:!0,isNotCardView:!0,post:s||m,scrollerItemRef:h,shouldPause:v,shouldLoad:c,showCentered:!1,showFull:!1}),N=!1;I&&P&&(I.type!==J.m.RTJSON&&I.type!==J.m.TEXT?(P=re("div",{className:ne.a.mediaWrapper},void 0,P),N=!0):I&&I.content&&Object(K.a)(m)&&(P=re("div",{className:ne.a.textWrapper},void 0,P)));const T=!N&&!k;let L;return C&&(L=Object(X.c)(C)?Object(Z.g)(C):Object(Z.h)(C)),re(q.a,{className:n,post:m,onClick:u,eventFactory:d,style:this.props.style},void 0,re(z.b,{className:Y.a.backgroundWrapper,flairStyleTemplate:a},void 0,re("div",{className:Y.a.innerContainer},void 0,S&&C&&i.a.createElement($,se({created:m.created,language:p},L)),x&&C&&i.a.createElement(_,se({created:m.created,language:p,author:m.author},L)),re(G.c,{className:T?ne.a.postTitle:ne.a.postTitleCompact,disableFlair:!0,hideSourceLink:!0,post:m,size:G.b.Large,titleColor:a&&a.postTitleColor}),w&&C&&re(H.a,{className:ne.a.metaLine,crosspostSubredditOrProfile:r,hideNSFWPref:l,language:p,post:m,subredditOrProfile:C}),(N||k)&&re("div",{className:ne.a.flexSpacer}),k&&re("div",{className:ne.a.mediaWrapper},void 0,re(V.a,{className:ne.a.thumbnail,post:m,templatePlaceholderImage:a&&a.postPlaceholderImage})),P,re("div",{className:ne.a.metaWrapper},void 0,re(ie,{className:ne.a.meta},void 0,Object(g.d)(p,"posts.points.noun",m.score,{count:Object(f.b)(m.score)})),re(ie,{},void 0,Object(g.d)(p,"posts.comments.noun",m.numComments,{count:Object(f.b)(m.numComments)}))))),re(D.d,{postId:m.id}))}}).withConfig({componentId:"s7w73iq-1"})(["",";",";border-color: ",";flex: unset;min-width: 324px;margin-right: 12px;max-width: 324px;."," {white-space: initial;}."," {."," {",";}."," {",";background-color: ",";background-size: cover;min-width: 300px;}}"],W.d,h.b,e=>Object(C.c)(e).line,Y.a.innerContainer,ne.a.thumbnail,te.a.container,de,te.a.thumbnail,de,e=>Object(C.c)(e).line);var ce=Object(W.b)(ae),le=o("./src/reddit/components/DiscoveryUnit/Layout/Posts/TopPostsPlaceholder.tsx"),pe=o("./src/reddit/components/DiscoveryUnit/Layout/PostsCarousel/index.m.less"),ue=o.n(pe),me=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),be=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 fe=338,ge={stiffness:210,damping:30},he=e=>{var t=e.root,o=e.handleVisibilityChange,n=be(e,["root","handleVisibilityChange"]);return me(s.a,{root:t,threshold:.99,rootMargin:"0px 0px 0px 0px",onChange:o},void 0,i.a.createElement(ce,n))},ve=Object(a.connect)(null,(e,{discoveryUnit:t,searchDiscoveryUnit:o})=>({openOverlay:t=>e(Object(l.a)(t.permalink)),trackPostClick:(n,s)=>e((e,r)=>t?p.f(r(),t,n):o?p.f(r(),o,n,s):null),trackPostSubredditClick:n=>e((e,s)=>t?p.g(s(),t,n):o?p.g(s(),o,n):null)}));t.a=ve(class extends c.c{constructor(e){super(e),this.state={scrollIndex:0,viewableItems:{},visibleItemsCount:null},this.id="PostsCarousel"}componentDidMount(){super.componentDidMount()}componentDidUpdate(e,t){this.state!==t&&this.trackPostsViewed(this.props)}componentWillReceiveProps(e){this.props.items!==e.items&&this.trackPostsViewed(e)}trackPostsViewed(e){if(e.isLoading||0===e.items.length)return;const t=Math.min(this.state.scrollIndex+this.getVisibleItemsCount(),this.props.items.length);e.items.slice(this.state.scrollIndex,t).forEach(t=>this.props.searchDiscoveryUnit?e.onPostView(this.props.searchDiscoveryUnit,t,e.searchOptions):this.props.discoveryUnit?e.onPostView(this.props.discoveryUnit,t):null)}onClickNext(){super.onClickNext(),this.trackPostsViewed(this.props)}onClickPrev(){super.onClickPrev(),this.trackPostsViewed(this.props)}render(){if(this.props.isLoading||0===this.props.items.length)return me(le.a,{shouldUseSmallCardLayout:!1,showSubreddit:this.props.showSubreddit});const e=this.props.searchDiscoveryUnit?p.p():p.e();var t=this.state;const o=t.scrollIndex,n=t.visibleItemsCount,s=this.getMaxScrollIndex(n),r=this.getAdjustment(o,s,n,fe),a=this.getMarginLeft(o,fe,r),l=this.itemsFitInContainer(this.container,fe,this.props.items),u=this.props.singleSubredditMode;return i.a.createElement("div",{className:ue.a.postsWrapper,id:this.id,ref:this.setContainerRef},me(d.Motion,{defaultStyle:{marginLeft:0},style:{marginLeft:Object(d.spring)(a,ge)}},void 0,t=>me(i.a.Fragment,{},void 0,this.props.items.map((o,n)=>me(he,{className:ue.a.largePost,eventFactory:e,forceLoadMedia:!0,onClickPost:(e,t)=>{this.props.openOverlay(t),this.props.trackPostClick(t.id,this.props.searchOptions)},showAuthorBlock:!!u,showMetaLine:!1,showSubscribeBlock:!u,style:0===n?t:void 0,handleVisibilityChange:this.makeVisibilityChangeHandler(n),root:this.id,postId:o},o)))),0!==o&&me(c.a,{className:ue.a.arrowLeft,onClick:this.onClickPrev}),!l&&(null==s||o<s)&&me(c.b,{className:ue.a.arrowRight,onClick:this.onClickNext}))}})},"./src/reddit/components/DiscoveryUnit/Layout/index.m.less":function(e,t,o){e.exports={container:"_3lILa1kmfAauhn7UzHzjLJ",heroContainer:"_2xvhS-vDti9NRsRHMeqFmX",smallContainer:"_11h2c3EwgJFkGto36dozz7",oldContainer:"_24S-GP9dX3BODxJwehVvRx",header:"_3UiOKr6dA-zB_4O4l14Icx",bodyHidePadding:"M4vA4bj3WWpggduxPTpBA",body:"_1l2RfnlEvwmRPfDwe46NRR"}},"./src/reddit/components/DiscoveryUnit/Layout/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return p});o("./node_modules/react/index.js");var n,s=o("./bundled-modules/styled-components/styled-components.min.js"),r=o("./src/lib/classNames/index.ts"),i=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),d=o("./src/reddit/selectors/experiments/exploreV2.ts"),a=o("./src/reddit/components/DiscoveryUnit/Layout/index.m.less"),c=o.n(a),l=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const p=Object(s.css)([".",",."," {background-color: ",";}.",",."," {border: 1px solid ",";}"],c.a.heroContainer,c.a.smallContainer,e=>Object(i.c)(e).body,c.a.oldContainer,c.a.heroContainer,e=>Object(i.c)(e).postLine);t.a=(e=>l("div",{className:Object(r.a)(Object(d.c)(e.exploreV2Variant)?c.a.oldContainer:e.exploreV2Variant?c.a.smallContainer:c.a.heroContainer,e.className)},void 0,l("div",{className:c.a.header},void 0,e.header),l("div",{className:e.hidePadding?c.a.bodyHidePadding:c.a.body},void 0,e.children)))},"./src/reddit/components/DiscoveryUnit/PostAuthor/index.m.less":function(e,t,o){e.exports={layout:"_2REdLXF0mpSj8m3oeNFnQI",textContainer:"_25evCORf3YPgobOP7A0KBH",timestamp:"_12ZMpGOwwzQ5LQDmj2sycd",authorName:"_2cI137mSn1p19S7GzCn4aj",description:"_3WMX64jyXL-FNQ0kNYl267"}},"./src/reddit/components/DiscoveryUnit/PostCommunity/index.m.less":function(e,t,o){e.exports={layout:"_3w4KSJJGE7TS9xZVlkChNX",iconContainer:"_8eVKEiEgNTHopUF8DqZhu",separator:"_2dPygXwKlm02lGuxfWM6hJ",subscribeIcon:"_3C-lBXRQY9_CCGVZfQJODL",subscribeButton:"_26ierA6Rodr6VMGHkKwTPE",textContainer:"ZseEDtQar85FcCdC4sPE7",timestamp:"_3AdY0o-9CnsxnxO_VDj8Zh",icon:"_3YX9w39yU25-vbz-5gk236",planetIcon:"f6zRrQi4zqlZ4aoPrzGIN",name:"lyBM6dpYVMHQASC9SYGiO",subscribers:"uPyUGlwdDzPsq3i6O_w_G",right:"_9gZLJghZHrkIQlPvwZYDE",visitCommunity:"_1BAg1jhNwLExU7vX1TAvxR",description:"_3PWARIYmlsbZulr9sGQAVC",descriptionLine:"_2-CpYCxMGuxCYjr8tTgDTR"}},"./src/reddit/components/DiscoveryUnit/SubredditTopContentDiscoveryUnit/index.m.less":function(e,t,o){e.exports={title:"_1sf7GjDaEBhme5ClA39yBo",communityBackground:"_1pX_BOlTi53SAMVSDu_OrT",seeAllPosts:"_2zf-tJ6dr3umn1gcuEpDk8",communityDescriptionPlaceholder:"_1RYE13EcDNn1A1X1-h42f_",arrowPlaceholder:"_1q9k3G4VKHdAOsl64CbSge",headerLink:"_2HnhAFvq_dYxe2LgLqRXfK"}},"./src/reddit/components/EmptySubreddit.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),a=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(a),l=o("./src/app/strings/index.ts"),p=o("./src/config.ts"),u=o("./src/lib/constants/index.ts"),m=o("./src/lib/isFakeSubreddit/index.ts"),b=o("./src/reddit/constants/postLayout.ts"),f=o("./src/reddit/constants/screenWidths.ts"),g=o("./src/reddit/controls/Button/index.tsx"),h=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),v=o("./src/reddit/selectors/user.ts"),y=o("./src/reddit/components/PostList/Placeholder.tsx"),x=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),O=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const w="\n margin: 16px;\n",j=c.a.div.withConfig({componentId:"rqdrsd-0"})(["","","color: ",";"],w,h.titleFontH3,e=>Object(x.c)(e).bodyText),S=c.a.div.withConfig({componentId:"rqdrsd-1"})(["","","color: ",";"],w,h.titleFontH5,e=>Object(x.c)(e).bodyText),C=c.a.div.withConfig({componentId:"rqdrsd-2"})(["position: relative;width: 100%;height: 100%;"]),I=c.a.div.withConfig({componentId:"rqdrsd-3"})(["width: 80%;margin: 80px auto;"]),k=c()(y.a).withConfig({componentId:"rqdrsd-4"})(["position: absolute;left: 0;width: 100%;top: 0;background: none;opacity: 0.4;"]),P=c()(g.f).withConfig({componentId:"rqdrsd-5"})(["","display: inline-block;@media (max-width: ","px) {align-self: stretch;}"],w,f.e-1),N=c.a.img.withConfig({componentId:"rqdrsd-6"})(["height: 147px;width: 140px;"]),_=c.a.div.withConfig({componentId:"rqdrsd-7"})(["position: relative;display: flex;flex-direction: column;justify-content: center;align-items: center;height: 100%;min-height: ","px;text-align: center;@media (max-width: ","px) {align-items: left;min-height: 0;}"],380,f.e-1),T=Object(d.createStructuredSelector)({language:v.M}),L=Object(i.connect)(T),M=({language:e,listingName:t,sort:o})=>O(I,{},void 0,O(j,{},void 0,o===u.X.RISING&&Object(l.a)(e,"listings.emptySubredditRising.primary"),o!==u.X.RISING&&Object(l.a)(e,"listings.emptySubreddit.primary")),t&&!Object(m.a)(t)&&r.a.Children.toArray([O(S,{},void 0,o===u.X.RISING&&Object(l.a)(e,"listings.emptySubredditRising.secondary"),o!==u.X.RISING&&Object(l.a)(e,"listings.emptySubreddit.secondary")),O(P,{to:`/r/${t}/submit`},void 0,Object(l.a)(e,"listings.emptySubreddit.callToAction"))])),A=e=>O(I,{},void 0,O(N,{src:`${p.a.assetPath}/img/snoo_discovery@1x.png`}),O(j,{},void 0,Object(l.a)(e.language,"listings.emptyHomepage.primary")),O(P,{to:"/r/popular"},void 0,Object(l.a)(e.language,"listings.emptyHomepage.callToAction")));t.a=c()(L(e=>O(_,{},void 0,O(k,{isLoading:!1,layout:b.f.Classic}),O(C,{},void 0,e.subreddit?r.a.createElement(M,e):r.a.createElement(A,e))))).withConfig({componentId:"rqdrsd-8"})(["position: relative;display: flex;flex-direction: column;justify-content: center;align-items: center;height: 100%;min-height: ","px;text-align: center;@media (max-width: ","px) {align-items: left;min-height: 0;}"],380,f.e-1)},"./src/reddit/components/ExpandoButton/index.m.less":function(e,t,o){e.exports={outer:"RvLtAcdRtbOQbhFB7MD_T",icon:"saNpcHve-34zjaa0cbIxW",hideOnHover:"_25HJpaEPiVNq6Ss3Ad7dp9",showOnHover:"_2S05CzViTnl3I2ekCABqFo",outboundLinkIcon:"_1zB4YvOwHPxdPEXG2CYhKB"}},"./src/reddit/components/ExpandoButton/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/react-router-dom/es/index.js"),a=o("./node_modules/reselect/lib/index.js"),c=o("./bundled-modules/styled-components/styled-components.min.js"),l=o.n(c),p=o("./src/app/strings/index.ts"),u=o("./src/lib/classNames/index.ts"),m=o("./src/lib/permalinkToOverlayLocation/index.ts"),b=o("./src/reddit/actions/post.ts"),f=o("./src/reddit/helpers/postHasSelfText/index.ts"),g=o("./src/reddit/helpers/styles/mixins/index.tsx"),h=o("./src/reddit/icons/fonts/Expandos/Arrows/Collapse/index.tsx"),v=o("./src/reddit/icons/fonts/Expandos/Arrows/Expand/index.tsx"),y=o("./src/reddit/icons/fonts/helpers.tsx"),x=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});var O=l()(e=>x("i",{className:`${Object(y.b)("expandoMediaLightbox")} ${e.className}`,onClick:e.onClick})).withConfig({componentId:"s14hmdpf-0"})(["display: inline-block;vertical-align: middle;font-size: 14px;font-weight: 400;line-height: 14px;"]),w=o("./src/reddit/icons/fonts/Expandos/Media/Video/index.tsx"),j=o("./src/reddit/icons/fonts/Gif/index.tsx"),S=o("./src/reddit/icons/fonts/Link/index.tsx"),C=o("./src/reddit/icons/fonts/OutboundLink/index.tsx"),I=o("./src/reddit/icons/fonts/Photos/index.tsx"),k=o("./src/reddit/icons/fonts/Text/index.tsx"),P=o("./src/reddit/models/Media/index.ts"),N=o("./src/reddit/selectors/user.ts"),_=o("./src/reddit/components/ExpandoButton/index.m.less"),T=o.n(_),L=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const M=l.a.button.withConfig({componentId:"deu748-0"})(["",""],g.p),A=l.a.a.withConfig({componentId:"deu748-1"})(["",""],g.p),E=l()(d.a).withConfig({componentId:"deu748-2"})(["",""],g.p),B=Object(a.createStructuredSelector)({language:N.M}),F=Object(i.connect)(B,(e,t)=>({toggle:()=>e(Object(b.o)({postId:t.post.id}))})),R=e=>{const t=Object(u.a)(T.a.icon,T.a.hideOnHover);switch(e){case P.m.GIFVIDEO:return L(j.a,{className:t});case P.m.IMAGE:return L(I.a,{className:t});case P.m.TEXT:case P.m.RTJSON:return L(k.a,{className:t});case P.m.VIDEO:return L(w.a,{className:t});case P.m.EMBED:default:return L(S.a,{className:t})}};t.a=F(e=>{const t=e.className,o=e.crosspost,n=e.isExpanded,s=e.language,i=e.post,d=e.toggle,a=e.useMediaIcons,c=o||i;return c.media&&("rtjson"!==c.media.type&&"text"!==c.media.type||Object(f.a)(c))?L(M,{"aria-expanded":n,"aria-haspopup":!0,"aria-label":Object(p.a)(s,"posts.expando"),className:Object(u.a)(t,T.a.outer),"data-click-id":n?"expando_close":"expando_open",onClick:d},void 0,n?L(h.a,{className:T.a.icon}):a?L(r.a.Fragment,{},void 0,R(c.media&&c.media.type),L(v.a,{className:Object(u.a)(T.a.icon,T.a.showOnHover)})):L(v.a,{className:T.a.icon})):c.source&&c.source.url?L(A,{"aria-label":Object(p.a)(s,"posts.expandoLink"),className:Object(u.a)(t,T.a.outer),"data-click-id":"expando_open",href:c.source.url,target:"_blank"},void 0,L(C.a,{className:Object(u.a)(T.a.icon,T.a.outboundLinkIcon)})):L(E,{"aria-label":Object(p.a)(s,"posts.expandoLightbox"),className:Object(u.a)(t,T.a.outer),"data-click-id":"expando_open",to:Object(m.a)(c.permalink),rel:"nofollow"},void 0,L(O,{className:T.a.icon}))})},"./src/reddit/components/FollowButton/index.m.less":function(e,t,o){e.exports={button:"_2nvX_gR9FhSQ1lY6b1bWFW",layout:"_3lvJB_SaoWUqdHyOufnmZ6",icon:"Z6QJrMufwPMvNNas6O93V",iconFollowed:"_2i0YV5wtThaZqsLsq3DBCh"}},"./src/reddit/components/FrontpageSidebar/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),a=o("./src/app/strings/index.ts"),c=o("./src/reddit/components/IdCard/index.tsx"),l=o("./node_modules/react-router-redux/es/index.js"),p=o("./bundled-modules/styled-components/styled-components.min.js"),u=o.n(p),m=o("./src/reddit/components/SidebarSpacer/index.tsx"),b=o("./src/reddit/components/Widgets/ThemedWidget/index.tsx"),f=o("./src/reddit/controls/Button/index.tsx"),g=o("./src/reddit/icons/svgs/Premium/index.tsx"),h=o("./src/reddit/components/PremiumCTA/index.m.less"),v=o.n(h),y=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const x=u()(f.c).withConfig({componentId:"mwgtia-0"})(["padding: 0;"]);var O=Object(i.connect)(void 0,e=>({onClickPremium:()=>e(Object(l.b)("/premium"))}))(class extends r.a.Component{render(){var e=this.props;const t=e.className,o=e.language,n=e.onClickPremium;return y(m.a,{},void 0,y(b.a,{className:t,contentOnly:!0},void 0,y("div",{className:v.a.wrapper},void 0,y(g.a,{className:v.a.icon}),y("div",{className:v.a.content},void 0,y("div",{className:v.a.title},void 0,Object(a.a)(o,"gold.premiumCTA.title")),y("div",{className:v.a.description},void 0,Object(a.a)(o,"gold.premiumCTA.description"))),y(x,{className:v.a.cta,onClick:n},void 0,Object(a.a)(o,"gold.premiumCTA.cta")))))}}),w=o("./src/reddit/components/SidebarAd/ListingPageSidebarAd.tsx"),j=o("./src/reddit/components/SidebarContainer/index.tsx"),S=o("./src/reddit/components/SidebarStickyBottom/index.tsx"),C=o("./src/reddit/actions/post.ts"),I=o("./src/reddit/components/MiniPost/index.tsx"),k=o("./src/reddit/components/Widgets/Base/index.tsx"),P=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var N=class extends r.a.Component{render(){return P("div",{},void 0,P(k.a,{},void 0,this.props.headerText),this.props.posts.map(e=>P(I.b,{postId:e.id},e.id)))}},_=o("./src/reddit/helpers/overlay/index.ts"),T=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),L=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),M=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const A=Object(i.connect)(null,(e,t)=>({openLightbox:t=>()=>e(Object(_.a)(t.permalink)),clearLinks:()=>e(Object(C.l)())})),E=u.a.button.withConfig({componentId:"s1ux9zf5-0"})(["","color: ",";text-align: right;width: 100%;"],T.metadataFont,e=>Object(L.c)(e).actionIcon);var B=A(class extends r.a.Component{render(){return M(k.c,{},void 0,M(N,{className:this.props.className,headerText:Object(a.a)(this.props.language,"sidebar.recentPosts"),language:this.props.language,posts:this.props.posts}),M(E,{onClick:this.props.clearLinks},void 0,Object(a.a)(this.props.language,"posts.clear")))}}),F=o("./src/reddit/selectors/posts.ts"),R=o("./src/reddit/selectors/user.ts"),$=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const D=Object(d.createStructuredSelector)({language:R.M,recentPosts:F.L});var U=Object(i.connect)(D,(e,t)=>({openLightbox:t=>()=>e(Object(_.a)(t.permalink))}))(({className:e,recentPosts:t,language:o})=>t&&t.length?$(m.a,{},void 0,$(B,{className:e,language:o,headerText:Object(a.a)(o,"sidebar.recentPosts"),posts:t})):null),W=o("./src/reddit/components/Widgets/Aggregate/Subreddits/index.tsx"),H=o("./src/reddit/constants/tracking.ts"),V=o("./src/reddit/selectors/telemetry.ts"),z=o("./src/reddit/selectors/widgets.ts"),q=o("./src/telemetry/models/Subreddit.ts");const G=e=>t=>o=>Object.assign({},V.defaults(o),Object(z.b)(o,e),{source:"trending_community_card",action:H.b.CLICK,noun:Object(q.getSubscribeEventNoun)(e.type,t)}),K=e=>t=>Object.assign({},V.defaults(t),Object(z.b)(t,e),{source:"trending_community_card",action:H.b.CLICK,noun:"community"});var J=o("./src/reddit/selectors/subreddit.ts"),X=o("./src/lib/constants/index.ts"),Z=o("./src/reddit/helpers/createBannerProperties/index.ts"),Q=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Y=Object(d.createStructuredSelector)({trendingSubredditIds:J.O,currentUser:R.j,language:R.M}),ee=e=>!(!e.trendingSubredditIds.length||e.currentUser&&!e.currentUser.showTrending),te=e=>!(!e.currentUser||!e.currentUser.showRecentPosts),oe=e=>!(e.currentUser&&(!e.currentUser||e.currentUser.isGold));t.a=Object(i.connect)(Y)(class extends r.a.Component{constructor(e){super(e),this.state={isMounted:!1}}componentDidMount(){this.setState({isMounted:!0})}render(){let e=0;var t=this.props;const o=t.className,n=t.language,s=t.listingKey,r=t.listingName,i=t.trendingSubredditIds;return Q(j.a,{className:o},void 0,Q(c.d,{listingName:r}),Q(w.a,{placement:X.d.ABOVE_THE_FOLD,listingName:r,listingKey:s,position:Z.a.FIRST,sizes:X.j,placementIndex:e++}),oe(this.props)&&Q(O,{language:n}),ee(this.props)&&Q(m.a,{},void 0,Q(W.b,{getClickEventFactory:K,getSubscribeEventFactoryHandler:G,subredditIds:i,title:Object(a.a)(n,"sidebar.trending.title")})),te(this.props)&&Q(U,{}),Q(S.a,{adComponent:Q(w.a,{placement:X.d.BELOW_THE_FOLD,listingName:r,listingKey:s,position:Z.a.BOTTOM,sizes:X.p,placementIndex:e++})}))}})},"./src/reddit/components/Governance/CommunityCard/CommunityTokens/Risk/index.m.less":function(e,t,o){e.exports={alertIcon:"_281dcYAIoQvZtLs7iI7QLT",risk:"_1r7M4su-D_hCOMd066XY3J",riskBody:"_12gDkO_ygs4ikCeyu5bcVg",riskTitle:"_3iYb38SYPwjAd1VG859AKs"}},"./src/reddit/components/Governance/CommunityCard/CommunityTokens/index.m.less":function(e,t,o){e.exports={overflowingText:"_3s4m8dsZEYcHZ4ojNFUV0R",cell:"_1-v1Zgj9IOmc-oaS_dfHfI",cellBottomLine:"_1YrPtUZyIgZmt7BoC3IOjC",cellContainer:"_3y3jYnCjkWtjpibBnc9e3l",cellTopLine:"-pS2f0b04dtavABCVdrie",explanation:"_1n5fyOsQxmVlxXd1xuw6fH",fvfo:"_1bSVC3Q8TRdxwy7IGqCj9f",title:"_2Q8Se5aIjJDpE5JnGoGI5R",token:"_2tQrDQoIjV3V6CMgrLYXU3",tokenCell:"_2rBuuOwPxb-X6wEPWDBmYH",sendButton:"_3D1PJ7suYE-Ph7W5jTZJ5k"}},"./src/reddit/components/Governance/CommunityCard/LatestProposals/index.m.less":function(e,t,o){e.exports={container:"_3WnHen22bLKwTkOL3W6F_D",link:"_3LjXe6j5_bQ3U8GZLY0HYO",fvfo:"NC_oxnf-UtDCPI7oyQnqx",showAll:"eRbX9WCebKIuLXdJIwNjK",title:"_3il8HJMlHzKppQleJjuboQ"}},"./src/reddit/components/Governance/CommunityCard/SubredditValue/index.m.less":function(e,t,o){e.exports={overflowingText:"jsNcHmrnNEHR43pSqktT_",arrowUp:"_3iBuIXhlae1tHvSYZBq-0c",arrowDown:"_1HKTC4jl1TGS1wYqr-Wf28",explanation:"_3PBhQhus1c5B4SLOIyHP3z",fvfo:"_33dGYZAzX3HXXD1cLtLVuv",title:"_293Q3OQ9umYHGIfr0X1AxK",valueContainer:"_28-EJ5nvhRIx5LBgLx4F1i",valueChange:"CRJ7CAZUtszmWPxUTU8qP"}},"./src/reddit/components/Governance/CommunityCard/index.m.less":function(e,t,o){e.exports={loading:"Jfh68QhZqpLgByZUbKyD1",section:"_3o2O8sLNM51xpdzuDH-ocD"}},"./src/reddit/components/Governance/CommunityCard/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o("./node_modules/react-redux/es/index.js"),i=o("./node_modules/reselect/lib/index.js"),d=o("./bundled-modules/styled-components/styled-components.min.js"),a=o("./src/app/strings/index.ts"),c=o("./src/reddit/components/Widgets/ThemedWidget/index.tsx"),l=o("./src/reddit/helpers/styles/smartTextColor.ts"),p=o("./src/reddit/models/NewStructuredStyles/index.ts"),u=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),m=o("./src/reddit/selectors/gov.ts"),b=o("./src/lib/constants/index.ts"),f=o("./src/lib/prettyPrintNumber/index.ts"),g=o("./src/reddit/actions/governance/index.ts"),h=o("./src/reddit/components/Governance/Token/index.tsx"),v=o("./src/reddit/controls/Button/index.tsx");!function(e){e.Initial="initial_distribution",e.Mod="moderator_election"}(n||(n={}));var y,x=o("./src/reddit/icons/svgs/QuarantineWarning/index.tsx"),O=o("./src/reddit/components/Governance/CommunityCard/CommunityTokens/Risk/index.m.less"),w=o.n(O),j=(y="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var s=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&s)for(var i in s)void 0===t[i]&&(t[i]=s[i]);else t||(t=s||{});if(1===r)t.children=n;else if(r>1){for(var d=Array(r),a=0;a<r;a++)d[a]=arguments[a+3];t.children=d}return{$$typeof:y,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const S=Object(d.css)(["."," {color: ",";}"],w.a.risk,e=>Object(l.a)(Object(u.c)(e).widgetColors.sidebarWidgetBackgroundColor));function C(e){return j("div",{className:w.a.risk},void 0,j("div",{className:w.a.riskTitle},void 0,j(x.a,{className:w.a.alertIcon}),e.title),j("div",{className:w.a.riskBody},void 0,e.body))}var I=o("./src/reddit/components/Governance/CommunityCard/CommunityTokens/index.m.less"),k=o.n(I),P=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const N=Object(d.css)([".",",."," {color: ",";}."," {border-color: ",";}",""],k.a.cell,k.a.explanation,e=>Object(l.a)(Object(u.c)(e).widgetColors.sidebarWidgetBackgroundColor),k.a.cell,e=>Object(l.a)(Object(u.c)(e).widgetColors.sidebarWidgetBackgroundColor,p.a.line,p.b.line),S);function _(e,t){return P("div",{className:k.a.cell},void 0,P("div",{className:k.a.cellTopLine},void 0,e),P("div",{className:k.a.cellBottomLine},void 0,t))}const T=Object(i.createStructuredSelector)({tokenName:m.i,language:e=>e.user.language});var L=Object(r.connect)(T,e=>({onOpenTransferModal:()=>e(Object(g.h)())}))(function(e){const t=e.className,o=e.distribution,s=e.language,r=e.onOpenTransferModal,i=e.subredditId,d=e.tokenName,c=e.wallet,l=c&&c.inactive&&function(e,t,o){const s=e.actionScheduledAt-Date.now(),r=Math.max(1,Math.floor(s/b.y)),i=1!==r?"gov.pointsDecay.inactive.time.plural":"gov.pointsDecay.inactive.time.singular",d=Object(a.a)(t,i,{numDays:r});switch(e.reason){case n.Initial:return{title:Object(a.a)(t,"gov.pointsDecay.inactive.title",{tokenName:o}),body:Object(a.a)(t,"gov.pointsDecay.inactive.body",{time:d,tokenName:o})};case n.Mod:return{title:Object(a.a)(t,"gov.pointsDecay.election.title"),body:Object(a.a)(t,"gov.pointsDecay.election.body",{time:d,tokenName:o})}}}(c.inactive,s,d);return P("div",{className:t},void 0,P("div",{className:k.a.title},void 0,d),P("div",{className:k.a.cellContainer},void 0,c&&_(P("div",{className:k.a.tokenCell},void 0,P(h.a,{className:k.a.token,subredditId:i}),Object(f.a)(c.amount)),Object(a.a)(s,"sidebar.gov.yourTokens",{tokenName:d})),o&&_(Object(f.a)(o.totalAvailable),Object(a.a)(s,"sidebar.gov.tokensIssued"))),l&&P(C,{body:l.body,title:l.title}),P("div",{className:k.a.explanation},void 0,Object(a.a)(s,"sidebar.gov.tokenExplanation",{tokenName:d})),c&&P(v.g,{className:k.a.sendButton,onClick:r},void 0,Object(a.a)(s,"gov.sendCta")))}),M=o("./node_modules/react-router-dom/es/index.js"),A=o("./src/lib/classNames/index.ts"),E=o("./src/lib/permalinkToOverlayLocation/index.ts"),B=o("./src/reddit/actions/subreddit.ts"),F=o("./src/reddit/contexts/PageLayer/index.tsx"),R=o("./src/reddit/components/Governance/CommunityCard/LatestProposals/index.m.less"),$=o.n(R),D=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const U=Object(d.css)([".",", ."," {color: ",";}."," {color: ",";}"],$.a.showAll,$.a.title,e=>Object(l.a)(Object(u.c)(e).widgetColors.sidebarWidgetBackgroundColor),$.a.link,e=>Object(u.c)(e).linkText);const W=Object(i.createStructuredSelector)({language:e=>e.user.language,proposals:(e,t)=>Object.keys(e.polls.models).map(t=>e.polls.models[t]).filter(e=>e.subredditId===t.subredditId).sort((e,t)=>e.createdAt>t.createdAt?-1:e.createdAt<t.createdAt?1:0).map(t=>e.posts.models[t.postId]).filter(Boolean).slice(0,5)});var H=Object(F.w)()(Object(r.connect)(W,(e,t)=>({onFilterProposals:()=>e(Object(B.p)({subredditId:t.subredditId,forceState:!0}))}))(function(e){return Object(F.J)(e.pageLayer)&&e.proposals.length?D("div",{className:Object(A.a)(e.className,$.a.container)},void 0,D("div",{className:$.a.title},void 0,Object(a.a)(e.language,"sidebar.gov.latestPollsTitle")),e.proposals.map(e=>D(M.a,{className:$.a.link,title:e.title,to:Object(E.a)(e.permalink)},void 0,e.title)),D("a",{className:$.a.showAll,onClick:e.onFilterProposals},void 0,Object(a.a)(e.language,"sidebar.gov.showAll"))):null})),V=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),z=e=>V("svg",{className:e.className,style:e.style,viewBox:"0 0 10 8",xmlns:"http://www.w3.org/2000/svg"},void 0,V("g",{},void 0,V("path",{d:"M4.152 1.3568C4.54367 0.730128 5.45633 0.730129 5.848 1.3568L9.04375 6.47C9.46003 7.13605 8.98119 8 8.19575 8H1.80425C1.01881 8 0.539969 7.13605 0.956249 6.47L4.152 1.3568Z"}))),q=o("./src/reddit/components/Governance/CommunityCard/SubredditValue/index.m.less"),G=o.n(q),K=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const J="#4CB350",X="#EA0027",Z=Object(d.css)([".",", ."," {color: ",";}"],G.a.valueContainer,G.a.valueLabel,e=>Object(l.a)(Object(u.c)(e).widgetColors.sidebarWidgetBackgroundColor));const Q=Object(i.createStructuredSelector)({language:e=>e.user.language,meta:(e,t)=>e.subreddits.gov.meta[t.subredditId]});var Y=Object(r.connect)(Q)(function(e){return e.meta&&e.meta.subredditValue&&e.meta.subredditValue.value?K("div",{className:e.className},void 0,K("div",{className:G.a.title},void 0,Object(a.a)(e.language,"sidebar.gov.subredditValue")),K("div",{className:G.a.valueContainer},void 0,K("span",{className:G.a.value},void 0,Object(f.a)(e.meta.subredditValue.value)),e.meta.subredditValue.change&&(e.meta.subredditValue.change>0?K(z,{className:G.a.arrowUp,style:{fill:J}}):K(z,{className:G.a.arrowDown,style:{fill:X}})),e.meta.subredditValue.change&&K("span",{className:G.a.valueChange,style:{color:e.meta.subredditValue.change>0?J:X}},void 0,Object(a.a)(e.language,"sidebar.gov.subredditValueChange",{subredditValueChange:(100*e.meta.subredditValue.change).toFixed(1)}))),K("div",{className:G.a.explanation},void 0,Object(a.a)(e.language,"sidebar.gov.subredditValueExplanation"))):null}),ee=o("./src/reddit/components/Governance/CommunityCard/index.m.less"),te=o.n(ee);o.d(t,"b",function(){return ne});var oe=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const ne=Object(d.css)(["."," {border-color: ",";}","","",""],te.a.section,e=>Object(l.a)(Object(u.c)(e).widgetColors.sidebarWidgetBackgroundColor,p.a.line,p.b.line),N,U,Z);const se=Object(i.createStructuredSelector)({tokenName:m.i,distribution:(e,t)=>e.subreddits.gov.distributions[t.subredditId],language:e=>e.user.language,wallet:m.d,subreddit:(e,t)=>e.subreddits.models[t.subredditId]});t.a=Object(r.connect)(se)(function(e){return oe(c.a,{className:te.a.className,title:Object(a.a)(e.language,"sidebar.gov.ownershipTitle")},void 0,e.distribution?oe(s.Fragment,{},void 0,oe(Y,{className:te.a.section,subredditId:e.subredditId}),oe(L,{className:te.a.section,distribution:e.distribution,subredditId:e.subredditId,wallet:e.wallet}),e.subreddit&&oe(H,{className:te.a.section,subredditId:e.subreddit.id})):oe("div",{className:te.a.loading}))})},"./src/reddit/components/Governance/Leaderboard/DateRangePicker/DateDropdown/index.m.less":function(e,t,o){e.exports={container:"_3aHX1X-fx3C2CqGIRW-94w",row:"_2TmKFfsf0cWIw5UcmgnjfU"}},"./src/reddit/components/Governance/Leaderboard/DateRangePicker/index.m.less":function(e,t,o){e.exports={container:"kr65ImG2L36mMtiacZ2JX",icon:"_3GMEZ2qDsSv3KVyj9GIz-o",text:"XaNoGArgCjyy8zX7qzVRI"}},"./src/reddit/components/Governance/Leaderboard/Distribution/SettingsDropdown/index.m.less":function(e,t,o){e.exports={container:"_2-JKQYYtQFdjMQJhVbDG_e",row:"q2yTYZFv4fUHEGX1rFR_m"}},"./src/reddit/components/Governance/Leaderboard/Distribution/index.m.less":function(e,t,o){e.exports={container:"_32q2laSPP2zynVHz3RnmFA",disabledText:"_1VlkCIi5HF6re6HYIEjcO-",explanation:"_3HY9KL4hLnHIN0SXTtd7sP",fvfo:"a6-R28QcM9mFRTNAtvf9d",gear:"_3UQtcgIc1btF7TSSH4q4iH",noRelease:"_13P3kuENlFnVlvkkfqFrwK",releasing:"_2PMbulVzccnHrw7DDPiqto",title:"_2rd8DPLmnfPIFKHbLCyR1n",token:"oPTB7VC8RAKk1jXQ0HRYu",wallet:"_1oM70Z_WtiI7ZfhIvZbyOR"}},"./src/reddit/components/Governance/Leaderboard/Distribution/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/polished/dist/polished.es.js"),r=o("./node_modules/react/index.js"),i=o.n(r),d=o("./node_modules/react-redux/es/index.js"),a=o("./node_modules/reselect/lib/index.js"),c=o("./bundled-modules/styled-components/styled-components.min.js"),l=o.n(c),p=o("./src/app/strings/index.ts"),u=o("./src/lib/classNames/index.ts"),m=o("./src/lib/prettyPrintNumber/index.ts"),b=o("./src/lib/timeUntil/index.ts"),f=o("./src/reddit/components/Governance/Token/index.tsx"),g=o("./src/reddit/helpers/styles/smartTextColor.ts"),h=o("./src/reddit/icons/svgs/Settings/index.tsx"),v=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),y=o("./src/reddit/selectors/gov.ts"),x=o("./src/reddit/actions/governance/index.ts"),O=o("./src/reddit/controls/Button/index.tsx"),w=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const j=Object(a.createStructuredSelector)({language:e=>e.user.language});var S=Object(d.connect)(j,(e,{subredditId:t})=>({onOptIn:()=>e(Object(x.c)(!1,t))}))(function(e){return w(O.g,{className:e.className,onClick:e.onOptIn},void 0,Object(p.a)(e.language,"polls.optInButton"))}),C=o("./src/higherOrderComponents/asTooltip.tsx"),I=o("./src/reddit/constants/zIndex.ts"),k=o("./src/reddit/controls/Dropdown/index.tsx"),P=o("./src/reddit/controls/Dropdown/Row.tsx"),N=o("./src/reddit/components/Governance/Leaderboard/Distribution/SettingsDropdown/index.m.less"),_=o.n(N),T=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},L=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),M=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 A=l()(k.a).withConfig({componentId:"h5us2u-0"})(["margin-top: 0;z-index: ",";"],I.u),E=Object(C.a)(function(e){e.className;const t=e.language,o=e.tokenName,n=(e.subredditId,M(e,["className","language","tokenName","subredditId"]));return i.a.createElement(A,T({className:Object(u.a)(e.className,_.a.container)},n),L(P.c,{noIcon:!0,className:_.a.row,onClick:e.onOpenOptOutModal},void 0,Object(p.a)(t,"polls.optOutModalTitle",{tokenName:o})))}),B=Object(a.createStructuredSelector)({tokenName:y.i,language:e=>e.user.language});var F=Object(d.connect)(B,(e,{subredditId:t})=>({onOpenOptOutModal:()=>e(Object(x.d)({subredditId:t}))}))(E),R=o("./src/reddit/components/Governance/Leaderboard/Distribution/index.m.less"),$=o.n(R);o.d(t,"b",function(){return W});var D=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const U="distribution-opt-out",W=Object(c.css)([".",",.",",."," {color: ",";}."," {fill: ",";&:hover, &:focus {background-color: ",";}}"],$.a.description,$.a.releasing,$.a.title,e=>Object(g.a)(Object(v.c)(e).widgetColors.sidebarWidgetBackgroundColor),$.a.gear,e=>Object(v.c)(e).actionIcon,e=>Object(s.e)(Object(v.c)(e).navIcon,.1));const H=Object(a.createStructuredSelector)({distribution:(e,{subreddit:t})=>e.subreddits.gov.distributions[t.id],language:e=>e.user.language,wallet:(e,{subreddit:t})=>Object(y.d)(e,{subredditId:t.id})});t.a=Object(d.connect)(H)(class extends i.a.Component{constructor(){super(...arguments),this.state={showDropdown:!1},this.handleOpenDropdown=(()=>{this.setState({showDropdown:!0}),document.body.addEventListener("click",this.handleCloseDropdown)}),this.handleCloseDropdown=(()=>{setTimeout(()=>this.setState({showDropdown:!1})),document.body.removeEventListener("click",this.handleCloseDropdown)})}render(){const e=`${U}${this.props.uniqueId||""}`,t=!!this.props.distribution&&!!this.props.distribution.nextIssue&&!!this.props.distribution.nextIssueAt;return D("div",{className:Object(u.a)(this.props.className,$.a.container)},void 0,D("div",{className:$.a.amount},void 0,D("div",{className:Object(u.a)($.a.description,{[$.a.disabledText]:!!this.props.wallet&&!!this.props.wallet.optOut})},void 0,t?this.renderRelease():this.renderNoRelease())),this.props.wallet&&this.props.wallet.optOut&&D(S,{subredditId:this.props.subreddit.id}),this.props.wallet&&!this.props.wallet.optOut&&D(h.a,{className:$.a.gear,id:e,onClick:this.state.showDropdown?this.handleCloseDropdown:this.handleOpenDropdown}),this.props.wallet&&!this.props.wallet.optOut&&D(F,{isOpen:this.state.showDropdown,subredditId:this.props.subreddit.id,tooltipPosition:["right","top"],targetPosition:["right","bottom"],tooltipId:e}))}renderRelease(){return this.props.distribution&&this.props.distribution.nextIssue&&this.props.distribution.nextIssueAt?D(r.Fragment,{},void 0,D("div",{className:$.a.wallet},void 0,D(f.a,{className:$.a.token,subredditId:this.props.subreddit.id}),D("div",{},void 0,Object(m.a)(this.props.distribution.nextIssue))),D("div",{className:$.a.releasing},void 0,Object(p.a)(this.props.language,"sidebar.gov.tokensReleasing",{date:Object(b.a)(this.props.language,new Date(this.props.distribution.nextIssueAt),!0)}))):null}renderNoRelease(){return D("div",{className:$.a.noRelease},void 0,Object(p.a)(this.props.language,"sidebar.gov.noRelease"))}})},"./src/reddit/components/Governance/Leaderboard/EntryDivider/index.m.less":function(e,t,o){e.exports={container:"_3U3eyY-903VKXVQvAX6Oci",line:"_2rsENdHzxqXJ3jqSdUylB9",text:"R99kMDIZ0Rs3Ftsu750Im"}},"./src/reddit/components/Governance/Leaderboard/EntryDivider/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return g});o("./node_modules/react/index.js");var n,s=o("./node_modules/react-redux/es/index.js"),r=o("./node_modules/reselect/lib/index.js"),i=o("./bundled-modules/styled-components/styled-components.min.js"),d=o("./src/app/strings/index.ts"),a=o("./src/lib/classNames/index.ts"),c=o("./src/lib/prettyPrintNumber/index.ts"),l=o("./src/reddit/helpers/styles/smartTextColor.ts"),p=o("./src/reddit/models/NewStructuredStyles/index.ts"),u=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),m=o("./src/reddit/components/Governance/Leaderboard/EntryDivider/index.m.less"),b=o.n(m),f=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const g=Object(i.css)(["."," {border-color: ",";}."," {color: ",";}"],b.a.line,e=>Object(l.a)(Object(u.c)(e).widgetColors.sidebarWidgetBackgroundColor,p.a.line,p.b.line),b.a.text,e=>Object(l.a)(Object(u.c)(e).widgetColors.sidebarWidgetBackgroundColor,p.a.metaText,p.b.metaText));const h=Object(r.createStructuredSelector)({language:e=>e.user.language});t.a=Object(s.connect)(h)(function(e){const t=Object(c.a)(e.entry.numUsers.toString()),o=1===e.entry.numUsers?Object(d.a)(e.language,"gov.leaderboard.users.singular"):Object(d.a)(e.language,"gov.leaderboard.users.plural");return f("div",{className:Object(a.a)(b.a.container,e.className)},void 0,f("div",{className:b.a.line}),f("div",{className:b.a.text},void 0,`${t} ${o}`),f("div",{className:b.a.line}))})},"./src/reddit/components/Governance/Leaderboard/EntryUser/index.m.less":function(e,t,o){e.exports={flexRow:"_27XFXY0Nde6JEGFwKDLXpX",container:"_2nlSSvS0u4wdSdhODO2_LD",points:"_3dubtJAHgSz_JV7AiRzk12",position:"AzD_FyWlGp7oFW4xH0-MO",badge:"_2i9Lr8K4mvo7KpJoZHGbz0",badgeContainer:"_3tJG1HTVRm3dk-oHnTSl5h",currentUser:"_1M58uBin1CihyNgByc5_pr",user:"_3W7d8zooppcYXYlpjKZZRj",username:"_1vyJFDQjwC9W6mhvljSan",rank:"_3vpolg8V6jVUdNQB8lNsBS"}},"./src/reddit/components/Governance/Leaderboard/EntryUser/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return h});o("./node_modules/react/index.js");var n,s=o("./node_modules/react-redux/es/index.js"),r=o("./node_modules/react-router-dom/es/index.js"),i=o("./node_modules/reselect/lib/index.js"),d=o("./bundled-modules/styled-components/styled-components.min.js"),a=o("./src/lib/classNames/index.ts"),c=o("./src/lib/prettyPrintNumber/index.ts"),l=o("./src/reddit/components/Badges/UserDisplay/index.tsx"),p=o("./src/reddit/featureFlags/index.ts"),u=o("./src/reddit/helpers/styles/smartTextColor.ts"),m=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),b=o("./src/reddit/components/Governance/Leaderboard/EntryUser/index.m.less"),f=o.n(b),g=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const h=Object(d.css)(["."," {color: ",";}"],f.a.container,e=>Object(u.a)(Object(m.c)(e).widgetColors.sidebarWidgetBackgroundColor));const v=Object(i.createStructuredSelector)({accountId:e=>e.user.account?e.user.account.id:void 0,badgesEnabled:p.d.spBadges});t.a=Object(s.connect)(v)(function(e){return g(r.a,{className:Object(a.a)(f.a.container,e.className,{[f.a.currentUser]:e.entry.userId===e.accountId}),to:`/user/${e.entry.userName}`},void 0,g("div",{className:f.a.user},void 0,e.badgesEnabled&&g("div",{className:f.a.badgeContainer},void 0,g(l.b,{usePlaceholder:!0,subredditId:e.subredditId,uniqueIdentifier:e.uniqueIdentifier,userId:e.entry.userId})),g("div",{className:f.a.username},void 0,e.entry.userName)),g("div",{className:f.a.rank},void 0,g("div",{className:f.a.points},void 0,Object(c.a)(e.entry.score)),g("div",{className:f.a.position},void 0,`#${Object(c.a)(e.entry.position.toString())}`)))})},"./src/reddit/components/Governance/Leaderboard/dynamicStyles.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return m});var n=o("./bundled-modules/styled-components/styled-components.min.js"),s=o("./src/reddit/helpers/styles/smartTextColor.ts"),r=o("./src/reddit/models/NewStructuredStyles/index.ts"),i=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),d=o("./src/reddit/components/Governance/Leaderboard/Distribution/index.tsx"),a=o("./src/reddit/components/Governance/Leaderboard/EntryDivider/index.tsx"),c=o("./src/reddit/components/Governance/Leaderboard/EntryUser/index.tsx"),l=o("./src/reddit/components/Governance/Leaderboard/index.m.less"),p=o.n(l);const u=e=>Object(s.a)(Object(i.c)(e).widgetColors.sidebarWidgetBackgroundColor,r.a.line,r.b.line),m=Object(n.css)(["."," {border-color: ",";}."," {fill: ",";}."," {color: ",";}."," {background-color: ",";}","","",""],p.a.distribution,u,p.a.errorIcon,u,p.a.header,e=>Object(s.a)(Object(i.c)(e).widgetColors.sidebarWidgetBackgroundColor),p.a.loading,e=>Object(i.c)(e).field,d.b,a.b,c.b)},"./src/reddit/components/Governance/Leaderboard/index.m.less":function(e,t,o){e.exports={container:"_1l8stWgw-zYCekbwl-n3c_",datePickerContainer:"_3PZpCplhcmXmVN4-Ltw1jj",distribution:"_20giigIncPELawj1dJQbkq",divider:"_1zf-p8IC8IigBUFPt-H_45",entryUser:"-h3bdtmpLuhCRS6K-O5el",error:"XeA-6vh3Ag_VPJZW95yd_",errorIcon:"_3WI9lKaqHMMq_zIu6QXRY-",header:"_286cfq1tt7CbwNBqdqxRi0",loading:"pyciUPy6JIviG5S3kASOu"}},"./src/reddit/components/Governance/Leaderboard/index.tsx":function(e,t,o){"use strict";o.r(t);var n,s,r=o("./node_modules/react/index.js"),i=o.n(r),d=o("./node_modules/react-redux/es/index.js"),a=o("./node_modules/reselect/lib/index.js"),c=o("./src/app/strings/index.ts"),l=o("./src/config.ts"),p=o("./src/lib/constants/index.ts");function u(e,t){return`${e}-${t}`}!function(e){e[e.Divider=0]="Divider",e[e.User=1]="User"}(n||(n={})),function(e){e.Month="points-monthly",e.Week="points-weekly"}(s||(s={}));var m=o("./src/reddit/endpoints/governance/requester.ts");var b=o("./src/lib/makeActionCreator/index.ts"),f=o("./src/reddit/actions/leaderboard/constants.ts");const g=Object(b.a)(f.a),h=Object(b.a)(f.b),v=Object(b.a)(f.c),y=Object(b.a)(f.d),x=(e,t)=>async(o,s,{apiContext:r})=>{const i=u(e,t),d=s(),a=!!d.leaderboard.models[i],c=!!d.leaderboard.api.pending[i];if(a||c)return;o(v({key:i}));const b=await function(e,t){return Object(m.a)(e,{endpoint:`${l.a.metaUrl}/ratings/${t.subredditId}/${t.dateRange}`,method:p.jb.GET}).then(e=>{if(e.ok){let t=0;const o=[];return e.body.forEach(e=>{const s=e.position-t;s>1&&o.push({numUsers:s,type:n.Divider}),o.push(Object.assign({},e,{type:n.User})),t=e.position}),Object.assign({},e,{body:{leaderboard:o}})}return e})}(r(),{dateRange:t,subredditId:e});b.ok?o(y({key:i,data:b.body.leaderboard})):o(h({key:i,data:b.error}))};var O,w=o("./src/reddit/components/Widgets/ThemedWidget/index.tsx"),j=o("./src/reddit/icons/svgs/Info/index.tsx"),S=o("./src/reddit/selectors/gov.ts"),C=o("./src/lib/classNames/index.ts"),I=(O="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var s=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&s)for(var i in s)void 0===t[i]&&(t[i]=s[i]);else t||(t=s||{});if(1===r)t.children=n;else if(r>1){for(var d=Array(r),a=0;a<r;a++)d[a]=arguments[a+3];t.children=d}return{$$typeof:O,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),k=e=>I("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,I("g",{},void 0,I("path",{d:"M17,4 C17.552,4 18,4.448 18,5 L18,8 L18,17 C18,17.552 17.552,18 17,18 L3,18 C2.448,18 2,17.552 2,17 L2,8 L2,5 C2,4.448 2.448,4 3,4 L5,4 L5,3 C5,2.448 5.448,2 6,2 C6.552,2 7,2.448 7,3 L7,4 L13,4 L13,3 C13,2.448 13.448,2 14,2 C14.552,2 15,2.448 15,3 L15,4 L17,4 Z M4,16 L16,16 L16,9 L4,9 L4,16 Z"}))),P=o("./src/reddit/icons/svgs/Dropdown/index.tsx"),N=o("./bundled-modules/styled-components/styled-components.min.js"),_=o.n(N),T=o("./src/higherOrderComponents/asTooltip.tsx"),L=o("./src/reddit/constants/zIndex.ts"),M=o("./src/reddit/controls/Dropdown/index.tsx"),A=o("./src/reddit/controls/Dropdown/Row.tsx"),E=o("./src/reddit/components/Governance/Leaderboard/DateRangePicker/DateDropdown/index.m.less"),B=o.n(E),F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},R=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),$=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 D=[{dateRange:s.Week,text:e=>Object(c.a)(e,"gov.leaderboard.rangeText.week")},{dateRange:s.Month,text:e=>Object(c.a)(e,"gov.leaderboard.rangeText.month")}],U=_()(M.a).withConfig({componentId:"ufwa79-0"})(["margin-top: 0;z-index: ",";"],L.u),W=Object(T.a)(function(e){e.className;const t=e.language,o=(e.onChangeDateRange,$(e,["className","language","onChangeDateRange"]));return i.a.createElement(U,F({className:Object(C.a)(e.className,B.a.container)},o),D.map(({dateRange:o,text:n})=>R(A.c,{noIcon:!0,className:B.a.row,onClick:()=>e.onChangeDateRange(o)},void 0,n(t))))}),H=Object(a.createStructuredSelector)({language:e=>e.user.language});var V=Object(d.connect)(H,(e,{subredditId:t})=>({onChangeDateRange:o=>{e(g({dateRange:o,subredditId:t})),e(x(t,o))}}))(W),z=o("./src/reddit/components/Governance/Leaderboard/DateRangePicker/index.m.less"),q=o.n(z),G=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const K="leaderboard-date-range-dropdown-id",J={[s.Week]:e=>Object(c.a)(e,"gov.leaderboard.rangeText.week"),[s.Month]:e=>Object(c.a)(e,"gov.leaderboard.rangeText.month")};const X=Object(a.createStructuredSelector)({dateRange:(e,{subredditId:t})=>e.leaderboard.dateRangeSelection[t]||s.Week,language:e=>e.user.language});var Z=Object(d.connect)(X)(class extends i.a.Component{constructor(){super(...arguments),this.state={showDropdown:!1},this.handleOpenDropdown=(()=>{this.setState({showDropdown:!0}),document.body.addEventListener("click",this.handleCloseDropdown)}),this.handleCloseDropdown=(()=>{setTimeout(()=>this.setState({showDropdown:!1})),document.body.removeEventListener("click",this.handleCloseDropdown)})}render(){const e=`${K}${this.props.uniqueId||""}`;return G("button",{className:Object(C.a)(this.props.className,q.a.container),id:e,onClick:this.state.showDropdown?this.handleCloseDropdown:this.handleOpenDropdown},void 0,G(k,{className:q.a.icon}),G("div",{className:q.a.text},void 0,J[this.props.dateRange](this.props.language)),G(P.a,{className:q.a.icon}),G(V,{isOpen:this.state.showDropdown,subredditId:this.props.subredditId,tooltipPosition:["right","top"],targetPosition:["right","bottom"],tooltipId:e}))}}),Q=o("./src/reddit/components/Governance/Leaderboard/Distribution/index.tsx"),Y=o("./src/reddit/components/Governance/Leaderboard/dynamicStyles.tsx"),ee=o("./src/reddit/components/Governance/Leaderboard/EntryDivider/index.tsx"),te=o("./src/reddit/components/Governance/Leaderboard/EntryUser/index.tsx"),oe=o("./src/reddit/components/Governance/Leaderboard/index.m.less"),ne=o.n(oe);o.d(t,"dynamicStyles",function(){return Y.a});var se=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const re=(e,{subredditId:t})=>e.leaderboard.dateRangeSelection[t]||s.Week,ie=Object(a.createStructuredSelector)({tokenName:S.i,currentDateRange:re,distribution:(e,t)=>e.subreddits.gov.distributions[t.subredditId],language:e=>e.user.language,leaderboard:(e,{subredditId:t})=>{const o=u(t,re(e,{subredditId:t}));return e.leaderboard.models[o]},leaderboardErrored:(e,{subredditId:t})=>{const o=u(t,re(e,{subredditId:t}));return!!e.leaderboard.api.error[o]},subreddit:(e,t)=>e.subreddits.models[t.subredditId]});t.default=Object(d.connect)(ie,(e,{subredditId:t})=>({onFetchLeaderboardData:o=>e(x(t,o))}))(class extends i.a.Component{componentDidMount(){this.props.onFetchLeaderboardData(this.props.currentDateRange)}render(){return se(w.a,{className:ne.a.className,headerButton:se("div",{className:ne.a.datePickerContainer},void 0,se(Z,{subredditId:this.props.subredditId,uniqueId:this.props.uniqueId})),title:Object(c.a)(this.props.language,"sidebar.gov.leaderboard")},void 0,this.props.subreddit&&se(Q.a,{className:ne.a.distribution,subreddit:this.props.subreddit,uniqueId:this.props.uniqueId}),se("div",{className:ne.a.header},void 0,se("div",{className:ne.a.topUsers},void 0,Object(c.a)(this.props.language,"gov.leaderboard.header.topUsers")),se("div",{className:ne.a.tokens},void 0,this.props.tokenName)),(()=>this.props.leaderboardErrored?se("div",{className:ne.a.error},void 0,se(j.a,{className:ne.a.errorIcon})):this.props.leaderboard?se(r.Fragment,{},void 0,this.props.leaderboard.map(e=>{switch(e.type){case n.User:return se(te.a,{className:ne.a.entryUser,entry:e,subredditId:this.props.subredditId,uniqueIdentifier:this.props.uniqueId});case n.Divider:return se(ee.a,{className:ne.a.divider,entry:e})}})):Array.from({length:8}).map((e,t)=>se("div",{className:ne.a.loading},t)))())}})},"./src/reddit/components/Governance/Proposal/NoProposalError/index.m.less":function(e,t,o){e.exports={container:"_2y2WPgX5vi2SAfi_nz_Q7B",fvfo:"_3y4h0Z4Ofe2FN7oKlP9V7e"}},"./src/reddit/components/Governance/Proposal/NoProposalError/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./node_modules/react-redux/es/index.js"),r=o("./node_modules/reselect/lib/index.js"),i=o("./src/app/strings/index.ts"),d=o("./src/lib/classNames/index.ts"),a=o("./src/reddit/components/Governance/Proposal/NoProposalError/index.m.less"),c=o.n(a),l=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const p=Object(r.createStructuredSelector)({language:e=>e.user.language});t.a=Object(s.connect)(p)(function(e){return l("div",{className:Object(d.a)(c.a.container,e.className)},void 0,Object(i.a)(e.language,"polls.cannotFind"))})},"./src/reddit/components/Governance/Proposal/ResultsSelector/DecisionThreshold/index.m.less":function(e,t,o){e.exports={checkIcon:"b6nqW0WFO2M4SexVBxfHU",container:"_1QSw_HlkZ06PQ4H_Gl5Qmi",decisionIcon:"tIv0l4mIAasOfzH_1MZzr",decisionThreshold:"vdDwj3MECrKPWOzGvwtX4",pie:"_1kLHoqYVgmdy-N798MqUkD",pieContainer:"_19t_3cFD9b1D_z7gV6r1Lf",pieInvertedMask:"_240PIKFetxH16NIbed3MhP",pieMask:"faQEx7XG3jztMB7Ba0IzB",text:"_3kJ7s4NNHNqugbRuUIg9B9"}},"./src/reddit/components/Governance/Proposal/ResultsSelector/Tab/index.m.less":function(e,t,o){e.exports={container:"_1399Kcm0dM3RnJzlAPzZsE",selectable:"_3-DDU6UwhIWiQZZtZLB8nv"}},"./src/reddit/components/Governance/Proposal/ResultsSelector/index.m.less":function(e,t,o){e.exports={container:"_16Gygedl8JROR3rsORhsAq"}},"./src/reddit/components/Governance/Proposal/index.m.less":function(e,t,o){e.exports={container:"_3agF4JIMydb6n5U8QiQ6Tv",govIcon:"Biin4hWHcVT2EfDytVnNn",poll:"_2-Y0QlWKQ9uE8EEq087km1",resultsSelector:"_31DHxzl3U6nsgzY4XJjCSD",votingReward:"_2JVvMYg8RBHtf5C2szMdV7"}},"./src/reddit/components/Governance/Proposal/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/bignumber.js/bignumber.js"),r=o.n(s),i=o("./node_modules/polished/dist/polished.es.js"),d=o("./node_modules/react/index.js"),a=o.n(d),c=o("./node_modules/react-redux/es/index.js"),l=o("./node_modules/reselect/lib/index.js"),p=o("./bundled-modules/styled-components/styled-components.min.js"),u=o("./src/lib/classNames/index.ts"),m=o("./src/reddit/components/Governance/Token/index.tsx"),b=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),f=o("./src/reddit/components/Governance/VotingReward/index.m.less"),g=o.n(f),h=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const v=Object(p.css)(["."," {background-color: ",";color: ",";}"],g.a.pill,e=>Object(b.c)(e).active,e=>Object(b.c)(e).body);function y(e){return h("div",{className:Object(u.a)(g.a.container,e.className)},void 0,h("div",{className:g.a.pill},void 0,h(m.a,{className:g.a.token,subredditId:e.subredditId}),h("span",{className:g.a.amount},void 0,"+",e.amount)))}var x,O=o("./src/reddit/actions/governance/index.ts"),w=o("./src/reddit/models/Poll/index.ts"),j=o("./src/reddit/selectors/gov.ts"),S=o("./src/reddit/components/Poll/MetaData/index.tsx"),C=o("./src/lib/bigNumberUtils/percent.ts"),I=o("./src/lib/prettyPrintNumber/index.ts"),k=o("./src/reddit/icons/svgs/CircleCheck/index.tsx"),P=o("./src/reddit/components/Poll/ResultOption/index.m.less"),N=o.n(P),_=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();!function(e){e[e.Count=0]="Count",e[e.Percent=1]="Percent"}(x||(x={}));const T=Object(p.css)([".",",.",",."," {color: ",";}."," {fill: ",";}."," {background-color: ",";}"],N.a.count,N.a.percent,N.a.text,e=>Object(b.c)(e).bodyText,N.a.check,e=>Object(b.c)(e).bodyText,N.a.bar,e=>Object(b.c)(e).active);var L=function(e){const t=e.poll.options.filter(t=>t.id===e.optionId)[0],o=e.result.totalVotes,n=e.result.options[e.optionId],r=new s.BigNumber(o).isZero()?0:Object(C.a)(n.votes,o);return _("div",{className:Object(u.a)(e.className,N.a.container),title:e.displayType===x.Count?n.votes:`${r.toFixed(2)}% (${Object(I.a)(n.votes)} ${e.tokenName})`},void 0,_("div",{className:N.a.bar,style:{opacity:e.isWinningOption?.3:void 0,width:`${r}%`}}),_("div",{className:Object(u.a)(N.a.count,{[N.a.hide]:e.displayType!==x.Count,[N.a.show]:e.displayType===x.Count})},void 0,Object(I.b)(parseInt(n.votes))),_("div",{className:Object(u.a)(N.a.percent,{[N.a.hide]:e.displayType===x.Count,[N.a.show]:e.displayType!==x.Count})},void 0,`${r.toFixed(1)}%`),_("div",{className:N.a.text},void 0,t.text),n.userSelected&&_(k.a,{className:N.a.check}))},M=o("./src/reddit/components/Poll/ClosedPoll/index.m.less"),A=o.n(M),E=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const B=Object(p.css)(["."," {color: ",";}",""],A.a.metaData,e=>Object(b.c)(e).metaText,T);const F=Object(l.createStructuredSelector)({tokenName:j.i,language:e=>e.user.language});var R=Object(c.connect)(F)(function(e){let t;return e.poll.options.forEach(o=>{t||(t=o);const n=e.result.options[o.id],r=e.result.options[t.id];new s.BigNumber(r.votes).isLessThan(new s.BigNumber(n.votes))&&(t=o)}),E("div",{className:e.className},void 0,e.poll.options.map((o,n)=>E(L,{className:A.a.option,displayType:e.displayType,isWinningOption:o===t,optionId:o.id,poll:e.poll,result:e.result,tokenName:e.tokenName},n)),E(S.a,{className:A.a.metaData,language:e.language,poll:e.poll}))}),$=o("./node_modules/lodash/isNil.js"),D=o.n($),U=o("./src/app/strings/index.ts"),W=o("./src/reddit/controls/Button/index.tsx"),H=o("./src/reddit/controls/LoadingIcon/index.tsx"),V=o("./src/reddit/components/Poll/OpenPoll/index.m.less"),z=o.n(V),q=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const G=Object(p.css)(["."," {color: ",";}."," {color: ",";}"],z.a.option,e=>Object(b.c)(e).bodyText,z.a.metaData,e=>Object(b.c)(e).metaText);function K(e){return"INPUT"===e.tagName}const J=Object(l.createStructuredSelector)({language:e=>e.user.language,userIsLoggedIn:e=>!!e.user.account});var X=Object(c.connect)(J)(class extends a.a.Component{constructor(){super(...arguments),this.state={optionIsSelected:!1},this.handleOptionSelected=(()=>this.setState({optionIsSelected:!0}))}render(){return q("form",{className:this.props.className,onSubmit:e=>{e.preventDefault();const t=e.currentTarget,o=function(e){for(const t of e)if(t.checked)return parseInt(t.value)}(Array.from(t.elements).filter(K));D()(o)||this.props.onVoteSelection(this.props.poll.options[o])}},void 0,q("div",{},void 0,this.props.poll.options.map((e,t)=>q("label",{className:z.a.option},t,q("input",{className:z.a.optionRadio,onChange:this.handleOptionSelected,type:"radio",name:"proposal",value:t}),q("div",{className:z.a.optionText},void 0,e.text)))),q("div",{className:z.a.controlRow},void 0,q("div",{className:z.a.buttonContainer},void 0,q(W.g,{className:z.a.voteButton,disabled:this.props.voteInProgress||!this.props.userIsLoggedIn||!this.state.optionIsSelected,type:"submit"},void 0,this.props.voteInProgress?q(H.a,{className:z.a.loadingIcon,sizePx:20}):q(d.Fragment,{},void 0,this.props.votingIcon,Object(U.a)(this.props.language,"polls.voteCTA"))),!this.props.userIsLoggedIn&&q("div",{className:z.a.loggedOutTooltip},void 0,Object(U.a)(this.props.language,"polls.loggedOutText"))),q(S.a,{className:z.a.metaData,language:this.props.language,poll:this.props.poll})))}}),Z=o("./src/reddit/components/Poll/index.m.less"),Q=o.n(Z),Y=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const ee=Object(p.css)(["."," {color: ",";}","",""],Q.a.title,e=>Object(b.c)(e).bodyText,B,G);const te=Object(l.createStructuredSelector)({poll:(e,t)=>e.polls.models[t.pollId],result:(e,t)=>e.polls.results[t.resultType][t.pollId],voteInProgress:(e,t)=>!!e.polls.api.voting.pending[t.pollId]});var oe=Object(c.connect)(te,(e,t)=>({onVoteSelection:o=>e(Object(O.f)(t.pollId,o.id))}))(function(e){const t=e.poll,o=e.result;return t?Y("div",{className:e.className},void 0,e.title&&Y("div",{className:Q.a.title},void 0,e.title),o&&Object(w.e)(t,o)?Y(R,{displayType:e.displayType,poll:t,result:o}):Y(X,{poll:t,onVoteSelection:e.onVoteSelection,voteInProgress:e.voteInProgress,votingIcon:e.votingIcon})):null}),ne=o("./src/reddit/icons/svgs/GovSmall/index.tsx"),se=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),re=e=>se("svg",{className:e.className,viewBox:"0 0 20 20"},void 0,se("g",{},void 0,se("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.7771 0.961401C10.3769 0.466643 9.62244 0.466642 9.22221 0.961401L8.71391 1.58973C8.42377 1.9484 7.92591 2.06204 7.50887 1.86478L6.77829 1.51921C6.20302 1.2471 5.52329 1.57445 5.37735 2.19386L5.19202 2.98051C5.08623 3.42955 4.68698 3.74795 4.22565 3.75117L3.41748 3.75681C2.78112 3.76125 2.31073 4.3511 2.44801 4.97249L2.62234 5.76165C2.72186 6.21213 2.50029 6.67222 2.08605 6.87528L1.36036 7.23101C0.788947 7.51112 0.621066 8.24665 1.01436 8.74695L1.51383 9.38231C1.79895 9.745 1.79895 10.2557 1.51383 10.6184L1.01436 11.2537C0.621067 11.754 0.788947 12.4895 1.36036 12.7697L2.08605 13.1254C2.50029 13.3284 2.72186 13.7885 2.62234 14.239L2.44801 15.0282C2.31073 15.6496 2.78112 16.2394 3.41748 16.2439L4.22565 16.2495C4.68698 16.2527 5.08623 16.5711 5.19202 17.0202L5.37735 17.8068C5.52329 18.4262 6.20302 18.7536 6.77829 18.4815L7.50887 18.1359C7.92591 17.9386 8.42376 18.0523 8.71391 18.4109L9.22221 19.0393C9.62244 19.534 10.3769 19.534 10.7771 19.0393L11.2854 18.4109C11.5756 18.0523 12.0734 17.9386 12.4905 18.1359L13.221 18.4815C13.7963 18.7536 14.476 18.4262 14.622 17.8068L14.8073 17.0202C14.9131 16.5711 15.3124 16.2527 15.7737 16.2495L16.5819 16.2439C17.2182 16.2394 17.6886 15.6496 17.5513 15.0282L17.377 14.239C17.2775 13.7885 17.499 13.3284 17.9133 13.1254L18.639 12.7697C19.2104 12.4895 19.3783 11.754 18.985 11.2537L18.4855 10.6184C18.2004 10.2557 18.2004 9.745 18.4855 9.38231L18.985 8.74695C19.3783 8.24665 19.2104 7.51112 18.639 7.23101L17.9133 6.87528C17.499 6.67222 17.2775 6.21213 17.377 5.76165L17.5513 4.97249C17.6886 4.3511 17.2182 3.76125 16.5819 3.75681L15.7737 3.75117C15.3124 3.74795 14.9131 3.42956 14.8073 2.98051L14.622 2.19386C14.476 1.57445 13.7963 1.2471 13.221 1.51921L12.4905 1.86478C12.0734 2.06204 11.5756 1.94841 11.2854 1.58973L10.7771 0.961401ZM12.5231 7.71779L13.0827 8.27779C13.2391 8.43419 13.2391 8.68699 13.0827 8.84339L9.44271 12.4834C9.36471 12.5614 9.26231 12.6006 9.1599 12.6006C9.0575 12.6006 8.95551 12.5614 8.8771 12.4834L6.9171 10.5234C6.7607 10.3674 6.7607 10.1142 6.9171 9.95779L7.4771 9.39779C7.6335 9.24139 7.8867 9.24139 8.0427 9.39779L9.1599 10.515L11.9575 7.71779C12.0323 7.64259 12.1339 7.60059 12.2403 7.60059C12.3463 7.60059 12.4479 7.64259 12.5231 7.71779Z"}))),ie=o("./src/reddit/selectors/user.ts"),de=o("./src/reddit/components/Governance/Proposal/ResultsSelector/DecisionThreshold/index.m.less"),ae=o.n(de),ce=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const le="m-swap",pe=e=>Object(i.c)(.4,Object(b.c)(e).body,Object(b.c)(e).active),ue=Object(p.css)(["."," {fill: ",";}."," {fill: ",";}."," {color: ",";}."," {border: 1px solid ",";}.",",."," {background-color: ",";&."," {background-color: ",";}}."," {background-color: ",";}"],ae.a.checkIcon,e=>Object(b.c)(e).body,ae.a.decisionThreshold,e=>Object(b.c)(e).active,ae.a.text,e=>Object(b.c)(e).actionIcon,ae.a.pieContainer,pe,ae.a.pieInvertedMask,ae.a.pieMask,e=>Object(i.c)(.95,Object(b.c)(e).body,Object(b.c)(e).active),le,pe,ae.a.pie,pe);function me(e){return ce(d.Fragment,{},void 0,ce("div",{className:ae.a.text},void 0,Object(U.a)(e.language,"polls.decisionThresholdAchieved")),ce("div",{className:ae.a.decisionIcon,title:e.votes},void 0,ce(re,{className:ae.a.decisionThreshold})))}function be(e){return ce(d.Fragment,{},void 0,ce("div",{className:ae.a.text},void 0,Object(U.a)(e.language,"polls.decisionThreshold",{amount:Object(I.b)(parseInt(e.threshold))})),ce(fe,{percent:e.percent}))}function fe(e){const t=Math.floor(e.percent/100*360);return ce("div",{className:ae.a.pieContainer,title:`${e.percent}%`},void 0,ce("div",{className:ae.a.pie}),ce("div",{className:ae.a.pieInvertedMask}),ce("div",{className:Object(u.a)(ae.a.pieMask,{[le]:e.percent>=50}),style:{transform:e.percent<50?`rotate(${t}deg)`:`rotate(${t-180}deg)`}}))}const ge=Object(l.createStructuredSelector)({language:ie.M,poll:(e,{pollId:t})=>e.polls.models[t],pollResult:(e,{pollId:t})=>e.polls.results.byVotingPower[t],subredditGovMeta:(e,{subredditId:t})=>e.subreddits.gov.meta[t]});var he=Object(c.connect)(ge)(function(e){if(!(e.poll&&e.pollResult&&e.subredditGovMeta&&e.subredditGovMeta.polls&&e.subredditGovMeta.polls.decisionThreshold))return null;const t=Object(w.c)(e.poll,e.pollResult),o=new r.a(e.pollResult.options[t.id].votes),n=e.subredditGovMeta.polls.decisionThreshold,s=o.isGreaterThanOrEqualTo(new r.a(n)),i=Object(C.a)(e.pollResult.options[t.id].votes,n);return ce("div",{className:Object(u.a)(ae.a.container,e.className)},void 0,s?ce(me,{language:e.language,votes:o.toString()}):ce(be,{language:e.language,threshold:n,percent:i}))}),ve=o("./src/reddit/components/Governance/Proposal/ResultsSelector/Tab/index.m.less"),ye=o.n(ve),xe=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Oe="m-selected",we=Object(p.css)(["."," {color: ",";&."," {border-bottom-color: ",";color: ",";&:hover {opacity: 1;}}}"],ye.a.container,e=>Object(b.c)(e).actionIcon,Oe,e=>Object(b.c)(e).active,e=>Object(b.c)(e).active);function je(e){return xe("a",{className:Object(u.a)(e.className,ye.a.container,{[Oe]:!!e.selectable&&!!e.isSelected,[ye.a.selectable]:!!e.selectable}),onClick:e.onSelect,title:e.tooltipText},void 0,e.text)}var Se=o("./src/reddit/components/Governance/Proposal/ResultsSelector/index.m.less"),Ce=o.n(Se),Ie=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const ke=Object(p.css)(["","",""],ue,we),Pe=new Set(["t5_37jgj"]);const Ne=Object(l.createStructuredSelector)({tokenName:j.i,distribution:(e,{subredditId:t})=>e.subreddits.gov.distributions[t],language:e=>e.user.language,poll:(e,{pollId:t})=>e.polls.models[t],pollIsClosed:(e,{pollId:t,resultsByVoters:o})=>{const n=e.polls.models[t];return!!(n&&o&&Object(w.e)(n,o))},wallet:j.d});var _e=Object(c.connect)(Ne)(function(e){const t=e.distribution,o=e.poll,n=e.resultsByLockedVotingPower,r=e.resultsByVoters,i=e.resultsByVotingPower,d=e.tokenName,a=e.wallet,c=i?i.totalVotes:"0",l=n?n.totalVotes:"0",p=!new s.BigNumber(c).isZero()&&a&&t?Object(C.a)(c,t.totalAvailable):0,m=r?r.totalVotes:"0",b=Object(I.b)(parseInt(l)),f=Object(I.b)(parseInt(c)),g=Object(I.b)(parseInt(m));return Ie("div",{className:Object(u.a)(e.className,Ce.a.container)},void 0,Ie("div",{},void 0,Ie(je,{isSelected:e.currentResultType===w.b.ByVotingPower,selectable:e.pollIsClosed,text:`${f} ${d}`,tooltipText:Object(U.a)(e.language,"polls.votingBreakdown",{tokenName:d,count:Object(I.a)(c),percent:p.toFixed(2)}),onSelect:()=>e.onChangeResultType&&e.onChangeResultType(w.b.ByVotingPower)}),n&&Pe.has(e.subredditId)&&Ie(je,{isSelected:e.currentResultType===w.b.ByLockedVotingPower,selectable:e.pollIsClosed,text:`${b} ${Object(U.a)(e.language,"polls.locked")} ${d}`,onSelect:()=>e.onChangeResultType&&e.onChangeResultType(w.b.ByLockedVotingPower)}),Ie(je,{isSelected:e.currentResultType===w.b.ByVoters,selectable:e.pollIsClosed,text:Object(U.d)(e.language,"polls.numVotes",parseInt(m),{count:g}),onSelect:()=>e.onChangeResultType&&e.onChangeResultType(w.b.ByVoters)})),Object(w.d)(o)&&Ie(he,{pollId:e.pollId,subredditId:e.subredditId}))}),Te=o("./src/reddit/components/Governance/Proposal/index.m.less"),Le=o.n(Te);o.d(t,"b",function(){return Ae});var Me=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Ae=Object(p.css)(["."," {background-color: ",";border: 1px solid ",";}."," {background-color: ",";border-bottom: 1px solid ",";}","","",""],Le.a.container,e=>Object(i.j)(.99,Object(b.c)(e).active),e=>Object(b.c)(e).line,Le.a.resultsSelector,e=>Object(b.c)(e).body,e=>Object(b.c)(e).line,ee,ke,v);function Ee(e,t){return t===w.b.ByVotingPower?e.resultsByVotingPower:e.resultsByVoters}const Be=Object(l.createStructuredSelector)({language:e=>e.user.language,poll:(e,t)=>e.polls.models[t.pollId],pollReward:(e,t)=>e.polls.rewards[t.pollId],resultsByLockedVotingPower:(e,t)=>e.polls.results.byLockedVotingPower[t.pollId],resultsByVoters:(e,t)=>e.polls.results.byVoters[t.pollId],resultsByVotingPower:(e,t)=>e.polls.results.byVotingPower[t.pollId]});t.a=Object(c.connect)(Be)(class extends a.a.Component{constructor(){super(...arguments),this.state={displayReward:!1,resultType:w.b.ByVotingPower},this.handleResultTypeChange=(e=>this.setState({resultType:e}))}componentDidUpdate(e,t){if(this.props.pollReward&&!new s.BigNumber(this.props.pollReward).isZero()){const o=Ee(e,t.resultType),n=Ee(this.props,this.state.resultType);if(o&&n){const t=!Object(w.e)(e.poll,o),s=Object(w.e)(this.props.poll,n);t&&s&&this.setState({displayReward:!0})}}}render(){return Me("div",{className:Object(u.a)(this.props.className,Le.a.container)},void 0,Me(_e,{className:Le.a.resultsSelector,currentResultType:this.state.resultType,pollId:this.props.pollId,resultsByLockedVotingPower:this.props.resultsByLockedVotingPower,resultsByVoters:this.props.resultsByVoters,resultsByVotingPower:this.props.resultsByVotingPower,subredditId:this.props.subredditId,onChangeResultType:this.handleResultTypeChange}),Me(oe,{className:Le.a.poll,displayType:this.state.resultType===w.b.ByVoters?x.Count:x.Percent,pollId:this.props.pollId,resultType:this.state.resultType,votingIcon:Object(w.d)(this.props.poll)?Me(ne.a,{className:Le.a.govIcon}):void 0},this.props.pollId),this.props.pollReward&&this.state.displayReward&&Me(y,{amount:this.props.pollReward,className:Le.a.votingReward,subredditId:this.props.subredditId}))}})},"./src/reddit/components/Governance/VotingReward/index.m.less":function(e,t,o){e.exports={amount:"_2uGwXKrmP9OljxIhbSCOjc",container:"dVX1qcOidD13L5NRRKOPb",pill:"_2tKg0JJT2prOVVIOrtS2JP",pillAnim:"_3qV2ZaEJd_k1NSZDxMjK-g",token:"_3dLs5lIwl_kKHq589IyKz5",tokenRotation:"_1C5oqr8CA_wteJsqqSRq0B"}},"./src/reddit/components/HeaderImage/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./node_modules/react-router-dom/es/index.js"),r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),d=o("./src/reddit/constants/screenWidths.ts"),a=o("./src/reddit/constants/zIndex.ts"),c=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),l=o("./src/reddit/helpers/styles/components/index.tsx"),p=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),u=o("./src/reddit/icons/svgs/CircledPlanet/index.tsx"),m=o("./src/reddit/models/Theme/index.ts"),b=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const f=Object(r.css)(["background: ",";border: ","px solid ",";border-radius: ","px;float: left;margin-right: 8px;box-sizing: border-box;height: ","px;width: ","px;"],e=>Object(c.c)(e).active,2,e=>Object(c.c)(e).lightText,e=>Object(c.c)(e).banner.iconDimensions.borderRadius,e=>4+parseInt(Object(c.c)(e).banner.iconDimensions.customSize,10),e=>4+parseInt(Object(c.c)(e).banner.iconDimensions.customSize,10)),g=i()(u.a).withConfig({componentId:"ssdjlj-0"})(["","fill: ",";padding: ","px;"],f,e=>Object(c.c)(e).lightText,e=>Object(c.c)(e).banner.iconDimensions.padding),h=i()(Object(l.a)()).withConfig({componentId:"ssdjlj-1"})(["","background-image: url('","');background-position: center;background-repeat: no-repeat;background-size: 100%;"],f,e=>e.iconUrl),v=i.a.div.withConfig({componentId:"ssdjlj-2"})(["width: 512px;height: ","px;background-position: center;background-repeat: no-repeat;background-size: auto;top: 50%;transform: translateY(-50%);position: absolute;","","&:hover {","}"],e=>Object(c.c)(e).banner.positionedImageHeight,e=>Object(c.c)(e).banner.positionedImage?`background-image: url(${Object(c.c)(e).banner.positionedImage});`:"",e=>{switch(Object(c.c)(e).banner.positionedImageAlignment){case"right":return"right: -8px;";case"centered":return"left: 50%; transform: translate(-50%, -50%);";default:return"left: -8px;"}},e=>Object(c.c)(e).banner.positionedImage&&Object(c.c)(e).banner.secondaryBannerPositionedImage?`background-image: url(${Object(c.c)(e).banner.secondaryBannerPositionedImage});`:""),y=i.a.div.withConfig({componentId:"ssdjlj-3"})(["position: absolute;top: 50%;transform: translateY(-50%);z-index: ",";&:hover + "," {","}"],a.d,v,e=>Object(c.c)(e).banner.positionedImage&&Object(c.c)(e).banner.secondaryBannerPositionedImage&&"left"===Object(c.c)(e).banner.positionedImageAlignment?`background-image: url(${Object(c.c)(e).banner.secondaryBannerPositionedImage});`:""),x=i.a.div.withConfig({componentId:"ssdjlj-4"})(["height: 100%;","position: relative;",";"],e=>e.disableFullscreen?"\n margin: auto;\n ":"\n margin: 10px;\n ",e=>Object(c.c)(e).navBar.useOverlay?"transform: translateY(-18px)":""),O=Object(r.withTheme)(e=>{const t=Object(m.e)(e.headerText,e.prefixedHeaderText,Object(c.c)(e).banner.communityNameFormat||""),o=(e=>e.theme&&Object(c.c)(e).banner.iconImage?String(Object(c.c)(e).banner.iconImage):e.subredditOrProfile?e.subredditOrProfile.communityIcon||e.subredditOrProfile.icon.url:e.subreddit?e.subreddit.communityIcon||e.subreddit.icon.url:void 0)(e);return b(S,{className:e.className,to:e.url},void 0,b(x,{disableFullscreen:e.disableFullscreen,style:{maxWidth:e.disableFullscreen?`${e.maxWidth||d.c}px`:"100%"}},void 0,b(y,{},void 0,e.theme&&Object(c.c)(e).banner.showCommunityIcon&&(o?b(h,{iconUrl:o}):b(g,{})),t&&(e=>1===e.length?b(j,{},void 0,b(w,{},void 0,e[0])):b(j,{},void 0,e[0],b(w,{},void 0,e[1])))(t)),b(v,{})))}),w=i.a.h1.withConfig({componentId:"ssdjlj-5"})(["display: inline;"]),j=i.a.span.withConfig({componentId:"ssdjlj-6"})(["","color: #FCFCFB;flex: 1 1 100%;@media(min-width: ","px) {padding-right: 16px;}display: block;float: left;line-height: ","px;"],p.titleFontH1,d.g,e=>Object(c.c)(e).banner.lineHeight),S=i()(s.a).withConfig({componentId:"ssdjlj-7"})(["text-decoration: none;"]);t.a=i()(O).withConfig({componentId:"ssdjlj-8"})(["background: ",";background-position: top center;display: block;flex-direction: row;height: ","px;margin: 0 auto;@media(min-width: ","px) {padding: 8px 16px;}min-width: 260px;"],e=>Object(m.g)(Object(c.c)(e).banner.backgroundColor,Object(c.c)(e).banner.backgroundImage,Object(c.c)(e).banner.backgroundImagePosition),e=>Object(c.c)(e).banner.height,d.i)},"./src/reddit/components/IdCard/CommunityOptions/index.m.less":function(e,t,o){e.exports={container:"_3Qx5bBCG_O8wVZee9J-KyJ",content:"_2NbKFI9n3wPM76pgfAPEsN",stylesToggle:"_2btz68cXFBI3RWcfSNwbmJ",fvfo:"_2If23hFuQEh898PEmkj-IV",disabled:"QgBK4ECuqpeR2umRjYcP2",expandButton:"_4OtOUaGIjjp2cNJMUxme_"}},"./src/reddit/components/IdCard/Placeholder.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(i),a=o("./src/lib/classNames/index.ts"),c=o("./src/reddit/helpers/styles/mixins/loading.ts"),l=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),p=o("./src/reddit/components/IdCard/placeholder.m.less"),u=o.n(p),m=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),b=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 f=d()(e=>{e.isLoading,e.gradientType;var t=b(e,["isLoading","gradientType"]);return r.a.createElement("div",t)}).withConfig({componentId:"s1lp57jt-0"})(["",""],c.b),g=d.a.div.withConfig({componentId:"s1lp57jt-1"})(["background-color: ",";"],e=>Object(l.c)(e).widgetColors.sidebarWidgetBackgroundColor);t.a=(({isLoading:e})=>m(g,{className:u.a.container},void 0,m(f,{gradientType:"posts",isLoading:e,className:u.a.banner}),m("div",{className:u.a.title},void 0,m(f,{gradientType:"posts",isLoading:e,className:u.a.icon}),m(f,{gradientType:"posts",isLoading:e,className:u.a.name})),m("div",{className:u.a.counts},void 0,m("div",{className:u.a.side},void 0,m(f,{gradientType:"posts",isLoading:e,className:u.a.count}),m(f,{gradientType:"posts",isLoading:e,className:u.a.text})),m("div",{className:u.a.side},void 0,m(f,{gradientType:"posts",isLoading:e,className:u.a.count}),m(f,{gradientType:"posts",isLoading:e,className:u.a.text}))),m(f,{gradientType:"posts",isLoading:e,className:Object(a.a)(u.a.desc,u.a.one)}),m(f,{gradientType:"posts",isLoading:e,className:Object(a.a)(u.a.desc,u.a.two)}),m(f,{gradientType:"posts",isLoading:e,className:Object(a.a)(u.a.desc,u.a.three)}),m(f,{gradientType:"posts",isLoading:e,className:Object(a.a)(u.a.desc,u.a.four)}),m(f,{gradientType:"posts",isLoading:e,className:u.a.subscribe})))},"./src/reddit/components/IdCard/helpers.ts":function(e,t,o){"use strict";o.d(t,"f",function(){return d}),o.d(t,"c",function(){return a}),o.d(t,"d",function(){return c}),o.d(t,"e",function(){return l}),o.d(t,"b",function(){return p}),o.d(t,"a",function(){return u});var n=o("./src/app/strings/index.ts"),s=o("./src/config.ts"),r=o("./src/reddit/constants/listings.ts"),i=o("./src/reddit/constants/page.ts");const d=e=>e&&e.toLowerCase()===r.b.Popular,a=e=>e&&e.toLowerCase()===r.b.All,c=e=>e&&e===i.c,l=e=>e&&e===i.j,p=(e,t=40,o=68)=>({height:o,image:e,width:t}),u=({language:e,listingName:t,subreddit:o,idCardWidget:i,shouldRenderSuperbOwlIcon:u})=>{let m,b,f,g,h,v;const y=i&&i.subscribersText||Object(n.a)(e,"structuredStyles.widgets.id-card.subscribersText"),x=i&&i.currentlyViewingText||Object(n.a)(e,"structuredStyles.widgets.id-card.currentlyViewingText");let O,w;const j=u?"snoo-superbowl@2x.png":"snoo-home@2x.png";if(c(t)){m=`${s.a.assetPath}/img/id-cards/home-banner@2x.png`,b=Object(n.a)(e,"listings.home.longDescription"),f=p(`url('${s.a.assetPath}/img/id-cards/${j}')`);const t=Object(n.a)(e,"listings.home.title");g=t.charAt(0).toUpperCase()+t.slice(1),v=r.c[r.b.Home]}else if(a(t))m=`${s.a.assetPath}/img/id-cards/banner@2x.png`,b=Object(n.a)(e,"listings.all.longDescription"),f=p(`url('${s.a.assetPath}/img/id-cards/${j}')`),g="r/all",v=r.c[r.b.All];else if(l(t)){m=`${s.a.assetPath}/img/id-cards/oc-banner@2x.png`,b=Object(n.a)(e,"listings.originalContent.longDescription"),f=p(`url('${s.a.assetPath}/img/id-cards/snoo-oc@2x.png')`,68);const t=Object(n.a)(e,"listings.originalContent.title");g=t.charAt(0).toUpperCase()+t.slice(1),h=Object(n.a)(e,"listings.originalContent.titleSecondary"),v=r.c[r.b.Original]}else d(t)?(m=`${s.a.assetPath}/img/id-cards/banner@2x.png`,b=Object(n.a)(e,"listings.popular.longDescription"),f=p(`url('${s.a.assetPath}/img/id-cards/${j}')`),g="r/popular",v=r.c[r.b.Popular]):t&&(b=i&&i.description,f=p(""),g=o.displayText,v=o.url,w=i&&i.subscribersCount,O=i&&i.currentlyViewingCount);return Object.assign({snooBackground:f,description:b,titleText:g,titleSecondaryText:h,url:v,subscribersCount:w,subscribersText:y,currentlyViewingText:x,currentlyViewingCount:O},m?{bannerBackgroundImage:m}:{})}},"./src/reddit/components/IdCard/index.m.less":function(e,t,o){e.exports={categoryContainer:"_37coyt0h8ryIQubA7RHmUc",icon:"_2XJvPvYIEYtcS4ORsDXwa3",subredditIcon:"_2Vkdik1Q8k0lBEhhA_lRKE",largeSubredditIcon:"eGjjbHtkgFc-SYka3LM3M",planetIcon:"ZtU5GBgjF1m_LMGdL3d7x",largePlanetIcon:"_3mmJ1GWMWurrNWGlAosDIq"}},"./src/reddit/components/IdCard/index.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),s=o.n(n),r=o("./node_modules/react-redux/es/index.js"),i=o("./node_modules/react-router-dom/es/index.js"),d=o("./node_modules/react-router-redux/es/index.js"),a=o("./node_modules/reselect/lib/index.js"),c=o("./bundled-modules/styled-components/styled-components.min.js"),l=o.n(c),p=o("./src/app/strings/index.ts"),u=o("./src/lib/isFakeSubreddit/index.ts"),m=o("./src/lib/prettyPrintNumber/index.ts"),b=o("./src/app/actions/tooltip.ts"),f=o("./src/reddit/components/CategoryTagList/index.tsx"),g=o("./src/reddit/components/CreateCommunityButton/index.tsx"),h=o("./src/reddit/components/CreatePostButton/index.tsx"),v=o("./src/reddit/components/InfoTextTooltip/index.tsx"),y=o("./src/higherOrderComponents/addOverlayEvents.tsx"),x=o("./src/higherOrderComponents/asTooltip.tsx"),O=o("./src/reddit/actions/monthsToMinutes.ts"),w=o("./src/reddit/constants/componentSizes.ts"),j=o("./src/reddit/constants/zIndex.ts"),S=o("./src/reddit/models/MonthsToMinutes/index.ts"),C=o("./src/reddit/components/MonthsToMinutesTooltip/index.tsx"),I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e};const k=Object(x.a)(l()(C.a).withConfig({componentId:"tnff3g-0"})(["","margin-left: -8px;margin-top: ","px;;z-index: ",";&:before {left: initial;right: -.5em;top: 16px;}"],"",e=>e.isOverlay?-w.j:0,j.n+1),[y.a.Click,y.a.Keydown,y.a.Resize]);var P,N=Object(r.connect)(null,e=>({onTooltipActivated:t=>e(Object(O.x)({time:Date.now(),tooltipType:t}))}))(class extends s.a.Component{componentDidMount(){this.props.isOpen&&this.props.onTooltipActivated(S.j.SubscribeIdCard)}render(){const e=this.props;return s.a.createElement(k,I({targetPosition:["left","top"],tooltipPosition:["right","top"],tooltipType:S.j.SubscribeIdCard},e))}}),_=o("./src/reddit/components/SubredditIcon/index.tsx"),T=o("./src/reddit/components/SubscribeButton/index.tsx"),L=o("./src/reddit/components/TrackingHelper/index.tsx"),M=o("./src/reddit/components/Widgets/Base/index.tsx"),A=o("./src/reddit/components/Widgets/ThemedWidget/index.tsx"),E=o("./src/reddit/constants/elementIds.ts"),B=o("./src/reddit/constants/listings.ts"),F=o("./src/reddit/constants/page.ts"),R=o("./src/reddit/helpers/styles/components/index.tsx"),$=o("./src/reddit/helpers/styles/mixins/index.tsx"),D=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),U=o("./src/reddit/helpers/trackers/lightbox.ts"),W=o("./src/reddit/helpers/trackers/modHub.ts"),H=o("./src/reddit/icons/fonts/helpers.tsx"),V=(P="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var s=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&s)for(var i in s)void 0===t[i]&&(t[i]=s[i]);else t||(t=s||{});if(1===r)t.children=n;else if(r>1){for(var d=Array(r),a=0;a<r;a++)d[a]=arguments[a+3];t.children=d}return{$$typeof:P,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});var z=l()(e=>V("i",{className:`${Object(H.b)("modSettings")} ${e.className}`})).withConfig({componentId:"s1nioeso-0"})(["display: inline-block;vertical-align: text-bottom;width: 16px;height: 16px;font-size: 16px;line-height: 16px;"]),q=o("./src/reddit/models/Theme/index.ts"),G=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),K=o("./src/reddit/selectors/category.ts"),J=o("./src/reddit/selectors/comments.ts"),X=o("./src/reddit/selectors/experiments/categories.ts"),Z=o("./src/reddit/selectors/listings.ts"),Q=o("./src/reddit/selectors/moderatorPermissions.ts"),Y=o("./src/reddit/selectors/monthsToMinutes.ts"),ee=o("./src/reddit/selectors/structuredStyles.ts"),te=o("./src/reddit/selectors/subreddit.ts"),oe=o("./src/reddit/selectors/user.ts"),ne=o("./src/reddit/selectors/widgets.ts"),se=o("./src/reddit/components/CommunityType/index.tsx"),re=o("./src/reddit/featureFlags/index.ts"),ie=o("./node_modules/polished/dist/polished.es.js"),de=o("./src/lib/classNames/index.ts"),ae=o("./src/reddit/actions/preferences.ts"),ce=o("./src/reddit/actions/authorFlair.ts"),le=o("./src/reddit/actions/badge.ts"),pe=o("./src/reddit/components/Badges/UserDisplay/index.tsx"),ue=o("./src/reddit/components/Flair/index.tsx"),me=o("./src/reddit/controls/Button/index.tsx"),be=o("./src/reddit/featureFlags/component.tsx"),fe=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),ge=o("./src/reddit/models/User/index.ts"),he=o("./src/reddit/selectors/userFlair.ts"),ve=o("./src/reddit/components/SidebarFlairSettings/index.m.less"),ye=o.n(ve),xe=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Oe=l.a.div.withConfig({componentId:"s1wrnpm8-0"})(["border-top: 1px solid ",";margin-top: 12px;padding-top: 12px;"],e=>Object(G.c)(e).widgetColors.lineColor),we=l.a.div.withConfig({componentId:"s1wrnpm8-1"})(["","align-items: center;background-color: ",";border-radius: 4px;display: flex;flex-direction: row;margin-top: 12px;"],D.metadataFont,e=>Object(G.c)(e).body),je=l()(e=>fe("svg",{className:e.className,viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",version:"1.1"},void 0,fe("title",{id:`${e.title}-title`},void 0,e.title),fe("g",{},void 0,fe("path",{fill:"inherit",d:"M8.1168,3.0832 L10.9168,5.8832 C11.0728,6.0392 11.0728,6.2928 10.9168,6.4488 L4.0824,13.2832 C4.0072,13.3584 3.9056,13.4 3.8,13.4 L1,13.4 C0.7784,13.4 0.6,13.2216 0.6,13 L0.6,10.2 C0.6,10.0944 0.6416,9.9928 0.7168,9.9176 L7.5512,3.0832 C7.7072,2.9272 7.9608,2.9272 8.1168,3.0832 Z M13.5168,2.152 C13.9848,2.62 13.9848,3.3808 13.5168,3.8488 L12.048,5.3176 C11.9696,5.396 11.8672,5.4352 11.7656,5.4352 C11.6632,5.4352 11.5608,5.396 11.4824,5.3176 L8.6824,2.5176 C8.5264,2.3616 8.5264,2.108 8.6824,1.952 L10.1512,0.4832 C10.6192,0.0152 11.38,0.0152 11.848,0.4832 L13.5168,2.152 Z"})))).withConfig({componentId:"s1wrnpm8-2"})(["color: ",";fill: ",";height: 14px;width: 14px;"],e=>Object(G.c)(e).button,e=>Object(G.c)(e).button),Se=l.a.div.withConfig({componentId:"s1wrnpm8-3"})(["","display: flex;justify-content: space-between;"],D.labelsFont),Ce=l()(ue.c).withConfig({componentId:"s1wrnpm8-4"})(["margin-left: 8px;"]),Ie=l()(me.l).withConfig({componentId:"s1wrnpm8-5"})(["display: flex;margin-left: auto;"]),ke=l()(Ie).withConfig({componentId:"s1wrnpm8-6"})(["padding: 0px;"]),Pe=l.a.span.withConfig({componentId:"s1wrnpm8-7"})(["color: ",";flex: 0 0 auto;line-height: 16px;"],e=>Object(G.c)(e).bodyText),Ne=Object(be.a)("spBadges",pe.a),_e=Object(a.createStructuredSelector)({badgesEnabled:re.d.spBadges,currentUser:oe.j,language:oe.M,userFlairData:he.b,userHasBadge:(e,t)=>{const o=e.user.account;if(o){return!!((e.users.appliedBadges[o.id]||{})[t.subredditId]||[]).length}return!1}}),Te=Object(r.connect)(_e,(e,{subredditId:t})=>({onToggleModal:o=>e(Object(ce.b)({username:o,subredditId:t})),onToggleBadgeModal:()=>e(Object(le.j)())})),Le=e=>xe(ke,{onClick:e.onClick},void 0,xe(je,{})),Me=e=>xe(Ie,{onClick:e.onClick},void 0,e.userFlairData.displaySettings.isEnabled?e.userFlairData.applied||e.userHasBadge?Object(p.a)(e.language,"flair.editUserFlairAndBadge"):Object(p.a)(e.language,"flair.addUserFlairAndBadge"):e.userHasBadge?Object(p.a)(e.language,"flair.editUserBadge"):Object(p.a)(e.language,"flair.addUserBadge"));var Ae=Te(Object(L.b)(class extends s.a.Component{constructor(){super(...arguments),this.onFlairLinkClick=(()=>{const e=this.props.currentUser?Object(ge.f)(this.props.currentUser):null;this.props.onToggleModal(e),this.props.sendEvent(Object(U.c)("user_flair_picker"))})}render(){var e=this.props;const t=e.badgesEnabled,o=e.currentUser,n=e.language,s=e.onToggleBadgeModal,r=e.subredditId,i=e.userFlairData,d=e.userHasBadge;return o&&i?xe(Oe,{},void 0,xe(Se,{},void 0,Object(p.a)(n,"flair.preview"),xe(Le,{onClick:this.onFlairLinkClick})),xe(we,{},void 0,d&&xe(Ne,{className:ye.a.badge,subredditId:r,uniqueIdentifier:r}),xe(Pe,{},void 0,`u/${o.displayText}`),i.applied&&i.displaySettings.isUserEnabled&&xe(Ce,{flair:i.applied,forceSmallEmojis:!0})),t?xe(Me,{userFlairData:i,userHasBadge:d,language:n,onClick:s}):null):null}})),Ee=o("./src/reddit/controls/ToggleSwitch/index.tsx"),Be=o("./src/reddit/helpers/trackers/idCard.ts"),Fe=o("./src/reddit/icons/svgs/ChevronDown/index.tsx"),Re=o("./src/reddit/icons/svgs/ChevronUp/index.tsx"),$e=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),De=e=>$e("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,$e("path",{d:"M17.71,10.29,14.95,7.54a7,7,0,0,0-9.9,0L2.29,10.29a1,1,0,0,0,1.41,1.41L6.46,8.95c.07-.07.14-.11.21-.17a4,4,0,1,0,6.65,0c.07.06.15.11.21.17l2.76,2.76a1,1,0,0,0,1.41-1.41Z"})),Ue=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),We=e=>Ue("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,Ue("path",{d:"M4.59 8l-2.3 2.29A1 1 0 0 0 3.7 11.7L6 9.41zM6 11a4 4 0 0 0 5.34 3.75l-5.1-5.1A4 4 0 0 0 6 11zM18.71 17.29l-5-5A3.87 3.87 0 0 0 14 11a4 4 0 0 0-.68-2.22c.07.06.15.11.21.17l2.76 2.76a1 1 0 0 0 1.41-1.41l-2.75-2.76A7 7 0 0 0 7.42 6L2.71 1.29a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.41-1.41z"})),He=o("./src/reddit/components/IdCard/CommunityOptions/index.m.less"),Ve=o.n(He),ze=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const qe=l.a.div.withConfig({componentId:"s1p4e6h4-0"})(["border-top: 1px solid ",";"],e=>Object(G.c)(e).widgetColors.lineColor),Ge=l()(me.l).withConfig({componentId:"s1p4e6h4-1"})(["","color: ",";fill: ",";&:hover {color: ",";fill: ",";}&:active {color: ",";fill: ",";}&:disabled,&[disabled],&[data-disabled] {color: ",";fill: ",";cursor: not-allowed;}"],D.labelsFont,e=>Object(G.c)(e).bodyText,e=>Object(G.c)(e).bodyText,e=>Object(ie.g)(.8,Object(G.c)(e).bodyText),e=>Object(ie.g)(.8,Object(G.c)(e).bodyText),e=>Object(ie.g)(.8,Object(G.c)(e).bodyText),e=>Object(ie.g)(.8,Object(G.c)(e).bodyText),e=>Object(ie.e)(Object(G.c)(e).bodyText,.5),e=>Object(ie.e)(Object(G.c)(e).bodyText,.5)),Ke=Object(a.createStructuredSelector)({language:oe.M,stylesDisabledGlobally:oe.Z,stylesDisabledForSubreddit:oe.Y});var Je=Object(r.connect)(Ke,e=>({updateSubredditPrefs:(t,o)=>{e(Object(ae.D)(t,o))}}))(class extends s.a.Component{constructor(e){super(e),this.onContainerClick=(e=>{e.stopPropagation()}),this.onExpandButtonClick=(()=>{this.setState({isOpen:!this.state.isOpen})}),this.onToggleStylesSwitch=(()=>{const e=!!this.props.stylesDisabledForSubreddit;this.props.sendEvent(Object(Be.c)(e)),this.props.updateSubredditPrefs(this.props.subredditId,{stylesEnabled:e})}),this.state={isOpen:!1}}render(){var e=this.props;const t=e.isOverlay,o=e.language,n=e.stylesDisabledForSubreddit,s=e.stylesDisabledGlobally,r=e.subredditId,i=this.state.isOpen,d=i?ze("div",{className:Ve.a.content},void 0,ze("div",{className:Object(de.a)(Ve.a.stylesToggle,{[Ve.a.disabled]:s}),title:s?Object(p.a)(o,"sidebar.subreddit.communityTheme.disabledTitle"):void 0},void 0,ze("label",{className:Ve.a.stylesToggleLabel},void 0,ze(n?We:De,{}),Object(p.a)(o,"sidebar.subreddit.communityTheme.label")),ze(Ee.a,{disabled:s,on:!n,onToggle:this.onToggleStylesSwitch})),!t&&ze(Ae,{subredditId:r})):null;return ze(qe,{className:Ve.a.container,onClick:this.onContainerClick},void 0,ze(Ge,{className:Ve.a.expandButton,onClick:this.onExpandButtonClick},void 0,Object(p.a)(o,"sidebar.subreddit.communityOptions"),ze(i?Re.a:Fe.a,{})),d)}}),Xe=o("./src/reddit/components/IdCard/helpers.ts"),Ze=o("./src/reddit/components/IdCard/Placeholder.tsx"),Qe=o("./src/reddit/components/IdCard/index.m.less"),Ye=o.n(Qe);o.d(t,"e",function(){return ot}),o.d(t,"a",function(){return nt}),o.d(t,"b",function(){return gt}),o.d(t,"f",function(){return It}),o.d(t,"c",function(){return kt});var et=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},tt=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const ot=e=>!Object(u.a)(e)||Object(Xe.c)(e)||Object(Xe.d)(e)||Object(Xe.f)(e)||Object(Xe.e)(e),nt=l()(Object(R.a)()).withConfig({componentId:"s1bd5ppi-0"})(["background: ",";border-radius: 4px 4px 0 0;height: 34px;margin: -12px -12px 10px;"],e=>Object(q.g)(Object(G.c)(e).active,e.bannerBackgroundImage||Object(G.c)(e).banner.backgroundImage,"cover")),st=l.a.div.withConfig({componentId:"s1bd5ppi-1"})(["align-items: center;display: flex;& > * {display: inline-block;vertical-align: middle;}"]),rt=l()(st).withConfig({componentId:"s1bd5ppi-2"})(["margin-top: -23px;"]),it=l()(({className:e,children:t,shouldRenderSuperbOwlIcon:o})=>tt("div",{className:e,title:o?"r/SuperbOwl":""},void 0,t)).withConfig({componentId:"s1bd5ppi-3"})(["background: ",";background-size: ","px ","px;display: inline-block;flex-shrink: 0;height: ","px;position: relative;width: ","px;"],e=>e.snooBackground.image,e=>e.snooBackground.width,e=>e.snooBackground.height,e=>e.snooBackground.height,e=>e.snooBackground.width),dt=l()(i.a).withConfig({componentId:"s1bd5ppi-4"})(["flex: 1 1 auto;overflow: hidden;text-overflow: ellipsis;&:hover {text-decoration: underline;}"]),at=l.a.span.withConfig({componentId:"s1bd5ppi-5"})(["","display: inline-block;"],D.titleFontH4),ct=l.a.div.withConfig({componentId:"s1bd5ppi-6"})(["margin-left: 10px;margin-top: ","px;"],e=>e.hasSecondaryTitle?35:30),lt=l()(at).withConfig({componentId:"s1bd5ppi-7"})(["color: ",";",""],e=>Object(G.c)(e).actionIcon,D.metadataFont),pt=l.a.div.withConfig({componentId:"s1bd5ppi-8"})(["display: flex;margin: 8px 0;& > * {flex: 1;}"]),ut=l.a.div.withConfig({componentId:"s1bd5ppi-9"})(["border-left: 1px solid ",";padding-left: 12px;"],e=>Object(G.c)(e).widgetColors.lineColor),mt=l.a.p.withConfig({componentId:"s1bd5ppi-10"})(["",""],D.titleFontH4),bt=l.a.p.withConfig({componentId:"s1bd5ppi-11"})(["","display: inline-block;word-break: break-word;"],D.titleFontH6),ft=l()(M.a).withConfig({componentId:"s1bd5ppi-12"})(["margin-top: 10px;"]),gt=l.a.p.withConfig({componentId:"s1bd5ppi-13"})(["","margin-top: 8px;word-wrap: break-word;"],D.bodyFont),ht=l.a.div.withConfig({componentId:"s1bd5ppi-14"})(["margin-top: 12px;"]),vt="\n display: block;\n width: 100%;\n",yt=l()(T.a).withConfig({componentId:"s1bd5ppi-15"})(["",";margin-bottom: 8px;"],vt),xt=l()(h.a).withConfig({componentId:"s1bd5ppi-16"})(["",";","padding: 0 16px;"],vt,D.largeButtonFont),Ot=l()(g.a).withConfig({componentId:"s1bd5ppi-17"})(["",";","margin-top: 11px;"],$.e,D.largeButtonFont),wt=l()(z).withConfig({componentId:"s1bd5ppi-18"})(["margin-right: 4px;vertical-align: middle;"]),jt=l()(i.a).withConfig({componentId:"s1bd5ppi-19"})(["border-radius: 4px;margin: 6px 0px 6px auto;padding: 4px;"]),St=l.a.div.withConfig({componentId:"s1bd5ppi-20"})(["border-top: 1px solid ",";margin-top: 10px;"],e=>Object(G.c)(e).widgetColors.lineColor),Ct=Object(r.connect)(()=>Object(a.createStructuredSelector)({postCategories:(e,t)=>Object(K.o)(e,t.postId),commentsApiError:J.c,commentsApiPending:J.d,frontpageIsHome:Y.j,idCardWidget:(e,t)=>Object(ne.c)(e,{subredditName:t.listingName}),isLoggedIn:oe.F,language:oe.M,listingApiError:Z.c,listingApiPending:Z.d,moderatorPermissions:(e,t)=>{const o=Object(te.z)(e,t.listingName);if(o)return Object(Q.g)(e,{subredditId:o})},isInCategoriesExperiment:X.a,shouldRenderSuperbOwlIcon:re.d.superbOwl,subreddit:(e,t)=>Object(te.v)(e,{subredditName:t.listingName}),subredditIcon:(e,t)=>Object(ee.o)(e,{subredditName:t.listingName}),subscribeIdTooltipIsOpen:Y.B}),(e,t)=>({dispatchPush:t=>e(Object(d.b)(t)),toggleTooltip:t=>e(Object(b.e)({tooltipId:t}))}),(e,t,o)=>Object.assign({},e,t,o,{onContainerClick:()=>o.isOverlay&&t.dispatchPush(e.subreddit.url)}));const It=({titleText:e,titleSecondaryText:t,snooBackground:o,shouldRenderSuperbOwlIcon:n})=>tt(rt,{},void 0,tt(it,{snooBackground:o,shouldRenderSuperbOwlIcon:n}),tt(ct,{hasSecondaryTitle:!!t},void 0,tt(at,{},void 0,e),t&&tt(lt,{},void 0,t))),kt=e=>{const t=e.isTargetBlank,o=e.largeSubredditIcon,n=e.linkUrl,r=e.subredditIcon,i=e.titleText,d=e.primaryColor;return tt(st,{className:e.className},void 0,tt(_.b,{className:o?Ye.a.largeSubredditIcon:Ye.a.subredditIcon,iconUrl:r.url,primaryColor:d},r.url),n?s.a.createElement(dt,et({key:n,to:n,onClick:e=>e.stopPropagation()},t?{target:"_blank"}:{}),tt(at,{title:i},void 0,i)):tt(at,{},i,i))},Pt=(e,t,o,n,s,r,i,d)=>tt(pt,{},void 0,tt("div",{onMouseEnter:()=>d(n),onMouseLeave:()=>d(n)},void 0,tt(mt,{},void 0,Object(m.b)(t)),tt(bt,{id:n},void 0,o),tt(v.c,{caretOnTop:!0,text:`${Object(m.b)(t,!0)} ${o}`,tooltipId:n})),tt(ut,{onMouseEnter:()=>d(i),onMouseLeave:()=>d(i)},void 0,tt(mt,{},void 0,Object(m.b)(s)),tt(bt,{id:i},void 0,r),tt(v.c,{caretOnTop:!0,text:`${Object(m.b)(s,!0)} ${r}`,tooltipId:i}))),Nt=e=>tt(gt,{},void 0,e),_t=({isFake:e,isOverlay:t,isLoggedIn:o,isSubmissionPage:n,language:s,listingName:r,subreddit:i})=>tt(ht,{},void 0,!e&&tt(yt,{getEventFactory:e=>Object(U.c)(e?"unsubscribe":"subscribe"),id:`subscribe-button-${i.id}`,identifier:{name:i.name,type:"subreddit"},onClick:e=>e.stopPropagation()}),!n&&!t&&tt(xt,{listingName:r,subreddit:i}),o&&!n&&!t&&!i&&r!==F.j&&tt(Ot,{eventSource:"id_card",language:s}));t.d=Object(L.b)(Ct(Object(c.withTheme)(class extends s.a.Component{constructor(){super(...arguments),this.onClickModTools=(()=>this.props.sendEvent(Object(W.a)()))}render(){var e=this.props;const t=e.className,o=e.commentsApiError,n=e.commentsApiPending,r=e.frontpageIsHome,i=e.idCardWidget,d=e.isCommentsPage,a=e.isInCategoriesExperiment,c=e.isLoggedIn,l=e.isOverlay,m=e.isSubmissionPage,b=e.language,g=e.listingApiError,h=e.listingApiPending,v=e.listingName,y=e.moderatorPermissions,x=e.onContainerClick,O=e.postCategories,w=e.postId,j=e.shouldRenderSuperbOwlIcon,S=e.subreddit,C=e.subredditIcon,I=e.subscribeIdTooltipIsOpen,k=e.toggleTooltip;let P=v;c||v!==F.c||r||(P=B.b.Popular);const _=Object(u.a)(P);if(!_&&!i)return tt(Ze.a,{isLoading:n&&!o||h&&!g});var T=Object(Xe.a)({language:b,listingName:P,subreddit:S,idCardWidget:i,shouldRenderSuperbOwlIcon:j});const L=T.bannerBackgroundImage,M=T.currentlyViewingCount,R=T.currentlyViewingText,$=T.description,D=T.snooBackground,U=T.subscribersCount,W=T.subscribersText,H=T.titleText,V=T.titleSecondaryText,z=T.url,q=_||l||m,G=!_&&S.id?S.id:"",K=`IdCard--Subscribers--${l}--${G}`,J=`IdCard--CurrentlyViewing--${l}--${G}`;return tt(s.a.Fragment,{},void 0,tt(A.a,{className:t,onClick:l?x:void 0,headerButton:!q&&S&&y&&tt(jt,{to:y.posts?`${S.url}about/modqueue`:`${S.url}about/`,onClick:this.onClickModTools},void 0,tt(wt,{}),Object(p.a)(b,"modTools.modTools")),redditStyle:_||m,title:q?void 0:Object(p.a)(b,"sidebar.subreddit.title")},void 0,q&&tt(nt,{bannerBackgroundImage:L}),_?It({titleText:H,titleSecondaryText:V,snooBackground:D,shouldRenderSuperbOwlIcon:j}):tt(kt,{isTargetBlank:m,linkUrl:_?void 0:z,subredditIcon:C,titleText:H}),!_&&Pt(b,U,W,K,M,R,J,k),!_&&tt(se.a,{type:S.type,isNSFW:S.isNSFW,allowContractors:S.allowContractors,isQuarantined:S.isQuarantined}),Nt($),_t({isFake:_,isLoggedIn:c,isOverlay:l,isSubmissionPage:m,language:b,listingName:P,subreddit:S}),a&&O&&w&&(d||l)&&tt(St,{},void 0,tt(ft,{},void 0,Object(p.a)(b,"sidebar.categoryTag.discoverMore")),tt(f.a,{postId:w,inLightboxHeader:!0,postCategories:O})),!_&&c&&tt(Je,{isOverlay:l,sendEvent:this.props.sendEvent,subredditId:S.id})),!_&&tt(N,{container:l?document.getElementById(E.d):null,isOpen:I,isOverlay:l,tooltipId:`subscribe-button-${S.id}`}))}})))},"./src/reddit/components/IdCard/placeholder.m.less":function(e,t,o){e.exports={container:"_1KWSZXqSM_BLhBzkPyJFGR",banner:"c_dVyWK3BXRxSN3ULLJ_t",title:"_1OQL3FCA9BfgI57ghHHgV3",icon:"_33jgwegeMTJ-FJaaHMeOjV",name:"_1wQQNkVR4qNpQCzA19X4B6",counts:"_39IvqNe6cqNVXcMFxFWFxx",side:"_29TSdL_ZMpyzfQ_bfdcBSc",count:"JEV9fXVlt_7DgH-zLepBH",text:"_3YCOmnWpGeRBW_Psd5WMPR",desc:"_2iO5zt81CSiYhWRF9WylyN",one:"_2E9u5XvlGwlpnzki78vasG",two:"fDElwzn43eJToKzSCkejE",three:"_2kNB7LAYYqYdyS85f8pqfi",four:"_1XmngqAPKZO_1lDBwcQrR7",subscribe:"_3XbVvl-zJDbcDeEdSgxV4_"}},"./src/reddit/components/InfoBanners/BannerBase/index.m.less":function(e,t,o){e.exports={IconWrapper:"_2p07tPrx9WpxDTQJ5cmVNe",iconWrapper:"_2p07tPrx9WpxDTQJ5cmVNe",TextWrapper:"_2jpm-rNr0Hniw6BX3NWMVe",textWrapper:"_2jpm-rNr0Hniw6BX3NWMVe"}},"./src/reddit/components/InfoBanners/BannerBase/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(s),i=o("./src/reddit/helpers/styles/components/index.tsx"),d=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),a=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),c=o("./src/reddit/components/InfoBanners/BannerBase/index.m.less"),l=o.n(c),p=o("./src/lib/lessComponent.tsx"),u=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const m=Object(s.css)(["","color: ",";"],d.metadataFont,e=>Object(a.c)(e).bodyText),b=p.a.div("IconWrapper",l.a),f=r()(Object(i.a)()).withConfig({componentId:"s1nw2m0g-0"})(["background-color: ",";display: inline-block;width: 8px;position: absolute;top: 0;bottom: 0;"],e=>e.color),g=r.a.div.withConfig({componentId:"s1nw2m0g-1"})(["",""],m),h=p.a.div("TextWrapper",l.a),v=r.a.div.withConfig({componentId:"s1nw2m0g-2"})(["","font-weight: bold;"],m),y=r()(Object(i.a)()).withConfig({componentId:"s1nw2m0g-3"})(["background-color: ",";border: 1px solid ",";border-radius: 4px;position: relative;display: flex;"],e=>Object(a.c)(e).body,e=>e.color);t.a=(e=>{const t=e.className,o=e.color,n=e.icon,s=e.subtitle,r=e.title;return u(y,{className:t,color:o},void 0,u(f,{color:o}),n&&u(b,{},void 0,n),u(h,{},void 0,u(v,{},void 0,r),s&&u(g,{},void 0,s)))})},"./src/reddit/components/InfoBanners/QuarantinedSubredditBanner/index.m.less":function(e,t,o){e.exports={container:"_3UJGTKmHd4TVKyOdhiMAJ1",rawHtmlDisplay:"s2P-f2c3l2Irco5Ru0S5J",link:"_1eRb8-B7kEgkwxWFSWuVUk",icon:"WCZvfrkaO-Zq7vsDKOAdS"}},"./src/reddit/components/InfoBanners/QuarantinedSubredditBanner/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./node_modules/react-redux/es/index.js"),r=o("./node_modules/reselect/lib/index.js"),i=o("./src/app/strings/index.ts"),d=o("./src/reddit/components/RawHTMLDisplay/index.tsx"),a=o("./src/reddit/constants/colors.ts"),c=o("./src/reddit/controls/InternalLink/index.tsx"),l=o("./src/reddit/icons/svgs/QuarantineWarning/index.tsx"),p=o("./src/reddit/selectors/subreddit.ts"),u=o("./src/reddit/selectors/user.ts"),m=o("./src/reddit/components/InfoBanners/BannerBase/index.tsx"),b=o("./src/reddit/components/InfoBanners/QuarantinedSubredditBanner/index.m.less"),f=o.n(b),g=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const h=g(l.a,{className:f.a.icon}),v=Object(r.createStructuredSelector)({language:u.M,subreddit:p.v,subredditAboutInfo:p.s}),y=Object(s.connect)(v);t.a=y(e=>{const t=e.subreddit,o=e.subredditAboutInfo,n=e.language;if(!t||!t.isQuarantined)return null;const s=o&&o.quarantineMessageHtml,r=o&&o.quarantineMessage||Object(i.a)(n,"contentGate.quarantinedSubreddit.quarantineMsg");return g(m.a,{className:f.a.container,color:a.a.quarantine,icon:h,subtitle:g("span",{},void 0,Object(i.a)(n,"contentGate.quarantinedSubreddit.subtitle")," ",g("a",{className:f.a.link,href:"https://www.reddithelp.com/en/categories/reddit-101/rules-reporting/account-and-community-restrictions/quarantined-subreddits",target:"_blank"},void 0,Object(i.a)(n,"contentGate.quarantinedSubreddit.quarantined")),": ",s?g(d.a,{className:f.a.rawHtmlDisplay,html:s}):r," ",g(c.a,{className:f.a.link,to:"/"},void 0,Object(i.a)(n,"contentGate.quarantinedSubreddit.clickToGoHome"))),title:Object(i.a)(n,"contentGate.quarantinedSubreddit.bannerTitle")})})},"./src/reddit/components/LargePost/index.m.less":function(e,t,o){e.exports={backgroundWrapper:"_11R7M_VOgKO1RJyRSRErT3",flatListContainer:"_1ixsU4oQRnNfZ91jhBU74y",noProposal:"_3KYCJ3N4w1YmvpFMo_3zcn",postMediaWrapper:"STit0dLageRsa2yR4te_b",postTitle:"_3wiKjmhpIpoTE2r5KCm2o6",proposal:"_2dkCPUHQTdBWU2B0dYnkRb",hasNotVoted:"_3COAjvFMb0tRTTAI3nxufG"}},"./src/reddit/components/LargePost/index.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),s=o.n(n),r=o("./node_modules/react-redux/es/index.js"),i=o("./node_modules/reselect/lib/index.js"),d=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(d),c=o("./src/config.ts"),l=o("./src/reddit/constants/screenWidths.ts"),p=o("./src/reddit/helpers/hasModFlairPermissions/index.ts"),u=o("./src/reddit/helpers/hasModPostPermissions/index.ts"),m=o("./src/reddit/helpers/showReportIndicator/index.ts"),b=o("./src/reddit/helpers/styles/mixins/index.tsx"),f=o("./src/app/actions/tooltip.ts"),g=o("./src/reddit/actions/post.ts"),h=o("./src/reddit/models/Media/index.ts"),v=o("./src/reddit/models/Poll/index.ts"),y=o("./src/reddit/models/Vote/index.ts"),x=o("./src/reddit/selectors/activeModalId.ts"),O=o("./src/reddit/selectors/experiments/subscribeText.ts"),w=o("./src/reddit/selectors/moderatorPermissions.ts"),j=o("./src/reddit/selectors/monthsToMinutes.ts"),S=o("./src/reddit/selectors/posts.ts"),C=o("./src/reddit/selectors/user.ts"),I=o("./src/lib/classNames/index.ts"),k=o("./src/reddit/components/AdLinkWrapper/index.tsx"),P=o("./src/reddit/components/CallToActionButton/index.tsx"),N=o("./src/reddit/components/CompactPost/HorizontalVotes.tsx"),_=o("./src/reddit/components/Flatlist/index.tsx"),T=o("./src/reddit/components/Governance/Proposal/index.tsx"),L=o("./src/reddit/components/Governance/Proposal/NoProposalError/index.tsx"),M=o("./src/reddit/components/JSAPIContainers/index.tsx"),A=o("./src/reddit/components/ModModeReports/index.tsx"),E=o("./src/reddit/components/ModModeReports/helpers.ts"),B=o("./src/higherOrderComponents/addOverlayEvents.tsx"),F=o("./src/higherOrderComponents/asTooltip.tsx"),R=o("./src/reddit/models/MonthsToMinutes/index.ts"),$=o("./src/reddit/components/MonthsToMinutesTooltip/index.tsx"),D=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 U=Object(F.a)(a()($.a).withConfig({componentId:"s1yf5o0c-0"})(["margin-left: 8px;margin-top: 0;&:before {left: 0%;top: 11px;}"]),[B.a.Click,B.a.Keydown,B.a.Resize]);var W=e=>s.a.createElement(U,D({targetPosition:["right","top"],tooltipPosition:["left","top"],tooltipType:R.j.Vote},e)),H=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 V=Object(F.a)(a()($.a).withConfig({componentId:"s1itkp8f-0"})(["margin-left: 8px;margin-top: 0;&:before {left: 0%;top: 11px;}"]),[B.a.Click,B.a.Keydown,B.a.Resize]);var z=e=>s.a.createElement(V,H({targetPosition:["right","top"],tooltipPosition:["left","top"],tooltipType:R.j.VoteReminder},e)),q=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 G=Object(F.a)(a()($.a).withConfig({componentId:"s1dt2fx5-0"})(["margin-left: 8px;margin-top: 0;&:before {left: 0%;top: 11px;}"]),[B.a.Click,B.a.Keydown,B.a.Resize]);var K,J=e=>s.a.createElement(G,q({targetPosition:["right","top"],tooltipPosition:["left","top"],tooltipType:R.j.VoteSuccess},e)),X=(K="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var s=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&s)for(var i in s)void 0===t[i]&&(t[i]=s[i]);else t||(t=s||{});if(1===r)t.children=n;else if(r>1){for(var d=Array(r),a=0;a<r;a++)d[a]=arguments[a+3];t.children=d}return{$$typeof:K,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const Z=Object(i.createStructuredSelector)({voteReminderTooltipId:j.E,voteSuccessTooltipId:j.F,voteTooltipId:j.G});var Q=Object(r.connect)(Z)(e=>e.postId?X(s.a.Fragment,{},void 0,X(W,{isOpen:e.voteTooltipId===e.postId,tooltipId:e.tooltipId}),X(z,{isOpen:e.voteReminderTooltipId===e.postId,tooltipId:e.tooltipId}),X(J,{isOpen:e.voteSuccessTooltipId===e.postId,tooltipId:e.tooltipId})):null),Y=o("./src/reddit/components/PostBackgroundWrapper/index.tsx"),ee=o("./src/reddit/components/PostContainer/index.tsx"),te=o("./src/reddit/components/PostLeftRail/index.tsx"),oe=o("./src/reddit/components/PostMedia/index.tsx"),ne=o("./src/reddit/components/PostOverflowMenu/index.tsx"),se=o("./src/reddit/components/PostTitle/index.tsx"),re=o("./src/reddit/components/PostTopLine/index.tsx"),ie=o("./src/reddit/components/SourceLink/index.tsx"),de=o("./src/reddit/components/VerticalVotes/index.tsx"),ae=o("./src/reddit/contexts/InsideOverlay.tsx"),ce=o("./src/reddit/contexts/PageLayer/index.tsx"),le=o("./src/reddit/controls/Checkbox/index.tsx"),pe=o("./src/reddit/controls/OutboundLink/styled.tsx"),ue=o("./src/reddit/helpers/styles/mixins/responsive.ts"),me=o("./src/reddit/helpers/styles/postBackgroundColor.ts"),be=o("./src/reddit/helpers/styles/smartTextColor.ts"),fe=o("./src/reddit/components/LargePost/index.m.less"),ge=o.n(fe);o.d(t,"b",function(){return Oe});var he=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const ve=a()(k.a).withConfig({componentId:"s1d8yj03-0"})(["height: 43px;"]),ye=a()(N.a).withConfig({componentId:"s1d8yj03-1"})(["max-height: 24px;",""],ue.a),xe=Object(r.connect)(()=>Object(i.createStructuredSelector)({autoplayPref:C.b,activeModalId:x.a,currentUser:C.j,hideNSFWPref:C.x,flairStyleTemplate:ce.S,isFrontpageHome:j.j,language:C.M,inlineSubscribeIsEnabled:O.a,isActive:S.f,moderatorPermissions:w.f,modModeEnabled:ce.Q,poll:(e,t)=>{const o=e.posts.metaMap[t.postId];return o?e.polls.models[o]:null},pollResult:(e,t)=>{const o=e.posts.metaMap[t.postId];return o?e.polls.results.byVoters[o]:null},post:S.D,subredditOrProfile:S.O,userIsOp:C.db}),(e,{postId:t})=>({handleVote:o=>{const n=o===y.a.upvoted?Object(g.J)(t):Object(g.n)(t);e(n)},onIgnoreReports:()=>e(Object(g.H)(t)),onOpenReportsDropdown:t=>e(Object(f.e)({tooltipId:t}))})),Oe=(e,t,o=!1,n=!1,s=(()=>{}),r)=>{const i=`upvote-button-${e.id}`;return he(te.b,{isRemoved:!!e.bannedBy,isReported:Object(m.a)(e),isSponsored:e.isSponsored},void 0,o&&he(le.a,{isCheckboxSelected:n,toggleCheckbox:s}),he(de.a,{flairStyleTemplate:r,model:e,onVoteClick:t,upvoteTooltipId:i}),he(Q,{postId:e.id,tooltipId:i}))};t.a=xe(a()(Object(ae.b)(e=>{const t=e.autoplayPref,o=e.availableWidth,n=e.className,s=e.currentUser,r=e.eventFactory,i=e.flairStyleTemplate,d=e.forceLoadMedia,a=e.hideNSFWPref,l=e.inlineSubscribeIsEnabled;var m=e.inSubredditOrProfile;const b=void 0!==m&&m,f=e.isFrontpage,g=e.isFrontpageHome,y=e.isOriginalPage,x=e.isOverlay,O=e.language,w=e.moderatorPermissions,j=e.modModeEnabled,S=e.onClickPost,C=e.onIgnoreReports,k=e.onOpenReportsDropdown,N=e.poll,B=e.pollResult,F=e.post,R=e.scrollerItemRef,$=e.subredditOrProfile,D=e.userIsOp,U=Object(u.a)(w),W=j&&U,H=Object(p.a)(w),V=Object(E.c)(F),z=!!F.media&&F.media.type===h.m.RTJSON,q="subreddit"===F.belongsTo.type,G=D&&z,K=D&&!!q,J=o?o-te.a:void 0,X=!!B&&!!Object.keys(B.options).filter(e=>B.options[e].userSelected).length,Z=l&&!(f&&g);return he(ee.a,{className:n,post:F,onClick:S,eventFactory:r},void 0,Oe(F,e.handleVote,e.showBulkActionCheckbox,e.isCheckboxSelected,e.toggleCheckbox,i),he(Y.b,{className:ge.a.backgroundWrapper,flairStyleTemplate:i},void 0,he(re.a,{hideNSFWPref:a,inSubredditOrProfile:b,isOverlay:!!x,language:O,post:F,shouldShowSubscribeButton:Z,showOCCategories:y,showSubreddit:!b&&!F.isSponsored,subredditOrProfile:$}),he(se.c,{className:ge.a.postTitle,post:F,size:se.b.Large,titleColor:i&&i.postTitleColor,isOverlay:x}),F.source&&!F.isSponsored&&he(ie.a,{post:F}),he("div",{className:Object(I.a)(ge.a.postMediaWrapper,{[ge.a.votedContent]:X})},void 0,he(oe.a,{isListing:!0,isNotCardView:!!x,showCentered:!0,flairStyleTemplate:i,post:F,availableWidth:J,shouldLoad:d,scrollerItemRef:R,autoplayPref:t})),N&&he(T.a,{className:Object(I.a)(ge.a.proposal,{[ge.a.hasNotVoted]:!B||!Object(v.e)(N,B)}),pollId:N.id,subredditId:F.belongsTo.id}),F.isMeta&&!N&&he(L.a,{className:ge.a.noProposal}),F.source&&F.source.url&&F.isSponsored&&he(ve,{},void 0,he(pe.a,{href:F.source.url.replace(c.a.redditUrl,""),isSponsored:F.isSponsored,source:F.source},void 0,F.source.displayText),F.callToAction&&he(P.a,{href:F.source.url.replace(c.a.redditUrl,""),isSponsored:F.isSponsored,source:F.source},void 0,F.callToAction)),j&&U&&V&&he(A.a,{language:O,onIgnoreReports:C,reportable:F}),he(M.d,{postId:F.id}),he("div",{className:ge.a.flatListContainer},void 0,he(ye,{compact:!1,flairStyleTemplate:i,model:F,onVoteClick:e.handleVote}),he(_.c,{currentUser:s,hasModFlairPerms:H,hasModPostPerms:U,isOverlay:!!x,language:O,modModeEnabled:j,onIgnoreReports:C,onOpenReportsDropdown:k,post:F,showEditPost:G,showEditFlair:K,useFlatlistBreakpoints:Object(ne.h)({editPost:!W,save:!W,hide:!1,report:!1})}))))})).withConfig({componentId:"s1d8yj03-2"})(["","","","","","",";@media (min-width: ","px) {padding-left: 40px;border-radius: 4px;}cursor: pointer;."," {color: ",";}"],_.d,b.m,b.n,Y.a,T.b,e=>Object(b.j)(e.flairStyleTemplate),l.i,ge.a.proposalMetaData,e=>Object(be.a)(Object(me.a)(e))))},"./src/reddit/components/LayoutNavigation/ConsiderateNav.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),s=o.n(n),r=o("./node_modules/react-redux/es/index.js"),i=o("./node_modules/reselect/lib/index.js"),d=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(d),c=o("./src/reddit/constants/componentSizes.ts"),l=o("./src/reddit/constants/postLayout.ts"),p=o("./src/reddit/constants/screenWidths.ts"),u=o("./src/reddit/constants/zIndex.ts"),m=o("./src/reddit/contexts/PageLayer/index.tsx");const b=Object(m.w)(),f=Object(i.createStructuredSelector)({layout:m.O}),g=Object(r.connect)(f);t.a=b(g(a()(class extends s.a.Component{constructor(e){super(e),this.onClickIcon=(e=>{if(void 0===this.state.left){const e=this.ref.offsetLeft;this.setState({left:e})}}),this.onMouseEnter=(()=>{this.state.mouseInside||this.setState({mouseInside:!0})}),this.onMouseLeave=(()=>{this.state.mouseInside&&this.setState({left:void 0,mouseInside:!1})}),this.ref=null,this.state={left:void 0,mouseInside:!1}}componentWillReceiveProps(e){0!=e.offsetLeft-this.props.offsetLeft&&(this.noTransition=!0)}componentDidUpdate(){this.noTransition&&(this.noTransition=!1)}render(){return s.a.createElement("div",{className:this.props.className,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseMove:this.onMouseEnter,ref:e=>this.ref=e,style:{left:this.state.left||void 0,transition:this.noTransition?"initial":void 0}},this.props.render(this.onClickIcon))}}).withConfig({componentId:"s1dqsdhz-0"})(["align-items: center;display: flex;height: 40px;left: ","px;position: absolute;right: 12px;transition: left 300ms ease-in-out; ","","z-index: ",";","@media(min-width: ","px) {left: ","px;right: ","px;}@media(min-width: ","px) {","}","@media(max-width: ","px) {left: 8px;}"],e=>e.offsetLeft+12,"","",u.e,"",p.i,e=>e.offsetLeft+c.x,c.x,p.g,e=>e.considerSidebar?`right: ${c.x+c.E+c.F}px;`:"",e=>{if(e.layout!==l.f.Large)return"";const t=e.offsetLeft+2*c.x+c.E+c.F,o=p.c-t,n=c.k-o,s=e.considerSidebar?c.F:c.k+c.E+c.F;return`\n @media(min-width: ${p.c+n+(e.bladeOpen?c.b:0)}px) {\n left: calc(((100% + ${e.offsetLeft}px) - ${c.k+c.E+c.F}px) / 2);\n right: calc(((100% - ${e.offsetLeft}px) - ${s}px) / 2);\n }\n `},p.i-1)))},"./src/reddit/components/LayoutNavigation/Container.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),a=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(a),l=o("./src/reddit/constants/componentSizes.ts"),p=o("./src/reddit/constants/screenWidths.ts"),u=o("./src/reddit/helpers/toggleBodyScroll/index.ts"),m=o("./src/reddit/layout/page/Listing/index.tsx"),b=o("./src/reddit/layout/page/Listing/Content.tsx"),f=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),g=o("./src/reddit/selectors/structuredStyles.ts"),h=o("./src/reddit/selectors/userPrefs.ts"),v=o("./src/reddit/components/LayoutNavigation/ConsiderateNav.tsx"),y=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const x=c.a.div.withConfig({componentId:"s8rr6fz-0"})(["",""],m.b),O=c.a.div.withConfig({componentId:"s8rr6fz-1"})(["",""],m.c),w=c.a.div.withConfig({componentId:"s8rr6fz-2"})(["height: ","px;min-width: ","px;width: 100%;"],l.G,p.j),j=Object(d.createStructuredSelector)({bladeOpen:e=>!!Object(g.i)(e),isSubscriptionsPinned:h.b}),S=Object(i.connect)(j);t.a=c()(S(class extends r.a.Component{constructor(e){super(e),this.state={bodyScrollOffset:0}}componentDidMount(){const e=()=>{const e=document.body.style.marginRight;!!e!=!!this.state.bodyScrollOffset&&(e?this.setState({bodyScrollOffset:Object(u.c)(document.body)}):this.setState({bodyScrollOffset:0}))};try{this.docObserver=new MutationObserver(e)}catch(t){}this.docObserver&&this.docObserver.observe(document.body,{attributes:!0})}componentWillUnmount(){this.docObserver&&this.docObserver.disconnect()}render(){var e=this.props;const t=e.bladeOpen;var o=e.considerPinnedSubscriptions;const n=void 0===o||o,s=e.isSubscriptionsPinned;var r=e.considerSidebar;const i=void 0===r||r;let d=0;return s&&!t&&n&&(d+=l.H),0!==this.state.bodyScrollOffset&&(d-=this.state.bodyScrollOffset),y("div",{className:this.props.className},void 0,y(x,{},void 0,y(b.b,{fitPageToContent:!0},void 0,y(w,{},void 0,y(v.a,{bladeOpen:t,considerSidebar:i,offsetLeft:d,render:this.props.render}))),i&&y(O,{})))}})).withConfig({componentId:"s8rr6fz-3"})(["background: ",";"],e=>Object(f.c)(e).body)},"./src/reddit/components/LayoutNavigation/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),a=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(a),l=o("./src/lib/constants/index.ts"),p=o("./src/lib/listingSort/index.ts"),u=o("./src/reddit/components/LayoutNavigation/Container.tsx"),m=o("./src/reddit/actions/preferences.ts"),b=o("./node_modules/react-router-redux/es/index.js"),f=o("./src/app/actions/tooltip.ts"),g=o("./src/app/strings/index.ts"),h=o("./src/higherOrderComponents/asTooltip.tsx"),v=o("./src/lib/addQueryParams/index.ts"),y=o("./src/reddit/components/TrackingHelper/index.tsx"),x=o("./src/reddit/constants/listingSorts.ts"),O=o("./src/reddit/contexts/PageLayer/index.tsx"),w=r.a.createContext({}),j=o("./src/reddit/controls/Dropdown/index.tsx"),S=o("./src/reddit/controls/Dropdown/Row.tsx"),C=o("./src/reddit/helpers/styles/components/index.tsx"),I=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),k=o("./src/reddit/helpers/trackers/navigation.ts"),P=o("./src/reddit/icons/svgs/Dropdown/index.tsx"),N=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),_=o("./src/reddit/selectors/tooltip.ts"),T=o("./src/reddit/selectors/user.ts"),L=o("./src/reddit/components/ListingSort/ListingSortIcon.tsx"),M=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),A=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},E=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 B="ListingSort--SortPicker",F=Object(h.a)(c()(j.a).withConfig({componentId:"ne5g41-0"})(["","margin-left: -5px;min-width: 100px;"],"")),R=c()(e=>{e.redditStyle;var t=E(e,["redditStyle"]);return r.a.createElement(L.a,t)}).withConfig({componentId:"ne5g41-1"})(["fill: ",";"],e=>Object(N.c)(e).actionIcon),$=c()(P.b).withConfig({componentId:"ne5g41-2"})(["","margin-left: 0;margin-top: -2px;"],""),D=c.a.div.withConfig({componentId:"ne5g41-3"})(["","color: ",";margin-top: 1px;"],I.labelsFont,e=>Object(N.c)(e).metaText),U=c()(e=>{e.redditStyle;var t=E(e,["redditStyle"]);return r.a.createElement(S.c,A({},t,{noHover:!0,isSelected:!0}))}).withConfig({componentId:"ne5g41-4"})(["","border: none;display: flex;margin: 4px;padding: 4px;"],I.smallButtonFont),W=c()(Object(C.a)()).withConfig({componentId:"ne5g41-5"})(["align-items: center;display: flex;",", "," {","}"],$,U,e=>e.disabled?`\n color: ${Object(N.c)(e).inactive};\n fill: ${Object(N.c)(e).inactive};\n `:""),H=c.a.div.withConfig({componentId:"ne5g41-6"})(["","padding: 8px 12px 8px 8px;color: ",""],I.titleFontH5,e=>Object(N.c)(e).actionIcon),V=Object(O.w)({isFrontpage:O.C,isOriginal:O.E,isProfilePage:O.L,pageLayer:e=>e}),z=Object(d.createStructuredSelector)({user:T.j,dropdownIsOpen:Object(_.b)(B),language:T.M,redditStyle:O.D}),q=Object(i.connect)(z,(e,{pageLayer:t})=>({onOpenDropdown:()=>e(Object(f.e)({tooltipId:B}))}));var G=c()(V(q(Object(y.b)(e=>M("div",{className:e.className,onClick:e.onOpenDropdown},void 0,M(D,{},void 0,Object(g.a)(e.language,"sorts.title")),M(W,{disabled:e.disabled,redditStyle:e.redditStyle},void 0,M(U,{displayText:x.a[e.sort](e.language),id:B,redditStyle:e.redditStyle},void 0,M(R,{redditStyle:e.redditStyle,sort:e.sort})),M($,{isSubreddit:!e.redditStyle})),M(w.Consumer,{},void 0,t=>r.a.createElement(F,A({isOpen:e.dropdownIsOpen,tooltipId:B},t,{renderContentsHidden:!0}),e.disabled?M(H,{},void 0,"Coming soon"):(e.sortOptions||((e,t,o)=>{const n=[l.X.HOT,l.X.NEW,l.X.CONTROVERSIAL,l.X.TOP,...t?[]:[l.X.RISING]];return e&&o&&n.unshift(l.X.BEST),n})(e.isFrontpage,e.isOriginal,e.user)).map(t=>M(S.c,{displayText:x.a[t](e.language),onClick:()=>{e.onChange(t),e.sendEvent(Object(k.c)(t))},href:e.isProfilePage?Object(v.a)(e.baseUrl,{sort:t}):`${e.baseUrl}/${t}/`,isSelected:e.sort===t},t,M(R,{redditStyle:e.redditStyle,sort:t})))))))))).withConfig({componentId:"ne5g41-7"})(["align-items: center;cursor: pointer;display: flex;margin: 7px 0;padding: 0 16px;"]),K=o("./src/reddit/constants/parameters.ts");const J={[l.mc.AllStates]:Object(g.f)("stateSorts.allStates"),[l.mc.Alaska]:Object(g.f)("stateSorts.alaska"),[l.mc.Alabama]:Object(g.f)("stateSorts.alabama"),[l.mc.Arkansas]:Object(g.f)("stateSorts.arkansas"),[l.mc.Arizona]:Object(g.f)("stateSorts.arizona"),[l.mc.California]:Object(g.f)("stateSorts.california"),[l.mc.Colorado]:Object(g.f)("stateSorts.colorado"),[l.mc.Connecticut]:Object(g.f)("stateSorts.connecticut"),[l.mc.DistrictOfColumbia]:Object(g.f)("stateSorts.districtOfColumbia"),[l.mc.Delaware]:Object(g.f)("stateSorts.delaware"),[l.mc.Florida]:Object(g.f)("stateSorts.florida"),[l.mc.Georgia]:Object(g.f)("stateSorts.georgia"),[l.mc.Hawaii]:Object(g.f)("stateSorts.hawaii"),[l.mc.Iowa]:Object(g.f)("stateSorts.iowa"),[l.mc.Idaho]:Object(g.f)("stateSorts.idaho"),[l.mc.Illinois]:Object(g.f)("stateSorts.illinois"),[l.mc.Indiana]:Object(g.f)("stateSorts.indiana"),[l.mc.Kansas]:Object(g.f)("stateSorts.kansas"),[l.mc.Kentucky]:Object(g.f)("stateSorts.kentucky"),[l.mc.Louisiana]:Object(g.f)("stateSorts.louisiana"),[l.mc.Massachusetts]:Object(g.f)("stateSorts.massachusetts"),[l.mc.Maryland]:Object(g.f)("stateSorts.maryland"),[l.mc.Maine]:Object(g.f)("stateSorts.maine"),[l.mc.Michigan]:Object(g.f)("stateSorts.michigan"),[l.mc.Minnesota]:Object(g.f)("stateSorts.minnesota"),[l.mc.Missouri]:Object(g.f)("stateSorts.missouri"),[l.mc.Mississippi]:Object(g.f)("stateSorts.mississippi"),[l.mc.Montana]:Object(g.f)("stateSorts.montana"),[l.mc.NorthCarolina]:Object(g.f)("stateSorts.northCarolina"),[l.mc.NorthDakota]:Object(g.f)("stateSorts.northDakota"),[l.mc.Nebraska]:Object(g.f)("stateSorts.nebraska"),[l.mc.NewHampshire]:Object(g.f)("stateSorts.newHampshire"),[l.mc.NewJersey]:Object(g.f)("stateSorts.newJersey"),[l.mc.NewMexico]:Object(g.f)("stateSorts.newMexico"),[l.mc.Nevada]:Object(g.f)("stateSorts.nevada"),[l.mc.NewYork]:Object(g.f)("stateSorts.newYork"),[l.mc.Ohio]:Object(g.f)("stateSorts.ohio"),[l.mc.Oklahoma]:Object(g.f)("stateSorts.oklahoma"),[l.mc.Oregon]:Object(g.f)("stateSorts.oregon"),[l.mc.Pennsylvania]:Object(g.f)("stateSorts.pennsylvania"),[l.mc.RhodeIsland]:Object(g.f)("stateSorts.rhodeIsland"),[l.mc.SouthCarolina]:Object(g.f)("stateSorts.southCarolina"),[l.mc.SouthDakota]:Object(g.f)("stateSorts.southDakota"),[l.mc.Tennessee]:Object(g.f)("stateSorts.tennessee"),[l.mc.Texas]:Object(g.f)("stateSorts.texas"),[l.mc.Utah]:Object(g.f)("stateSorts.utah"),[l.mc.Virginia]:Object(g.f)("stateSorts.virginia"),[l.mc.Vermont]:Object(g.f)("stateSorts.vermont"),[l.mc.Washington]:Object(g.f)("stateSorts.washington"),[l.mc.Wisconsin]:Object(g.f)("stateSorts.wisconsin"),[l.mc.WestVirginia]:Object(g.f)("stateSorts.westVirginia"),[l.mc.Wyoming]:Object(g.f)("stateSorts.wyoming")};var X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Z=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Q=c()(j.a).withConfig({componentId:"s8x88ko-0"})(["max-height: 500px;overflow-y: scroll;"]),Y=Object(h.a)(Q),ee=e=>{return e.indexOf("_")>0&&oe(e)===l.x.UnitedStates},te=e=>{if(ee(e)){return e.split("_")[1]}return l.mc.AllStates},oe=e=>{if(e&&e.indexOf("_")>0){return e.split("_")[0]}return e},ne=e=>{const t=oe(e),o=te(e);return ee(e)?`${t}_${o}`:t},se=Object(O.w)(),re=Object(d.createStructuredSelector)({dropdownIsOpen:Object(_.b)("StateSort--StateSortPicker"),language:T.M,redditStyle:O.D}),ie=Object(i.connect)(re,e=>({onOpenDropdown:()=>e(Object(f.e)({tooltipId:"StateSort--StateSortPicker"})),onClickLink:(t,o)=>{e(Object(b.b)(t)),e(Object(m.r)(l.x.UnitedStates+"_"+o))}}));var de=c()(se(ie(e=>{const t=`${e.baseUrl}?${K.f}=${l.x.UnitedStates}`;return Z("div",{className:e.className,onClick:e.onOpenDropdown},void 0,Z(W,{disabled:e.disabled,redditStyle:e.redditStyle},void 0,Z(U,{displayText:J[e.sort](e.language),id:"StateSort--StateSortPicker",redditStyle:e.redditStyle},void 0),Z($,{isSubreddit:!e.redditStyle})),Z(w.Consumer,{},void 0,o=>r.a.createElement(Y,X({isOpen:e.dropdownIsOpen,tooltipId:"StateSort--StateSortPicker"},o,{renderContentsHidden:!0}),Object.keys(l.mc).map(o=>Z("div",{onClick:()=>e.onClickLink((e=>e===l.mc.AllStates?t:`${t}_${e}`)(l.mc[o]),ne(l.mc[o]))},void 0,Z(S.c,{displayText:J[l.mc[o]](e.language),isSelected:e.sort===o},void 0))))))}))).withConfig({componentId:"s8x88ko-1"})(["align-items: center;cursor: pointer;display: flex;"]);const ae={[l.x.Everywhere]:Object(g.f)("countrySorts.everywhere"),[l.x.UnitedStates]:Object(g.f)("countrySorts.unitedStates"),[l.x.Argentina]:Object(g.f)("countrySorts.argentina"),[l.x.Australia]:Object(g.f)("countrySorts.australia"),[l.x.Bulgaria]:Object(g.f)("countrySorts.bulgaria"),[l.x.Canada]:Object(g.f)("countrySorts.canada"),[l.x.Chile]:Object(g.f)("countrySorts.chile"),[l.x.Colombia]:Object(g.f)("countrySorts.colombia"),[l.x.Croatia]:Object(g.f)("countrySorts.croatia"),[l.x.CzechRepublic]:Object(g.f)("countrySorts.czechRepublic"),[l.x.Finland]:Object(g.f)("countrySorts.finland"),[l.x.Greece]:Object(g.f)("countrySorts.greece"),[l.x.Hungary]:Object(g.f)("countrySorts.hungary"),[l.x.Iceland]:Object(g.f)("countrySorts.iceland"),[l.x.India]:Object(g.f)("countrySorts.india"),[l.x.Ireland]:Object(g.f)("countrySorts.ireland"),[l.x.Japan]:Object(g.f)("countrySorts.japan"),[l.x.Malaysia]:Object(g.f)("countrySorts.malaysia"),[l.x.Mexico]:Object(g.f)("countrySorts.mexico"),[l.x.NewZealand]:Object(g.f)("countrySorts.newZealand"),[l.x.Philippines]:Object(g.f)("countrySorts.philippines"),[l.x.Poland]:Object(g.f)("countrySorts.poland"),[l.x.Portugal]:Object(g.f)("countrySorts.portugal"),[l.x.PuertoRico]:Object(g.f)("countrySorts.puertoRico"),[l.x.Romania]:Object(g.f)("countrySorts.romania"),[l.x.Serbia]:Object(g.f)("countrySorts.serbia"),[l.x.Singapore]:Object(g.f)("countrySorts.singapore"),[l.x.Sweden]:Object(g.f)("countrySorts.sweden"),[l.x.Taiwan]:Object(g.f)("countrySorts.taiwan"),[l.x.Thailand]:Object(g.f)("countrySorts.thailand"),[l.x.Turkey]:Object(g.f)("countrySorts.turkey"),[l.x.UnitedKingdom]:Object(g.f)("countrySorts.unitedKingdom")};var ce=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},le=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const pe=c.a.div.withConfig({componentId:"s1j2oiip-0"})(["display: -webkit-inline-box;margin-left: -10px;"]),ue=Object(O.w)(),me=Object(d.createStructuredSelector)({dropdownIsOpen:Object(_.b)("CountrySort--CountrySortPicker"),language:T.M,redditStyle:O.D}),be=Object(i.connect)(me,e=>({onOpenDropdown:t=>e(Object(f.e)({tooltipId:t})),onClickLink:(t,o)=>{e(Object(b.b)(t)),e(Object(m.r)(o))}}));var fe=c()(ue(be(e=>{const t=oe(e.sort),o=te(e.sort),n=`${e.baseUrl}?${K.f}=`;return le(pe,{},void 0,le("div",{className:e.className,onClick:()=>e.onOpenDropdown("CountrySort--CountrySortPicker")},void 0,le(W,{disabled:e.disabled,redditStyle:e.redditStyle},void 0,le(U,{displayText:(()=>t in ae?ae[t](e.language):ae[l.x.Everywhere](e.language))(),id:"CountrySort--CountrySortPicker",redditStyle:e.redditStyle},void 0),le($,{isSubreddit:!e.redditStyle})),le(w.Consumer,{},void 0,o=>r.a.createElement(Y,ce({isOpen:e.dropdownIsOpen,tooltipId:"CountrySort--CountrySortPicker"},o,{renderContentsHidden:!0}),Object.keys(l.x).map(o=>le("div",{onClick:()=>e.onClickLink(`${n}${ne(l.x[o])}`,l.x[o])},o,le(S.c,{displayText:ae[l.x[o]](e.language),isSelected:t===o},void 0)))))),t===l.x.UnitedStates&&le(de,{baseUrl:e.baseUrl,disabled:e.disabled,sort:o}))}))).withConfig({componentId:"s1j2oiip-1"})(["align-items: center;cursor: pointer;display: flex;"]),ge=o("./node_modules/path-browserify/index.js"),he=o.n(ge),ve=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},ye=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),xe=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 Oe=Object(h.a)(j.a),we=c()(e=>{e.redditStyle;var t=xe(e,["redditStyle"]);return r.a.createElement("div",t)}).withConfig({componentId:"s9a3at1-0"})(["cursor: pointer;margin: 7px 0;padding: 0 16px;white-space: nowrap;"]),je=Object(O.w)(),Se=Object(d.createStructuredSelector)({dropdownIsOpen:Object(_.b)("TimeSort--SortPicker"),language:T.M,redditStyle:O.D});var Ce=je(Object(i.connect)(Se,e=>({onOpenDropdown:()=>e(Object(f.e)({tooltipId:"TimeSort--SortPicker"}))}))(e=>ye(we,{className:e.className,onClick:e.onOpenDropdown,redditStyle:e.redditStyle},void 0,ye(W,{disabled:!1,redditStyle:e.redditStyle},void 0,ye(U,{displayText:x.b[e.timeSort](e.language),id:"TimeSort--SortPicker",redditStyle:e.redditStyle}),ye($,{isSubreddit:!e.redditStyle})),ye(w.Consumer,{},void 0,t=>r.a.createElement(Oe,ve({isOpen:e.dropdownIsOpen,tooltipId:"TimeSort--SortPicker"},t),[l.rc.HOUR,l.rc.DAY,l.rc.WEEK,l.rc.MONTH,l.rc.YEAR,l.rc.ALL].map(t=>ye(S.c,{displayText:x.b[t](e.language),href:((e,t,o)=>{let n=e.url;return e.urlParams.sort||Object(O.L)(e)||(n=he.a.join(n,t)),Object(v.a)(n,{[K.s]:o})})(e.pageLayer,e.listingSort,t),isSelected:e.timeSort===t,onClick:()=>e.onChange(t)}))))))),Ie=o("./src/reddit/constants/page.ts"),ke=o("./src/reddit/controls/LayoutSwitch/index.tsx"),Pe=o("./src/reddit/constants/componentSizes.ts"),Ne=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const _e=c()(Object(C.a)()).withConfig({componentId:"or27m9-0"})(["background: ",";height: ","px;width: 1px;"],e=>Object(N.c)(e).line,Pe.G/2),Te=Object(O.w)({isProfilePage:O.L,pageLayer:e=>e}),Le=Object(d.createStructuredSelector)({currentOnboardingCategory:O.f,currentUser:T.j,language:T.M,isPopularListing:O.H,redditStyle:O.D}),Me=Object(i.connect)(Le,(e,{subredditId:t})=>({updateSortPreference:(o,n)=>{if(t){const s=Object(p.c)({sort:o,timeSort:n});e(Object(m.C)(t,s))}}}));t.a=Te(Me(Object(y.b)(e=>{const t=e.currentOnboardingCategory;var o=e.disabled;const n=void 0!==o&&o,s=e.isPopularListing,i=e.isProfilePage,d=e.sort===l.X.TOP||e.sort===l.X.CONTROVERSIAL,a=!t&&s&&e.countrySort&&e.sort===l.X.HOT;return Ne(u.a,{className:e.className,render:t=>r.a.Children.toArray([i?null:Ne(ke.a,{onLayoutClick:t,subredditId:e.subredditId}),i?null:Ne(_e,{redditStyle:e.redditStyle}),Ne(G,{baseUrl:e.baseUrl,disabled:n,geopopularSort:e.countrySort,onChange:e.updateSortPreference,sort:e.sort,sortOptions:e.sortOptions}),!n&&d&&[Ne(_e,{redditStyle:e.redditStyle}),Ne(Ce,{baseUrl:`${e.baseUrl}/${e.sort}`,listingSort:e.sort,onChange:t=>e.updateSortPreference(e.sort,t),timeSort:e.timeSort||l.sc})],a&&Ne(fe,{baseUrl:e.isPopularListing?`/r/${Ie.k}/`:"",disabled:n,sort:e.countrySort})])})})))},"./src/reddit/components/ListingPostList/index.tsx":function(e,t,o){"use strict";var n=o("./src/reddit/components/PostList/index.tsx"),s=o("./src/reddit/connectors/PostList/index.ts");t.a=Object(s.a)(n.a)},"./src/reddit/components/ListingSort/ListingSortIcon.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(s),i=o("./src/reddit/controls/Dropdown/Row.tsx"),d=o("./src/lib/constants/index.ts"),a=o("./node_modules/polished/dist/polished.es.js"),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 r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});var p=r()(e=>l("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,l("g",{fill:"none",fillRule:"evenodd"},void 0,l("path",{d:"M13.47 9.414a2 2 0 1 1-2.828-2.828 2 2 0 0 1 2.828 2.828M18.056 3c0 3.003-1.169 5.826-3.293 7.949l-2.389 2.389c1.091 1.738.89 4.061-.62 5.572a.5.5 0 0 1-.708 0l-2.829-2.829-4.243-4.242-2.828-2.828a.5.5 0 0 1 0-.707 4.467 4.467 0 0 1 3.182-1.319c.86 0 1.68.249 2.39.697l2.388-2.389A11.173 11.173 0 0 1 17.056 2a1 1 0 0 1 1 1zM3.207 14.727c.688-.687 1.616-.627 2.182-.06.283.284.44.662.439 1.062 0 .4-.156.777-.44 1.06-.789.79-1.798 1.207-2.827 1.207a.5.5 0 0 1-.5-.5c0-1.045.407-2.028 1.146-2.768z",fill:"currentColor"})))).withConfig({componentId:"s1j60uba-0"})(["fill: ",";"],e=>Object(a.f)(.6,Object(c.c)(e).active)),u=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var m=r()(e=>u("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,u("g",{},void 0,u("polygon",{fill:"inherit",points:"16 0 7.25 0 3.5 10.108 8.5 10.108 4.475 20 16 8 11 8"})))).withConfig({componentId:"s1vwfykm-0"})(["fill: ",";"],e=>Object(a.f)(.6,Object(c.c)(e).active)),b=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var f=r()(e=>b("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,b("title",{},void 0,"Hot"),b("path",{d:"M10.31.61a.5.5,0,0,0-.61,0C9.41.83,2.75,6.07,2.75,11.47a8.77,8.77,0,0,0,3.14,6.91.5.5,0,0,0,.75-.64,3.84,3.84,0,0,1-.55-2A7.2,7.2,0,0,1,10,9.56a7.2,7.2,0,0,1,3.91,6.23,3.84,3.84,0,0,1-.55,2,.5.5,0,0,0,.75.64,8.77,8.77,0,0,0,3.14-6.91C17.25,6.07,10.59.83,10.31.61Z"}))).withConfig({componentId:"s9ql7zs-0"})(["fill: ",";"],e=>Object(a.f)(.6,Object(c.c)(e).active)),g=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var h=r()(e=>g("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,g("g",{},void 0,g("polygon",{fill:"inherit",points:"17.16 10 19.07 12.936 15.799 14.188 15.619 17.686 12.237 16.776 10.035 19.5 7.833 16.776 4.451 17.686 4.271 14.188 1 12.936 2.91 10 1 7.065 4.271 5.812 4.451 2.315 7.833 3.224 10.035 .5 12.237 3.224 15.619 2.315 15.799 5.812 19.07 7.065"})))).withConfig({componentId:"s89z7p-0"})(["fill: ",";"],e=>Object(a.f)(.6,Object(c.c)(e).active)),v=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var y=r()(e=>v("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,v("g",{},void 0,v("path",{fill:"inherit",d:"M18.5 4h-6a.5.5 0 0 0-.35.85l1.64 1.65-3.29 3.29L8.21 7.5a1 1 0 0 0-1.41 0L.65 13.65a.5.5 0 0 0 0 .71l2 2a.5.5 0 0 0 .71 0l4.14-4.15 2.29 2.29a1 1 0 0 0 1.41 0l5.3-5.29 1.65 1.65a.5.5 0 0 0 .85-.36v-6a.5.5 0 0 0-.5-.5z"})))).withConfig({componentId:"ty0rng-0"})(["fill: ",";"],e=>Object(a.f)(.6,Object(c.c)(e).active)),x=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var O=r()(e=>x("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,x("g",{},void 0,x("path",{fill:"inherit",d:"M1.25,17.5 L1.25,7.5 L6.25,7.5 L6.25,17.5 L1.25,17.5 Z M12.49995,17.5001 L7.49995,17.5001 L7.49995,5.0001 L4.99995,5.0001 L9.99995,0.0006 L14.99995,5.0001 L12.49995,5.0001 L12.49995,17.5001 Z M13.75,17.5 L13.75,12.5 L18.75,12.5 L18.75,17.5 L13.75,17.5 Z"})))).withConfig({componentId:"s1piqpro-0"})(["fill: ",";"],e=>Object(a.f)(.6,Object(c.c)(e).active)),w=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const j=r()(f).withConfig({componentId:"s1qt4be1-0"})(["",""],i.d),S=r()(h).withConfig({componentId:"s1qt4be1-1"})(["",""],i.d),C=r()(m).withConfig({componentId:"s1qt4be1-2"})(["",""],i.d),I=r()(O).withConfig({componentId:"s1qt4be1-3"})(["",""],i.d),k=r()(p).withConfig({componentId:"s1qt4be1-4"})(["",""],i.d),P=r()(y).withConfig({componentId:"s1qt4be1-5"})(["",""],i.d),N={[d.X.BEST]:k,[d.X.HOT]:j,[d.X.NEW]:S,[d.X.CONTROVERSIAL]:C,[d.X.TOP]:I,[d.X.RISING]:P};t.a=(e=>{const t=N[e.sort];return w(t,{})})},"./src/reddit/components/MediumPost/index.m.less":function(e,t,o){e.exports={leftPadding:"i7Fs9tR9IvW9lWlOG_yrY"}},"./src/reddit/components/MediumPost/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return oe});o("./node_modules/react/index.js");var n,s=o("./node_modules/react-redux/es/index.js"),r=o("./node_modules/reselect/lib/index.js"),i=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(i),a=o("./src/config.ts"),c=o("./src/app/actions/tooltip.ts"),l=o("./src/reddit/actions/post.ts"),p=o("./src/reddit/components/AdLinkWrapper/index.tsx"),u=o("./src/reddit/components/CallToActionButton/index.tsx"),m=o("./src/reddit/components/CompactPost/HorizontalVotes.tsx"),b=o("./src/reddit/components/FlairWrapper/index.tsx"),f=o("./src/reddit/components/Flatlist/index.tsx"),g=o("./src/reddit/components/JSAPIContainers/index.tsx"),h=o("./src/reddit/components/LargePost/index.tsx"),v=o("./src/reddit/components/ModModeReports/index.tsx"),y=o("./src/reddit/components/ModModeReports/helpers.ts"),x=o("./src/reddit/components/PostBackgroundWrapper/index.tsx"),O=o("./src/reddit/components/PostContainer/index.tsx"),w=o("./src/reddit/components/PostOverflowMenu/index.tsx"),j=o("./src/reddit/components/PostTitle/index.tsx"),S=o("./src/reddit/components/PostTopLine/index.tsx"),C=o("./src/reddit/components/PostTopMeta/index.tsx"),I=o("./src/reddit/components/SubscribeButton/Inline.tsx"),k=o("./src/reddit/components/Thumbnail/index.tsx"),P=o("./src/reddit/constants/screenWidths.ts"),N=o("./src/reddit/contexts/InsideOverlay.tsx"),_=o("./src/reddit/contexts/PageLayer/index.tsx"),T=o("./src/reddit/controls/OutboundLink/styled.tsx"),L=o("./src/reddit/helpers/canRenderThumbnail.ts"),M=o("./src/reddit/helpers/hasModFlairPermissions/index.ts"),A=o("./src/reddit/helpers/hasModPostPermissions/index.ts"),E=o("./src/reddit/helpers/styles/components/index.tsx"),B=o("./src/reddit/helpers/styles/mixins/index.tsx"),F=o("./src/reddit/helpers/trackers/post.ts"),R=o("./src/reddit/models/Vote/index.ts"),$=o("./src/reddit/selectors/experiments/categories.ts"),D=o("./src/reddit/selectors/experiments/subscribeText.ts"),U=o("./src/reddit/selectors/moderatorPermissions.ts"),W=o("./src/reddit/selectors/monthsToMinutes.ts"),H=o("./src/reddit/selectors/posts.ts"),V=o("./src/reddit/selectors/user.ts"),z=o("./src/reddit/components/SourceLink/index.tsx"),q=o("./src/reddit/helpers/styles/mixins/responsive.ts"),G=o("./src/reddit/components/MediumPost/index.m.less"),K=o.n(G),J=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const X=d.a.article.withConfig({componentId:"s1wxl6fq-0"})(["display: flex;flex-direction: row;padding-bottom: 8px;"]),Z=d()(v.a).withConfig({componentId:"s1wxl6fq-1"})(["margin-top: 10px;"]),Q=d.a.div.withConfig({componentId:"s1wxl6fq-2"})(["display: flex;flex: 1 1 100%;flex-direction: column;padding-bottom: ","px;position: relative;word-break: break-word;"],22),Y=d()(j.c).withConfig({componentId:"s1wxl6fq-3"})(["margin: 0 8px;"]),ee=d()(I.a).withConfig({componentId:"s1wxl6fq-4"})(["float: right;margin-bottom: 8px;"]),te=d()(Object(E.a)()).withConfig({componentId:"s1wxl6fq-5"})(["","align-items: flex-end;border-radius: 2px;display: flex;flex-direction: column;padding: 0px 8px;"],e=>Object(B.x)(e.shouldShowSubscribeButton?140:108,144)),oe=({crosspost:e,post:t,forceShowNSFW:o,shouldShowSubscribeButton:n,subredditOrProfile:s,templatePlaceholderImage:r})=>J(te,{shouldShowSubscribeButton:!!n},void 0,n&&s&&J(ee,{getEventFactory:e=>Object(F.d)(t.id,e?"unsubscribe":"subscribe"),identifier:{name:s.name,type:"subreddit"},postId:t.id}),J(k.d,{crosspost:e,post:t,forceShowNSFW:o,templatePlaceholderImage:r})),ne=d()(m.a).withConfig({componentId:"s1wxl6fq-6"})(["max-height: 24px;",""],q.a),se=d.a.div.withConfig({componentId:"s1wxl6fq-7"})(["align-items: center;display: flex;flex-direction: row;"]),re=d()(x.b).withConfig({componentId:"s1wxl6fq-8"})(["padding-top: 8px;"]),ie=Object(s.connect)(()=>Object(r.createStructuredSelector)({crosspost:H.c,currentUser:V.j,flairStyleTemplate:_.S,hideNSFWPref:V.x,inlineSubscribeIsEnabled:D.a,isActive:H.f,isFrontpageHome:W.j,language:V.M,moderatorPermissions:U.f,modModeEnabled:_.Q,post:H.D,showMedia:_.u,isInCategoriesExperiment:$.a,subredditOrProfile:H.O,userIsOp:V.db}),(e,{postId:t})=>({handleVote:o=>o===R.a.upvoted?e(Object(l.J)(t)):e(Object(l.n)(t)),onIgnoreReports:()=>e(Object(l.H)(t)),onOpenReportsDropdown:t=>e(Object(c.e)({tooltipId:t}))}));t.b=ie(d()(Object(N.b)(e=>{const t=e.className,o=e.crosspost,n=e.currentUser,s=e.eventFactory,r=e.flairStyleTemplate,i=e.hideNSFWPref,d=e.inlineSubscribeIsEnabled;var c=e.inSubredditOrProfile;const l=void 0!==c&&c,m=e.isCheckboxSelected,v=e.isCommentsPage,x=e.isFrontpage,I=e.isFrontpageHome,k=e.isOriginalPage,P=e.isOverlay,N=e.language,_=e.moderatorPermissions,E=e.modModeEnabled,B=e.onClickPost,F=e.onIgnoreReports,R=e.onOpenReportsDropdown,$=e.post,D=e.showBulkActionCheckbox,U=e.showMedia,W=e.sendEvent,H=e.subredditOrProfile,V=e.toggleCheckbox,q=e.userIsOp,G=Object(A.a)(_),ee=E&&G,te=Object(M.a)(_),ie="subreddit"===$.belongsTo.type,de=q&&!!ie,ae=Object(y.c)($),ce=Object(L.a)($),le=l&&!U,pe=le&&!!$.source&&!o,ue=d&&!(x&&I);return J(O.a,{className:t,post:$,onClick:B,eventFactory:s},void 0,Object(h.b)($,e.handleVote,D,m,V,r),J(re,{flairStyleTemplate:r},void 0,J(X,{},void 0,J(Q,{"data-click-id":"body"},void 0,J(S.a,{hideNSFWPref:i,inSubredditOrProfile:l,isOverlay:!!P,language:N,post:$,shouldShowSubscribeButton:!1,showCornerOutboundLink:pe,showOCCategories:k,showSubreddit:!l&&!$.isSponsored,subredditOrProfile:H}),J(Y,{post:$,size:j.b.Large,titleColor:r&&r.postTitleColor,isOverlay:P}),v&&($.flair&&$.flair.length>0||e.isInCategoriesExperiment)&&J(b.a,{className:v?K.a.leftPadding:null,disableFlair:!v,post:$,sendEvent:W,showCategoryTag:e.isInCategoriesExperiment&&v}),$.source&&!$.isSponsored&&!o&&J(z.a,{post:$,isCommentsPage:v})),!le&&ce&&J(oe,{crosspost:o?$:void 0,post:o||$,shouldShowSubscribeButton:ue&&!l,subredditOrProfile:H,templatePlaceholderImage:r&&r.postPlaceholderImage})),$.source&&$.source.url&&$.isSponsored&&J(p.a,{},void 0,J(T.a,{href:$.source.url.replace(a.a.redditUrl,""),isSponsored:$.isSponsored,source:$.source},void 0,$.source.displayText),$.callToAction&&J(u.a,{href:$.source.url.replace(a.a.redditUrl,""),isSponsored:$.isSponsored,source:$.source,isNotCardView:!0},void 0,$.callToAction)),E&&G&&ae&&J(Z,{language:N,onIgnoreReports:F,reportable:$}),J(g.d,{postId:$.id}),J(se,{},void 0,J(ne,{compact:!1,flairStyleTemplate:r,model:$,onVoteClick:e.handleVote}),J(f.c,{currentUser:n,hasModFlairPerms:te,hasModPostPerms:G,isOverlay:!!P,language:N,modModeEnabled:E,onIgnoreReports:F,onOpenReportsDropdown:R,post:$,showEditFlair:de,tooltipType:P?C.c.Lightbox:void 0,useFlatlistBreakpoints:Object(w.h)({editPost:!ee,save:!ee,hide:!1,report:!1})}))))})).withConfig({componentId:"s1wxl6fq-9"})(["","","","","","",";@media (min-width: ","px) {padding-left: 40px;border-radius: 4px;}"],k.e,B.n,B.m,x.a,f.d,e=>Object(B.j)(e.flairStyleTemplate),P.i))},"./src/reddit/components/MiniCardPost/Flatlist/index.m.less":function(e,t,o){e.exports={flatlistContainer:"_3TV1zxvLEbF8phHfZ17hyU",shareIcon:"_2-No1ECt3Twm8oRh3GhL5T",shareMenu:"_1Y9kO8WxKheHpQbgAgYk9P",shareText:"_3ZNfZZMmSFZUWWm-nHK327"}},"./src/reddit/components/MiniCardPost/Flatlist/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return B});o("./node_modules/react/index.js");var n,s=o("./node_modules/react-redux/es/index.js"),r=o("./node_modules/reselect/lib/index.js"),i=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(i),a=o("./src/app/strings/index.ts"),c=o("./src/lib/classNames/index.ts"),l=o("./src/reddit/components/CommentsLink/index.tsx"),p=o("./src/reddit/components/CompactPost/HorizontalVotes.tsx"),u=o("./src/reddit/components/Flatlist/index.tsx"),m=o("./src/reddit/components/ModActionsMenu/index.tsx"),b=o("./src/reddit/components/PostModModeDropdown/index.tsx"),f=o("./src/reddit/components/PostOverflowMenu/index.tsx"),g=o("./src/reddit/components/ShareMenu/index.tsx"),h=o("./src/reddit/components/TrackingHelper/index.tsx"),v=o("./src/reddit/constants/postLayout.ts"),y=o("./src/reddit/contexts/PageLayer/index.tsx"),x=o("./src/reddit/helpers/styles/mixins/index.tsx"),O=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),w=o("./src/reddit/helpers/trackers/post.ts"),j=o("./src/reddit/icons/fonts/Share/index.tsx"),S=o("./src/reddit/models/User/index.ts"),C=o("./src/reddit/controls/Score/index.m.less"),I=o.n(C),k=o("./src/reddit/components/MiniCardPost/Flatlist/index.m.less"),P=o.n(k),N=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const _="-MiniCardModMenu",T="-MiniCardOverflowMenu",L="-MiniCardShareMenu",M=d()(p.a).withConfig({componentId:"s1ns7vej-0"})(["max-height: 24px;margin-right: 5px;."," {width: auto;}"],I.a.score),A=`\n .${P.a.flatlistContainer} {\n ${O.actionFont}\n }\n`,E=d.a.button.withConfig({componentId:"s1ns7vej-1"})(["","padding: 4px;text-transform: capitalize;"],x.p),B=Object(i.css)(["","","",""],l.a,A,u.h),F=Object(y.w)({currentProfileName:y.j,isCommentPermalink:y.y,isCommentsPage:y.z,isProfilePostListing:y.M,pageLayer:e=>e}),R=Object(r.createStructuredSelector)({layout:y.O,subreddit:y.t}),$=Object(s.connect)(R,{});t.a=F($(Object(h.b)(e=>{const t=e.currentProfileName,o=e.className,n=e.currentUser,s=e.handleVote,r=e.hasModFlairPerms,i=e.hasModPostPerms,d=e.isCommentsPage,p=e.isCommentPermalink,h=e.isOverlay,y=e.isProfilePostListing,x=e.isSticky,O=e.language,C=e.layout,I=e.modModeEnabled,k=e.onCommentsClick,A=e.post,B=e.sendEvent,F=e.showEditFlair,R=e.showEditPost,$=e.subreddit,D=e=>B(Object(w.d)(A.id,e)),U=A.postId,W=Object(u.f)(_,A.id,h,x),H=!!n&&Object(S.f)(n)===A.author;return N("div",{className:Object(c.a)(P.a.flatlistContainer,o)},void 0,N(M,{compact:!1,model:A,onVoteClick:s}),N(l.b,{hasModPostPerms:i,isCommentsPage:d,isCommentPermalink:p,isOverlay:h,postId:A.id,modModeEnabled:I,numComments:A.numComments,type:v.f.Compact,onClick:k}),N(g.a,{className:P.a.shareMenu,dropdownId:Object(u.f)(L,A.id,h,x),isOverlay:!!h,permalink:A.permalink,post:A,sendEventWithName:D,subreddit:$},void 0,N(E,{},void 0,N(j.a,{className:P.a.shareIcon}),N("span",{className:P.a.shareText},void 0,Object(a.a)(O,"posts.share")))),i&&N(m.a,{dropdownId:W,onClick:()=>D("post_mod_action_menu")},void 0,N(u.b,{className:P.a.modActionsIcon}),N(b.a,{hasModFlairPerms:r,hasModPostPerms:i,isOverlay:!!h,isPostAuthor:H,language:O,modModeEnabled:I,post:A,tooltipId:W})),N(f.g,{currentProfileName:t,isCommentsPage:d,isOverlay:!!h,isProfilePostListing:y,layout:C,pageLayer:e.pageLayer,permalink:A.permalink,postId:U,dropdownId:Object(u.f)(T,A.id,h,x),isFixed:x,sendEvent:B,showEditPost:!!R,showEditFlair:!!F,useFlatlistBreakpoints:Object(f.h)({editPost:!1,save:!1,hide:!1,report:!1})}))})))},"./src/reddit/components/MiniCardPost/MetaLine/index.m.less":function(e,t,o){e.exports={container:"_35Bx3s8VlFspHwPlg1MaHt",subredditIcon:"_32Ni_aGBoPzRxNSy5eC_ck"}},"./src/reddit/components/MiniCardPost/MetaLine/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return x});o("./node_modules/react/index.js");var n,s=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(s),i=o("./src/app/strings/index.ts"),d=o("./src/config.ts"),a=o("./src/lib/classNames/index.ts"),c=o("./src/reddit/components/QuarantinedLabel/index.tsx"),l=o("./src/reddit/components/SubredditIcon/index.tsx"),p=o("./src/reddit/components/SubredditNameLink/index.tsx"),u=o("./src/reddit/helpers/getSubredditOrProfileIconData/index.tsx"),m=o("./src/reddit/helpers/name/index.ts"),b=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),f=o("./src/reddit/icons/fonts/Crosspost/index.tsx"),g=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),h=o("./src/reddit/components/MiniCardPost/MetaLine/index.m.less"),v=o.n(h),y=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const x=Object(s.css)(["."," {",""," {","color: ",";}}"],v.a.container,b.metadataFont,p.a,b.metadataFont,e=>Object(g.c)(e).metaText),O=r()(f.a).withConfig({componentId:"s1pt5i0s-0"})(["color: ",";font-size: 10px;margin: 0 4px;"],e=>Object(g.c)(e).active);t.a=(e=>{const t=e.className,o=e.crosspostSubredditOrProfile,n=e.hideNSFWPref,s=e.language,r=e.post,b=e.subredditOrProfile,f=Object(u.a)({subredditOrProfile:b}),g=b&&b.isNSFW&&n&&"user"===b.type?`${d.a.assetPath}/img/avatar_over18.png`:f.url;return y("div",{className:Object(a.a)(v.a.container,t)},void 0,y(p.a,{to:b.url,onMouseDown:e.onCommunityClick},void 0,y(l.b,{className:v.a.subredditIcon,primaryColor:f.color,iconUrl:g}),y("span",{},void 0,b.displayText)),((e,t,o)=>{if(o)return y("div",{role:"img","aria-label":Object(i.a)(e,"posts.crosspostedByFrom",{by:Object(m.c)(t),from:o.displayText})},void 0,y(O,{}))})(s,r.author,o),b&&b.isQuarantined&&y(c.a,{}))})},"./src/reddit/components/MiniCardPost/Placeholder/index.m.less":function(e,t,o){e.exports={container:"qxO-jkRl1-0EUFMSW12Wx",thumbnail:"_10app6y4qukOnb1vd3WjaL",content:"Dmp1nT-wBa1YnTs1m5Qh-",titleContainer:"_3zDhT2pkq9c_2I1Wc0TC7W",title:"_1baTc1hWul6JGRus85W_n9",subreddit:"_1QAmOEgKAW-xepM1iAQ1vt",subredditIcon:"_2kjKnQFVUV8rujMRQ0FJcM",subredditName:"_1gWkHloK0RuxI3PqEBqAlk",comments:"_3Se1TreUiuh_QYZKmggj-E",share:"_1auh4Ct-kA4za4GqRMTChm",ellipsis:"_3KZqW8v85dlRDNmHXcrU5X"}},"./src/reddit/components/MiniCardPost/Thumbnail/index.m.less":function(e,t,o){e.exports={container:"_1HoOlmppFDBC4s5XWY-Qcd",link:"_3vSJGY3bytdlY4DhANolyh"}},"./src/reddit/components/MiniCardPost/Thumbnail/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(s),i=o("./src/lib/classNames/index.ts"),d=o("./src/reddit/components/Thumbnail/index.tsx"),a=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),c=o("./src/reddit/components/Thumbnail/index.m.less"),l=o.n(c),p=o("./src/reddit/components/MiniCardPost/Thumbnail/index.m.less"),u=o.n(p),m=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const b=r.a.div.withConfig({componentId:"nndyxl-0"})(["",";"],d.e),f="\n width: 208px;\n height: 158px;\n",g=Object(s.css)(["border: 1px solid ",";"," {."," {",";}."," {align-items: center;background-color: ",";border-radius: 0 0 4px 4px;display: flex;padding: 4px 0px;width: 100%;}"," {margin-left: 4px;max-width: 180px;}."," {font-size: 18px;}."," {","border-width: 0;}}&:hover {"," {."," {background-color: ",";}}}"],e=>Object(a.c)(e).line,b,l.a.container,f,l.a.linkIcon,e=>Object(a.c)(e).postFlairText,d.b,l.a.outboundLinkIcon,l.a.thumbnail,f,b,l.a.linkIcon,e=>Object(a.c)(e).button),h=r.a.div.withConfig({componentId:"nndyxl-1"})(["",";"],g);t.a=(e=>{const t=e.post.source;return m(h,{className:Object(i.a)(u.a.container,e.className)},void 0,m(b,{},void 0,m(d.d,{post:e.post,showContentType:e.showPlaceholderContentType,templatePlaceholderImage:e.templatePlaceholderImage,text:t?t.url:""})))})},"./src/reddit/components/MiniCardPost/index.m.less":function(e,t,o){e.exports={flexSpacer:"_3FMwep96W9D-wkC9u2Pc0L",backgroundWrapper:"_2yVioz8mzc0YBV2JyNXzRj",innerContainer:"_3mrITcnODXcvMf9oonBXeD",metaLine:"_20xUo-97VDWkydk8rn74dR",media:"_1qlC_L_v_Aher9NBsvBIMR",mediaWrapper:"_1UmG626eNsebZt_eyKdDL4",postTitleCompact:"_3wSK3_gZiuaUZtqPKu9z3M"}},"./src/reddit/components/MiniCardPost/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return $}),o.d(t,"d",function(){return D}),o.d(t,"a",function(){return U});o("./node_modules/react/index.js");var n,s=o("./node_modules/react-redux/es/index.js"),r=o("./node_modules/reselect/lib/index.js"),i=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(i),a=o("./src/app/actions/tooltip.ts"),c=o("./src/lib/isUrl/index.ts"),l=o("./src/reddit/actions/post.ts"),p=o("./src/reddit/actions/postFlair.ts"),u=o("./src/reddit/components/JSAPIContainers/index.tsx"),m=o("./src/reddit/components/Media/index.tsx"),b=o("./src/reddit/components/PostBackgroundWrapper/index.tsx"),f=o("./src/reddit/components/PostContainer/index.tsx"),g=o("./src/reddit/components/PostFlairPicker/index.tsx"),h=o("./src/reddit/components/PostTitle/index.tsx"),v=o("./src/reddit/contexts/PageLayer/index.tsx"),y=o("./src/reddit/helpers/hasModFlairPermissions/index.ts"),x=o("./src/reddit/helpers/hasModPostPermissions/index.ts"),O=o("./src/reddit/helpers/styles/components/index.tsx"),w=o("./src/reddit/helpers/styles/mixins/index.tsx"),j=o("./src/reddit/models/Media/index.ts"),S=o("./src/reddit/models/Vote/index.ts"),C=o("./src/reddit/selectors/activeModalId.ts"),I=o("./src/reddit/selectors/moderatorPermissions.ts"),k=o("./src/reddit/selectors/posts.ts"),P=o("./src/reddit/selectors/user.ts"),N=o("./src/reddit/components/MiniCardPost/Flatlist/index.tsx"),_=o("./src/reddit/components/MiniCardPost/MetaLine/index.tsx"),T=o("./src/reddit/components/MiniCardPost/Thumbnail/index.tsx"),L=o("./src/reddit/components/Media/ImageBox/index.m.less"),M=o.n(L),A=o("./src/reddit/components/MiniCardPost/index.m.less"),E=o.n(A),B=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const F=Object(i.css)([".",",."," {height: 100%;}"],M.a.container,M.a.image),R=Object(v.w)(),$=Object(s.connect)(()=>Object(r.createStructuredSelector)({activeModalId:C.a,autoplayPref:P.b,crosspostRoot:k.c,crosspostSubredditOrProfile:k.d,currentUser:P.j,flairStyleTemplate:v.S,hideNSFWPref:P.x,isActive:k.f,language:P.M,moderatorPermissions:I.f,modModeEnabled:v.Q,post:k.D,subredditOrProfile:k.O,userIsOp:P.db}),(e,{postId:t})=>({dispatchFlairChanged:({post:t,previewFlair:o,selectedTemplateId:n})=>e(Object(p.h)({post:t,previewFlair:o,selectedTemplateId:n})),handleVote:o=>{const n=o===S.a.upvoted?Object(l.J)(t):Object(l.n)(t);e(n)},onIgnoreReports:()=>e(Object(l.H)(t)),onOpenReportsDropdown:t=>e(Object(a.e)({tooltipId:t}))}),(e,t,o)=>Object.assign({},o,e,t,{onFlairChanged:({previewFlair:o,selectedTemplateId:n})=>t.dispatchFlairChanged({post:e.post,previewFlair:o,selectedTemplateId:n})})),D=Object(O["d"])()`
|
|
${w.n}
|
|
${w.m}
|
|
${b.a}
|
|
${N.b}
|
|
${_.b}
|
|
${F}
|
|
|
|
${e=>Object(w.j)(e.flairStyleTemplate)};
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
flex: 1;
|
|
`,U=d()(e=>{const t=e.autoplayPref,o=e.availableWidth,n=e.className,s=e.crosspostRoot,r=e.crosspostSubredditOrProfile,i=e.currentUser,d=e.eventFactory,a=e.flairStyleTemplate,l=e.forceLoadMedia,p=e.hideNSFWPref,v=e.language,O=e.moderatorPermissions,w=e.modModeEnabled,S=e.onClickPost,C=e.post,I=e.scrollerItemRef,k=e.shouldPause;var P=e.showMetaLine;const L=void 0===P||P,M=e.subredditOrProfile,A=e.userIsOp;const F=(s||C).media,R=F&&F.type,$=Object(g.b)(C.id),D=R===j.m.RTJSON,U="subreddit"===C.belongsTo.type,W=A&&D,H=A&&!!U,V=Object(x.a)(O),z=Object(y.a)(O),q=F&&R!==j.m.RTJSON&&R!==j.m.TEXT,G=!F&&!!C.source&&Object(c.a)(C.source.url),K=F&&B(m.a,{autoplayPref:t,availableWidth:o,className:E.a.media,forceAspectRatio:j.c,isListing:!0,isMiniCard:!0,isNotCardView:!0,post:s||C,scrollerItemRef:I,shouldPause:k,shouldLoad:l,showCentered:!0,showFull:!1});return B(f.a,{className:n,post:C,onClick:S,eventFactory:d},void 0,B(b.b,{className:E.a.backgroundWrapper,flairStyleTemplate:a},void 0,q&&K,B("div",{className:E.a.innerContainer},void 0,G&&B(T.a,{post:C,templatePlaceholderImage:a?a.postPlaceholderImage:void 0}),B(h.c,{className:E.a.postTitleCompact,disableFlair:!0,hideSourceLink:!0,post:C,size:h.b.Large,titleColor:a&&a.postTitleColor}),L&&M&&B(_.a,{className:E.a.metaLine,crosspostSubredditOrProfile:r,hideNSFWPref:p,language:v,post:C,subredditOrProfile:M}),!q&&B("div",{className:E.a.mediaWrapper},void 0,K),B("div",{className:E.a.flexSpacer}),B(N.a,{currentUser:i,handleVote:e.handleVote,hasModFlairPerms:z,hasModPostPerms:V,language:v,modModeEnabled:w,post:C,showEditFlair:H,showEditPost:W}))),e.activeModalId===$&&B(g.a,{flairs:C.flair,subredditId:C.belongsTo.id,language:v,modalId:$,onFlairChanged:e.onFlairChanged}),B(u.d,{postId:C.id}))}).withConfig({componentId:"s1ml9eop-0"})(["",";"],D);t.c=R($(U))},"./src/reddit/components/MiniPost/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return S});var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),a=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(a),l=o("./src/app/strings/index.ts"),p=o("./src/lib/prettyPrintNumber/index.ts"),u=o("./src/lib/timeAgo/index.ts"),m=o("./src/reddit/components/SubredditNameLink/index.tsx"),b=o("./src/reddit/components/Thumbnail/index.tsx"),f=o("./src/reddit/helpers/overlay/index.ts"),g=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),h=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),v=o("./src/reddit/selectors/news.ts"),y=o("./src/reddit/selectors/posts.ts"),x=o("./src/reddit/selectors/subreddit.ts"),O=o("./src/reddit/selectors/user.ts"),w=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const j=c.a.p.withConfig({componentId:"s1weoanc-0"})(["","color: ",";margin-bottom: 4px;max-height: 36px;overflow: hidden;text-overflow: ellipsis;"],g.titleFontH5,e=>Object(h.c)(e).bodyText),S=Object(a.css)(["cursor: pointer;display: flex;padding-top: 12px;&:not(:last-child) {border-bottom: 2px solid ",";padding-bottom: 12px;}&:hover "," {text-decoration: underline;}"],e=>Object(h.c)(e).field,j),C=c.a.div.withConfig({componentId:"s1weoanc-1"})(["",";"],S),I=c.a.div.withConfig({componentId:"s1weoanc-2"})(["","border-radius: 4px;display: inline-block;flex: 0 0 65px;height: 49px;margin-right: 7px;width: 65px;"],b.e),k=c.a.div.withConfig({componentId:"s1weoanc-3"})(["display: flex;flex: 1;flex-direction: column;justify-content: center;overflow: hidden;"]),P=c.a.span.withConfig({componentId:"s1weoanc-4"})(["","color: ",";white-space: nowrap;& ~ &:before {content: '·';font-weight: bold;margin: 0 3px;}"],g.metadataFont,e=>Object(h.c)(e).actionIcon),N=Object(d.createSelector)(e=>e,y.D,y.c,v.q,O.M,(e,t,o,n,s)=>{return{crosspost:o,language:s,newsStory:n,post:t,subredditOrProfile:Object(x.C)(e,{identifier:t.belongsTo})}}),_=Object(i.connect)(N,(e,t)=>({openLightbox:t=>e(Object(f.a)(t.permalink))}));t.b=_(class extends r.a.PureComponent{constructor(){super(...arguments),this.onClickContainer=(()=>{var e=this.props;const t=e.openLightbox,o=e.post,n=e.containerOnClick;t(o),n&&n()}),this.onClickSubreddit=(e=>{const t=this.props.subredditOnClick;e.stopPropagation(),t&&t()}),this.onClickThumbnail=(e=>{const t=this.props.thumbnailOnClick;e.stopPropagation(),t&&t()})}render(){var e=this.props,t=e.allowNewsThumbnail;const o=void 0!==t&&t,n=e.className,s=e.newsStory,r=e.post;var i=e.showSubreddit;const d=void 0!==i&&i,a=e.subredditOrProfile;return w(C,{className:n,onClick:this.onClickContainer},void 0,w(I,{onClick:this.onClickThumbnail},void 0,w(b.d,{post:r,url:o&&s&&s.thumbnailUrl&&r&&r.thumbnail&&"default"===r.thumbnail.url?s.thumbnailUrl:""})),w(k,{},void 0,w(j,{title:r.title},void 0,r.title),d&&a&&a.displayText&&w(m.a,{to:a.url,onClick:this.onClickSubreddit},void 0,a.displayText),w("div",{},void 0,w(P,{},void 0,Object(l.d)(this.props.language,"posts.points.noun",r.score,{count:Object(p.b)(r.score)})),w(P,{},void 0,Object(l.d)(this.props.language,"posts.comments.noun",r.numComments,{count:Object(p.b)(r.numComments)})),w(P,{},void 0,Object(u.b)(this.props.language,r.created/1e3,!0,!0)))))}})},"./src/reddit/components/ModModeReports/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(i),a=o("./src/higherOrderComponents/makeAsync.tsx"),c=o("./src/lib/loadWithRetries/index.ts"),l=o("./src/app/strings/index.ts"),p=o("./src/reddit/helpers/styles/components/index.tsx"),u=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),m=o("./src/reddit/helpers/styles/mixins/loading.ts"),b=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),f=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const g=d.a.div.withConfig({componentId:"bv6crb-0"})(["margin: 0 8px;"]),h=d()(Object(p.a)()).withConfig({componentId:"bv6crb-1"})(["","","align-items: center;background-color: ",";color: ",";display: flex;height: 32px;margin: 8px;width: calc(100% - 16px);"],u.flairFont,m.c,e=>Object(b.c)(e).line,e=>Object(b.c)(e).bodyText),v=Object(a.a)({ErrorComponent:({className:e})=>f(h,{className:e}),getComponent:()=>Object(c.a)(()=>o.e("ModerationDropdowns").then(o.bind(null,"./src/reddit/components/ModModeReports/_ModModeReports.tsx")).then(e=>e.default)),LoadingComponent:({className:e,language:t})=>f(h,{className:e},void 0,f(g,{},void 0,Object(l.a)(t,"modTools.loadingReports")))});t.a=(e=>r.a.createElement(v,e))},"./src/reddit/components/MultiredditInfo/SubredditsOrProfilesList.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-router-dom/es/index.js"),d=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(d),c=o("./src/app/strings/index.ts"),l=o("./src/reddit/controls/Button/index.tsx"),p=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),u=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),m=o("./node_modules/react-redux/es/index.js"),b=o("./node_modules/reselect/lib/index.js"),f=o("./src/reddit/components/SubredditIcon/index.tsx"),g=o("./src/reddit/selectors/subreddit.ts"),h=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const v=a()(f.b).withConfig({componentId:"s1qgke92-0"})(["height: 20px;margin-right: 8px;width: 20px;"]),y=a.a.span.withConfig({componentId:"s1qgke92-1"})(["",""],p.titleFontH5),x=Object(b.createStructuredSelector)({subredditOrProfile:g.C});var O=Object(m.connect)(x)(({children:e,subredditOrProfile:t})=>e(t,h(r.a.Fragment,{},void 0,h(v,{subredditOrProfile:t}),h(y,{},void 0,t.displayText)))),w=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var j=({children:e,className:t,subredditsOrProfilesIds:o})=>{const n=o.map(t=>w(O,{children:e,identifier:t},t.id));return w("div",{className:t},void 0,n)};o.d(t,"a",function(){return P});var S=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const C=a.a.div.withConfig({componentId:"s1yc90yy-0"})(["","color: ",";"],p.labelsFont,e=>Object(u.c)(e).metaText),I=a()(j).withConfig({componentId:"s1yc90yy-1"})(["margin-top: 8px;"]),k="\n align-items: center;\n display: flex;\n transition: background-color 0.2s;\n\n &:hover {\n background-color: rgba(0,0,0,0.05);\n }\n",P=a()(i.a).withConfig({componentId:"s1yc90yy-2"})(["","margin-left: -","px;margin-right: -","px;padding: 4px ","px;"],k,12,12,12),N=a()(i.a).withConfig({componentId:"s1yc90yy-3"})(["","margin-left: -","px;margin-right: -","px;padding: 4px ","px;"],k,16,16,16);var _;!function(e){e[e.Modal=0]="Modal",e[e.Sidebar=1]="Sidebar"}(_||(_={}));t.b=(e=>{const t=e.isSidebar,o=e.subredditsOrProfilesIds,n=e.language,s=e.onboardingCategory,i=e.onSeeMoreDetails,d=e.subredditCategory,a=t?P:N,p=o.length,u=t&&o.length>4;return S(r.a.Fragment,{},void 0,S(C,{},void 0,p>0?Object(c.d)(n,"multireddit.info.communityCount",p,{object:Object(c.a)(n,s||d?"multireddit.info.category":"multireddit.info.multi")}):Object(c.a)(n,"multireddit.empty")),p>0&&S(I,{subredditsOrProfilesIds:t?o.slice(0,4):o},void 0,(t,o)=>S(a,{to:t.url,onMouseDown:e.onSubredditClick?()=>e.onSubredditClick(t):void 0},t.url,o)),p>0&&u&&S(l.l,{onClick:i},void 0,Object(c.a)(n,"multireddit.info.seeMore")))})},"./src/reddit/components/MultiredditSidebar/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),a=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(a),l=o("./src/app/strings/index.ts"),p=o("./src/higherOrderComponents/asModal.tsx"),u=o("./src/reddit/components/ModalStyledComponents/index.tsx"),m=o("./src/higherOrderComponents/sizeMe.tsx"),b=o("./src/lib/timeAgo/index.ts"),f=o("./src/reddit/components/Flair/index.tsx"),g=o("./src/reddit/components/RawHTMLDisplay/index.tsx"),h=o("./src/reddit/constants/posts.ts"),v=o("./src/reddit/controls/Button/index.tsx"),y=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),x=o("./src/reddit/models/Multireddit/index.ts"),O=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),w=o("./src/reddit/components/MultiredditInfo/SubredditsOrProfilesList.tsx"),j=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,s=!1,r=void 0;try{for(var i,d=e[Symbol.iterator]();!(n=(i=d.next()).done)&&(o.push(i.value),!t||o.length!==t);n=!0);}catch(a){s=!0,r=a}finally{try{!n&&d.return&&d.return()}finally{if(s)throw r}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),S=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const C=c.a.div.withConfig({componentId:"s1hvr2yv-0"})(["margin-bottom: 12px;"]),I=c.a.div.withConfig({componentId:"s1hvr2yv-1"})(["margin-bottom: 16px;"]),k=c.a.div.withConfig({componentId:"s1hvr2yv-2"})(["align-items: center;display: flex;margin-bottom: 4px;"]),P=c.a.div.withConfig({componentId:"s1hvr2yv-3"})(["",""],y.titleFontH5),N=c()(f.a).withConfig({componentId:"s1hvr2yv-4"})(["margin-left: 5px;"]),_=c.a.div.withConfig({componentId:"s1hvr2yv-5"})(["","color: ",";"],y.metadataFont,e=>Object(O.c)(e).actionIcon),T=c()(({children:e,className:t,shouldFade:o})=>S(g.a,{className:t,html:e})).withConfig({componentId:"s1hvr2yv-6"})(["overflow: hidden;",""],e=>e.shouldFade?"/* Mask + max-height assumes 20px line height, 1 line transition to transparent */\n -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, transparent);\n mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, transparent);\n max-height: 152px;":"max-height: 152.03px;"),L=Object(m.a)(({children:e,language:t,onSeeMoreDetails:o,size:n})=>{const s=!n||"number"!=typeof n.height||n.height>152;return S("div",{},void 0,S(T,{shouldFade:s},void 0,e),s&&S(v.l,{onClick:o},void 0,Object(l.a)(t,"multireddit.info.readMore")))});var M;!function(e){e[e.Modal=0]="Modal",e[e.Sidebar=1]="Sidebar"}(M||(M={}));var A=c()(e=>{const t=e.mode,o=e.multireddit,n=e.language,s=e.onboardingCategory,r=e.onSeeMoreDetails,i=e.subredditCategory,d=t===M.Sidebar;var a=j(d?[C,_]:[I,_],2);const c=a[0],p=a[1],u=Object(x.b)(o)?()=>S(c,{},void 0,d&&S(k,{},void 0,S(P,{},void 0,o.displayText),o.visibility!==x.a.Public&&S(N,{text:Object(l.a)(n,`multireddit.visibility.${o.visibility}`)})),S(p,{},void 0,Object(l.a)(n,"multireddit.info.title",{timeAgo:Object(b.b)(n,o.created),username:(e=>/^\/user\/([^\/]+)\//.exec(e)[1])(o.url)}))):()=>null,m=Object(x.b)(o)&&o.description?()=>S(c,{},void 0,d?S(L,{language:n,onSeeMoreDetails:r},void 0,o.description):S(g.a,{html:o.description})):()=>null,f=o.subredditIds.map(e=>({id:e,type:h.a.SUBREDDIT}));return S("div",{className:e.className},void 0,u(),m(),S(w.b,{isSidebar:d,language:n,onboardingCategory:s,onSeeMoreDetails:r,subredditCategory:i,subredditsOrProfilesIds:f}))}).withConfig({componentId:"s1hvr2yv-7"})(["color: ",";"],e=>Object(O.c)(e).bodyText),E=o("./src/reddit/components/SidebarContainer/index.tsx"),B=o("./src/reddit/components/SidebarSectionHeader/index.tsx"),F=o("./src/reddit/components/SidebarStickyBottom/index.tsx"),R=o("./src/reddit/constants/zIndex.ts"),$=o("./src/reddit/controls/TextButton/index.tsx"),D=o("./src/reddit/helpers/trackers/idCard.ts"),U=o("./src/reddit/layout/twoCol/ExpandLeft/index.tsx"),W=o("./src/reddit/models/Widgets/index.ts"),H=o("./src/reddit/selectors/user.ts");o.d(t,"a",function(){return Q});var V=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},z=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const q=c.a.div.withConfig({componentId:"s19c7ckw-0"})(["padding: 12px;background-color: ",";border-radius: 4px;"],e=>Object(O.c)(e).body),G=c()(u.c).withConfig({componentId:"s19c7ckw-1"})(["position: relative;"]),K=c()($.a).withConfig({componentId:"s19c7ckw-2"})(["position: absolute;right: 16px;top: 16px;"]),J=c()(u.h).withConfig({componentId:"s19c7ckw-3"})(["max-height: calc(100vh - 126px);overflow-y: auto;"]),X=Object(p.a)(e=>z(G,{},void 0,!e.shouldHideHeader&&z(u.g,{},void 0,z(U.b,{},void 0,z(u.k,{},void 0,e.multireddit.displayText),z($.a,{onClick:e.onCloseModal},void 0,z(u.b,{})))),z(J,{},void 0,z(A,{language:e.language,mode:M.Modal,multireddit:e.multireddit,onboardingCategory:e.onboardingCategory,subredditCategory:e.subredditCategory})),e.shouldHideHeader&&z(K,{onClick:e.onCloseModal},void 0,z(u.b,{})))),Z=Object(a.css)(["z-index: ",";"],R.m),Q=e=>r.a.createElement(X,V({},e,{overlayCustomStyles:Z})),Y=e=>z(q,{},void 0,z(B.a,{},void 0,e.onboardingCategory?e.onboardingCategory.displayText(e.language):e.subredditCategory?e.subredditCategory.name:Object(l.a)(e.language,"multireddit.sidebar.details")),z(A,{language:e.language,mode:M.Sidebar,multireddit:e.multireddit,onboardingCategory:e.onboardingCategory,onSeeMoreDetails:e.onSeeMoreDetails,onSubredditClick:e.onSubredditClick,subredditCategory:e.subredditCategory})),ee=Object(d.createStructuredSelector)({language:(e,{language:t})=>t||Object(H.M)(e)}),te=Object(i.connect)(ee,(e,{subredditCategory:t})=>({trackSeeMoreClicked:()=>e((e,t)=>D.a(t())),trackSubredditClicked:o=>{if(!t)return;const n=Object(W.h)(o);e((e,o)=>D.b(o(),n,t.name))}}));t.b=te(class extends r.a.Component{constructor(){super(...arguments),this.state={showModal:!1},this.closeModal=(()=>this.setState({showModal:!1})),this.openModal=(()=>this.setState({showModal:!0},this.props.subredditCategory?this.props.trackSeeMoreClicked:void 0))}render(){var e=this.props;const t=e.className,o=e.language,n=e.multireddit,s=e.onboardingCategory,r=e.subredditCategory;return z(E.a,{className:t},void 0,z(Y,{language:o,multireddit:n,onboardingCategory:s,subredditCategory:r,onSeeMoreDetails:this.openModal,onSubredditClick:this.props.trackSubredditClicked}),this.state.showModal?z(Q,{language:o,multireddit:n,onboardingCategory:s,subredditCategory:r,onCloseModal:this.closeModal,shouldHideHeader:!!r}):null,z(F.a,{}))}})},"./src/reddit/components/Poll/ClosedPoll/index.m.less":function(e,t,o){e.exports={metaData:"_3NpICHyFK-vnQ5_1ZcNtNn",option:"_1YnhQ_-VBuRiYmNRfa798"}},"./src/reddit/components/Poll/OpenPoll/index.m.less":function(e,t,o){e.exports={buttonContainer:"_3vyz17dpfnySBJJyBF9IqH",loggedOutTooltip:"_3YsZUGQHAWfxmTN8wbFYPd",controlRow:"_1YKCRAHpaqTk8N5LBvZ9_A",loadingIcon:"_2RQF5_CKHRDPDOJ-TwwXFy",metaData:"_28wp7DzoykykevfZW56u3_",option:"_3nN8pAR2tWvzxcstONuzMH",optionRadio:"_1d_v-dIPu8uuwF0UTaQNmF",optionText:"_3grr_S6IK0w2iyC7Ocv5u9",voteButton:"fmooe0ZUmdU_XdnKBjg6X"}},"./src/reddit/components/Poll/ResultOption/index.m.less":function(e,t,o){e.exports={bar:"_2mybT6Ih7gVf5B6COa9kd2","m-winning":"_1kOO45KEOZraWGZ-cUgKq-",mWinning:"_1kOO45KEOZraWGZ-cUgKq-",check:"_3CF-7jBH1KihljB9AqaU04",container:"_3uG88YeFdY0J8n4v07jkf9",count:"_1VDLlB8Ys3WO8XWSZfhomw",percent:"_1Ot3PH7267obvD1i_V2D00",hide:"_3G6ZB4S9YZ26E49tE8zLJQ",show:"iV9AWdqazd5c9IHXNEQXX",text:"_3PfYu2DtunAwYpv53tmvOb"}},"./src/reddit/components/Poll/index.m.less":function(e,t,o){e.exports={title:"_3xG1v2CUdyxRoHrB7dgiFw"}},"./src/reddit/components/PostList/LoadMore.tsx":function(e,t,o){"use strict";var n=o("./bundled-modules/styled-components/styled-components.min.js"),s=o.n(n),r=o("./src/reddit/components/PostList/Placeholder.tsx");t.a=s()(r.a).withConfig({componentId:"rybpsf-0"})(["height: ","px;overflow: hidden;margin-bottom: -20px;"],156)},"./src/reddit/components/PostList/SomethingWrong.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./src/app/helpers/describeApiError/index.ts"),r=o("./src/app/strings/index.ts"),i=o("./src/reddit/connectors/connectToLanguage.ts"),d=o("./src/reddit/controls/Button/index.tsx"),a=o("./src/reddit/components/PostList/index.m.less"),c=o.n(a),l=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=Object(i.a)(e=>{const t=e.language,o=e.onTryAgain,n=e.apiError;let i=Object(r.a)(t,"posts.somethingWentWrongWhileLoading");return n&&(i=Object(s.a)({apiError:n,language:t,isLoggedOut:!1})),l("div",{className:c.a.somethingWrong},void 0,l("div",{className:c.a.somethingWrongText},void 0,i),o&&l(d.d,{onClick:o},void 0,Object(r.a)(t,"posts.tryAgain")))})},"./src/reddit/components/PostList/index.m.less":function(e,t,o){e.exports={placeholder:"FohHGMokxXLkon1aacMoi",seeMoreButton:"_1Uj2L1UhJuirkaXINcf9S8",seeMorePostsText:"_2DB_2VI3a-y6nk57R2aWVo",somethingWrong:"zfoxmi0VvZvMZu1rHVbMX",somethingWrongText:"Ii7DEkcMDxQHElTHeeaci",postList:"rpBJOHq2PR60pnwJlUyP0",truncatedPostList:"QBfRw7Rj8UkxybFpX-USO"}},"./src/reddit/components/PostList/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return Z}),o.d(t,"a",function(){return Y});var n,s=o("./node_modules/history/index.js"),r=o("./node_modules/lodash/debounce.js"),i=o.n(r),d=o("./node_modules/lodash/last.js"),a=o.n(d),c=o("./node_modules/react/index.js"),l=o.n(c),p=o("./node_modules/react-dom/index.js"),u=o("./bundled-modules/styled-components/styled-components.min.js"),m=o.n(u),b=o("./src/lib/addQueryParams/index.ts"),f=o("./src/lib/classNames/index.ts"),g=o("./src/lib/constants/index.ts"),h=o("./src/lib/opener/index.ts"),v=o("./src/lib/raven/index.ts"),y=o("./src/reddit/components/PostList/LoadMore.tsx"),x=o("./src/reddit/components/PostList/SomethingWrong.tsx"),O=o("./src/reddit/components/PromoBanners/index.tsx"),w=o("./src/reddit/components/Scroller/Simple.tsx"),j=o("./src/reddit/components/Translated/index.tsx"),S=o("./src/reddit/constants/adEvents.ts"),C=o("./src/reddit/constants/componentSizes.ts"),I=o("./src/reddit/constants/postLayout.ts"),k=o("./src/reddit/constants/promos.ts"),P=o("./src/reddit/controls/InternalLink/index.tsx"),N=o("./src/reddit/helpers/getClickInfo.ts"),_=o("./src/reddit/helpers/pixels.ts"),T=o("./src/reddit/icons/svgs/ArrowRight/index.tsx"),L=o("./src/reddit/models/Media/index.ts"),M=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),A=o("./src/reddit/helpers/brandSafety/index.ts"),E=o("./src/lib/LRUCache/index.ts"),B=o("./src/telemetry/index.ts"),F=o("./src/telemetry/models/Timer.ts"),R=o("./src/reddit/components/PostList/index.m.less"),$=o.n(R),D=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),U=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=500,H=new E.a(W),V=new E.a(W),z=new E.a(W),q={LARGE:1,MEDIUM:1,CLASSIC:3,COMPACT:5},G=m.a.div.withConfig({componentId:"s1ljgxuk-0"})(["color: ",";background-color: ",";"],e=>Object(M.c)(e).linkText,e=>Object(M.c)(e).body),K=m()(T.a).withConfig({componentId:"s1ljgxuk-1"})(["fill: ",";padding-left: 12px;vertical-align: middle;width: 16px;"],e=>Object(M.c)(e).linkText),J=(e,t,o,n,s,r)=>{const i=`entered-${e}-${t}-${o?`last-${n}-${s}`:""}`;let d=H.get(i);return void 0===d&&(d=(()=>{o&&r.onBottomViewed(n,s),r.trackOnPostEnteredViewport(e,t)}),H.set(i,d)),d},X=(e,t,o)=>{const n=`left-${e}-${t}`;let s=V.get(n);return void 0===s&&(s=(n=>{o.trackOnPostExitedViewport(e,t,n)}),V.set(n,s)),s},Z=(e,t)=>{const o=`click-${e}`;let n=z.get(o);return void 0===n&&(n=((e,o)=>{o.isSponsored&&Object(_.a)(o.events,S.a.Click),o.isSponsored&&o.source&&o.source.outboundUrl?Object(h.b)(o.source.outboundUrl,h.a.BLANK):t.openPost({postOrComment:o,clickInfo:Object(N.a)(e)})}),z.set(o,n)),n},Q=(e,t)=>{if(e.isBlank)return 0;switch(t){case I.f.Medium:return 188;case I.f.Classic:return 96;case I.f.Compact:return 32;default:return 200}};class Y extends l.a.Component{constructor(){super(...arguments),this.didRenderLastVisibleChild=!1,this.renderingEmpty=!1,this.renderingPlaceholder=!1,this.scrollChildCache=new E.a(W),this.updateScrollerRef=(e=>{const t=e&&Object(p.findDOMNode)(e);this.scrollerRef=t instanceof Element?t:void 0}),this.setLastVisibleChildRendered=(()=>{this.didRenderLastVisibleChild=!0,this.checkAndSendScreenview()}),this.onScrollPause=(e=>{this.showSubscribeTooltip(e),this.dispatchBrandSafety(e)}),this.showSubscribeTooltip=i()(({primaryChild:e})=>{e&&this.props.layout!==I.f.Compact&&this.props.showM2MTooltip(e.id,e.index,!!this.props.inSubredditOrProfile)},g.e),this.dispatchBrandSafety=i()(({getVisibleItemsInViewport:e})=>{var t=this.props;const o=t.postsById,n=t.subredditsById,s=e(),r=[];s.forEach(e=>r.push(e.id));const i=r.map(e=>o[e]),d=i.map(e=>n[e.belongsTo.id]).filter(e=>void 0!==e);this.props.adBrandSafetyStatusReceived(Object(A.a)(i,d))},g.e,{leading:!0})}componentWillMount(){this.timerId&&B.c.cancel(this.timerId),this.props.postIds.length&&(this.timerId=B.c.start())}componentDidMount(){if(this.checkAndSendScreenview(),this.timerId){const e=B.c.end(this.timerId);setTimeout(()=>Object(B.b)(g.o.Redesign,{type:"mount",component:"postList",duration:e}),0)}}componentWillUpdate(e){this.timerId&&B.c.cancel(this.timerId),e.postIds.length&&(this.timerId=B.c.start()),(e.listingKey!==this.props.listingKey||e.postIds.length!==this.props.postIds.length&&!this.isListLongEnough())&&(this.didRenderLastVisibleChild=!1)}componentDidUpdate(e){if(this.checkAndSendScreenview(),this.timerId&&B.c.has(this.timerId)){const e=B.c.end(this.timerId);if(e<10)return;setTimeout(()=>Object(B.b)(g.o.Redesign,{duration:e,type:"mount",component:"postList"}),0)}}componentWillUnmount(){this.timerId&&B.c.cancel(this.timerId),this.scrollerRef=null,this.didRenderLastVisibleChild=!1}isListLongEnough(){const e=this.scrollerRef&&Array.from(this.scrollerRef.children),t=e&&a()(e);return t&&t.getBoundingClientRect().bottom>window.innerHeight}shouldSendScreenview(){var e=this.props;const t=e.apiError,o=e.listingKey,n=e.viewportDataLoaded;return B.c.has(o)&&(t||!this.renderingPlaceholder&&(this.renderingEmpty||this.didRenderLastVisibleChild&&(n||this.isListLongEnough())))}checkAndSendScreenview(){var e=this.props;const t=e.listingKey,o=e.listingViewed,n=e.sendEvent;if(!this.shouldSendScreenview())return;const s=B.c.end(t);setTimeout(()=>{n(o(s,F.TimerType.InApp))},0)}showPlaceholder(){var e=this.props;const t=e.apiError,o=e.apiPending;return!e.disablePlaceholder&&(Boolean(t)||!1!==o)}hasPosts(){return this.props.postIds.length>0}isLoadingMore(){var e=this.props;const t=e.loadMore,o=e.postIds;return Boolean(t&&t.token)&&o.length>0}shouldComponentUpdate(e){const t=this.props,o=t.postsById,n=U(t,["postsById"]),s=e.postsById,r=U(e,["postsById"]),i=Object.keys(n),d=Object.keys(r);if(d.length!==i.length)return!0;if(d.some(e=>n[e]!==r[e]))return!0;if(o===s)return!1;if(this.props.postIds&&this.props.postIds.length){var a=this.props;const e=a.layout,t=a.postComponentForLayout;return this.props.postIds.some((n,r)=>{const i=0===r;return t(o[n],e,i)!==t(s[n],e,i)})}return!1}scrollChildForPost(e,t,o,n){var s=this.props;const r=s.currentProfileName,i=s.isCommentPermalink,d=s.isCommentsPage,a=s.isFrontpage,c=s.isOriginalPage,l=s.isProfilePostListing,p=s.listingKey,u=s.listingName,m=s.pageLayer,b=s.postClickEvent,f=`post-${n}-${e}-${t}-${o?"last-index":""}-${u}-${p}`;let h;if(void 0===(h=this.scrollChildCache.get(f))){var y=this.props;const s=y.inSubredditOrProfile,x=y.postsById,O=x[e],w=O.crosspostRootId&&x[O.crosspostRootId]?x[O.crosspostRootId]:O;O.crosspostRootId&&!x[O.crosspostRootId]&&Object(v.c)("Crosspost parent details are missing",{extra:{description:`Post ${O.id} is crosspost of ${O.crosspostRootId}, `+`but ${O.crosspostRootId} details are missing in the state`,errorType:g.s.API}});const j=this.props.postComponentForLayout(w,n,0===t),S=`post-list-item-[layout: ${n}]-[postId: ${e}]`,C=J(e,n,o,p,u,this.props),k=X(e,n,this.props),P=Z(e,this.props),N=w.media&&w.media.type===L.m.EMBED?w.media.provider:null;h={estHeight:Q(O,n),id:e,isFocusable:!(!w.media||n!==I.f.Large)&&(L.d.has(w.media.type)&&(!N||!L.p.has(N))&&!w.isSpoiler&&!w.isNSFW),trackOnEnteredViewport:C,trackOnExitedViewport:k,render:({className:t,height:n,width:p,remeasure:u,setScrollerChildRef:f,shouldLoadInitially:g})=>D(j,{className:t,currentProfileName:r,availableWidth:p,eventFactory:b,forceLoadMedia:g,inSubredditOrProfile:s,isCommentPermalink:i,isCommentsPage:d,isFrontpage:a,isProfilePostListing:l,pageLayer:m,isOriginalPage:c,last:o,onClickPost:P,onSizeChanged:u,postId:e,sendEvent:this.props.sendEvent,scrollerItemRef:f},S)},this.scrollChildCache.set(f,h)}return h}render(){return this.hasPosts()?(this.renderingEmpty=!1,this.renderingPlaceholder=!1,this.renderList()):this.showPlaceholder()?(this.renderingEmpty=!1,this.renderingPlaceholder=!0,this.renderPlaceholder()):(this.renderingEmpty=!0,this.renderingPlaceholder=!1,this.renderEmpty())}renderEmpty(){const e=this.props.noPostsComponent;return D(e,{})}renderPlaceholder(){var e=this.props;const t=e.apiError,o=e.className,n=e.disablePlaceholder,s=e.layout,r=e.onTryAgain,i=e.postListPlaceholderComponent;if(n)return;const d=i;return D("div",{className:$.a.placeholder},void 0,D(d,{className:o,isLoading:!t,layout:s}),!!t&&D(x.a,{apiError:t,onTryAgain:r}))}renderLoadMore(){var e=this.props;const t=e.apiError,o=e.apiPending,n=e.disablePlaceholder,s=e.layout,r=e.onLoadMore;if(!n)return D("div",{className:$.a.placeholder},void 0,D(y.a,{isLoading:!!o,layout:s,countOverride:q[s]}),!!t&&D(x.a,{apiError:t,onTryAgain:r}))}renderList(){var e=this.props;const t=e.disableBanner,o=e.layout,n=e.location,r=e.loadMore,i=e.postIds,d=e.onLoadMore,a=e.m2mIsEnabled,l=e.shouldShowPromo,p=i.map((e,t,n)=>{const s=t===i.length-1;return this.scrollChildForPost(e,t,s,o)}),u=this.props.measureScrollFPS?`post-listings-${o}`:void 0,m=n?Object(s.createPath)(n):null;return D(c.Fragment,{},void 0,!a&&l&&!t&&D(O.a,{location:k.f.SubredditPage}),D(w.a,{innerRef:this.updateScrollerRef,className:m?$.a.truncatedPostList:Object(f.a)($.a.postList,this.props.className),dataKey:this.props.listingKey,disableScrollCache:!0,enableElementHiding:!0,layoutKey:this.props.layout,loadMoreToken:r&&r.token?r.token:void 0,onLastVisibleChildRendered:this.setLastVisibleChildRendered,onLoadMore:d,onScroll:this.onScrollPause,preventScrollOnMount:this.props.preventScrollOnMount,trackingName:u,viewportTopPadding:C.j},this.props.listingKey,p),m&&D(G,{className:$.a.seeMoreButton},void 0,D(P.a,{className:$.a.seeMorePostsText,to:Object(b.a)(m,{type:g.kc.Posts})},void 0,D(j.a,{msgId:"search.seeMorePosts"}),D(K,{}))),this.isLoadingMore()&&this.renderLoadMore())}}Y.defaultProps={shouldShowPromo:!0}},"./src/reddit/components/PostMedia/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./src/reddit/components/CrosspostBox/index.tsx"),d=o("./src/reddit/components/Media/index.tsx"),a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>{const t=e.post;return t.crosspostRootId?a(i.a,{postId:t.crosspostRootId,mediaProps:Object.assign({},e,{crosspost:t,primaryContent:!1})}):r.a.createElement(d.a,Object.assign({},e,{primaryContent:!!e.showFull}))})},"./src/reddit/components/PostTopLine/index.m.less":function(e,t,o){e.exports={donationAmount:"_1SRZN02bVXzHIIMqGwlZD7",everythingElseWrapper:"cZPZhMe-UCZ8htPodMyJ5",eventMeta:"_28_NUs_O8Nh1DCErsNLCHk",outboundLinkIcon:"_3z6z1xnp828wcarJXfzzjr",postBadges:"_2wFk1qX4e1cxk8Pkw1rAHk",postTopMeta:"nU4Je7n-eSXStTBAPMYt8",subredditIcon:"_1WX5Y5qFVBTdr6hCPpARDB",subredditIconWrapper:"_2dr_3pZUCk8KfJ-x0txT_l",followPost:"_2dQWElMH3F-0U9e25bPo1f"}},"./src/reddit/components/PostTopLine/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(i),a=o("./src/config.ts"),c=o("./src/reddit/components/AwardBadges/index.tsx"),l=o("./src/app/strings/index.ts"),p=o("./src/lib/classNames/index.ts"),u=o("./src/reddit/constants/colors.ts"),m=o("./src/reddit/controls/Button/index.tsx"),b=o("./src/reddit/icons/svgs/Notify/index.tsx"),f=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),g=o("./src/reddit/components/FollowButton/index.m.less"),h=o.n(g),v=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},y=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),x=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=Object(i.css)(["."," {fill: ",";}."," {fill: ",";}"],h.a.icon,e=>Object(f.c)(e).body,h.a.iconFollowed,u.a.alienblue);var w=e=>{var t=e.className,o=e.isFollowed,n=e.language,s=x(e,["className","isFollowed","language"]);const i=o?m.g:m.d;return r.a.createElement(i,v({},s,{className:Object(p.a)(h.a.button,t),"data-redditstyle":!0}),y("div",{className:h.a.layout},void 0,y(b.a,{className:o?h.a.iconFollowed:h.a.icon}),Object(l.a)(n,o?"followPost.followed":"followPost.follow")))},j=o("./node_modules/react-redux/es/index.js"),S=o("./node_modules/reselect/lib/index.js"),C=o("./src/lib/constants/index.ts"),I=o("./src/reddit/components/TrackingHelper/index.tsx"),k=o("./src/reddit/helpers/localStorage/index.ts"),P=o("./src/reddit/selectors/telemetry.ts");const N=()=>e=>Object.assign({},P.defaults(e),{source:"follow_post_pd",action:"view",noun:"button"}),_=()=>e=>Object.assign({},P.defaults(e),{source:"follow_post_pd",action:"click",noun:"button"}),T=()=>e=>Object.assign({},P.defaults(e),{source:"follow_post_pd",action:"view",noun:"tooltip"});var L=o("./src/reddit/selectors/experiments/followPost.ts"),M=o("./src/reddit/selectors/user.ts"),A=o("./src/higherOrderComponents/addOverlayEvents.tsx"),E=o("./src/higherOrderComponents/asTooltip.tsx"),B=o("./src/reddit/components/HelpfulTooltip/index.tsx"),F=o("./src/reddit/constants/zIndex.ts"),R=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 $=["right","bottom"],D=["right","top"],U=d()(B.a).withConfig({componentId:"s7imdfq-0"})(["width: 270px;z-index: ",";&:before {left: 226px;}"],F.i+1);const W=Object(E.a)(Object(I.b)(class extends r.a.Component{componentDidMount(){this.props.sendEvent(T())}render(){return r.a.createElement(U,R({},this.props,{text:Object(l.a)(this.props.language,"followPost.tooltip")}))}}),[A.a.Click,A.a.Keydown,A.a.Resize]);var H=e=>r.a.createElement(W,R({},e,{isFixed:!1,targetPosition:$,tooltipPosition:D})),V=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const z="follow-post",q=Object(S.createStructuredSelector)({followPostVariant:L.a,language:M.M});var G=Object(j.connect)(q)(Object(I.b)(class extends r.a.Component{constructor(){super(...arguments),this.state={isFollowed:!1,isTooltipDismissed:!1,isTooltipOpened:!1},this.toggleFollowed=(()=>{this.props.sendEvent(_()),this.setState(e=>{const t=!e.isFollowed;Object(k.J)(this.props.postId,t);let o=e.isTooltipDismissed;return Object(L.c)(this.props.followPostVariant)&&(o=!0,Object(k.A)(!0)),{isFollowed:t,isTooltipDismissed:o}})}),this.showTooltip=(()=>{Object(L.b)(this.props.followPostVariant)&&this.setState(e=>e.isTooltipOpened?null:{isTooltipOpened:!0})}),this.hideTooltip=(()=>{Object(L.b)(this.props.followPostVariant)&&this.setState(e=>e.isTooltipOpened?{isTooltipOpened:!1}:null)}),this.dismissTooltip=(()=>{Object(k.A)(!0),this.setState({isTooltipDismissed:!0})})}componentDidMount(){this.props.sendEvent(N());const e=Object(k.f)();this.setState({isFollowed:!!e.followedPosts[this.props.postId],isTooltipDismissed:e.tooltipDismissed}),!e.tooltipDismissed&&Object(L.c)(this.props.followPostVariant)&&Date.now()-e.tooltipLastSeenTime>=C.y&&setTimeout(()=>{Object(k.B)(Date.now()),this.setState({isTooltipOpened:!0})},2e3)}render(){var e=this.props;const t=e.followPostVariant,o=e.language,n=Object(L.b)(t)||Object(L.c)(t)&&!this.state.isTooltipDismissed;return V("div",{className:this.props.className,onMouseEnter:this.showTooltip,onMouseLeave:this.hideTooltip,onMouseMove:this.showTooltip},void 0,V(w,{"data-redditstyle":!0,id:z,isFollowed:this.state.isFollowed,language:o,onClick:this.toggleFollowed}),n&&V(H,{hideCloseButton:Object(L.b)(t),isOpen:this.state.isTooltipOpened,language:o,onCloseClick:this.dismissTooltip,tooltipId:z}))}})),K=o("./src/reddit/components/JSAPIContainers/index.tsx"),J=o("./src/reddit/components/OCCategoryList/index.tsx"),X=o("./src/reddit/components/PostBadges/index.tsx"),Z=o("./src/reddit/components/PostEventMeta/index.tsx"),Q=o("./src/reddit/components/PostTopMeta/index.tsx"),Y=o("./src/reddit/components/SubredditIcon/index.tsx"),ee=o("./src/reddit/components/SubredditNameLink/index.tsx"),te=o("./src/reddit/components/SubscribeButton/Inline.tsx"),oe=o("./src/reddit/controls/OutboundLink/index.tsx"),ne=o("./src/reddit/helpers/getSubredditOrProfileIconData/index.tsx"),se=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),re=o("./src/reddit/helpers/trackers/post.ts"),ie=o("./src/reddit/icons/fonts/OutboundLink/index.tsx"),de=o("./src/reddit/models/Media/index.ts"),ae=o("./src/reddit/components/PostTopLine/index.m.less"),ce=o.n(ae),le=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const pe=d.a.div.withConfig({componentId:"dfa6si-0"})(["","","","","display: flex;flex-direction: row;flex-wrap: nowrap;margin: 0 8px 8px;position: relative;"],se.metadataFont,Q.e,X.b,O);t.a=(e=>{const t=e.flairStyleTemplate,o=e.hideNSFWPref,n=e.inSubredditOrProfile,s=e.isCommentsPage,r=e.isOverlay,i=e.language,d=e.post,l=e.shouldShowFollowButton,p=e.shouldShowSubscribeButton,u=e.showCornerOutboundLink,m=e.showOCCategories,b=e.showSubreddit,f=e.subredditOrProfile,g=Object(ne.a)({subredditOrProfile:f}),h=f&&f.isNSFW&&o&&"user"===f.type;return le(pe,{},void 0,m&&d.contentCategories&&le(J.b,{categoryNames:d.contentCategories}),le(Z.a,{className:ce.a.eventMeta,language:i,post:d}),b&&f&&le("div",{className:ce.a.subredditIconWrapper},void 0,le(ee.a,{"data-click-id":"subreddit",to:f.url},void 0,le(Y.b,{className:ce.a.subredditIcon,primaryColor:g.color,iconUrl:h?`${a.a.assetPath}/img/avatar_over18.png`:g.url}))),le("div",{className:ce.a.everythingElseWrapper},void 0,b&&le(K.h,{type:d.belongsTo.type,id:d.belongsTo.id}),le(Q.d,{className:ce.a.postTopMeta,flairStyleTemplate:t,tooltipType:r?Q.c.Lightbox:void 0,isCommentsPage:s,language:i,post:d,showSponsorIcon:!0,showSub:b,subredditOrProfile:f}),le(X.a,{className:ce.a.postBadges,displayText:f?f.displayText:null,inSubredditOrProfile:n,language:i,post:d,tooltipType:r?Q.c.Lightbox:void 0}),le(c.d,{tooltipType:r?Q.c.Lightbox:void 0,thing:d}),l&&le(G,{className:ce.a.followPost,postId:d.id})),f&&b&&p&&le(te.a,{getEventFactory:e=>Object(re.d)(d.id,e?"unsubscribe":"subscribe"),identifier:{name:f.name,type:"subreddit"},postId:d.id},void 0,"Subscribe"),u&&le(oe.a,{isSponsored:d.isSponsored,href:Object(de.w)(e.post),source:d.source},void 0,le(ie.a,{className:ce.a.outboundLinkIcon})))})},"./src/reddit/components/PremiumCTA/index.m.less":function(e,t,o){e.exports={wrapper:"_1b1Jalg2nxA_Z-BjKXRfAV",icon:"_3-m5rOa3loUClNwpCv1uWU",content:"_1LofvgShcWAGgRJOa2IRlf",title:"_17PUokUAvL3YJx6EyPdD9d",description:"rn1KP8t9htFxyeAF8fdJ4",cta:"_1Cg0rke34k99vLcCo_aCP1"}},"./src/reddit/components/PromoBanners/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/history/index.js"),r=o("./node_modules/react/index.js"),i=o.n(r),d=o("./node_modules/react-redux/es/index.js"),a=o("./node_modules/reselect/lib/index.js"),c=o("./src/lib/cache/index.ts"),l=o("./src/lib/localStorageAvailable/index.ts"),p=o("./src/lib/loginHref/index.ts"),u=o("./src/reddit/actions/login.ts"),m=o("./src/reddit/actions/modal.ts"),b=o("./src/reddit/actions/promo.ts"),f=o("./src/config.ts"),g=o("./bundled-modules/styled-components/styled-components.min.js"),h=o.n(g),v=o("./src/app/strings/index.ts"),y=o("./src/lib/colors/constants.ts"),x=o("./src/lib/prettyPrintNumber/index.ts"),O=o("./src/reddit/constants/promos.ts"),w=o("./src/reddit/controls/Button/index.tsx"),j=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),S=o("./src/reddit/icons/svgs/Close/index.tsx"),C=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const I=h.a.h1.withConfig({componentId:"s1r1dynj-0"})(["","color: ",";font-size: 32px;font-weight: bold;"],j.titleFontH1,y.n),k=h()(I).withConfig({componentId:"s1r1dynj-1"})(["","","line-height: initial;margin-right: 16px;"],j.titleFontH2,""),P=h.a.span.withConfig({componentId:"s1r1dynj-2"})(["","color: ",";display: block;padding-top: 4px;"],j.bodyFontH6,y.n),N=h()(w.e).withConfig({componentId:"s1r1dynj-3"})(["background-color: ",";border-color: ",";color: ",";display: inline-block;margin: 8px 0 0 0;max-height: 32px;white-space: nowrap;&:hover {background-color: ",";border-color: ",";color: ",";}"],y.e,y.e,y.n,y.d,y.d,y.n),_=Object(g.css)(["background-color: rgb(3, 46, 94);background-position: right;background-repeat: no-repeat;background-size: contain;border-radius: 4px;position: relative;"]),T=h()(e=>C("div",{className:e.className},void 0,e.children)).withConfig({componentId:"s1r1dynj-4"})(["","margin-bottom: 8px;padding: 16px;",""],_,e=>e.largeBannerKey===O.k.join?`background-image: url(${f.a.assetPath}/img/banner/banner-${O.k.welcome}@2x.png);`:`background-image: url(${f.a.assetPath}/img/banner/banner-${e.largeBannerKey}@2x.png);`),L=h.a.div.withConfig({componentId:"s1r1dynj-5"})(["","align-items: center;background-image: url(","/img/banner/banner-small@2x.png);background-position: left;display: flex;margin-bottom: 8px;padding: 16px 32px 16px 8px;"," {margin: 0 0 0 auto;}"],_,f.a.assetPath,N),M=h.a.div.withConfig({componentId:"s1r1dynj-6"})(["align-items: center;display: flex;flex-wrap: wrap;min-height: 42px;"," {margin: 0;}"," {margin-right: 20px;margin-left: 0px;}"],N,k),A=h.a.img.withConfig({componentId:"s1r1dynj-7"})(["margin: 0 8px;"]),E=h()(e=>C("button",{className:e.className,onClick:e.onClick},void 0,C(S.a,{}))).withConfig({componentId:"s1r1dynj-8"})(["height: 12px;width: 12px;right: 10px;top: 10px;position: absolute;svg {fill: ",";}"],y.n),B=e=>C(T,{largeBannerKey:e.largeBannerKey},void 0,C(E,{onClick:()=>e.closeBanner(O.h.UpsellSignUpBannerLarge,O.g[e.largeBannerKey])}),C(I,{},void 0,Object(v.a)(e.language,`promoBanners.${e.largeBannerKey}.header`)),C(P,{},void 0,Object(v.a)(e.language,`promoBanners.${e.largeBannerKey}.subHeader`)),C(N,{href:e.href,onClick:t=>{t.stopPropagation(),t.preventDefault(),e.onOpenRegisterModal(O.g[e.largeBannerKey])}},void 0,Object(v.a)(e.language,`promoBanners.${e.largeBannerKey}.button`))),F=e=>C(L,{},void 0,C(E,{onClick:()=>e.closeBanner(O.h.UpsellSignUpBannerMedium,O.g.join)}),C(A,{srcSet:`${f.a.assetPath}/img/banner/banner-small-logo.png 1x,\n ${f.a.assetPath}/img/banner/banner-small-logo@2x.png 2x,`}),C(k,{},void 0,e.subreddit?Object(v.a)(e.language,"promoBanners.subreddit.header",{subredditName:e.subreddit.displayText,subscribers:Object(x.b)(e.subreddit.subscribers)}):Object(v.a)(e.language,"promoBanners.join.header")),C(N,{href:e.href,onClick:t=>{t.stopPropagation(),t.preventDefault(),e.onOpenRegisterModal(O.g.join)}},void 0,Object(v.a)(e.language,"promoBanners.personalize.button"))),R=h()(e=>C("div",{className:e.className},void 0,C(E,{onClick:()=>e.closeBanner(O.h.UpsellSignUpBannerSmall,O.g.join)}),C(M,{},void 0,C(A,{srcSet:`${f.a.assetPath}/img/banner/banner-small-logo.png 1x,\n ${f.a.assetPath}/img/banner/banner-small-logo@2x.png 2x,`}),C(k,{},void 0,Object(v.a)(e.language,"promoBanners.join.header")),C(N,{href:e.href,onClick:t=>{t.stopPropagation(),t.preventDefault(),e.onOpenRegisterModal(O.g.join)}},void 0,Object(v.a)(e.language,"promoBanners.join.button"))))).withConfig({componentId:"s1r1dynj-9"})(["","background-image: url(","/img/banner/banner-small@2x.png);background-position: left;","padding: 4px 32px 4px 8px;"],_,f.a.assetPath,e=>e.isOverlay?"border-radius: 0;":"");var $=o("./src/reddit/actions/toaster.ts"),D=o("./src/reddit/helpers/trackers/banners.ts"),U=o("./src/reddit/components/TrackingHelper/index.tsx"),W=o("./src/lib/constants/index.ts"),H=o("./src/lib/makeRequest/index.ts");const V=(e,t)=>Object(H.b)({endpoint:"https://api.linktexting.com/sendLink",method:W.jb.POST,data:`linkId=${t}&number=${e}`,headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}});var z=o("./src/reddit/models/Toast/index.ts"),q=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const G=h()(e=>q("button",{className:e.className,onClick:e.onCloseBanner},void 0,q(S.a,{}))).withConfig({componentId:"uob30s-0"})(["height: 12px;position: absolute;right: 10px;top: 10px;width: 12px;svg {fill: ",";}"],y.n),K=h()(w.d).withConfig({componentId:"uob30s-1"})(["width: 123px;height: 26px;line-height: 20px;background-color: ",";border-color: ",";color: ",";&:hover {background-color: ",";border-color: ",";color: ",";}"],y.e,y.e,y.n,y.e,y.e,y.n),J=h.a.div.withConfig({componentId:"uob30s-2"})(["margin-bottom: 8px;"]),X=h.a.div.withConfig({componentId:"uob30s-3"})(["background-color: rgb(3, 46, 94);background-position: right;background-repeat: no-repeat;background-size: contain;border-radius: 4px;display: flex;flex-wrap: wrap;padding: 16px 16px 14px 16px;position: relative;@media (min-width: 550px) {background-image: url(","/img/banner/mobile-x-promo.png);}"],f.a.assetPath),Z=h()(e=>q("div",{className:e.className},void 0,e.children)).withConfig({componentId:"uob30s-4"})(["margin-top: 1px;height: 100%;overflow: hidden;transition: max-height 0.3s;background-color: ",";",""],e=>e.shouldDisplayLegalDropdown?`${y.e}`:"rgb(3, 46, 94)",e=>e.shouldDisplayLegalDropdown?`max-height: ${e.isHidden?"0":"58px"};`:"max-height: 58px;"),Q=h()(e=>q("span",{className:e.className},void 0,e.children)).withConfig({componentId:"uob30s-5"})(["","color: ",";display: block;font-size: 10px;line-height: 12px;opacity: 0.8;padding: 5px 22px;text-align: ",";"],j.bodyFontH6,y.n,e=>e.shouldDisplayLegalDropdown?"center":"left"),Y=h.a.h1.withConfig({componentId:"uob30s-6"})(["","color: ",";margin-bottom: 5px;"],j.titleFontH1,y.n),ee=h.a.div.withConfig({componentId:"uob30s-7"})(["display: flex;flex-wrap: wrap;"]),te=h.a.div.withConfig({componentId:"uob30s-8"})(["margin-right: 8px;"]),oe=h.a.div.withConfig({componentId:"uob30s-9"})(["display: flex;align-items: center;margin-bottom: 5px;"]),ne=h.a.img.withConfig({componentId:"uob30s-10"})(["height: 16px;width: 16px;margin-right: 8px;"]),se=h()(ne).withConfig({componentId:"uob30s-11"})(["width: auto;height: 12px;"]),re=h.a.span.withConfig({componentId:"uob30s-12"})(["","color: ",";"],j.bodyFontH6,y.n),ie=h.a.div.withConfig({componentId:"uob30s-13"})(["align-items: center;display: flex;margin-top: 11px;"]),de=h()(e=>i.a.createElement("input",e)).withConfig({componentId:"uob30s-14"})(["","border-radius: 4px;height: 24px;margin-right: 5px;padding-left: 5px;width: 162px;",""],j.bodyFontH6,e=>e.error?`border: 1px solid ${y.l}`:"border: 1px solid transparent"),ae=h.a.span.withConfig({componentId:"uob30s-15"})(["color: ",";display: block;font-size: 10px;margin-top: 7px;margin-left: 6px;opacity: .9;"],y.n),ce=h.a.div.withConfig({componentId:"uob30s-16"})(["margin-left: 20px;"]),le=h.a.img.withConfig({componentId:"uob30s-17"})(["margin: 0 auto;display: block;margin-bottom: 5px;border-radius: 4px;padding: 3px;height: 75px;width: 75px;background-color: white;margin-bottom: 5px;"]),pe=h.a.span.withConfig({componentId:"uob30s-18"})(["","color: ",";max-width: 126px;display: block;text-align: center;text-transform: inherit;"],j.bodyFontH6,y.n);var ue=Object(d.connect)(void 0,(e,t)=>({displayErrorToast:t=>{e(Object($.e)({kind:z.b.Error,text:t}))},displaySuccessToast:t=>{e(Object($.e)({kind:z.b.SuccessCommunity,text:t}))}}))(Object(U.b)(class extends i.a.Component{constructor(e){super(e),this.getLinkId=(()=>this.props.loggedInMobilePromoVariant?O.a:O.b),this.onBlur=(e=>{const t=!!e.currentTarget.value.length;this.setState({isLegalDropdownHidden:!t})}),this.onFocus=(e=>{this.setState({isLegalDropdownHidden:!1})}),this.onInputChange=(e=>{this.setState({phoneNumber:e.target.value.replace(/\D/,"")})}),this.onSubmit=(async()=>{var e=this.props;const t=e.language,o=e.displayErrorToast,n=e.displaySuccessToast,s=e.sendEvent,r=Object(v.a)(t,"promoBanners.mobileXPromo.empty"),i=Object(v.a)(t,"promoBanners.mobileXPromo.error"),d=Object(v.a)(t,"promoBanners.mobileXPromo.success");if(!this.state.phoneNumber.length)return this.setState({inputError:!0}),void o(r);s(Object(D.d)("click",O.g.mobilePromoBanner));const a=this.getLinkId(),c=await V(this.state.phoneNumber,a);c&&c.ok?(this.setState({phoneNumber:"",inputError:!1}),n(d)):(this.setState({inputError:!0}),o(i))}),this.state={isLegalDropdownHidden:!0,phoneNumber:""}}render(){var e=this.props;const t=e.closeBanner,o=e.language,n=e.loggedInMobilePromoVariant,s=e.loggedOutMobilePromoVariant,r=n&&n===O.c.Test1,i=s&&s===O.d.Test1,d=!(!r&&!i);return q(J,{},void 0,q(X,{},void 0,q(G,{onCloseBanner:()=>t(O.h.MobilePromoBanner,O.g[O.h.MobilePromoBanner],O.j)}),q("div",{},void 0,q(Y,{},void 0,Object(v.a)(o,"promoBanners.mobileXPromo.header")),q(ee,{},void 0,q(te,{},void 0,q(oe,{},void 0,q(ne,{src:`${f.a.assetPath}/img/banner/redditor@2x.png`}),q(re,{},void 0,Object(v.a)(o,"promoBanners.mobileXPromo.manage"))),q(oe,{},void 0,q(ne,{src:`${f.a.assetPath}/img/banner/subscribe@2x.png`}),q(re,{},void 0,Object(v.a)(o,"promoBanners.mobileXPromo.subscriptions")))),q(te,{},void 0,q(oe,{},void 0,q(ne,{src:`${f.a.assetPath}/img/banner/download@2x.png`}),q(re,{},void 0,Object(v.a)(o,"promoBanners.mobileXPromo.downloads"))),q(oe,{},void 0,q(se,{src:`${f.a.assetPath}/img/banner/rating@2x.png`}),q(re,{},void 0,Object(v.a)(o,"promoBanners.mobileXPromo.rated"))))),q(ie,{},void 0,q(de,{type:"tel",onChange:this.onInputChange,placeholder:Object(v.a)(o,"promoBanners.mobileXPromo.placeholder"),error:this.state.inputError?1:0,onBlur:this.onBlur,onFocus:this.onFocus,value:this.state.phoneNumber}),q(K,{onClick:this.onSubmit},void 0,Object(v.a)(o,"promoBanners.mobileXPromo.button"))),q(ae,{},void 0,Object(v.a)(o,"promoBanners.mobileXPromo.countryCode"))),q(ce,{},void 0,q(le,{src:this.props.loggedInMobilePromoVariant?`${f.a.assetPath}/img/banner/qr-code-logged-in.png`:`${f.a.assetPath}/img/banner/qr-code-logged-out.png`}),q(pe,{},void 0,Object(v.a)(o,"promoBanners.mobileXPromo.qr")))),q(Z,{isHidden:this.state.isLegalDropdownHidden,shouldDisplayLegalDropdown:d},void 0,q(Q,{shouldDisplayLegalDropdown:d},void 0,Object(v.a)(o,"promoBanners.mobileXPromo.legal"))))}})),me=o("./src/reddit/contexts/PageLayer/index.tsx"),be=o("./src/reddit/selectors/meta.ts");var fe=o("./src/reddit/selectors/user.ts");const ge=Object.keys(O.k),he=ge[Math.floor(Math.random()*Math.floor(ge.length))],ve=Object(a.createStructuredSelector)({displayUpsellSignUpBannerLarge:e=>e.promos.upsellSignUpBannerLarge,displayUpsellSignUpBannerMedium:e=>e.promos.upsellSignUpBannerMedium,displayUpsellSignUpBannerSmall:e=>e.promos.upsellSignUpBannerSmall,language:fe.M,isLoggedIn:fe.F,displayMobilePromo:e=>e.promos.mobilePromoBanner,origin:be.d,subreddit:me.t}),ye=Object(d.connect)(ve,(e,t)=>({closeBanner:(o,n,s)=>{e(Object(b.c)(o,s)),t.sendEvent(Object(D.d)("close",n))},displayBanner:(o,n)=>{e(Object(b.d)({promoType:o})),t.sendEvent(Object(D.d)("view",n))},onOpenRegisterModal:o=>{e(Object(m.l)({actionSource:m.a.PromoBanner})),e(Object(u.b)()),t.sendEvent(Object(D.d)("click",o))}})),xe=Object(me.w)({isFrontPage:me.C,pageLayer:e=>e,path:me.X});t.a=xe(Object(U.b)(ye(class extends r.Component{constructor(){super(...arguments),this.sendToRegister=((e,t)=>Object(p.a)(Object(s.createLocation)(e),t,"/register"))}componentDidMount(){var e=this.props;const t=e.displayBanner,o=e.isFrontPage,n=e.isLoggedIn,s=e.location,r=Object(l.a)(),i=!!Object(c.b)(O.i);if(r)switch(s){case O.f.FrontPage:return void(n||i||t(O.h.UpsellSignUpBannerLarge,O.g[he]));case O.f.SubredditPage:return void(o||n||i||t(O.h.UpsellSignUpBannerMedium,O.g.join));case O.f.CommentsPage:n||i||t(O.h.UpsellSignUpBannerSmall,O.g.join)}}render(){var e=this.props;const t=e.className,o=e.closeBanner,n=e.displayMobilePromo,s=e.displayUpsellSignUpBannerLarge,r=e.displayUpsellSignUpBannerMedium,d=e.displayUpsellSignUpBannerSmall,a=e.isFrontPage,c=e.isLoggedIn,l=e.isOverlay,p=e.language,u=e.location,m=e.path,b=e.subreddit,f=e.onOpenRegisterModal,g=e.origin,h={closeBanner:o,href:this.sendToRegister(m,g),isOverlay:l,language:p,onOpenRegisterModal:f,subreddit:b,className:t},v=Object.assign({},h,{largeBannerKey:he}),y=Object.assign({},h);if(b&&b.isQuarantined)return null;switch(u){case O.f.FrontPage:if(a){if(n)return i.a.createElement(ue,y);if(s)return i.a.createElement(B,v)}break;case O.f.SubredditPage:if(!a&&!c&&r)return i.a.createElement(F,h);break;case O.f.CommentsPage:if(!c&&d)return i.a.createElement(R,h)}return null}})))},"./src/reddit/components/SearchDiscoveryUnits/DiscoveryUnitHeader/index.tsx":function(e,t,o){"use strict";var n=o("./bundled-modules/styled-components/styled-components.min.js"),s=o.n(n),r=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),i=o("./src/reddit/models/Theme/NewColorSystem/index.ts");const d=s.a.div.withConfig({componentId:"s9bvbdp-0"})(["",";color: ",";text-transform: unset;"],r.titleFontH5,e=>Object(i.c)(e).navIcon);t.a=d},"./src/reddit/components/SearchDiscoveryUnits/TrendingPostsDiscoveryUnit/Container/index.tsx":function(e,t,o){"use strict";var n=o("./bundled-modules/styled-components/styled-components.min.js"),s=o.n(n),r=o("./src/reddit/helpers/styles/components/index.tsx"),i=o("./src/reddit/components/DiscoveryUnit/Community/index.m.less"),d=o.n(i),a=o("./src/reddit/components/DiscoveryUnit/Layout/index.m.less"),c=o.n(a);const l=s()(Object(r.a)()).withConfig({componentId:"krk9le-0"})(["padding: 16px 24px 0 24px;","."," {background-color: transparent;border: none;height: 208px;margin-bottom: 0;}."," {",";}."," {padding: 0 16px 10px;",";}."," {max-width: 284px;}"],e=>e.showCardView?"margin: 0 auto; max-width: 1020px;":"",c.a.heroContainer,c.a.body,e=>e.showCardView?"":"padding: 0",c.a.header,e=>e.showCardView?"":"padding: 0 0 10px",d.a.textContainer);t.a=l},"./src/reddit/components/SearchDiscoveryUnits/TrendingPostsDiscoveryUnit/Placeholder/index.m.less":function(e,t,o){e.exports={container:"_3_c5cqV3WsdQo95Ql4El73",cardViewContainer:"_3SRia4h16KBodhRWPhm8Yn",desc:"_3R8QK7DFEcDSPoSj255qHJ",one:"fLTQnOxtJpKvmnJh5ATHh",two:"_2c6Ke7Z35QpkUQA7b_RdMX",icon:"_1WvWGBpNLkD_JVC5Fdzz6n",name:"_3_bgt7LjReM2xalPiPzPhR",post:"_1K3CRPtfEoi_X2HCsP1PDn"}},"./src/reddit/components/SearchDiscoveryUnits/TrendingPostsDiscoveryUnit/Placeholder/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(i),a=o("./src/lib/classNames/index.ts"),c=o("./src/reddit/components/DiscoveryUnit/Layout/index.tsx"),l=o("./src/reddit/components/SearchDiscoveryUnits/DiscoveryUnitHeader/index.tsx"),p=o("./src/reddit/components/SearchDiscoveryUnits/TrendingPostsDiscoveryUnit/Container/index.tsx"),u=o("./src/reddit/components/Translated/index.tsx"),m=o("./src/reddit/helpers/styles/mixins/loading.ts"),b=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),f=o("./src/reddit/components/DiscoveryUnit/Layout/index.m.less"),g=o.n(f),h=o("./src/reddit/components/SearchDiscoveryUnits/TrendingPostsDiscoveryUnit/Placeholder/index.m.less"),v=o.n(h),y=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),x=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=d.a.div.withConfig({componentId:"t4wj63-0"})(["background-color: ",";border: 1px solid ",";"],e=>Object(b.c)(e).body,e=>Object(b.c)(e).line),w=d()(e=>{e.isLoading,e.gradientType;var t=x(e,["isLoading","gradientType"]);return r.a.createElement("div",t)}).withConfig({componentId:"t4wj63-1"})(["",""],m.b),j=y(l.a,{className:v.a.duHeader},void 0,y(u.a,{msgId:"discoveryUnits.trendingToday"})),S=d()(c.a).withConfig({componentId:"t4wj63-2"})(["."," {display: flex;flex-flow: row wrap;}"],g.a.body);t.a=(e=>y(p.a,{className:e.className,showCardView:e.showCardView},void 0,y(S,{exploreV2Variant:e.exploreV2Variant,header:j},void 0,y(O,{className:v.a.post},void 0,y(w,{gradientType:"posts",isLoading:!0,className:Object(a.a)(v.a.desc,v.a.one)}),y(w,{gradientType:"posts",isLoading:!0,className:Object(a.a)(v.a.desc,v.a.two)}),y(w,{gradientType:"posts",isLoading:!0,className:v.a.icon}),y(w,{gradientType:"posts",isLoading:!0,className:v.a.name})),y(O,{className:v.a.post},void 0,y(w,{gradientType:"posts",isLoading:!0,className:Object(a.a)(v.a.desc,v.a.one)}),y(w,{gradientType:"posts",isLoading:!0,className:Object(a.a)(v.a.desc,v.a.two)}),y(w,{gradientType:"posts",isLoading:!0,className:v.a.icon}),y(w,{gradientType:"posts",isLoading:!0,className:v.a.name})),y(O,{className:v.a.post},void 0,y(w,{gradientType:"posts",isLoading:!0,className:Object(a.a)(v.a.desc,v.a.one)}),y(w,{gradientType:"posts",isLoading:!0,className:Object(a.a)(v.a.desc,v.a.two)}),y(w,{gradientType:"posts",isLoading:!0,className:v.a.icon}),y(w,{gradientType:"posts",isLoading:!0,className:v.a.name})),y(O,{className:v.a.post},void 0,y(w,{gradientType:"posts",isLoading:!0,className:Object(a.a)(v.a.desc,v.a.one)}),y(w,{gradientType:"posts",isLoading:!0,className:Object(a.a)(v.a.desc,v.a.two)}),y(w,{gradientType:"posts",isLoading:!0,className:v.a.icon}),y(w,{gradientType:"posts",isLoading:!0,className:v.a.name})),y(O,{className:v.a.post},void 0,y(w,{gradientType:"posts",isLoading:!0,className:Object(a.a)(v.a.desc,v.a.one)}),y(w,{gradientType:"posts",isLoading:!0,className:Object(a.a)(v.a.desc,v.a.two)}),y(w,{gradientType:"posts",isLoading:!0,className:v.a.icon}),y(w,{gradientType:"posts",isLoading:!0,className:v.a.name})),y(O,{className:v.a.post},void 0,y(w,{gradientType:"posts",isLoading:!0,className:Object(a.a)(v.a.desc,v.a.one)}),y(w,{gradientType:"posts",isLoading:!0,className:Object(a.a)(v.a.desc,v.a.two)}),y(w,{gradientType:"posts",isLoading:!0,className:v.a.icon}),y(w,{gradientType:"posts",isLoading:!0,className:v.a.name})))))},"./src/reddit/components/SidebarAd/BaseSidebarAdDoNotUseOrYoureFired.tsx":function(e,t,o){"use strict";var n,s=o("./src/app/strings/index.ts"),r=o("./node_modules/react/index.js"),i=o.n(r),d=o("./node_modules/react-redux/es/index.js"),a=o("./src/reddit/components/BannerAd/index.tsx"),c=o("./src/config.ts"),l=o("./node_modules/lodash/random.js"),p=o.n(l),u=o("./src/reddit/components/SidebarSectionHeader/index.tsx"),m=o("./src/reddit/helpers/styles/mixins/index.tsx"),b=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),f=o("./bundled-modules/styled-components/styled-components.min.js"),g=o.n(f),h=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const v=g.a.div.withConfig({componentId:"s1tljykw-0"})(["","background-color: ",";min-height: 270px;min-width: 300px;&::before {content: '","';color: ",";display: block;","font-weight: 500;}"],m.t,e=>Object(b.c)(e).body,Object(s.a)("en","sidebar.sponsored"),e=>Object(b.c)(e).actionIcon,u.b),y=g()(e=>h("img",{className:e.className,src:e.src})).withConfig({componentId:"s1tljykw-1"})(["margin: 0 auto;width: 100%;height: 100%;"]),x=[{img:"/img/house-ads/btc.png",href:"/r/btc"},{img:"/img/house-ads/campfirecooking.png",href:"/r/campfirecooking"},{img:"/img/house-ads/casualconversation.png",href:"/r/casualconversation"},{img:"/img/house-ads/fantrailers.png",href:"/r/fantrailers"},{img:"/img/house-ads/rubberducks.png",href:"/r/advertising"},{img:"/img/house-ads/casualconversation.png",href:"/r/casualconversation"},{img:"/img/house-ads/fantrailers.png",href:"/r/fantrailers"},{img:"/img/house-ads/imaginarycolorscapes.png",href:"/r/imaginarycolorscapes"},{img:"/img/house-ads/imaginarydragons.png",href:"/r/imaginarydragons"},{img:"/img/house-ads/oldschoolcelebs.png",href:"/r/oldschoolcelebs"}];var O=()=>{const e=p()(0,x.length-1);var t=x[e];const o=t.img,n=t.href;return h(v,{className:"GoogleAd HomeAds InArticleAd LeftAd SidebarAd ad-300-250 ad-banner adbar adbox1 ads-area adsense-ad box_ad googad"},void 0,h("a",{href:c.a.redditUrl+n,target:"_blank"},void 0,h(y,{src:c.a.assetPath+o})))},w=o("./src/lib/constants/index.ts"),j=o("./src/reddit/components/PostMedia/index.tsx"),S=o("./src/reddit/components/PostTitle/index.tsx"),C=o("./src/reddit/components/PostTopMeta/index.tsx"),I=o("./src/lib/getShortenedLink.ts"),k=o("./src/lib/opener/index.ts"),P=o("./src/reddit/actions/ad.ts"),N=o("./src/reddit/components/PostContainer/index.tsx"),_=o("./src/reddit/constants/adEvents.ts"),T=o("./src/reddit/contexts/InsideOverlay.tsx"),L=o("./src/reddit/contexts/PageLayer/index.tsx"),M=o("./src/reddit/controls/OutboundLink/styled.tsx"),A=o("./src/reddit/helpers/adCount/index.ts"),E=o("./src/reddit/helpers/pixels.ts"),B=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),F=o("./src/reddit/helpers/truncateStringWithEllipsis.ts"),R=o("./src/reddit/icons/fonts/OutboundLink/index.tsx"),$=o("./src/reddit/models/Media/index.ts"),D=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const U=g()(e=>D("img",{className:e.className,src:e.src})).withConfig({componentId:"vhpvp7-0"})(["margin: 0 auto;width: 100%;height: 100%;"]);class W extends i.a.Component{render(){const e=this.props.post;if(!e.media)return null;const t=e.media&&!Object($.A)(e.media)?e.media.content:"",o=e.media.type;if(!t||!o)return null;switch(o){case w.mb.IMAGE:return D(U,{src:t});default:return null}}}var H=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const V=g()(C.d).withConfig({componentId:"voxuu6-0"})(["","display: block;"],C.e),z=g.a.div.withConfig({componentId:"voxuu6-1"})(["","background-color: ",";min-width: 300px;&::before {content: '","';color: ",";display: block;","font-weight: 500;}"],m.t,e=>Object(b.c)(e).body,Object(s.a)("en","sidebar.sponsored"),e=>Object(b.c)(e).actionIcon,u.b),q=({children:e})=>H("div",{},void 0,e),G=g.a.div.withConfig({componentId:"voxuu6-2"})(["","background-color: ",";"],m.t,e=>Object(b.c)(e).body),K=g()(R.a).withConfig({componentId:"voxuu6-3"})(["font-size: 13px;padding-left: 3px;vertical-align: middle;"]),J=g.a.div.withConfig({componentId:"voxuu6-4"})(["display: flex;"]),X=g.a.div.withConfig({componentId:"voxuu6-5"})(["","align-items: center;display: flex;flex-direction: row;flex-wrap: nowrap;height: 16px;margin: 0 8px 8px;position: relative;"],B.metadataFont),Z=g()(S.c).withConfig({componentId:"voxuu6-6"})(["margin: 0 8px 0px 8px;"]),Q=g.a.div.withConfig({componentId:"voxuu6-7"})(["margin-top: 8px;"]),Y=g.a.div.withConfig({componentId:"voxuu6-8"})(["","padding-top: 8px;"],m.u),ee=g()(N.a).withConfig({componentId:"voxuu6-9"})(["","cursor: pointer;"],e=>e.post.isMediaOnly?"":`\n ${m.v}\n ${C.e}\n `),te=640,oe=Object(L.w)({isOriginalPage:L.E,pageLayer:e=>e}),ne=(e,t)=>{Object(E.a)(t.events,_.a.Click),t.source?t.source.outboundUrl?Object(k.b)(t.source.outboundUrl,k.a.BLANK):Object(k.b)(t.source.url,k.a.BLANK):Object(k.b)(t.permalink,k.a.BLANK)},se=e=>Object(F.a)(e.title,100);var re=Object(d.connect)(null,(e,t)=>({refreshSidebarPromotedPost:()=>{const o=t.placement,n=t.placementIndex,s=t.isOverlay;e(Object(P.h)(Object(A.a)(o,!!s,n)))}}))(oe(Object(T.b)(class extends i.a.Component{constructor(){super(...arguments),this.refreshedAt=1/0}refresh(e){this.refreshedAt=Date.now(),this.props.refreshSidebarPromotedPost()}componentDidMount(){this.refreshedAt=Date.now()}componentWillReceiveProps(e){this.props.refreshKey!==e.refreshKey&&Date.now()-this.refreshedAt>6e3&&this.refresh(e)}render(){var e=this.props;const t=e.post,o=e.className,n=e.eventFactory,s=e.isOverlay;let r,i;return t.isBlank?(r=q,i=null):t.isMediaOnly?(r=z,i=H(W,{post:t})):(r=G,i=H(Y,{},void 0,H(X,{},void 0,H(V,{tooltipType:s?C.c.Lightbox:void 0,language:w.A,post:t,showSponsorIcon:!0,hideSource:!0,showTimestamp:!1})),H(Z,{post:t,size:S.b.Large,format:se}),t.source&&H(J,{},void 0,H(M.a,{href:t.source.url,isSponsored:!0,source:t.source},void 0,Object(I.a)(t),H(K,{}))),H(Q,{},void 0,t.media&&H(j.a,{isListing:!0,isNotCardView:!0,showCentered:!0,post:t,availableWidth:te,shouldLoad:!0})))),H(r,{},void 0,H(ee,{className:o,post:t,onClick:ne,eventFactory:n},void 0,i))}}))),ie=o("./src/reddit/components/SidebarSpacer/index.tsx"),de=o("./src/reddit/components/Widgets/ThemedWidget/index.tsx"),ae=o("./node_modules/reselect/lib/index.js"),ce=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const le=Object(ae.createStructuredSelector)({post:(e,t)=>{const o=t.placement,n=t.placementIndex,s=!!t.isOverlay;return e.sidebarPromotedPosts.models[Object(A.a)(o,s,n)]},pending:e=>!e.sidebarPromotedPosts.firstFetch}),pe=Object(d.connect)(le),ue=Object(L.w)(),me=g()(a.a).withConfig({componentId:"s104akuz-0"})(["min-height: 270px;min-width: 300px;&::before {content: '","';color: inherit;display: block;","font-weight: 500;}"],Object(s.a)("en","sidebar.sponsored"),u.b),be=g()(de.a).withConfig({componentId:"s104akuz-1"})(["padding: 6px;"]),fe=g.a.div.withConfig({componentId:"s104akuz-2"})(["min-height: 270px;min-width: 300px;&::before {content: '","';color: inherit;display: block;","font-weight: 500;}"],Object(s.a)("en","sidebar.sponsored"),u.b),ge=(e,t,o)=>{let n="";return t&&(n+="overlay-"),n+=`sidebar-${e}`,null!=o&&(n+=`-${o}`),n},he=e=>!(!e||e.isBlank)&&(!e.isMediaOnly||!!(e.media&&Object($.x)(e.media)&&e.media.content)),ve=e=>!!e&&e.isBlank;t.a=ue(pe(class extends i.a.Component{render(){var e=this.props;const t=e.className,o=e.pending,n=e.post,s=e.isOverlay,r=e.placementIndex,i=e.refreshKey,d=e.listingName,a=e.placement,c=e.sizes,l=e.position,p=e.forcePlaceholder,u=e.forceHouseAd,m=e.waitForProgrammatic;return p||o||!he(n)&&m?ce(ie.a,{},void 0,ce(be,{className:t,contentOnly:!0},void 0,ce(fe,{}))):u?ce(ie.a,{},void 0,ce(O,{})):he(n)?ce(ie.a,{},void 0,ce(re,{post:n,refreshKey:i,listingName:d,placement:a,placementIndex:r})):ce(ie.a,{},void 0,ce(be,{className:this.props.className,contentOnly:!0},void 0,ve(n)&&ce(re,{post:n,refreshKey:i,listingName:d,placement:a,placementIndex:r}),ce(me,{id:ge(a,s,r),sizes:c,placement:a,listingName:d,refreshKey:i,position:l})))}}))},"./src/reddit/components/SidebarAd/ListingPageSidebarAd.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),s=o.n(n),r=o("./node_modules/react-redux/es/index.js"),i=o("./src/reddit/selectors/brandSafety.ts"),d=o("./src/reddit/selectors/user.ts"),a=o("./src/reddit/components/SidebarAd/BaseSidebarAdDoNotUseOrYoureFired.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},l=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=Object(r.connect)((e,{listingName:t,listingKey:o})=>{const n=Object(i.b)(e,{listingName:t,listingKey:o}),s=Object(d.w)(e),r=Object(i.d)(e);return{canShowAd:n&&!s,forcePlaceholder:!Object(i.c)(e),isAdsDisabled:s,viewIsUnsafe:r}})(e=>{var t=e.canShowAd,o=e.isAdsDisabled,n=e.viewIsUnsafe,r=(e.listingKey,l(e,["canShowAd","isAdsDisabled","viewIsUnsafe","listingKey"]));return o||!t?null:s.a.createElement(a.a,c({forceHouseAd:n},r))})},"./src/reddit/components/SidebarContainer/index.tsx":function(e,t,o){"use strict";var n=o("./bundled-modules/styled-components/styled-components.min.js"),s=o.n(n);t.a=s.a.div.withConfig({componentId:"s4jiyd-0"})(["display: flex;flex-direction: column;height: 100%;"])},"./src/reddit/components/SidebarFlairSettings/index.m.less":function(e,t,o){e.exports={badge:"_2a172ppKObqWfRHr8eWBKV"}},"./src/reddit/components/SidebarFooter/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(s),i=o("./src/reddit/components/Widgets/ThemedWidget/index.tsx"),d=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const c=r.a.div.withConfig({componentId:"s21l9wz-0"})(["flex: 0 0 33.333%;width: 33.333%;"]);var l=r()(e=>a("div",{className:e.className},void 0,a(c,{},void 0,e.children[0]),a(c,{},void 0,e.children[1]),a(c,{},void 0,e.children[2]))).withConfig({componentId:"s21l9wz-1"})(["display: flex;flex-direction: row;"]),p=o("./src/app/strings/index.ts"),u=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const m=r()(l).withConfig({componentId:"s1168hkq-0"})(["margin-bottom: 16px;padding: 12px;"]),b=r.a.a.withConfig({componentId:"s1168hkq-1"})(["","display: block;text-decoration: none;text-transform: capitalize;"],d.titleFontH6),f=r.a.div.withConfig({componentId:"s1168hkq-2"})(["","text-align: center;padding-bottom: 12px;"],d.titleFontH6),g=r.a.a.withConfig({componentId:"s1168hkq-3"})(["text-decoration: none;text-transform: capitalize;margin: 0 4px;"]),h=r()(i.a).withConfig({componentId:"s1168hkq-4"})(["margin-top: ",";"],e=>e.removePaddingTop?0:"16px");t.a=(e=>u(h,{redditStyle:e.redditStyle,contentOnly:!0,removePaddingTop:e.removePaddingTop},void 0,u(m,{},void 0,u("div",{},void 0,u(b,{href:"https://about.reddit.com"},void 0,Object(p.a)("en","footer.links.about")),u(b,{href:"https://about.reddit.com/careers/"},void 0,Object(p.a)("en","footer.links.careers")),u(b,{href:"https://about.reddit.com/press/"},void 0,Object(p.a)("en","footer.links.press"))),u("div",{},void 0,u(b,{href:"https://about.reddit.com/advertise/"},void 0,Object(p.a)("en","footer.links.ad")),u(b,{href:"http://www.redditblog.com/"},void 0,Object(p.a)("en","footer.links.blog")),u(b,{href:"https://www.reddithelp.com"},void 0,Object(p.a)("en","footer.links.help"))),u("div",{},void 0,u(b,{href:"https://www.reddit.com/mobile/download"},void 0,Object(p.a)("en","footer.links.app")),u(b,{href:"https://www.reddit.com/coins"},void 0,Object(p.a)("en","footer.links.coins")),u(b,{href:"https://www.reddit.com/premium"},void 0,Object(p.a)("en","footer.links.premium")),u(b,{href:"http://redditgifts.com/"},void 0,Object(p.a)("en","footer.links.gifts")))),u(f,{},void 0,u("div",{},void 0,u(g,{href:"https://www.reddit.com/help/contentpolicy"},void 0," ",Object(p.a)("en","footer.legal.content")),u("span",{},void 0,"|"),u(g,{href:"https://www.reddit.com/help/privacypolicy"},void 0," ",Object(p.a)("en","footer.legal.privacy"))),u("div",{},void 0,u(g,{href:"https://www.reddit.com/help/useragreement"},void 0," ",Object(p.a)("en","footer.legal.user")),u("span",{},void 0,"|"),u(g,{href:"https://www.reddit.com/help/healthycommunities/"},void 0," ",Object(p.a)("en","footer.legal.mod"))),u("div",{},void 0,Object(p.a)("en","footer.legal.cp")))))},"./src/reddit/components/SidebarSectionHeader/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return i});var n=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),s=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(s);const i=`\n ${o("./src/reddit/helpers/styles/mixins/fonts.tsx").labelsFont}\n padding-bottom: 4px;\n`;t.a=r.a.div.withConfig({componentId:"s12kkcqc-0"})(["","border-bottom: 2px solid ",";color: ",";margin-bottom: 10px;"],i,e=>Object(n.c)(e).field,e=>Object(n.c)(e).actionIcon)},"./src/reddit/components/SidebarSpacer/index.tsx":function(e,t,o){"use strict";var n=o("./bundled-modules/styled-components/styled-components.min.js"),s=o.n(n),r=o("./src/reddit/constants/componentSizes.ts");t.a=s.a.div.withConfig({componentId:"ii4q9d-0"})(["margin-top: 16px;width: ","px;"],r.F)},"./src/reddit/components/SidebarStickyBottom/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/lodash/throttle.js"),r=o.n(s),i=o("./node_modules/react/index.js"),d=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(d),c=o("./src/lib/constants/index.ts"),l=o("./node_modules/react-redux/es/index.js"),p=o("./node_modules/reselect/lib/index.js"),u=o("./src/app/strings/index.ts"),m=o("./src/reddit/controls/Button/index.tsx"),b=o("./src/reddit/selectors/monthsToMinutes.ts"),f=o("./src/reddit/selectors/user.ts"),g=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const h=a.a.div.withConfig({componentId:"pqvesn-0"})(["text-align: center;"]),v=a.a.div.withConfig({componentId:"pqvesn-1"})(["text-align: right;"]),y=a()(m.d).withConfig({componentId:"pqvesn-2"})(["width: 128px;"]),x=a()(m.d).withConfig({componentId:"pqvesn-3"})(["width: 120px;"]),O=Object(p.createStructuredSelector)({language:f.M,showAccountCompletenessInBottom:b.v});var w=Object(l.connect)(O)(e=>{const t=e.showAccountCompletenessInBottom?v:h,o=e.showAccountCompletenessInBottom?x:y;return g(t,{className:e.className},void 0,g(o,{onClick:()=>window.scroll(0,0)},void 0,Object(u.a)(e.language,"listings.backToTop")))}),j=o("./src/reddit/components/SidebarFooter/index.tsx"),S=o("./src/reddit/components/SidebarSpacer/index.tsx"),C=o("./src/reddit/constants/componentSizes.ts"),I=o("./src/reddit/contexts/PageLayer/index.tsx"),k=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const P=c.f[1]+24,N=C.j+8,_=N+152+32+16,T=_+P+8,L=a.a.div.withConfig({componentId:"nowfa1-0"})(["flex: 1 1 auto;position: relative;width: inherit;"]),M=a()(w).withConfig({componentId:"nowfa1-1"})(["margin-top: 50vh;position: sticky;top: calc(100vh - ","px);"],40),A=(a()(S.a).withConfig({componentId:"nowfa1-2"})(["",""],e=>e.isAdSticky?"\n position: sticky;\n ":""),a()(j.a).withConfig({componentId:"nowfa1-3"})(["",""],e=>e.isFooterSticky?"\n position: sticky;\n ":""),a()(j.a).withConfig({componentId:"nowfa1-4"})(["",""],e=>e.isFooterSticky?"\n position: sticky;\n ":""),a()(({className:e,isSticky:t,children:o})=>k("div",{className:e},void 0,o)).withConfig({componentId:"nowfa1-5"})(["",""],e=>e.isSticky?"\n position: sticky;\n top: 57px;\n":""));const E=Object(I.w)();t.a=E(class extends i.Component{constructor(e){super(e),this.containerEl=null,this.windowHeight=1/0,this.getStickyContents=(()=>({shouldAdSticky:this.windowHeight>T,shouldFooterSticky:this.windowHeight>_})),this.updateState=(()=>{if(this.isHidden())return;var e=this.getStickyContents();const t=e.shouldAdSticky,o=e.shouldFooterSticky;t===this.state.isAdSticky&&o===this.state.isFooterSticky||this.setState({isAdSticky:t,isFooterSticky:o})}),this.updateMeasurements=(()=>{this.windowHeight=window.innerHeight}),this.handleResize=r()(()=>{this.updateMeasurements(),this.updateState()},c.K),this.setWrapperRef=(e=>this.containerEl=e||null),this.state={isAdSticky:!0,isFooterSticky:!0}}isHidden(){return!this.containerEl||null===this.containerEl.offsetParent}componentDidMount(){this.isHidden()||this.handleResize(),window.addEventListener("resize",this.handleResize)}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}render(){const e=this.props.adComponent,t=this.state.isAdSticky&&!!e;return k(L,{innerRef:this.setWrapperRef},void 0,k(A,{isSticky:t},void 0,e,k(j.a,{removePaddingTop:this.props.removePaddingTop})),k(M,{}))}})},"./src/reddit/components/StructuredStyles/StyledComponents/forms.ts":function(e,t,o){"use strict";o.d(t,"k",function(){return a}),o.d(t,"p",function(){return l}),o.d(t,"n",function(){return p}),o.d(t,"o",function(){return u}),o.d(t,"m",function(){return m}),o.d(t,"l",function(){return b}),o.d(t,"f",function(){return f}),o.d(t,"h",function(){return g}),o.d(t,"a",function(){return h}),o.d(t,"g",function(){return v}),o.d(t,"i",function(){return y}),o.d(t,"e",function(){return x}),o.d(t,"b",function(){return O}),o.d(t,"c",function(){return w}),o.d(t,"d",function(){return j}),o.d(t,"j",function(){return S});var n=o("./bundled-modules/styled-components/styled-components.min.js"),s=o.n(n),r=o("./src/reddit/constants/colors.ts"),i=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),d=o("./src/reddit/models/Theme/NewColorSystem/index.ts");const a=s.a.section.withConfig({componentId:"s10my4yl-0"})(["padding: 12px;padding-bottom: 40px;"]),c=Object(n.css)(["","color: ",";margin-bottom: 40px;padding-top: 4px;"],i.titleFontH4,e=>Object(d.c)(e).bodyText),l=s.a.h1.withConfig({componentId:"s10my4yl-1"})(["",""],c),p=s.a.button.withConfig({componentId:"s10my4yl-2"})(["",""],c),u=s.a.div.withConfig({componentId:"s10my4yl-3"})(["margin-bottom: 32px;"]),m=s.a.h1.withConfig({componentId:"s10my4yl-4"})(["","border-bottom: 2px solid ",";color: ",";margin-bottom: 8px;padding-bottom: 8px;"],i.titleFontH3,e=>Object(d.c)(e).line,e=>Object(d.c)(e).bodyText),b=s.a.div.withConfig({componentId:"s10my4yl-5"})(["margin-bottom: 24px;"]),f=s.a.div.withConfig({componentId:"s10my4yl-6"})(["border-bottom: 1px solid ",";margin-bottom: 8px;padding-bottom: 2px;&:last-of-type {border-bottom-width: 0;}"],e=>Object(d.c)(e).line),g=s.a.h2.withConfig({componentId:"s10my4yl-7"})(["","color: ",";padding-bottom: 8px;padding-top: 8px;"],i.titleFontH5,e=>Object(d.c)(e).bodyText),h=s.a.div.withConfig({componentId:"s10my4yl-8"})(["padding: 8px 0;"]),v=s.a.div.withConfig({componentId:"s10my4yl-9"})(["","color: ",";margin-bottom: 8px;"],i.metadataFont,e=>Object(d.c)(e).actionIcon),y=s.a.div.withConfig({componentId:"s10my4yl-10"})(["margin-bottom: 8px;"]),x=s.a.h3.withConfig({componentId:"s10my4yl-11"})(["","color: ",";"],i.titleFontH6,e=>Object(d.c)(e).actionIcon),O=s.a.div.withConfig({componentId:"s10my4yl-12"})(["","color: ",";"],i.metadataFont,e=>Object(d.c)(e).actionIcon),w=s.a.div.withConfig({componentId:"s10my4yl-13"})(["","color: ",";"],i.metadataFont,r.a.warning),j=s.a.div.withConfig({componentId:"s10my4yl-14"})(["margin-top: 24px;"]),S=s.a.li.withConfig({componentId:"s10my4yl-15"})(["","color: ",";margin-bottom: 8px;"],i.metadataFont,e=>Object(d.c)(e).actionIcon)},"./src/reddit/components/SubredditChannelList/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/lodash/orderBy.js"),r=o.n(s),i=o("./node_modules/react/index.js"),d=o.n(i),a=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"),p=o.n(l),u=o("./src/app/strings/index.ts"),m=o("./src/chat/helpers/urls/index.ts"),b=o("./src/reddit/actions/chat/subredditChannel.ts"),f=o("./src/reddit/actions/chat/toggle.ts"),g=o("./src/reddit/actions/modal.ts"),h=o("./src/reddit/components/ModalStyledComponents/index.tsx"),v=o("./src/reddit/components/SubredditIcon/index.tsx"),y=o("./src/reddit/components/TrackingHelper/index.tsx"),x=o("./src/reddit/constants/modals.ts"),O=o("./src/reddit/controls/Button/index.tsx"),w=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),j=o("./src/reddit/helpers/trackers/chat.ts"),S=o("./src/reddit/icons/fonts/Pencil/index.tsx"),C=o("./src/reddit/icons/svgs/Chat/index.tsx"),I=o("./src/reddit/icons/svgs/CircledPlanet/index.tsx"),k=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),P=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),N=o("./src/reddit/models/SubredditChannel/index.ts"),_=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),T=o("./src/reddit/selectors/chat.ts"),L=o("./src/reddit/selectors/subreddit.ts"),M=o("./src/reddit/selectors/subredditChannel.ts"),A=o("./src/reddit/selectors/user.ts");o.d(t,"a",function(){return te});var E=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const B=p()(O.d).withConfig({componentId:"s131qyd-0"})(["margin: 0 16px 16px;"]),F=p()(h.f).withConfig({componentId:"s131qyd-1"})(["margin: 0;text-align: center;"]),R=p()(h.j).withConfig({componentId:"s131qyd-2"})(["","margin: 0 auto;max-width: 300px;padding: 16px;"],w.titleFontH5),$=p.a.a.withConfig({componentId:"s131qyd-3"})(["cursor: pointer;border-top: 1px solid ",";display: block;padding: 12px 0;position: relative;&:first-of-type {border: 0;};"],e=>Object(_.c)(e).line),D=p.a.p.withConfig({componentId:"s131qyd-4"})(["","color: ",";text-align: left;"],w.metadataFont,e=>Object(_.c)(e).bodyText),U=p.a.p.withConfig({componentId:"s131qyd-5"})(["","color: ",";padding: 5px 0px 0px;text-align: left;word-break: break-word;"],w.bodyFontSmall,e=>Object(_.c)(e).bodyText),W=p.a.div.withConfig({componentId:"s131qyd-6"})(["display: flex;position: relative;text-align: left;"]),H=p.a.div.withConfig({componentId:"s131qyd-7"})(["align-items: flex-start;display: flex;justify-content: space-between;width: calc(100% - 40px);"]),V=p()(C.a).withConfig({componentId:"s131qyd-8"})(["fill: ",";height: 20px;left: 17px;position: absolute;top: 15px;width: 20px;z-index: 1;"],e=>Object(_.c)(e).navIcon),z=p()(I.a).withConfig({componentId:"s131qyd-9"})(["background: ",";border: 2px solid ",";fill: ",";border-radius: 24px;box-sizing: border-box;margin-right: 8px;padding: 5px;width: 32px;height: 32px;flex: none;"],e=>Object(_.c)(e).active,e=>Object(_.c)(e).lightText,e=>Object(_.c)(e).bodyText),q=p()(S.a).withConfig({componentId:"s131qyd-10"})(["color: ",";"],e=>Object(_.c)(e).bodyText),G=Object(l.css)(["fill: ",";width: 15px; height: 15px;vertical-align: middle;"],e=>Object(_.c)(e).bodyText),K=p()(({className:e})=>k("svg",{className:e,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},void 0,k("g",{transform:"translate(-26.000000, -37.000000)"},void 0,k("path",{d:"M30.7205152,44.3911599 L31.8223802,44.3911599 C32.9364596,44.3911599 33.8428946,45.2673804 33.8428946,46.3443238 C33.8428946,46.6873548 33.5548926,46.9657568 33.2000329,46.9657568 L29.3428625,46.9657568 C28.9880028,46.9657568 28.7000008,46.6873548 28.7000008,46.3443238 C28.7000008,45.2673804 29.6064358,44.3911599 30.7205152,44.3911599 Z M32.7044508,42.3845527 C32.7044508,43.1482939 32.0615891,43.7697269 31.271512,43.7697269 C30.4814349,43.7697269 29.8385732,43.1482939 29.8385732,42.3845527 C29.8385732,41.6208116 30.4814349,41 31.271512,41 C32.0615891,41 32.7044508,41.6208116 32.7044508,42.3845527 Z M35.8634091,47.1254029 L36.9652741,47.1254029 C38.0793535,47.1254029 38.9857885,48.0016234 38.9857885,49.0785668 C38.9857885,49.4215978 38.6977865,49.6999998 38.3429268,49.6999998 L34.4857564,49.6999998 C34.1308967,49.6999998 33.8428946,49.4215978 33.8428946,49.0785668 C33.8428946,48.0016234 34.7493297,47.1254029 35.8634091,47.1254029 Z M37.8473447,45.1187958 C37.8473447,45.8825369 37.2044829,46.5039699 36.4144059,46.5039699 C35.6243288,46.5039699 34.9814671,45.8825369 34.9814671,45.1187958 C34.9814671,44.3550546 35.6243288,43.734243 36.4144059,43.734243 C37.2044829,43.734243 37.8473447,44.3550546 37.8473447,45.1187958 Z"})))).withConfig({componentId:"s131qyd-11"})(["",";fill: ",";"],G,e=>Object(_.c)(e).bodyText),J=p()(({className:e})=>P("svg",{className:e,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},void 0,P("path",{d:"M10.224 7.109c-.623.623-1.709.623-2.332 0a1.652 1.652 0 0 1 0-2.332 1.64 1.64 0 0 1 1.166-.483c.44 0 .855.172 1.166.483a1.652 1.652 0 0 1 0 2.332m.915-3.247A2.923 2.923 0 0 0 9.06 3c-.787 0-1.525.306-2.082.862a2.946 2.946 0 0 0-.403 3.65l-1.76 1.761-.812.811v.001L4 10.087l-.81.81a.646.646 0 0 0 0 .915l.81.811h.001l.27.27a.643.643 0 0 0 .916 0 .648.648 0 0 0 0-.914l-.271-.27a.502.502 0 0 1 0-.708.512.512 0 0 1 .709 0l.27.27a.648.648 0 0 0 .915-.915l-.624-.625L7.49 8.427a2.924 2.924 0 0 0 3.65-.403 2.945 2.945 0 0 0 0-4.162"}))).withConfig({componentId:"s131qyd-12"})(["",";fill: ",";"],G,e=>Object(_.c)(e).bodyText),X=p()(v.b).withConfig({componentId:"s131qyd-13"})(["width: 32px;height: 32px;margin-right: 8px;"]),Z=p.a.button.withConfig({componentId:"s131qyd-14"})(["width: 25px;height: 25px;"]),Q=p.a.button.withConfig({componentId:"s131qyd-15"})(["","display: block;width: 100%;border-top: 1px solid ",";color: ",";cursor: pointer;padding-top: 5px;text-align: right;overflow: hidden;"],w.smallButtonFont,e=>Object(_.c)(e).line,e=>Object(_.c)(e).linkText),Y=p.a.span.withConfig({componentId:"s131qyd-16"})(["","color: ",";display: inline-block;flex-grow: 1;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;width: 100%;"],w.titleFontH4,e=>Object(_.c)(e).bodyText),ee=p.a.div.withConfig({componentId:"s131qyd-17"})(["width: calc(100% - 25px);flex-direction: column;display: flex;"]);var te;!function(e){e[e.Modal=0]="Modal",e[e.Widget=1]="Widget"}(te||(te={}));const oe=Object(c.createStructuredSelector)({isCollectionReady:M.e,isModerator:T.d,language:A.M,selectedSubreddit:L.G,shouldRequestCollection:M.f,subredditChannels:M.a}),ne=Object(a.connect)(oe,(e,{subredditId:t})=>({toggleModal:()=>e(Object(g.i)(x.a.MANAGE_SUBREDDIT_CHAT)),toggleCreateModal:()=>e(Object(g.i)(x.a.CREATE_SUBREDDIT_CHAT)),toggleEditModal:()=>e(Object(g.i)(x.a.EDIT_SUBREDDIT_CHAT)),fetchSubredditChannels:t=>e(Object(b.l)(t)),onChatLinkClick:(t,o)=>e(Object(f.a)(t,o)),onSelectChannel:t=>e(Object(b.m)({channelId:t}))}));t.b=ne(Object(y.b)(class extends d.a.Component{constructor(e){super(e)}componentDidMount(){this.fetchChannelList()}fetchChannelList(){this.props.shouldRequestCollection&&this.props.fetchSubredditChannels(this.props.selectedSubreddit.id)}getDisplayChannelList(){return this.props.subredditChannels&&this.props.maxChannels?this.props.subredditChannels.slice(0,this.props.maxChannels):this.props.subredditChannels||[]}displayShowAllLink(){return!!(this.props.maxChannels&&this.props.subredditChannels&&this.props.maxChannels<this.props.subredditChannels.length)}displayChannelsList(){var e=this.props;const t=e.maxChannels,o=e.subredditChannels;if(o){const e=r()(o,["name"]);return t?e.slice(0,t):e}return[]}onItemClick(e){const t=e.channelId;var o=this.props;const n=o.selectedSubreddit;(0,o.onChatLinkClick)(t,n.name),this.trackItemClick(e)}trackItemClick(e){const t=N.a.Joined,o=e.channelId,n=e.channelState;var s=te;const r=s.Widget,i=s.Modal;var d=this.props;const a=d.parentContext,c=d.sendEvent;return a===r&&n===t?c(Object(j.c)(o)):a===r?c(Object(j.e)(o)):a===i&&n===t?c(Object(j.a)(o)):a===i?c(Object(j.b)(o)):void 0}onShowAllClick(){var e=this.props;const t=e.sendEvent,o=e.toggleModal;o&&(o(),t(Object(j.d)()))}getLinkURL(e){const t=this.props.selectedSubreddit;return Object(m.channelUrl)(e.channelId,t.name)}render(){var e=this.props;const t=e.className,o=e.isCollectionReady,n=e.isModerator,s=e.language,r=e.onAddChannel,i=e.toggleEditModal,d=e.selectedSubreddit,a=e.onSelectChannel,c=e.toggleCreateModal;if(!o)return null;const l=this.displayChannelsList();return E("div",{className:t},void 0,l.length?E(F,{},void 0,l.map((e,t)=>E($,{href:this.getLinkURL(e),target:"_blank",rel:"noopener noreferrer",onClick:t=>{this.onItemClick(e),t.stopPropagation(),t.preventDefault()}},`item-link-${t}`,E(W,{},`item-link-title-${t}`,E(V,{},`item-link-icon-${t}`),d.icon.url?E(X,{iconUrl:d.icon.url},`subreddit-icon-${t}`):E(z,{isSmall:!0},`planet-${t}`),E(H,{},`item-header-${t}`,E(ee,{},`item-header-text-${t}`,E(D,{},`item-detail-${t}`,d.name,Object(u.d)(s,"listings.channelMembers",e.membersCount)),E(Y,{},`channel-name-${t}`,e.type===N.c.Public?E(K,{}):E(J,{}),e.name)),n&&E(Z,{onClick:t=>{a(e.channelId),i(),t.stopPropagation(),t.preventDefault(),this.props.sendEvent(Object(j.l)())}},`button-${t}`,E(q,{})))),e.description&&E(U,{},`desc-text-${t}`,e.description))),this.displayShowAllLink()&&E(Q,{type:"button",onClick:()=>this.onShowAllClick()},void 0,Object(u.a)(s,"subredditModeration.chat.seeMore"))):n?E(F,{},void 0,E(R,{},void 0,Object(u.a)(s,"subredditModeration.chat.addRoomText")),E(B,{onClick:r||c},void 0," ",Object(u.a)(s,"subredditModeration.chat.addButton"))):E(F,{},void 0,E(R,{},void 0,Object(u.a)(s,"subredditModeration.chat.emptyRoomsText"))))}}))},"./src/reddit/components/SubredditNav/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),a=o("./src/reddit/components/TrackingHelper/index.tsx"),c=o("./src/reddit/contexts/PageLayer/index.tsx"),l=o("./src/reddit/featureFlags/component.tsx"),p=o("./src/reddit/selectors/user.ts"),u=o("./src/reddit/selectors/widgets.ts"),m=o("./bundled-modules/styled-components/styled-components.min.js"),b=o.n(m),f=o("./src/app/strings/index.ts"),g=o("./src/reddit/actions/subreddit.ts"),h=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),v=o("./node_modules/react-router-dom/es/index.js"),y=o("./src/reddit/constants/zIndex.ts"),x=o("./src/reddit/helpers/styles/components/index.tsx"),O=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),w=o("./src/reddit/icons/svgs/Dropdown/index.tsx"),j=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},S=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),C=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=e=>e.isActive?Object(h.c)(e).navBar.activeLink:Object(h.c)(e).navBar.inactiveLink,k=Object(m.css)(["","","display: inline-block;padding-bottom: ",";padding-top: 4px;&:first-child {margin-left: 0;}"],O.tabFont,e=>`\n ${e.isActive&&`border-bottom: 3px solid ${I(e)}`};\n color: ${I(e)};\n `,e=>e.isActive?"1px":"4px"),P=b()(w.b).withConfig({componentId:"s8ofjbx-0"})(["fill: ",";"],e=>I(e)),N=b()(e=>{var t=e.children,o=(e.isActive,C(e,["children","isActive"]));return r.a.createElement("div",o,S("span",{},void 0,t),S(P,{}))}).withConfig({componentId:"s8ofjbx-1"})(["","padding-left: 8px;"],k),_=Object(m.css)(["","margin: 0px 5px;padding-left: 8px;padding-right: 8px;&:hover {color: ",";",""],k,e=>Object(h.c)(e).navBar.hoverLink,e=>`\n ${e.isActive&&`border-bottom: 3px solid ${Object(h.c)(e).navBar.hoverLink}`}; }\n `),T=b()(e=>{e.isActive;var t=e.to,o=C(e,["isActive","to"]);return t?r.a.createElement(v.a,j({to:t},o)):r.a.createElement("a",o)}).withConfig({componentId:"s8ofjbx-2"})(["",""],_),L=b()(e=>{e.isActive;var t=C(e,["isActive"]);return r.a.createElement(v.a,t)}).withConfig({componentId:"s8ofjbx-3"})(["",""],_),M=b.a.a.withConfig({componentId:"s8ofjbx-4"})(["","color: ",";display: block;padding: 12px 16px;border-bottom: 1px solid ",";white-space: nowrap;&:hover {color: ",";background-color: ",";}&:last-child {border-bottom: none;}"],O.titleFontH5,e=>Object(h.c)(e).metaText,e=>I(e),e=>Object(h.c)(e).navBar.submenuBackgroundColor,e=>Object(h.c)(e).navBar.hoverLink),A=b.a.div.withConfig({componentId:"s8ofjbx-5"})(["cursor: pointer;display: inline-block;position: relative;"]),E=b()(Object(x.a)()).withConfig({componentId:"s8ofjbx-6"})(["background-color: ",";border-radius: 4px;border-top-width: 0;box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);display: ",";left: 0;min-width: 100%;overflow: hidden;position: absolute;top: 100%; /* Accounts for container padding */z-index: ",";"],e=>Object(h.c)(e).navBar.submenuBackgroundColor,e=>e.isOpen?"block":"none",y.h);var B=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const F=b()(L).withConfig({componentId:"s14rbsf4-0"})(["color: ",";"],e=>Object(h.c)(e).navBar.activeLink);const R=Object(d.createStructuredSelector)({language:e=>e.user.language,isActive:(e,t)=>!!e.subreddits.appliedFilters.meta[t.subredditId],subreddit:(e,t)=>e.subreddits.models[t.subredditId]});var $=Object(c.w)()(Object(i.connect)(R,(e,t)=>({onTurnOnMetaFilter:()=>e(Object(g.p)({subredditId:t.subredditId,forceState:!0}))}))(function(e){const t=e.pageLayer,o=e.subreddit;return o?B(F,{to:o.url,isActive:e.isActive,onClick:o=>{Object(c.J)(t)&&o.preventDefault(),e.onTurnOnMetaFilter()}},void 0,Object(f.a)(e.language,"header.metaFilter")):null})),D=o("./src/lib/linkMatchers/index.ts"),U=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var W=class extends r.a.Component{constructor(){super(...arguments),this.state={isOpen:!1},this.handleOpen=(e=>this.setState(()=>({isOpen:!0}))),this.handleClose=(e=>this.setState(()=>({isOpen:!1})))}render(){const e=this.props,t=this.state;return U(A,{onClick:this.handleOpen,onMouseLeave:this.handleClose},void 0,U(N,{isActive:e.isActive},void 0,e.label),U(E,{isOpen:t.isOpen,"aria-hidden":!t.isOpen,role:"list"},void 0,e.children))}},H=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const V=e=>{const t=e.url&&Object(D.e)(D.c,e.url);return t?t.url:e.url};var z=e=>e.menuItem.url?H(T,{href:V(e.menuItem),isActive:!!e.isActive},void 0,e.menuItem.text):H(W,{isActive:!!e.isActive,label:e.menuItem.text},void 0,e.menuItem.children&&e.menuItem.children.map(e=>H(M,{role:"listitem",href:V(e),target:"_blank",rel:"nofollow"},`${e.text}-${V(e)}`,e.text))),q=o("./src/lib/constants/index.ts"),G=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const K=Object(c.w)(),J=[q.Rb.SUBREDDIT,q.Rb.COMMENTS,q.Rb.COLLECTION_COMMENTS],X=Object(d.createStructuredSelector)({language:e=>e.user.language,isMetaFilterEnabled:(e,t)=>!!e.subreddits.appliedFilters.meta[t.subredditId],isPostsRoute:(e,t)=>!!t.pageLayer&&!!t.pageLayer.meta&&J.indexOf(t.pageLayer.meta.name)>-1});var Z=K(Object(i.connect)(X,(e,t)=>({onTurnOffMetaFilter:()=>e(Object(g.p)({subredditId:t.subredditId,forceState:!1}))}))(function(e){const t=e.homeUrl,o=e.isMetaFilterEnabled,n=e.isPostsRoute,s=e.language,r=e.onTurnOffMetaFilter;return G(T,{to:t,isActive:n&&!o,onClick:e=>{o&&(e.preventDefault(),r())}},void 0,Object(f.a)(s,"structuredStyles.forms.menuLinks.homeLinkLabel"))})),Q=o("./src/higherOrderComponents/makeAsync.tsx");var Y=Object(Q.a)({ErrorComponent:()=>null,LoadingComponent:()=>null,getComponent:()=>o.e("HarbergerTaxBannerPurchaseCTA").then(o.bind(null,"./src/reddit/components/Governance/HarbergerTax/BannerPurchaseCTA/index.tsx")).then(e=>e.default)}),ee=o("./src/reddit/constants/postLayout.ts"),te=o("./src/reddit/constants/screenWidths.ts"),oe=o("./src/reddit/models/Theme/index.ts"),ne=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const se=b.a.div.withConfig({componentId:"s1s4hmd1-0"})(["margin: 0 auto;position: ",";bottom: 0;left: 0;right: 0;background: ",";"],e=>Object(h.c)(e).navBar.useOverlay?"absolute":"static",e=>Object(oe.g)(Object(h.c)(e).navBar.backgroundColor,Object(h.c)(e).navBar.backgroundImage,"tiled")),re=b.a.div.withConfig({componentId:"s1s4hmd1-1"})(["align-items: center;display: flex;flex-direction: row;justify-content: space-between;margin: 0 auto;min-width: 260px;@media(min-width: ","px) {padding: 0 16px;}"],te.i);var ie=e=>ne(se,{className:e.className},void 0,ne(re,{style:{maxWidth:e.disableFullscreen||e.layout===ee.f.Large?`${e.maxWidth||te.c}px`:"100%"}},void 0,ne("div",{},void 0,e.children),ne(Y,{}))),de=o("./src/reddit/actions/pages/subredditWiki/constants.ts"),ae=o("./src/reddit/components/Translated/index.tsx"),ce=o("./src/reddit/helpers/trackers/subredditWiki.ts"),le=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var pe=e=>{const t=e.homeUrl,o=e.pageLayer,n=!!o&&!!o.meta&&o.meta.name===q.Rb.SUBREDDIT_WIKI,s=`wiki/${de.c}`,r=t.endsWith("/")?t+s:`${t}/${s}`;return le(T,{isActive:n,to:r,onClick:()=>e.sendEvent(Object(ce.b)())},void 0,le(ae.a,{msgId:"structuredStyles.forms.menuLinks.wikiHomeLinkLabel"}))},ue=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const me=Object(l.a)("spPolls",$),be=Object(c.w)(),fe=Object(d.createStructuredSelector)({language:p.M,layout:c.O,widget:u.e}),ge=Object(i.connect)(fe);t.a=be(ge(Object(a.b)(e=>ue(ie,{layout:e.layout,disableFullscreen:e.disableFullscreen,maxWidth:e.maxWidth},void 0,e.subredditId&&ue(r.a.Fragment,{},void 0,ue(Z,{homeUrl:e.homeUrl,subredditId:e.subredditId}),ue(me,{subredditId:e.subredditId})),e.widget&&ue(r.a.Fragment,{},void 0,e.widget.showWiki&&ue(pe,{homeUrl:e.homeUrl,pageLayer:e.pageLayer,sendEvent:e.sendEvent}),!!e.widget.data.length&&e.widget.data.map((e,t)=>ue(z,{isActive:!1,menuItem:e},t)))))))},"./src/reddit/components/SubredditSidebar/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/lodash/isEqual.js"),r=o.n(s),i=o("./node_modules/react/index.js"),d=o.n(i),a=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"),p=o.n(l),u=o("./src/reddit/components/Governance/CommunityCard/index.tsx"),m=o("./src/reddit/components/Governance/Leaderboard/index.tsx"),b=o("./src/reddit/components/IdCard/index.tsx"),f=o("./src/reddit/components/JSAPIContainers/index.tsx"),g=o("./src/reddit/components/SidebarAd/ListingPageSidebarAd.tsx"),h=o("./src/reddit/components/SidebarContainer/index.tsx"),v=o("./src/reddit/components/SidebarSpacer/index.tsx"),y=o("./src/reddit/components/SidebarStickyBottom/index.tsx"),x=o("./src/app/strings/index.ts"),O=o("./src/app/actions/tooltip.ts"),w=o("./src/higherOrderComponents/asTooltip.tsx"),j=o("./src/reddit/actions/modal.ts"),S=o("./src/reddit/constants/modals.ts"),C=o("./src/reddit/controls/Dropdown/index.tsx"),I=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),k=o("./src/reddit/icons/fonts/Menu/index.tsx"),P=o("./src/reddit/icons/fonts/Pencil/index.tsx"),N=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),_=o("./src/reddit/selectors/moderatorPermissions.ts"),T=o("./src/reddit/selectors/tooltip.ts"),L=o("./src/reddit/selectors/user.ts"),M=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const A=p()(C.a).withConfig({componentId:"o0apfa-0"})(["margin-top: 0;"]),E=p()(P.a).withConfig({componentId:"o0apfa-1"})(["margin-left: 10px;"]),B=p.a.a.withConfig({componentId:"o0apfa-2"})(["","align-items: center;background-color: ",";border-bottom: 1px solid ",";color: ",";cursor: pointer;display: flex;fill: ",";flex-direction: row;padding: 8px;&:hover {background-color: ",";color: ",";fill: ",";}&:last-of-type {border: 0;}"],I.titleFontH5,e=>Object(N.c)(e).body,e=>Object(N.c)(e).line,e=>Object(N.c)(e).bodyText,e=>Object(N.c)(e).actionIcon,e=>Object(N.c)(e).button,e=>Object(N.c)(e).body,e=>Object(N.c)(e).bodyText),F=e=>`SubredditChannels--Menu--${e}`,R=Object(w.a)(A),$=Object(c.createStructuredSelector)({isModerator:_.d,language:L.M,isDropdownOpen:(e,t)=>Object(T.b)(F(t.subredditId))(e)}),D=p()(e=>{const t=e.className,o=e.isModerator,n=e.language,s=e.onOpenDropdown,r=e.isDropdownOpen,i=e.toggleModal,d=F(e.subredditId);return M("button",{"aria-expanded":r,"aria-haspopup":!0,"aria-label":Object(x.a)(n,"subredditModeration.chat.subredditWidget.menu.title"),className:t,id:d,onClick:()=>s(d)},void 0,M(k.a,{}),M(R,{isOpen:r,tooltipId:d,targetPosition:["right","bottom"],tooltipPosition:["right","top"]},void 0,M(B,{onClick:i},void 0,o?Object(x.a)(n,"subredditModeration.chat.subredditWidget.menu.manageRooms"):Object(x.a)(n,"subredditModeration.chat.subredditWidget.menu.viewRooms"),M(E,{}))))}).withConfig({componentId:"o0apfa-3"})(["border-radius: 2px;padding: 4px;padding-bottom: 20px;margin: 6px 0px 6px auto;max-height: 16px;text-align: center;white-space: nowrap;"]);var U=Object(a.connect)($,e=>({onOpenDropdown:t=>e(Object(O.e)({tooltipId:t})),toggleModal:()=>e(Object(j.i)(S.a.MANAGE_SUBREDDIT_CHAT))}))(D),W=o("./src/reddit/components/SubredditChannelList/index.tsx"),H=o("./src/reddit/components/TrackingHelper/index.tsx"),V=o("./src/reddit/components/Widgets/ThemedWidget/index.tsx"),z=o("./src/reddit/featureFlags/index.ts"),q=o("./src/reddit/helpers/trackers/chat.ts"),G=o("./src/reddit/selectors/subreddit.ts"),K=o("./src/reddit/selectors/subredditChannel.ts"),J=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const X=p.a.div.withConfig({componentId:"s1l0d00j-0"})(["margin-top: -10px;"]),Z=Object(c.createStructuredSelector)({language:L.M,isCollectionReady:K.e,isModerator:_.d,isWhitelistedSubreddit:G.d,shouldRequestCollection:K.f,subredditChannels:K.a,userInSubredditChat:e=>!!z.d.userInSubredditChat(e)});let Q;var Y=Object(a.connect)(Z)(Object(H.b)(class extends d.a.Component{constructor(e){super(e)}shouldComponentUpdate(e,t){return this.props.isCollectionReady!==e.isCollectionReady||this.props.isModerator!==e.isModerator||this.props.isWhitelistedSubreddit!==e.isWhitelistedSubreddit||this.props.shouldRequestCollection!==e.shouldRequestCollection||this.props.subredditChannels!==e.subredditChannels}trackViewEvent(){this.props.subredditId!==Q&&(Q=this.props.subredditId,this.props.sendEvent(Object(q.m)()))}isEnabled(){var e=this.props;const t=e.isModerator,o=e.isCollectionReady,n=e.isWhitelistedSubreddit,s=e.subredditChannels,r=e.userInSubredditChat,i=s&&s.length;return!(!o||!n||!i&&!t)&&r}render(){var e=this.props;const t=e.language,o=e.subredditId,n=e.shouldRequestCollection,s=J(W.b,{maxChannels:3,parentContext:W.a.Widget,subredditId:o});return n?s:this.isEnabled()?(this.trackViewEvent(),J(v.a,{},void 0,J(V.a,{className:this.props.className,title:Object(x.a)(t,"subredditModeration.chat.subredditWidget.header"),headerButton:J(U,{subredditId:o})},void 0,J(X,{},void 0,s)))):null}})),ee=o("./src/reddit/components/Widgets/ConnectedAccounts/index.tsx"),te=o("./src/config.ts"),oe=o("./src/lib/classNames/index.ts"),ne=o("./src/lib/localStorageAvailable/index.ts"),se=o("./src/higherOrderComponents/asModal.tsx"),re=o("./src/reddit/components/ModalStyledComponents/index.tsx"),ie=o("./src/reddit/components/Translated/index.tsx"),de=o("./src/reddit/controls/TextButton/index.tsx"),ae=o("./src/reddit/layout/twoCol/ExpandLeft/index.tsx"),ce=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var le=Object(se.a)(class extends d.a.Component{render(){const e=this.props;return ce(re.c,{},void 0,ce(re.g,{},void 0,ce(ae.b,{},void 0,ce(re.k,{},void 0,ce(ie.a,{msgId:"sidebar.moderatorOnboarding.modal.title"})),ce(de.a,{onClick:e.toggleModal},void 0,ce(re.b,{})))),ce(re.h,{},void 0,ce(re.j,{},void 0,ce(ie.a,{msgId:"sidebar.moderatorOnboarding.modal.text"}))),ce(re.e,{},void 0,ce(re.a,{onClick:e.toggleModal,"data-redditstyle":!0},void 0,ce(ie.a,{msgId:"sidebar.moderatorOnboarding.modal.cancel"})),ce(re.l,{onClick:e.onCloseModOnboarding,"data-redditstyle":!0},void 0,ce(ie.a,{msgId:"sidebar.moderatorOnboarding.modal.confirm"}))))}}),pe=o("./src/reddit/components/IdCard/helpers.ts"),ue=o("./src/reddit/components/RawHTMLDisplay/index.tsx"),me=o("./src/reddit/constants/blade.ts"),be=o("./src/reddit/controls/Button/index.tsx"),fe=o("./src/reddit/controls/InternalLink/index.tsx"),ge=o("./src/reddit/helpers/localStorage/index.ts"),he=o("./src/reddit/helpers/trackers/modOnboarding.ts"),ve=o("./src/reddit/icons/svgs/CircleCheck/index.tsx"),ye=o("./src/reddit/icons/svgs/Close/index.tsx"),xe=o("./src/reddit/models/ModeratingSubreddits/index.ts"),Oe=o("./src/reddit/selectors/activeModalId.ts"),we=o("./src/reddit/selectors/structuredStyles.ts"),je=o("./src/reddit/components/Widgets/ModeratorOnboarding/index.m.less"),Se=o.n(je),Ce=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Ie="mod_onboarding_modal",ke="mod_onboarding_widget",Pe=Object(l.keyframes)(["0%{opacity: 0;transform: scale(1.8);}100%{transform: scale(1);opacity: 1;}"]),Ne=Object(l.css)(["."," {color: ",";}."," {fill: ",";}."," {fill: ",";animation: 0.6s ease 0s 1 normal both running ",";}."," {fill: ",";}."," {color: ",";}"],Se.a.link,e=>Object(N.c)(e).button,Se.a.unchecked,e=>Object(N.c)(e).inactive,Se.a.checked,e=>Object(N.c)(e).button,Pe,Se.a.closeIcon,e=>Object(N.c)(e).lightText,Se.a.subtext,e=>Object(N.c)(e).metaText),_e=Object(c.createSelector)(Oe.a,(e,t)=>Object(_.a)(xe.b.config)(e,{subredditId:t.subredditId}),(e,t)=>Object(we.k)(e,{subredditId:t.subredditId}),(e,t,o)=>({activeModalId:e,hasModeratorPermissions:t,modHasEditedBanner:!o||!!(o.bannerBackgroundImage||o.bannerHeight||o.bannerPositionedImage||o.bannerBackgroundColor),modHasEditedColors:!o||!!(o.primaryColor||o.highlightColor||o.backgroundColor||o.backgroundImage),modHasEditedIcon:!o||(!!o.communityIcon||!!o.bannerShowCommunityIcon)}));var Te=Object(a.connect)(_e,(e,{subredditId:t,subredditName:o})=>({toggleCloseMenuModal:()=>e(Object(j.i)(Ie))}))(Object(H.b)(class extends d.a.Component{constructor(e){super(e),this.confirmCloseModOnboarding=(()=>{this.props.toggleCloseMenuModal(),this.setState({visible:!1}),Object(ge.E)(ke,!0,this.props.subredditId),this.props.sendEvent(Object(he.d)("close"))}),this.customizeThemeColors=(()=>{this.props.sendEvent(Object(he.d)("theme_colors_link"))}),this.customizeIcon=(()=>{this.props.sendEvent(Object(he.d)("icon_link"))}),this.customizeBannerImage=(()=>{this.props.sendEvent(Object(he.d)("banner_image_link"))}),this.customizeAppearance=(()=>{this.props.sendEvent(Object(he.d)("styling_generic_link"))}),this.state={visible:!1}}componentDidMount(){this.onUpdate()}componentDidUpdate(){this.onUpdate()}onUpdate(){var e=this.props;const t=e.hasModeratorPermissions,o=e.modHasEditedBanner,n=e.modHasEditedColors,s=e.modHasEditedIcon,r=e.subredditId,i=t&&!(o&&n&&s)&&(!Object(ne.a)()||!Object(ge.j)(ke,r));i!==this.state.visible&&(this.setState({visible:i}),i&&this.props.sendEvent(Object(he.e)("mod_edu_banner")))}render(){var e=this.props;const t=e.activeModalId,o=e.language,n=e.modHasEditedBanner,s=e.modHasEditedColors,r=e.modHasEditedIcon,i=e.subredditName,d=e.toggleCloseMenuModal;return this.state.visible?Ce(V.a,{className:Object(oe.a)(Se.a.container,this.props.className)},void 0,Ce(b.a,{bannerBackgroundImage:`${te.a.assetPath}/img/id-cards/mod-onboarding@2x.png`}),Ce(ye.a,{className:Se.a.closeIcon,onClick:d}),Object(b.f)({titleText:Ce(ie.a,{msgId:"sidebar.moderatorOnboarding.title"}),titleSecondaryText:null,snooBackground:Object(pe.b)(`url('${te.a.assetPath}/img/id-cards/snoo-artist@2x.png')`),shouldRenderSuperbOwlIcon:!1}),Ce(b.b,{className:Se.a.description},void 0,Ce(ue.a,{className:Se.a.description,html:Object(x.a)(o,"sidebar.moderatorOnboarding.description",{className:Se.a.modHelpLink,link:me.f.exportImport})})),Ce(fe.a,{to:`/r/${i}?styling=true&route=${me.c.NameAndIcon}`,className:Se.a.link,onClick:this.customizeIcon},void 0,Ce(ve.a,r?{className:Se.a.checked}:{className:Se.a.unchecked}),Ce(ie.a,{msgId:"sidebar.moderatorOnboarding.addCommunityIcon"})),Ce(fe.a,{to:`/r/${i}?styling=true&route=${me.c.Banner}`,className:Se.a.link,onClick:this.customizeBannerImage},void 0,Ce(ve.a,n?{className:Se.a.checked}:{className:Se.a.unchecked}),Ce(ie.a,{msgId:"sidebar.moderatorOnboarding.customizeHeader"})),Ce(fe.a,{to:`/r/${i}?styling=true&route=${me.c.Global}`,className:Se.a.link,onClick:this.customizeThemeColors},void 0,Ce(ve.a,s?{className:Se.a.checked}:{className:Se.a.unchecked}),Ce(ie.a,{msgId:"sidebar.moderatorOnboarding.customizeColors"})),Ce(be.i,{to:`/r/${i}?styling=true`,className:Se.a.button,onClick:this.customizeAppearance},void 0,Ce(ie.a,{msgId:"sidebar.moderatorOnboarding.customizeAppearance"})),Ce("div",{className:Se.a.subtext},void 0,Ce(ie.a,{msgId:"sidebar.moderatorOnboarding.onlyModerators"})),t===Ie&&Ce(le,{withOverlay:!0,toggleModal:d,onCloseModOnboarding:this.confirmCloseModOnboarding})):null}})),Le=o("./src/reddit/components/Widgets/Widget/index.tsx"),Me=o("./src/lib/constants/index.ts"),Ae=o("./src/reddit/constants/posts.ts"),Ee=o("./src/reddit/selectors/listings.ts"),Be=o("./src/reddit/helpers/createBannerProperties/index.ts"),Fe=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Re=p.a.div.withConfig({componentId:"n8qdfy-0"})(["","margin-top: 16px;"],u.b),$e=p.a.div.withConfig({componentId:"n8qdfy-1"})(["margin-top: 16px;",""],m.dynamicStyles),De=p()(h.a).withConfig({componentId:"n8qdfy-2"})(["",""],Ne),Ue=Object(c.createStructuredSelector)({apiError:Ee.c,apiPending:Ee.d,language:L.M,showGovernance:z.d.spPoints,showLeaderboard:z.d.spLeaderboard,widgets:G.r}),We=Object(a.connect)(Ue);t.a=We(class extends i.Component{constructor(e){super(e),this.state={isMounted:!1}}componentDidMount(){this.setState({isMounted:!0})}shouldComponentUpdate(e,t){return this.props.subredditName!==e.subredditName||!r()(this.props.widgets,e.widgets)}render(){var e=this.props;const t=e.className,o=e.language,n=e.listingKey,s=e.listingName,r=e.showGovernance,i=e.showLeaderboard,d=e.subredditId,a=e.subredditName,c=e.widgets;let l=0;return Fe(De,{className:t},void 0,Object(b.e)(s)&&Fe(b.d,{listingName:s}),Fe(Te,{language:o,subredditId:d,subredditName:a}),Fe(ee.a,{subredditOrProfile:{name:a,type:Ae.a.SUBREDDIT}}),r&&Fe(Re,{},void 0,Fe(u.a,{subredditId:d})),i&&Fe($e,{},void 0,Fe(m.default,{subredditId:d,uniqueId:d})),Fe(f.g,{subredditId:d}),Fe(g.a,{placement:Me.d.ABOVE_THE_FOLD,listingName:s,listingKey:n,placementIndex:l++,position:Be.a.FIRST,sizes:Me.j}),c.map((e,t)=>Fe(v.a,{},`widgetSpacer${t}`,Fe(Le.a,{subredditName:a,widget:e}))),Fe(Y,{subredditId:d}),Fe(y.a,{adComponent:Fe(g.a,{placement:Me.d.BELOW_THE_FOLD,listingName:s,listingKey:n,placementIndex:l++,position:Be.a.BOTTOM,sizes:Me.p})}))}})},"./src/reddit/components/Widgets/Aggregate/Subreddits/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n=o("./src/reddit/components/TrackingHelper/index.tsx"),s=o("./src/reddit/components/Widgets/CommunityList/SubredditList.tsx"),r=o("./node_modules/react-redux/es/index.js"),i=o("./node_modules/reselect/lib/index.js"),d=o("./src/reddit/selectors/news.ts"),a=o("./src/reddit/selectors/subreddit.ts");const c=Object(r.connect)(Object(i.createStructuredSelector)({communities:a.f})),l=Object(r.connect)(Object(i.createStructuredSelector)({communities:d.c}));o.d(t,"a",function(){return b});var p,u=(p="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var s=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&s)for(var i in s)void 0===t[i]&&(t[i]=s[i]);else t||(t=s||{});if(1===r)t.children=n;else if(r>1){for(var d=Array(r),a=0;a<r;a++)d[a]=arguments[a+3];t.children=d}return{$$typeof:p,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const m=e=>u(s.b,{className:e.className,communities:e.communities,sendEvent:e.sendEvent,getClickEventFactory:e.getClickEventFactory,getSubscribeEventFactoryHandler:e.getSubscribeEventFactoryHandler,title:e.title}),b=l(Object(n.b)(m));t.b=c(Object(n.b)(m))},"./src/reddit/components/Widgets/Base/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return c}),o.d(t,"a",function(){return p});o("./node_modules/react/index.js");var n,s=o("./src/reddit/components/SidebarSectionHeader/index.tsx"),r=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),i=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(i),a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const c="\n \n border-radius: 5px 5px 4px 4px;\n overflow: visible;\n word-wrap: break-word;\n",l=d.a.div.withConfig({componentId:"s1npjf9r-0"})(["","background-color: ",";padding: 12px;"],c,e=>Object(r.c)(e).body),p=d.a.h3.withConfig({componentId:"s1npjf9r-1"})(["","color: ",";"],s.b,e=>Object(r.c)(e).navIcon);t.c=(e=>a("div",{className:e.className},void 0,a(l,{},void 0,e.children)))},"./src/reddit/components/Widgets/CommunityList/SubredditList.tsx":function(e,t,o){"use strict";var n=o("./src/app/strings/index.ts"),s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-router-dom/es/index.js"),d=o("./src/lib/prettyPrintNumber/index.ts"),a=o("./src/reddit/components/Flair/index.tsx"),c=o("./src/reddit/components/SubscribeButton/index.tsx"),l=o("./node_modules/react-redux/es/index.js"),p=o("./node_modules/reselect/lib/index.js"),u=o("./src/reddit/actions/subscription.ts"),m=o("./src/reddit/selectors/experiments/subscribeText.ts"),b=o("./src/reddit/selectors/user.ts");const f=Object(p.createStructuredSelector)({language:b.M,textVariant:m.b});var g=Object(l.connect)(f,(e,t)=>{const o=t.widget.id||void 0;return{onSubscribe:()=>e(u.g(t.identifier,!0,o)),onSubscriptionsRequested:()=>e(u.h()),onUnsubscribe:()=>e(u.g(t.identifier,!1,o))}})(o("./src/reddit/components/SubscribeButton/Base.tsx").c),h=o("./src/reddit/components/Widgets/ThemedWidget/index.tsx"),v=o("./src/reddit/connectors/connectToLanguage.ts"),y=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),x=o("./src/reddit/icons/svgs/CircledPlanet/index.tsx"),O=o("./src/reddit/layout/threeCol/ExpandCenter/index.tsx"),w=o("./src/reddit/models/Flair/index.ts"),j=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),S=o("./bundled-modules/styled-components/styled-components.min.js"),C=o.n(S),I=o("./src/reddit/components/Widgets/CommunityList/helpers.ts"),k=o("./src/reddit/components/Widgets/CommunityList/index.m.less"),P=o.n(k);o.d(t,"b",function(){return D}),o.d(t,"a",function(){return U});var N,_=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},T=(N="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var s=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&s)for(var i in s)void 0===t[i]&&(t[i]=s[i]);else t||(t=s||{});if(1===r)t.children=n;else if(r>1){for(var d=Array(r),a=0;a<r;a++)d[a]=arguments[a+3];t.children=d}return{$$typeof:N,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const L=C.a.div.withConfig({componentId:"kufqoz-0"})(["height: 32px;"]),M="\n border-radius: 100%;\n height: 32px;\n margin-right: 8px;\n width: 32px;\n",A=C()(x.a).withConfig({componentId:"kufqoz-1"})(["",";background: ",";box-sizing: border-box;fill: ",";padding: 3px;"],M,e=>Object(j.c)(e).active,e=>Object(j.c)(e).lightText),E=C.a.img.withConfig({componentId:"kufqoz-2"})(["",";"],M),B=C.a.div.withConfig({componentId:"kufqoz-3"})(["width: 100%;"]),F=C()(i.a).withConfig({componentId:"kufqoz-4"})(["",";display: block;overflow: hidden;text-overflow: ellipsis;width: 132px;&:hover {text-decoration: underline;}"],y.titleFontH6),R=C.a.p.withConfig({componentId:"kufqoz-5"})(["","padding-bottom: 4px;"],y.metadataFont),$=C.a.p.withConfig({componentId:"kufqoz-6"})(["","font-weight: normal;"],y.metadataFont),D=e=>T(h.a,{className:e.className,styles:e.widget&&e.widget.styles,title:e.title},void 0,T(B,{},void 0,e.communities.map(t=>r.a.createElement(U,_({key:t.name},t,{getSubscribeEventFactory:e.getSubscribeEventFactoryHandler?e.getSubscribeEventFactoryHandler(t):void 0,widget:e.widget,sendEvent:e.sendEvent,type:t.type||"subreddit",isNSFW:t.isNSFW,onCommunityNameClick:e.getClickEventFactory?()=>e.sendEvent(e.getClickEventFactory(t)):void 0}))))),U=Object(v.a)(e=>T("div",{className:P.a.communityItemContainer},void 0,T(O.a,{widthRight:106},void 0,T(L,{},void 0,e.iconUrl?T(E,{src:e.iconUrl}):T(A,{"data-redditstyle":!0})),T("div",{className:P.a.communityDescriptionContainer},void 0,T(F,{to:Object(I.a)(e.name,e.type),onClick:e.onCommunityNameClick},void 0,Object(I.b)(e.name,e.type)),T("div",{className:P.a.communityInfoContainer},void 0,!!e.subscribers&&T(R,{},void 0,Object(n.d)(e.language,"listings.subscribers",e.subscribers,{count:Object(d.b)(e.subscribers)})),e.isNSFW&&T(a.c,{flair:{type:w.e.Nsfw,text:"nsfw"}}))),e.widget?T(g,{getEventFactory:e.getSubscribeEventFactory,identifier:{name:e.name,type:e.type},sendEvent:e.sendEvent,small:!0,userIsSubscriber:!!e.isSubscribed,widget:e.widget}):T(c.a,{identifier:{name:e.name,type:e.type},getEventFactory:e.getSubscribeEventFactory,small:!0})),!!e.description&&T($,{title:e.description,className:P.a.communityDescription},void 0,e.description)))},"./src/reddit/components/Widgets/CommunityList/helpers.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return r}),o.d(t,"b",function(){return i});var n=o("./src/reddit/constants/posts.ts"),s=o("./src/reddit/helpers/name/index.ts");function r(e,t){return(t===n.a.PROFILE?"/user/":"/r/")+e}function i(e,t){return t===n.a.PROFILE?Object(s.c)(e):Object(s.b)(e)}},"./src/reddit/components/Widgets/CommunityList/index.m.less":function(e,t,o){e.exports={communityItemContainer:"_3NFddqqrzfM8noBES52Qcy",communityDescriptionContainer:"_3jEbHrUmHtMsZcfN-z_GpD",communityDescription:"_2IANzA2n-6eA5T8Tz0TEVE"}},"./src/reddit/components/Widgets/ConnectedAccounts/Account/index.m.less":function(e,t,o){e.exports={icon:"_1zLylbOLqdzG2C4JhdkEVQ",patreonLogo:"_3mKraSoIJUnWOE1E84gnuC",twitterLogo:"_1N1dJvzR-m3nNoVl8cxHul",link:"JqNsQRTEcAPCq8_G0O5mO",name:"_28fbIV1TS_oSVjfzjWnM0f",linkDescription:"_2Y1Xv08xrWbsDZuEvIuRKo",linkTitle:"elMVR2YfkbHdFTihhlUK4",linkIcon:"oi2L0mBSRAULcOPEtjXSh",description:"KKNu_jB7N6A-PuBrW0WoR",visitButton:"NBL39n3gjYvG4c9qlXJIk"}},"./src/reddit/components/Widgets/ConnectedAccounts/index.m.less":function(e,t,o){e.exports={account:"_25M-5tlJjQOChCI8sg84QU"}},"./src/reddit/components/Widgets/ConnectedAccounts/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./node_modules/react-redux/es/index.js"),r=o("./node_modules/reselect/lib/index.js"),i=o("./src/app/strings/index.ts"),d=o("./src/reddit/components/SidebarSpacer/index.tsx"),a=o("./src/reddit/components/TrackingHelper/index.tsx"),c=o("./src/reddit/components/Widgets/Base/index.tsx"),l=o("./src/reddit/constants/posts.ts"),p=o("./src/reddit/helpers/trackers/profileSettings.ts"),u=o("./src/reddit/helpers/trackers/providers.ts"),m=o("./src/reddit/models/ExternalAccount/index.ts"),b=o("./src/reddit/selectors/externalAccount.ts"),f=o("./src/reddit/selectors/user.ts"),g=o("./bundled-modules/styled-components/styled-components.min.js"),h=o.n(g),v=o("./src/lib/addQueryParams/index.ts"),y=o("./src/reddit/constants/colors.ts"),x=o("./src/reddit/controls/OutboundLink/index.tsx"),O=o("./src/reddit/icons/svgs/OutboundLink/index.tsx"),w=o("./src/reddit/icons/svgs/Patreon/index.tsx"),j=o("./src/reddit/icons/svgs/Twitter/index.tsx"),S=o("./src/reddit/layout/twoCol/ExpandRight/index.tsx"),C=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),I=o("./src/reddit/components/Widgets/ConnectedAccounts/Account/index.m.less"),k=o.n(I),P=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const N=h()(S.a).withConfig({componentId:"s1v4zrhs-0"})(["."," {background-color: ",";}.patreonIcon {background-color: ",";}."," {color: ",";}."," {fill: ",";}."," {color: ",";}"],k.a.icon,y.a.twitter,w.a,k.a.name,e=>Object(C.c)(e).bodyText,k.a.linkIcon,e=>Object(C.c)(e).linkText,k.a.linkDescription,e=>Object(C.c)(e).linkText);var _=e=>{const t=e.account,o=e.clickEvent,n=e.currentUserIsPatronOfSubredditOrProfile,s=e.language,r=e.provider;let d,a=t.username,c=k.a.icon,l="",p=t.link;if(r===m.a.Twitter)d=P(j.a,{className:k.a.twitterLogo}),l="View on Twitter",a=`@${t.username}`;else{if(r!==m.a.Patreon)return null;d=P(w.b,{className:k.a.patreonLogo}),n?(l=Object(i.a)(s,"connectedAccounts.thankYouForYourSupport"),p=Object(v.a)(t.link,{utm_campaign:"reddit_patreon_widget",utm_content:"thank_you"})):(l=Object(i.a)(s,"connectedAccounts.getExclusiveFlair"),p=Object(v.a)(t.link,{utm_campaign:"reddit_patreon_widget",utm_content:"become_patron"})),c=`${k.a.icon} patreonIcon`}return P(N,{},void 0,P("span",{className:c},void 0,d),P(x.a,{className:k.a.link,href:p,isSponsored:!1,source:void 0,onClick:o},void 0,P("div",{className:k.a.linkTitle},void 0,P("span",{className:k.a.name},void 0,a),P(O.a,{className:k.a.linkIcon})),P("div",{className:k.a.linkDescription},void 0,l)))},T=o("./src/reddit/components/Widgets/ConnectedAccounts/index.m.less"),L=o.n(T),M=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const A=Object(r.createStructuredSelector)({currentUserIsPatronOfSubredditOrProfile:(e,{subredditOrProfile:t})=>Object(b.a)(e,t),language:f.M,patreonAccount:(e,{subredditOrProfile:t})=>Object(b.d)(e,t),twitterAccount:(e,{subredditOrProfile:t})=>t.type===l.a.PROFILE?Object(b.e)(e,{profileName:t.name}):null,user:(e,{subredditOrProfile:t})=>t.type===l.a.PROFILE?Object(f.bb)(e,{userName:t.name}):null}),E=Object(s.connect)(A,e=>({trackTwitterAccountClicked:t=>e((e,o)=>p.k(o(),t))}),(e,t,o)=>Object.assign({},o,e,t,{onTwitterAccountClicked:()=>t.trackTwitterAccountClicked(e.user)}));t.a=Object(a.b)(E(e=>{const t=e.currentUserIsPatronOfSubredditOrProfile,o=e.language,n=e.onTwitterAccountClicked,s=e.patreonAccount,r=e.sendEvent,a=e.twitterAccount;return a||s?M(d.a,{},void 0,M(c.c,{},void 0,M(c.a,{},void 0,Object(i.a)(o,"connectedAccounts.title")),a&&M("div",{className:L.a.account},void 0,M(_,{provider:m.a.Twitter,account:a,language:o,clickEvent:n})),s&&M("div",{className:L.a.account},void 0,M(_,{provider:m.a.Patreon,account:s,currentUserIsPatronOfSubredditOrProfile:t,language:o,clickEvent:()=>r(Object(u.c)())})))):null}))},"./src/reddit/components/Widgets/ModeratorOnboarding/index.m.less":function(e,t,o){e.exports={link:"_2e42jHFUxTCKhK9ZV7rkYM",checked:"g4y6sLtk5FcL7BGU4ySVF",unchecked:"KghweVAiFiX0RI_syl89Q",subtext:"_1STduBQ65V-3ECZ3WRoEKV",section:"_23svPjrTufAABoINCKRN_7",container:"_2YGvHlE11080fRAzC4onab",button:"_2F46jVXxeuK0SKM9TO-8pY",closeIcon:"_3mATOvmc_Q9pFcfcBXjFol",description:"_3js_prVH0h73q85Oa9P7lN"}},"./src/reddit/components/Widgets/PostFlair/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),a=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(a),l=o("./src/app/strings/index.ts"),p=o("./src/reddit/components/Flair/index.tsx"),u=o("./src/reddit/components/TrackingHelper/index.tsx"),m=o("./src/reddit/components/Widgets/ThemedWidget/index.tsx"),b=o("./src/reddit/controls/Button/index.tsx"),f=o("./src/reddit/helpers/correlationIdTracker.ts"),g=o("./src/reddit/helpers/trackers/postFlair.ts"),h=o("./src/reddit/models/Flair/index.ts"),v=o("./src/reddit/selectors/subreddit.ts"),y=o("./src/reddit/selectors/user.ts"),x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},O=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const w=25,j=Object(d.createStructuredSelector)({language:y.M,subredditId:(e,t)=>Object(v.z)(e,t.subredditName)}),S=Object(i.connect)(j),C=c.a.div.withConfig({componentId:"o1qera-0"})(["padding-top: 4px;width: 100%;"]),I=c()(b.l).withConfig({componentId:"o1qera-1"})(["display: flex;margin-left: auto;"]),k=c()(e=>O("div",{className:e.className},void 0,r.a.createElement(p.c,x({},e,{forceSmallEmojis:!0})))).withConfig({componentId:"o1qera-2"})(["display: ",";margin-bottom: 3px;max-width: ",";overflow: hidden;text-overflow: ellipsis;"],e=>"cloud"===e.display?"inline-block":"block",e=>"cloud"===e.display?"97%":"fit-content");t.a=S(Object(u.b)(class extends r.a.Component{constructor(e){super(e),this.onClick=(e=>{const t={id:this.props.subredditId,eventType:"subreddit",originElement:"post_flair_widget",postFlairName:e};Object(f.d)(f.a.SearchResults),this.props.sendEvent(Object(g.b)(t))}),this.onToggleCollapse=(()=>this.setState({isCollapsed:!this.state.isCollapsed})),this.state={isCollapsed:!0}}render(){var e=this.props;const t=e.language,o=e.subredditName,n=e.widget,s=this.state.isCollapsed?n.order.slice(0,w):n.order,r=n.order.length>s.length||!this.state.isCollapsed;return O(m.a,{styles:n.styles,title:n.shortName},void 0,O(C,{},void 0,s.map(e=>O(k,{display:n.display,flair:n.templates[e]&&Object(h.i)(n.templates[e]),onClick:this.onClick,subredditName:o},e)),r&&O(I,{onClick:this.onToggleCollapse},void 0,this.state.isCollapsed?Object(l.a)(t,"structuredStyles.widgets.post-flair.viewMoreFlair"):Object(l.a)(t,"structuredStyles.widgets.post-flair.viewLessFlair"))))}}))},"./src/reddit/components/Widgets/SubredditRules/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./src/app/strings/index.ts"),d=o("./src/reddit/components/Widgets/ThemedWidget/index.tsx"),a=o("./src/reddit/connectors/connectToLanguage.ts"),c=o("./bundled-modules/styled-components/styled-components.min.js"),l=o.n(c),p=o("./src/reddit/components/RawHTMLDisplay/index.tsx"),u=o("./src/reddit/helpers/dom/index.ts"),m=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),b=o("./src/reddit/icons/svgs/ChevronDown/index.tsx"),f=o("./src/reddit/icons/svgs/ChevronUp/index.tsx"),g=o("./src/reddit/layout/threeCol/ExpandCenter/index.tsx"),h=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),v=o("./src/reddit/models/Widgets/index.ts"),y=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const x=Object(c.css)(["display: inline-block;height: 12px;width: 12px;"]),O=l()(f.a).withConfig({componentId:"k78cb0-0"})(["",""],x),w=l()(b.a).withConfig({componentId:"k78cb0-1"})(["",""],x),j=l.a.div.withConfig({componentId:"k78cb0-2"})(["","border-bottom: 1px solid ",";padding: 8px 0px;","&:last-child {border-bottom: none;padding-bottom: 0px;}"],m.titleFontH5,e=>Object(h.c)(e).widgetColors.lineColor,e=>e.pointerCursor?"cursor: pointer;":""),S=l.a.div.withConfig({componentId:"k78cb0-3"})(["padding-right: 2px;"]),C=l.a.div.withConfig({componentId:"k78cb0-4"})(["padding-right: 8px;word-break: break-word;"]),I=l.a.div.withConfig({componentId:"k78cb0-5"})(["","padding: 8px 8px 0px 16px;"],m.bodyFontH6),k=l()(p.a).withConfig({componentId:"k78cb0-6"})(["color: inherit;"]);class P extends r.a.Component{constructor(e){super(e),this.onClick=(()=>{Object(u.e)()||this.setState({isVisible:!this.state.isVisible})}),this.state={isVisible:this.shouldShowFullDisplay(e)}}shouldShowFullDisplay(e){return e.display===v.e.FULL}render(){const e=this.props,t=this.state,o=this.onClick,n=this.shouldShowFullDisplay,s=!n(e)&&!!e.rule.descriptionHtml;return y(j,{className:e.className,onClick:n(e)||!e.rule.descriptionHtml?void 0:o,pointerCursor:s},void 0,y(g.a,{},void 0,y(S,{},void 0,`${e.humanIndex}.`),y(C,{},void 0,`${e.rule.shortName}`),y("div",{},void 0,!n(e)&&e.rule.descriptionHtml&&(t.isVisible?y(O,{}):y(w,{})))),t.isVisible&&y(I,{},void 0,y(k,{html:e.rule.descriptionHtml})))}}o.d(t,"a",function(){return _});var N=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const _=Object(a.a)(e=>e.rules.length>0?N(d.a,{className:e.className,styles:e.styles,title:Object(i.a)(e.language,"structuredStyles.widgets.subreddit-rules.subredditRules",{subreddit:e.subredditName}),redditStyle:e.redditStyle},void 0,e.rules.map(function(t,o){return N(P,{rule:t,display:e.display,humanIndex:o+1},`rule${t.shortName}${t.createdUtc}`)})):null);t.b=(e=>N(_,{rules:e.widget.data||[],subredditName:e.subredditName,display:e.widget.display,redditStyle:e.redditStyle,styles:e.widget.styles}))},"./src/reddit/components/Widgets/ThemedWidget/index.m.less":function(e,t,o){e.exports={widgetHeader:"_ZhON3a3vplThB8NFwuJn",widgetTitle:"_2sggAEfRQLyoAl4J__5twU",widgetContent:"TmgZY6tDcdErbE5d7E0HJ",widgetContentOnly:"_3RPJ8hHnfFohktLZca18J6"}},"./src/reddit/components/Widgets/ThemedWidget/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/polished/dist/polished.es.js"),r=o("./node_modules/react/index.js"),i=o.n(r),d=o("./node_modules/react-redux/es/index.js"),a=o("./node_modules/reselect/lib/index.js"),c=o("./bundled-modules/styled-components/styled-components.min.js"),l=o.n(c),p=o("./src/reddit/components/Widgets/Base/index.tsx"),u=o("./src/reddit/contexts/PageLayer/index.tsx"),m=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),b=o("./src/reddit/selectors/structuredStyles.ts"),f=o("./src/reddit/selectors/user.ts"),g=o("./src/reddit/components/Widgets/ThemedWidget/helpers.tsx"),h=o("./src/reddit/components/Widgets/ThemedWidget/index.m.less"),v=o.n(h),y=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),x=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=Object(u.w)(),w=Object(d.connect)(()=>Object(a.createStructuredSelector)({forceRedditStyle:(e,t)=>{const o=Object(u.p)(e,t)||void 0;return t.redditStyle||Object(b.l)(e,{subredditId:o})},isNightmodeOn:f.O})),j=l()(e=>i.a.createElement("div",(e=>{e.styles,e.redditStyle,e.isNightmodeOn;return x(e,["styles","redditStyle","isNightmodeOn"])})(e))).withConfig({componentId:"s17ivpdx-0"})(["","background-color: ",";color: ",";fill: ",";",";."," {",";background-color: ",";color: ",";fill: ",";button, a {&:hover {background-color: ",";}}}"],p.b,e=>Object(g.a)(e),e=>Object(g.c)(e),e=>Object(g.c)(e),e=>e.onClick?"cursor: pointer":"",v.a.widgetHeader,m.labelsFont,e=>Object(g.b)(e),e=>Object(g.d)(e),e=>Object(g.d)(e),e=>Object(s.e)(Object(g.d)(e),.2));t.a=O(w(e=>y(j,{className:e.className,"data-redditstyle":e.forceRedditStyle,redditStyle:e.forceRedditStyle,isNightmodeOn:e.isNightmodeOn,onClick:e.onClick,styles:e.styles},void 0,e.title&&y("div",{className:v.a.widgetHeader},void 0,y("div",{className:v.a.widgetTitle},void 0,e.title),e.headerButton),y("div",{className:e.contentOnly?v.a.widgetContentOnly:v.a.widgetContent},void 0,e.children))))},"./src/reddit/components/Widgets/Widget/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),a=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(a),l=o("./src/reddit/components/RawHTMLDisplay/index.tsx"),p=o("./src/reddit/components/Widgets/ThemedWidget/index.tsx"),u=o("./src/reddit/controls/Button/index.tsx"),m=o("./src/lib/linkMatchers/index.ts"),b=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),f=o("./src/reddit/models/Image/index.tsx"),g=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),h=o("./src/reddit/models/Widgets/index.ts"),v=o("./src/reddit/selectors/structuredStyles.ts"),y=o("./src/reddit/selectors/user.ts"),x=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),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=`\n height: ${h.a}px;\n margin-top: 8px;\n width: 100%;\n`,j=(e,t)=>{let o=e.color,n=e.fillColor,s=e.textColor;return t.overrideColors&&(s=o=Object(g.c)(t).button,n=void 0),`\n background-color: ${n||"transparent"};\n background-image: none;\n border: 1px solid ${o};\n color: ${s||o};\n `},S=(e,t)=>{switch(e.kind){case h.f.Image:return`\n ${w};\n \n border: none;\n background-position: center;\n;\n background-image: url('${e.url}');\n `;case h.f.Text:return`\n ${w};\n ${j(e,t)}\n .button-text { display: inline }\n `;default:return""}},C=c()(e=>{var t=e.button,o=(e.overrideColors,O(e,["button","overrideColors"]));return r.a.createElement(u.g,o,t.kind===h.f.Text&&x("span",{className:"button-text"},void 0,t.text),t.hoverState&&t.hoverState.kind===h.f.Text&&x("span",{className:"button-hover-text"},void 0,t.hoverState.text))}).withConfig({componentId:"s7wv5qx-0"})(["",";."," { display: none };&:hover {."," { display: inline };."," { display: none };",";}"],e=>S(e.button,e),"button-hover-text","button-hover-text","button-text",e=>((e,t)=>{if(!e.hoverState)return S(e,t);switch(e.hoverState.kind){case h.f.Image:return`\n \n border: none;\n background-position: center;\n\n background-image: url('${e.hoverState.url}');\n `;case h.f.Text:return j(e.hoverState,t);default:return""}})(e.button,e)),I=e=>x("a",{href:(e=>{const t=Object(h.l)(e),o=Object(m.e)(m.c,t);return o?o.url:e.url})(e.button),target:"_blank",rel:"nofollow"},void 0,r.a.createElement(C,e)),k=c()(l.a).withConfig({componentId:"s7wv5qx-1"})(["color: inherit;","p {","}tr, th, td {padding: 4px;}h1, h2, h3, h4, h5, h6 {&:first-child {margin-top: 0;}}"],b.bodyFontSmall,b.bodyFontSmall);var P=Object(i.connect)(()=>Object(d.createStructuredSelector)({forceRedditStyle:v.l,isNightmodeOn:y.O}))(e=>x(p.a,{styles:e.widget.styles,title:e.widget.shortName},void 0,e.widget.descriptionHtml&&x(k,{html:e.widget.descriptionHtml}),e.widget.buttons.filter(e=>!(e.kind===h.f.Image&&e.url===f.c||e.hoverState&&e.hoverState.kind===h.f.Image&&e.hoverState.url===f.c)).map(t=>x(I,{button:t,overrideColors:e.forceRedditStyle||e.isNightmodeOn},`${t.text}-${t.url}`)))),N=o("./src/app/strings/index.ts"),_=o("./src/lib/humanizeDate/index.ts"),T=o("./src/reddit/controls/TextButton/index.tsx"),L=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const M=100,A={isExpanded:!1},E=c()(l.a).withConfig({componentId:"s12jr8h7-0"})(["color: inherit;"]),B=c.a.div.withConfig({componentId:"s12jr8h7-1"})(["border-bottom: 1px solid ",";margin-bottom: 8px;padding-bottom: 8px;&:last-child {border-bottom: none;}"],e=>Object(g.c)(e).widgetColors.lineColor),F=c.a.div.withConfig({componentId:"s12jr8h7-2"})(["","color: ",";margin-bottom: 4px;word-wrap: break-word;"],b.bodyFontH5,e=>Object(g.c)(e).active),R=c.a.div.withConfig({componentId:"s12jr8h7-3"})(["","margin-bottom: 4px;"],b.bodyFontH6),$=c.a.div.withConfig({componentId:"s12jr8h7-4"})(["","margin-bottom: 4px;"],b.bodyFontH6),D=c.a.div.withConfig({componentId:"s12jr8h7-5"})(["",""],b.bodyFontH6),U=c()(T.a).withConfig({componentId:"s12jr8h7-6"})(["color: ",";text-decoration: none;padding-left: 4px;"],e=>Object(g.c)(e).active);class W extends r.a.Component{constructor(e){super(e),this.toggleDescriptionView=(()=>{this.setState({isExpanded:!this.state.isExpanded})}),this.state=A}render(){const e=this.props,t=this.state;return e.text.length>M?L(D,{},void 0,t.isExpanded?e.text:e.text.slice(0,M),L(U,{onClick:this.toggleDescriptionView},void 0,t.isExpanded?Object(N.a)(e.language,"structuredStyles.widgets.calendar.readLess"):Object(N.a)(e.language,"structuredStyles.widgets.calendar.readMore"))):L(D,{},void 0,e.text)}}const H=Object(d.createStructuredSelector)({language:y.M});var V=Object(i.connect)(H)(e=>L(p.a,{styles:e.widget.styles,title:e.widget.shortName},void 0,e.widget.data.map(t=>L(B,{},void 0,L(F,{},void 0,t.titleHtml?L(E,{html:t.titleHtml}):t.title),e.widget.configuration.showDate&&t.startTime&&L(R,{},void 0,Object(_.a)(t.startTime,e.language,!0),!t.allDay&&e.widget.configuration.showTime&&L("span",{},void 0," • ",(e=>{const t=new Date(1e3*e),o=t.getHours(),n=t.getMinutes();return n<10?`${o}:0${n}`:`${o}:${n}`})(t.startTime)," ")),t.location&&e.widget.configuration.showLocation&&L($,{},void 0,t.locationHtml?L(E,{html:t.locationHtml}):t.location),t.description&&e.widget.configuration.showDescription&&L(W,{language:e.language,text:t.description}))))),z=o("./src/reddit/components/TrackingHelper/index.tsx"),q=o("./src/reddit/components/Widgets/CommunityList/SubredditList.tsx"),G=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var K=Object(z.b)(e=>G(q.b,{className:e.className,communities:e.widget.data,sendEvent:e.sendEvent,title:e.widget.shortName,widget:e.widget})),J=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const X=Object(d.createStructuredSelector)({stylesheet:e=>e.stylesheets}),Z=Object(i.connect)(X),Q=(e,t,o)=>`<head>\n <link rel="stylesheet" href="${e}">\n <link rel="stylesheet" href="${t}">\n <base target="_blank">\n</head>\n<body>${o}</body>`;var Y=Z(class extends r.a.Component{constructor(){super(...arguments),this.storeRef=(e=>{this.iframe=e})}shouldComponentUpdate(e){return(e.widget.stylesheetUrl!==this.props.widget.stylesheetUrl||e.widget.textHtml&&e.widget.textHtml!==this.props.widget.textHtml)&&(this.renderIframeContent(e),this.writeIFrameDocument()),e.widget.height!==this.props.widget.height}writeIFrameDocument(){this.iframe&&this.iframe.contentWindow&&void 0!==this.iframeContent&&(this.iframe.contentWindow.document.open(),this.iframe.contentWindow.document.write(this.iframeContent),this.iframe.contentWindow.document.close())}componentWillMount(){this.renderIframeContent(this.props)}componentDidMount(){this.iframe&&this.iframe.contentWindow&&this.iframeContent&&(this.iframe.contentWindow.document.body&&this.iframe.contentWindow.document.body.childNodes.length||this.writeIFrameDocument())}renderIframeContent(e){e.widget.stylesheetUrl&&e.widget.textHtml&&(this.iframeContent=Q(e.stylesheet,e.widget.stylesheetUrl,e.widget.textHtml))}render(){const e=this.props;return J(p.a,{contentOnly:!0},void 0,r.a.createElement("iframe",{ref:this.storeRef,width:"100%",height:e.widget.height||300,srcDoc:this.iframeContent}))}});var ee=c.a.div.withConfig({componentId:"kkicq7-0"})(["border-radius: 4px;"]);var te=c.a.img.withConfig({componentId:"s1muqojl-0"})(["display: block;height: auto;width: 100%;border-radius: 4px;"]),oe=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var ne=class extends r.a.Component{constructor(e){super(e),this.state={imageIndex:this.getRandomIndex(e)}}getRandomIndex(e){if(!e.widget.data.length)return-1;let t=Math.floor(Math.random()*e.widget.data.length);if(e.widget.data[t].url===f.c){t=-1;for(let t=0;t<e.widget.data.length;t++)if(e.widget.data[t].url!==f.c)return t}return t}componentWillReceiveProps(e){const t=this.props,o=this.state;e.subredditName===t.subredditName&&e.widget.data[o.imageIndex]&&e.widget.data[o.imageIndex]===t.widget.data[o.imageIndex]||this.setState(t=>({imageIndex:this.getRandomIndex(e)}))}render(){const e=this.props,t=this.state;if(t.imageIndex<0)return null;const o=e.widget.data[t.imageIndex],n=oe(ee,{},void 0,oe(te,{src:o.url}));return o.linkUrl?oe("a",{href:o.linkUrl,target:"_blank"},void 0,n):n}},se=o("./node_modules/react-router-dom/es/index.js"),re=o("./src/reddit/components/Flair/index.tsx"),ie=o("./src/reddit/controls/InternalLink/index.tsx"),de=o("./src/reddit/featureFlags/index.ts"),ae=o("./src/reddit/icons/fonts/helpers.tsx"),ce=o("./src/reddit/helpers/styles/mixins/index.tsx"),le=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var pe=c()(e=>le("i",{className:`${Object(ae.b)("envelope")} ${e.className}`})).withConfig({componentId:"i2kq3x-0"})(["",""],ce.l),ue=o("./src/reddit/models/Flair/index.ts"),me=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const be=c.a.div.withConfig({componentId:"s1mvqe4r-0"})(["","display: flex;margin-bottom: 16px;width: 100%;&:last-child {margin-bottom: 8px;}"],b.titleFontH6),fe=c.a.div.withConfig({componentId:"s1mvqe4r-1"})(["color: ",";display: inline-block;max-width: 100%;"],e=>Object(g.c)(e).linkText),ge=c.a.a.withConfig({componentId:"s1mvqe4r-2"})(["border-radius: 2px;margin: 6px 0px 6px auto;padding: 4px;"]),he=c()(re.c).withConfig({componentId:"s1mvqe4r-3"})(["margin-left: 4px;"]),ve=e=>me(fe,{},void 0,`u/${e}`),ye=Object(d.createStructuredSelector)({canAccessRedesignProfiles:de.d.redesignProfiles,language:y.M}),xe=Object(i.connect)(ye),Oe=c()(ie.a).withConfig({componentId:"s1mvqe4r-4"})(["","color: ",";margin-left: auto;"],b.smallButtonFont,e=>Object(g.c)(e).button),we=c.a.div.withConfig({componentId:"s1mvqe4r-5"})(["display: flex;overflow: hidden;padding: 0px 12px 12px;"]);var je=xe(e=>{const t=e.canAccessRedesignProfiles,o=e.language,n=e.subredditName,s=e.widget;return me(p.a,{styles:s.styles,title:Object(N.a)(o,"sidebar.widgets.moderators.title"),headerButton:me(ge,{href:`https://reddit.com/message/compose?to=/r/${n}`,target:"_blank"},void 0,me(pe,{}))},void 0,s.mods.map(e=>me(be,{},e.name,t?(e=>me(se.a,{to:`/user/${e.name}`},void 0,ve(e.name)))(e):(e=>me("a",{href:`/user/${e.name}`,target:"_blank"},void 0,ve(e.name)))(e),me(he,{flair:(e=>e.authorFlairType===ue.e.Richtext?{backgroundColor:e.authorFlairBackgroundColor,richtext:e.authorFlairRichText,textColor:e.authorFlairTextColor,type:e.authorFlairType}:{backgroundColor:e.authorFlairBackgroundColor,text:e.authorFlairText||"",textColor:e.authorFlairTextColor,type:e.authorFlairType})(e),forceSmallEmojis:!0}))),me(we,{},void 0,me(Oe,{to:`/r/${n}/about/moderators/`},void 0,Object(N.a)(o,"sidebar.widgets.moderators.viewAllModerators"))))}),Se=o("./src/reddit/components/Widgets/PostFlair/index.tsx"),Ce=o("./src/reddit/components/Widgets/SubredditRules/index.tsx"),Ie=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const ke=c.a.div.withConfig({componentId:"s1i4gs3u-0"})(["padding-top: 4px;width: 100%;"]),Pe=c()(l.a).withConfig({componentId:"s1i4gs3u-1"})(["color: inherit;","p {","}tr, th, td {padding: 4px;}h1, h2, h3, h4, h5, h6 {&:first-child {margin-top: 0;}}"],b.bodyFontSmall,b.bodyFontSmall);var Ne=e=>Ie(p.a,{styles:e.widget.styles,title:e.widget.shortName},void 0,Ie(ke,{},void 0,Ie(Pe,{html:e.widget.textHtml||""}))),_e=o("./src/reddit/components/Widgets/Base/index.tsx"),Te=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),Le=e=>Te(_e.c,{},void 0,"This widget hasn't been implemented yet!"),Me=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();t.a=(e=>{const t=function(e){switch(e.kind){case"moderators":return je;case"textarea":return Ne;case"button":return P;case"subreddit-rules":return Ce.b;case"community-list":return K;case"calendar":return V;case"image":return ne;case"custom":return Y;case"post-flair":return Se.a;default:return Le}}(e.widget);return Me(t,{widget:e.widget,subredditName:e.subredditName})})},"./src/reddit/connectors/PostList/index.ts":function(e,t,o){"use strict";o.d(t,"c",function(){return x}),o.d(t,"d",function(){return w}),o.d(t,"b",function(){return S});var n=o("./node_modules/react-redux/es/index.js"),s=o("./node_modules/reselect/lib/index.js"),r=o("./src/reddit/actions/ad.ts"),i=o("./src/reddit/actions/monthsToMinutes.ts"),d=o("./src/reddit/actions/post.ts"),a=o("./src/reddit/actions/postList.ts"),c=o("./src/reddit/components/TrackingHelper/index.tsx"),l=o("./src/reddit/contexts/PageLayer/index.tsx"),p=o("./src/reddit/helpers/postComponentForLayout/index.tsx"),u=o("./src/reddit/helpers/trackers/post.ts"),m=o("./src/reddit/components/PostList/Placeholder.tsx"),b=o("./src/reddit/featureFlags/index.ts"),f=o("./src/reddit/selectors/listings.ts"),g=o("./src/reddit/selectors/monthsToMinutes.ts"),h=o("./src/reddit/selectors/posts.ts"),v=o("./src/reddit/selectors/subreddit.ts"),y=o("./src/reddit/selectors/tracking.ts");function x(){return Object(l.w)({currentProfileName:l.j,isCommentPermalink:l.y,isCommentsPage:l.z,isFrontpage:l.C,isOriginalPage:l.E,isProfilePostListing:l.M,pageLayer:e=>e})}const O=x(),w={apiError:f.c,apiPending:f.d,m2mIsEnabled:g.u,measureScrollFPS:b.d.measureScrollFPS,layout:(e,t)=>t.forcedLayout||Object(l.O)(e,t),loadMore:f.g,postsById:h.N,postIds:(e,{listingKey:t,listingName:o,inSubredditOrProfile:n})=>Object(h.B)(e,t,o,n),subredditsById:v.L,viewportDataLoaded:y.c,postListPlaceholderComponent:()=>m.a},j=Object(s.createStructuredSelector)(w),S=(e,t)=>({onBottomViewed:(t,o)=>e(a.c(t,o)),adBrandSafetyStatusReceived:t=>{e(r.f({isViewSafe:t}))},openPost:t=>{e(d.v(t))},showM2MTooltip:(t,o,n)=>e(Object(i.v)(t,o,n)),trackOnPostEnteredViewport:(t,o)=>{e(d.x(t))},trackOnPostExitedViewport:(t,o,n)=>{e(d.y(t,n))}}),C=Object(n.connect)(j,S,(e,t,o)=>Object.assign({},e,t,o,{postClickEvent:u.d,postComponentForLayout:p.b}));t.a=(e=>Object(c.b)(O(C(e))))},"./src/reddit/constants/listingSorts.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return r}),o.d(t,"b",function(){return i});var n=o("./src/app/strings/index.ts"),s=o("./src/lib/constants/index.ts");const r={[s.X.BEST]:Object(n.f)("sorts.best"),[s.X.HOT]:Object(n.f)("sorts.hot"),[s.X.NEW]:Object(n.f)("sorts.new"),[s.X.CONTROVERSIAL]:Object(n.f)("sorts.controversial"),[s.X.RISING]:Object(n.f)("sorts.rising"),[s.X.TOP]:Object(n.f)("sorts.top")},i={[s.rc.HOUR]:Object(n.f)("timeSorts.hour"),[s.rc.DAY]:Object(n.f)("timeSorts.day"),[s.rc.WEEK]:Object(n.f)("timeSorts.week"),[s.rc.MONTH]:Object(n.f)("timeSorts.month"),[s.rc.YEAR]:Object(n.f)("timeSorts.year"),[s.rc.ALL]:Object(n.f)("timeSorts.all")}},"./src/reddit/controls/Checkbox/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(i),a=o("./src/reddit/icons/svgs/Checkbox/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},l=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});var p=e=>r.a.createElement("svg",c({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),l("g",{transform:"translate(-32.000000, -173.000000)"},void 0,l("g",{transform:"translate(32.000000, 173.000000)"},void 0,l("path",{d:"M0,3.34755033 C0,1.49874933 1.5032506,0 3.34755033,0 L16.6524497,0 C18.5012507,0 20,1.5032506 20,3.34755033 L20,16.6524497 C20,18.5012507 18.4967494,20 16.6524497,20 L3.34755033,20 C1.49874933,20 0,18.4967494 0,16.6524497 L0,3.34755033 Z M4.5,8.5 C4.22385763,8.5 4,8.72385763 4,9 L4,11 C4,11.2761424 4.22385763,11.5 4.5,11.5 L15.5,11.5 C15.7761424,11.5 16,11.2761424 16,11 L16,9 C16,8.72385763 15.7761424,8.5 15.5,8.5 L4.5,8.5 Z"})))),u=o("./src/reddit/icons/svgs/CheckboxSelected/index.tsx"),m=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),b=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const f=d()(u.a).withConfig({componentId:"d616a3-0"})(["fill: ",";"],e=>Object(m.c)(e).button),g=d()(p).withConfig({componentId:"d616a3-1"})(["fill: ",";"],e=>Object(m.c)(e).button);t.a=d()(e=>{const t=e.isHalfCheckboxSelected?g:e.isCheckboxSelected?f:a.a;return b("button",{"aria-checked":e.isHalfCheckboxSelected?"mixed":e.isCheckboxSelected,className:e.className,onClick:t=>{e.toggleCheckbox&&(t.stopPropagation(),e.toggleCheckbox())}},void 0,b(t,{className:e.className,"data-redditstyle":e.redditStyle}))}).withConfig({componentId:"d616a3-2"})(["height: 16px;width: 16px;"])},"./src/reddit/controls/LayoutSwitch/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),a=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(a),l=o("./src/app/strings/index.ts"),p=o("./src/reddit/components/InfoTextTooltip/index.tsx"),u=o("./src/config.ts"),m=o("./src/higherOrderComponents/asTooltip.tsx"),b=o("./src/reddit/actions/users.ts"),f=o("./src/reddit/controls/Button/index.tsx"),g=o("./src/reddit/controls/Dropdown/index.tsx"),h=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),v=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),y=o("./src/reddit/selectors/user.ts"),x=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const O=c()(g.a).withConfig({componentId:"s1x9jy1z-0"})(['overflow: visible;width: 300px;&:before {transform: translateX(-50%) translateY(-50%) rotate(45deg);top: 0%;left: 17%;height: .75em;width: .75em;content: "";position: absolute;background-color: ',";}"],e=>Object(v.c)(e).body),w=c.a.img.withConfig({componentId:"s1x9jy1z-1"})(["border-radius: 4px 4px 0 0;position: relative;width: 100%;z-index: 2;"]),j=c.a.div.withConfig({componentId:"s1x9jy1z-2"})(["padding: 16px;"]),S=c.a.div.withConfig({componentId:"s1x9jy1z-3"})(["","color: ",";"],h.labelsFont,e=>Object(v.c)(e).bodyText),C=c.a.div.withConfig({componentId:"s1x9jy1z-4"})(["","color: ",";"],h.titleFontH5,e=>Object(v.c)(e).bodyText),I=c.a.div.withConfig({componentId:"s1x9jy1z-5"})(["","color: ",";margin: 8px 0;"],h.metadataFont,e=>Object(v.c)(e).metaText),k=c()(f.d).withConfig({componentId:"s1x9jy1z-6"})(["margin-top: 16px;"]),P=Object(d.createStructuredSelector)({language:y.M}),N=Object(i.connect)(P,e=>({closeTooltip:()=>e(Object(b.l)())}));var _=Object(m.a)(N(e=>x(O,{className:e.className,style:e.style},void 0,x(w,{src:`${u.a.assetPath}/img/layoutWelcomeTooltip/background.png`}),x(j,{},void 0,x(S,{},void 0,Object(l.a)(e.language,"listings.layoutSwitcher.welcomeTooltip.label")),x(C,{},void 0,Object(l.a)(e.language,"listings.layoutSwitcher.welcomeTooltip.title")),x(I,{},void 0,Object(l.a)(e.language,"listings.layoutSwitcher.welcomeTooltip.body")),x(k,{onClick:e.closeTooltip},void 0,Object(l.a)(e.language,"listings.layoutSwitcher.welcomeTooltip.button")))))),T=o("./src/app/actions/tooltip.ts"),L=o("./src/reddit/actions/preferences.ts"),M=o("./src/reddit/constants/postLayout.ts"),A=o("./src/reddit/icons/svgs/ClassicPosts/index.tsx"),E=o("./src/reddit/icons/svgs/CompactPosts/index.tsx"),B=o("./src/reddit/icons/svgs/LargePosts/index.tsx"),F=o("./src/reddit/components/TrackingHelper/index.tsx"),R=o("./src/reddit/contexts/PageLayer/index.tsx"),$=o("./src/reddit/helpers/styles/components/index.tsx"),D=o("./src/reddit/selectors/telemetry.ts"),U=o("./src/reddit/selectors/tooltip.ts"),W=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),H=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 V=c.a.div.withConfig({componentId:"s9hoh6r-0"})(["","color: ",";margin-top: 1px;"],h.labelsFont,e=>Object(v.c)(e).metaText),z=Object($["d"])()`
|
|
fill: ${e=>e.disabled?Object(v.b)(Object(v.c)(e).button):Object(v.c)(e).button};
|
|
height: 20px;
|
|
width: 20px;
|
|
`,q=c()(p.c).withConfig({componentId:"s9hoh6r-1"})(["text-transform: capitalize;"]),G=c()(e=>{e.disabled,e.redditStyle;var t=H(e,["disabled","redditStyle"]);return r.a.createElement(E.a,t)}).withConfig({componentId:"s9hoh6r-2"})(["",""],z),K=c()(e=>{e.disabled,e.redditStyle;var t=H(e,["disabled","redditStyle"]);return r.a.createElement(A.a,t)}).withConfig({componentId:"s9hoh6r-3"})(["",""],z),J=c()(e=>{e.disabled,e.redditStyle;var t=H(e,["disabled","redditStyle"]);return r.a.createElement(B.a,t)}).withConfig({componentId:"s9hoh6r-4"})(["",""],z),X=c.a.div.withConfig({componentId:"s9hoh6r-5"})(["display: flex;margin-left: 12px;"]),Z=c.a.button.withConfig({componentId:"s9hoh6r-6"})(["align-items: center;display: flex;position: relative;& ~ & {margin-left: 4px;}"]),Q=c()(e=>{e.isActive;var t=H(e,["isActive"]);return r.a.createElement(Z,t)}).withConfig({componentId:"s9hoh6r-7"})(["",";"],e=>e.isActive?"outline: none":""),Y=Object(l.f)("listings.layoutSwitcher.label"),ee={card:{id:"layoutSwitch--card",template:Object(l.f)("listings.layoutSwitcher.card")},classic:{id:"layoutSwitch--classic",template:Object(l.f)("listings.layoutSwitcher.classic")},compact:{id:"layoutSwitch--compact",template:Object(l.f)("listings.layoutSwitcher.compact")}},te=Object(R.w)(),oe=Object(d.createStructuredSelector)({language:y.M,layout:R.O,redditStyle:R.D,tooltipId:U.a,isFTUWelcomeTooltipOpen:y.X}),ne=Object(i.connect)(oe,e=>({onListingLayoutChange:(t,o)=>e(Object(L.t)(t,o)),toggleTooltip:t=>e(Object(T.e)({tooltipId:t}))}),(e,t,o)=>Object.assign({},e,t,o,{toggleTooltip:o=>!e.isFTUWelcomeTooltipOpen&&t.toggleTooltip(o)}));t.a=c()(te(ne(Object(F.b)(e=>{const t=e.sendEvent,o=e.subredditId,n=(n,s)=>{const r=M.d[s];e.onListingLayoutChange(r,o),t(e=>({source:"layout_switch",action:"click",noun:n,screen:Object(D.screen)(e),subreddit:Object(D.subreddit)(e)}))};return W("div",{className:e.className,id:"view--layout--FUE"},void 0,W(V,{},void 0,Y(e.language)),W(X,{},void 0,W(Q,{"aria-label":ee.card.template(e.language),"aria-pressed":e.layout===M.f.Large,id:ee.card.id,isActive:e.layout===M.f.Large,onClick:()=>{n(M.c.Card,M.f.Large)},onTouchStart:()=>{n(M.c.Card,M.f.Large)},onMouseEnter:()=>e.toggleTooltip(ee.card.id),onMouseLeave:()=>e.toggleTooltip(ee.card.id)},void 0,W(J,{disabled:e.layout!==M.f.Large,onClick:e.layout!==M.f.Large?e.onLayoutClick:void 0,redditStyle:e.redditStyle})),W(q,{tooltipId:ee.card.id,text:ee.card.template(e.language)}),W(Q,{"aria-label":ee.classic.template(e.language),"aria-pressed":e.layout===M.f.Classic,id:ee.classic.id,isActive:e.layout===M.f.Classic,onClick:()=>{n(M.c.Classic,M.f.Classic)},onTouchStart:()=>{n(M.c.Classic,M.f.Classic)},onMouseEnter:()=>e.toggleTooltip(ee.classic.id),onMouseLeave:()=>e.toggleTooltip(ee.classic.id)},void 0,W(K,{disabled:e.layout!==M.f.Classic,onClick:e.layout!==M.f.Classic?e.onLayoutClick:void 0,redditStyle:e.redditStyle}),W(q,{tooltipId:ee.classic.id,text:ee.classic.template(e.language)})),W(Q,{"aria-label":ee.compact.template(e.language),"aria-pressed":e.layout===M.f.Compact,id:ee.compact.id,isActive:e.layout===M.f.Compact,onClick:()=>{n(M.c.Compact,M.f.Compact)},onTouchStart:()=>{n(M.c.Compact,M.f.Compact)},onMouseEnter:()=>e.toggleTooltip(ee.compact.id),onMouseLeave:()=>e.toggleTooltip(ee.compact.id)},void 0,W(G,{disabled:e.layout!==M.f.Compact,onClick:e.layout!==M.f.Compact?e.onLayoutClick:void 0,redditStyle:e.redditStyle}),W(q,{tooltipId:ee.compact.id,text:ee.compact.template(e.language)}))),W(_,{isOpen:e.isFTUWelcomeTooltipOpen,tooltipId:"view--layout--FUE"}))})))).withConfig({componentId:"s9hoh6r-8"})(["align-items: center;display: flex;padding: 10px 16px 10px 0;"])},"./src/reddit/controls/MetaData/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return p}),o.d(t,"b",function(){return u}),o.d(t,"d",function(){return b}),o.d(t,"c",function(){return f});o("./node_modules/react/index.js");var n,s=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(s),i=o("./src/app/strings/index.ts"),d=o("./src/lib/prettyPrintNumber/index.ts"),a=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 r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const p=r.a.span.withConfig({componentId:"h5svje-0"})(["","color: ",";"],a.metadataFont,e=>Object(c.c)(e).metaText),u=()=>l(p,{},void 0," · "),m=Object(i.e)("comment.point"),b=(e,t,o)=>{const n=t?Object(i.a)(o,"comment.hiddenScorePlain"):m(o,e,{count:Object(d.b)(e)});return l(p,{},void 0,n)},f=(e,t)=>{const o=Object(i.d)(t,"posts.comments.noun",e,{count:Object(d.b)(e)});return l(p,{},void 0,o)}},"./src/reddit/endpoints/governance/wallet.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return i}),o.d(t,"b",function(){return d});var n=o("./src/config.ts"),s=(o("./src/lib/bigNumberUtils/percent.ts"),o("./src/lib/constants/index.ts")),r=o("./src/reddit/endpoints/governance/requester.ts");function i(e,t){return Object(r.a)(e,{endpoint:`${n.a.metaUrl}/wallets/${t.subredditId}/me`,method:s.jb.GET}).then(e=>{if(e.ok){const o=e.body,n={[t.subredditId]:o};return Object.assign({},e,{body:n})}return e})}function d(e,t){return Object(r.a)(e,{headers:{"X-HTTP-Method-Override":"GET"},endpoint:`${n.a.metaUrl}/wallets/${t.subredditId}`,method:s.jb.POST,data:t.userIds}).then(e=>e.ok?Object.assign({},e,{body:{wallets:e.body}}):e)}},"./src/reddit/helpers/brandSafety/index.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return s});var n=o("./src/reddit/models/WhitelistStatus/index.ts");const s=(e,t)=>{const o=e.some(e=>e.isNSFW),s=t.some(e=>e.wls===n.a.NO_ADS);return!o&&!s}},"./src/reddit/helpers/createBannerProperties/index.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return i});var n=o("./src/lib/isFakeSubreddit/index.ts"),s=o("./src/reddit/constants/postLayout.ts");const r=Math.floor(100*Math.random());var i;!function(e){e.FIRST="first",e.MIDDLE="middle",e.BOTTOM="bottom"}(i||(i={}));t.b=((e,t,o,i,d)=>{const a={subreddit_screen:!1,logged_in:!!t.account,placement:e,platform:"redesign",full_url:o,layout:s.a[t.prefs.layout]};return i&&!Object(n.a)(i.name)&&(a.subreddit=i.name,a.subreddit_screen=!0),a.wls=6,a.whitelist_status="all_ads",a.percentage=a.random_number=r,d&&(a.position=d),a})},"./src/reddit/helpers/getClickInfo.ts":function(e,t,o){"use strict";t.a=(e=>({hasNewTabModifier:!(!e.metaKey&&!e.ctrlKey&&1!==e.button)}))},"./src/reddit/helpers/postComponentForLayout/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./src/lib/logs/console.ts"),d=o("./node_modules/react-redux/es/index.js"),a=o("./node_modules/reselect/lib/index.js"),c=o("./src/reddit/actions/post.ts"),l=o("./src/reddit/components/AdViewability/index.tsx"),p=o("./src/reddit/selectors/posts.ts"),u=o("./src/lib/classNames/index.ts"),m=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});var b=Object(d.connect)(()=>Object(a.createStructuredSelector)({post:p.D}),e=>({onPostViewable:(t,o)=>e(Object(c.z)(t,o))}))(({className:e,post:t,onPostViewable:o})=>t.isSponsored?m(l.a,{onViewable:e=>o(t,e),children:m("div",{className:Object(u.a)(e,`Blank ${t.id}`)}),trackVideoMetrics:!1}):null),f=o("./src/reddit/components/ClassicPost/index.tsx"),g=o("./src/reddit/components/CompactPost/index.tsx"),h=o("./src/reddit/components/LargePost/index.tsx"),v=o("./src/reddit/components/MediumPost/index.tsx"),y=o("./src/reddit/constants/postLayout.ts"),x=o("./src/reddit/models/Media/index.ts");o.d(t,"a",function(){return w}),o.d(t,"b",function(){return S});const O={[y.f.Large]:h.a,[y.f.Medium]:v.b,[y.f.Classic]:f.c,[y.f.Compact]:g.a},w=e=>r.a.createElement(b,e),j=e=>!e.media||e.media.type===x.m.EMBED&&!(x.b.has(e.media.provider)||(e=>e.source&&e.source.url&&e.source.url.startsWith("https://www.mcdonalds.com")&&e.isSponsored)(e));function S(e,t,o){if(e.isBlank)return w;t===y.f.Large&&j(e)&&(t=y.f.Medium);const n=O[t];return void 0===n?(Object(i.a)(void 0,`Could not find component for layout ${t}.`),w):o&&e.isSponsored&&t===y.f.Large?v.b:n}},"./src/reddit/helpers/styles/mixins/responsive.ts":function(e,t,o){"use strict";o.d(t,"b",function(){return s}),o.d(t,"a",function(){return r});var n=o("./src/reddit/constants/screenWidths.ts");const s=`\n @media (max-width: ${n.i-1}px) {\n display: none;\n }\n`,r=`\n @media (min-width: ${n.i}px) {\n display: none;\n }\n`;n.b,n.b,n.e,n.e},"./src/reddit/helpers/trackers/banners.ts":function(e,t,o){"use strict";o.d(t,"d",function(){return n}),o.d(t,"c",function(){return s}),o.d(t,"b",function(){return r}),o.d(t,"a",function(){return i});const n=(e,t)=>o=>({source:"banner",action:e,noun:t}),s=e=>t=>({source:"announcement",noun:"announcement",action:"view",liveThread:{id:e,isAnnouncement:!0}}),r=e=>t=>({source:"announcement",noun:"announcement",action:"dismiss",liveThread:{id:e,isAnnouncement:!0}}),i=e=>t=>({source:"announcement",noun:"announcement",action:"click",liveThread:{id:e,isAnnouncement:!0}})},"./src/reddit/helpers/trackers/discoveryUnit.ts":function(e,t,o){"use strict";o.d(t,"c",function(){return m}),o.d(t,"a",function(){return f}),o.d(t,"d",function(){return h}),o.d(t,"q",function(){return y}),o.d(t,"r",function(){return x}),o.d(t,"i",function(){return O}),o.d(t,"l",function(){return w}),o.d(t,"m",function(){return j}),o.d(t,"f",function(){return S}),o.d(t,"p",function(){return C}),o.d(t,"e",function(){return I}),o.d(t,"g",function(){return k}),o.d(t,"h",function(){return P}),o.d(t,"j",function(){return N}),o.d(t,"k",function(){return _}),o.d(t,"s",function(){return T}),o.d(t,"b",function(){return L}),o.d(t,"n",function(){return M}),o.d(t,"o",function(){return A});var n=o("./src/reddit/constants/tracking.ts"),s=o("./src/reddit/helpers/correlationIdTracker.ts"),r=o("./src/reddit/helpers/trackers/navigation.ts"),i=o("./src/reddit/models/DiscoveryUnit/index.ts"),d=o("./src/reddit/selectors/posts.ts"),a=o("./src/reddit/selectors/telemetry.ts"),c=o("./src/reddit/selectors/widgets.ts"),l=o("./src/telemetry/index.ts");const p="discovery_unit",u=(e,t)=>Object.assign({},a.defaults(e),{source:p,screen:a.screen(e),discoveryUnit:{id:t.id,type:"listing",title:t.title,name:t.unitName}}),m=(e,t)=>Object.assign({},u(e,t),{source:"global",action:"view",noun:"discovery_unit"}),b=(e,t)=>Object.assign({},a.defaults(e),{correlationId:Object(s.c)(s.a.SearchResults),screen:a.screen(e),noun:"search_result_discovery_unit",post:t?a.post(e,t):null,discoveryUnit:{name:i.h,id:"xd_72",type:"listing"}}),f=(e,t)=>{Object(l.a)(m(e,t))},g=(e,t,o)=>"unitName"in t?u(e,t):((e,t,o)=>Object.assign({},a.defaults(e),{source:"search",screen:a.screen(e),search:o?Object.assign({},a.search(e,o),{structureType:a.StructureType.Trending}):null,discoveryUnit:{id:t.name,type:"listing",title:t.layout.title,name:t.name}}))(e,t,o),h=(e,t,o,n)=>Object.assign({},g(e,t,n),{action:"view",noun:"item_post",post:a.post(e,o)}),v=e=>({displayQuery:decodeURIComponent(e.searchQuery),rawQuery:e.rawQuery?decodeURIComponent(e.rawQuery):void 0,structureType:a.StructureType.Trending}),y=(e,t)=>{const o=t.post?t.post.id:void 0;Object(l.a)(Object.assign({},b(e,o),{metaSearch:v(t),source:"search",action:"click"}))},x=(e,t)=>{const o=t.post?t.post.id:void 0;Object(l.a)(Object.assign({},b(e,o),{metaSearch:v(t),source:"search",action:"view"}))},O=(e,t,o,n)=>{Object(l.a)(h(e,t,o,n))},w=(e,t,o,n)=>{const s=g(e,t,n);Object(l.a)(Object.assign({},s,Object(c.b)(e,o),{action:"view",noun:"item_subreddit"}))},j=(e,t,o)=>{Object(l.a)(Object.assign({},u(e,t),{source:p,action:n.b.CLICK,noun:"title_category",subreddit:{categoryName:Object(r.e)(o)}}))},S=(e,t,o,s)=>{const r=g(e,t,s);Object(l.a)(Object.assign({},r,{source:p,action:n.b.CLICK,noun:"item_post",post:a.post(e,o)}))},C=()=>e=>t=>({source:"search",action:n.b.CLICK,noun:"item_post",post:a.post(t,e),search:{structureType:a.StructureType.Trending}}),I=e=>t=>o=>Object.assign({},e?u(o,e):{},{source:p,action:n.b.CLICK,noun:"item_post",post:a.post(o,t)}),k=(e,t,o,s)=>{const r=Object(d.b)(e,{postId:o}),i=r?Object(c.b)(e,r):void 0,u=g(e,t,s);Object(l.a)(Object.assign({},u,i,{source:p,action:n.b.CLICK,noun:"item_post_subreddit",post:a.post(e,o)}))},P=(e,t)=>o=>s=>{const r=Object(d.b)(s,{postId:t}),i=r?Object(c.b)(s,r):void 0,l=g(s,e);return Object.assign({},l,i,{source:p,action:n.b.CLICK,noun:o?"item_post_subreddit_unsubscribe":"item_post_subreddit_subscribe",post:a.post(s,t)})},N=(e,t,o)=>{Object(l.a)(Object.assign({},u(e,t),Object(c.b)(e,o),{source:p,action:n.b.CLICK,noun:"item_subreddit"}))},_=(e,t)=>o=>s=>Object.assign({},u(s,e),Object(c.b)(s,t),{source:p,action:n.b.CLICK,noun:o?"item_subreddit_unsubscribe":"item_subreddit_subscribe"}),T=(e,t,o)=>{const s=g(e,t);Object(l.a)(Object.assign({},s,Object(c.b)(e,o),{source:"search",action:n.b.CLICK,noun:"search_result_discovery_unit_subreddit"}))},L=(e,t,o)=>{const s=g(e,t);Object(l.a)(Object.assign({},s,Object(c.b)(e,o),{source:p,action:n.b.CLICK,noun:"footer_subreddit"}))},M=(e,t,o)=>{Object(l.a)(Object.assign({},u(e,t),Object(c.b)(e,o),{source:p,action:n.b.CLICK,noun:"title_subreddit"}))},A=(e,t)=>o=>s=>Object.assign({},u(s,e),Object(c.b)(s,t),{source:p,action:n.b.CLICK,noun:o?"title_subreddit_unsubscribe":"title_subreddit_subscribe"})},"./src/reddit/helpers/trackers/idCard.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return d}),o.d(t,"b",function(){return a}),o.d(t,"c",function(){return c});var n=o("./src/reddit/constants/tracking.ts"),s=o("./src/reddit/selectors/telemetry.ts"),r=o("./src/reddit/selectors/widgets.ts"),i=o("./src/telemetry/index.ts");const d=e=>{Object(i.a)(Object.assign({},s.defaults(e),{action:n.b.CLICK,noun:"multi_detail",source:"id_card"}))},a=(e,t,o)=>{var d=Object(r.b)(e,t);const a=d.subreddit,c=d.profile;Object(i.a)(Object.assign({},s.defaults(e),{action:n.b.CLICK,noun:"multi_detail_subreddit",profile:c,source:"id_card",subreddit:Object.assign({},a,{categoryName:o})}))},c=e=>t=>({action:n.b.CLICK,source:"id_card",noun:e?"enable_community_styles":"disable_community_styles",subreddit:s.subreddit(t)})},"./src/reddit/helpers/trackers/modHub.ts":function(e,t,o){"use strict";o.d(t,"b",function(){return r}),o.d(t,"c",function(){return i}),o.d(t,"a",function(){return d});var n=o("./src/reddit/selectors/telemetry.ts");const s=e=>({screen:n.screen(e),subreddit:n.subreddit(e),userSubreddit:n.userSubreddit(e)}),r=e=>t=>Object.assign({source:"mod_hub_nav",action:"click",noun:e},s(t)),i=()=>e=>Object.assign({source:"breadcrumb",action:"click",noun:"subreddit"},s(e)),d=()=>e=>Object.assign({source:"id_card",action:"click",noun:"mod_hub_nav"},s(e))},"./src/reddit/helpers/trackers/modOnboarding.ts":function(e,t,o){"use strict";o.d(t,"c",function(){return n}),o.d(t,"b",function(){return s}),o.d(t,"a",function(){return r}),o.d(t,"d",function(){return i}),o.d(t,"e",function(){return d});const n=()=>e=>({source:"mod_edu",action:"view",noun:"banner_post"}),s=()=>e=>({source:"mod_edu_banner",action:"click",noun:"close"}),r=()=>e=>({source:"mod_edu",action:"click",noun:"create_post_link"}),i=e=>t=>({source:"mod_edu_widget",action:"click",noun:e}),d=e=>e=>({source:"mod_edu",action:"view",noun:"widget"})},"./src/reddit/helpers/trackers/providers.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return s}),o.d(t,"b",function(){return r}),o.d(t,"c",function(){return i});var n=o("./src/reddit/selectors/telemetry.ts");const s=()=>e=>Object.assign({source:"oauth_patreon",action:"click",noun:"connect_community"},n.defaults(e)),r=()=>e=>Object.assign({source:"oauth_patreon",action:"click",noun:"create_community"},n.defaults(e)),i=()=>e=>Object.assign({source:"sidebar",action:"click",noun:"patreon_link"},n.defaults(e))},"./src/reddit/helpers/trackers/subredditWiki.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return r}),o.d(t,"b",function(){return i});var n=o("./src/reddit/selectors/telemetry.ts");const s=e=>({subreddit:n.subreddit(e),userSubreddit:n.userSubreddit(e)}),r=()=>e=>Object.assign({source:"wiki",action:"click",noun:"edit"},s(e)),i=()=>e=>Object.assign({source:"menu_links_bar",action:"click",noun:"wiki"},s(e))},"./src/reddit/icons/fonts/Expandos/Arrows/Collapse/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(s),i=o("./src/reddit/icons/fonts/helpers.tsx"),d=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const a=r()(e=>d("i",{className:`${Object(i.b)("expandoArrowCollapse")} ${e.className}`,onClick:e.onClick,title:e.title})).withConfig({componentId:"s20zmlh-0"})(["display: inline-block;vertical-align: middle;font-size: 14px;font-weight: 400;line-height: 14px;"]);t.a=a},"./src/reddit/icons/fonts/Expandos/Arrows/Expand/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(s),i=o("./src/reddit/icons/fonts/helpers.tsx"),d=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const a=r()(e=>d("i",{className:`${Object(i.b)("expandoArrowExpand")} ${e.className}`,onClick:e.onClick,title:e.title})).withConfig({componentId:"m2byoz-0"})(["display: inline-block;vertical-align: middle;font-size: 14px;font-weight: 400;line-height: 14px;"]);t.a=a},"./src/reddit/icons/svgs/Chevron/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(s),i=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),d=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=r()(e=>d("svg",{className:e.className,viewBox:"0 0 9 14",xmlns:"http://www.w3.org/2000/svg"},void 0,d("g",{transform:"translate(-6.000000, -3.000000)"},void 0,d("polygon",{fill:"none",points:"0 20 20 20 20 0 0 0"}),d("polygon",{fill:"inherit",points:"7.47566213 3 14.4756621 10 7.47566213 17 6 15.5239203 11.5239203 10 6 4.47566213"})))).withConfig({componentId:"tdibv2-0"})(["fill: ",";"],e=>Object(i.c)(e).actionIcon)},"./src/reddit/icons/svgs/ChevronDown/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>s("svg",{className:e.className,viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",onClick:e.onClick},void 0,s("g",{},void 0,s("polygon",{fill:"inherit",points:"11.0584 4.0602 6.0292 9.0894 1 4.0602 2.0608 3 6.0292 6.9684 9.9982 3"}))))},"./src/reddit/icons/svgs/CircleCheck/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>s("svg",{className:e.className,viewBox:"0 0 21 21",xmlns:"http://www.w3.org/2000/svg"},void 0,s("path",{d:"M20.5 10.5C20.5 16.0228 16.0228 20.5 10.5 20.5C4.97715 20.5 0.5 16.0228 0.5 10.5C0.5 4.97715 4.97715 0.5 10.5 0.5C16.0228 0.5 20.5 4.97715 20.5 10.5ZM9.35975 14.8725L15.2398 8.71852L15.2418 8.72352C15.5868 8.36252 15.5868 7.77752 15.2418 7.41752C14.8968 7.05752 14.3388 7.05752 13.9938 7.41752L8.73675 12.9175L7.00675 11.1075C6.66175 10.7475 6.10375 10.7465 5.75875 11.1075C5.41375 11.4685 5.41375 12.0535 5.75875 12.4135L8.11175 14.8735C8.28475 15.0535 8.50975 15.1435 8.73675 15.1435C8.85356 15.143 8.96904 15.1187 9.07615 15.0721C9.18326 15.0256 9.27975 14.9576 9.35975 14.8725Z",fill:"inherit"})))},"./src/reddit/icons/svgs/ClassicPosts/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},d=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r.a.createElement("svg",i({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),d("path",{fill:"inherit",d:"M1.75,6.60294118 L1.75,1.75 L18.25,1.75 L18.25,6.60294118 L1.75,6.60294118 Z M1.75,12.4264706 L1.75,7.57352941 L18.25,7.57352941 L18.25,12.4264706 L1.75,12.4264706 Z M1.75,18.25 L1.75,13.3970588 L18.25,13.3970588 L18.25,18.25 L1.75,18.25 Z"})))},"./src/reddit/icons/svgs/CompactPosts/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},d=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r.a.createElement("svg",i({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),d("path",{fill:"inherit",d:"M1.75,4.95149254 L1.75,1.75 L18.25,1.75 L18.25,4.95149254 L1.75,4.95149254 Z M1.75,9.38432836 L1.75,6.18283582 L18.25,6.18283582 L18.25,9.38432836 L1.75,9.38432836 Z M1.75,18.25 L1.75,15.0485075 L18.25,15.0485075 L18.25,18.25 L1.75,18.25 Z M1.75,13.8171642 L1.75,10.6156716 L18.25,10.6156716 L18.25,13.8171642 L1.75,13.8171642 Z"})))},"./src/reddit/icons/svgs/DiscoveryUnitArrow/index.m.less":function(e,t,o){e.exports={alienBlue:"_3t9arP5eM3zZ3uRMfsrQrx",black:"_3BHhTG19-Bx-GwEHkRpaPT",rect:"Me2ew63ptrCQr1mobGNee",white:"_2GSTksf31wbm95D_Em9_cA"}},"./src/reddit/icons/svgs/GovSmall/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>s("svg",{className:e.className,viewBox:"0 0 16 14",xmlns:"http://www.w3.org/2000/svg"},void 0,s("g",{},void 0,s("path",{d:"M8.5,0.2l6.2,3c0.5,0.3,0.6,0.9,0.3,1.4C14.9,4.8,14.6,5,14.2,5H1.8c-0.6,0-1-0.4-1-1 c0-0.4,0.2-0.7,0.5-0.9l6.2-3C7.9,0,8.1,0,8.5,0.2z"}),s("path",{d:"M2,12h12c0.6,0,1,0.4,1,1l0,0c0,0.6-0.4,1-1,1H2c-0.6,0-1-0.4-1-1l0,0C1,12.4,1.4,12,2,12z"}),s("path",{d:"M3.8,6h0.5C4.7,6,5,6.3,5,6.8v3.5C5,10.7,4.7,11,4.2,11H3.8C3.3,11,3,10.7,3,10.3V6.8C3,6.3,3.3,6,3.8,6z"}),s("path",{d:"M7.8,6h0.5C8.7,6,9,6.3,9,6.8v3.5C9,10.7,8.7,11,8.2,11H7.8C7.3,11,7,10.7,7,10.3V6.8 C7,6.3,7.3,6,7.8,6z"}),s("path",{d:"M11.8,6h0.5C12.7,6,13,6.3,13,6.8v3.5c0,0.4-0.3,0.8-0.8,0.8h-0.5c-0.4,0-0.8-0.3-0.8-0.8V6.8 C11,6.3,11.3,6,11.8,6z"}))))},"./src/reddit/icons/svgs/Info/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>s("svg",{className:e.className,style:e.style,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,s("g",{},void 0,s("path",{d:"M10,8.5 C10.553,8.5 11,8.948 11,9.5 L11,13.5 C11,14.052 10.553,14.5 10,14.5 C9.447,14.5 9,14.052 9,13.5 L9,9.5 C9,8.948 9.447,8.5 10,8.5 Z M10.7002,5.79 C10.8012,5.89 10.8702,6 10.9212,6.12 C10.9712,6.24 11.0002,6.37 11.0002,6.5 C11.0002,6.57 10.9902,6.63 10.9802,6.7 C10.9712,6.76 10.9502,6.82 10.9212,6.88 C10.9002,6.94 10.8702,7 10.8302,7.05 C10.7902,7.11 10.7502,7.16 10.7002,7.21 C10.6602,7.25 10.6102,7.29 10.5512,7.33 C10.5002,7.37 10.4402,7.4 10.3812,7.42 C10.3202,7.45 10.2612,7.47 10.1902,7.48 C10.1312,7.49 10.0602,7.5 10.0002,7.5 C9.7402,7.5 9.4802,7.39 9.2902,7.21 C9.1102,7.02 9.0002,6.77 9.0002,6.5 C9.0002,6.37 9.0302,6.24 9.0802,6.12 C9.1312,5.99 9.2002,5.89 9.2902,5.79 C9.5202,5.56 9.8702,5.46 10.1902,5.52 C10.2612,5.53 10.3202,5.55 10.3812,5.58 C10.4402,5.6 10.5002,5.63 10.5512,5.67 C10.6102,5.71 10.6602,5.75 10.7002,5.79 Z M10,16 C6.691,16 4,13.309 4,10 C4,6.691 6.691,4 10,4 C13.309,4 16,6.691 16,10 C16,13.309 13.309,16 10,16 M10,2 C5.589,2 2,5.589 2,10 C2,14.411 5.589,18 10,18 C14.411,18 18,14.411 18,10 C18,5.589 14.411,2 10,2"}))))},"./src/reddit/icons/svgs/LargePosts/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},d=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r.a.createElement("svg",i({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),d("path",{fill:"inherit",d:"M1.75,9.375 L1.75,1.75 L18.25,1.75 L18.25,9.375 L1.75,9.375 Z M1.75,18.25 L1.75,10.625 L18.25,10.625 L18.25,18.25 L1.75,18.25 Z"})))},"./src/reddit/icons/svgs/Notify/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(s),i=o("./src/reddit/constants/colors.ts"),d=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=r()(e=>a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -1 23 20",className:e.className},void 0,a("g",{fillRule:"evenodd"},void 0,a("polygon",{fill:"none",points:"0 20 20 20 20 .001 0 .001"}),a("path",{fill:"inherit",d:"M17.0066821,15.4208756 C17.3661858,15.7881442 17.1117467,16.4167476 16.6028685,16.4167476 L3.3720345,16.4167476 C2.86361308,16.4167476 2.60871716,15.7881442 2.9682209,15.4208756 L2.99106104,15.3975421 C3.81467634,14.5561376 4.27741749,13.4146649 4.27741749,12.2246585 L4.27741749,8.19170369 C4.27741749,5.37768868 6.24806442,3.03500952 8.85595115,2.52214012 C8.85275353,2.48713993 8.84544468,2.45307308 8.84544468,2.41667289 C8.84544468,1.77266945 9.35660693,1.25 9.98745148,1.25 C10.618296,1.25 11.1294583,1.77266945 11.1294583,2.41667289 C11.1294583,2.45307308 11.1221494,2.48713993 11.1189518,2.52214012 C13.7268385,3.03500952 15.6974855,5.37768868 15.6974855,8.19170369 L15.6974855,12.2246585 C15.6974855,13.4146649 16.1602266,14.5561376 16.9838419,15.3975421 L17.0066821,15.4208756 Z M9.98754284,18.75 C9.05109727,18.75 8.24758128,18.1736636 7.89492959,17.3499925 L12.0801561,17.3499925 C11.7275044,18.1736636 10.9239884,18.75 9.98754284,18.75 Z"}),a("circle",{cx:"18",cy:"3",r:"5",fill:e.isUnread?"white":"none"}),a("circle",{cx:"18",cy:"3",r:"4",fill:e.isUnread?i.a.orangered:"none"})))).withConfig({componentId:"s1nbyhx2-0"})(["fill: ",""],e=>Object(d.c)(e).actionIcon)},"./src/reddit/icons/svgs/Twitter/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return r});o("./node_modules/react/index.js");var n,s=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});function r(e){return s("svg",{className:e.className,viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg"},void 0,s("path",{fill:"inherit",d:"M153.62,301.59c94.34,0,145.94-78.16,145.94-145.94,0-2.22,0-4.43-.15-6.63A104.36,104.36,0,0,0,325,122.47a102.38,102.38,0,0,1-29.46,8.07,51.47,51.47,0,0,0,22.55-28.37,102.79,102.79,0,0,1-32.57,12.45,51.34,51.34,0,0,0-87.41,46.78A145.62,145.62,0,0,1,92.4,107.81a51.33,51.33,0,0,0,15.88,68.47A50.91,50.91,0,0,1,85,169.86c0,.21,0,.43,0,.65a51.31,51.31,0,0,0,41.15,50.28,51.21,51.21,0,0,1-23.16.88,51.35,51.35,0,0,0,47.92,35.62,102.92,102.92,0,0,1-63.7,22A104.41,104.41,0,0,1,75,278.55a145.21,145.21,0,0,0,78.62,23"}))}},"./src/reddit/layout/threeCol/ExpandCenter/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,s=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(s),i=o("./src/higherOrderComponents/warnOnChildrenCount/index.tsx"),d=o("./src/reddit/helpers/styles/components/index.tsx"),a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const c=r()(Object(d.a)()).withConfig({componentId:"s1akftvf-0"})(["flex: 0 0 ",";"],e=>e.width?`${e.width}px`:""),l=r.a.div.withConfig({componentId:"s1akftvf-1"})(["flex: 1 1 100%;width: 100%;"]),p=r()(Object(d.a)()).withConfig({componentId:"s1akftvf-2"})(["flex: 0 0 ",";"],e=>e.width?`${e.width}px`:"");t.a=r()(Object(i.a)(e=>a("div",{className:e.className},void 0,a(c,{width:e.widthLeft},void 0,Array.isArray(e.children)&&e.children[0]),a(l,{},void 0,Array.isArray(e.children)&&e.children[1]),a(p,{width:e.widthRight},void 0,Array.isArray(e.children)&&e.children[2])),3)).withConfig({componentId:"s1akftvf-3"})(["display: flex;flex-direction: row;"])},"./src/reddit/layout/twoCol/ExpandRight/index.tsx":function(e,t,o){"use strict";var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(i),a=o("./src/higherOrderComponents/warnOnChildrenCount/index.tsx"),c=o("./src/reddit/helpers/styles/components/index.tsx"),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},p=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),u=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 m=d()(Object(c.a)()).withConfig({componentId:"zqnwn3-0"})(["flex: 0 0 ",";margin-right: ",";"],e=>e.width?`${e.width}px`:"",({gutter:e})=>`${e||0}px`),b=d.a.div.withConfig({componentId:"zqnwn3-1"})(["flex: 1 1 100%;overflow: hidden;width: 100%;"]);t.a=d()(Object(a.a)(e=>{const t=e.className,o=e.children,n=e.widthLeft,s=e.gutter,i=u(e,["className","children","widthLeft","gutter"]);return r.a.createElement("div",l({className:t},i),p(m,{width:n,gutter:s},void 0,Array.isArray(o)&&o[0]),p(b,{},void 0,Array.isArray(o)&&o[1]))},2)).withConfig({componentId:"zqnwn3-2"})(["display: flex;flex-direction: row;"])},"./src/reddit/pages/Subreddit/index.m.less":function(e,t,o){e.exports={duHeader:"otZ2uDhYTr1YmgF32ArRm"}},"./src/reddit/pages/Subreddit/index.tsx":function(e,t,o){"use strict";o.r(t);var n=o("./src/higherOrderComponents/makeAsync.tsx"),s=o("./src/app/strings/index.ts"),r=o("./src/lib/loadWithRetries/index.ts"),i=o("./node_modules/lodash/fromPairs.js"),d=o.n(i),a=o("./node_modules/react/index.js"),c=o.n(a),l=o("./node_modules/react-redux/es/index.js"),p=o("./node_modules/reselect/lib/index.js"),u=o("./bundled-modules/styled-components/styled-components.min.js"),m=o.n(u),b=o("./src/lib/extractQueryParams/index.ts"),f=o("./src/lib/isAdHocMultireddit/index.ts"),g=o("./src/lib/isFakeSubreddit/index.ts"),h=o("./src/lib/listingSort/index.ts"),v=o("./src/lib/makeListingKey/index.ts"),y=o("./src/lib/objectSelector/index.ts"),x=o("./src/lib/constants/index.ts"),O=o("./src/lib/fastdom/index.ts"),w=o("./src/lib/performanceTimings/index.tsx"),j=o("./src/reddit/actions/subreddit.ts"),S=o("./src/reddit/components/AccountCompleteness/index.tsx"),C=o("./src/reddit/components/MultiredditSidebar/index.tsx"),I=o("./src/reddit/contexts/PageLayer/index.tsx"),k=o("./src/reddit/selectors/multireddit.ts"),P=o("./src/reddit/selectors/user.ts");const N=Object(I.w)(),_=Object(p.createStructuredSelector)({language:P.M,multireddit:k.a,onboardingCategory:I.f,subredditCategory:I.n});var T,L=N(Object(l.connect)(_)(e=>c.a.createElement(C.b,e))),M=o("./src/reddit/components/CategoriesNavigation/index.tsx"),A=o("./src/reddit/components/ContentGate/index.tsx"),E=o("./src/lib/localStorageAvailable/index.ts"),B=o("./src/reddit/actions/toaster.ts"),F=o("./src/reddit/components/TrackingHelper/index.tsx"),R=o("./src/reddit/components/Translated/index.tsx");!function(e){e.STYLES_ENTRY_BANNER="styles_entry_banner",e.CREATE_POST_BANNER="create_post_banner"}(T||(T={}));var $,D=o("./src/reddit/controls/Button/index.tsx"),U=o("./src/reddit/helpers/localStorage/index.ts"),W=o("./src/reddit/helpers/trackers/modOnboarding.ts"),H=($="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var s=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&s)for(var i in s)void 0===t[i]&&(t[i]=s[i]);else t||(t=s||{});if(1===r)t.children=n;else if(r>1){for(var d=Array(r),a=0;a<r;a++)d[a]=arguments[a+3];t.children=d}return{$$typeof:$,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),V=e=>H("svg",{viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",className:e.className},void 0,H("g",{transform:"translate(1 1)",fill:"inherit",stroke:"inherit",fillRule:"evenodd"},void 0,H("rect",{x:"16",y:"35",width:"22.4",height:"2.8",rx:"1.4",stroke:"none"}),H("path",{d:"M20.4 34.08h3.96c.372 0 .727-.147.99-.41l11.32-11.32a1.398 1.398 0 0 0 0-1.98l-3.96-3.96a1.398 1.398 0 0 0-1.98 0L19.41 27.73c-.263.263-.41.618-.41.99v3.96a1.4 1.4 0 0 0 1.4 1.4"}),H("circle",{strokeWidth:"2",fill:"none",cx:"27",cy:"27",r:"27"}))),z=o("./src/reddit/icons/svgs/Close/index.tsx"),q=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),G=o("./src/reddit/models/Toast/index.ts"),K=o("./src/reddit/components/CreatePostBanner/index.m.less"),J=o.n(K),X=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Z=m.a.div.withConfig({componentId:"ch5ant-0"})(["background-color: ",";border: 1px solid ",";."," {fill: ",";stroke: ",";}.",", ."," {color: ",";}."," {fill: ",";}"],e=>Object(q.c)(e).body,e=>Object(q.c)(e).postLine,J.a.postIcon,e=>Object(q.c)(e).button,e=>Object(q.c)(e).button,J.a.heading,J.a.text,e=>Object(q.c)(e).titleText,J.a.close,e=>Object(q.c)(e).actionIcon);var Q=Object(l.connect)(null,(e,{language:t})=>({showToast:()=>{e(Object(B.e)({kind:G.b.SuccessCommunity,text:Object(s.a)(t,"postCreation.modBanner.dismissed")}))}}))(Object(F.b)(class extends c.a.Component{constructor(e){super(e),this.closeBanner=(()=>{Object(U.v)(T.CREATE_POST_BANNER,!0,this.props.subreddit.id),this.setState({visible:!1}),this.props.showToast(),this.props.sendEvent(Object(W.b)())}),this.createPost=(()=>{this.props.sendEvent(Object(W.a)())}),this.state={visible:!1}}componentDidMount(){this.onUpdate()}componentDidUpdate(){this.onUpdate()}onUpdate(){const e=this.props.subreddit,t=Object(E.a)()&&!Object(U.b)(T.CREATE_POST_BANNER,e.id);t!==this.state.visible&&(this.props.sendEvent(Object(W.c)()),this.setState({visible:t}))}render(){const e=this.props.subreddit;return this.state.visible?X(Z,{className:J.a.banner},void 0,X("button",{className:J.a.closeContainer,onClick:this.closeBanner},void 0,X(z.a,{className:J.a.close})),X(V,{className:J.a.postIcon}),X("div",{className:J.a.heading},void 0,X(R.a,{msgId:"postCreation.modBanner.title",replacements:{displayText:e.displayText}})),X("div",{className:J.a.text},void 0,X(R.a,{msgId:"postCreation.modBanner.description"}),X("div",{},void 0,X(R.a,{msgId:"postCreation.modBanner.subdescription"}))),X("div",{className:J.a.buttonWrapper},void 0,X(D.e,{className:J.a.button,target:"_blank",href:`/${e.displayText}/submit`,onClick:this.createPost},void 0,X(R.a,{msgId:"postCreation.modBanner.button"})))):null}})),Y=o("./node_modules/lodash/memoize.js"),ee=o.n(Y),te=o("./node_modules/react-router-dom/es/index.js"),oe=o("./src/reddit/components/DiscoveryUnit/Layout/index.tsx"),ne=o("./src/reddit/components/DiscoveryUnit/Layout/PostsCarousel/index.tsx"),se=o("./src/reddit/components/Widgets/Base/index.tsx"),re=o("./src/reddit/helpers/styles/components/index.tsx"),ie=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),de=o("./src/reddit/helpers/trackers/discoveryUnit.ts"),ae=o("./src/reddit/constants/experiments.ts"),ce=o("./src/reddit/helpers/chooseVariant/index.ts");const le=e=>Object(P.D)(e)||ae.K.ShowTopContent===Object(ce.b)(e,{experimentEligibilitySelector:ce.a,experimentName:ae.J});var pe=o("./src/reddit/selectors/subreddit.ts"),ue=o("./src/reddit/components/DiscoveryUnit/Community/index.m.less"),me=o.n(ue),be=o("./src/reddit/components/DiscoveryUnit/Layout/index.m.less"),fe=o.n(be),ge=o("./src/reddit/components/DiscoveryUnit/SubredditTopContentDiscoveryUnit/index.m.less"),he=o.n(ge),ve=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const ye=m()(Object(re.a)()).withConfig({componentId:"s1016fph-0"})(["","."," {max-height: 380px;}."," {max-width: 300px;}."," {","}."," {padding-bottom: ","px;}"],oe.b,fe.a.container,me.a.textContainer,me.a.name,e=>e.shouldUseSmallCardLayout?ie.titleFontH5:ie.titleFontH3,he.a.community,e=>e.shouldUseSmallCardLayout?6:0),xe=m()(se.a).withConfig({componentId:"s1016fph-1"})(["color: ",";margin-top: 16px;"],e=>Object(q.c)(e).linkText);var Oe=Object(l.connect)(()=>Object(p.createStructuredSelector)({inSubredditTopContentExperiment:le,language:P.M,subredditUrl:pe.c}),e=>({trackPostView:ee()((t,o,n)=>e((e,s)=>de.i(s(),t,o,n)),({id:e},t)=>`${e}-${t}`)}))(e=>{const t=e.inSubredditTopContentExperiment,o=e.subredditUrl,n=e.topContent;if(!t||!n)return null;const r=n.postIds,i=n.range,d=`${o}${x.X.TOP}?t=${i}`,a=ve(xe,{},void 0,ve(te.a,{className:he.a.headerLink,to:d},void 0,Object(s.a)(e.language,"discoveryUnits.topContentLast",{range:i})));return ve(ye,{className:e.className,shouldUseSmallCardLayout:!0},void 0,ve(oe.a,{header:a,hidePadding:!0},void 0,ve(ne.a,{discoveryUnit:e.discoveryUnit,searchDiscoveryUnit:e.searchDiscoveryUnit,isLoading:!1,items:r,searchOptions:e.searchOptions,showSubreddit:!0,showTopPosts:!0,singleSubredditMode:!0,onPostView:e.trackPostView})))}),we=o("./src/reddit/components/EmptySubreddit.tsx"),je=o("./src/reddit/components/FrontpageSidebar/index.tsx");var Se=Object(n.a)({ErrorComponent:()=>null,LoadingComponent:()=>null,getComponent:()=>o.e("GovernanceVotingBanner").then(o.bind(null,"./src/reddit/components/Governance/VotingBanner/index.tsx")).then(e=>e.default)}),Ce=o("./src/reddit/components/HeaderImage/index.tsx"),Ie=o("./src/reddit/components/InfoBanners/QuarantinedSubredditBanner/index.tsx"),ke=o("./src/reddit/components/LayoutNavigation/index.tsx"),Pe=o("./src/reddit/components/ListingPostList/index.tsx"),Ne=o("./src/reddit/components/SearchDiscoveryUnits/DiscoveryUnitHeader/index.tsx"),_e=o("./src/reddit/components/SearchDiscoveryUnits/TrendingPostsDiscoveryUnit/Placeholder/index.tsx"),Te=o("./node_modules/lodash/values.js"),Le=o.n(Te),Me=o("./src/reddit/components/StructuredStyles/StyledComponents/forms.ts"),Ae=o("./src/reddit/constants/componentSizes.ts"),Ee=o("./src/reddit/constants/zIndex.ts"),Be=o("./src/reddit/helpers/styles/mixins/loading.ts"),Fe=o("./src/reddit/icons/svgs/Chevron/index.tsx"),Re=o("./src/reddit/selectors/moderatorPermissions.ts"),$e=o("./src/reddit/selectors/structuredStyles.ts"),De=o("./src/reddit/selectors/userPrefs.ts"),Ue=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),We=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 He=m.a.div.withConfig({componentId:"snzyar-0"})(["background-color: ",";width: ","px;box-sizing: border-box;box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08);height: 100%;overflow: auto;position: fixed;left: 0;top: 0;z-index: ",";"],e=>Object(q.c)(e).body,Ae.b,Ee.f),Ve=m()(e=>{e.isEditing,e.isSubscriptionsPinned;var t=We(e,["isEditing","isSubscriptionsPinned"]);return c.a.createElement("div",t)}).withConfig({componentId:"snzyar-1"})(["position: relative;margin-left: ","px;"],e=>e.isSubscriptionsPinned?Ae.b-Ae.H:Ae.b),ze=m()(z.a).withConfig({componentId:"snzyar-2"})(["position: absolute;top: 18px;right: 12px;height: 16px;width: 16px;fill: ",";"],e=>Object(q.c)(e).actionIcon),qe=m.a.div.withConfig({componentId:"snzyar-3"})(["border-bottom: 2px solid ",";margin-bottom: 8px;padding-bottom: 8px;"],e=>Object(q.c)(e).line),Ge=m()(e=>{e.gradientType,e.isLoading;var t=We(e,["gradientType","isLoading"]);return c.a.createElement("div",t)}).withConfig({componentId:"snzyar-4"})(["","height: 22px;width: 100%;"],Be.b),Ke=m.a.div.withConfig({componentId:"snzyar-5"})(["align-items: center;border-bottom: 1px solid ",";justify-content: space-between;display: flex;"],e=>Object(q.c)(e).line),Je=m.a.div.withConfig({componentId:"snzyar-6"})(["","height: 20px;margin-bottom: 12px;margin-top: 12px;width: 125px;"],Be.b),Xe=m.a.div.withConfig({componentId:"snzyar-7"})(["","height: 20px;margin-bottom: 12px;margin-top: 12px;width: 75px;"],Be.b),Ze=m()(Fe.a).withConfig({componentId:"snzyar-8"})(["fill: ",";height: 16px;width: 16px;"],e=>Object(q.c)(e).actionIcon),Qe=e=>{var t=e.language,o=We(e,["language"]);return Ue(He,{},void 0,Ue(ze,{}),Ue(Me.k,{},void 0,Ue(Me.p,{},void 0,Object(s.a)(t,"structuredStyles.forms.main.title")),Ue(Me.o,{},void 0,Ue(qe,{},void 0,c.a.createElement(Ge,o)),Ue(Ke,{},void 0,c.a.createElement(Je,o),Ue(Ze,{})),Ue(Ke,{},void 0,c.a.createElement(Xe,o),Ue(Ze,{})),Ue(Ke,{},void 0,c.a.createElement(Je,o),Ue(Ze,{})),Ue(Ke,{},void 0,c.a.createElement(Xe,o),Ue(Ze,{})),Ue(Ke,{},void 0,c.a.createElement(Je,o),Ue(Ze,{})))))},Ye=Object(n.a)({getComponent:()=>Object(r.a)(()=>Promise.all([o.e("vendors~GiftsEditProfile~GiftsGiftCreation~GiftsGiftEdit~GiftsShipping~HarbergerTaxManageModal~Moder~43e8895f"),o.e("PartnerSubredditConnection~StructuredStyles"),o.e("StructuredStyles")]).then(o.bind(null,"./src/reddit/components/StructuredStyles/BladeDrawer/index.tsx"))).then(e=>e.default),ErrorComponent:({language:e})=>Ue(Qe,{gradientType:"posts",isLoading:!1,language:e}),LoadingComponent:({language:e})=>Ue(Qe,{gradientType:"posts",isLoading:!0,language:e})}),et=Object(p.createStructuredSelector)({isEditing:$e.i,isSubscriptionsPinned:De.b,language:P.M,moderatorPermissions:Re.g});var tt=Object(l.connect)(et)(e=>{const t=e.moderatorPermissions&&Le()(e.moderatorPermissions).some(e=>e);return e.moderatorPermissions&&t&&e.isEditing?Ue(Ve,{isEditing:e.isEditing,isSubscriptionsPinned:e.isSubscriptionsPinned},void 0,e.children,Ue(Ye,{language:e.language,subredditId:e.subredditId})):Ue(a.Fragment,{},void 0,e.children)}),ot=o("./src/reddit/components/SubredditNav/index.tsx"),nt=o("./src/reddit/components/SubredditSidebar/index.tsx"),st=o("./src/reddit/constants/listings.ts"),rt=o("./src/reddit/constants/page.ts"),it=o("./src/reddit/constants/parameters.ts"),dt=o("./src/reddit/constants/postLayout.ts"),at=o("./src/reddit/helpers/getSubredditErrorProps/index.ts"),ct=o("./src/reddit/helpers/trackers/screenview.ts"),lt=o("./src/reddit/layout/page/Listing/index.tsx"),pt=o("./src/reddit/models/ModeratingSubreddits/index.ts"),ut=o("./src/reddit/selectors/experiments/exploreV2.ts"),mt=o("./src/reddit/selectors/experiments/trending.ts"),bt=o("./src/reddit/selectors/listings.ts"),ft=o("./src/reddit/selectors/meta.ts"),gt=o("./src/reddit/selectors/monthsToMinutes.ts"),ht=o("./src/reddit/selectors/posts.ts"),vt=o("./src/reddit/pages/Subreddit/index.m.less"),yt=o.n(vt),xt=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},Ot=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,s){var r=t&&t.defaultProps,i=arguments.length-3;if(o||0===i||(o={}),o&&r)for(var d in r)void 0===o[d]&&(o[d]=r[d]);else o||(o=r||{});if(1===i)o.children=s;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];o.children=a}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const wt=5,jt=m()(nt.a).withConfig({componentId:"s1udue21-0"})(["width: inherit;"]),St=Object(I.w)(),Ct=Object(p.createStructuredSelector)({contentGateInfo:(e,t)=>Object(P.e)(e,t.match.params.subredditName)}),It=Object(y.a)(Object(p.createSelector)((e,{location:t})=>t.search,e=>d()([...Object(b.a)(e)]))),kt=Object(p.createSelector)((e,{match:t})=>t.params.subredditName,(e,{match:t})=>t.params.sort,It,(e,t,o)=>{let n=t;return!n&&Object(g.a)(e)&&(n=x.X.HOT),Object(v.a)(e,n,o)}),Pt=Object(p.createStructuredSelector)({subreddit:(e,t)=>Object(pe.v)(e,{subredditName:t.match.params.subredditName})}),Nt=Object(p.createStructuredSelector)({countryMeta:ft.a,geopopular:P.l}),_t=Object(p.createStructuredSelector)({isLoggedIn:P.F}),Tt=Object(y.a)((e,t)=>{const o=Pt(e,t).subreddit,n=t.match.params.subredditName;if(o){const s=kt(e,t),r=Object(Re.a)(pt.b.config)(e,{subredditId:o.id}),i=Object(ht.B)(e,s,n,!0),d=!Object(bt.d)(e,{listingKey:s});if(r&&d&&i.length<=1)return!0}return!1}),Lt=Object(p.createStructuredSelector)({exploreV2Variant:(e,t)=>{if(Object(I.H)(e,t))return Object(ut.a)(e)},isPopular:I.H,isInTrendingEntrypointExperiment:mt.a}),Mt=Object(y.a)((e,t)=>{var o=t.match.params;const n=o.sort,s=o.subredditName,r=It(e,t);if(n)return Object(h.b)({sort:n,timeSort:(e=>{const t=it.s in e&&e[it.s].toUpperCase();if("string"==typeof t&&t in x.rc)return x.rc[t]})(r)});if(Object(g.a)(s))return Object(h.b)({sort:x.X.HOT});const i=kt(e,t),d=e.listings.postOrder.listingSort[i];if(d&&!d.hasChanged)return Object(h.d)(d.sort);const a=Pt(e,t).subreddit;if(a){const t=Object(pe.w)(e,{subredditId:a.id});return Object(h.d)(t)}return Object(h.d)(e.user.prefs.sort)}),At=Object(y.a)((e,t)=>{const o=t.match.params.subredditName;return Object(pe.J)(e,{subredditName:o})}),Et=Object(p.createStructuredSelector)({language:P.M,listingKey:kt,sortParams:Mt,topContent:At}),Bt=Object(l.connect)(()=>Object(p.createSelector)(Tt,P.R,Ct,Nt,I.O,It,Pt,_t,(e,{match:t})=>t.params.subredditName,Lt,gt.w,Et,(e,t,{contentGateInfo:o},{countryMeta:n,geopopular:s},r,i,{subreddit:d},{isLoggedIn:a},c,{exploreV2Variant:l,isInTrendingEntrypointExperiment:p,isPopular:u},m,{language:b,listingKey:f,sortParams:{sort:g,timeSort:h},topContent:v})=>{const y=n||x.x.Everywhere,O=s||y;return{showCreatePostBanner:e,contentGateInfo:o,countrySort:it.f in i?i[it.f].toUpperCase():O,exploreV2Variant:l,isLoggedIn:a,isInTrendingEntrypointExperiment:p,isPopular:u,language:b,layout:r,listingKey:f,renderNSFWContentGate:d&&d.isNSFW&&!t,showAccountCompletenessInFeed:m,sort:g,subreddit:d,subredditName:c,timeSort:h,topContent:v}}),(e,t)=>({onLoadMorePosts:()=>e(j.r({sort:t.match.params.sort,subredditName:t.match.params.subredditName}))})),Ft=Object(n.a)({ErrorComponent:()=>null,getComponent:()=>Object(r.a)(()=>Promise.all([o.e("Explore~Trending"),o.e("Trending")]).then(o.bind(null,"./src/reddit/components/SearchDiscoveryUnits/TrendingPostsDiscoveryUnit/index.tsx"))).then(e=>e.default),LoadingComponent:({showCardView:e})=>Ot(_e.a,{showCardView:!!e})});t.default=St(Bt(class extends c.a.Component{componentDidMount(){O.a.read(()=>{Object(w.d)(w.c.Subreddit,this.props.isLoggedIn)})}render(){var e=this.props;const t=e.showCreatePostBanner,o=e.contentGateInfo,n=e.countrySort,r=e.exploreV2Variant,i=e.isInTrendingEntrypointExperiment,d=e.isPopular,a=e.layout,l=e.language,p=e.listingKey,u=e.match,m=e.renderNSFWContentGate,b=e.sort,h=e.showAccountCompletenessInFeed,v=e.subreddit,y=e.subredditName,x=e.timeSort,O=e.topContent,w=y.toLowerCase(),j=`/r/${y}`,C={listingKey:p,listingName:w};let I;Object(g.a)(y)?I=Object(f.a)(y)?c.a.createElement(L,C):c.a.createElement(je.a,C):v&&(I=c.a.createElement(jt,xt({},C,{subredditId:v.id,subredditName:y})));const k=Object(at.a)(o,m,y);if(k)return c.a.createElement(A.b,k);const P=a===dt.f.Large,N=d&&i,_=v?v.id:void 0,T=!u.params.sort&&O&&!O.isSubscribed&&O.postIds&&O.postIds.length>=wt;return Ot(tt,{subredditId:_},void 0,Ot(lt.d,{subredditId:_,className:this.props.className,fitPageToContent:!0,navBar:!Object(g.a)(y)&&c.a.Children.toArray([Ot(Ce.a,{headerText:v?v.name:y,disableFullscreen:P,subredditOrProfile:v,url:j}),Ot(ot.a,{homeUrl:j,disableFullscreen:P,subredditId:_})]),trendingUnit:N&&Ot(Ft,{showCardView:this.props.layout===dt.f.Large},"trendingPostsDiscoveryUnit"),contentNavBar:Ot(c.a.Fragment,{},void 0,r&&Ot(M.a,{baseUrl:st.c[rt.e.Explore],category:rt.e.Popular}),Ot(ke.a,{countrySort:n,sort:b,baseUrl:j,subredditId:_,timeSort:x})),content:Ot(c.a.Fragment,{},void 0,v&&v.isQuarantined&&Ot(Ie.a,{subredditName:y}),v&&t&&Ot(Q,{subreddit:v,language:l,listingKey:p,listingName:w}),h&&Ot(S.a,{}),N&&Ot(Ne.a,{className:yt.a.duHeader},void 0,Object(s.a)(l,"discoveryUnits.popularPosts")),T&&Ot(Oe,{subredditName:v?v.name:y,topContent:O}),Ot(Pe.a,{listingKey:p,listingName:w,listingViewed:(e,t)=>Object(ct.c)(p,b,t,e,x),noPostsComponent:()=>Ot(we.a,{listingName:w,sort:b,subreddit:v||void 0}),onLoadMore:this.props.onLoadMorePosts,inSubredditOrProfile:!Object(g.a)(y)}),Ot(Se,{})),sidebar:I}))}}))},"./src/reddit/selectors/brandSafety.ts":function(e,t,o){"use strict";o.d(t,"c",function(){return d}),o.d(t,"a",function(){return a}),o.d(t,"d",function(){return c}),o.d(t,"b",function(){return l});var n=o("./src/lib/isFakeSubreddit/index.ts"),s=o("./src/reddit/models/WhitelistStatus/index.ts"),r=o("./src/reddit/selectors/posts.ts"),i=o("./src/reddit/selectors/subreddit.ts");const d=e=>e.brandSafety.hasBrandSafetyBeenAssessed,a=(e,{postId:t})=>{const o=Object(r.D)(e,{postId:t}),n=Object(r.O)(e,{postId:t});return!(!o||!n)&&(n.wls===s.a.ALL_ADS&&!o.isNSFW)},c=e=>!e.brandSafety.isViewSafe,l=(e,{listingName:t,listingKey:o})=>{const r=Object(i.v)(e,{subredditName:t});return!(e=>/\[sort:'(new|rising|controversial)'\]/.test(e))(o)&&(!(r||!Object(n.a)(t))||!!r&&r.wls===s.a.ALL_ADS)}},"./src/reddit/selectors/experiments/followPost.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return r}),o.d(t,"c",function(){return i}),o.d(t,"b",function(){return d});var n=o("./src/reddit/constants/experiments.ts"),s=o("./src/reddit/helpers/chooseVariant/index.ts");const r=e=>Object(s.b)(e,{experimentEligibilitySelector:s.a,experimentName:n.o}),i=e=>e===n.p.FollowPostTooltip,d=e=>e===n.p.FollowPostTooltipHover},"./src/reddit/selectors/tracking.ts":function(e,t,o){"use strict";o.d(t,"c",function(){return d}),o.d(t,"b",function(){return a}),o.d(t,"a",function(){return c});var n=o("./node_modules/lodash/without.js"),s=o.n(n),r=o("./src/lib/constants/index.ts"),i=o("./src/lib/makeSearchKey/index.ts");const d=(e,{listingKey:t})=>e.tracking.viewportDataLoaded[t],a=(e,{listingKey:t})=>e.tracking.viewportDataLoaded[Object(i.b)(t,[r.kc.Posts])],c=(e,{listingKey:t,searchOptions:o})=>{const n=Object(i.b)(t,s()(o.type,r.kc.Posts));return e.tracking.viewportDataLoaded[n]}},"./src/reddit/selectors/widgets.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return c}),o.d(t,"j",function(){return l}),o.d(t,"c",function(){return p}),o.d(t,"h",function(){return u}),o.d(t,"d",function(){return m}),o.d(t,"e",function(){return b}),o.d(t,"i",function(){return f}),o.d(t,"g",function(){return g}),o.d(t,"f",function(){return h}),o.d(t,"b",function(){return v});var n=o("./src/lib/objectSelector/index.ts"),s=o("./src/reddit/constants/posts.ts"),r=o("./src/reddit/helpers/name/index.ts"),i=o("./src/reddit/models/Widgets/index.ts"),d=o("./src/reddit/selectors/profile.ts"),a=o("./src/reddit/selectors/subreddit.ts");const c=e=>e.widgets.models,l=Object(n.a)((e,t)=>Object(i.p)(t)?e.widgets.models[t.widgetId]:Object(i.j)(t.widgetKind)),p=(e,t)=>{let o=t.subredditId;if(!o&&t.subredditName&&(o=Object(a.z)(e,t.subredditName)),o){const t=((e,t)=>e.widgets.idCardIds[t.subredditId])(e,{subredditId:o});if(t)return e.widgets.models[t]}return null},u=(e,t)=>e.widgets.sidebar[t.subredditId]||[],m=(e,t)=>e.widgets.menuIds[t.subredditId],b=(e,t)=>{const o=m(e,t);return o?e.widgets.models[o]:null},f=(e,t)=>{return e.widgets.sidebar[t.subredditId].reduce((t,o)=>{const n=e.widgets.models[o];return n&&t.push(n.kind),t},[])},g=(e,t)=>{const o=u(e,t);for(const n of o){const t=e.widgets.models[n];if("subreddit-rules"===t.kind)return t}return null},h=(e,t)=>{const o=u(e,t).map(t=>e.widgets.models[t]).filter(e=>"post-flair"===e.kind);return o.length?o:null},v=Object(n.a)((e,t)=>{if(t.type===s.a.PROFILE){const o=Object(d.h)(e,{profileName:t.name});return o?{profile:{id:o.id,name:Object(r.f)(o.name)}}:{}}const o=Object(a.v)(e,{subredditName:t.name});return{subreddit:{categoryName:Object(a.s)(e,{subredditName:t.name}).contentCategory,id:o.id,name:Object(r.f)(o.name)}}})}}]);
|
|
//# sourceMappingURL=Subreddit.b7b3d989efe3f1cca373.js.map
|