configs/walls/Frontpage.40c49732aae82fbafeca.js
2019-03-12 13:36:46 -05:00

6 lines
209 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["Frontpage"],{"./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/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 f}),o.d(t,"i",function(){return g}),o.d(t,"j",function(){return b});const n="#24A0ED",s="#000",r="#FFF",i="#FF4500",d="#CCCCCA",a="#A5A4A4",c="#222",l="#EA0027",p="#5F99CF",u="#0079d3",m="#F7FBFD",f="#545452",g="#222",b="#C6C6C6"},"./src/lib/partOfDay/index.ts":function(e,t,o){"use strict";var n;o.d(t,"a",function(){return r}),function(e){e.morning="morning",e.afternoon="afternoon",e.evening="evening",e.night="night"}(n||(n={}));const s=[{startHour:22,dayPart:n.night},{startHour:18,dayPart:n.evening},{startHour:12,dayPart:n.afternoon},{startHour:7,dayPart:n.morning},{startHour:0,dayPart:n.night}],r=()=>(e=>{const t=s.find(t=>e.getHours()>=Number(t.startHour));return t&&t.dayPart||s[s.length-1].dayPart})(new Date)},"./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/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"),f=o("./src/lib/objectSelector/index.ts"),g=o("./src/reddit/helpers/createBannerProperties/index.ts"),b=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 y=c.a.div.withConfig({componentId:"s127g5g-0"})(["position: relative;"]),v=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 w 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(y,{"data-slot":o},void 0,h(v,{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})}}w.defaultProps={sizes:[p.f]};t.a=Object(i.connect)(()=>Object(d.createStructuredSelector)({properties:Object(f.a)((e,t)=>{const o=e.platform.currentPage;if(!o)return{};const n=`${e.meta.protocol}://${e.meta.domain}`;return Object(g.b)(t.placement,e.user,Object(l.a)(`${n}${o.url}`,o.queryParams),Object(b.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):""}}))(w)},"./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"),f=o("./src/reddit/contexts/PageLayer/index.tsx"),g=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),b=o("./src/reddit/selectors/category.ts"),h=o("./src/reddit/selectors/experiments/exploreV2.ts"),y=o("./src/reddit/selectors/user.ts"),v=o("./node_modules/lodash/isEqual.js"),x=o.n(v),w=o("./node_modules/react-motion/lib/react-motion.js"),O=o("./src/app/strings/index.ts"),S=o("./src/reddit/components/TrackingHelper/index.tsx"),j=o("./src/reddit/constants/listings.ts"),C=o("./src/reddit/constants/page.ts"),k=o("./src/reddit/controls/InternalLink/index.tsx"),I=o("./src/reddit/helpers/name/index.ts"),P=o("./src/reddit/helpers/trackers/navigation.ts"),L=o("./src/reddit/icons/svgs/Dropdown/index.tsx"),N=o("./src/reddit/actions/category.ts"),T=o("./src/reddit/components/CategoriesNavigation/Categories/index.m.less"),_=o.n(T),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}});var E=Object(i.connect)(()=>{const e=Object(b.c)();return Object(d.createStructuredSelector)({language:y.M,subreddits:(t,{category:o})=>e(t,{categoryName:Object(I.f)(o.name)})})},(e,{category:t})=>({loadSubredditsAndNavigate:()=>e(N.i(t.id))}))(Object(S.b)(class extends r.a.Component{constructor(){super(...arguments),this.sendClickEvent=(()=>{this.props.sendEvent(Object(P.a)(Object(I.f)(this.props.category.name)))}),this.handleButtonClick=(()=>{this.sendClickEvent(),this.props.loadSubredditsAndNavigate()})}render(){const e=this.props.category;return r.a.createElement("span",{className:_.a.item,ref:this.props.innerRef},A(k.a,{className:Object(l.a)(_.a.link,this.props.isActive&&_.a.linkActive),to:`${j.c[C.e.Explore]}/${Object(I.f)(e.name)}`,onMouseDown:this.sendClickEvent},void 0,e.name))}}));class M 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)(_.a.container,this.props.className),ref:this.setContainerRef},this.props.children)}}var F=o("./node_modules/raf/index.js"),B=o.n(F);class $ 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&&B.a.cancel(this.frame),this.frame=B()(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 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}}}();const D=300,H=24,U={x:0},z=Object(a.css)(["."," {background-color: ",";}."," {fill: ",";}."," {color: ",";}"],_.a.arrow,e=>Object(g.c)(e).body,_.a.arrowIcon,e=>Object(g.c)(e).navIcon,_.a.link,e=>Object(g.c)(e).bodyText),W=e=>R("div",{className:Object(l.a)(_.a.arrow,e.className),onClick:e.onClick},void 0,R(L.b,{className:_.a.arrowIcon}));var V=Object(S.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(I.f)(e.name),o=t===Object(I.f)(this.props.category||"");return R(E,{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 R(M,{className:this.props.className,innerRef:this.setContainerRef,scrollLeft:e.x},void 0,r.a.createElement("span",{className:_.a.item,ref:t?this.setActiveRef:void 0},R(k.a,{className:Object(l.a)(_.a.link,t?_.a.linkActive:""),onMouseDown:this.sendAllCategoriesClickEvent,to:this.props.baseUrl},void 0,Object(O.a)(this.props.language,"categories.all"))),Object(h.d)(this.props.exploreV2Variant)&&r.a.createElement("span",{className:_.a.item,ref:o?this.setActiveRef:void 0},R(k.a,{className:Object(l.a)(_.a.link,o?_.a.linkActive:""),onMouseDown:this.sendPopularClickEvent,to:j.c[C.e.Popular]},void 0,Object(O.a)(this.props.language,"subscriptions.popular"))),this.props.categories.map(this.renderCategory),this.state.showLeftArrow&&R(W,{className:_.a.arrowLeft,onClick:this.handleLeftArrowClick}),this.state.showRightArrow&&R(W,{className:_.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+H)}else if(o<e){const t=e-o;this.scrollTo(this.state.scrollLeft-t-H)}}render(){return 0===this.props.categories.length?null:R(r.a.Fragment,{},void 0,R(w.Motion,{defaultStyle:U,style:{x:Object(w.spring)(this.state.scrollLeft)}},void 0,this.renderContent),R($,{onResize:this.handleResize}))}}),K=o("./src/reddit/components/CategoriesNavigation/index.m.less"),q=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 G=c()(u.a).withConfig({componentId:"yfrzu-0"})(["",";border-bottom: 1px solid ",";border-top: 1px solid ",";"],z,e=>Object(g.c)(e).line,e=>Object(g.c)(e).line),J=Object(d.createStructuredSelector)({categories:b.e,exploreV2Variant:h.a,isLoggedIn:y.F,language:y.M,layout:f.O}),Z=Object(i.connect)(J),Q=Object(f.w)({isExplore:f.A,pageLayer:e=>e});t.a=Q(Z(e=>{if(e.isLoggedIn)return null;return X(G,{className:Object(l.a)(q.a.container,e.className,Object(p.a)(q.a,{showFPR:!1,showSuspended:!1})),considerPinnedSubscriptions:!1,considerSidebar:!1,render:()=>{const t=X(V,{baseUrl:e.baseUrl,categories:e.categories,category:e.category,exploreV2Variant:e.exploreV2Variant,language:e.language});return e.isExplore&&e.layout===m.f.Classic?X("div",{className:q.a.categoriesContainer},void 0,t):t}})}))},"./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"),f=o("./node_modules/reselect/lib/index.js"),g=o("./src/reddit/components/TrackingHelper/index.tsx"),b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},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 y=Object(f.createStructuredSelector)({isLoggedIn:m.F,language:m.M}),v=Object(r.connect)(y,e=>({openLoginModal:()=>e(Object(d.i)(a.a.REGISTER_MODAL_ID))}));t.a=v(Object(g.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,b({},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/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/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/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"),f=o("./src/reddit/constants/postLayout.ts"),g=o("./src/reddit/constants/screenWidths.ts"),b=o("./src/reddit/controls/Button/index.tsx"),h=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),y=o("./src/reddit/selectors/user.ts"),v=o("./src/reddit/components/PostList/Placeholder.tsx"),x=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),w=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var 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="\n margin: 16px;\n",S=c.a.div.withConfig({componentId:"rqdrsd-0"})(["","","color: ",";"],O,h.titleFontH3,e=>Object(x.c)(e).bodyText),j=c.a.div.withConfig({componentId:"rqdrsd-1"})(["","","color: ",";"],O,h.titleFontH5,e=>Object(x.c)(e).bodyText),C=c.a.div.withConfig({componentId:"rqdrsd-2"})(["position: relative;width: 100%;height: 100%;"]),k=c.a.div.withConfig({componentId:"rqdrsd-3"})(["width: 80%;margin: 80px auto;"]),I=c()(v.a).withConfig({componentId:"rqdrsd-4"})(["position: absolute;left: 0;width: 100%;top: 0;background: none;opacity: 0.4;"]),P=c()(b.f).withConfig({componentId:"rqdrsd-5"})(["","display: inline-block;@media (max-width: ","px) {align-self: stretch;}"],O,g.e-1),L=c.a.img.withConfig({componentId:"rqdrsd-6"})(["height: 147px;width: 140px;"]),N=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,g.e-1),T=Object(d.createStructuredSelector)({language:y.M}),_=Object(i.connect)(T),A=({language:e,listingName:t,sort:o})=>w(k,{},void 0,w(S,{},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([w(j,{},void 0,o===u.X.RISING&&Object(l.a)(e,"listings.emptySubredditRising.secondary"),o!==u.X.RISING&&Object(l.a)(e,"listings.emptySubreddit.secondary")),w(P,{to:`/r/${t}/submit`},void 0,Object(l.a)(e,"listings.emptySubreddit.callToAction"))])),E=e=>w(k,{},void 0,w(L,{src:`${p.a.assetPath}/img/snoo_discovery@1x.png`}),w(S,{},void 0,Object(l.a)(e.language,"listings.emptyHomepage.primary")),w(P,{to:"/r/popular"},void 0,Object(l.a)(e.language,"listings.emptyHomepage.callToAction")));t.a=c()(_(e=>w(N,{},void 0,w(I,{isLoading:!1,layout:f.f.Classic}),w(C,{},void 0,e.subreddit?r.a.createElement(A,e):r.a.createElement(E,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,g.e-1)},"./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"),f=o("./src/reddit/components/Widgets/ThemedWidget/index.tsx"),g=o("./src/reddit/controls/Button/index.tsx"),b=o("./src/reddit/icons/svgs/Premium/index.tsx"),h=o("./src/reddit/components/PremiumCTA/index.m.less"),y=o.n(h),v=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var 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()(g.c).withConfig({componentId:"mwgtia-0"})(["padding: 0;"]);var w=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 v(m.a,{},void 0,v(f.a,{className:t,contentOnly:!0},void 0,v("div",{className:y.a.wrapper},void 0,v(b.a,{className:y.a.icon}),v("div",{className:y.a.content},void 0,v("div",{className:y.a.title},void 0,Object(a.a)(o,"gold.premiumCTA.title")),v("div",{className:y.a.description},void 0,Object(a.a)(o,"gold.premiumCTA.description"))),v(x,{className:y.a.cta,onClick:n},void 0,Object(a.a)(o,"gold.premiumCTA.cta")))))}}),O=o("./src/reddit/components/SidebarAd/ListingPageSidebarAd.tsx"),S=o("./src/reddit/components/SidebarContainer/index.tsx"),j=o("./src/reddit/components/SidebarStickyBottom/index.tsx"),C=o("./src/reddit/actions/post.ts"),k=o("./src/reddit/components/MiniPost/index.tsx"),I=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 L=class extends r.a.Component{render(){return P("div",{},void 0,P(I.a,{},void 0,this.props.headerText),this.props.posts.map(e=>P(k.b,{postId:e.id},e.id)))}},N=o("./src/reddit/helpers/overlay/index.ts"),T=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),_=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),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}}}();const E=Object(i.connect)(null,(e,t)=>({openLightbox:t=>()=>e(Object(N.a)(t.permalink)),clearLinks:()=>e(Object(C.l)())})),M=u.a.button.withConfig({componentId:"s1ux9zf5-0"})(["","color: ",";text-align: right;width: 100%;"],T.metadataFont,e=>Object(_.c)(e).actionIcon);var F=E(class extends r.a.Component{render(){return A(I.c,{},void 0,A(L,{className:this.props.className,headerText:Object(a.a)(this.props.language,"sidebar.recentPosts"),language:this.props.language,posts:this.props.posts}),A(M,{onClick:this.props.clearLinks},void 0,Object(a.a)(this.props.language,"posts.clear")))}}),B=o("./src/reddit/selectors/posts.ts"),$=o("./src/reddit/selectors/user.ts"),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}}}();const D=Object(d.createStructuredSelector)({language:$.M,recentPosts:B.L});var H=Object(i.connect)(D,(e,t)=>({openLightbox:t=>()=>e(Object(N.a)(t.permalink))}))(({className:e,recentPosts:t,language:o})=>t&&t.length?R(m.a,{},void 0,R(F,{className:e,language:o,headerText:Object(a.a)(o,"sidebar.recentPosts"),posts:t})):null),U=o("./src/reddit/components/Widgets/Aggregate/Subreddits/index.tsx"),z=o("./src/reddit/constants/tracking.ts"),W=o("./src/reddit/selectors/telemetry.ts"),V=o("./src/reddit/selectors/widgets.ts"),K=o("./src/telemetry/models/Subreddit.ts");const q=e=>t=>o=>Object.assign({},W.defaults(o),Object(V.b)(o,e),{source:"trending_community_card",action:z.b.CLICK,noun:Object(K.getSubscribeEventNoun)(e.type,t)}),X=e=>t=>Object.assign({},W.defaults(t),Object(V.b)(t,e),{source:"trending_community_card",action:z.b.CLICK,noun:"community"});var G=o("./src/reddit/selectors/subreddit.ts"),J=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:G.O,currentUser:$.j,language:$.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(S.a,{className:o},void 0,Q(c.d,{listingName:r}),Q(O.a,{placement:J.d.ABOVE_THE_FOLD,listingName:r,listingKey:s,position:Z.a.FIRST,sizes:J.j,placementIndex:e++}),oe(this.props)&&Q(w,{language:n}),ee(this.props)&&Q(m.a,{},void 0,Q(U.b,{getClickEventFactory:X,getSubscribeEventFactoryHandler:q,subredditIds:i,title:Object(a.a)(n,"sidebar.trending.title")})),te(this.props)&&Q(H,{}),Q(j.a,{adComponent:Q(O.a,{placement:J.d.BELOW_THE_FOLD,listingName:r,listingKey:s,position:Z.a.BOTTOM,sizes:J.p,placementIndex:e++})}))}})},"./src/reddit/components/HeroStories/HeroItem/MetaLine/index.m.less":function(e,t,o){e.exports={container:"_2SKa4TTX6sEmnJfV0O6joj"}},"./src/reddit/components/HeroStories/HeroItem/Thumbnail/index.m.less":function(e,t,o){e.exports={container:"_2PEugEpCjwdrGhDpWxgPL5",linkIcon:"yrw7qAzAOwGs1v3PfZRXr",backgroundContainer:"_3HUZ1gjPtZfTmrPzKQhn06"}},"./src/reddit/components/HeroStories/HeroItem/index.m.less":function(e,t,o){e.exports={heroItem:"_1GglzDtp0gY6-kQxwvgkqc",postContainer:"_147ZfeB29KtWH_TI773myn",heroItemBackgroundWrapper:"dXbtHGOyoErideVczSihW",titleWrapper:"w4Gf8nWsTO8KvD1r3rQQh",contentWrapper:"h9bU5OTtGgIZiuYusNJvg",flatList:"_3B8nWIH_q3VcPji3ZxWCbc"}},"./src/reddit/components/HeroStories/Placeholder/index.m.less":function(e,t,o){e.exports={container:"CU5IwofwL-aMmEyKElEvJ",contentContainer:"_3Coh0PKJ--JZZKih9y7mfU",heroPlaceholder:"_1KRhCrqep1OddB_tzwB9yU",topLine:"_3J1DtWiKygm8l0DDOxmx95",middleLine:"_3iEZQGtwWmZbB8pEd9Rzdb",bottomLine:"_9r_ZQ7hH15g8LY3vKFG2J"}},"./src/reddit/components/HeroStories/index.m.less":function(e,t,o){e.exports={container:"_1GmDm63zZ0pGZ6_k44SCQT",heroContainer:"_1oYxA35OTrSESaPjeTluz0",heroTitle:"_1EzoWqgi93VprNLcVeSPR0",pushItems:"VukYxlU0dnQsNHYig366v"}},"./src/reddit/components/HeroStories/index.tsx":function(e,t,o){"use strict";var n,s=o("./src/lib/classNames/index.ts"),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/actions/news.ts"),u=o("./src/app/strings/index.ts"),m=o("./src/reddit/components/SubredditNameLink/index.tsx"),f=o("./src/reddit/components/TrackingHelper/index.tsx"),g=o("./src/reddit/constants/tracking.ts"),b=o("./src/reddit/controls/Button/index.tsx"),h=o("./src/reddit/helpers/trackers/news.ts"),y=o("./src/reddit/routes/news/util.ts"),v=o("./src/reddit/components/MiniPost/index.tsx"),x=o("./src/reddit/components/HeroStories/HeroItem/index.m.less"),w=o.n(x),O=o("./src/reddit/components/MiniPost/mini-post-list-view.m.less"),S=o.n(O),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 C=l()(v.b).withConfig({componentId:"s1hxxai0-0"})(["&:not(:first-child) {margin-top: auto;}&:not(:last-child) {padding-top: 6px;padding-bottom: 6px;}&:last-of-type {border-bottom: none;}&:first-child {padding-top: 0;}"," {font-weight: normal;margin-top: -4px;}"],m.a);var k=Object(f.b)(class extends i.a.PureComponent{constructor(){super(...arguments),this.onSeeMoreClick=(()=>{this.props.sendEvent(e=>({source:h.a.newsHero,action:g.b.CLICK,noun:"see_more"}))})}render(){const e=this.props.listingKey;return j("div",{className:Object(s.a)(S.a.miniPostList,w.a.heroItem)},void 0,this.props.postIds.map(t=>j(C,{allowNewsThumbnail:!0,showSubreddit:!0,postId:t,containerOnClick:()=>{this.props.sendEvent(Object(h.n)({postId:t,listingKey:e}))},subredditOnClick:()=>{this.props.sendEvent(Object(h.o)({postId:t,listingKey:e}))},thumbnailOnClick:()=>{this.props.sendEvent(Object(h.p)({postId:t,listingKey:e}))}},`mini-post-list-view-item-${t}`)),j(b.f,{className:S.a.link,to:y.a,onClick:this.onSeeMoreClick},void 0,Object(u.a)(this.props.language,"news.seeMoreNews")))}}),I=o("./src/reddit/constants/componentSizes.ts"),P=o("./src/reddit/constants/screenWidths.ts"),L=o("./src/reddit/selectors/listings.ts"),N=o("./src/reddit/selectors/news.ts"),T=o("./src/reddit/selectors/posts.ts"),_=o("./src/reddit/selectors/user.ts"),A=o("./src/app/actions/tooltip.ts"),E=o("./src/lib/intersectionObserver/index.ts"),M=o("./src/lib/redditId/index.ts"),F=o("./src/reddit/actions/post.ts"),B=o("./src/reddit/components/MiniCardPost/Flatlist/index.tsx"),$=o("./src/reddit/components/PostBackgroundWrapper/index.tsx"),R=o("./src/reddit/components/PostContainer/index.tsx"),D=o("./src/reddit/components/PostList/index.tsx"),H=o("./src/reddit/contexts/PageLayer/index.tsx"),U=o("./src/reddit/helpers/styles/mixins/index.tsx"),z=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),W=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),V=o("./src/reddit/models/Vote/index.ts"),K=o("./src/reddit/selectors/moderatorPermissions.ts"),q=o("./src/reddit/selectors/subreddit.ts"),X=o("./node_modules/lodash/get.js"),G=o.n(X),J=o("./src/lib/timeAgo/index.ts"),Z=o("./src/reddit/components/News/TopicTag.tsx"),Q=o("./src/reddit/controls/MetaSeparator/index.tsx"),Y=o("./src/reddit/controls/OutboundLink/styled.tsx"),ee=o("./src/reddit/models/Media/index.ts"),te=o("./src/reddit/components/HeroStories/HeroItem/MetaLine/index.m.less"),oe=o.n(te),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=`\n color: ${e=>Object(W.c)(e).metaText};\n ${z.metadataFont}\n`,re=l()(Y.a).withConfig({componentId:"q3x9kc-0"})(["margin-left: 4px;"]),ie=l()(Q.b).withConfig({componentId:"q3x9kc-1"})(["","color: ",";"],se,e=>Object(W.c)(e).metaText),de=l()(m.a).withConfig({componentId:"q3x9kc-2"})(["","color: ",";"],se,e=>Object(W.c)(e).metaText),ae=l.a.span.withConfig({componentId:"q3x9kc-3"})(["",""],se),ce=l.a.span.withConfig({componentId:"q3x9kc-4"})(["",""],se),le=Object(a.createStructuredSelector)({subredditOrProfile:(e,t)=>Object(q.C)(e,{identifier:t.post.belongsTo})}),pe=Object(d.connect)(le,e=>({pushNewsRoute:(e,t)=>p.e(e,t)}));var ue=pe(Object(f.b)(e=>{const t=e.className,o=e.language,n=e.listingKey,i=e.post,d=e.sendEvent;var a=e.shouldRenderSource;const c=void 0===a||a,l=e.story,p=e.subredditOrProfile,m=l.topic,f=l.subtopic,g=Object(J.b)(o,i.created/1e3);return ne("div",{className:Object(s.a)(oe.a.container,t)},void 0,(e=>e.story.subtopic&&e.story.topic?ne(Z.a,{topic:e.story.topic,subtopic:e.story.subtopic,topicTagClickEvent:h.s}):null)(e),p&&p.displayText&&ne(de,{to:p.url,onClick:()=>{d(Object(h.f)({listingKey:n,postId:i.id,subtopic:f,topic:m}))}},void 0,p.displayText),ne(ie,{isSmall:!0}),ne(ae,{title:g,onClick:()=>{d(Object(h.l)({listingKey:n,postId:i.id,subtopic:f,topic:m}))}},void 0,g),c&&ne(r.Fragment,{},void 0,ne(ie,{isSmall:!0}),ne(ce,{},void 0,Object(u.a)(o,"posts.from"),ne(re,{href:Object(ee.w)(i),isSponsored:i.isSponsored,source:i.source},void 0,G()(i,["source","displayText"])))))})),me=o("./src/reddit/connectors/connectToLanguage.ts"),fe=o("./src/reddit/constants/colors.ts"),ge=o("./src/reddit/models/News/index.ts"),be=o("./src/reddit/components/News/StoryStatusTag/index.m.less"),he=o.n(be),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}}}();const ve=l.a.div.withConfig({componentId:"iufja2-0"})(["color: ",";background-color: ",";"],fe.a.white,fe.a.alienblue);var xe=Object(me.a)(class extends i.a.PureComponent{render(){var e=this.props;const t=e.language,o=e.onClick,n=e.status;return ye(ve,{className:he.a.container,onClick:o},void 0,Object(u.a)(t,ge.c[n]))}}),we=o("./src/reddit/components/Thumbnail/index.tsx"),Oe=o("./src/reddit/controls/OutboundLink/index.tsx"),Se=o("./src/reddit/helpers/news/index.ts"),je=o("./src/reddit/icons/fonts/OutboundLink/index.tsx"),Ce=o("./src/reddit/components/HeroStories/HeroItem/Thumbnail/index.m.less"),ke=o.n(Ce),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 Pe=l()(je.a).withConfig({componentId:"s1rkalav-0"})(["color: ",";"],e=>Object(W.c)(e).body),Le=l()(we.b).withConfig({componentId:"s1rkalav-1"})(["margin-left: 4px;max-width: 300px;"]),Ne=l()(we.a).withConfig({componentId:"s1rkalav-2"})(["background-color: ",";opacity: 0.8;"],e=>Object(W.c)(e).titleText),Te=e=>{var t=(e.story&&e.story.heroSource||{}).url;const o=void 0===t?"":t;let n={};return n=Object(Se.a)(e.story)?{backgroundImage:`url(${o})`}:{background:"linear-gradient(#0079d3,#003f6e)"}};var _e=Object(f.b)(class extends i.a.PureComponent{constructor(e){super(e),this.statusTagOnClick=(()=>{var e=this.props;const t=e.sendEvent,o=e.story,n=e.listingKey,s=e.post,r=o.topic,i=o.subtopic;t(Object(h.i)({listingKey:n,postId:s.id,subtopic:i,topic:r}))}),this.statusTagOnClick=this.statusTagOnClick.bind(this)}render(){var e=this.props;const t=e.listingKey,o=e.post,n=e.sendEvent,s=e.story,r=s.topic,i=s.subtopic,d=G()(o,["source","displayText"],""),a=Object(ee.w)(o);return a?Ie("div",{className:ke.a.container},void 0,Ie(Oe.a,{href:a,isSponsored:o.isSponsored,source:o.source},void 0,Ie(xe,{status:s.status,onClick:this.statusTagOnClick}),Ie("div",{className:ke.a.backgroundContainer,style:Te(this.props),onClick:()=>{n(Object(h.h)({listingKey:t,postId:o.id,subtopic:i,topic:r}))}}),Ie(Ne,{className:ke.a.linkIcon,onClick:()=>{n(Object(h.j)({listingKey:t,postId:o.id,subtopic:i,topic:r}))}},void 0,Ie(Pe,{}),d&&Ie(Le,{className:ke.a.linkText},void 0,d)))):Ie("div",{className:ke.a.container},void 0,Ie(xe,{status:s.status,onClick:this.statusTagOnClick}),Ie("div",{className:ke.a.backgroundContainer,style:Te(this.props)}))}}),Ae=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(c.css)(["."," {","color: ",";}&:hover {."," {opacity: 1;background-color: ",";}}"],w.a.titleWrapper,z.titleFontH4,e=>Object(W.c)(e).titleText,ke.a.linkIcon,e=>Object(W.c)(e).button),Me=2e3,Fe=Object(a.createSelector)(e=>e,_.a,_.j,_.M,T.D,N.q,T.f,_.j,_.db,K.f,H.Q,(e,t,o,n,s,r,i,d,a,c,l)=>{const p=Object(q.C)(e,{identifier:s.belongsTo});return{allowClickTracking:t,userId:o?Object(M.a)(o.id):null,language:n,post:s,story:r,subredditOrProfile:p,isActive:i,currentUser:d,userIsOp:a,moderatorPermissions:c,modModeEnabled:l}}),Be=Object(d.connect)(Fe,(e,{postId:t})=>({pushNewsRoute:(e,t)=>p.e(e,t),handleVote:o=>{const n=o===V.a.upvoted?Object(F.J)(t):Object(F.n)(t);e(n)},onIgnoreReports:()=>e(Object(F.H)(t)),onOpenReportsDropdown:t=>e(Object(A.e)({tooltipId:t})),openPost:t=>e(Object(F.v)(t))}));const $e=l()(class extends i.a.PureComponent{constructor(){super(...arguments),this.heroRef=null,this.timeoutID=0,this.sendConsumptionEvent=((e,t)=>{t?this.timeoutID=window.setTimeout(()=>{this.props.sendEvent(Object(h.g)({listingKey:this.props.listingKey,postId:this.props.post.id,subtopic:this.props.story.subtopic,topic:this.props.story.topic}))},Me):!t&&this.timeoutID&&clearTimeout(this.timeoutID)}),this.setHeroRef=(e=>{this.heroRef=e,e&&E.a(e,this.sendConsumptionEvent)})}componentWillUnmount(){this.heroRef&&E.b(this.heroRef)}render(){var e=this.props;const t=e.className,o=e.currentUser,n=e.eventFactory,r=e.handleVote,d=e.language,a=e.listingKey,c=e.openPost,l=e.post,p=e.sendEvent;var u=e.story;const m=u.topic,f=u.subtopic,g=l.title;return i.a.createElement("div",{className:Object(s.a)(t,w.a.heroItem),ref:this.setHeroRef},Ae(R.a,{className:w.a.postContainer,post:l,onClick:Object(D.b)(l.id,{openPost:c}),eventFactory:n},void 0,Ae($.b,{className:w.a.heroItemBackgroundWrapper},void 0,i.a.createElement(_e,this.props),Ae("div",{className:w.a.contentWrapper},void 0,Ae("div",{className:w.a.titleWrapper,title:g,onClick:()=>{p(Object(h.k)({listingKey:a,postId:l.id,subtopic:f,topic:m}))}},void 0,g),Ae(ue,{language:d,post:l,story:this.props.story,shouldRenderSource:!1,listingKey:a}),Ae(B.a,{className:w.a.flatList,currentUser:o,handleVote:e=>{r(e),p(Object(h.m)({listingKey:a,postId:l.id,subtopic:f,topic:m}))},hasModFlairPerms:!1,hasModPostPerms:!1,language:d,modModeEnabled:!1,onCommentsClick:()=>{p(Object(h.e)({listingKey:a,postId:l.id,subtopic:f,topic:m}))},post:l,showEditFlair:!1,showEditPost:!1})))))}}).withConfig({componentId:"x92d6-0"})(["","","","","","margin-bottom: 18px;@media(max-width: ","px) {margin-bottom: 4px;}"],U.n,U.m,$.a,Ee,B.b,P.i);var Re=Be(Object(f.b)(Object(c.withTheme)($e))),De=o("./src/reddit/constants/news.ts"),He=o("./src/reddit/components/HeroStories/Placeholder/index.m.less"),Ue=o.n(He),ze=o("./src/reddit/helpers/styles/mixins/loading.ts"),We=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=l.a.div.withConfig({componentId:"s61785d-0"})(["","",""],ze.b,ze.c),Ke=Object(c.css)(["."," {background-color: ",";border-color: ",";}@media(max-width: ","px) {."," {max-width: 100%;height: 200px;margin: 0 0 4px 0;}// hide every placeholder startng at the 4th\n.",":nth-child(n+4) {display: none;}}"],Ue.a.heroPlaceholder,e=>Object(W.c)(e).post,e=>Object(W.c)(e).postLine,P.i,Ue.a.heroPlaceholder,Ue.a.heroPlaceholder);var qe=()=>{const e=Array(De.e).fill("x").map((e,t)=>We("div",{className:Ue.a.heroPlaceholder},t,We("div",{className:Ue.a.contentContainer},void 0,We(Ve,{className:Ue.a.topLine,isLoading:!1,gradientType:"posts"}),We(Ve,{className:Ue.a.middleLine,isLoading:!1,gradientType:"posts"}),We(Ve,{className:Ue.a.bottomLine,isLoading:!1,gradientType:"posts"}))));return We("div",{className:Ue.a.container},void 0,e)},Xe=o("./src/reddit/components/HeroStories/index.m.less"),Ge=o.n(Xe);o.d(t,"a",function(){return tt});var Je=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},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=Object(a.createStructuredSelector)({postIds:N.i,postsById:T.N,apiError:L.c,apiPending:L.d,language:_.M}),Ye=Object(d.connect)(Qe,e=>({pushNewsRoute:(e,t)=>p.e(e,t)})),et=({isCompactMode:e,language:t,listingKey:o,postIds:n,postsById:s,shouldShowPlaceholder:r})=>{const i=e?n.slice(0,1):n,d=e?n.slice(1,4):[];return Ze("div",{className:Ge.a.heroContainer},void 0,r?Ze(qe,{}):i.map(e=>{const t=s[e];return t?Ze(Re,{postId:t.id,listingKey:o},t.id):null}),d.length>0?Ze(k,{postIds:d,language:t,listingKey:o}):null)};const tt=l.a.div.withConfig({componentId:"s137wdq2-0"})(["margin-top: 24px;@media(min-width: ","px) {margin-left: ","px;margin-right: ","px;}"],P.i,I.x,I.x),ot=l()(class extends i.a.Component{shouldShowPlaceholder(){var e=this.props;const t=e.apiError,o=e.apiPending;return Boolean(t)||!1!==o}render(){return Ze("div",{className:Object(s.a)(Ge.a.container,this.props.className)},void 0,i.a.createElement(et,Je({},this.props,{shouldShowPlaceholder:this.shouldShowPlaceholder()})))}}).withConfig({componentId:"s137wdq2-1"})(["",""],Ke);t.b=Ye(Object(c.withTheme)(ot))},"./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}}),f=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 g=d()(e=>{e.isLoading,e.gradientType;var t=f(e,["isLoading","gradientType"]);return r.a.createElement("div",t)}).withConfig({componentId:"s1lp57jt-0"})(["",""],c.b),b=d.a.div.withConfig({componentId:"s1lp57jt-1"})(["background-color: ",";"],e=>Object(l.c)(e).widgetColors.sidebarWidgetBackgroundColor);t.a=(({isLoading:e})=>m(b,{className:u.a.container},void 0,m(g,{gradientType:"posts",isLoading:e,className:u.a.banner}),m("div",{className:u.a.title},void 0,m(g,{gradientType:"posts",isLoading:e,className:u.a.icon}),m(g,{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(g,{gradientType:"posts",isLoading:e,className:u.a.count}),m(g,{gradientType:"posts",isLoading:e,className:u.a.text})),m("div",{className:u.a.side},void 0,m(g,{gradientType:"posts",isLoading:e,className:u.a.count}),m(g,{gradientType:"posts",isLoading:e,className:u.a.text}))),m(g,{gradientType:"posts",isLoading:e,className:Object(a.a)(u.a.desc,u.a.one)}),m(g,{gradientType:"posts",isLoading:e,className:Object(a.a)(u.a.desc,u.a.two)}),m(g,{gradientType:"posts",isLoading:e,className:Object(a.a)(u.a.desc,u.a.three)}),m(g,{gradientType:"posts",isLoading:e,className:Object(a.a)(u.a.desc,u.a.four)}),m(g,{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,f,g,b,h,y;const v=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 w,O;const S=u?"snoo-superbowl@2x.png":"snoo-home@2x.png";if(c(t)){m=`${s.a.assetPath}/img/id-cards/home-banner@2x.png`,f=Object(n.a)(e,"listings.home.longDescription"),g=p(`url('${s.a.assetPath}/img/id-cards/${S}')`);const t=Object(n.a)(e,"listings.home.title");b=t.charAt(0).toUpperCase()+t.slice(1),y=r.c[r.b.Home]}else if(a(t))m=`${s.a.assetPath}/img/id-cards/banner@2x.png`,f=Object(n.a)(e,"listings.all.longDescription"),g=p(`url('${s.a.assetPath}/img/id-cards/${S}')`),b="r/all",y=r.c[r.b.All];else if(l(t)){m=`${s.a.assetPath}/img/id-cards/oc-banner@2x.png`,f=Object(n.a)(e,"listings.originalContent.longDescription"),g=p(`url('${s.a.assetPath}/img/id-cards/snoo-oc@2x.png')`,68);const t=Object(n.a)(e,"listings.originalContent.title");b=t.charAt(0).toUpperCase()+t.slice(1),h=Object(n.a)(e,"listings.originalContent.titleSecondary"),y=r.c[r.b.Original]}else d(t)?(m=`${s.a.assetPath}/img/id-cards/banner@2x.png`,f=Object(n.a)(e,"listings.popular.longDescription"),g=p(`url('${s.a.assetPath}/img/id-cards/${S}')`),b="r/popular",y=r.c[r.b.Popular]):t&&(f=i&&i.description,g=p(""),b=o.displayText,y=o.url,O=i&&i.subscribersCount,w=i&&i.currentlyViewingCount);return Object.assign({snooBackground:g,description:f,titleText:b,titleSecondaryText:h,url:y,subscribersCount:O,subscribersText:v,currentlyViewingText:x,currentlyViewingCount:w},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"),f=o("./src/app/actions/tooltip.ts"),g=o("./src/reddit/components/CategoryTagList/index.tsx"),b=o("./src/reddit/components/CreateCommunityButton/index.tsx"),h=o("./src/reddit/components/CreatePostButton/index.tsx"),y=o("./src/reddit/components/InfoTextTooltip/index.tsx"),v=o("./src/higherOrderComponents/addOverlayEvents.tsx"),x=o("./src/higherOrderComponents/asTooltip.tsx"),w=o("./src/reddit/actions/monthsToMinutes.ts"),O=o("./src/reddit/constants/componentSizes.ts"),S=o("./src/reddit/constants/zIndex.ts"),j=o("./src/reddit/models/MonthsToMinutes/index.ts"),C=o("./src/reddit/components/MonthsToMinutesTooltip/index.tsx"),k=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 I=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?-O.j:0,S.n+1),[v.a.Click,v.a.Keydown,v.a.Resize]);var P,L=Object(r.connect)(null,e=>({onTooltipActivated:t=>e(Object(w.x)({time:Date.now(),tooltipType:t}))}))(class extends s.a.Component{componentDidMount(){this.props.isOpen&&this.props.onTooltipActivated(j.j.SubscribeIdCard)}render(){const e=this.props;return s.a.createElement(I,k({targetPosition:["left","top"],tooltipPosition:["right","top"],tooltipType:j.j.SubscribeIdCard},e))}}),N=o("./src/reddit/components/SubredditIcon/index.tsx"),T=o("./src/reddit/components/SubscribeButton/index.tsx"),_=o("./src/reddit/components/TrackingHelper/index.tsx"),A=o("./src/reddit/components/Widgets/Base/index.tsx"),E=o("./src/reddit/components/Widgets/ThemedWidget/index.tsx"),M=o("./src/reddit/constants/elementIds.ts"),F=o("./src/reddit/constants/listings.ts"),B=o("./src/reddit/constants/page.ts"),$=o("./src/reddit/helpers/styles/components/index.tsx"),R=o("./src/reddit/helpers/styles/mixins/index.tsx"),D=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),H=o("./src/reddit/helpers/trackers/lightbox.ts"),U=o("./src/reddit/helpers/trackers/modHub.ts"),z=o("./src/reddit/icons/fonts/helpers.tsx"),W=(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 V=l()(e=>W("i",{className:`${Object(z.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;"]),K=o("./src/reddit/models/Theme/index.ts"),q=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),X=o("./src/reddit/selectors/category.ts"),G=o("./src/reddit/selectors/comments.ts"),J=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"),fe=o("./src/reddit/featureFlags/component.tsx"),ge=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=o("./src/reddit/models/User/index.ts"),he=o("./src/reddit/selectors/userFlair.ts"),ye=o("./src/reddit/components/SidebarFlairSettings/index.m.less"),ve=o.n(ye),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 we=l.a.div.withConfig({componentId:"s1wrnpm8-0"})(["border-top: 1px solid ",";margin-top: 12px;padding-top: 12px;"],e=>Object(q.c)(e).widgetColors.lineColor),Oe=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(q.c)(e).body),Se=l()(e=>ge("svg",{className:e.className,viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",version:"1.1"},void 0,ge("title",{id:`${e.title}-title`},void 0,e.title),ge("g",{},void 0,ge("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(q.c)(e).button,e=>Object(q.c)(e).button),je=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;"]),ke=l()(me.l).withConfig({componentId:"s1wrnpm8-5"})(["display: flex;margin-left: auto;"]),Ie=l()(ke).withConfig({componentId:"s1wrnpm8-6"})(["padding: 0px;"]),Pe=l.a.span.withConfig({componentId:"s1wrnpm8-7"})(["color: ",";flex: 0 0 auto;line-height: 16px;"],e=>Object(q.c)(e).bodyText),Le=Object(fe.a)("spBadges",pe.a),Ne=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)(Ne,(e,{subredditId:t})=>({onToggleModal:o=>e(Object(ce.b)({username:o,subredditId:t})),onToggleBadgeModal:()=>e(Object(le.j)())})),_e=e=>xe(Ie,{onClick:e.onClick},void 0,xe(Se,{})),Ae=e=>xe(ke,{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 Ee=Te(Object(_.b)(class extends s.a.Component{constructor(){super(...arguments),this.onFlairLinkClick=(()=>{const e=this.props.currentUser?Object(be.f)(this.props.currentUser):null;this.props.onToggleModal(e),this.props.sendEvent(Object(H.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(we,{},void 0,xe(je,{},void 0,Object(p.a)(n,"flair.preview"),xe(_e,{onClick:this.onFlairLinkClick})),xe(Oe,{},void 0,d&&xe(Le,{className:ve.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(Ae,{userFlairData:i,userHasBadge:d,language:n,onClick:s}):null):null}})),Me=o("./src/reddit/controls/ToggleSwitch/index.tsx"),Fe=o("./src/reddit/helpers/trackers/idCard.ts"),Be=o("./src/reddit/icons/svgs/ChevronDown/index.tsx"),$e=o("./src/reddit/icons/svgs/ChevronUp/index.tsx"),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}}}(),De=e=>Re("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,Re("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"})),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}}}(),Ue=e=>He("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,He("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"})),ze=o("./src/reddit/components/IdCard/CommunityOptions/index.m.less"),We=o.n(ze),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 Ke=l.a.div.withConfig({componentId:"s1p4e6h4-0"})(["border-top: 1px solid ",";"],e=>Object(q.c)(e).widgetColors.lineColor),qe=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(q.c)(e).bodyText,e=>Object(q.c)(e).bodyText,e=>Object(ie.g)(.8,Object(q.c)(e).bodyText),e=>Object(ie.g)(.8,Object(q.c)(e).bodyText),e=>Object(ie.g)(.8,Object(q.c)(e).bodyText),e=>Object(ie.g)(.8,Object(q.c)(e).bodyText),e=>Object(ie.e)(Object(q.c)(e).bodyText,.5),e=>Object(ie.e)(Object(q.c)(e).bodyText,.5)),Xe=Object(a.createStructuredSelector)({language:oe.M,stylesDisabledGlobally:oe.Z,stylesDisabledForSubreddit:oe.Y});var Ge=Object(r.connect)(Xe,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(Fe.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?Ve("div",{className:We.a.content},void 0,Ve("div",{className:Object(de.a)(We.a.stylesToggle,{[We.a.disabled]:s}),title:s?Object(p.a)(o,"sidebar.subreddit.communityTheme.disabledTitle"):void 0},void 0,Ve("label",{className:We.a.stylesToggleLabel},void 0,Ve(n?Ue:De,{}),Object(p.a)(o,"sidebar.subreddit.communityTheme.label")),Ve(Me.a,{disabled:s,on:!n,onToggle:this.onToggleStylesSwitch})),!t&&Ve(Ee,{subredditId:r})):null;return Ve(Ke,{className:We.a.container,onClick:this.onContainerClick},void 0,Ve(qe,{className:We.a.expandButton,onClick:this.onExpandButtonClick},void 0,Object(p.a)(o,"sidebar.subreddit.communityOptions"),Ve(i?$e.a:Be.a,{})),d)}}),Je=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 bt}),o.d(t,"f",function(){return kt}),o.d(t,"c",function(){return It});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(Je.c)(e)||Object(Je.d)(e)||Object(Je.f)(e)||Object(Je.e)(e),nt=l()(Object($.a)()).withConfig({componentId:"s1bd5ppi-0"})(["background: ",";border-radius: 4px 4px 0 0;height: 34px;margin: -12px -12px 10px;"],e=>Object(K.g)(Object(q.c)(e).active,e.bannerBackgroundImage||Object(q.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(q.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(q.c)(e).widgetColors.lineColor),mt=l.a.p.withConfig({componentId:"s1bd5ppi-10"})(["",""],D.titleFontH4),ft=l.a.p.withConfig({componentId:"s1bd5ppi-11"})(["","display: inline-block;word-break: break-word;"],D.titleFontH6),gt=l()(A.a).withConfig({componentId:"s1bd5ppi-12"})(["margin-top: 10px;"]),bt=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;"]),yt="\n display: block;\n width: 100%;\n",vt=l()(T.a).withConfig({componentId:"s1bd5ppi-15"})(["",";margin-bottom: 8px;"],yt),xt=l()(h.a).withConfig({componentId:"s1bd5ppi-16"})(["",";","padding: 0 16px;"],yt,D.largeButtonFont),wt=l()(b.a).withConfig({componentId:"s1bd5ppi-17"})(["",";","margin-top: 11px;"],R.e,D.largeButtonFont),Ot=l()(V).withConfig({componentId:"s1bd5ppi-18"})(["margin-right: 4px;vertical-align: middle;"]),St=l()(i.a).withConfig({componentId:"s1bd5ppi-19"})(["border-radius: 4px;margin: 6px 0px 6px auto;padding: 4px;"]),jt=l.a.div.withConfig({componentId:"s1bd5ppi-20"})(["border-top: 1px solid ",";margin-top: 10px;"],e=>Object(q.c)(e).widgetColors.lineColor),Ct=Object(r.connect)(()=>Object(a.createStructuredSelector)({postCategories:(e,t)=>Object(X.o)(e,t.postId),commentsApiError:G.c,commentsApiPending:G.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:J.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(f.e)({tooltipId:t}))}),(e,t,o)=>Object.assign({},e,t,o,{onContainerClick:()=>o.isOverlay&&t.dispatchPush(e.subreddit.url)}));const kt=({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))),It=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(N.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(ft,{id:n},void 0,o),tt(y.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(ft,{id:i},void 0,r),tt(y.c,{caretOnTop:!0,text:`${Object(m.b)(s,!0)} ${r}`,tooltipId:i}))),Lt=e=>tt(bt,{},void 0,e),Nt=({isFake:e,isOverlay:t,isLoggedIn:o,isSubmissionPage:n,language:s,listingName:r,subreddit:i})=>tt(ht,{},void 0,!e&&tt(vt,{getEventFactory:e=>Object(H.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!==B.j&&tt(wt,{eventSource:"id_card",language:s}));t.d=Object(_.b)(Ct(Object(c.withTheme)(class extends s.a.Component{constructor(){super(...arguments),this.onClickModTools=(()=>this.props.sendEvent(Object(U.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,f=e.language,b=e.listingApiError,h=e.listingApiPending,y=e.listingName,v=e.moderatorPermissions,x=e.onContainerClick,w=e.postCategories,O=e.postId,S=e.shouldRenderSuperbOwlIcon,j=e.subreddit,C=e.subredditIcon,k=e.subscribeIdTooltipIsOpen,I=e.toggleTooltip;let P=y;c||y!==B.c||r||(P=F.b.Popular);const N=Object(u.a)(P);if(!N&&!i)return tt(Ze.a,{isLoading:n&&!o||h&&!b});var T=Object(Je.a)({language:f,listingName:P,subreddit:j,idCardWidget:i,shouldRenderSuperbOwlIcon:S});const _=T.bannerBackgroundImage,A=T.currentlyViewingCount,$=T.currentlyViewingText,R=T.description,D=T.snooBackground,H=T.subscribersCount,U=T.subscribersText,z=T.titleText,W=T.titleSecondaryText,V=T.url,K=N||l||m,q=!N&&j.id?j.id:"",X=`IdCard--Subscribers--${l}--${q}`,G=`IdCard--CurrentlyViewing--${l}--${q}`;return tt(s.a.Fragment,{},void 0,tt(E.a,{className:t,onClick:l?x:void 0,headerButton:!K&&j&&v&&tt(St,{to:v.posts?`${j.url}about/modqueue`:`${j.url}about/`,onClick:this.onClickModTools},void 0,tt(Ot,{}),Object(p.a)(f,"modTools.modTools")),redditStyle:N||m,title:K?void 0:Object(p.a)(f,"sidebar.subreddit.title")},void 0,K&&tt(nt,{bannerBackgroundImage:_}),N?kt({titleText:z,titleSecondaryText:W,snooBackground:D,shouldRenderSuperbOwlIcon:S}):tt(It,{isTargetBlank:m,linkUrl:N?void 0:V,subredditIcon:C,titleText:z}),!N&&Pt(f,H,U,X,A,$,G,I),!N&&tt(se.a,{type:j.type,isNSFW:j.isNSFW,allowContractors:j.allowContractors,isQuarantined:j.isQuarantined}),Lt(R),Nt({isFake:N,isLoggedIn:c,isOverlay:l,isSubmissionPage:m,language:f,listingName:P,subreddit:j}),a&&w&&O&&(d||l)&&tt(jt,{},void 0,tt(gt,{},void 0,Object(p.a)(f,"sidebar.categoryTag.discoverMore")),tt(g.a,{postId:O,inLightboxHeader:!0,postCategories:w})),!N&&c&&tt(Ge,{isOverlay:l,sendEvent:this.props.sendEvent,subredditId:j.id})),!N&&tt(L,{container:l?document.getElementById(M.d):null,isOpen:k,isOverlay:l,tooltipId:`subscribe-button-${j.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/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 f=Object(m.w)(),g=Object(i.createStructuredSelector)({layout:m.O}),b=Object(r.connect)(g);t.a=f(b(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"),f=o("./src/reddit/layout/page/Listing/Content.tsx"),g=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),b=o("./src/reddit/selectors/structuredStyles.ts"),h=o("./src/reddit/selectors/userPrefs.ts"),y=o("./src/reddit/components/LayoutNavigation/ConsiderateNav.tsx"),v=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var 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),w=c.a.div.withConfig({componentId:"s8rr6fz-1"})(["",""],m.c),O=c.a.div.withConfig({componentId:"s8rr6fz-2"})(["height: ","px;min-width: ","px;width: 100%;"],l.G,p.j),S=Object(d.createStructuredSelector)({bladeOpen:e=>!!Object(b.i)(e),isSubscriptionsPinned:h.b}),j=Object(i.connect)(S);t.a=c()(j(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),v("div",{className:this.props.className},void 0,v(x,{},void 0,v(f.b,{fitPageToContent:!0},void 0,v(O,{},void 0,v(y.a,{bladeOpen:t,considerSidebar:i,offsetLeft:d,render:this.props.render}))),i&&v(w,{})))}})).withConfig({componentId:"s8rr6fz-3"})(["background: ",";"],e=>Object(g.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"),f=o("./node_modules/react-router-redux/es/index.js"),g=o("./src/app/actions/tooltip.ts"),b=o("./src/app/strings/index.ts"),h=o("./src/higherOrderComponents/asTooltip.tsx"),y=o("./src/lib/addQueryParams/index.ts"),v=o("./src/reddit/components/TrackingHelper/index.tsx"),x=o("./src/reddit/constants/listingSorts.ts"),w=o("./src/reddit/contexts/PageLayer/index.tsx"),O=r.a.createContext({}),S=o("./src/reddit/controls/Dropdown/index.tsx"),j=o("./src/reddit/controls/Dropdown/Row.tsx"),C=o("./src/reddit/helpers/styles/components/index.tsx"),k=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),I=o("./src/reddit/helpers/trackers/navigation.ts"),P=o("./src/reddit/icons/svgs/Dropdown/index.tsx"),L=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),N=o("./src/reddit/selectors/tooltip.ts"),T=o("./src/reddit/selectors/user.ts"),_=o("./src/reddit/components/ListingSort/ListingSortIcon.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}}),E=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},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 F="ListingSort--SortPicker",B=Object(h.a)(c()(S.a).withConfig({componentId:"ne5g41-0"})(["","margin-left: -5px;min-width: 100px;"],"")),$=c()(e=>{e.redditStyle;var t=M(e,["redditStyle"]);return r.a.createElement(_.a,t)}).withConfig({componentId:"ne5g41-1"})(["fill: ",";"],e=>Object(L.c)(e).actionIcon),R=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;"],k.labelsFont,e=>Object(L.c)(e).metaText),H=c()(e=>{e.redditStyle;var t=M(e,["redditStyle"]);return r.a.createElement(j.c,E({},t,{noHover:!0,isSelected:!0}))}).withConfig({componentId:"ne5g41-4"})(["","border: none;display: flex;margin: 4px;padding: 4px;"],k.smallButtonFont),U=c()(Object(C.a)()).withConfig({componentId:"ne5g41-5"})(["align-items: center;display: flex;",", "," {","}"],R,H,e=>e.disabled?`\n color: ${Object(L.c)(e).inactive};\n fill: ${Object(L.c)(e).inactive};\n `:""),z=c.a.div.withConfig({componentId:"ne5g41-6"})(["","padding: 8px 12px 8px 8px;color: ",""],k.titleFontH5,e=>Object(L.c)(e).actionIcon),W=Object(w.w)({isFrontpage:w.C,isOriginal:w.E,isProfilePage:w.L,pageLayer:e=>e}),V=Object(d.createStructuredSelector)({user:T.j,dropdownIsOpen:Object(N.b)(F),language:T.M,redditStyle:w.D}),K=Object(i.connect)(V,(e,{pageLayer:t})=>({onOpenDropdown:()=>e(Object(g.e)({tooltipId:F}))}));var q=c()(W(K(Object(v.b)(e=>A("div",{className:e.className,onClick:e.onOpenDropdown},void 0,A(D,{},void 0,Object(b.a)(e.language,"sorts.title")),A(U,{disabled:e.disabled,redditStyle:e.redditStyle},void 0,A(H,{displayText:x.a[e.sort](e.language),id:F,redditStyle:e.redditStyle},void 0,A($,{redditStyle:e.redditStyle,sort:e.sort})),A(R,{isSubreddit:!e.redditStyle})),A(O.Consumer,{},void 0,t=>r.a.createElement(B,E({isOpen:e.dropdownIsOpen,tooltipId:F},t,{renderContentsHidden:!0}),e.disabled?A(z,{},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=>A(j.c,{displayText:x.a[t](e.language),onClick:()=>{e.onChange(t),e.sendEvent(Object(I.c)(t))},href:e.isProfilePage?Object(y.a)(e.baseUrl,{sort:t}):`${e.baseUrl}/${t}/`,isSelected:e.sort===t},t,A($,{redditStyle:e.redditStyle,sort:t})))))))))).withConfig({componentId:"ne5g41-7"})(["align-items: center;cursor: pointer;display: flex;margin: 7px 0;padding: 0 16px;"]),X=o("./src/reddit/constants/parameters.ts");const G={[l.mc.AllStates]:Object(b.f)("stateSorts.allStates"),[l.mc.Alaska]:Object(b.f)("stateSorts.alaska"),[l.mc.Alabama]:Object(b.f)("stateSorts.alabama"),[l.mc.Arkansas]:Object(b.f)("stateSorts.arkansas"),[l.mc.Arizona]:Object(b.f)("stateSorts.arizona"),[l.mc.California]:Object(b.f)("stateSorts.california"),[l.mc.Colorado]:Object(b.f)("stateSorts.colorado"),[l.mc.Connecticut]:Object(b.f)("stateSorts.connecticut"),[l.mc.DistrictOfColumbia]:Object(b.f)("stateSorts.districtOfColumbia"),[l.mc.Delaware]:Object(b.f)("stateSorts.delaware"),[l.mc.Florida]:Object(b.f)("stateSorts.florida"),[l.mc.Georgia]:Object(b.f)("stateSorts.georgia"),[l.mc.Hawaii]:Object(b.f)("stateSorts.hawaii"),[l.mc.Iowa]:Object(b.f)("stateSorts.iowa"),[l.mc.Idaho]:Object(b.f)("stateSorts.idaho"),[l.mc.Illinois]:Object(b.f)("stateSorts.illinois"),[l.mc.Indiana]:Object(b.f)("stateSorts.indiana"),[l.mc.Kansas]:Object(b.f)("stateSorts.kansas"),[l.mc.Kentucky]:Object(b.f)("stateSorts.kentucky"),[l.mc.Louisiana]:Object(b.f)("stateSorts.louisiana"),[l.mc.Massachusetts]:Object(b.f)("stateSorts.massachusetts"),[l.mc.Maryland]:Object(b.f)("stateSorts.maryland"),[l.mc.Maine]:Object(b.f)("stateSorts.maine"),[l.mc.Michigan]:Object(b.f)("stateSorts.michigan"),[l.mc.Minnesota]:Object(b.f)("stateSorts.minnesota"),[l.mc.Missouri]:Object(b.f)("stateSorts.missouri"),[l.mc.Mississippi]:Object(b.f)("stateSorts.mississippi"),[l.mc.Montana]:Object(b.f)("stateSorts.montana"),[l.mc.NorthCarolina]:Object(b.f)("stateSorts.northCarolina"),[l.mc.NorthDakota]:Object(b.f)("stateSorts.northDakota"),[l.mc.Nebraska]:Object(b.f)("stateSorts.nebraska"),[l.mc.NewHampshire]:Object(b.f)("stateSorts.newHampshire"),[l.mc.NewJersey]:Object(b.f)("stateSorts.newJersey"),[l.mc.NewMexico]:Object(b.f)("stateSorts.newMexico"),[l.mc.Nevada]:Object(b.f)("stateSorts.nevada"),[l.mc.NewYork]:Object(b.f)("stateSorts.newYork"),[l.mc.Ohio]:Object(b.f)("stateSorts.ohio"),[l.mc.Oklahoma]:Object(b.f)("stateSorts.oklahoma"),[l.mc.Oregon]:Object(b.f)("stateSorts.oregon"),[l.mc.Pennsylvania]:Object(b.f)("stateSorts.pennsylvania"),[l.mc.RhodeIsland]:Object(b.f)("stateSorts.rhodeIsland"),[l.mc.SouthCarolina]:Object(b.f)("stateSorts.southCarolina"),[l.mc.SouthDakota]:Object(b.f)("stateSorts.southDakota"),[l.mc.Tennessee]:Object(b.f)("stateSorts.tennessee"),[l.mc.Texas]:Object(b.f)("stateSorts.texas"),[l.mc.Utah]:Object(b.f)("stateSorts.utah"),[l.mc.Virginia]:Object(b.f)("stateSorts.virginia"),[l.mc.Vermont]:Object(b.f)("stateSorts.vermont"),[l.mc.Washington]:Object(b.f)("stateSorts.washington"),[l.mc.Wisconsin]:Object(b.f)("stateSorts.wisconsin"),[l.mc.WestVirginia]:Object(b.f)("stateSorts.westVirginia"),[l.mc.Wyoming]:Object(b.f)("stateSorts.wyoming")};var 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},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()(S.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(w.w)(),re=Object(d.createStructuredSelector)({dropdownIsOpen:Object(N.b)("StateSort--StateSortPicker"),language:T.M,redditStyle:w.D}),ie=Object(i.connect)(re,e=>({onOpenDropdown:()=>e(Object(g.e)({tooltipId:"StateSort--StateSortPicker"})),onClickLink:(t,o)=>{e(Object(f.b)(t)),e(Object(m.r)(l.x.UnitedStates+"_"+o))}}));var de=c()(se(ie(e=>{const t=`${e.baseUrl}?${X.f}=${l.x.UnitedStates}`;return Z("div",{className:e.className,onClick:e.onOpenDropdown},void 0,Z(U,{disabled:e.disabled,redditStyle:e.redditStyle},void 0,Z(H,{displayText:G[e.sort](e.language),id:"StateSort--StateSortPicker",redditStyle:e.redditStyle},void 0),Z(R,{isSubreddit:!e.redditStyle})),Z(O.Consumer,{},void 0,o=>r.a.createElement(Y,J({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(j.c,{displayText:G[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(b.f)("countrySorts.everywhere"),[l.x.UnitedStates]:Object(b.f)("countrySorts.unitedStates"),[l.x.Argentina]:Object(b.f)("countrySorts.argentina"),[l.x.Australia]:Object(b.f)("countrySorts.australia"),[l.x.Bulgaria]:Object(b.f)("countrySorts.bulgaria"),[l.x.Canada]:Object(b.f)("countrySorts.canada"),[l.x.Chile]:Object(b.f)("countrySorts.chile"),[l.x.Colombia]:Object(b.f)("countrySorts.colombia"),[l.x.Croatia]:Object(b.f)("countrySorts.croatia"),[l.x.CzechRepublic]:Object(b.f)("countrySorts.czechRepublic"),[l.x.Finland]:Object(b.f)("countrySorts.finland"),[l.x.Greece]:Object(b.f)("countrySorts.greece"),[l.x.Hungary]:Object(b.f)("countrySorts.hungary"),[l.x.Iceland]:Object(b.f)("countrySorts.iceland"),[l.x.India]:Object(b.f)("countrySorts.india"),[l.x.Ireland]:Object(b.f)("countrySorts.ireland"),[l.x.Japan]:Object(b.f)("countrySorts.japan"),[l.x.Malaysia]:Object(b.f)("countrySorts.malaysia"),[l.x.Mexico]:Object(b.f)("countrySorts.mexico"),[l.x.NewZealand]:Object(b.f)("countrySorts.newZealand"),[l.x.Philippines]:Object(b.f)("countrySorts.philippines"),[l.x.Poland]:Object(b.f)("countrySorts.poland"),[l.x.Portugal]:Object(b.f)("countrySorts.portugal"),[l.x.PuertoRico]:Object(b.f)("countrySorts.puertoRico"),[l.x.Romania]:Object(b.f)("countrySorts.romania"),[l.x.Serbia]:Object(b.f)("countrySorts.serbia"),[l.x.Singapore]:Object(b.f)("countrySorts.singapore"),[l.x.Sweden]:Object(b.f)("countrySorts.sweden"),[l.x.Taiwan]:Object(b.f)("countrySorts.taiwan"),[l.x.Thailand]:Object(b.f)("countrySorts.thailand"),[l.x.Turkey]:Object(b.f)("countrySorts.turkey"),[l.x.UnitedKingdom]:Object(b.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(w.w)(),me=Object(d.createStructuredSelector)({dropdownIsOpen:Object(N.b)("CountrySort--CountrySortPicker"),language:T.M,redditStyle:w.D}),fe=Object(i.connect)(me,e=>({onOpenDropdown:t=>e(Object(g.e)({tooltipId:t})),onClickLink:(t,o)=>{e(Object(f.b)(t)),e(Object(m.r)(o))}}));var ge=c()(ue(fe(e=>{const t=oe(e.sort),o=te(e.sort),n=`${e.baseUrl}?${X.f}=`;return le(pe,{},void 0,le("div",{className:e.className,onClick:()=>e.onOpenDropdown("CountrySort--CountrySortPicker")},void 0,le(U,{disabled:e.disabled,redditStyle:e.redditStyle},void 0,le(H,{displayText:(()=>t in ae?ae[t](e.language):ae[l.x.Everywhere](e.language))(),id:"CountrySort--CountrySortPicker",redditStyle:e.redditStyle},void 0),le(R,{isSubreddit:!e.redditStyle})),le(O.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(j.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;"]),be=o("./node_modules/path-browserify/index.js"),he=o.n(be),ye=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},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}}}(),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 we=Object(h.a)(S.a),Oe=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;"]),Se=Object(w.w)(),je=Object(d.createStructuredSelector)({dropdownIsOpen:Object(N.b)("TimeSort--SortPicker"),language:T.M,redditStyle:w.D});var Ce=Se(Object(i.connect)(je,e=>({onOpenDropdown:()=>e(Object(g.e)({tooltipId:"TimeSort--SortPicker"}))}))(e=>ve(Oe,{className:e.className,onClick:e.onOpenDropdown,redditStyle:e.redditStyle},void 0,ve(U,{disabled:!1,redditStyle:e.redditStyle},void 0,ve(H,{displayText:x.b[e.timeSort](e.language),id:"TimeSort--SortPicker",redditStyle:e.redditStyle}),ve(R,{isSubreddit:!e.redditStyle})),ve(O.Consumer,{},void 0,t=>r.a.createElement(we,ye({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=>ve(j.c,{displayText:x.b[t](e.language),href:((e,t,o)=>{let n=e.url;return e.urlParams.sort||Object(w.L)(e)||(n=he.a.join(n,t)),Object(y.a)(n,{[X.s]:o})})(e.pageLayer,e.listingSort,t),isSelected:e.timeSort===t,onClick:()=>e.onChange(t)}))))))),ke=o("./src/reddit/constants/page.ts"),Ie=o("./src/reddit/controls/LayoutSwitch/index.tsx"),Pe=o("./src/reddit/constants/componentSizes.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}}}();const Ne=c()(Object(C.a)()).withConfig({componentId:"or27m9-0"})(["background: ",";height: ","px;width: 1px;"],e=>Object(L.c)(e).line,Pe.G/2),Te=Object(w.w)({isProfilePage:w.L,pageLayer:e=>e}),_e=Object(d.createStructuredSelector)({currentOnboardingCategory:w.f,currentUser:T.j,language:T.M,isPopularListing:w.H,redditStyle:w.D}),Ae=Object(i.connect)(_e,(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(Ae(Object(v.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 Le(u.a,{className:e.className,render:t=>r.a.Children.toArray([i?null:Le(Ie.a,{onLayoutClick:t,subredditId:e.subredditId}),i?null:Le(Ne,{redditStyle:e.redditStyle}),Le(q,{baseUrl:e.baseUrl,disabled:n,geopopularSort:e.countrySort,onChange:e.updateSortPreference,sort:e.sort,sortOptions:e.sortOptions}),!n&&d&&[Le(Ne,{redditStyle:e.redditStyle}),Le(Ce,{baseUrl:`${e.baseUrl}/${e.sort}`,listingSort:e.sort,onChange:t=>e.updateSortPreference(e.sort,t),timeSort:e.timeSort||l.sc})],a&&Le(ge,{baseUrl:e.isPopularListing?`/r/${ke.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)),f=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 g=r()(e=>f("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,f("title",{},void 0,"Hot"),f("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)),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 h=r()(e=>b("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,b("g",{},void 0,b("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)),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}}}();var v=r()(e=>y("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,y("g",{},void 0,y("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 w=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)),O=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=r()(g).withConfig({componentId:"s1qt4be1-0"})(["",""],i.d),j=r()(h).withConfig({componentId:"s1qt4be1-1"})(["",""],i.d),C=r()(m).withConfig({componentId:"s1qt4be1-2"})(["",""],i.d),k=r()(w).withConfig({componentId:"s1qt4be1-3"})(["",""],i.d),I=r()(p).withConfig({componentId:"s1qt4be1-4"})(["",""],i.d),P=r()(v).withConfig({componentId:"s1qt4be1-5"})(["",""],i.d),L={[d.X.BEST]:I,[d.X.HOT]:S,[d.X.NEW]:j,[d.X.CONTROVERSIAL]:C,[d.X.TOP]:k,[d.X.RISING]:P};t.a=(e=>{const t=L[e.sort];return O(t,{})})},"./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 F});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"),f=o("./src/reddit/components/PostModModeDropdown/index.tsx"),g=o("./src/reddit/components/PostOverflowMenu/index.tsx"),b=o("./src/reddit/components/ShareMenu/index.tsx"),h=o("./src/reddit/components/TrackingHelper/index.tsx"),y=o("./src/reddit/constants/postLayout.ts"),v=o("./src/reddit/contexts/PageLayer/index.tsx"),x=o("./src/reddit/helpers/styles/mixins/index.tsx"),w=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),O=o("./src/reddit/helpers/trackers/post.ts"),S=o("./src/reddit/icons/fonts/Share/index.tsx"),j=o("./src/reddit/models/User/index.ts"),C=o("./src/reddit/controls/Score/index.m.less"),k=o.n(C),I=o("./src/reddit/components/MiniCardPost/Flatlist/index.m.less"),P=o.n(I),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 N="-MiniCardModMenu",T="-MiniCardOverflowMenu",_="-MiniCardShareMenu",A=d()(p.a).withConfig({componentId:"s1ns7vej-0"})(["max-height: 24px;margin-right: 5px;."," {width: auto;}"],k.a.score),E=`\n .${P.a.flatlistContainer} {\n ${w.actionFont}\n }\n`,M=d.a.button.withConfig({componentId:"s1ns7vej-1"})(["","padding: 4px;text-transform: capitalize;"],x.p),F=Object(i.css)(["","","",""],l.a,E,u.h),B=Object(v.w)({currentProfileName:v.j,isCommentPermalink:v.y,isCommentsPage:v.z,isProfilePostListing:v.M,pageLayer:e=>e}),$=Object(r.createStructuredSelector)({layout:v.O,subreddit:v.t}),R=Object(s.connect)($,{});t.a=B(R(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,v=e.isProfilePostListing,x=e.isSticky,w=e.language,C=e.layout,k=e.modModeEnabled,I=e.onCommentsClick,E=e.post,F=e.sendEvent,B=e.showEditFlair,$=e.showEditPost,R=e.subreddit,D=e=>F(Object(O.d)(E.id,e)),H=E.postId,U=Object(u.f)(N,E.id,h,x),z=!!n&&Object(j.f)(n)===E.author;return L("div",{className:Object(c.a)(P.a.flatlistContainer,o)},void 0,L(A,{compact:!1,model:E,onVoteClick:s}),L(l.b,{hasModPostPerms:i,isCommentsPage:d,isCommentPermalink:p,isOverlay:h,postId:E.id,modModeEnabled:k,numComments:E.numComments,type:y.f.Compact,onClick:I}),L(b.a,{className:P.a.shareMenu,dropdownId:Object(u.f)(_,E.id,h,x),isOverlay:!!h,permalink:E.permalink,post:E,sendEventWithName:D,subreddit:R},void 0,L(M,{},void 0,L(S.a,{className:P.a.shareIcon}),L("span",{className:P.a.shareText},void 0,Object(a.a)(w,"posts.share")))),i&&L(m.a,{dropdownId:U,onClick:()=>D("post_mod_action_menu")},void 0,L(u.b,{className:P.a.modActionsIcon}),L(f.a,{hasModFlairPerms:r,hasModPostPerms:i,isOverlay:!!h,isPostAuthor:z,language:w,modModeEnabled:k,post:E,tooltipId:U})),L(g.g,{currentProfileName:t,isCommentsPage:d,isOverlay:!!h,isProfilePostListing:v,layout:C,pageLayer:e.pageLayer,permalink:E.permalink,postId:H,dropdownId:Object(u.f)(T,E.id,h,x),isFixed:x,sendEvent:F,showEditPost:!!$,showEditFlair:!!B,useFlatlistBreakpoints:Object(g.h)({editPost:!1,save:!1,hide:!1,report:!1})}))})))},"./src/reddit/components/MiniPost/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return j});var n,s=o("./node_modules/react/index.js"),r=o.n(s),i=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),a=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(a),l=o("./src/app/strings/index.ts"),p=o("./src/lib/prettyPrintNumber/index.ts"),u=o("./src/lib/timeAgo/index.ts"),m=o("./src/reddit/components/SubredditNameLink/index.tsx"),f=o("./src/reddit/components/Thumbnail/index.tsx"),g=o("./src/reddit/helpers/overlay/index.ts"),b=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),h=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),y=o("./src/reddit/selectors/news.ts"),v=o("./src/reddit/selectors/posts.ts"),x=o("./src/reddit/selectors/subreddit.ts"),w=o("./src/reddit/selectors/user.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 S=c.a.p.withConfig({componentId:"s1weoanc-0"})(["","color: ",";margin-bottom: 4px;max-height: 36px;overflow: hidden;text-overflow: ellipsis;"],b.titleFontH5,e=>Object(h.c)(e).bodyText),j=Object(a.css)(["cursor: pointer;display: flex;padding-top: 12px;&:not(:last-child) {border-bottom: 2px solid ",";padding-bottom: 12px;}&:hover "," {text-decoration: underline;}"],e=>Object(h.c)(e).field,S),C=c.a.div.withConfig({componentId:"s1weoanc-1"})(["",";"],j),k=c.a.div.withConfig({componentId:"s1weoanc-2"})(["","border-radius: 4px;display: inline-block;flex: 0 0 65px;height: 49px;margin-right: 7px;width: 65px;"],f.e),I=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;}"],b.metadataFont,e=>Object(h.c)(e).actionIcon),L=Object(d.createSelector)(e=>e,v.D,v.c,y.q,w.M,(e,t,o,n,s)=>{return{crosspost:o,language:s,newsStory:n,post:t,subredditOrProfile:Object(x.C)(e,{identifier:t.belongsTo})}}),N=Object(i.connect)(L,(e,t)=>({openLightbox:t=>e(Object(g.a)(t.permalink))}));t.b=N(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 O(C,{className:n,onClick:this.onClickContainer},void 0,O(k,{onClick:this.onClickThumbnail},void 0,O(f.d,{post:r,url:o&&s&&s.thumbnailUrl&&r&&r.thumbnail&&"default"===r.thumbnail.url?s.thumbnailUrl:""})),O(I,{},void 0,O(S,{title:r.title},void 0,r.title),d&&a&&a.displayText&&O(m.a,{to:a.url,onClick:this.onClickSubreddit},void 0,a.displayText),O("div",{},void 0,O(P,{},void 0,Object(l.d)(this.props.language,"posts.points.noun",r.score,{count:Object(p.b)(r.score)})),O(P,{},void 0,Object(l.d)(this.props.language,"posts.comments.noun",r.numComments,{count:Object(p.b)(r.numComments)})),O(P,{},void 0,Object(u.b)(this.props.language,r.created/1e3,!0,!0)))))}})},"./src/reddit/components/MiniPost/mini-post-list-view.m.less":function(e,t,o){e.exports={miniPostList:"_3NqhcIOg500xJW2usCRfnu",link:"_3WOANniVd7fPg1Ocw-y1kL"}},"./src/reddit/components/News/BreakingNewsContainer/index.m.less":function(e,t,o){e.exports={titleWrapper:"eAp1JF1bdrJ8zYJzLCkgj",breakingNewsHeader:"_1w3ZRp6Jf4WFAtuXSTq_R-",buttonWrapper:"_2rd7JjqmXwo5sO8Q20kLlN",noNewsLink:"_3mCYorxWwoMlry7LTEOtzn",seeMoreButton:"_2DPgxLRkxAKK1LhMiFbPHK",hideButton:"_2dgWhMFiTjhxQ4Dd8plJbh"}},"./src/reddit/components/News/StoryStatusTag/index.m.less":function(e,t,o){e.exports={container:"_3xZnOQmSlVi8j9YuqHxG0V"}},"./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),f=o("./src/lib/addQueryParams/index.ts"),g=o("./src/lib/classNames/index.ts"),b=o("./src/lib/constants/index.ts"),h=o("./src/lib/opener/index.ts"),y=o("./src/lib/raven/index.ts"),v=o("./src/reddit/components/PostList/LoadMore.tsx"),x=o("./src/reddit/components/PostList/SomethingWrong.tsx"),w=o("./src/reddit/components/PromoBanners/index.tsx"),O=o("./src/reddit/components/Scroller/Simple.tsx"),S=o("./src/reddit/components/Translated/index.tsx"),j=o("./src/reddit/constants/adEvents.ts"),C=o("./src/reddit/constants/componentSizes.ts"),k=o("./src/reddit/constants/postLayout.ts"),I=o("./src/reddit/constants/promos.ts"),P=o("./src/reddit/controls/InternalLink/index.tsx"),L=o("./src/reddit/helpers/getClickInfo.ts"),N=o("./src/reddit/helpers/pixels.ts"),T=o("./src/reddit/icons/svgs/ArrowRight/index.tsx"),_=o("./src/reddit/models/Media/index.ts"),A=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),E=o("./src/reddit/helpers/brandSafety/index.ts"),M=o("./src/lib/LRUCache/index.ts"),F=o("./src/telemetry/index.ts"),B=o("./src/telemetry/models/Timer.ts"),$=o("./src/reddit/components/PostList/index.m.less"),R=o.n($),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}}),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 U=500,z=new M.a(U),W=new M.a(U),V=new M.a(U),K={LARGE:1,MEDIUM:1,CLASSIC:3,COMPACT:5},q=m.a.div.withConfig({componentId:"s1ljgxuk-0"})(["color: ",";background-color: ",";"],e=>Object(A.c)(e).linkText,e=>Object(A.c)(e).body),X=m()(T.a).withConfig({componentId:"s1ljgxuk-1"})(["fill: ",";padding-left: 12px;vertical-align: middle;width: 16px;"],e=>Object(A.c)(e).linkText),G=(e,t,o,n,s,r)=>{const i=`entered-${e}-${t}-${o?`last-${n}-${s}`:""}`;let d=z.get(i);return void 0===d&&(d=(()=>{o&&r.onBottomViewed(n,s),r.trackOnPostEnteredViewport(e,t)}),z.set(i,d)),d},J=(e,t,o)=>{const n=`left-${e}-${t}`;let s=W.get(n);return void 0===s&&(s=(n=>{o.trackOnPostExitedViewport(e,t,n)}),W.set(n,s)),s},Z=(e,t)=>{const o=`click-${e}`;let n=V.get(o);return void 0===n&&(n=((e,o)=>{o.isSponsored&&Object(N.a)(o.events,j.a.Click),o.isSponsored&&o.source&&o.source.outboundUrl?Object(h.b)(o.source.outboundUrl,h.a.BLANK):t.openPost({postOrComment:o,clickInfo:Object(L.a)(e)})}),V.set(o,n)),n},Q=(e,t)=>{if(e.isBlank)return 0;switch(t){case k.f.Medium:return 188;case k.f.Classic:return 96;case k.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 M.a(U),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!==k.f.Compact&&this.props.showM2MTooltip(e.id,e.index,!!this.props.inSubredditOrProfile)},b.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(E.a)(i,d))},b.e,{leading:!0})}componentWillMount(){this.timerId&&F.c.cancel(this.timerId),this.props.postIds.length&&(this.timerId=F.c.start())}componentDidMount(){if(this.checkAndSendScreenview(),this.timerId){const e=F.c.end(this.timerId);setTimeout(()=>Object(F.b)(b.o.Redesign,{type:"mount",component:"postList",duration:e}),0)}}componentWillUpdate(e){this.timerId&&F.c.cancel(this.timerId),e.postIds.length&&(this.timerId=F.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&&F.c.has(this.timerId)){const e=F.c.end(this.timerId);if(e<10)return;setTimeout(()=>Object(F.b)(b.o.Redesign,{duration:e,type:"mount",component:"postList"}),0)}}componentWillUnmount(){this.timerId&&F.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 F.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=F.c.end(t);setTimeout(()=>{n(o(s,B.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=H(t,["postsById"]),s=e.postsById,r=H(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,f=s.postClickEvent,g=`post-${n}-${e}-${t}-${o?"last-index":""}-${u}-${p}`;let h;if(void 0===(h=this.scrollChildCache.get(g))){var v=this.props;const s=v.inSubredditOrProfile,x=v.postsById,w=x[e],O=w.crosspostRootId&&x[w.crosspostRootId]?x[w.crosspostRootId]:w;w.crosspostRootId&&!x[w.crosspostRootId]&&Object(y.c)("Crosspost parent details are missing",{extra:{description:`Post ${w.id} is crosspost of ${w.crosspostRootId}, `+`but ${w.crosspostRootId} details are missing in the state`,errorType:b.s.API}});const S=this.props.postComponentForLayout(O,n,0===t),j=`post-list-item-[layout: ${n}]-[postId: ${e}]`,C=G(e,n,o,p,u,this.props),I=J(e,n,this.props),P=Z(e,this.props),L=O.media&&O.media.type===_.m.EMBED?O.media.provider:null;h={estHeight:Q(w,n),id:e,isFocusable:!(!O.media||n!==k.f.Large)&&(_.d.has(O.media.type)&&(!L||!_.p.has(L))&&!O.isSpoiler&&!O.isNSFW),trackOnEnteredViewport:C,trackOnExitedViewport:I,render:({className:t,height:n,width:p,remeasure:u,setScrollerChildRef:g,shouldLoadInitially:b})=>D(S,{className:t,currentProfileName:r,availableWidth:p,eventFactory:f,forceLoadMedia:b,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:g},j)},this.scrollChildCache.set(g,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:R.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:R.a.placeholder},void 0,D(v.a,{isLoading:!!o,layout:s,countOverride:K[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(w.a,{location:I.f.SubredditPage}),D(O.a,{innerRef:this.updateScrollerRef,className:m?R.a.truncatedPostList:Object(g.a)(R.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(q,{className:R.a.seeMoreButton},void 0,D(P.a,{className:R.a.seeMorePostsText,to:Object(f.a)(m,{type:b.kc.Posts})},void 0,D(S.a,{msgId:"search.seeMorePosts"}),D(X,{}))),this.isLoadingMore()&&this.renderLoadMore())}}Y.defaultProps={shouldShowPromo:!0}},"./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"),f=o("./src/reddit/actions/promo.ts"),g=o("./src/config.ts"),b=o("./bundled-modules/styled-components/styled-components.min.js"),h=o.n(b),y=o("./src/app/strings/index.ts"),v=o("./src/lib/colors/constants.ts"),x=o("./src/lib/prettyPrintNumber/index.ts"),w=o("./src/reddit/constants/promos.ts"),O=o("./src/reddit/controls/Button/index.tsx"),S=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),j=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 k=h.a.h1.withConfig({componentId:"s1r1dynj-0"})(["","color: ",";font-size: 32px;font-weight: bold;"],S.titleFontH1,v.n),I=h()(k).withConfig({componentId:"s1r1dynj-1"})(["","","line-height: initial;margin-right: 16px;"],S.titleFontH2,""),P=h.a.span.withConfig({componentId:"s1r1dynj-2"})(["","color: ",";display: block;padding-top: 4px;"],S.bodyFontH6,v.n),L=h()(O.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: ",";}"],v.e,v.e,v.n,v.d,v.d,v.n),N=Object(b.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;",""],N,e=>e.largeBannerKey===w.k.join?`background-image: url(${g.a.assetPath}/img/banner/banner-${w.k.welcome}@2x.png);`:`background-image: url(${g.a.assetPath}/img/banner/banner-${e.largeBannerKey}@2x.png);`),_=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;}"],N,g.a.assetPath,L),A=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;}"],L,I),E=h.a.img.withConfig({componentId:"s1r1dynj-7"})(["margin: 0 8px;"]),M=h()(e=>C("button",{className:e.className,onClick:e.onClick},void 0,C(j.a,{}))).withConfig({componentId:"s1r1dynj-8"})(["height: 12px;width: 12px;right: 10px;top: 10px;position: absolute;svg {fill: ",";}"],v.n),F=e=>C(T,{largeBannerKey:e.largeBannerKey},void 0,C(M,{onClick:()=>e.closeBanner(w.h.UpsellSignUpBannerLarge,w.g[e.largeBannerKey])}),C(k,{},void 0,Object(y.a)(e.language,`promoBanners.${e.largeBannerKey}.header`)),C(P,{},void 0,Object(y.a)(e.language,`promoBanners.${e.largeBannerKey}.subHeader`)),C(L,{href:e.href,onClick:t=>{t.stopPropagation(),t.preventDefault(),e.onOpenRegisterModal(w.g[e.largeBannerKey])}},void 0,Object(y.a)(e.language,`promoBanners.${e.largeBannerKey}.button`))),B=e=>C(_,{},void 0,C(M,{onClick:()=>e.closeBanner(w.h.UpsellSignUpBannerMedium,w.g.join)}),C(E,{srcSet:`${g.a.assetPath}/img/banner/banner-small-logo.png 1x,\n ${g.a.assetPath}/img/banner/banner-small-logo@2x.png 2x,`}),C(I,{},void 0,e.subreddit?Object(y.a)(e.language,"promoBanners.subreddit.header",{subredditName:e.subreddit.displayText,subscribers:Object(x.b)(e.subreddit.subscribers)}):Object(y.a)(e.language,"promoBanners.join.header")),C(L,{href:e.href,onClick:t=>{t.stopPropagation(),t.preventDefault(),e.onOpenRegisterModal(w.g.join)}},void 0,Object(y.a)(e.language,"promoBanners.personalize.button"))),$=h()(e=>C("div",{className:e.className},void 0,C(M,{onClick:()=>e.closeBanner(w.h.UpsellSignUpBannerSmall,w.g.join)}),C(A,{},void 0,C(E,{srcSet:`${g.a.assetPath}/img/banner/banner-small-logo.png 1x,\n ${g.a.assetPath}/img/banner/banner-small-logo@2x.png 2x,`}),C(I,{},void 0,Object(y.a)(e.language,"promoBanners.join.header")),C(L,{href:e.href,onClick:t=>{t.stopPropagation(),t.preventDefault(),e.onOpenRegisterModal(w.g.join)}},void 0,Object(y.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;"],N,g.a.assetPath,e=>e.isOverlay?"border-radius: 0;":"");var R=o("./src/reddit/actions/toaster.ts"),D=o("./src/reddit/helpers/trackers/banners.ts"),H=o("./src/reddit/components/TrackingHelper/index.tsx"),U=o("./src/lib/constants/index.ts"),z=o("./src/lib/makeRequest/index.ts");const W=(e,t)=>Object(z.b)({endpoint:"https://api.linktexting.com/sendLink",method:U.jb.POST,data:`linkId=${t}&number=${e}`,headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"}});var V=o("./src/reddit/models/Toast/index.ts"),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 q=h()(e=>K("button",{className:e.className,onClick:e.onCloseBanner},void 0,K(j.a,{}))).withConfig({componentId:"uob30s-0"})(["height: 12px;position: absolute;right: 10px;top: 10px;width: 12px;svg {fill: ",";}"],v.n),X=h()(O.d).withConfig({componentId:"uob30s-1"})(["width: 123px;height: 26px;line-height: 20px;background-color: ",";border-color: ",";color: ",";&:hover {background-color: ",";border-color: ",";color: ",";}"],v.e,v.e,v.n,v.e,v.e,v.n),G=h.a.div.withConfig({componentId:"uob30s-2"})(["margin-bottom: 8px;"]),J=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);}"],g.a.assetPath),Z=h()(e=>K("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?`${v.e}`:"rgb(3, 46, 94)",e=>e.shouldDisplayLegalDropdown?`max-height: ${e.isHidden?"0":"58px"};`:"max-height: 58px;"),Q=h()(e=>K("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: ",";"],S.bodyFontH6,v.n,e=>e.shouldDisplayLegalDropdown?"center":"left"),Y=h.a.h1.withConfig({componentId:"uob30s-6"})(["","color: ",";margin-bottom: 5px;"],S.titleFontH1,v.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: ",";"],S.bodyFontH6,v.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;",""],S.bodyFontH6,e=>e.error?`border: 1px solid ${v.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;"],v.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;"],S.bodyFontH6,v.n);var ue=Object(d.connect)(void 0,(e,t)=>({displayErrorToast:t=>{e(Object(R.e)({kind:V.b.Error,text:t}))},displaySuccessToast:t=>{e(Object(R.e)({kind:V.b.SuccessCommunity,text:t}))}}))(Object(H.b)(class extends i.a.Component{constructor(e){super(e),this.getLinkId=(()=>this.props.loggedInMobilePromoVariant?w.a:w.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(y.a)(t,"promoBanners.mobileXPromo.empty"),i=Object(y.a)(t,"promoBanners.mobileXPromo.error"),d=Object(y.a)(t,"promoBanners.mobileXPromo.success");if(!this.state.phoneNumber.length)return this.setState({inputError:!0}),void o(r);s(Object(D.d)("click",w.g.mobilePromoBanner));const a=this.getLinkId(),c=await W(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===w.c.Test1,i=s&&s===w.d.Test1,d=!(!r&&!i);return K(G,{},void 0,K(J,{},void 0,K(q,{onCloseBanner:()=>t(w.h.MobilePromoBanner,w.g[w.h.MobilePromoBanner],w.j)}),K("div",{},void 0,K(Y,{},void 0,Object(y.a)(o,"promoBanners.mobileXPromo.header")),K(ee,{},void 0,K(te,{},void 0,K(oe,{},void 0,K(ne,{src:`${g.a.assetPath}/img/banner/redditor@2x.png`}),K(re,{},void 0,Object(y.a)(o,"promoBanners.mobileXPromo.manage"))),K(oe,{},void 0,K(ne,{src:`${g.a.assetPath}/img/banner/subscribe@2x.png`}),K(re,{},void 0,Object(y.a)(o,"promoBanners.mobileXPromo.subscriptions")))),K(te,{},void 0,K(oe,{},void 0,K(ne,{src:`${g.a.assetPath}/img/banner/download@2x.png`}),K(re,{},void 0,Object(y.a)(o,"promoBanners.mobileXPromo.downloads"))),K(oe,{},void 0,K(se,{src:`${g.a.assetPath}/img/banner/rating@2x.png`}),K(re,{},void 0,Object(y.a)(o,"promoBanners.mobileXPromo.rated"))))),K(ie,{},void 0,K(de,{type:"tel",onChange:this.onInputChange,placeholder:Object(y.a)(o,"promoBanners.mobileXPromo.placeholder"),error:this.state.inputError?1:0,onBlur:this.onBlur,onFocus:this.onFocus,value:this.state.phoneNumber}),K(X,{onClick:this.onSubmit},void 0,Object(y.a)(o,"promoBanners.mobileXPromo.button"))),K(ae,{},void 0,Object(y.a)(o,"promoBanners.mobileXPromo.countryCode"))),K(ce,{},void 0,K(le,{src:this.props.loggedInMobilePromoVariant?`${g.a.assetPath}/img/banner/qr-code-logged-in.png`:`${g.a.assetPath}/img/banner/qr-code-logged-out.png`}),K(pe,{},void 0,Object(y.a)(o,"promoBanners.mobileXPromo.qr")))),K(Z,{isHidden:this.state.isLegalDropdownHidden,shouldDisplayLegalDropdown:d},void 0,K(Q,{shouldDisplayLegalDropdown:d},void 0,Object(y.a)(o,"promoBanners.mobileXPromo.legal"))))}})),me=o("./src/reddit/contexts/PageLayer/index.tsx"),fe=o("./src/reddit/selectors/meta.ts");var ge=o("./src/reddit/selectors/user.ts");const be=Object.keys(w.k),he=be[Math.floor(Math.random()*Math.floor(be.length))],ye=Object(a.createStructuredSelector)({displayUpsellSignUpBannerLarge:e=>e.promos.upsellSignUpBannerLarge,displayUpsellSignUpBannerMedium:e=>e.promos.upsellSignUpBannerMedium,displayUpsellSignUpBannerSmall:e=>e.promos.upsellSignUpBannerSmall,language:ge.M,isLoggedIn:ge.F,displayMobilePromo:e=>e.promos.mobilePromoBanner,origin:fe.d,subreddit:me.t}),ve=Object(d.connect)(ye,(e,t)=>({closeBanner:(o,n,s)=>{e(Object(f.c)(o,s)),t.sendEvent(Object(D.d)("close",n))},displayBanner:(o,n)=>{e(Object(f.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(H.b)(ve(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)(w.i);if(r)switch(s){case w.f.FrontPage:return void(n||i||t(w.h.UpsellSignUpBannerLarge,w.g[he]));case w.f.SubredditPage:return void(o||n||i||t(w.h.UpsellSignUpBannerMedium,w.g.join));case w.f.CommentsPage:n||i||t(w.h.UpsellSignUpBannerSmall,w.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,f=e.subreddit,g=e.onOpenRegisterModal,b=e.origin,h={closeBanner:o,href:this.sendToRegister(m,b),isOverlay:l,language:p,onOpenRegisterModal:g,subreddit:f,className:t},y=Object.assign({},h,{largeBannerKey:he}),v=Object.assign({},h);if(f&&f.isQuarantined)return null;switch(u){case w.f.FrontPage:if(a){if(n)return i.a.createElement(ue,v);if(s)return i.a.createElement(F,y)}break;case w.f.SubredditPage:if(!a&&!c&&r)return i.a.createElement(B,h);break;case w.f.CommentsPage:if(!c&&d)return i.a.createElement($,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"),f=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),g=o("./src/reddit/components/DiscoveryUnit/Layout/index.m.less"),b=o.n(g),h=o("./src/reddit/components/SearchDiscoveryUnits/TrendingPostsDiscoveryUnit/Placeholder/index.m.less"),y=o.n(h),v=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var 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 w=d.a.div.withConfig({componentId:"t4wj63-0"})(["background-color: ",";border: 1px solid ",";"],e=>Object(f.c)(e).body,e=>Object(f.c)(e).line),O=d()(e=>{e.isLoading,e.gradientType;var t=x(e,["isLoading","gradientType"]);return r.a.createElement("div",t)}).withConfig({componentId:"t4wj63-1"})(["",""],m.b),S=v(l.a,{className:y.a.duHeader},void 0,v(u.a,{msgId:"discoveryUnits.trendingToday"})),j=d()(c.a).withConfig({componentId:"t4wj63-2"})(["."," {display: flex;flex-flow: row wrap;}"],b.a.body);t.a=(e=>v(p.a,{className:e.className,showCardView:e.showCardView},void 0,v(j,{exploreV2Variant:e.exploreV2Variant,header:S},void 0,v(w,{className:y.a.post},void 0,v(O,{gradientType:"posts",isLoading:!0,className:Object(a.a)(y.a.desc,y.a.one)}),v(O,{gradientType:"posts",isLoading:!0,className:Object(a.a)(y.a.desc,y.a.two)}),v(O,{gradientType:"posts",isLoading:!0,className:y.a.icon}),v(O,{gradientType:"posts",isLoading:!0,className:y.a.name})),v(w,{className:y.a.post},void 0,v(O,{gradientType:"posts",isLoading:!0,className:Object(a.a)(y.a.desc,y.a.one)}),v(O,{gradientType:"posts",isLoading:!0,className:Object(a.a)(y.a.desc,y.a.two)}),v(O,{gradientType:"posts",isLoading:!0,className:y.a.icon}),v(O,{gradientType:"posts",isLoading:!0,className:y.a.name})),v(w,{className:y.a.post},void 0,v(O,{gradientType:"posts",isLoading:!0,className:Object(a.a)(y.a.desc,y.a.one)}),v(O,{gradientType:"posts",isLoading:!0,className:Object(a.a)(y.a.desc,y.a.two)}),v(O,{gradientType:"posts",isLoading:!0,className:y.a.icon}),v(O,{gradientType:"posts",isLoading:!0,className:y.a.name})),v(w,{className:y.a.post},void 0,v(O,{gradientType:"posts",isLoading:!0,className:Object(a.a)(y.a.desc,y.a.one)}),v(O,{gradientType:"posts",isLoading:!0,className:Object(a.a)(y.a.desc,y.a.two)}),v(O,{gradientType:"posts",isLoading:!0,className:y.a.icon}),v(O,{gradientType:"posts",isLoading:!0,className:y.a.name})),v(w,{className:y.a.post},void 0,v(O,{gradientType:"posts",isLoading:!0,className:Object(a.a)(y.a.desc,y.a.one)}),v(O,{gradientType:"posts",isLoading:!0,className:Object(a.a)(y.a.desc,y.a.two)}),v(O,{gradientType:"posts",isLoading:!0,className:y.a.icon}),v(O,{gradientType:"posts",isLoading:!0,className:y.a.name})),v(w,{className:y.a.post},void 0,v(O,{gradientType:"posts",isLoading:!0,className:Object(a.a)(y.a.desc,y.a.one)}),v(O,{gradientType:"posts",isLoading:!0,className:Object(a.a)(y.a.desc,y.a.two)}),v(O,{gradientType:"posts",isLoading:!0,className:y.a.icon}),v(O,{gradientType:"posts",isLoading:!0,className:y.a.name})))))},"./src/reddit/components/ShowcaseCard/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}});const c=r.a.div.withConfig({componentId:"s81t8dj-0"})(["background: ",";padding: 16px;border-radius: 4px;border: 1px solid ",";border-top: 4px solid ",";margin-bottom: 8px;"],e=>Object(d.c)(e).body,e=>Object(d.c)(e).postLine,i.a.alienblue);t.a=(e=>a(c,{className:e.className},void 0,e.children))},"./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"),f=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),g=o("./bundled-modules/styled-components/styled-components.min.js"),b=o.n(g),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 y=b.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(f.c)(e).body,Object(s.a)("en","sidebar.sponsored"),e=>Object(f.c)(e).actionIcon,u.b),v=b()(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 w=()=>{const e=p()(0,x.length-1);var t=x[e];const o=t.img,n=t.href;return h(y,{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(v,{src:c.a.assetPath+o})))},O=o("./src/lib/constants/index.ts"),S=o("./src/reddit/components/PostMedia/index.tsx"),j=o("./src/reddit/components/PostTitle/index.tsx"),C=o("./src/reddit/components/PostTopMeta/index.tsx"),k=o("./src/lib/getShortenedLink.ts"),I=o("./src/lib/opener/index.ts"),P=o("./src/reddit/actions/ad.ts"),L=o("./src/reddit/components/PostContainer/index.tsx"),N=o("./src/reddit/constants/adEvents.ts"),T=o("./src/reddit/contexts/InsideOverlay.tsx"),_=o("./src/reddit/contexts/PageLayer/index.tsx"),A=o("./src/reddit/controls/OutboundLink/styled.tsx"),E=o("./src/reddit/helpers/adCount/index.ts"),M=o("./src/reddit/helpers/pixels.ts"),F=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),B=o("./src/reddit/helpers/truncateStringWithEllipsis.ts"),$=o("./src/reddit/icons/fonts/OutboundLink/index.tsx"),R=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 H=b()(e=>D("img",{className:e.className,src:e.src})).withConfig({componentId:"vhpvp7-0"})(["margin: 0 auto;width: 100%;height: 100%;"]);class U extends i.a.Component{render(){const e=this.props.post;if(!e.media)return null;const t=e.media&&!Object(R.A)(e.media)?e.media.content:"",o=e.media.type;if(!t||!o)return null;switch(o){case O.mb.IMAGE:return D(H,{src:t});default:return null}}}var 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 W=b()(C.d).withConfig({componentId:"voxuu6-0"})(["","display: block;"],C.e),V=b.a.div.withConfig({componentId:"voxuu6-1"})(["","background-color: ",";min-width: 300px;&::before {content: '","';color: ",";display: block;","font-weight: 500;}"],m.t,e=>Object(f.c)(e).body,Object(s.a)("en","sidebar.sponsored"),e=>Object(f.c)(e).actionIcon,u.b),K=({children:e})=>z("div",{},void 0,e),q=b.a.div.withConfig({componentId:"voxuu6-2"})(["","background-color: ",";"],m.t,e=>Object(f.c)(e).body),X=b()($.a).withConfig({componentId:"voxuu6-3"})(["font-size: 13px;padding-left: 3px;vertical-align: middle;"]),G=b.a.div.withConfig({componentId:"voxuu6-4"})(["display: flex;"]),J=b.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;"],F.metadataFont),Z=b()(j.c).withConfig({componentId:"voxuu6-6"})(["margin: 0 8px 0px 8px;"]),Q=b.a.div.withConfig({componentId:"voxuu6-7"})(["margin-top: 8px;"]),Y=b.a.div.withConfig({componentId:"voxuu6-8"})(["","padding-top: 8px;"],m.u),ee=b()(L.a).withConfig({componentId:"voxuu6-9"})(["","cursor: pointer;"],e=>e.post.isMediaOnly?"":`\n ${m.v}\n ${C.e}\n `),te=640,oe=Object(_.w)({isOriginalPage:_.E,pageLayer:e=>e}),ne=(e,t)=>{Object(M.a)(t.events,N.a.Click),t.source?t.source.outboundUrl?Object(I.b)(t.source.outboundUrl,I.a.BLANK):Object(I.b)(t.source.url,I.a.BLANK):Object(I.b)(t.permalink,I.a.BLANK)},se=e=>Object(B.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(E.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=K,i=null):t.isMediaOnly?(r=V,i=z(U,{post:t})):(r=q,i=z(Y,{},void 0,z(J,{},void 0,z(W,{tooltipType:s?C.c.Lightbox:void 0,language:O.A,post:t,showSponsorIcon:!0,hideSource:!0,showTimestamp:!1})),z(Z,{post:t,size:j.b.Large,format:se}),t.source&&z(G,{},void 0,z(A.a,{href:t.source.url,isSponsored:!0,source:t.source},void 0,Object(k.a)(t),z(X,{}))),z(Q,{},void 0,t.media&&z(S.a,{isListing:!0,isNotCardView:!0,showCentered:!0,post:t,availableWidth:te,shouldLoad:!0})))),z(r,{},void 0,z(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(E.a)(o,s,n)]},pending:e=>!e.sidebarPromotedPosts.firstFetch}),pe=Object(d.connect)(le),ue=Object(_.w)(),me=b()(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),fe=b()(de.a).withConfig({componentId:"s104akuz-1"})(["padding: 6px;"]),ge=b.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),be=(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(R.x)(e.media)&&e.media.content)),ye=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(fe,{className:t,contentOnly:!0},void 0,ce(ge,{}))):u?ce(ie.a,{},void 0,ce(w,{})):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(fe,{className:this.props.className,contentOnly:!0},void 0,ye(n)&&ce(re,{post:n,refreshKey:i,listingName:d,placement:a,placementIndex:r}),ce(me,{id:be(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;"]),f=r.a.a.withConfig({componentId:"s1168hkq-1"})(["","display: block;text-decoration: none;text-transform: capitalize;"],d.titleFontH6),g=r.a.div.withConfig({componentId:"s1168hkq-2"})(["","text-align: center;padding-bottom: 12px;"],d.titleFontH6),b=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(f,{href:"https://about.reddit.com"},void 0,Object(p.a)("en","footer.links.about")),u(f,{href:"https://about.reddit.com/careers/"},void 0,Object(p.a)("en","footer.links.careers")),u(f,{href:"https://about.reddit.com/press/"},void 0,Object(p.a)("en","footer.links.press"))),u("div",{},void 0,u(f,{href:"https://about.reddit.com/advertise/"},void 0,Object(p.a)("en","footer.links.ad")),u(f,{href:"http://www.redditblog.com/"},void 0,Object(p.a)("en","footer.links.blog")),u(f,{href:"https://www.reddithelp.com"},void 0,Object(p.a)("en","footer.links.help"))),u("div",{},void 0,u(f,{href:"https://www.reddit.com/mobile/download"},void 0,Object(p.a)("en","footer.links.app")),u(f,{href:"https://www.reddit.com/coins"},void 0,Object(p.a)("en","footer.links.coins")),u(f,{href:"https://www.reddit.com/premium"},void 0,Object(p.a)("en","footer.links.premium")),u(f,{href:"http://redditgifts.com/"},void 0,Object(p.a)("en","footer.links.gifts")))),u(g,{},void 0,u("div",{},void 0,u(b,{href:"https://www.reddit.com/help/contentpolicy"},void 0," ",Object(p.a)("en","footer.legal.content")),u("span",{},void 0,"|"),u(b,{href:"https://www.reddit.com/help/privacypolicy"},void 0," ",Object(p.a)("en","footer.legal.privacy"))),u("div",{},void 0,u(b,{href:"https://www.reddit.com/help/useragreement"},void 0," ",Object(p.a)("en","footer.legal.user")),u("span",{},void 0,"|"),u(b,{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"),f=o("./src/reddit/selectors/monthsToMinutes.ts"),g=o("./src/reddit/selectors/user.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 h=a.a.div.withConfig({componentId:"pqvesn-0"})(["text-align: center;"]),y=a.a.div.withConfig({componentId:"pqvesn-1"})(["text-align: right;"]),v=a()(m.d).withConfig({componentId:"pqvesn-2"})(["width: 128px;"]),x=a()(m.d).withConfig({componentId:"pqvesn-3"})(["width: 120px;"]),w=Object(p.createStructuredSelector)({language:g.M,showAccountCompletenessInBottom:f.v});var O=Object(l.connect)(w)(e=>{const t=e.showAccountCompletenessInBottom?y:h,o=e.showAccountCompletenessInBottom?x:v;return b(t,{className:e.className},void 0,b(o,{onClick:()=>window.scroll(0,0)},void 0,Object(u.a)(e.language,"listings.backToTop")))}),S=o("./src/reddit/components/SidebarFooter/index.tsx"),j=o("./src/reddit/components/SidebarSpacer/index.tsx"),C=o("./src/reddit/constants/componentSizes.ts"),k=o("./src/reddit/contexts/PageLayer/index.tsx"),I=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,L=C.j+8,N=L+152+32+16,T=N+P+8,_=a.a.div.withConfig({componentId:"nowfa1-0"})(["flex: 1 1 auto;position: relative;width: inherit;"]),A=a()(O).withConfig({componentId:"nowfa1-1"})(["margin-top: 50vh;position: sticky;top: calc(100vh - ","px);"],40),E=(a()(j.a).withConfig({componentId:"nowfa1-2"})(["",""],e=>e.isAdSticky?"\n position: sticky;\n ":""),a()(S.a).withConfig({componentId:"nowfa1-3"})(["",""],e=>e.isFooterSticky?"\n position: sticky;\n ":""),a()(S.a).withConfig({componentId:"nowfa1-4"})(["",""],e=>e.isFooterSticky?"\n position: sticky;\n ":""),a()(({className:e,isSticky:t,children:o})=>I("div",{className:e},void 0,o)).withConfig({componentId:"nowfa1-5"})(["",""],e=>e.isSticky?"\n position: sticky;\n top: 57px;\n":""));const M=Object(k.w)();t.a=M(class extends i.Component{constructor(e){super(e),this.containerEl=null,this.windowHeight=1/0,this.getStickyContents=(()=>({shouldAdSticky:this.windowHeight>T,shouldFooterSticky:this.windowHeight>N})),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 I(_,{innerRef:this.setWrapperRef},void 0,I(E,{isSticky:t},void 0,e,I(S.a,{removePaddingTop:this.props.removePaddingTop})),I(A,{}))}})},"./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 f});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}),f=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"),f=o("./src/reddit/selectors/user.ts");const g=Object(p.createStructuredSelector)({language:f.M,textVariant:m.b});var b=Object(l.connect)(g,(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"),y=o("./src/reddit/connectors/connectToLanguage.ts"),v=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),x=o("./src/reddit/icons/svgs/CircledPlanet/index.tsx"),w=o("./src/reddit/layout/threeCol/ExpandCenter/index.tsx"),O=o("./src/reddit/models/Flair/index.ts"),S=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),j=o("./bundled-modules/styled-components/styled-components.min.js"),C=o.n(j),k=o("./src/reddit/components/Widgets/CommunityList/helpers.ts"),I=o("./src/reddit/components/Widgets/CommunityList/index.m.less"),P=o.n(I);o.d(t,"b",function(){return D}),o.d(t,"a",function(){return H});var L,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=(L="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:L,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const _=C.a.div.withConfig({componentId:"kufqoz-0"})(["height: 32px;"]),A="\n border-radius: 100%;\n height: 32px;\n margin-right: 8px;\n width: 32px;\n",E=C()(x.a).withConfig({componentId:"kufqoz-1"})(["",";background: ",";box-sizing: border-box;fill: ",";padding: 3px;"],A,e=>Object(S.c)(e).active,e=>Object(S.c)(e).lightText),M=C.a.img.withConfig({componentId:"kufqoz-2"})(["",";"],A),F=C.a.div.withConfig({componentId:"kufqoz-3"})(["width: 100%;"]),B=C()(i.a).withConfig({componentId:"kufqoz-4"})(["",";display: block;overflow: hidden;text-overflow: ellipsis;width: 132px;&:hover {text-decoration: underline;}"],v.titleFontH6),$=C.a.p.withConfig({componentId:"kufqoz-5"})(["","padding-bottom: 4px;"],v.metadataFont),R=C.a.p.withConfig({componentId:"kufqoz-6"})(["","font-weight: normal;"],v.metadataFont),D=e=>T(h.a,{className:e.className,styles:e.widget&&e.widget.styles,title:e.title},void 0,T(F,{},void 0,e.communities.map(t=>r.a.createElement(H,N({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}))))),H=Object(y.a)(e=>T("div",{className:P.a.communityItemContainer},void 0,T(w.a,{widthRight:106},void 0,T(_,{},void 0,e.iconUrl?T(M,{src:e.iconUrl}):T(E,{"data-redditstyle":!0})),T("div",{className:P.a.communityDescriptionContainer},void 0,T(B,{to:Object(k.a)(e.name,e.type),onClick:e.onCommunityNameClick},void 0,Object(k.b)(e.name,e.type)),T("div",{className:P.a.communityInfoContainer},void 0,!!e.subscribers&&T($,{},void 0,Object(n.d)(e.language,"listings.subscribers",e.subscribers,{count:Object(d.b)(e.subscribers)})),e.isNSFW&&T(a.c,{flair:{type:O.e.Nsfw,text:"nsfw"}}))),e.widget?T(b,{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(R,{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/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"),f=o("./src/reddit/selectors/structuredStyles.ts"),g=o("./src/reddit/selectors/user.ts"),b=o("./src/reddit/components/Widgets/ThemedWidget/helpers.tsx"),h=o("./src/reddit/components/Widgets/ThemedWidget/index.m.less"),y=o.n(h),v=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var 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 w=Object(u.w)(),O=Object(d.connect)(()=>Object(a.createStructuredSelector)({forceRedditStyle:(e,t)=>{const o=Object(u.p)(e,t)||void 0;return t.redditStyle||Object(f.l)(e,{subredditId:o})},isNightmodeOn:g.O})),S=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(b.a)(e),e=>Object(b.c)(e),e=>Object(b.c)(e),e=>e.onClick?"cursor: pointer":"",y.a.widgetHeader,m.labelsFont,e=>Object(b.b)(e),e=>Object(b.d)(e),e=>Object(b.d)(e),e=>Object(s.e)(Object(b.d)(e),.2));t.a=w(O(e=>v(S,{className:e.className,"data-redditstyle":e.forceRedditStyle,redditStyle:e.forceRedditStyle,isNightmodeOn:e.isNightmodeOn,onClick:e.onClick,styles:e.styles},void 0,e.title&&v("div",{className:y.a.widgetHeader},void 0,v("div",{className:y.a.widgetTitle},void 0,e.title),e.headerButton),v("div",{className:e.contentOnly?y.a.widgetContentOnly:y.a.widgetContent},void 0,e.children))))},"./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 O}),o.d(t,"b",function(){return j});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"),f=o("./src/reddit/featureFlags/index.ts"),g=o("./src/reddit/selectors/listings.ts"),b=o("./src/reddit/selectors/monthsToMinutes.ts"),h=o("./src/reddit/selectors/posts.ts"),y=o("./src/reddit/selectors/subreddit.ts"),v=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 w=x(),O={apiError:g.c,apiPending:g.d,m2mIsEnabled:b.u,measureScrollFPS:f.d.measureScrollFPS,layout:(e,t)=>t.forcedLayout||Object(l.O)(e,t),loadMore:g.g,postsById:h.N,postIds:(e,{listingKey:t,listingName:o,inSubredditOrProfile:n})=>Object(h.B)(e,t,o,n),subredditsById:y.L,viewportDataLoaded:v.c,postListPlaceholderComponent:()=>m.a},S=Object(s.createStructuredSelector)(O),j=(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)(S,j,(e,t,o)=>Object.assign({},e,t,o,{postClickEvent:u.d,postComponentForLayout:p.b}));t.a=(e=>Object(c.b)(w(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/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"),f=o("./src/reddit/actions/users.ts"),g=o("./src/reddit/controls/Button/index.tsx"),b=o("./src/reddit/controls/Dropdown/index.tsx"),h=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),y=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),v=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 w=c()(b.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(y.c)(e).body),O=c.a.img.withConfig({componentId:"s1x9jy1z-1"})(["border-radius: 4px 4px 0 0;position: relative;width: 100%;z-index: 2;"]),S=c.a.div.withConfig({componentId:"s1x9jy1z-2"})(["padding: 16px;"]),j=c.a.div.withConfig({componentId:"s1x9jy1z-3"})(["","color: ",";"],h.labelsFont,e=>Object(y.c)(e).bodyText),C=c.a.div.withConfig({componentId:"s1x9jy1z-4"})(["","color: ",";"],h.titleFontH5,e=>Object(y.c)(e).bodyText),k=c.a.div.withConfig({componentId:"s1x9jy1z-5"})(["","color: ",";margin: 8px 0;"],h.metadataFont,e=>Object(y.c)(e).metaText),I=c()(g.d).withConfig({componentId:"s1x9jy1z-6"})(["margin-top: 16px;"]),P=Object(d.createStructuredSelector)({language:v.M}),L=Object(i.connect)(P,e=>({closeTooltip:()=>e(Object(f.l)())}));var N=Object(m.a)(L(e=>x(w,{className:e.className,style:e.style},void 0,x(O,{src:`${u.a.assetPath}/img/layoutWelcomeTooltip/background.png`}),x(S,{},void 0,x(j,{},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(k,{},void 0,Object(l.a)(e.language,"listings.layoutSwitcher.welcomeTooltip.body")),x(I,{onClick:e.closeTooltip},void 0,Object(l.a)(e.language,"listings.layoutSwitcher.welcomeTooltip.button")))))),T=o("./src/app/actions/tooltip.ts"),_=o("./src/reddit/actions/preferences.ts"),A=o("./src/reddit/constants/postLayout.ts"),E=o("./src/reddit/icons/svgs/ClassicPosts/index.tsx"),M=o("./src/reddit/icons/svgs/CompactPosts/index.tsx"),F=o("./src/reddit/icons/svgs/LargePosts/index.tsx"),B=o("./src/reddit/components/TrackingHelper/index.tsx"),$=o("./src/reddit/contexts/PageLayer/index.tsx"),R=o("./src/reddit/helpers/styles/components/index.tsx"),D=o("./src/reddit/selectors/telemetry.ts"),H=o("./src/reddit/selectors/tooltip.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}}}(),z=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=c.a.div.withConfig({componentId:"s9hoh6r-0"})(["","color: ",";margin-top: 1px;"],h.labelsFont,e=>Object(y.c)(e).metaText),V=Object(R["d"])()`
fill: ${e=>e.disabled?Object(y.b)(Object(y.c)(e).button):Object(y.c)(e).button};
height: 20px;
width: 20px;
`,K=c()(p.c).withConfig({componentId:"s9hoh6r-1"})(["text-transform: capitalize;"]),q=c()(e=>{e.disabled,e.redditStyle;var t=z(e,["disabled","redditStyle"]);return r.a.createElement(M.a,t)}).withConfig({componentId:"s9hoh6r-2"})(["",""],V),X=c()(e=>{e.disabled,e.redditStyle;var t=z(e,["disabled","redditStyle"]);return r.a.createElement(E.a,t)}).withConfig({componentId:"s9hoh6r-3"})(["",""],V),G=c()(e=>{e.disabled,e.redditStyle;var t=z(e,["disabled","redditStyle"]);return r.a.createElement(F.a,t)}).withConfig({componentId:"s9hoh6r-4"})(["",""],V),J=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=z(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($.w)(),oe=Object(d.createStructuredSelector)({language:v.M,layout:$.O,redditStyle:$.D,tooltipId:H.a,isFTUWelcomeTooltipOpen:v.X}),ne=Object(i.connect)(oe,e=>({onListingLayoutChange:(t,o)=>e(Object(_.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(B.b)(e=>{const t=e.sendEvent,o=e.subredditId,n=(n,s)=>{const r=A.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 U("div",{className:e.className,id:"view--layout--FUE"},void 0,U(W,{},void 0,Y(e.language)),U(J,{},void 0,U(Q,{"aria-label":ee.card.template(e.language),"aria-pressed":e.layout===A.f.Large,id:ee.card.id,isActive:e.layout===A.f.Large,onClick:()=>{n(A.c.Card,A.f.Large)},onTouchStart:()=>{n(A.c.Card,A.f.Large)},onMouseEnter:()=>e.toggleTooltip(ee.card.id),onMouseLeave:()=>e.toggleTooltip(ee.card.id)},void 0,U(G,{disabled:e.layout!==A.f.Large,onClick:e.layout!==A.f.Large?e.onLayoutClick:void 0,redditStyle:e.redditStyle})),U(K,{tooltipId:ee.card.id,text:ee.card.template(e.language)}),U(Q,{"aria-label":ee.classic.template(e.language),"aria-pressed":e.layout===A.f.Classic,id:ee.classic.id,isActive:e.layout===A.f.Classic,onClick:()=>{n(A.c.Classic,A.f.Classic)},onTouchStart:()=>{n(A.c.Classic,A.f.Classic)},onMouseEnter:()=>e.toggleTooltip(ee.classic.id),onMouseLeave:()=>e.toggleTooltip(ee.classic.id)},void 0,U(X,{disabled:e.layout!==A.f.Classic,onClick:e.layout!==A.f.Classic?e.onLayoutClick:void 0,redditStyle:e.redditStyle}),U(K,{tooltipId:ee.classic.id,text:ee.classic.template(e.language)})),U(Q,{"aria-label":ee.compact.template(e.language),"aria-pressed":e.layout===A.f.Compact,id:ee.compact.id,isActive:e.layout===A.f.Compact,onClick:()=>{n(A.c.Compact,A.f.Compact)},onTouchStart:()=>{n(A.c.Compact,A.f.Compact)},onMouseEnter:()=>e.toggleTooltip(ee.compact.id),onMouseLeave:()=>e.toggleTooltip(ee.compact.id)},void 0,U(q,{disabled:e.layout!==A.f.Compact,onClick:e.layout!==A.f.Compact?e.onLayoutClick:void 0,redditStyle:e.redditStyle}),U(K,{tooltipId:ee.compact.id,text:ee.compact.template(e.language)}))),U(N,{isOpen:e.isFTUWelcomeTooltipOpen,tooltipId:"view--layout--FUE"}))})))).withConfig({componentId:"s9hoh6r-8"})(["align-items: center;display: flex;padding: 10px 16px 10px 0;"])},"./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/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/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/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/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/Comments/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=(({className:e})=>s("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,s("path",{d:"M15 4V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h1V6a2 2 0 0 1 2-2z"}),s("path",{d:"M17 5H6a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h3.36l1.76 1.83a.5.5 0 0 0 .75 0L13.64 16H17a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1z"})))},"./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/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/TextPost/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 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,d("path",{fill:"inherit",fillRule:"evenodd",d:"M16.8656 7.205H13.139c-.3428 0-.621-.2782-.621-.621 0-.343.2782-.621.621-.621h3.7266c.343 0 .621.278.621.621 0 .3428-.278.621-.621.621zm0 3.416H13.139c-.3428 0-.621-.2782-.621-.621s.2782-.621.621-.621h3.7266c.343 0 .621.2782.621.621s-.278.621-.621.621zm0 3.416H3.2016c-.343 0-.621-.278-.621-.621 0-.3428.278-.621.621-.621h13.664c.343 0 .621.2782.621.621 0 .343-.278.621-.621.621zm-13.664 3.416c-.343 0-.621-.278-.621-.621 0-.3428.278-.621.621-.621h13.664c.343 0 .621.2782.621.621 0 .343-.278.621-.621.621H3.2016zm-.621-14.285c0-.343.278-.621.621-.621h6.5997c.343 0 .621.278.621.621V10c0 .3428-.278.621-.621.621H3.2016c-.343 0-.621-.2782-.621-.621V3.168zM1.3382.0625C.6513.0625.096.6178.096 1.3047v17.3906c0 .687.5554 1.2422 1.2423 1.2422H18.729c.6868 0 1.242-.5553 1.242-1.2422V1.3047c0-.687-.5552-1.2422-1.242-1.2422H1.3382z"}))).withConfig({componentId:"afvz07-0"})(["fill: ",";"],e=>Object(i.c)(e).actionIcon)},"./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/pages/Frontpage/index.m.less":function(e,t,o){e.exports={duHeader:"_1fauFKjg428h9E1m4B2Vr-"}},"./src/reddit/pages/Frontpage/index.tsx":function(e,t,o){"use strict";o.r(t);var n,s=o("./src/higherOrderComponents/makeAsync.tsx"),r=o("./src/app/strings/index.ts"),i=o("./src/lib/loadWithRetries/index.ts"),d=o("./node_modules/lodash/fromPairs.js"),a=o.n(d),c=o("./node_modules/react/index.js"),l=o.n(c),p=o("./node_modules/react-redux/es/index.js"),u=o("./node_modules/reselect/lib/index.js"),m=o("./bundled-modules/styled-components/styled-components.min.js"),f=o.n(m),g=o("./src/lib/extractQueryParams/index.ts"),b=o("./src/lib/fastdom/index.ts"),h=o("./src/lib/makeListingKey/index.ts"),y=o("./src/lib/performanceTimings/index.tsx"),v=o("./src/reddit/actions/frontpage.ts"),x=o("./src/reddit/components/AccountCompleteness/index.tsx"),w=o("./src/reddit/components/CategoriesNavigation/index.tsx"),O=o("./src/reddit/components/EmptySubreddit.tsx"),S=o("./src/config.ts"),j=o("./src/reddit/components/TrackingHelper/index.tsx"),C=o("./src/reddit/constants/colors.ts"),k=o("./src/reddit/controls/Button/index.tsx"),I=o("./src/reddit/helpers/localStorage/index.ts"),P=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),L=o("./src/reddit/helpers/trackers/banners.ts"),N=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),T=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,s){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var d in r)void 0===t[d]&&(t[d]=r[d]);else t||(t=r||{});if(1===i)t.children=s;else if(i>1){for(var 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 _=f()(e=>T("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 8 8"},void 0,T("g",{fill:"inherit",stroke:"none"},void 0,T("circle",{r:"4",cy:"4",cx:"4"})))).withConfig({componentId:"mo8psv-0"})(["fill: ",";"],e=>Object(N.c)(e).actionIcon),A=o("./src/reddit/icons/svgs/Close/index.tsx"),E=o("./src/reddit/icons/svgs/Comments/index.tsx"),M=o("./src/reddit/icons/svgs/Moderate/index.tsx"),F=o("./src/reddit/icons/svgs/OutboundLink/index.tsx"),B=o("./src/reddit/icons/svgs/Snoo/index.tsx"),$=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 R=e=>$("svg",{className:e.className,id:e.id,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40"},void 0,e.desc&&$("desc",{},void 0,e.desc),$("g",{},void 0,$("g",{fill:"inherit"},void 0,$("polygon",{points:"0,40 14.3,29.2 10.8,25.7"}),$("path",{d:"M23,27.6l10.8-10.8c2,1.1,4.5,0.8,6.2-0.9L24.1,0c-1.7,1.7-2,4.2-0.9,6.2L12.4,17c-2-1.1-4.5-0.8-6.2,0.9l15.9,15.9C23.8,32.1,24.1,29.6,23,27.6z"})))),D=o("./src/reddit/icons/svgs/TextPost/index.tsx"),H=o("./src/reddit/layout/row/Inline/index.tsx"),U=o("./src/reddit/models/Live/index.ts");var z=o("./src/reddit/selectors/user.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}}}();const V=`${S.a.redditUrl}/live/`,K=f.a.a.withConfig({componentId:"s1v7fmsq-0"})(["background-color: ",";border: 1px solid ",";border-radius: 4px;display: block;margin-bottom: 12px;padding: 16px;"],e=>Object(N.c)(e).body,C.a.warning),q=f()(_).withConfig({componentId:"s1v7fmsq-1"})(["fill: ",";height: 8px;margin-right: 4px;width: 8px;"],C.a.warning),X=f.a.div.withConfig({componentId:"s1v7fmsq-2"})(["","color: ",";margin-right: 8px;"],P.labelsFont,C.a.warning),G=f.a.div.withConfig({componentId:"s1v7fmsq-3"})(["","color: ",";margin-left: 8px;"],P.metadataFont,e=>Object(N.c)(e).metaText),J=f.a.div.withConfig({componentId:"s1v7fmsq-4"})(["","color: ",";margin: 4px 0;"],P.titleFontH3,C.a.warning),Z=f()(F.a).withConfig({componentId:"s1v7fmsq-5"})(["fill: ",";height: 16px;margin-left: 4px;width: 16px;"],C.a.warning),Q=f.a.div.withConfig({componentId:"s1v7fmsq-6"})(["","color: ",";"],P.metadataFont,e=>Object(N.c)(e).metaText),Y=f.a.div.withConfig({componentId:"s1v7fmsq-7"})(["background-color: ",";border: 1px solid ",";border-radius: 4px;display: block;margin-bottom: 12px;padding: 16px;"],e=>Object(N.c)(e).body,e=>Object(N.c)(e).postLine),ee=f()(J).withConfig({componentId:"s1v7fmsq-8"})(["color: ",";text-transform: uppercase;"],C.a.alienblue),te=f()(Q).withConfig({componentId:"s1v7fmsq-9"})(["padding: 8px 0 16px;"]),oe=f()(k.e).withConfig({componentId:"s1v7fmsq-10"})(["display: inline-block;"]),ne=f()(A.a).withConfig({componentId:"s1v7fmsq-11"})(["width: 16px;height: 16px;margin: 0 0 0 auto;fill: ",";cursor: pointer;"],e=>Object(N.c)(e).metaText),se=Object(m.css)(["fill: ",";width: 20px;height: 20px;padding-right: 8px;"],C.a.alienblue),re=f()(R).withConfig({componentId:"s1v7fmsq-12"})(["",""],se),ie=f()(D.a).withConfig({componentId:"s1v7fmsq-13"})(["",""],se),de=f()(B.a).withConfig({componentId:"s1v7fmsq-14"})(["",""],se),ae=f()(E.a).withConfig({componentId:"s1v7fmsq-15"})(["",""],se),ce=f()(M.a).withConfig({componentId:"s1v7fmsq-16"})(["",""],se),le=Object(u.createStructuredSelector)({featuredLiveThread:e=>e.live.featured,language:z.M});var pe=Object(p.connect)(le)(Object(j.b)(class extends l.a.Component{constructor(){super(...arguments),this.state={announcementBannerHidden:!0},this.dismissModal=(()=>{this.setState({announcementBannerHidden:!0});var e=this.props.featuredLiveThread;const t=e.id,o=e.numTimesDismissable;Object(I.u)(t,o),this.props.sendEvent(Object(L.b)(t))}),this.clickedButtonCta=(()=>{this.props.sendEvent(Object(L.a)(this.props.featuredLiveThread.id))})}componentDidMount(){var e=this.props;const t=e.featuredLiveThread,o=e.sendEvent;if(t&&t.isAnnouncement){const e=Object(I.a)(t.id);e<t.numTimesDismissable&&(this.setState({announcementBannerHidden:!1}),o(Object(L.c)(t.id)),Object(I.u)(t.id,e+1))}}render(){var e=this.props;const t=e.featuredLiveThread,o=e.language;if(!t)return null;if(t.isAnnouncement){if(this.state.announcementBannerHidden)return null;{const e={[U.b.Announcement]:W(re,{}),[U.b.Document]:W(ie,{}),[U.b.Snoo]:W(de,{}),[U.b.Ama]:W(ae,{}),[U.b.Moderation]:W(ce,{})};return W(Y,{},void 0,W(H.a,{},void 0,e[t.icon],W(ee,{},void 0,t.title),W(ne,{onClick:this.dismissModal})),W(te,{},void 0,t.description),W(oe,{target:"_blank",href:t.announcementUrl,onClick:this.clickedButtonCta},void 0,t.buttonCta))}}return W(K,{href:`${V}${t.id}`},void 0,W(H.a,{},void 0,W(q,{}),W(X,{},void 0,Object(r.a)(o,"live.live")),W(Q,{},void 0,"·"),W(G,{},void 0,Object(r.d)(o,"live.viewers",t.viewerCount))),W(J,{},void 0,t.title,W(Z,{})),W(Q,{},void 0,t.description))}})),ue=o("./src/reddit/components/FrontpageSidebar/index.tsx"),me=o("./src/reddit/components/HeroStories/index.tsx"),fe=o("./src/reddit/components/LayoutNavigation/index.tsx"),ge=o("./src/reddit/components/ListingPostList/index.tsx"),be=o("./src/lib/classNames/index.ts"),he=o("./src/lib/partOfDay/index.ts"),ye=o("./src/reddit/components/ShowcaseCard/index.tsx"),ve=o("./src/reddit/constants/tracking.ts"),xe=o("./src/reddit/controls/InternalLink/index.tsx"),we=o("./src/reddit/controls/Typography/index.tsx"),Oe=o("./src/reddit/helpers/trackers/news.ts"),Se=o("./src/reddit/icons/svgs/News/index.tsx"),je=o("./src/reddit/routes/news/util.ts"),Ce=o("./src/reddit/components/News/BreakingNewsContainer/index.m.less"),ke=o.n(Ce),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 Pe=f()(Se.a).withConfig({componentId:"s1hr4vrt-0"})(["height: 24px;width: 24px;fill: ",";margin-right: 16px;"],C.a.alienblue),Le=f.a.div.withConfig({componentId:"s1hr4vrt-1"})(["color: ",";"],e=>Object(N.c)(e).titleText),Ne=f()(we.a).withConfig({componentId:"s1hr4vrt-2"})(["color: ",";"],e=>Object(N.c)(e).metaText),Te=f()(k.f).withConfig({componentId:"s1hr4vrt-3"})(["display: inline-block;margin-left: 12px;"]),_e=f.a.button.withConfig({componentId:"s1hr4vrt-4"})(["color: ",";"],e=>Object(N.c)(e).metaText);class Ae extends l.a.Component{constructor(e){super(e),this.sendTelemetry=(e=>{this.props.sendEvent(t=>({source:Oe.a.newsHero,action:ve.b.CLICK,noun:e}))}),this.onHideComponentClick=(()=>{Object(I.w)(),this.setState({didUserDisable:!0}),this.sendTelemetry("hide")}),this.onTitleWrapperClick=(()=>{this.sendTelemetry("module_title")}),this.onSeeMoreClick=(()=>{this.sendTelemetry("see_more")}),this.state={didUserDisable:!1}}componentDidMount(){this.setState({didUserDisable:Object(I.c)()})}render(){if(this.state.didUserDisable)return null;var e=this.props;const t=e.children,o=e.language;var n=e.shouldRenderNewsLink;const s=void 0===n||n;return Ie(ye.a,{},void 0,Ie(Le,{className:ke.a.breakingNewsHeader},void 0,Ie(xe.a,{to:je.a,onClick:this.onTitleWrapperClick},void 0,Ie(Pe,{})),Ie(xe.a,{to:je.a,className:ke.a.titleWrapper,onClick:this.onTitleWrapperClick},void 0,Ie(we.e,{},void 0,Object(r.a)(o,`news.breakingNews.${Object(he.a)()||"default"}`)),Ie(Ne,{},void 0,Object(r.a)(o,"news.fromCommunitiesAcrossReddit"))),Ie("div",{className:Object(be.a)(ke.a.buttonWrapper,{[ke.a.noNewsLink]:!s})},void 0,Ie(_e,{className:ke.a.hideButton,onClick:this.onHideComponentClick},void 0,Ie(we.b,{},void 0,Object(r.a)(o,"news.labels.hide"))),s&&Ie(Te,{to:je.a,onClick:this.onSeeMoreClick,className:ke.a.seeMoreButton},void 0,Object(r.a)(o,"news.seeMoreNews")))),t)}}Ae.displayName="BreakingNewsContainer";var Ee=Object(j.b)(Ae),Me=o("./src/reddit/components/PromoBanners/index.tsx"),Fe=o("./src/reddit/components/SearchDiscoveryUnits/DiscoveryUnitHeader/index.tsx"),Be=o("./src/reddit/components/SearchDiscoveryUnits/TrendingPostsDiscoveryUnit/Placeholder/index.tsx"),$e=o("./src/reddit/constants/listings.ts"),Re=o("./src/reddit/constants/parameters.ts"),De=o("./src/reddit/constants/postLayout.ts"),He=o("./src/reddit/constants/promos.ts"),Ue=o("./src/reddit/contexts/PageLayer/index.tsx"),ze=o("./src/reddit/helpers/trackers/screenview.ts"),We=o("./src/reddit/layout/page/Listing/index.tsx"),Ve=o("./src/reddit/selectors/experiments/exploreV2.ts"),Ke=o("./src/reddit/selectors/experiments/trending.ts"),qe=o("./src/reddit/selectors/frontpage.ts"),Xe=o("./src/reddit/selectors/meta.ts"),Ge=o("./src/reddit/selectors/monthsToMinutes.ts"),Je=o("./src/reddit/selectors/news.ts"),Ze=o("./src/lib/constants/index.ts"),Qe=o("./src/lib/objectSelector/index.ts"),Ye=o("./src/reddit/constants/page.ts"),et=o("./src/reddit/pages/Frontpage/index.m.less"),tt=o.n(et),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 nt=f()(ue.a).withConfig({componentId:"s1x4yqrz-0"})(["width: inherit;"]),st=Object(Ue.w)(),rt=Object(u.createStructuredSelector)({queryParams:Object(Qe.a)((e,{location:t})=>a()([...Object(g.a)(t.search)])),sort:(e,{match:t})=>{const o=Object(qe.a)(e);return t.params.sort||o}}),it=Object(u.createStructuredSelector)({countryMeta:Xe.a,geopopular:z.l}),dt=Object(u.createStructuredSelector)({isLoggedIn:z.F}),at=Object(u.createStructuredSelector)({haveHeroData:Je.e,haveTopicData:Je.f,heroListingKey:Je.b,language:z.M,layout:Ue.O,isUserInHeroTreatment:Je.g}),ct=Object(u.createStructuredSelector)({isInTrendingEntrypointExperiment:Ke.a}),lt=Object(p.connect)(()=>Object(u.createSelector)(it,rt,dt,ct,Ue.H,Ge.u,Ge.w,at,(e,t)=>{if(Object(Ue.H)(e,t))return Object(Ve.a)(e)},({countryMeta:e,geopopular:t},{queryParams:o,sort:n},{isLoggedIn:s},{isInTrendingEntrypointExperiment:r},i,d,a,c,l)=>{const p=Re.s in o&&o[Re.s].toUpperCase(),u="string"==typeof p&&p in Ze.rc?Ze.rc[p]:Ze.sc,m=Object(h.a)(Ye.b,n,o),f=e||Ze.x.Everywhere,g=t||f,b=Re.f in o?o[Re.f].toUpperCase():g;return Object.assign({countrySort:b,isLoggedIn:s,isPopular:i,listingKey:m,exploreV2Variant:l,sort:n,m2mIsEnabled:d,showAccountCompletenessInFeed:a,timeSort:u,isInTrendingEntrypointExperiment:r},c)}),(e,t)=>({onLoadMorePosts:()=>e(v.d({sort:t.match.params.sort}))})),pt=Object(s.a)({ErrorComponent:()=>null,getComponent:()=>Object(i.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(Be.a,{showCardView:!!e})});t.default=st(lt(class extends l.a.Component{componentDidMount(){var e=this.props;const t=e.isLoggedIn,o=e.sort;b.a.read(()=>{const e=`${y.c.FrontPage}-${o}`;Object(y.d)(e,t)})}render(){var e=this.props;const t=e.isLoggedIn,o=e.isInTrendingEntrypointExperiment,n=e.isPopular,s=e.m2mIsEnabled,i=e.showAccountCompletenessInFeed,d=n&&!t&&o;return ot(We.d,{className:this.props.className,fitPageToContent:!0,contentNavBar:ot(l.a.Fragment,{},void 0,this.props.exploreV2Variant&&ot(w.a,{baseUrl:$e.c[Ye.e.Explore],category:Ye.e.Popular}),ot(fe.a,{baseUrl:"",countrySort:this.props.countrySort,sort:this.props.sort,timeSort:this.props.timeSort})),trendingUnit:d&&ot(pt,{showCardView:this.props.layout===De.f.Large},"trendingPostsDiscoveryUnit"),content:ot(c.Fragment,{},void 0,ot(pe,{}),this.props.isUserInHeroTreatment&&this.props.haveHeroData&&this.props.haveTopicData?ot(Ee,{language:this.props.language,shouldRenderNewsLink:this.props.layout!==De.f.Large},void 0,ot(me.b,{listingKey:this.props.heroListingKey,isCompactMode:this.props.layout===De.f.Large})):null,!s&&ot(Me.a,{location:He.f.FrontPage}),i&&ot(x.a,{}),d&&ot(Fe.a,{className:tt.a.duHeader},void 0,Object(r.a)(this.props.language,"discoveryUnits.popularPosts")),ot(ge.a,{noPostsComponent:()=>ot(O.a,{listingName:Ye.c,sort:this.props.sort}),listingKey:this.props.listingKey,listingName:Ye.c,listingViewed:(e,t)=>Object(ze.c)(this.props.listingKey,this.props.sort,t,e,this.props.timeSort),onLoadMore:this.props.onLoadMorePosts},"listing")),sidebar:ot(nt,{listingKey:this.props.listingKey,listingName:Ye.c})})}}))},"./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/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 f}),o.d(t,"i",function(){return g}),o.d(t,"g",function(){return b}),o.d(t,"f",function(){return h}),o.d(t,"b",function(){return y});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],f=(e,t)=>{const o=m(e,t);return o?e.widgets.models[o]:null},g=(e,t)=>{return e.widgets.sidebar[t.subredditId].reduce((t,o)=>{const n=e.widgets.models[o];return n&&t.push(n.kind),t},[])},b=(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},y=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=Frontpage.40c49732aae82fbafeca.js.map