PageSourceSearch

https://s.flipboard.com/webu/9076.d97b419e372cc47b3845.bundle.js

js flipboard.com collected 2026-09-24 08:26:13 UTC 16,550 bytes, 2 lines download raw bytes

1"use strict";(("undefined"!=typeof self?self:this).__LOADABLE_LOADED_CHUNKS__=("undefined"!=typeof self?self:this).__LOADABLE_LOADED_CHUNKS__||[]).push([[9076],{46444:function(e,t,n){n(43105),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(45697),i=n.n(r),c=n(7799),l=n(39863),a=n(52322);function s(e){return s="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},s(e)}function u(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 f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(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 y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function d(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=m(e);if(t){var r=m(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var O=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&&y(e,t)}(i,e);var t,n,o,r=d(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={openForAnchor:t.anchorMatches()},t.anchorMatches=t.anchorMatches.bind(b(t)),t}return t=i,n=[{key:"componentDidUpdate",value:function(e,t){t.openForAnchor||this.anchorMatches()&&this.setState({openForAnchor:!0})}},{key:"anchorMatches",value:function(){return(0,c.Z)()&&(0,c.Z)().location&&(0,c.Z)().location.hash==="#".concat(this.props.anchorId)}},{key:"render",value:function(){var e=this.props.collapsed,t=Object.assign({},this.props,{collapsed:!this.state.openForAnchor&&e});return(0,a.jsx)(l.Z,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))}}],n&&p(t.prototype,n),o&&p(t,o),i}(o.Component);O.propTypes={collapsed:i().bool,anchorId:i().string},O.defaultProps={collapsed:!1,anchorId:null},t.Z=O},39863:function(e,t,n){n(96928),n(61229),n(34115),n(634),n(58188),n(20796),n(15735),n(28673),n(6886);var o=n(2784),r=n(45697),i=n.n(r),c=n(90856),l=n(43260),a=n(52322);function s(e){return s="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},s(e)}function u(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 f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(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=h(e);if(t){var r=h(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"!==s(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
1function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var b=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&&f(e,t)}(i,e);var t,n,o,r=p(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={isCollapsed:t.props.collapsed},t.toggleCollapsed=t.toggleCollapsed.bind(d(t)),t}return t=i,(n=[{key:"componentDidUpdate",value:function(e){var t=this.props.collapsed;e.collapsed!==t&&this.setState({isCollapsed:t})}},{key:"toggleCollapsed",value:function(){this.setState({isCollapsed:!this.state.isCollapsed})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.anchorId,o=e.header,r=e.children,i=this.state.isCollapsed;return(0,a.jsxs)("div",{className:t,children:[n&&(0,a.jsx)("span",{id:n,className:"page-anchor"}),(0,a.jsxs)("div",{className:"collapsable-section__header",onClick:this.toggleCollapsed,children:[(0,a.jsx)(l.Z,{className:"collapsable-section__caret",color:c.MN.caret,direction:i?l.i.right:l.i.down}),o]}),!i&&r]})}}])&&u(t.prototype,n),o&&u(t,o),i}(o.Component);b.propTypes={className:i().string,collapsed:i().bool,header:i().node.isRequired,children:i().node.isRequired,anchorId:i().string},b.defaultProps={className:null,collapsed:!1,anchorId:null},t.Z=b},40949:function(e,t,n){n.d(t,{B:function(){return x}});n(96928),n(67890),n(61229),n(58188),n(73439),n(34115),n(634),n(20796),n(15735),n(28673),n(6886),n(35666);var o=n(2784),r=n(45697),i=n.n(r),c=n(72779),l=n.n(c),a=n(66760),s=n(37236),u=n(26626),f=n(1726),p=n(43177),y=n(37757),d=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 b(e,t,n,o,r,i,c){try{var l=e[i](c),a=l.value}catch(e){return void n(e)}l.done?t(a):Promise.resolve(a).then(o,r)}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 O(e,t){return O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},O(e,t)}function v(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=w(e);if(t){var r=w(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return g(this,n)}}function g(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 w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var x={NONE:"none",SECTION_TILES:"section-tiles"},P=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&&O(e,t)}(y,e);var t,n,r,i,c,s=v(y);function y(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),(t=s.call(this,e)).loadingNext=!1,t.loadingPromise=null,t.loadNext=t.loadNext.bind(j(t)),t}return t=y,n=[{key:"componentWillUnmount",value:function(){this.unmounted=!0}},{key:"loadNext",value:(i=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.loadingNext&&!this.unmounted){e.next=2;break}return e.abrupt("return");case 2:return this.props.onScrolledToBottom(),this.loadingNext=!0,this.loadingPromise=this.props.loadNext(),e.next=7,this.loadingPromise;case 7:this.loadingNext=!1,this.forceUpdate(),(0,a.Z)();case 10:case"end":return e.stop()}}),e,this)})),c=function(){var e=this,t=arguments;return new Promise((function(n,o){var r=i.apply(e,t);function c(e){b(r,n,o,c,l,"next",e)}function l(e){b(r,n,o,c,l,"throw",e)}c(void 0)}))},function(){return c.apply(this,arguments)})},{key:"render",value:function(){var e=this,t=this.props,n=t.isLoading,r=t.infinite,i=t.immediateInfinite,c=t.bufferBottom,a=t.styleVariation,s=t.waitUntilMoved,y=t.t,h=l()({"load-more":!0,"load-more--section-tiles":a===x.SECTION_TILES}),b=a===x.SECTION_TILES?y("see_more"):y("load_more");return(0,d.jsx)("div",{className:h,children:i||this.loadingPromise&&r?(0,d.jsxs)(o.Fragment,{children:[(0,d.jsx)(p.Z,{waitUntilMoved:s,bufferBottom:c,children:function(t){return t&&e.loadNext()}}),this.loadingNext?(0,d.jsx)(f.Z,{}):null]}):(0,d.jsx)(u.ZP,{name:"section-load-more",styleVariation:u.NV.SECONDARY,label:b,onClick:this.loadNext,loading:n})},"load-more")}}],n&&m(t.prototype,n),r&&m(t,r),y}(o.Component);P.propTypes={loadNext:i().func.isRequired,infinite:i().bool,immediateInfinite:i().bool,isLoading:i().bool,styleVariation:i().oneOf(Object.values(x)),bufferBottom:i().number,onScrolledToBottom:i().func,waitUntilMoved:i().bool,t:i().func.isRequired},P.defaultProps={isLoading:!1,infinite:!0,immediateInfinite:!1,bufferBottom:7500,styleVariation:x.NONE,waitUntilMoved:!0,onScrolledToBottom:s.h},t.Z=(0,y.Z)(P)},59076: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(72779),c=n.n(i),l=n(60713),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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?s(Object(n),!0).forEach((function(t){f(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}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(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 y=function(e){var t=e.className,n=p(e,["className"]);return(0,a.jsx)("section",{className:c()("section-tiles layout-section",t),children:(0,a.jsx)(l.Z,u({},n))})};y.propTypes={className:r().string},t.Z=y},60713:function(e,t,n){n.d(t,{Z:function(){return T}});n(32501),n(43450),n(96928),n(67890),n(61229),n(34115),n(634),n(58188),n(20796),n(15735),n(28673),n(6886);var o=n(2784),r=n(45697),i=n.n(r),c=n(31975),l=n(77703),a=n(26626),s=n(12291),u=n(13172),f=(0,s.$j)((function(e,t){return{image:e.sections.sectionCovers[t.section.normalizedRemoteid]}}))(u.Z),p=n(40949),y=n(46444),d=n(37757),h=n(90068),b=n(9665),m=n(60986),O=n(52322);function v(e){return v="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},v(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)}}
1function j(e,t){return j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},j(e,t)}function w(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=_(e);if(t){var r=_(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==v(t)&&"function"!=typeof t?P(e):t}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var S=(0,c.Z)("SmartMagazineTile"),N=(0,c.Z)("StoryboardTile"),C=(0,c.Z)("CampaignTile"),E=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&&j(e,t)}(c,e);var t,n,r,i=w(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={isExpanded:!1},t.getDisplayCount=t.getDisplayCount.bind(P(t)),t.handleSeeMoreClick=t.handleSeeMoreClick.bind(P(t)),t.renderTile=t.renderTile.bind(P(t)),t}return t=c,(n=[{key:"getDisplayCount",value:function(){var e=this.props.highDisplayCount?3:1;switch(this.props.viewportType){case l.Ky.PHONE:return 4*e;case l.Ky.TABLET:return 10*e;case l.Ky.TABLET_LANDSCAPE:return 12*e;case l.Ky.DESKTOP:default:return 14*e}}},{key:"handleSeeMoreClick",value:function(){this.setState({isExpanded:!0})}},{key:"renderTile",value:function(e){var t=this.props.isOwnProfile;return e.isSmartMagazine?(0,O.jsx)(S,{section:e}):e.isStoryboard?(0,O.jsx)(N,{section:e.section||e,isOwnProfile:t}):e.isCampaign?(0,O.jsx)(C,{section:e.section||e,isOwnProfile:t}):(0,O.jsx)(f,{section:e,isOwnProfile:t})}},{key:"render",value:function(){var e=this,t=this.props,n=t.anchorId,r=t.title,i=t.titleElement,c=t.sections,l=t.createTileComponent,s=t.isAmp,u=t.emptyMessage,f=t.loadNext,d=t.loadingNext,h=t.collapsable,b=t.collapsed,m=t.t;if(!c.length&&!l&&!u)return null;var v=this.state.isExpanded,g=l?this.getDisplayCount()-1:this.getDisplayCount(),j=v||s?c:c.slice(0,g),w=!v&&!s&&c.length>g,x=i||(0,O.jsx)("h2",{className:"layout-section__header section-tiles__header ui-text--title",children:r}),P=(0,O.jsxs)(o.Fragment,{children:[(0,O.jsxs)("ul",{className:"section-tiles__list",children:[l&&(0,O.jsx)("li",{children:l}),j.map((function(t){return(0,O.jsx)("li",{children:e.renderTile(t)},t.remoteid||t.userid||t.id)}))]}),w&&(0,O.jsx)(a.ZP,{name:"profile-".concat(n,"__see-more"),label:m("see_more"),styleVariation:a.NV.SECONDARY,onClick:this.handleSeeMoreClick}),!w&&f&&(0,O.jsx)(p.Z,{infinite:!1,loadNext:f,isLoading:d,styleVariation:p.B.SECTION_TILES}),0===j.length&&u&&(0,O.jsx)("p",{className:"ui-text--supporting",children:u})]});return h?(0,O.jsx)(y.Z,{collapsed:b,header:x,anchorId:n,children:P}):(0,O.jsxs)(o.Fragment,{children:[(0,O.jsx)("span",{id:n,className:"page-anchor"}),(r||i)&&x,P]})}}])&&g(t.prototype,n),r&&g(t,r),c}(o.Component);E.propTypes={sections:i().array.isRequired,anchorId:i().string,isAmp:i().bool,createTileComponent:i().node,viewportType:i().oneOf(Object.values(l.Ky)),title:i().oneOfType([i().string,i().bool]),titleElement:i().node,emptyMessage:i().string,isOwnProfile:i().bool,highDisplayCount:i().bool,loadNext:i().func,loadingNext:i().bool,collapsable:i().bool,collapsed:i().bool,t:i().func.isRequired},E.defaultProps={isAmp:!1,createTileComponent:null,title:"Magazines",emptyMessage:null,isOwnProfile:!1,highDisplayCount:!1,loadNext:null,loadingNext:!1,collapsable:!0,collapsed:!1};var T=(0,h.Z)(b.Z,m.Z)((0,d.Z)(E))}}]);
2//# sourceMappingURL=9076.d97b419e372cc47b3845.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.