PageSourceSearch

https://s.flipboard.com/webu/app-components-smart-magazine-tile.e8c2f475e362bf47074d.bundle.js

js flipboard.com collected 2026-09-24 08:31:05 UTC 11,139 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([[700],{27302:function(e,t,n){n.r(t);n(18178),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 r=n(2784),o=n(45697),i=n.n(o),c=n(72779),s=n.n(c),u=n(44158),l=n(93780),a=n(21112),f=n(57457),p=n(73540),y=n(46120),b=n(49337),d=n(34898),h=n(30001),m=n(90068),O=n(68869),j=n(83172),v=n(37757),_=n(46315),g=n(52322);function w(e){return w="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},w(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t){return R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},R(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,r=C(e);if(t){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return D(this,n)}}function D(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?E(e):t}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}var T=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&&R(e,t)}(c,e);var t,n,o,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)).tile=r.createRef(),t.handleKeyPress=t.handleKeyPress.bind(E(t)),t}return t=c,n=[{key:"componentDidUpdate",value:function(e){e.selectedId!==this.props.selectedId&&this.props.section.remoteid===this.props.selectedId&&this.tile.current.focus()}},{key:"handleKeyPress",value:function(e){if(e.keyCode===u.t.ENTER){var t=this.props,n=t.history,r=t.section.canonicalPath;r&&(0,a.JS)(r,n)}}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.selectedId,r=e.usageTrackSectionTap,o=e.t,i=n===t.remoteid,c=t.title,u=s()({"section-tiles__tile-wrapper":!0,"section-tiles__tile-wrapper--selected":i}),a=c?"".concat(c," - ").concat(o("cover")):o("smart_magazine_cover"),d={ref:this.tile};i&&(d.tabIndex=0,d.onKeyDown=this.handleKeyPress);var m=(0,l.V3)(t),O=[h.wF.PERSONALIZE_TEXT,h.wF.ADD_FAVORITE];return(0,g.jsxs)("div",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},d,{className:u,children:[(0,g.jsxs)(p.Z,{className:"section-tiles__tile media-link",section:t,onClick:r,children:[(0,g.jsx)("div",{className:"section-tiles__image",children:m&&(0,g.jsx)(y.Z,{image:m,ampHeight:220,alt:a,crop:!0})}),(0,g.jsx)("div",{className:"section-tiles__tile-overlay"}),(0,g.jsx)("div",{className:"section-tiles__tile-content",children:(0,g.jsx)("h3",{className:"section-tiles__title ui-text--title--small",children:c})})]}),(0,g.jsxs)("div",{className:"section-tiles__icons",children:[(0,g.jsx)("div",{className:"section-tiles__multi-icon-wrapper",children:(0,g.jsx)("span",{className:"section-tiles__private-icon section-tiles__icon",children:(0,g.jsx)(f.Z,{color:"#fff"})})}),(0,g.jsx)(b.Z,{section:t,buttonSet:O,isTooltipMenu:!0})]})]}))}}],n&&Z(t.prototype,n),o&&Z(t,o),c}(r.Component);T.propTypes={section:i().object.isRequired,history:i().object.isRequired,selectedId:i().string,usageTrackSectionTap:i().func.isRequired,t:i().func.isRequired},T.defaultProps={selectedId:null},t.default=(0,m.Z)(O.Z,j.Z)((0,v.Z)((0,_.Z)((0,d.Z)(T))))},83172:function(e,t,n){var r=n(21681);t.Z={actions:{usageTrackSectionTap:r.x8}}},49337:function(e,t,n){n.d(t,{Z:function(){return g}});var r=n(12291),o=n(23115),i=(n(43450),n(2784),n(45697)),c=n.n(i),s=n(93039),u=n(62017),l=n(26626),a=n(50714),f=n(86635),p=n(37757),y=n(83491),b=n(28041),d=n(87079),h=n(90068),m=n(68869),O=n(52322);function j(e){var t=e.section,n=e.onDelete,r=e.showModal,o=e.dismissModal,i=e.handleUnfollow,c=e.generateItemActionButtons,p=e.t,y=function(){n(t).then((function(){return i(t)})),o()},b=[l._Z.BLOCK,l._Z.ALIGN_LEFT],d=c();return(0,O.jsx)(u.Z,{toggleElement:(0,O.jsx)(a.Z,{}),children:(0,O.jsxs)("ul",{children:[d.map((function(e,t){return(0,O.jsx)("li",{className:"item-actions__action",children:e()},"item_action_".concat(t))})),(0,O.jsx)("li",{children:(0,O.jsx)(l.ZP,{name:"personalized-topic-delete",styleModifier:b,onClick:function(){return r(f.Z,{name:"delete-smart-magazine",confirmLabel:p("unpersonalize"),message:p("confirm_smart_magazine_delete",{smartMagazineTitle:t.title}),onConfirm:y})},children:(0,O.jsx)("span",{children:(0,s.Z)(p("unpersonalize"))})})})]})})}j.propTypes={section:c().object.isRequired,iconColor:c().string,onDelete:c().func.isRequired,showModal:c().func.isRequired,dismissModal:c().func.isRequired,onPersonalize:c().func.isRequired,handleUnfollow:c().func.isRequired,generateItemActionButtons:c().func.isRequired,showFollow:c().bool,t:c().func.isRequired},j.defaultProps={iconColor:void 0,showFollow:!1};var v=(0,h.Z)(m.Z)((0,d.ZP)((0,b.Z)((0,y.Z)((0,p.Z)(j))))),_=n(6630),g=(0,r.$
1j)((function(e){var t=e.profile;return{favorites:t.favorites,smartMagazines:t.smartMagazines}}),(function(e){return{onDelete:function(t){return(0,_.F)([e((0,o.bx)(t)),e((0,o.r7)(t))])}}}))(v)},34898: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 r=n(2784),o=n(30298),i=n(10950),c=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 r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function y(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,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(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&&p(e,t)}(b,t);var n,r,i,s=y(b);function b(){return a(this,b),s.apply(this,arguments)}return n=b,r=[{key:"render",value:function(){var t=this;return(0,c.jsx)(o.v6.Consumer,{children:function(n){return(0,c.jsx)(e,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){l(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.props,{selectedId:n}))}})}}],r&&f(n.prototype,r),i&&f(n,i),b}(r.Component);return t.displayName=i.Z.displayName(e),t}},57457:function(e,t,n){n(34769),n(34115),n(95342),n(68625),n(1939),n(62775),n(2784);var r=n(43057),o=n(52322);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Z=function(e){return(0,o.jsx)(r.Z,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:"private",size:16,viewBox:"0 0 512 512"},e,{renderComponent:function(e){var t=e.color;return(0,o.jsx)("path",{fill:t,d:"M417.566,209.83h-9.484v-44.388c0-82.099-65.151-150.681-146.582-152.145c-2.224-0.04-6.671-0.04-8.895,0 c-81.432,1.464-146.582,70.046-146.582,152.145v44.388h-9.485C81.922,209.83,70,224.912,70,243.539v222.632 C70,484.777,81.922,500,96.539,500h321.028c14.617,0,26.539-15.223,26.539-33.829V243.539 C444.105,224.912,432.184,209.83,417.566,209.83z M287.129,354.629v67.27c0,7.704-6.449,14.222-14.159,14.222h-31.834 c-7.71,0-14.159-6.518-14.159-14.222v-67.27c-7.477-7.361-11.83-17.537-11.83-28.795c0-21.334,16.491-39.666,37.459-40.512 c2.222-0.09,6.673-0.09,8.895,0c20.968,0.846,37.459,19.178,37.459,40.512C298.959,337.092,294.605,347.268,287.129,354.629z M345.572,209.83H261.5h-8.895h-84.072v-44.388c0-48.905,39.744-89.342,88.519-89.342s88.52,40.437,88.52,89.342V209.83z"})}}))}}}]);
2//# sourceMappingURL=app-components-smart-magazine-tile.e8c2f475e362bf47074d.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.