PageSourceSearch

https://s.flipboard.com/webu/6268.8aa5dbe269bdc6ab5b00.bundle.js

js flipboard.com collected 2026-10-01 08:39:04 UTC 10,387 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([[6268],{56980:function(e,n,t){t(18178),t(26936),t(96928),t(61229),t(34115),t(634),t(58188),t(20796),t(15735),t(28673),t(6886);var r=t(2784),i=t(72779),s=t.n(i),o=t(39764),u=t(30001),c=t(90068),l=t(8225),a=t(52322);function b(e){return b="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},b(e)}function f(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function p(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,n){return d=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},d(e,n)}function h(e){var n=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 t,r=g(e);if(n){var i=g(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return y(this,t)}}function y(e,n){return!n||"object"!==b(n)&&"function"!=typeof n?m(e):n}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function v(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var S=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&d(e,n)}(c,e);var n,t,r,i=h(c);function c(){var e;f(this,c);for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return v(m(e=i.call.apply(i,[this].concat(t))),"state",{isFocused:!1}),v(m(e),"handleFocus",(function(){e.setState({isFocused:!0})})),v(m(e),"handleBlur",(function(){e.setState({isFocused:!1})})),e}return n=c,(t=[{key:"render",value:function(){var e=this.props,n=e.name,t=e.label,r=e.className,i=e.checked,c=e.disabled,l=e.onChange,b=e.appTheme,f=s()("custom-checkbox",r,{"custom-checkbox--disabled":c}),p=s()("custom-checkbox__img",{"custom-checkbox__img--checked":i,"custom-checkbox__img--focused":this.state.isFocused}),d=s()("ui-body--small-standard",{"custom-checkbox__label":!c,"custom-checkbox__label--disabled:":c}),h=b===u.SJ.DARK?"#000":"#fff",y=b===u.SJ.DARK?"#fff":"#000";return(0,a.jsx)("div",{className:f,children:(0,a.jsxs)("label",{className:"custom-checkbox__label-wrapper",children:[(0,a.jsx)("input",{type:"checkbox",name:n,className:"custom-checkbox__input",onChange:l,onFocus:this.handleFocus,onBlur:this.handleBlur,disabled:c||!1,checked:i}),i?(0,a.jsx)("div",{className:p,children:(0,a.jsx)(o.Z,{color:this.state.isFocused?y:h,size:14})}):(0,a.jsx)("div",{className:p}),t&&(0,a.jsx)("span",{className:d,children:t})]})})}}])&&p(n.prototype,t),r&&p(n,r),c}(r.Component);n.Z=(0,c.Z)(l.Z)(S)},41684:function(e,n,t){t(49228),t(43450),t(43105),t(95342),t(34115),t(634),t(26936),t(96928),t(61229),t(34769),t(68625),t(1939),t(62775),t(58188),t(20796),t(15735),t(28673),t(6886);var r=t(2784),i=t(45697),s=t.n(i),o=t(37757),u=t(56980),c=t(66410),l=t(65430),a=t(90068),b=t(59359),f=t(52322);function p(e){return p="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},p(e)}function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?d(Object(t),!0).forEach((function(n){y(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function y(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function m(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,n){return g=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},g(e,n)}function v(e){var n=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 t,r=O(e);if(n){var i=O(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return S(this,t)}}function S(e,n){return!n||"object"!==p(n)&&"function"!=typeof n?_(e):n}function _(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)}var j=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&g(e,n)}(s,e);var n,t,r,i=v(s);function s(e){var n;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,s),(n=i.call(this,e)).changeHandler=n.changeHandler.bind(_(n)),n.state={unsubscribeAll:!1},n}return n=s,(t=[{key:"componentDidUpdate",value:function(e){if(e.pendingSubscriptionGroups!==this.props.pendingSubscriptionGroups){var n=this.props.pendingSubscriptionGroups.find((function(e){return e.group===l.bB.group}));!1===(null==n?void 0:n.isSubscribed)&&this.setState({unsubscribeAll:!0})}}},{key:"changeHandler",value:function(e){var n,t=e.group,r=e.subscription,i=this.props,s=i.onChange,o=i.pendingSubscriptionGroups,u=i.setHasCheckedSubscriptions,c=!!r||!!t&&!(0,l.YZ)(t,l.bB),a=!t&&!r,b=!a&&(0,l.YZ)(t,l.bB),f=!1;this.setState({unsubscribeAll:a});var p=o.map((function(e){var i=e.subscriptions.map((function(n){return a?Object.assign({},n,{isSubscribed:n.key!==l.bB.group&&null}):t&&!r&&((0,l.YZ)(e,t)||(0,l.YZ)(t,l.bB))?Object.assign({},n,{isSubscribed:!e.isSubscribed}):b||n.key!==l.bB.group?((i=(0,l.YZ)(t,e,r,n)?null===e.isSubscribed&&null===n.isSubscribed||(!e.isSubscribed||null!==n.isSubscribed)&&!n.isSubscribed:(null!==e.isSubscribed||null!==n.isSubscribed)&&(!(!e.isSubscribed||null!==n.isSubscribed)||Boolean(n.isSubscribed)))&&(f=!0),Object.assign({},n,{isSubscribed:i})):Object.assign({},n,{isSubscribed:null});var i}));if(e.group===l.bB.group&&null===i[0].isSubscribed)return n=e.isSubscribed,Object.assign({},e,{isSubscribed:null,subscriptions:i});if(a||r&&(0,l.YZ)(t,e)||c&&(0,l.YZ)(e,l.bB))return Object.assign({},e,{isSubscribed:!1,subscriptions:i});if(t&&!r&&(0,l.YZ)(t,l.bB))return Object.assign({},e,{isSubscribed:!0,subscriptions:i});var s,o=(0,l.YZ)(t,e,null,r);return null===e.isSubscribed?o?n?(s=!1,i=i.map((function(e){return h({},e,{isSubscribed:!1})}))):(s=!0,i=i.map((function(e){return h({},e,{isSubscribed:!0})}))):s=!!n:s=(0,l.YZ)(t,e,null,r)?!e.isSubscribed:e.isSubscribed,Object.assign({},e,{isSubscribed:s,subscriptions:i})}));null==u||u(f),s(p,a)}},{key:"subscriptionsToRender",value:function(e){return this.props.newslettersOnly?e.filter((function(e){return e.newsletter}))||[]:e}},{key:"render",value:function(){var e=this,n=this.props,t=n.pendingSubscriptionGroups,r=n.disabled,i=n.t,s=n.omitGroups,o=n.newslettersOnly;if(!t)return null;var a=(0,l.u3)(t,l.bB),b=!(!a||!a.isSubscribed);return(0,f.jsx)("div",{className:"email-subscriptions",children:t.map((function(n){return(0,l.YZ)(n,l.bB)?(0,f.jsx)("fieldset",{className:"email-sett
1ings__group",children:(0,f.jsxs)("div",{className:"field-block",children:[(0,f.jsx)(c.Z,{name:"subscribeToEverything",label:i("email_preference_subscribe_everything"),value:"all",checked:!!n.isSubscribed,onChange:function(){return e.changeHandler({group:l.bB})}}),(0,f.jsx)(c.Z,{name:"unsubscribeFromEverything",label:i("email_preference_unsubscribe_everything"),value:"none",checked:!!e.state.unsubscribeAll,onChange:function(){return e.changeHandler({group:null})}})]})},n.group):(0,f.jsxs)("div",{children:[!s&&(0,f.jsx)("h2",{className:"ui-subheading--large-standard email-settings__group-title",children:(0,l.Mo)(i,n)}),!s&&n.group_subscribable&&(0,f.jsx)("fieldset",{children:(0,f.jsx)("div",{className:"field-block",children:(0,f.jsx)(u.Z,{name:n.group,label:i("email_preference_group_all"),checked:!(!n.isSubscribed&&!b),disabled:r,onChange:function(){return e.changeHandler({group:n})}})})}),e.subscriptionsToRender(n.subscriptions).length>0&&(0,f.jsx)("fieldset",{children:e.subscriptionsToRender(n.subscriptions).map((function(t){if(o&&(null==t||!t.newsletter))return null;var i=null==t?void 0:t.description;return(0,f.jsxs)("div",{className:"field-block",children:[(0,f.jsx)(u.Z,{name:null==t?void 0:t.key,label:null==t?void 0:t.name,checked:!!(null!=t&&t.isSubscribed||n.isSubscribed||b),disabled:r,onChange:function(){return e.changeHandler({group:n,subscription:t})}}),i&&(0,f.jsx)("div",{className:"ui-body--small-standard email-settings__subscription-description",children:i})]},null==t?void 0:t.key)}))})]},n.group)}))})}}])&&m(n.prototype,t),r&&m(n,r),s}(r.Component);j.propTypes={pendingSubscriptionGroups:s().array,t:s().func.isRequired,disabled:s().bool,omitGroups:s().bool,newslettersOnly:s().bool,onChange:s().func.isRequired,setHasCheckedSubscriptions:s().func},j.defaultProps={pendingSubscriptionGroups:null,subscriptionGroups:[],disabled:!1,omitGroups:!1,newslettersOnly:!1},n.Z=(0,a.Z)(b.Z)((0,o.Z)(j))}}]);
2//# sourceMappingURL=6268.8aa5dbe269bdc6ab5b00.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.