1"use strict";(("undefined"!=typeof self?self:this).__LOADABLE_LOADED_CHUNKS__=("undefined"!=typeof self?self:this).__LOADABLE_LOADED_CHUNKS__||[]).push([[4488],{1096:function(e,t,n){n(34769),n(34115),n(32501),n(58188),n(26936),n(27233),n(28673),n(634),n(20796),n(15735),n(6886),n(95342),n(68625),n(1939),n(62775),n(2784);var o=n(45697),r=n.n(o),i=n(52322);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){a=!0,i=e},f:function(){try{c||null==n.return||n.return()}finally{if(a)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function l(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var f=function(e){var t=e.allowedModifierKeys,n=e.children,o=e.href,r=e.onClick,u=l(e,["allowedModifierKeys","children","href","onClick"]);return(0,i.jsx)("a",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({onClick:function(e){var n,o=s(t);try{for(o.s();!(n=o.n()).done;){if(e[n.value])return}}catch(e){o.e(e)}finally{o.f()}e.preventDefault(),r(e)},href:o},u,{children:n}))};f.propTypes={allowedModifierKeys:r().array,children:r().oneOfType([r().arrayOf(r().node),r().node]),href:r().string,onClick:r().func.isRequired},f.defaultProps={allowedModifierKeys:["ctrlKey","metaKey","shiftKey"]},t.Z=f},46971:function(e,t,n){n(34769),n(34115),n(95342),n(68625),n(1939),n(62775),n(2784);var o=n(45697),r=n.n(o),i=n(51504),c=n(43177),a=n(52322);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return(0,a.jsx)(c.Z,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{waitUntilMoved:!0,children:function(t){return t&&e.onScrolledToBottom()}}))}l.propTypes={onScrolledToBottom:r().func.isRequired},t.Z=(0,i.Z)(l)},76818:function(e,t,n){var o=n(41626),r={selectors:{adjustNavFrom:function(e){return e.app.adju
1stNavFrom},adjustSectionId:function(e){return e.app.adjustSectionId},utmParams:function(e){return e.app.utmParams}},actions:{setAdjustNavFrom:o.ax,setAdjustSectionId:o.mo}};t.Z=r},9563:function(e,t,n){n(96928),n(61229),n(34769),n(34115),n(95342),n(68625),n(1939),n(62775),n(634),n(58188),n(20796),n(15735),n(28673),n(6886);var o=n(2784),r=n(12291),i=n(45697),c=n.n(i),a=n(14890),s=n(10950),u=n(67707),l=n(47573),f=n(23115),p=n(87411),d=n(37757),y=n(52322);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=R(e);if(t){var r=R(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?j(e):t}function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}t.Z=function(e){var t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(c,t);var n,o,r,i=S(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,e)).renderTooltip=t.renderTooltip.bind(j(t)),t}return n=c,o=[{key:"renderTooltip",value:function(e){var t=this.props,n=t.recentlyFavoritedPersonalizedTopic,o=t.clearRecentlyPersonaizedTopic,r=t.t;return n&&e?(0,y.jsx)(p.ZP,{targetRef:e,styleVariation:p.ZP.styleVariations.TOOLTIP,positionX:p.A0.RIGHT,positionY:p.fp.BELOW,onClickOutside:o,fixed:!0,children:(0,y.jsx)("span",{children:r("personalized_topic_favorited",{topic:n.title})})}):null}},{key:"render",value:function(){return(0,y.jsx)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this.props,{renderTooltip:this.renderTooltip}))}}],o&&g(n.prototype,o),r&&g(n,r),c}(o.Component);return t.displayName=s.Z.displayName(e),t.propTypes={favorites:c().array,lastFavoritedSectionId:c().string,recentlyFavoritedPersonalizedTopic:c().object,clearRecentlyPersonaizedTopic:c().func,t:c().func},(0,r.$j)((function(e){var t=e.profile,n=t.favorites,o=t.smartMagazines,r=t.lastFavoritedSectionId,i=l.ZP.getSectionByRemoteId(r,n),c=null!=i&&i.isTopic||null!=i&&i.isSmartMagazine?i:null;return{favorites:n,isFavorite:function(e){var t=(0,u.gH)(e,o);return n.some((function(n){return n.normalizedRemoteid===e.normalizedRemoteid||n.remoteid===e.remoteid||t&&(n.normalizedRemoteid===t.normalizedRemoteid||n.remoteid===t.remoteid)}))},lastFavoritedSectionId:r,recentlyFavoritedPersonalizedTopic:c}}),(function(e){return(0,a.DE)({clearRecentlyPersonaizedTopic:f.dg},e)}))((0,d.Z)(t))}},51504:function(e,t,n){n(96928),n(61229),n(34769),n(34115),n(95342),n(68625),n(1939),n(62775),n(634),n(58188),n(20796),n(15735),n(28673),n(6886);var o=n(2784),r=n(12291),i=n(14890),c=n(45697),a=n.n(c),s=n(10950),u=n(21112),l=n(41626),f=n(46315),p=n(52322);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=O(e);
1if(t){var r=O(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?S(e):t}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}t.Z=function(e){var t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(c,t);var n,o,r,i=g(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,e)).state={didTrackScrollToBottom:!1},t.trackScrolledToBottom=t.trackScrolledToBottom.bind(S(t)),t}return n=c,o=[{key:"trackScrolledToBottom",value:function(){var e=this;(0,u.Ip)(this.props.history)||this.state.didTrackScrollToBottom||this.setState({didTrackScrollToBottom:!0},(function(){e.props.onScrolledToBottom(),e.props.setDidScrollToBottom(!0)}))}},{key:"render",value:function(){return(0,p.jsx)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this.props,{onScrolledToBottom:this.trackScrolledToBottom}))}}],o&&m(n.prototype,o),r&&m(n,r),c}(o.Component);return t.displayName=s.Z.displayName(e),t.propTypes={history:a().object.isRequired,onScrolledToBottom:a().func.isRequired,setDidScrollToBottom:a().func.isRequired},(0,r.$j)(null,(function(e){return(0,i.DE)({setDidScrollToBottom:l.RV},e)}))((0,f.Z)(t))}},271:function(e,t,n){n.r(t),n.d(t,{default:function(){return vn}});var o,r=n(12291),i=n(14890),c=n(41626),a=(n(96928),n(61229),n(34115),n(634),n(58188),n(20796),n(15735),n(28673),n(6886),n(12167)),s=n(2784),u=n(45697),l=n.n(u),f=n(72779),p=n.n(f),d=n(32707),y=n(66263),h=n(22749),m=n(11826),b=n(4067),g=n(70042),v=n(96927),S=n(31075),O=(n(18178),n(45828)),j=n(49372),R=n(17394),_=n(90856),w=n(5109),P=n(61803),x=n(26626),E=n(34537),T=n(31949),k=n(92431),Z=n(90068),A=n(9665),N=n(60986),D=n(10713),C=n(19654),F=n(37757),I=n(14175),L=n(32652),B=n(30001),M=n(52322);function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function H(e,t){return H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},H(e,t)}function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=K(e);if(t){var r=K(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Y(this,n)}}function Y(e,t){return!t||"object"!==q(t)&&"function"!=typeof t?V(e):t}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K(e){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},K(e)}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X=(0,a.Z)("header",{target:"e1uv6fgb6"})("text-align:center;padding:0;",R.j.tabletPortraitUp({padding:"100px 0"}),""),$=(0,a.Z)(P.Z,{target:"e1uv6fgb5"})({display:"block",margin:"0 auto ".concat(j.N.BASE6X)},""),J=(0,a.Z)("h1",{target:"e1uv6fgb4"})(w.TK.TITLE_LARGE,{display:"inline-block",marginBottom:j.N.LARGE,"div:last-child":{borderBottom:"".concat(j.N.BASE," solid ").concat(_.DM.red),display:"inline-block",padding:"0 0 ".concat(j.N.BASE)}},R.j.tabletPortraitUp({fontSize:"60px",lineHeight:"43px","div:last-child":{borderBottom:"11px solid ".concat(_.DM.red),display:"inline-block",padding:"12px 0 11px"}}),""),Q=(0,a.Z)("h2",{target:"e1uv6fgb3"})({fontFamily:w.g5.FONT_FAKT_FLIPBOARD,fontWeight:w.Xw.MEDIUM,fontSize:"20px",lineHeight:"1.4",color:_.bo.primary,marginBottom:j.N.BASE4X},R.j.tabletPortraitUp({fontSize:"24px"}),""),ee=(0,a.Z)("div",{target:"e1uv6fgb2"})("width:280px;margin:0 auto;display:block;*{display:block;}",R.j.tabletPortraitUp({width:"auto","*":{display:"inline-block"}}),""),te=(0,a.Z)(T.ZP,{target:"e1uv6fgb1"})(d.tm.CENTERED_COLUMN_HALF,(W(o={paddingTop:"0px",paddingBottom:"0px"},T.bS,{margin:"".concat(j.N.LARGE," ").concat(j.N.BASE8X),gap:j.N.LARGE}),W(o,T.lj,x.xw.FAT),o),""),ne=(0,a.Z)("h2",{target:"e1uv6fgb0"})(w.k7.LARGE_STANDARD,{paddingTop:j.N.LARGE},""),oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&H(e,t)}(i,e);var t,n,o,r=G(i);function i(){var e;U(this,i);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return W(V(e=r.call.apply(r,[this].concat(n))),"renderSignupComponent",(function(){var t=e.props,n=t.t,o=t.isAmp,r=t.isPhone,i=t.navFrom,c=t.getAdjustUrl,a=t.featureFlags,u=c(o?O.Z.APP_STORE_URL_FOR_HOME_AMP:O.Z.APP_STORE_URL_FOR_HOME,i);return a.FRICTIONLESS_SIGNUP_ONLY?(0,M.jsxs)(s.Fragment,{children:[(0,M.jsx)(ne,{children:n("signup_frictionless_description")}),(0,M.jsx)(te,{frictionlessType:B.go.HOMEPAGE}),(0,M.jsx)(k.Z,{})]}):(0,M.jsxs)(s.Fragment,{children:[(0,M.jsx)(Q,{children:n("stories_curated_for_you")}),(0,M.jsx)(ee,{children:r||o?(0,M.jsx)(x.ZP,{name:"brand-banner",label:n("download_the_app"),styleVariation:x.NV.PRIMARY,styleModifier:[x._Z.FAT],href:u}):(0,M.jsx)(E.Z,{name:"brand-banner-signup",label:n("sign_up"),styleVariation:x.NV.PRIMARY,styleModifier:[x._Z.FAT],displayStyle:h.co.BRAND_BANNER_CTA})})]})})),e}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.t,n=e.isAmp,o=e.isPhone;return(0,M.jsxs)(X,{className:"brand-banner",children:[(o||n)&&(0,M.jsx)($,{height:30}),(0,M.jsxs)(J,{children:[(0,M.jsx)("div",{children:t("get_informed")}),(0,M.jsx)("div",{children:t("get_inspired")})]}),this.renderSignupComponent()]})}}])&&z(t.prototype,n),o&&z(t,o),i}(s.Component);oe.propTypes={navFrom:l().string,getAdjustUrl:l().func.isRequired,isAmp:l().bool,isPhone:l().bool.isRequired,featureFlags:l().object.isRequired,t:l().func.isRequired},oe.defaultProps={navFrom:null,isAmp:!1};var re=(0,Z.Z)(A.Z,N.Z,D.Z,C.Z)((0,F.Z)((0,I.Z)((0,L.Z)(oe)))),ie=n(59076),ce=n(47573),ae=n(46874),se=n(21681),ue=n(23115),le=(n(34769),n(68625),n(1939),n(62775),n(95342),n(80768)),fe=n(30298),pe=n(49412),de=n(40949),ye=n(91853),he=(n(49228),n(16781),n(43450),n(73439),n(35666),n(22480)),me=n(50839),be=n(28144),ge=n(84308),ve=n(24253),Se=n(86635),Oe=n(9563),je=n(68869);function Re(e){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(e)}function _e(e,t,n,o,r,i,c){try{var a=e[i](c),s=a.value}catch(e){return void n(e)}a.done?t(s):Promise.resolve(s).then(o,r)}function we(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function c(e){_e(i,o,r,c,a,"next",e)}function a(e){_e(i,o,r,c,a,"throw",e)}c(void 0)}))}}function Pe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function xe(e,t){return xe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},xe(e,t)}function Ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ze(e);if(t){var r=Ze(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Te(this,n)}}function Te(e,t){return!t||"object"!==Re(t)&&"function"!=typeof t?ke(e):t}function ke(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ze(e){return Ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ze(e)}var Ae=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xe(e,t)}(a,e);var t,n,o,r,i,c=Ee(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=c.call(this,e)).state={isLoading:!1,isChanged:!1,favsRemoved:[]},t.handleSubmit=t.handleSubmit.bind(ke(t)),t.handleCancel=t.handleCancel.bind(ke(t)),t}return t=a,n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.editorialBoards,n=e.getEditorialBoards,o=e.followedTopics,r=e.fetchFollowing;o||this.setState({isLoading:!0},(function(){return r()})),t||this.setState({isLoading:!0},(function(){return n()}))}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.editorialBoards,n=e.followedTopics;this.state.isLoading&&t&&n&&this.setState({isLoading:!1})}},{key:"executeSubmit",value:(i=we(regeneratorRuntime.mark((function e(t){var n,o,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props,o=n.dismissModal,r=n.usageTrackPersonalizeForYou,i=n.setFollowedTopics,r(),e.next=4,i(t,h.rf.PE
1RSONALIZE_SHEET,h.O_.PERSONALIZE_FOR_YOU);case 4:o();case 5:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"handleSubmit",value:(r=we(regeneratorRuntime.mark((function e(t){var n,o,r,i,c,a,s=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.props,o=n.showModal,r=n.isFavorite,i=n.followedTopics,c=n.t,!((a=i.reduce((function(e,n){return!t.find((function(e){return le.Z.mightBeSameSection(n,e)}))&&r(n)&&e.push(n),e}),[])).length>0)){e.next=6;break}o(Se.Z,{name:"confirm-personalize-for-you",message:c("confirm_unfollow_favorite",{count:a.length,topicTitle:a.map((function(e){return"#".concat(e.title)})).join(", ")}),title:c("are_you_sure"),cancelLabel:c("back"),confirmLabel:c("save"),onConfirm:function(){var e=we(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.executeSubmit(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),e.next=8;break;case 6:return e.next=8,this.executeSubmit(t);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"handleCancel",value:function(e){var t=this;return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.isSearching,r=n.clearSearch,i=t.props,c=i.dismissModal,a=i.showModal,s=i.t;return e?a(ve.Z,{name:"confirm-personalize-for-you",message:s("confirm_discard_changes"),title:s("discard_changes"),cancelLabel:s("back"),confirmLabel:s("discard")}):o?r():void c()}}},{key:"render",value:function(){var e=this,t=this.props,n=t.isPhone,o=t.editorialBoards,r=t.followedTopics,i=t.t,c=n?g.J9.FULLSCREEN:g.J9.WINDOW,a=(0,M.jsx)(s.Fragment,{children:(0,he.Z)(i("personalize_topic",{topicTitle:i("for_you_title")}),{topicTag:function(){return(0,M.jsx)("span",{className:"red-text",children:i("for_you_title")})}})});return(0,M.jsx)(ge.Z,{title:a,description:i("more_stories_from_what_you_follow"),noResultsText:i("no_results"),className:"modal__content",onSubmit:this.handleSubmit,selectedTitle:i("topics_following"),followableGroups:[{title:i("more_topics_to_follow"),subsections:o}],followed:r||[],isLoadingFollowableGroups:this.state.isLoading,collapsible:!0,children:function(t){var n=t.content,o=t.submit,r=t.isSubmittable,a=t.isSearching,s=t.clearSearch,u=t.isDirty;return(0,M.jsxs)(me.Z,{name:"personalize-for-you-modal",modalTheme:c,modifier:g.nY.HAS_NO_HEADER,interceptDismiss:e.handleCancel(u),children:[n,(0,M.jsxs)(be.Z,{className:"personalize-for-you-controls",fixedControls:!0,children:[(0,M.jsx)(x.ZP,{name:"topic-customization-cancel",styleVariation:x.NV.SECONDARY,onClick:function(){e.handleCancel(u)({isSearching:a,clearSearch:s})},children:i(a?"back":"cancel")}),(0,M.jsx)(x.ZP,{name:"topic-customization-done",className:"topic-customization__submit-button",styleVariation:x.NV.PRIMARY,onClick:o,disabled:!r,children:i(a?"next":"save")})]})]})}})}}],n&&Pe(t.prototype,n),o&&Pe(t,o),a}(s.Component);Ae.propTypes={editorialBoards:l().array,followedTopics:l().array,getEditorialBoards:l().func.isRequired,fetchFollowing:l().func.isRequired,isPhone:l().bool.isRequired,showModal:l().func.isRequired,dismissModal:l().func.isRequired,setFollowedTopics:l().func.isRequired,usageTrackPersonalizeForYou:l().func.isRequired,isFavorite:l().func.isRequired,t:l().func.isRequired};var Ne=(0,Z.Z)(je.Z,N.Z)((0,F.Z)((0,Oe.Z)(Ae))),De=(0,Z.Z)({selectors:{editorialBoards:function(e){return e.content.editorialBoards},followedTopics:function(e){var t=e.profile,n=t.following,o=t.followingIds;return 0===n.length&&o.length>0?null:n.filter(le.Z.isTopic)}},actions:{fetchFollowing:ue.$9,getEditorialBoards:ye.Ze,setFollowedTopics:ue.c6,usageTrackPersonalizeForYou:se.X5}})(Ne),Ce=n(97791);function Fe(e){return Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fe(e)}function Ie(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Le(e,t){return Le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Le(e,t)}function Be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ue(e);if(t){var r=Ue(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Me(this,n)}}function Me(e,t){return!t||"object"!==Fe(t)&&"function"!=typeof t?qe(e):t}function qe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ue(e){return Ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ue(e)}var ze=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Le(e,t)}(i,e);var t,n,o,r=Be(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=r.call(this,e)).show=t.show.bind(qe(t)),t}return t=i,(n=[{key:"show",value:function(){this.props.showModal(De)}},{key:"render",value:function(){return(0,M.jsx)(x.ZP,{name:"personalize-for-you",onClick:this.show,children:(0,M.jsx)(Ce.Z,{size:18,isPersonalized:!0})})}}])&&Ie(t.prototype,n),o&&Ie(t,o),i}(s.Component);ze.propTypes={showModal:l().func.isRequired},ze.defaultProps={isPersonalized:!1};var He=(0,Z.Z)(je.Z)(ze),Ge=n(11145),Ye=n(35183),Ve=n(46315),Ke=n(39285);function We(e){return We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(e)}function Xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?Xe(Object(n),!0).forEach((function(t){Je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function et(e,t){return et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},et(e,t)}function tt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=rt(e);if(t){var r=rt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return nt(this,n)}}function nt(e,t){return!t||"object"!==We(t)&&"function"!=typeof t?ot(e):t}function ot(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rt(e){return rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rt(e)}var it=(0,a.Z)("div",{target:"et9kbg6"})(""),ct=(0,a.Z)("header",{target:"et9kbg5"})(d.tm.CENTERED_COLUMN,{marginTop:j.N.BASE8X,marginBottom:j.N.XLARGE},""),at=(0,a.Z)("div",{target:"et9kbg4"})({display:"flex",alignItems:"center",marginBottom:j.N.BASE},""),st=(0,a.Z)("h1",{target:"et9kbg3"})(w.$C.XLARGE,"cursor:pointer;"),ut=(0,a.Z)("h1",{target:"et9kbg2"})(w.k7.LARGE_STANDARD,{marginBottom:j.N.LARGE},""),lt=(0,a.Z)(Ye.Z,{target:"et9kbg1"})(w.Hb.LARGE_STANDARD,{maxWidth:d.L6.MAIN_COLUMN_HALF_WIDTH},""),ft=(0,a.Z)(pe.Z,{target:"et9kbg0"})({name:"oi3z9x",styles:"height:50vh"}),pt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&et(e,t)}(i,e);var t,n,o,r=tt(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=r.call(this,e)).loadSection=t.loadSection.bind(ot(t)),t.loadNextPage=t.loadNextPage.bind(ot(t)),t}return t=i,n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.section,n=e.history,o=e.usageTrackSectionEnter,r=e.setSectionAccessed;t&&!t.placeholder?(o(t,n),r(t),t.stale&&this.loadSection({definitelyRefresh:!0})):this.loadSection({definitelyRefresh:!0})}},{key:"componentDidUpdate",value:function(e){var t,n=this.props,o=n.section,r=n.history,i=n.usageTrackSectionEnter,c=n.followingStale,a=n.fetchFollowing,s=n.followingLoading,u=n.userInfo,l=n.isPhone;if(e.section&&e.section.placeholder&&o&&!o.placeholder&&i(o,r),null===e.userInfo&&u&&!u.followingSampleLoaded&&!l)return a({sample:!0});c&&!s&&(a(),this.loadSection({definitelyRefresh:!0})),!1===(null===(t=e.section)||void 0===t?void 0:t.stale)&&o.stale&&this.loadSection({definitelyRefresh:!0})}},{key:"componentWillUnmount",value:function(){(0,this.props.usageTrackSectionExit)()}},{key:"loadSection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.props,n=t.topicDescriptions,o=t.nglFeedConfigs,r=t.previousRawItems,i=t.rout
1ing.pathname,c=t.getSection;return c(O.Z.FOR_YOU_FEED_REMOTE_ID,$e({path:i,forNavigation:!0,nglFeedConfigs:o,previousRawItems:r,topicDescriptions:n,preferMagazineContext:!0},e))}},{key:"loadNextPage",value:function(){var e=this.props.nextPageKey;return this.loadSection({pageKey:e})}},{key:"render",value:function(){var e=this.props,t=e.isLoading,n=e.section,o=e.followedTopics,r=e.items,i=e.neverLoadMore,c=e.isPhone,a=e.refreshForYou,u=e.t,l=r.filter((function(e){return!e.isGroup})),f=le.Z.hasItems(n,r),p=(0,M.jsx)(x.ZP,{name:"see-all-following",href:"/following",styleVariation:x.NV.PRIMARY_TEXT,styleModifier:[x._Z.NO_LEFT_PADDING],navFromEventName:h.f2.TOC_ENTER,children:u("see_all")});return(0,M.jsxs)(it,{children:[(0,M.jsxs)(ct,{children:[(0,M.jsxs)(at,{children:[(0,M.jsx)(st,{onClick:a,children:u("for_you_title")}),(0,M.jsx)(He,{})]}),(0,M.jsx)(ut,{children:u("for_you_description")}),!c&&(0,M.jsx)(s.Fragment,{children:o&&(0,M.jsx)(fe.nN.Provider,{value:h.rf.FOR_YOU_HEADER,children:(0,M.jsx)(lt,{sections:o,seeMoreLink:p,maxSections:12})})})]}),(0,M.jsx)("div",{children:t?(0,M.jsx)(ft,{}):(0,M.jsxs)(s.Fragment,{children:[f&&(0,M.jsx)(Ge.Z,{section:n,items:l,styleModifier:Ge.$.GRID}),f&&!i&&(0,M.jsx)(de.Z,{immediateInfinite:!0,loadNext:this.loadNextPage,isLoading:t})]})})]})}}],n&&Qe(t.prototype,n),o&&Qe(t,o),i}(s.Component);pt.propTypes={isLoading:l().bool.isRequired,getSection:l().func.isRequired,setSectionAccessed:l().func.isRequired,routing:l().object.isRequired,userInfo:l().object,section:l().object,items:l().array,followingStale:l().bool.isRequired,followingLoading:l().bool.isRequired,followedTopics:l().array,topicDescriptions:l().array,nextPageKey:l().string,previousRawItems:l().array,nglFeedConfigs:l().array,neverLoadMore:l().bool.isRequired,isPhone:l().bool.isRequired,history:l().object.isRequired,usageTrackSectionEnter:l().func.isRequired,usageTrackSectionExit:l().func.isRequired,fetchFollowing:l().func.isRequired,refreshForYou:l().func.isRequired,t:l().func.isRequired},pt.defaultProps={items:[],section:null,nextPageKey:null,previousRawItems:null,isLoading:!0};var dt=(0,Z.Z)(Ke.Z,N.Z)((0,Ve.Z)((0,F.Z)(pt))),yt=(0,r.$j)((function(e){var t=e.sections,n=e.profile,o=n.userInfo,r=n.following,i=n.followingIds,c=n.followingStale,a=n.followingLoading,s=e.app,u=e.auth,l=ce.ZP.sectionOrDefaults(ce.ZP.getSectionByRemoteId(O.Z.FOR_YOU_FEED_REMOTE_ID,t.entries));return{followedTopics:0===r.length&&i.length>0?null:r,followingIds:i,followingLoading:a,followingStale:c,getSection:t.getSection,isLoading:l.placeholder||!1,items:l.items,neverLoadMore:l.neverLoadMore,nextPageKey:l.nextPageKey,nglFeedConfigs:s.nglFeedConfigs,previousRawItems:l.rawItems,section:l,topicDescriptions:t.topicDescriptions,userInfo:o,userid:u.uid}}),(function(e){return(0,i.DE)({fetchFollowing:ue.$9,getSection:ae.If,refreshForYou:ae.JG,setSectionAccessed:ae.kr,usageTrackSectionEnter:se.eA,usageTrackSectionExit:se.z},e)}))(dt),ht=yt,mt=n(66760),bt=n(99445),gt=n(89939),vt=n(7799),St=n(1096);function Ot(e){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ot(e)}function jt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Rt(e,t){return Rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Rt(e,t)}function _t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=xt(e);if(t){var r=xt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return wt(this,n)}}function wt(e,t){return!t||"object"!==Ot(t)&&"function"!=typeof t?Pt(e):t}function Pt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xt(e){return xt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xt(e)}var Et=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rt(e,t)}(i,e);var t,n,o,r=_t(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=r.call(this,e)).state={isLocked:!1,unlockPosition:null},t.navRef=s.createRef(),t.handleScroll=t.handleScroll.bind(Pt(t)),t.windowScroll=ne
1w gt.Z(t.handleScroll),t}return t=i,n=[{key:"componentDidMount",value:function(){this.windowScroll.subscribe(this.handleScroll)}},{key:"componentWillUnmount",value:function(){this.windowScroll.unsubscribe(this.handleScroll)}},{key:"handleScroll",value:function(){var e=this.navRef.current;if(e){var t=this.state,n=t.isLocked,o=t.unlockPosition,r=(0,vt.Z)().scrollY+60;if(!n&&e.offsetTop<r){var i=e.getBoundingClientRect();this.setState({isLocked:!0,unlockPosition:e.offsetTop+55-i.height})}else n&&r<o&&this.setState({isLocked:!1,unlockPosition:null})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.homeSections,o=t.selectedSectionRemoteId,r=p()({"home-navigation":!0,"home-navigation--locked":this.state.isLocked});return(0,M.jsx)("div",{className:"home-navigation__wrapper",children:(0,M.jsx)("nav",{className:r,ref:this.navRef,children:(0,M.jsx)("ul",{children:n.map((function(t){var n=decodeURIComponent(t.remoteid),r=p()({"home-navigation__item":!0,"home-navigation__item--unselected":o&&o!==n});return(0,M.jsx)("li",{className:r,"data-test-id":"home-navigation-item",children:(0,M.jsx)(St.Z,{onClick:function(){return e.props.onClickItem(t)},href:t.path||(0,m.YH)(t),children:t.title})},t.title)}))})})})}}],n&&jt(t.prototype,n),o&&jt(t,o),i}(s.Component);Et.propTypes={selectedSectionRemoteId:l().string,onClickItem:l().func.isRequired,homeSections:l().array.isRequired};var Tt=Et,kt=(0,a.Z)("span",{target:"e327wzs1"})({color:_.DM.red},""),Zt=(0,a.Z)(be.Z,{target:"e327wzs0"})({marginTop:j.N.BASE8X},"");function At(e){var t=e.allowDismiss,n=e.topicTag,o=e.dismissModal,r=e.t;return(0,M.jsxs)(me.Z,{name:"content-gate",modalTheme:g.J9.WINDOW,children:[(0,M.jsxs)("section",{className:"content-gate modal__content",children:[n?(0,M.jsxs)("h1",{className:"content-gate__title ui-text--title",children:[r("want_more_stories_on")," ",(0,M.jsxs)(kt,{children:["#",n]}),"?"]}):(0,M.jsx)("h1",{className:"content-gate__title ui-text--title",children:r("want_more_stories")}),(0,M.jsx)("p",{className:"ui-text--body",children:r("sign_up_to_see_more")})]}),(0,M.jsxs)(Zt,{children:[t&&(0,M.jsx)(x.ZP,{name:"content-gate-dismiss",label:r("no_thanks"),styleVariation:x.NV.SECONDARY,onClick:o}),(0,M.jsx)(E.Z,{name:"content-gate-signup",label:r("continue"),styleVariation:x.NV.PRIMARY,displayStyle:h.co.CONTENT_GATE_CTA})]})]})}At.propTypes={allowDismiss:l().bool,topicTag:l().string,t:l().func.isRequired,dismissModal:l().func.isRequired},At.defaultProps={allowDismiss:!1,topicTag:null};var Nt=(0,Z.Z)(je.Z)((0,F.Z)(At)),Dt=n(97185),Ct=n(46971);function Ft(e){return Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ft(e)}function It(e,t,n,o,r,i,c){try{var a=e[i](c),s=a.value}catch(e){return void n(e)}a.done?t(s):Promise.resolve(s).then(o,r)}function Lt(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function c(e){It(i,o,r,c,a,"next",e)}function a(e){It(i,o,r,c,a,"throw",e)}c(void 0)}))}}function Bt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Mt(e,t){return Mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Mt(e,t)}function qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ht(e);if(t){var r=Ht(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Ut(this,n)}}function Ut(e,t){return!t||"object"!==Ft(t)&&"function"!=typeof t?zt(e):t}function zt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ht(e){return Ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ht(e)}function Gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mt(e,t)}(u,e);var t,n,o,r,i,c,a=qt(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),Gt(zt(t=a.call(this,e)),"homeFeedRef",void 0),t.handleClickSection=t.handleClickSection.bind(zt(t)),t.getDefaultSectionRemoteId=t.getDefaultSectionRemoteId.bind(zt(t)),t.trackSectionEnter=t.trackSectionEnter.bind(zt(t)),t.currentSection=t.currentSection.bind(zt(t)),t.comscore=t.comscore.bind(zt(t)),t.state={selectedSectionRemoteId:t.getDefaultSectionRemoteId()},t.homeFeedRef=s.createRef(),t}return t=u,n=[{key:"componentDidMount",value:(c=Lt(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==this.props.contentGuide){e.next=4;break}return e.next=4,this.props.getContentGuide();case 4:this.currentSection()?this.trackSectionEnter():this.loadSection();case 6:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"componentDidUpdate",value:(i=Lt(regeneratorRuntime.mark((function e(t,n){var o,r,i,c,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.props,r=o.contentGuide,i=o.sectionLoading,c=this.state.selectedSectionRemoteId,null!==r){e.next=4;break}return e.abrupt("return");case 4:if(null!==t.contentGuide||!r){e.next=6;break}return e.abrupt("return",this.setState({selectedSectionRemoteId:this.getDefaultSectionRemoteId()}));
1case 6:if((a=this.currentSection())||i[c]){e.next=12;break}return e.next=10,this.loadSection();case 10:this.trackSectionEnter(),this.comscore();case 12:a&&n.selectedSectionRemoteId!==c&&(this.trackSectionEnter(),this.comscore());case 13:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){(0,this.props.usageTrackSectionExit)()}},{key:"currentSection",value:function(){var e=this.props.entries;return ce.ZP.getSectionByRemoteId(this.state.selectedSectionRemoteId,e)}},{key:"trackSectionEnter",value:function(){var e=this.currentSection();if(e){var t=this.props,n=t.history;(0,t.usageTrackSectionEnter)(e,n)}}},{key:"comscore",value:function(){this.currentSection()&&(0,mt.Z)()}},{key:"loadSection",value:(r=Lt(regeneratorRuntime.mark((function e(){var t,n,o,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,n=t.routing.pathname,o=t.nglFeedConfigs,r=t.topicDescriptions,i=t.getSection,e.next=3,i(this.state.selectedSectionRemoteId,{path:n,nglFeedConfigs:o,topicDescriptions:r,limit:O.Z.HOME_FEED_ITEM_LIMIT,loadCommentary:!0,preferMagazineContext:!0});case 3:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"homeSections",value:function(){var e=this.props,t=e.contentGuide,n=e.lang,o=e.locale;return t&&Dt.Z.getHomeSections(t,O.Z.DEFAULT_SECTIONS,O.Z.HOME_SECTION_ORDER,{lang:n,locale:o})}},{key:"getDefaultSectionRemoteId",value:function(){var e=this.homeSections();return e&&e[0]&&e[0].remoteid&&(0,bt.Ho)(e[0].remoteid)}},{key:"handleClickSection",value:function(e){var t=decodeURIComponent(e.remoteid),n={targetTitle:e.title,targetRemoteid:t};y.Z.trackClickButton("home-nav",n),this.setState({selectedSectionRemoteId:t});var o=this.homeFeedRef.current;o&&(o.scrollIntoView({block:"start",inline:"start"}),(0,vt.Z)().scrollBy(0,-50))}},{key:"render",value:function(){var e=this,t=this.props,n=t.isFromCrawler,o=t.t,r=t.usageTrackReachedLoggedOutHomeEnd,i=this.state.selectedSectionRemoteId,c=this.currentSection(),a=c&&c.items;return i&&(0,M.jsxs)("div",{ref:this.homeFeedRef,className:"home-feed",children:[(0,M.jsx)(Tt,{selectedSectionRemoteId:i,onClickItem:this.handleClickSection,homeSections:this.homeSections()}),c?[(0,M.jsx)(Ge.Z,{section:c,items:a,preventExcerpt:!0,styleModifier:Ge.$.GRID},"1"),(0,M.jsx)("div",{className:"home-feed__read-more",children:(0,M.jsxs)(s.Fragment,{children:[(0,M.jsx)(Ct.Z,{onScrolledToBottom:r}),(0,M.jsx)(x.ZP,{name:"home-feed-read-more",label:o("read_more"),onClick:function(){return e.props.showModal(Nt)},styleVariation:x.NV.PRIMARY})]})},"2")]:!n&&(0,M.jsx)(pe.Z,{})]})}}],n&&Bt(t.prototype,n),o&&Bt(t,o),u}(s.Component);Gt(Yt,"defaultProps",{topicDescriptions:[],contentGuide:null,nglFeedConfigs:[]});var Vt=(0,Z.Z)(Ke.Z,je.Z)((0,Ve.Z)((0,F.Z)(Yt))),Kt=n(20980),Wt=n(83981),Xt=n(12960),$t={entries:Kt.VU,sectionLoading:Kt.cb,topicDescriptions:Kt.Eg,contentGuide:function(e){var t=e.content.contentGuide;return t},userid:Wt.LW,nglFeedConfigs:Xt.i8,lang:Xt.mk,locale:Xt.Kd,isFromCrawler:Xt.Ay},Jt={selectors:$t,actions:{getSection:ae.If,getContentGuide:ye.oC,usageTrackSectionEnter:se.eA,usageTrackSectionExit:se.z,usageTrackReachedLoggedOutHomeEnd:se.F9}},Qt=(0,Z.Z)(Jt)(Vt),en=n(83694),tn=n(5663),nn=function(){return[(0,M.jsx)(tn.Z,{getData:en.$Q},"structured-data-home"),(0,M.jsx)(tn.Z,{getData:function(){return en.lq}},"structured-data-organization")]},on=n(82706),rn=n(76818),cn=n(67229);function an(e){return an="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},an(e)}function sn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function un(e,t){return un=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},un(e,t)}function ln(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=dn(e);if(t){var r=dn(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return fn(this,n)}}function fn(e,t){return!t||"object"!==an(t)&&"function"!=typeof t?pn(e):t}function pn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
1function dn(e){return dn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dn(e)}function yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hn=(0,a.Z)(ie.Z,{target:"e1v3hok71"})({margin:"".concat(j.N.BASE6X," 0"),padding:0},""),mn=(0,a.Z)(S.Z,{target:"e1v3hok70"})((function(e){return{paddingTop:e.isFlipModeEnabled?d.L6.MAIN_NAV_PLUS_FLIP_MODE_HEIGHT:null}}),""),bn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&un(e,t)}(i,e);var t,n,o,r=ln(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),yn(pn(t=r.call(this,e)),"renderLoggedOutContent",(function(){var e=t.props,n=e.isAmp,o=e.isPhone,r=e.showModal,i=e.mobileHomeTileSections,c=e.t;return(0,M.jsxs)(s.Fragment,{children:[!n&&o&&(0,M.jsx)("div",{className:"home__search",onClick:function(){r(v.default,{autoFocus:!0,variant:g.J9.FULLSCREEN,modifier:g.nY.HAS_FIXED_HEADER})},children:(0,M.jsx)(b.Z,{tabIndex:-1,name:"searchHome",placeholder:c("search_flipboard"),icon:b.S.SEARCH})}),(0,M.jsx)(re,{}),n||o?(0,M.jsx)(hn,{sections:i,collapsable:!1,title:!1,highDisplayCount:!0}):(0,M.jsx)(Qt,{})]})})),yn(pn(t),"renderContent",(function(){var e=t.state.startedAuthenticated,n=t.props,o=n.isAuthenticated,r=n.signupCompleted,i=n.modalLoginComplete;return e||o&&(r||i)?(0,M.jsx)(ht,{}):t.renderLoggedOutContent()})),t.state={startedAuthenticated:t.props.isAuthenticated},t}return t=i,(n=[{key:"componentDidMount",value:function(){this.props.setAppUrl(m.qD),this.props.setNavAppStoreUrl(),this.props.setAdjustNavFrom(h.rf.HOME),y.Z.trackPageview(this.props.setTitle(),this.props.routing.pathname)}},{key:"componentWillUnmount",value:function(){this.props.setAppUrl(void 0),this.props.setAdjustNavFrom(void 0)}},{key:"render",value:function(){var e=this.props,t=e.isAuthenticated,n=e.isFlipModeEnabled,o=p()({home:!0,"layout--main-unauthenticated":!t});return(0,M.jsx)(fe.nN.Provider,{value:h.rf.HOME,children:(0,M.jsx)(mn,{className:o,enableFullWidth:!0,isFlipModeEnabled:n,children:(0,M.jsxs)("div",{className:"centered-column",children:[(0,M.jsx)(nn,{}),this.renderContent()]})})})}}])&&sn(t.prototype,n),o&&sn(t,o),i}(s.Component);bn.propTypes={routing:l().object.isRequired,isAmp:l().bool.isRequired,isPhone:l().bool.isRequired,isAuthenticated:l().bool,signupCompleted:l().bool,t:l().func.isRequired,showModal:l().func.isRequired,setAppUrl:l().func.isRequired,setTitle:l().func.isRequired,setNavAppStoreUrl:l().func.isRequired,setAdjustNavFrom:l().func.isRequired,mobileHomeTileSections:l().array.isRequired,isFlipModeEnabled:l().bool.isRequired,modalLoginComplete:l().bool.isRequired},bn.defaultProps={isAmp:!1};var gn=(0,Z.Z)(Ke.Z,A.Z,je.Z,N.Z,on.Z,D.Z,rn.Z,cn.Z)((0,F.Z)(bn)),vn=(0,r.$j)((function(e){return{mobileHomeTileSections:e.app.mobileHomeTileSections}}),(function(e){return(0,i.DE)({setAdjustNavFrom:c.ax,setNavAppStoreUrl:c.u2,setTitle:c.Td,setAppUrl:c.sO},e)}))(gn)},35183:function(e,t,n){n(32501),n(16781),n(43450);var o=n(2784),r=n(45697),i=n.n(r),c=n(22480),a=n(37757),s=n(8626),u=n(52322);function l(e){var t=e.className,n=e.sections,r=e.personalizedName,i=e.seeMoreLink,a=e.maxSections,l=e.t;if(!n||n.length<=0)return null;var f=n.slice(0,a),p=f.map((function(e){return e.title})).join(", "),d=f.map((function(e){return(0,u.jsx)(s.Z,{section:e,styleVariation:s.B.INHERIT_UNDERLINE},e.remoteid)})).reduce((function(e,t){return[e,", ",t]})),y=r?l("personalized_with_stories_in",{profileName:r,topicList:p}):l("with_stories_in",{topicList:p});return(0,u.jsxs)("div",{className:"".concat(t," topic-header__related"),children:[(0,c.Z)(y,{decoratedTopicList:function(){return d}}),i&&(0,u.jsxs)(o.Fragment,{children:[(0,u.jsx)("br",{}),i]})]})}l.propTypes={className:i().string,sections:i().array,personalizedName:i().string,maxSections:i().number,seeMoreLink:i().object,t:i().func.isRequired},l.defaultProps={maxSections:9},t.Z=(0,a.Z)(l)}}]); 2//# sourceMappingURL=app-route-containers-home.f2e7a91eca1f0f6fa9cb.bundle.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.